Skip to content

fix(images): preserve DCode base resolution metadata - #9618

Closed
ericksoa wants to merge 1 commit into
feat/b3-e-buildless-onboarding-9140from
fix/dcode-final-base-resolution-9386-stack
Closed

ericksoa wants to merge 1 commit into
feat/b3-e-buildless-onboarding-9140from
fix/dcode-final-base-resolution-9386-stack

Conversation

@ericksoa

Copy link
Copy Markdown
Member

Summary

Preserve the exact Deep Agents Code base-image authority in the derived managed image so final E2E evidence can recover and validate it. The final image now carries parseable base-resolution labels sourced from a digest-pinned remote base or a receipt-bound local OCI layout, and exact-image publication checks fail if those labels are lost.

Related Issue

Refs #9386. Stacked on #9323.

Related: #9140 and #7744.

Changes

  • Export repository, immutable platform reference and digest, source revision, image ID, OS/architecture, and glibc identity from the inspected exact DCode base.
  • Attach the metadata to local PR, registry-backed PR, digest-published PR, and production managed-image builds, then verify it on the exact final image.
  • Require the receipt-owned source revision in final DCode evidence and keep missing, malformed, mutable, or mismatched authority fail-closed.
  • Use one exporter for the PR and production publication consumers to avoid divergent authority encoding; focused label and workflow tests protect that shared seam.
  • Prove rebuild/lifecycle forwarding preserves the complete receipt metadata.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: pending review
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit: not applicable
  • Station profile/scenario: not applicable
  • Result: not applicable
  • Supporting evidence: not applicable

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — vitest run on the DCode label, workflow boundary, final evidence, and rebuild flow tests: 32 passed
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result: not run; this is a narrow workflow/evidence seam and the full matrix was intentionally not run
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Aaron Erickson aerickson@nvidia.com

Signed-off-by: Aaron Erickson <aerickson@nvidia.com>
@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 15efd227-827a-4842-8337-cb832b4eba74

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit cc44336 in the fix/dcode-final-base... branch remains at 96%, unchanged from commit b1c0e21 in the feat/b3-e-buildless-... branch.

@ericksoa

Copy link
Copy Markdown
Member Author

Superseded by #9619 after #9323 advanced. Repository rules prohibit force-pushing PR branches, so #9619 preserves the requested exact rebase onto the refreshed cutover head without adding a merge commit.

@ericksoa ericksoa closed this Aug 19, 2026
@github-actions

github-actions Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings reported

Advisor assessment: No blocking advisor findings reported
Next action: Review the warnings below.
Findings: 0 blockers · 1 warning · 0 suggestions

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 1 warning · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Failed after a partial review · low confidence · 0 blockers · 3 warnings · 2 suggestions

Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests.

3 semantic terminology decisions

Terminology decisions are advisory. They affect the assessment only when a separate finding identifies concrete semantic impact.

  • established — base resolution metadata at .github/workflows/managed-images.yaml:687: Keep base resolution metadata for the label payload.
  • justified — immutable base resolution at .github/workflows/managed-images.yaml:687: Keep immutable base resolution where the digest-binding distinction matters.
  • define — local OCI receipt at scripts/checks/export-dcode-base-resolution-label.mts:121: Keep local OCI receipt and retain the validation text that defines its exact path-and-digest meaning.

E2E guidance

Advisory only. A maintainer can dispatch the default E2E suite for the commit under review.

Recommended E2E: None

Manual-only E2E: cloud-onboard, managed-image-multiarch-startup, security-posture, cloud-inference
The manual PR workflow does not run these selectors for the commit under review. Run them from reviewed code on main.

1 optional E2E recommendation
  • ubuntu-repo-cloud-langchain-deepagents-code
1 warning · 0 suggestions

Warnings

Warnings do not block.

PRA-1 Warning — Add an exporter test for an invalid local OCI receipt

  • Location: scripts/checks/export-dcode-base-resolution-label.mts:156
  • Category: tests
  • Problem: The exporter branch for a mutable local inspection reference has no direct test. Existing tests cover only createDcodeBaseResolutionMetadata and workflow text, so a receipt-validation regression can reach release workflows without a focused executable check.
  • Impact: A receipt digest mismatch could weaken the evidence binding from a mutable local base reference to the final-image label without a direct regression test.
  • Recommendation: Add one mocked-boundary test for exportDcodeBaseResolutionLabel with a mutable inspection reference and a mismatched local OCI receipt digest.
  • Verification: Inspect test/e2e/support/dcode-base-resolution-label.test.ts for a test that invokes exportDcodeBaseResolutionLabel and stubs Docker and filesystem boundaries.
  • Test coverage: Invoke exportDcodeBaseResolutionLabel with a receipt whose index manifest digest differs from the exact reference. Assert it throws before Docker inspection and leaves the output file without resolution_key or resolution_label.
  • Evidence: scripts/checks/export-dcode-base-resolution-label.mts:156-163 requires a local OCI receipt for mutable inspection references and validates it before image inspection. test/e2e/support/dcode-base-resolution-label.test.ts:32-60 tests pure metadata construction and encoding only. test/e2e/support/dcode-base-resolution-workflow.test.ts:19-65 inspects workflow text rather than executing the exporter.

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: dcode LangChain Deep Code integration behavior labels Nov 16, 2026
@cv
cv deleted the fix/dcode-final-base-resolution-9386-stack branch November 21, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: dcode LangChain Deep Code integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants