Skip to content

feat(release): attest daily image requests - #9814

Merged
jyaunches merged 1 commit into
mainfrom
codex/9799-daily-tag-image-request
Aug 21, 2026
Merged

jyaunches merged 1 commit into
mainfrom
codex/9799-daily-tag-image-request

Conversation

@jyaunches

@jyaunches jyaunches commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Daily signed vX.Y.Z release tags currently publish the normal release assets but do not request a Brev image in a dedicated Daily Tag family. This adds a separate least-privilege tag-push caller that attests the exact signed tag event and dispatches the fixed downstream Daily Image workflow.

The existing lkg to nemoclaw-brev-cpu production path is unchanged. This PR does not dispatch a workflow, build or publish an image, or change GCP state.

Related Issue

Fixes #9799

Downstream contract: brevdev/nemoclaw-image#124

Changes

  • Add Release / Daily Brev Image for attempt-1, non-deletion, canonical semver tag pushes only.
  • Verify the annotated tag object, GitHub verification result, direct commit target, event SHA, and protected-main reachability before creating a request.
  • Upload and attest canonical request bytes that bind the dynamic release ref, release tag, tag-object SHA, peeled commit, source run, and fixed downstream workflow.
  • Isolate attestation permissions from the existing cross-repository dispatch secret; pass only source run ID and attempt downstream and never wait for the downstream build.
  • Add positive, negative, ambiguous-write, secret-redaction, workflow-boundary, source-shape, and opaque-input regression coverage.

The dedicated downstream workflow, project, family, protected environment, WIF publisher, evidence storage, source workflow ID pin, and release-tag creation restriction must be ready before this caller merges or is activated.

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: Independent nine-category review found no code-level vulnerability at d67fc33e85dcddbc2c50ee2b1f7ccc94d1af4f9f. It identified an activation blocker: restrict refs/tags/v* creation to the release principal before merge or activation. This PR remains draft while that and the listed downstream controls are provisioned.
  • 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 — focused Vitest: 2 files, 83 tests passed; actionlint, ShellCheck, Bash syntax, repository shfmt, npm run checks:repository, and npm run source-shape:check passed
  • Applicable broad gate passed — Not run. The new behavior is a deterministic workflow/script boundary; focused tests and normal hooks cover it without external writes.
  • 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: Julie Yaunches [email protected]

Summary by CodeRabbit

  • New Features

    • Added an automated, secure process for preparing and dispatching daily Brev image builds from version tags.
    • Added validation for release context, verified tags, request integrity, and build results.
    • Added release summaries with dispatch details and safeguards against unsafe retries.
  • Tests

    • Added comprehensive coverage for workflow security, validation, dispatch behavior, and failure handling.
    • Added automated test monitoring for related workflow and script changes.

@copy-pr-bot

copy-pr-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e293775a-b0f8-44ac-b7f3-51b439d427d5

📥 Commits

Reviewing files that changed from the base of the PR and between 95efa26 and d67fc33.

📒 Files selected for processing (6)
  • .github/workflows/release-daily-brev-image.yaml
  • ci/source-shape-test-budget.json
  • scripts/release-daily-brev-image.sh
  • test/helpers/vitest-watch-triggers.ts
  • test/release-daily-brev-image.test.ts
  • test/vitest-watch-triggers.test.ts

📝 Walkthrough

Walkthrough

Changes

Daily Brev image release

Layer / File(s) Summary
Request validation and preparation
scripts/release-daily-brev-image.sh
The script validates release context and verified tag provenance. It creates canonical request bytes, checks file contents and permissions, and records dispatch state.
Workflow gating and attestation
.github/workflows/release-daily-brev-image.yaml, ci/source-shape-test-budget.json, test/release-daily-brev-image.test.ts
The workflow handles eligible version tags, prepares and attests the request artifact, and applies scoped permissions and concurrency controls.
Downstream dispatch and validation
scripts/release-daily-brev-image.sh, .github/workflows/release-daily-brev-image.yaml, test/release-daily-brev-image.test.ts, test/helpers/vitest-watch-triggers.ts, test/vitest-watch-triggers.test.ts
The dependent job dispatches the downstream image workflow. Tests cover payloads, returned run identity, credential boundaries, failure handling, and watch triggers.

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

