Repository navigation
fix(oci)!: keep unobserved directory identity unknown - #15105
ShuaixinHuang wants to merge 3 commits into
Conversation
BREAKING CHANGE: OCI layout Evidence now reports an unknown subject. The selected path and layout-document snapshot digest are available in normalized_result.artifact.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The PR appears safe to merge; the saved desktop-view failure is fixed and no new blocking issue was found. SummaryDirectory Evidence now reports an unknown subject instead of treating an incomplete snapshot as the directory’s full identity.
Reviews (4) · Last reviewed commit: "fix(evidence): admit legacy desktop dire..." · Reviewed by Greptile |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4a565ed16
ℹ️ 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".
Replaces #15093 at the same commit
a03a24e1edcbbeffe0d6690198bc19545b21a8d6. The prior PR records the review history and validation for this commit.Problem
OCI layout Evidence currently uses a digest of
oci-layoutandindex.jsonas the identity of a file with formatdirectory. Replacing one byte of a referenced layer in place leaves those two documents unchanged. The production service reports a different observed blob hash and adigest_mismatch, yet the original and modified layouts still assert the same immutable subject identity.Change
Use the existing unknown subject with reason
not-observedfor OCI layout Evidence. This operation does not compute a complete directory tree digest. The normalized report still carries the selected path, layout-document snapshot digest, per-blob hashes, and findings. The change affects the Evidence subject returned by both CLI and MCP, including completed reports retained after cleanup failures.Validation
4dafa3a58using the production service and a one-byte local layer change. On the patched service both observations report an unknown subject, with the mismatch still visible.Author readiness
Human owner: @ShuaixinHuang
Desktop Evidence follow-up
Commit
c4a565ed1addresses the same incomplete directory identity in desktop inspection. New Evidence declares the directory subject unknown and preserves the examined snapshot digest in the report. View projection accepts the explicit unknown and retains support for older directory subjects with matching snapshot digests. All 97 focused filesystem, CLI and MCP tests passed locally, as did the normal typecheck, lint and architecture gates.Commit
7c5987a3arecognizes the historical file-kind subject with directory format when its digest matches the saved report. A saved-record regression exercises summary projection. All 85 filesystem boundary tests and the normal push gates passed.