8000 Preserve legacy usage reads and streamline native-child preparation by cargo-ai · Pull Request #161 · cargo-ai/cargo-ai · GitHub
[go: up one dir, main page]

Skip to content

Preserve legacy usage reads and streamline native-child preparation - #161

Open
cargo-ai wants to merge 6 commits into
developfrom
CAI-2155-passive-v1-usage-compatibility
Open

cargo-ai wants to merge 6 commits into
developfrom
CAI-2155-passive-v1-usage-compatibility

Conversation

@cargo-ai
@cargo-ai cargo-ai commented Nov 3, 2026 •
Copy link
Copy Markdown
Owner

Passive schema-v2 usage queries now preserve the temporary compatibility view needed to read populated schema-v1 history without migration.

Native-child preparation reads each bounded artifact once, inspects capability and definition records in one buffer pass, and hashes those same bytes. Existing validation outcomes, direct/tool distinctions and fresh later binding checks are preserved. Standalone streaming readers retain their existing bounds and behavior.

Developer builds can enable preparation-metrics and CARGO_AI_PREPARATION_METRICS=1 for passive metadata diagnostics on stderr. Ordinary machine envelopes retain their format. Native macOS arm64 checks cover reader parity, malformed/duplicate framing, limits, drift, one-read counters, legacy history preservation, source imports and emitted source. Bounded before/after comparisons preserve complete metadata envelopes except request ID. Required automatic CI remains an integration prerequisite.

- Configure SQLite scratch storage before creating the compatibility view
- Cover schema-v2 summary, runs, and show against unchanged schema-v1 data
- Add opt-in stage timings and observed read, hash, scan and profile-check counts
- Verify metadata output preservation, current counts and changed-input rejection
- Document passive diagnostics and bounded synthetic preparation samples
- Keep scanner measurements behind the CLI boundary with one shared collector
- Verify shared source imports with and without the diagnostic feature
- Evaluate the positive static-evidence fixture at an explicit reviewed time
@cargo-ai cargo-ai changed the title Fix passive reads of legacy usage history Preserve legacy usage reads and add opt-in preparation diagnostics Nov 5, 2026
- Decode capability and definition records in one pass over the captured bytes
- Preserve binding hashes, validation outcomes and fresh later checks
- Verify parser parity, artifact drift, limits and one-read counters
@cargo-ai cargo-ai changed the title Preserve legacy usage reads and add opt-in preparation diagnostics Preserve legacy usage reads and streamline native-child preparation Nov 5, 2026
- Preserve structural validation and compilation when dynamic auditing is skipped
- Report skipped audits without weakening runtime tool checks
- Cover default, malformed input and compilation failure behavior
- Update bundled SQLite in Core and generated agents, preserving SQLite
  features and the storage schema; adapt the busy-handler test binding.
- Refresh compatible HTTP and futures dependencies to remove pin-utils
  without dependency-policy exceptions.
- Disable colored assertion diagnostics in generated mock helpers while
  retaining parking_lot and the existing license policy.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0