Sequence Diagram(s)

sequenceDiagram
  participant GitHub
  participant attest-daily-image-request
  participant release-daily-brev-image.sh
  participant artifact_attestation
  participant dispatch-daily-image
  GitHub->>attest-daily-image-request: trigger on eligible version tag
  attest-daily-image-request->>release-daily-brev-image.sh: prepare-request
  release-daily-brev-image.sh-->>attest-daily-image-request: canonical request file
  attest-daily-image-request->>artifact_attestation: upload and attest request
  attest-daily-image-request->>dispatch-daily-image: complete successfully
  dispatch-daily-image->>release-daily-brev-image.sh: dispatch-image
  release-daily-brev-image.sh->>GitHub: dispatch downstream workflow
  GitHub-->>release-daily-brev-image.sh: downstream run identity
Loading

Suggested reviewers: apurvvkumaria, ericksoa, aasthajh

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/9799-daily-tag-image-request

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

@github-code-quality

github-code-quality Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit d67fc33 in the codex/9799-daily-tag... branch remains at 96%, unchanged from commit 87e8f53 in the main branch.

TypeScript / code-coverage/cli

The overall line coverage in commit d67fc33 in the codex/9799-daily-tag... branch remains at 83%, unchanged from commit 3ce4dc9 in the main branch.

Show a line coverage summary of the most impacted files.
File main 3ce4dc9 codex/9799-daily-tag... d67fc33 +/-
src/lib/onboard...icy-tier-env.ts 82% 45% -37%
src/lib/inferen...apter-common.ts 91% 74% -17%
src/lib/inferen...pter-forward.ts 79% 73% -6%
src/lib/onboard...-run-attempt.ts 89% 91% +2%
src/lib/onboard...-preparation.ts 78% 81% +3%
src/lib/policy/index.ts 64% 72% +8%
src/lib/onboard...nce-topology.ts 71% 83% +12%
src/lib/hermes-...teway-broker.ts 46% 73% +27%
src/lib/onboard...-preset-sync.ts 11% 46% +35%
src/lib/policy/...-set-outcome.ts 0% 100% +100%

Updated August 20, 2026 22:10 UTC

@github-actions

github-actions Bot commented Aug 20, 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): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Model comparison: normalized findings match; normalized terminology decisions differ; normalized E2E selections differ; severity counts match.
3 terminology differences from the second opinion

Advisory only. These are normalized differences from the primary terminology receipt.

  • attest at .github/workflows/release-daily-brev-image.yaml:25: selected only by the second-opinion lane as established.
  • Brev at .github/workflows/release-daily-brev-image.yaml:4: selected only by the second-opinion lane as established.
  • daily image request at scripts/release-daily-brev-image.sh:13: selected only by the second-opinion lane as established.
2 additional E2E selections from the second opinion

Advisory only. The primary lane did not select these E2E jobs or targets.

  • e2e-all: The completed second-opinion lane identified E2E coverage that the primary lane omitted.
  • managed-image-protected-runtime: The completed second-opinion lane identified E2E coverage that the primary lane omitted.

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

2 semantic terminology decisions

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

  • define — daily image request at .github/workflows/release-daily-brev-image.yaml:19: Keep this term for the attested request artifact and use the existing schema identifier where exact protocol identity matters.
  • justified — isolated dispatch job at test/release-daily-brev-image.test.ts:220: Keep the term in the behavior-oriented test title because it identifies the credential boundary.

E2E guidance

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

Recommended E2E: None

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

Workflow run details

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

@jyaunches
jyaunches marked this pull request as ready for review August 21, 2026 00:12
@jyaunches
jyaunches merged commit 0c4ff8f into main Aug 21, 2026
81 of 84 checks passed
@jyaunches
jyaunches deleted the codex/9799-daily-tag-image-request branch August 21, 2026 00:13
@wscurran wscurran added the feature PR adds or expands user-visible functionality label Aug 24, 2026
@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 platform: brev Affects Brev hosted development environments labels Nov 3, 2026
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 feature PR adds or expands user-visible functionality platform: brev Affects Brev hosted development environments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dispatch a dedicated Brev image build for each daily release tag

2 participants