Repository navigation
fix(ci): preserve native Podman E2E toolchain inputs - #12550
Conversation
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Prekshi Vyas <[email protected]>
Signed-off-by: Aaron Erickson <[email protected]>
Signed-off-by: Aaron Erickson <[email protected]>
Signed-off-by: Aaron Erickson <[email protected]>
|
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. |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 3cfcebe in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit 3cfcebe in the Show a line coverage summary of the most impacted files.
Updated |
Signed-off-by: Rebecca Sliter <[email protected]>
Signed-off-by: Rebecca Sliter <[email protected]>
Signed-off-by: Rebecca Sliter <[email protected]>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
Bootstrap exception authorization for exact head 3cfcebe\n\nRebecca authorized a narrowly scoped bootstrap exception for the Advisor-selected portable-hermes-finalization E2E.\n\nEvidence:\n- Advisor run: https://github.com/NVIDIA/NemoClaw/actions/runs/38260311331\n- Trusted E2E run: https://github.com/NVIDIA/NemoClaw/actions/runs/38261537469\n- Verified v2 receipt artifact: 11753305423\n- Retained result artifact: 11753245775\n- Classification: inherited trusted-main infrastructure and evidence-expiry failure. The run failed in generate-matrix before candidate checkout or execution because canonical main invoked action 5ec38cf, which references expired artifacts 11528275310 and 11528091073.\n- Latest inspected canonical main ef5d55d still contains that action pin and those expired artifact IDs.\n\nThis exception does not treat the failed run as passing evidence. It waives only the impossible pre-merge manual E2E for this self-referential infrastructure repair. Merge still requires the same exact head, terminal clean checks and automated review, mergeability, and eligible human approval.\n\nAfter merge, the repair must be verified on canonical main before dependent work advances. Then exactly one fresh trusted portable-hermes-finalization E2E will be dispatched for PR #12244 from the repaired canonical-main workflow. If post-merge verification fails, dependent work stops and the repair is reverted or corrected. Rollback is conditional on failed verification, not automatic. |
rsliter
left a comment
There was a problem hiding this comment.
Independent review of exact head 3cfcebe2fcbe82f9b1e003878fcdfd5678998fc8 against base 639a4c6bac2687ec1fc48ea9a5e8d81a84312a7a.
Verdict
PASS. I found no actionable code or security finding in the four-file repair. The change preserves the trusted pre-candidate boundary, replaces expiring workflow artifacts with exact release assets, and fails closed on identity or integrity mismatch. This is a non-approving review and does not satisfy the eligible-human approval gate.
Findings
None.
Security rubric
- Secrets and credentials: PASS. The action receives only the workflow's read-only GitHub token, does not log it, and runs before candidate checkout.
- Input validation and sanitization: PASS. Release ID, tag, target commit, draft state, asset IDs, names, upload state, sizes, and digests are all exact constants; paths are fixed under
RUNNER_TEMPand quoted. - Authentication and authorization: PASS. The owning job retains read-only
actions,contents, andpull-requestspermissions. No permission was added or widened. - Dependencies and third-party code: PASS. Workflow actions use immutable commit pins. Release assets are selected by immutable IDs and independently checked against pinned SHA-256 digests.
- Error handling and logging: PASS.
set -euo pipefailand explicitjq, archive, and payload checks stop the job before candidate execution or artifact publication on failure. - Cryptography and data protection: PASS. Each downloaded ZIP is SHA-256 verified before extraction, then its authenticated
SHA256SUMSis checked after extraction. - Configuration and security defaults: PASS. Native Podman staging stays conditional on the existing Podman and Portable Hermes selectors and does not weaken runner or workflow permissions.
- Security testing: PASS. The boundary policy pins the complete action content digest. Mutation tests cover asset ID, digest, release ID, verification order, action reference, execution condition, and staging order. Independent rerun: 250/250 tests passed.
- System security: PASS. Staging remains before candidate checkout and workspace preparation. Both architecture assets must download and verify before either per-run artifact can publish, and downstream consumers retain exact-file, manifest, checksum, and no-symlink checks.
E2E evidence
The exact-head Advisor recommended exactly one manual selector: jobs=portable-hermes-finalization. No other Advisor specialist recommended an additional selector.
That selector was dispatched once in run 38261537469. It failed in generate-matrix before candidate checkout because canonical main still invoked action 5ec38cfc369b3dac4df5207d8dda20805a72cbda, whose source artifacts had expired. Candidate execution was skipped. The bootstrap exception waives only this impossible pre-merge run for this exact head; it does not count the run as passing.
Local evidence reviewed: exact action content hash 7fd90d4dc1fbed1c0c037a33239e68ab29ff7e937744743398d87cf834ac5c2a; release 400756116 and assets 602749331 and 602749330 match the pinned names, sizes, and digests; focused boundary suite passed 250/250.
rsliter
left a comment
There was a problem hiding this comment.
Approved for exact head 3cfcebe based on the independent PASS review submitted on 2026-10-13. The four-file repair has no actionable code or security findings, preserves the trusted pre-candidate boundary, pins immutable release assets with fail-closed identity and integrity checks, and has terminal clean exact-head CI and automated review. The recorded bootstrap exception applies only to the impossible pre-merge portable-hermes-finalization run; post-merge verification on canonical main remains required.
Use the bare HTTPS-pin route for Anthropic Messages so SDK requests match the admitted /v1/messages path. Preserve OpenAI routing and exact transport validation. Restore hosted-native export refusal coverage, correct the fixture log newline, and cover custom-hosted fixture path selection. Integrate main after #12550 merged, resolving its toolchain staging conflicts with the reviewed release-backed action and matching provenance. Validated 525 workflow/receipt tests, 110 export tests, 10 transport tests, onboarding smoke, CLI typecheck, and isolated normal hooks. Signed-off-by: Deepak Jain <[email protected]>
## Outcome Revert #12550 and restore the previous native Podman E2E toolchain staging path while the Portable Hermes CLI restore-action mismatch remains unresolved. This intentionally returns trusted native Podman E2E to its known pre-merge blocked state until the prerequisite workflow repair is ready. ## Reason Focused post-merge main E2E run 38473188463 confirmed that #12550's immutable release retrieval, integrity verification, staging, and cleanup work. The run then failed before target execution because the Portable Hermes lane still pins an older CLI restore action that requires the retired `snapshot-sanitizer-boundary.cjs` module. The maintainer requested reverting #12550 until that prerequisite can be merged safely. ## Changes - Revert the four files changed by squash commit `c3941bab1fdd0c565550731103fdd051cf54001a`. - Restore the prior staging-action pin, workflow-boundary policy, and matching regression expectations. - Leave the separate Portable Hermes restore-action mismatch unchanged for a coordinated follow-up. ## Verification - `node node_modules/vitest/vitest.mjs run --project e2e-support test/e2e/support/shared-e2e-workflow-boundary.test.ts --testTimeout=30000` - 250 tests passed. - `npm run checks:repository` - all 18 selected repository checks passed. - `npm run validate:pr` - publication validation and applicable pre-commit and pre-push checks passed, including CLI TypeScript validation. - `git diff --exit-code c3941ba^ HEAD` - the resulting tree exactly matches the parent of #12550's squash commit. - Diff review - exactly the four #12550 files are reverted; no secrets, API keys, or credentials are present. ## Review notes Sensitive paths are `.github/actions/stage-native-podman-e2e-toolchains/action.yaml`, `.github/workflows/e2e.yaml`, and `tools/e2e/workflow-boundary-policy.mts`. This revert deliberately restores the expired source-run artifact path, so trusted native Podman E2E remains unavailable until the follow-up repair is ready. It does not address or invalidate #12244's candidate changes. --- Signed-off-by: Rebecca Sliter <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Workflow Improvements** * End-to-end test workflows now stage native Podman toolchains from verified artifacts produced by a fixed source run, rather than from release assets. * Toolchain artifacts are checked for identity, expiration, digest, and source-run provenance before they are downloaded and published. * The workflow stages both amd64 and arm64 toolchains before candidate checkout and workspace preparation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Rebecca Sliter <[email protected]> Co-authored-by: Rebecca Sliter <[email protected]>
## Outcome Restore durable native Podman toolchain staging and make Portable Hermes restore the current exact-commit CLI artifact. Trusted Portable Hermes E2E can now cross both prerequisite boundaries without depending on expired source-run artifacts or a stale restore-action contract. ## Reason PR #12550 fixed the expired native Podman toolchain artifacts, but its focused post-merge run exposed a separate stale Portable Hermes restore-action pin. Run 38473188463 verified the #12550 staging path through immutable asset retrieval, integrity checks, publication, and cleanup, then stopped because the old restore action still required `snapshot-sanitizer-boundary.cjs`, which had already been removed from the current CLI artifact contract. ### Related issues Refs #12550 Refs #13118 Refs #12244 ## Changes - Reapply #12550's immutable native Podman toolchain staging action and reviewed workflow pin. - Bind the staging action to release `400756116` and exact AMD64 and ARM64 asset identities, sizes, and SHA-256 digests while preserving the pre-candidate trust boundary and downstream artifact contract. - Update Portable Hermes finalization to use `restore-e2e-cli-artifact@b1494a0`, which matches the current artifact producer contract. - Add a central workflow-boundary check that requires Portable Hermes to use the reviewed exact-commit CLI restore action and the planner's exact provenance output, with stale-pin, missing-step, and replaced-provenance regressions. ## Verification - `npx vitest run --project e2e-support test/e2e/support/shared-e2e-workflow-boundary.test.ts` - 253 tests passed. - `npm run checks:repository` - all 18 repository checks passed. - `npm --prefix nemoclaw run build` - passed. - `npm run build:cli` - passed. - `NODE_OPTIONS=--max-old-space-size=8192 npm run typecheck:cli` - passed. - Normal pre-push publication validation passed on exact head `80b8467557d3120f6f7981a4f039dd7517af554c`, including CLI TypeScript validation. - `NODE_OPTIONS=--max-old-space-size=8192 NEMOCLAW_TEST_TIMEOUT=60000 npm run check` - environmentally inconclusive on this macOS host. The broad suite reached unrelated failures caused by BSD `tar` and `stat` incompatibilities, missing Python `yaml`, SQLite warning output, and host resource timeouts. The failures do not exercise the five changed files, and the unchanged command was not rerun. - `git diff --check origin/main...HEAD` - passed. - Diff review - seven intended files differ from canonical `main`; no secrets, API keys, or credentials are present. ## Review notes Sensitive paths are `.github/actions/stage-native-podman-e2e-toolchains/action.yaml`, `.github/workflows/e2e.yaml`, and the central E2E workflow-boundary policy and validators. Publication is based on canonical base `8a5718dd14a2c2e440011488b1f3a32e9414cf82` and exact candidate `80b8467557d3120f6f7981a4f039dd7517af554c`. Dependency and hook inputs match the base. Resolved tools were Node `/opt/homebrew/bin/node` `v22.23.2`, npm `/opt/homebrew/bin/npm` `10.9.8`, and the locked local `tsx` entrypoint. `package-lock.json` SHA-256 is `543ad34dbdd4b0bc5f273bdfb5942699c059ef411937d8de4bb8db8eed16179f`. The workflow-boundary validator is intentionally part of this change because the fix protects the Portable Hermes CLI restore pin. Advisor run `38501415253` found two valid P1 gaps on the original head: duplicated restore-step ownership and failure to require the Portable Hermes restore step. Head `d3c9d80596a8a00ee6dd162a012fd495f65bb283` resolved both. Advisor run `38505089891` then found that the all-job restore scan duplicated job-specific validators; head `57b0dac4e7cc32ffdc603d13dbf2e10dbda991eb` removed that second authority. Advisor run `38508455355` found that Portable Hermes could replace the planner's `provenance-json` input while retaining the reviewed action pin; head `01ddea91c9a1c1cf78337cc5a4e94f90ddd108e6` bound that input exactly and added the missing mutation regression. Advisor run `38512409947` then found that the canonical CLI restore-step constant was routed through the unrelated workspace-bootstrap validator. Exact head `80b8467557d3120f6f7981a4f039dd7517af554c` removes that re-export and keeps the Portable Hermes restore validator with the existing artifact-action provenance owner, which already imports the canonical CLI artifact contract. This preserves the repository fan-out budget while eliminating the unrelated ownership route. Fresh exact-head CI, automated review, Advisor selection, and required trusted E2E remain pending. This PR does not change #12244. <!-- pr-13129-portable-hermes-exception-v2 --> ## Portable Hermes pre-merge exception and follow-through Rebecca renewed this narrowly scoped exception for exact commit `010d972ddb182ba3de0641b5f62e7f060453fa77` on October 14, 2026. It follows the precedent recorded for [#12550](#12550 (comment)). The prior exception for `0ca871ec8140c7ffaa4afa25b4e783155e87fbea` is historical and does not apply to this commit. ### Classification and scope - Exact-commit Advisor [run 38607976778](https://github.com/NVIDIA/NemoClaw/actions/runs/38607976778) completed all nine specialists and the blocker gate with no findings. Plan v26 `e82631ad58c5cac642a4002140d7365c2d6a19c9ea5c88d3d2aa510606a4cefc` requires `cloud-onboard`, `full-e2e`, `security-posture`, and separately `portable-hermes-finalization`. - Exact-commit deterministic-floor [run 38609680458](https://github.com/NVIDIA/NemoClaw/actions/runs/38609680458) is in progress. Its verified immutable v2 receipt binds candidate `010d972ddb182ba3de0641b5f62e7f060453fa77`, base `e7840acd43451ae79191854aacafdf9e206983ed`, trusted workflow `45a898e2b70839a5a728fd5dedaa450110da075c`, selectors `cloud-onboard,full-e2e,security-posture`, and correlation `79d0de5b-6180-45be-a5c4-8258d44ec3c6`. This exception does not waive that run or any failure it reports. - Pre-merge `portable-hermes-finalization` remains self-referential. The trusted controller on canonical main has not adopted this PR's replacement native Podman staging action or Portable Hermes CLI restore boundary, so it fails before candidate checkout and cannot exercise the repair. This is inherited trusted-controller/base incompatibility, not passing candidate evidence. - The exception waives only the impossible pre-merge `portable-hermes-finalization` execution for exact commit `010d972ddb182ba3de0641b5f62e7f060453fa77`. It does not mark that lane passed, waive any other check or automated review, supply human approval, apply to a changed commit, or authorize protection bypasses. ### Merge gates 1. The deterministic-floor run must pass with exact-commit assertions and cleanup verified. 2. Merge only if exact commit `010d972ddb182ba3de0641b5f62e7f060453fa77` remains GitHub Verified and mergeable; every applicable check and automated review is terminal and clear; the Advisor has no P0/P1 blocker; and an eligible human approval exists on this exact commit. 3. Do not synchronize solely because main advances. Any candidate-commit change invalidates this exception and all exact-commit evidence. Classify every new failure before repair, rerun, synchronization, or revert. ### Required post-merge verification 1. Verify canonical main contains the replacement staging action and workflow pins, the Portable Hermes restore action, exact provenance binding, and boundary regressions from this PR. 2. From that exact canonical-main SHA, dispatch exactly one focused trusted-main E2E with `jobs=portable-hermes-finalization`, a fresh correlation ID, and an immutable dispatch receipt. Do not overlap or duplicate it. 3. Verify the evidence chain binds the tested main SHA and workflow SHA, restored exact-commit CLI artifact provenance, staged AMD64 and ARM64 toolchain asset identities and digests, finalization assertions, and registered cleanup. 4. If staging, CLI restore, finalization assertions, or cleanup fail, classify the failure and stop. Do not resume #12244. Correct or revert this repair as the evidence requires. Do not use a broad rerun instead of diagnosis. 5. Only after the focused post-merge run passes, record its receipt and result on this PR. Then resume #12244 at its then-current exact commit, collect a fresh Advisor plan, and continue without duplicating completed fixes. --- Signed-off-by: Rebecca Sliter <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * End-to-end tests now download native toolchains from a pinned release and verify their integrity before use. * Updated the workflow’s pinned action revisions. * **Tests** * Added checks to reject workflows with missing or outdated artifact restore steps, unsafe execution settings, or incorrect provenance. * Updated boundary tests to cover release asset and provenance validation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Prekshi Vyas <[email protected]> Signed-off-by: Aaron Erickson <[email protected]> Signed-off-by: Rebecca Sliter <[email protected]> Co-authored-by: Aaron Erickson 🦞 <[email protected]> Co-authored-by: Prekshi Vyas <[email protected]> Co-authored-by: Rebecca Sliter <[email protected]>
Outcome
Restore trusted Podman E2E startup after the current source-run artifacts expired. The staging action now retrieves the unchanged reviewed AMD64 and ARM64 toolchains from pinned release assets and republishes the same per-run artifacts consumed by the existing setup action.
Reason
Trusted PR E2E run 38210759366 for #12244 stopped before candidate checkout because source-run artifacts 11528275310 and 11528091073 had expired. Selecting another retained workflow artifact would reproduce the failure after its retention window.
Changes
19eb13446b3eb5e41cca2e65b44c9b33c963a595while retaining currentmainworkflow behavior, including portable Hermes selection and reviewed candidate OpenShell resolution.Verification
node node_modules/vitest/vitest.mjs run --project e2e-support test/e2e/support/shared-e2e-workflow-boundary.test.ts --testTimeout=30000- 250 tests passed on3cfcebe2fcbe82f9b1e003878fcdfd5678998fc8.npm run checks:repository- all 18 selected repository checks passed in a credential-isolated environment.npx --no-install oxfmt --check test/e2e/support/shared-e2e-workflow-boundary.test.ts tools/e2e/workflow-boundary-policy.mts- passed.7fd90d4dc1fbed1c0c037a33239e68ab29ff7e937744743398d87cf834ac5c2a, matching the policy pin.main; no secrets, API keys, or credentials are present.Review notes
Sensitive paths are
.github/actions/stage-native-podman-e2e-toolchains/action.yaml,.github/workflows/e2e.yaml, andtools/e2e/workflow-boundary-policy.mts. The refreshed diff was reviewed against canonicalmainfor immutable identity checks, checksum ordering, read-only credentials, candidate isolation, and fail-closed behavior. Original head6333b1cd8e11c0c73830843a07741da6bde1feb5had completed hosted CI and automated review; the exact-head Advisor P1 duplication finding was repaired; independent checks and review for latest head3cfcebe2fcbe82f9b1e003878fcdfd5678998fc8are pending.Signed-off-by: Aaron Erickson [email protected]
Signed-off-by: Rebecca Sliter [email protected]
Summary by CodeRabbit