[codex] Add manifest auxiliary artifact verification#158
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces named auxiliary artifact verification to ordvec-manifest. It allows manifests to declare caller-owned sidecars (auxiliary artifacts) that are integrity-checked for path, size, and SHA-256 digest under the same path policy as the primary index. It supports both required and optional sidecars, produces deterministic report entries, and integrates with the SQLite cache to invalidate cached reports when sidecar bytes or states change. Documentation and comprehensive tests have been updated accordingly. There are no review comments, so no feedback is provided.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Review Summary by QodoAdd manifest auxiliary artifact verification with sidecar integrity checks
WalkthroughsDescription• Add auxiliary artifact verification to manifest schema with required/optional sidecar support • Verify declared sidecars' paths, SHA-256 digests, and byte lengths under default path policy • Include auxiliary artifact state/bytes in SQLite cache key for stale report invalidation • Document auxiliary artifact contract in manifest and provenance documentation Diagramflowchart LR
A["Manifest Schema"] -->|"Add auxiliary_artifacts field"| B["AuxiliaryArtifact struct"]
B -->|"name, path, sha256, file_size_bytes, required"| C["Verification Logic"]
C -->|"Path resolution & validation"| D["State Determination"]
D -->|"Verified/OptionalAbsent/MissingRequired/Failed"| E["AuxiliaryArtifactReport"]
E -->|"Include in cache key"| F["SQLite Cache"]
F -->|"Invalidate on drift"| G["Fresh Verification"]
File Changes1. ordvec-manifest/src/lib.rs
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bf1c7eb99c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR extends ordvec-manifest to support caller-declared “auxiliary artifacts” (sidecar files) in the manifest schema, verifies them under the existing path-safety policy, reports their verification state deterministically, and integrates auxiliary state/bytes into the SQLite verification cache key to avoid reusing stale reports after sidecar drift.
Changes:
- Add
auxiliary_artifactsto the manifest schema and verification report, including required/optional semantics and stable reason codes. - Implement auxiliary artifact verification (path policy + size + SHA-256) with deterministic report ordering.
- Extend SQLite caching to account for auxiliary artifact state/bytes and document the new contract across READMEs/provenance/changelog.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates top-level README to mention auxiliary sidecar verification. |
| ordvec-manifest/tests/manifest.rs | Adds tests for deterministic auxiliary reporting, fail-closed behavior, schema strictness, and SQLite cache-key behavior. |
| ordvec-manifest/src/sqlite.rs | Adds auxiliary_artifacts_sha256 to cache key / schema and computes auxiliary cache-key material. |
| ordvec-manifest/src/main.rs | Prints auxiliary artifact count in CLI manifest info output. |
| ordvec-manifest/src/lib.rs | Adds schema field + report field + auxiliary verification implementation and shape validation. |
| ordvec-manifest/README.md | Documents auxiliary artifact schema/behavior and SQLite cache implications. |
| docs/INDEX_PROVENANCE.md | Documents auxiliary artifact verification as part of provenance checks. |
| CHANGELOG.md | Notes the new auxiliary artifact verification feature. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a6cce83 to
0b19f0a
Compare
Signed-off-by: Nelson Spence <nelson@projectnavi.ai>
Signed-off-by: Nelson Spence <nelson@projectnavi.ai>
Signed-off-by: Nelson Spence <nelson@projectnavi.ai>
0b19f0a to
ca62d24
Compare
|
Rebased #158 onto current
Validation: |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit ca62d24 |
Signed-off-by: Nelson Spence <nelson@projectnavi.ai>
|
Follow-up for the latest Qodo rereview on #158:
Validation:
|
Summary
auxiliary_artifactsto the ordvec-manifest schema for caller-named sidecars with path, SHA-256, byte length, and required/optional presenceScope
Validation
cargo fmt --checkcargo test -p ordvec-manifestcargo test -p ordvec-manifest --features sqlitecargo check -p ordvec-manifest --no-default-featurescargo clippy -p ordvec-manifest --all-targets --features sqlite -- -D warningsgit diff --checkAdversarial Review
sqlite_cache_key_distinguishes_optional_auxiliary_absent_and_present.