Skip to content

feat(release): surface validated Brev image evidence - #8852

Open
jyaunches wants to merge 2 commits into
mainfrom
codex/release-validated-brev-image
Open

feat(release): surface validated Brev image evidence#8852
jyaunches wants to merge 2 commits into
mainfrom
codex/release-validated-brev-image

Conversation

@jyaunches

@jyaunches jyaunches commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Release preparation now separates the exact-candidate ordinary E2E ledger from historically validated Launchable image evidence. Maintainers see immutable GCP identity, workflow and job timestamps, and the commit distance to the planned release before selecting that evidence or requesting a fresh selective Launchable run. This change is evidence-only: the current lkg path still rebuilds, and exact promotion requires downstream support plus a live READY and identity check.

Changes

  • Preserve the producer image project, name, numeric ID, self-link, creation time, source family, image-repository SHA, and origin workflow identity in the existing launchable-e2e.json artifact.
  • Validate direct main Launchable evidence from full, selective, and push runs while rejecting PR-shaped, stale-identity, malformed, and incomplete receipts.
  • Keep the exact-candidate release ledger on ordinary mode so image qualification remains a separate maintainer decision; require a direct main v2 receipt for that ledger.
  • Present the image and workflow timestamps plus git rev-list commit distance, offer prior evidence or a fresh selective run, and repeat discovery and choice if origin/main moves.
  • State the current boundary explicitly: this PR records historical evidence but does not persist an authenticated promotion handoff, verify current image existence, or change the rebuilding lkg workflow.
  • Update workflow, validator, shell, release-policy, and maintainer-skill contract coverage.

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:
  • Docs updated for user-facing behavior changes
  • Docs 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: Independent final code and security review found no actionable findings. The change requires direct main receipt identity, exact trusted-project image provenance, successful Launchable E2E, and verified cleanup; it also states that historical evidence is not proof of current GCP image existence or promotion.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: docs-updated
  • Evidence: Updated .agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md, .agents/skills/nemoclaw-maintainer-e2e/SKILL.md, .agents/skills/nemoclaw-maintainer-evening/SKILL.md, .agents/skills/nemoclaw-maintainer-policies/references/release-train.md, and test/e2e/README.md.
  • Agent: Codex Desktop

DGX Station Hardware Evidence

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

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 — command/result or justification: Focused integration coverage passed 141 tests; the final diagnostic wording check passed 41 tests; focused E2E-support coverage passed 47 tests.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result: Not required for this focused internal workflow, evidence-validator, and maintainer-procedure change. npm run checks:repository passed.
  • 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) — result: Passed with 0 errors; Fern reported two existing hidden warnings.
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Julie Yaunches jyaunches@nvidia.com

Summary by CodeRabbit

  • Release Workflow

    • Pre-release validation now uses ordinary E2E evidence, with image qualification handled separately.
    • Release image selection validates provenance, identity, timestamps, and candidate ancestry.
    • Evidence can be reused across attempts within a single workflow run, but not across runs.
    • Release confirmation requires successful E2E results and separately validated image evidence.
  • Validation

    • Added stricter checks for workflow receipts, image metadata, provenance, repository revisions, and dispatch settings.
  • Documentation

    • Clarified E2E modes and the separate release-image qualification process.

Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
@jyaunches jyaunches self-assigned this Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The release workflow now uses ordinary E2E evidence for the exact candidate ledger and validates release images separately. Trusted v2 receipts, durable evidence paths, image provenance, ancestry, commit distance, and maintainer image selection are enforced.

Changes

Release evidence qualification

Layer / File(s) Summary
Mode-aware evidence validation
.agents/skills/nemoclaw-maintainer-e2e/scripts/validate-full-e2e-evidence.mts, tools/e2e/brev-launchable-e2e.sh, test/brev-launchable-e2e.test.ts, test/maintainer-e2e-skill.test.ts
Evidence validation supports full, launchable, and push modes. It validates timestamps, selectors, image identity, provenance, boot linkage, repository SHA, and producer metadata.
Ordinary candidate ledger
.agents/skills/nemoclaw-maintainer-cut-release-tag/..., .agents/skills/nemoclaw-maintainer-e2e/SKILL.md, .agents/skills/nemoclaw-maintainer-policies/references/release-train.md, test/release-e2e-evidence.test.ts, test/maintainer-skills-policy.test.ts
Pre-tag validation requires ordinary direct-main v2 evidence bound to the candidate SHA. Staging Launchable work is excluded from the ledger. Rerun evidence is limited to attempts from the same workflow run.
Qualified image selection
.agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md, .agents/skills/nemoclaw-maintainer-evening/SKILL.md, .agents/skills/nemoclaw-maintainer-e2e/SKILL.md, .agents/skills/nemoclaw-maintainer-policies/references/release-train.md, test/e2e/README.md
The workflow selects validated ancestor images or dispatches fresh selective Launchable runs. It records image identity, provenance, cleanup, timestamps, and commit distance separately from the ordinary ledger.
Trusted dispatch receipt controls
.github/workflows/e2e.yaml, tools/e2e/workflow-boundary.mts
Staging receipts include DGX Spark and Jetson dispatch and runner-queue authorization fields.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

