Repository navigation
fix(ci): isolate arbitrary-ref installer validation - #140729
vincentkoc wants to merge 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 8, 2026, 3:11 AM ET / 07:11 UTC. ClawSweeper reviewWhat this changesThe PR restricts arbitrary-ref release checks to installer validation and moves candidate packaging, Bun, and QR execution behind trusted tooling and container boundaries. Merge readiness⛔ Blocked before merge - 5 items remain Keep open: the isolation repair remains necessary, and both earlier fixture findings are addressed. Hosted validation now provides useful partial proof, but failed containment and incomplete root-image coverage prevent qualification. No new actionable code defect was established. Priority: P2 Review scores
Verification
How this fits togetherRelease validation accepts a selected source revision and produces installer packages and smoke-test results. Its trusted workflow must execute candidate code without exposing runner credentials, command channels, or persistent build state. flowchart TD
A[Selected source revision] --> B[Resolve identity and admit execution plan]
B --> C[Admitted release checks]
B --> D[Isolated installer validation]
D --> E[Trusted container launchers]
E --> F[Confirm candidate writers stopped]
F --> G[Seal packages and report smoke results]
Before merge
Findings
Agent review detailsSecurityNeeds attention: No concrete introduced escape was established, but the changed candidate-authority boundary still lacks successful containment and cancellation qualification. PR surfaceTests +2405, Config +133, Other +560. Total +3098 across 15 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one trusted installer orchestration path that preserves existing smoke coverage while proving candidate execution cannot acquire runner authority or survive the sealing barrier. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main directly runs the candidate Bun install/runtime smoke on the host, and the PR supplies executable admission fixtures. This review did not execute candidate code or reproduce an exploit. Is this the best way to solve the issue? Yes in direction: separating immutable identity from admission and containing execution at the launcher is appropriate. Successful containment and root-smoke qualification are still needed to validate the complete implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6046641e91b. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Punchcard-Session: coral-orchard-orchard-d4
Punchcard-Session: coral-orchard-orchard-d4
Punchcard-Session: coral-orchard-orchard-d4
Additional instructions
Maintainer edits are enabled through this same-repository branch.
What Problem This Solves
Resolves a problem where release-check dispatches for arbitrary refs could bypass the intended installer-only admission policy or execute candidate-controlled installer tooling with runner authority. Resolving a commit successfully did not, by itself, establish that the requested execution plan was admitted.
Why This Change Was Made
Resolve immutable identity independently of authority, then require the actual computed plan to be installer-only for unadmitted refs. Preserve the existing main, branch-history, and release-tag policies and arbitrary-ref installer coverage.
Use the verified workflow revision for host tooling and nested local actions. Keep candidate packaging, QR execution, and the complete Bun install/lifecycle/CLI/agent/Gateway flow inside isolated containers. Stage only the required trusted Bun closure, suppress candidate log commands, and require positive container absence before cleanup or fresh network-disabled sealing.
The shared candidate packer retains the existing installer payload and supports the reviewed package-plus-registry and registry-only contracts with exact public guest Git identity. An internal package-candidate install-policy opt-in preserves the package caller's existing lifecycle/engine flags without changing installer defaults. Package-acceptance and performance caller repairs remain separate work; this PR's net diff does not modify their workflows or shared composite actions.
The earlier seven-file test follow-up aligned existing tests with the repaired workflow, strengthened fixture shape checks and added QR cache exclusion coverage. The published signed merge preserves that history and integrates main at
77c45a9be74fe4860b0852519d28d690fc908449, including its native-contract resolver and installer-update compatibility assertion. The signed follow-up integrates captured main0c890f5d4b8293bc8c54cd889bfcbf12d562c602without rewriting that ancestry. It preserves incoming selected-source provenance checks, reconciles the test imports and local cleanup tracker, and checks provenance diagnostics across both captured output streams.The new proof hook is restricted to the actual canonical standalone Install Smoke caller; release-checks is excluded even when Bun is enabled. Four fixed, serial CI-only cases reuse the production packer and actual Bun/QR launchers: containment, package-plus-registry, registry-only and empty-required registry. Ordinary unit collection does not start Docker. No new public workflow inputs are introduced.
The two proof-fixture findings in #140729 (comment) are addressed in the published candidate: QR expects the real wrapper's normalized failure status
1while the synthetic child still exits37; registry consumers use the host's numeric nonroot UID:GID with a private writable HOME and npm cache. Read-only registry mounts, hash checks, containment probes and log framing are preserved.User Impact
Maintainers can continue validating arbitrary installer refs without granting them trusted release-runner execution. Admitted release plans keep their existing policy and smoke coverage; obsolete fast/no-op paths are removed rather than reporting empty successes.
No runtime configuration, schema, dependency, version, release, or shipped package contract changes.
Evidence
Published head:
cca8f9c949d2b03a27a2a2179318aa415b62b5af. The normal merge commit passed native hooks; its SSH signature, tree35683917b1aba04a4d49e57d7f452769ff05d6c0, parents399cbf7d3553b7b239753ae67b2488cf33e77e4band0c890f5d4b8293bc8c54cd889bfcbf12d562c602, and all 15 net-diff paths against captured main were verified afterward. The normal fast-forward push to the existing PR branch succeeded. The task worktree is clean. No rebase, force-push, hook bypass or source change during commit.Current exact-head hosted validation, September 8, 2026:
checks-node-compact-small-29, job101945992574, inRun Node test shard;openclaw/ci-gatefailed downstream. The failed test assertion and cause have not been read. Log retrieval did not yield readable data, and structured check output only reports exit code1; no source owner or infrastructure cause is inferred.security-fastsucceeded at this head. CodeQL https://github.com/openclaw/openclaw/actions/runs/34189956146, CodeQL Critical Quality https://github.com/openclaw/openclaw/actions/runs/34189956127 and Workflow Sanity https://github.com/openclaw/openclaw/actions/runs/34189956104 also completed successfully. These results do not make the failed aggregate CI green or establish that individual security alerts are fixed.1, completed with failure: 11 jobs succeeded, 4 failed and 1 skipped. Caller, reusable workflow and target were bound to this exact head, with Bun enabled and update baselinelatest; no release-checks dispatch was used.package-registry,registry-onlyandempty-requiredproof steps succeeded. Normal candidate packaging, Bun, QR, installer nonroot and installer update jobs also succeeded. The containment proof and root-image build failed; root-image readiness and installer aggregate failed downstream, and root Dockerfile smokes were skipped. The containment assertion and root-image build error have not been read.Current local proof:
exec 2>&1. The combined-diagnostics repair preserves status2, positive Docker invocation, and negative no-Docker assertions.37; the wrapper returned1, failing the old expectation and satisfying the repaired expectation. Stop/resume framing remained intact. This is not real Docker or hostile-candidate isolation evidence.0700, and unchanged synthetic registry bytes/mode0750. The mismatched-UID selector check is static, not execution as another UID. No real npm install or container ran.Historical proof retained from the earlier candidate:
022,002and077, then passed after explicitly setting the synthetic canary mode. They prove filesystem permission metadata, not live cross-UID guest access.status=nullwithout a captured cause. Both selected cases then passed a focused 2/2 follow-up, without increased timeouts or weaker assertions. This was not an uninterrupted green batch.Outstanding proof and limitations:
zizmor==1.29.0and exited3. Zizmor and subsequent guards did not execute locally. No pin, shared dependency or global tool configuration was changed. Hosted Workflow Sanity and security-fast succeeded separately; that does not retroactively make the local command pass.