Repository navigation
fix(oci)!: keep unobserved directory identity unknown - #15093
Closed
ShuaixinHuang wants to merge 1 commit into
Closed
ShuaixinHuang wants to merge 1 commit into
ShuaixinHuang wants to merge 1 commit 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. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryOCI layout Evidence now leaves directory identity unknown instead of treating the layout-document snapshot as a complete directory digest.
Reviews (1) · Last reviewed commit: "fix(oci)!: keep unobserved directory ide..." · Reviewed by Greptile |
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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