Suggested labels: area: e2e, area: ci, area: docs

Suggested reviewers: cv, prekshivyas

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: surfacing validated Brev image evidence for release preparation.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/release-validated-brev-image

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

@github-code-quality

github-code-quality Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit d675d79 in the codex/release-valida... branch remains at 96%, unchanged from commit e73c929 in the main branch.

TypeScript / code-coverage/cli

The overall coverage in commit d675d79 in the codex/release-valida... branch remains at 82%, unchanged from commit e73c929 in the main branch.

Show a code coverage summary of the most impacted files.
File main e73c929 codex/release-valida... d675d79 +/-
src/lib/cua/bounded-file.ts 94% 84% -10%
src/lib/cua/run...ime-manifest.ts 91% 84% -7%
src/lib/cua/contract.ts 87% 80% -7%
src/lib/policy/...ne-exclusion.ts 92% 87% -5%
src/lib/trace.ts 94% 90% -4%
src/lib/state/o...d-checkpoint.ts 90% 87% -3%
src/lib/onboard...press-resume.ts 78% 81% +3%
src/lib/securit...ntial-filter.ts 91% 95% +4%
src/lib/messagi...annel-config.ts 92% 99% +7%
src/lib/onboard...der/snapshot.ts 75% 83% +8%

Updated August 12, 2026 04:34 UTC

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.agents/skills/nemoclaw-maintainer-e2e/SKILL.md (1)

336-370: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Derive EVIDENCE_MODE before validation.

Lines 353-370 use the legacy full-mode validator when EVIDENCE_MODE is unset. Lines 400-407 derive the mode only after that command. A valid selective Launchable or push artifact can therefore fail the full-mode selector checks before image validation starts.

Read dispatch.json after artifact download, derive EVIDENCE_MODE, and pass --mode in the same validation procedure.

Also applies to: 398-407

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.agents/skills/nemoclaw-maintainer-e2e/SKILL.md around lines 336 - 370, The
validation flow must derive EVIDENCE_MODE before invoking
validate-full-e2e-evidence. After downloading the artifact and before
constructing VALIDATOR_MODE_ARGS or running the validator, read
FULL_E2E_DIR/dispatch.json and determine whether the evidence is full,
launchable, or push; then pass the derived --mode value for selective Launchable
and push candidates while preserving the legacy full-run behavior when no mode
applies. Remove or relocate the later derivation near the existing validation
logic.
🧹 Nitpick comments (1)
tools/e2e/workflow-boundary.mts (1)

4214-4219: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Enforce boolean serialization in the boundary check.

The workflow uses --argjson for these fields on Lines 744-746, but this validator only requires the object properties. A future change to --arg would serialize "false" or "true" as strings and still pass this check. The supplied receipt fixture in test/openshell-e2e-qualification.test.ts expects JSON booleans. Require the three --argjson fragments here and add a regression case that rejects --arg.

