Skip to content

fix(oci)!: keep unobserved directory identity unknown - #15093

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/oci-evidence-subject-identity
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/oci-evidence-subject-identity

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

OCI layout Evidence currently uses a digest of oci-layout and index.json as the identity of a file with format directory. Replacing one byte of a referenced layer in place leaves those two documents unchanged. The production service reports a different observed blob hash and a digest_mismatch, yet the original and modified layouts still assert the same immutable subject identity.

Change

Use the existing unknown subject with reason not-observed for 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

  • Reproduced the identical subject digest on 4dafa3a58 using 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.
  • The compiled CLI regression checks the subject and layout metadata before and after changing the layer. The CLI/MCP acceptance case verifies that the resulting Evidence remains available through the retained view and bundle.
  • The focused CLI, MCP, retained view, and service suites passed: 21 tests across four files. Normal pre-push typecheck, lint, and architecture guards also passed.
  • Verification uses a synthetic OCI layout on local storage.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

BREAKING CHANGE: OCI layout Evidence now reports an unknown subject. The selected path and layout-document snapshot digest are available in normalized_result.artifact.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T07:46:30.270078Z a03a24e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable defects were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

OCI layout Evidence now leaves directory identity unknown instead of treating the layout-document snapshot as a complete directory digest.

  • OCI layout Evidence stops treating its document snapshot as the whole directory identity.

Reviews (1) · Last reviewed commit: "fix(oci)!: keep unobserved directory ide..." · Reviewed by Greptile

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