Proposed validator guard
   for (const required of [
     'kind: "nemoclaw-e2e-dispatch-v1"',
     "candidateSha: $candidateSha",
     "eventName: $eventName",
     "workflowRunId: $workflowRunId",
     "workflowRunAttempt: $workflowRunAttempt",
+    '--argjson allowDgxSparkRunnerQueue "$ALLOW_DGX_SPARK_RUNNER_QUEUE"',
+    '--argjson allowJetsonDispatch "$ALLOW_JETSON_DISPATCH"',
+    '--argjson allowJetsonRunnerQueue "$ALLOW_JETSON_RUNNER_QUEUE"',
     "allowDgxSparkRunnerQueue: $allowDgxSparkRunnerQueue",
     "allowJetsonDispatch: $allowJetsonDispatch",
     "allowJetsonRunnerQueue: $allowJetsonRunnerQueue",

Also applies to: 4242-4244

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tools/e2e/workflow-boundary.mts` around lines 4214 - 4219, Update the
boundary validator checks around the ALLOW_DGX_SPARK_RUNNER_QUEUE,
ALLOW_JETSON_DISPATCH, and ALLOW_JETSON_RUNNER_QUEUE entries to require their
corresponding jq invocations use --argjson, not --arg, so serialized values
remain JSON booleans. Apply the same requirement to the additional matching
entries noted in the comment, and add a regression case in the relevant
qualification test that rejects --arg for these fields.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.agents/skills/nemoclaw-maintainer-e2e/SKILL.md:
- Around line 336-370: The validation flow must derive EVIDENCE_MODE before
invoking validate-full-e2e-evidence. After downloading the artifact and before
constructing VALIDATOR_MODE_ARGS or running the validator, read
FULL_E2E_DIR/dispatch.json and determine whether the evidence is full,
launchable, or push; then pass the derived --mode value for selective Launchable
and push candidates while preserving the legacy full-run behavior when no mode
applies. Remove or relocate the later derivation near the existing validation
logic.

---

Nitpick comments:
In `@tools/e2e/workflow-boundary.mts`:
- Around line 4214-4219: Update the boundary validator checks around the
ALLOW_DGX_SPARK_RUNNER_QUEUE, ALLOW_JETSON_DISPATCH, and
ALLOW_JETSON_RUNNER_QUEUE entries to require their corresponding jq invocations
use --argjson, not --arg, so serialized values remain JSON booleans. Apply the
same requirement to the additional matching entries noted in the comment, and
add a regression case in the relevant qualification test that rejects --arg for
these fields.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: a26d6771-6a96-4d86-836d-60e8a5094b7b

📥 Commits

Reviewing files that changed from the base of the PR and between e73c929 and d675d79.

📒 Files selected for processing (14)
  • .agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md
  • .agents/skills/nemoclaw-maintainer-cut-release-tag/scripts/release-e2e-evidence.mts
  • .agents/skills/nemoclaw-maintainer-e2e/SKILL.md
  • .agents/skills/nemoclaw-maintainer-e2e/scripts/validate-full-e2e-evidence.mts
  • .agents/skills/nemoclaw-maintainer-evening/SKILL.md
  • .agents/skills/nemoclaw-maintainer-policies/references/release-train.md
  • .github/workflows/e2e.yaml
  • test/brev-launchable-e2e.test.ts
  • test/e2e/README.md
  • test/maintainer-e2e-skill.test.ts
  • test/maintainer-skills-policy.test.ts
  • test/release-e2e-evidence.test.ts
  • tools/e2e/brev-launchable-e2e.sh
  • tools/e2e/workflow-boundary.mts

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings reported

Advisor assessment: No blocking advisor findings reported
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions

Model lanes

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

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

Since last review: 1 prior item resolved · 0 still apply · 0 new items found

3 semantic terminology decisions

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

  • justified — release ledger at .agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md:230: Keep exact-candidate release ledger when the release commit binding matters.
  • justified — image qualification at .agents/skills/nemoclaw-maintainer-cut-release-tag/SKILL.md:230: Keep image qualification for the separate image-evidence decision.
  • established — image evidence at .agents/skills/nemoclaw-maintainer-e2e/SKILL.md:398: Use qualified image evidence consistently for the validated release-image record.

E2E guidance

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

Recommended E2E: None

Manual-only E2E: cloud-inference, cloud-onboard, security-posture
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
  • staging-brev-launchable

Workflow run details

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

@prekshivyas prekshivyas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking procedure finding on latest PR commit d675d7928.

The release-image path invokes validate-full-e2e-evidence.mts at .agents/skills/nemoclaw-maintainer-e2e/SKILL.md:353-366 before the procedure derives EVIDENCE_MODE from the downloaded receipt at lines 398-407. A maintainer following the executable block with the variable unset enters the legacy full-run validator; valid selective Launchable and push receipts are then evaluated under the wrong event/selector contract. The intended stricter direct-main validation is also not selected by the block itself.

Please derive and validate the mode from run-$RUN_ID.json plus dispatch.json before constructing the validator arguments, or provide one command that derives and validates the mode atomically. Add contract coverage for the documented execution order for full, selective Launchable, and push receipts.

Security rubric: 1 PASS (no credential flow added); 2 PASS (receipt fields are constrained); 3 PASS (trusted-project and direct-main authority is modeled); 4 PASS (no dependency change); 5 PASS (invalid receipts fail closed); 6 PASS (no cryptography change); 7 PASS (workflow defaults remain restrictive); 8 WARNING (tests do not exercise the documented command sequence); 9 WARNING (the mode control is ordered after its consumer). Files reviewed: the complete 14-file diff.

@copy-pr-bot

copy-pr-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
test/brev-launchable-e2e.test.ts (1)

422-427: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Assert that the SSH readiness probe ran.

This test can pass if an earlier failure emits "host SSH readiness timed out" without executing an SSH readiness probe. Assert at least one recorded SSH readiness attempt before checking that E2E did not run.

Proposed test change
     expect(result.status).not.toBe(0);
     expect(result.stderr).toContain("host SSH readiness timed out");
+    expect(fs.readFileSync(calls, "utf8")).toContain("ssh host readiness attempt 1:");
     expect(fs.readFileSync(calls, "utf8")).not.toMatch(/brev exec|full-e2e\.test\.ts/u);

As per path instructions, review tests for behavioral confidence rather than implementation lock-in.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/brev-launchable-e2e.test.ts` around lines 422 - 427, Update the test
around fixture() and run() to assert that the recorded calls contain at least
one SSH readiness probe before asserting that E2E execution did not occur. Use
the existing calls log and its established readiness-probe signature, preserving
the current timeout and workspace-cleanup assertions without coupling the test
to unrelated implementation details.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@test/brev-launchable-e2e.test.ts`:
- Around line 422-427: Update the test around fixture() and run() to assert that
the recorded calls contain at least one SSH readiness probe before asserting
that E2E execution did not occur. Use the existing calls log and its established
readiness-probe signature, preserving the current timeout and workspace-cleanup
assertions without coupling the test to unrelated implementation details.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f22955c8-8e58-4c60-bd31-f33dad8f3a87

📥 Commits

Reviewing files that changed from the base of the PR and between d675d79 and 0fc45b8.

📒 Files selected for processing (2)
  • test/brev-launchable-e2e.test.ts
  • tools/e2e/brev-launchable-e2e.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • tools/e2e/brev-launchable-e2e.sh

@prekshivyas prekshivyas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed exact head 0fc45b8696 after the merge commit. The blocking procedure defect remains unchanged: the executable block invokes validate-full-e2e-evidence.mts using EVIDENCE_MODE before the later selection procedure derives that mode from dispatch.json. A maintainer following the documented order can still validate a selective Launchable or push receipt under the legacy full contract.

Derive and validate full, launchable, or push from the trusted run and dispatch receipts before constructing VALIDATOR_MODE_ARGS, or make derivation and validation one atomic command. Add contract coverage for the documented execution order. Exact-head CI is green, but this code-path blocker prevents approval.

@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure feature PR adds or expands user-visible functionality labels Aug 12, 2026

@prekshivyas prekshivyas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed remote head 0fc45b869 against current main at 93461f3fa.

The documented execution-order defect remains on the remote head: the procedure consumes EVIDENCE_MODE before deriving it. I validated a minimal local correction that derives full, launchable, or push before validator argument construction; its focused policy, workflow-boundary, and Brev tests pass.

That correction cannot be pushed safely onto the current base. Since this PR was last synchronized, main merged the release-qualification and E2E consolidation work. The current base deletes both evidence scripts modified here and moves their responsibilities into the consolidated workflow. A base sync now produces semantic conflicts across the release skills, E2E workflow, validator, and tests.

Maintainer direction is required before further implementation: decide whether this historical Brev image-evidence feature remains part of the consolidated release design and, if so, define its current owner and contract. Do not reintroduce the deleted scripts or document the old flow as canonical without that decision. The PR remains changes requested and is not ready for approval.

@senthilr-nv senthilr-nv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of commit 0fc45b8696a1498f56114a07e4e53ab1b2c8a590: this PR is not approval-ready.

The release-evidence design is based on an older workflow and maintainer-skill contract. The branch now conflicts with current main, and the required changes result is skipped. Resolving these conflicts would require choosing the current release evidence policy and cannot be treated as a mechanical refresh.

Reconstruct the change from current main only after confirming the accepted release evidence contract, then rerun the complete workflow, test, documentation, security, CodeRabbit, and advisor gates. Do not merge the current conflicting branch.

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: e2e End-to-end tests, nightly failures, or validation infrastructure feature PR adds or expands user-visible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants