Repository navigation
fix(release): dependency advisories no longer fail or delay a release - #161463
Conversation
Release dependency evidence now blocks only on known malware. Vulnerability advisories of every severity are recorded in the evidence summary and surfaced as GitHub warning annotations, and CI dispatched by Full Release Validation or release publication reports a failing production audit as a warning. The per-release risk-acceptance table existed only to accept advisory blockers and is removed. The release skills also record that main CI health never gates a release and that every failed test gets an explicit real-blocker-or-flake decision.
|
🦞👀 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 29, 2026, 8:56 PM ET / September 30, 2026, 00:56 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch makes dependency advisories nonblocking in release evidence and release-dispatched CI, removes per-release advisory acceptance, and updates release guidance and tests. Merge readiness⛔ Blocked before merge - 15 items remain Current Priority: P2 Review scores
Verification
How this fits togetherRelease tooling scans locked product and tooling dependencies, records advisory evidence, and feeds results into CI and publication decisions. This PR changes both the release dependency gate and the production audit step in CI. flowchart LR
A[Locked dependencies] --> C[Release dependency scan]
B[Advisory feeds] --> C
C --> D{Known malware?}
D -- Yes --> E[Stop publication]
D -- No --> F[Evidence and warnings]
G[CI dispatch context] --> H[Production audit result]
F --> H
Decision needed
Why: The reported incident affected non-shipped release tooling, while this branch also relaxes the product dependency gate; the PR body states a policy direction but no release-owner review confirms that broader tradeoff. Before merge
Findings
Agent review detailsSecurityNeeds attention: The release security gate can pass incomplete scans and typed malware, while a caller-controlled input can select the relaxed CI path. PR surfaceTests -100, Docs +58, Config 0, Other -71. Total -113 across 19 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt an explicitly approved advisory policy that records complete scan findings while keeping incomplete scans and typed malware blocking, with release-child authority verified at the CI decision point. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source shows the existing severity blockers, and the introduced code gives clear paths for the three review findings; this read-only review did not execute a release. Is this the best way to solve the issue? No. Recording advisories can meet the stated release goal, but the current implementation conflates scan failure with findings, trusts a caller-supplied release marker, and discards the provider's malware classification. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b725cc7b27f6. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
ci.yml sits at the 480000-byte guard, so the release-dispatch check moves into a trusted harness script that security-fast already checks out.
…#161463) * fix(release): record dependency advisories without blocking releases Release dependency evidence now blocks only on known malware. Vulnerability advisories of every severity are recorded in the evidence summary and surfaced as GitHub warning annotations, and CI dispatched by Full Release Validation or release publication reports a failing production audit as a warning. The per-release risk-acceptance table existed only to accept advisory blockers and is removed. The release skills also record that main CI health never gates a release and that every failed test gets an explicit real-blocker-or-flake decision. * fix(ci): keep release audit relaxation within the workflow size budget ci.yml sits at the 480000-byte guard, so the release-dispatch check moves into a trusted harness script that security-fast already checks out. (cherry picked from commit 56f616e)
…openclaw#161463) * fix(release): record dependency advisories without blocking releases Release dependency evidence now blocks only on known malware. Vulnerability advisories of every severity are recorded in the evidence summary and surfaced as GitHub warning annotations, and CI dispatched by Full Release Validation or release publication reports a failing production audit as a warning. The per-release risk-acceptance table existed only to accept advisory blockers and is removed. The release skills also record that main CI health never gates a release and that every failed test gets an explicit real-blocker-or-flake decision. * fix(ci): keep release audit relaxation within the workflow size budget ci.yml sits at the 480000-byte guard, so the release-dispatch check moves into a trusted harness script that security-fast already checks out.
What Problem This Solves
Fixes: a newly published dependency advisory fails release validation and publication, forcing a release-tooling change and a full revalidation even when the vulnerable package never ships.
During the 2026.9.7 stable release, GHSA-rfgv-xxqx-mfg5 (undici 6.x denial of service, published hours earlier) made the dependency vulnerability gate hard-fail the npm artifacts producer. The only hit was in
.github/release/vercel-cli/package-lock.json, the Vercel Container Registry mirror tooling lock, which is never shipped in an OpenClaw package. Unblocking it took #161418 (undici override 6.28.0 to 6.28.1), a new Tooling SHA, and roughly two hours of revalidation.User Impact
No user-visible product change. For maintainers: dependency advisories of any severity no longer fail or delay a release. They are recorded in the release dependency evidence and surfaced loudly as GitHub warning annotations; the dependency bump ships through
mainafter publication.One blocking class remains, and Peter should object here if he disagrees: a known-malware finding (
finding.malware) still fails the gate and stops publication. That is a compromised package, not a vulnerability report, and shipping it is not a risk tradeoff we can record and fix later.Why This Change Was Made
Release policy (Peter): advisories must never delay a release.
scripts/dependency-vulnerability-gate.mts): blockers are now malware-only. Critical and production-high advisories move to the reported findings. The CLI prints one::warning title=Dependency advisory (non-blocking)::annotation per advisory (severity, package, lockfile, graph, id, source; capped at 25 plus an overflow line), exits 0 without malware, and emits::errorannotations plus exit 1 with malware. JSON/Markdown artifacts are still written before any failure. The stalevulnerabilityExceptionspolicy field is dropped.scripts/generate-dependency-release-evidence.mts, run by npm preflight for Full Release Artifacts and the npm release workflow, the only release caller of the gate): the summary and step summary gain a "Non-blocking advisory findings" section and a known-malware count; the policy label is nowmalware-blocking.scripts/lib/release-dependency-risk-acceptance.mts, its catch-and-accept path in the evidence generator, and its tests. The per-release table only accepted non-malware production-high advisories (it explicitly refused malware), so under this policy it is dead. No compatibility shim..github/workflows/ci.ymlsecurity-fast): the npm production audit also ran inside the Full Release ValidationnormalCichild and the publish-time native CI, so a new high advisory would still have failed release validation. The step now runsscripts/ci-production-audit.mjsfrom the job's existing trusted harness checkout (toolingworkflow_sha, so frozen and historical targets get it too). It runs the target'sscripts/pre-commit/pnpm-audit-prod.mjsunchanged and, only for aworkflow_dispatchwhosedispatch_idstarts withfull-release-validation-orrelease-native-android-, turns a failure into a warning annotation. Ordinary PR, push, scheduled, and manual CI keep failing, as does the scheduled Dependency Audit workflow. The logic lives in a script becauseci.ymlsits at the 480000-byte workflow size guard (main was 29 bytes under it; this PR leaves it at 479990).pnpm deps:vuln:gate: it has no non-release caller in CI, so it follows the single release policy instead of carrying a second strict mode nobody runs.docs/reference/RELEASING.mdgains the advisory rule and the main-health rule;docs/gateway/security/dependency-locking.md,docs/ci/pipeline.md, anddocs/ci/scheduled-workflows.mddescribe the new behavior. (RELEASING.md on currentmainhad no "release-blocking advisory gate" sentence; the stale policy text lived independency-locking.md.)release-openclaw-maintainershared release boundaries,release-openclaw-ci, and the validation, regular-release, and handoff-template references), per Peter's steering during 2026.9.7:mainafter publication; only known malware stops publication;mainis not held bymainfailures it does not cause once a cleanmaincheckout proves they pre-exist (recorded in the PR body), with admin merge allowed for that exact case during an active release; redmaingets fixed in parallel off the critical path;main, never a re-cut, tooling change, or new FRV. The publish gate does not yet accept a recorded flake classification; a follow-up PR proposes that.This is release tooling: after
v2026.9.7is tagged it also needs acherry-pick -xontorelease/2026.9.7(the release lead handles that).Evidence
::warningannotation naming severity, package, lockfile, graph, and id, and a PASS line with "0 known malware, 1 non-blocking advisories"; a malware advisory yields exit 1 with an::errorannotation and the malware Markdown section. Every former severity/graph blocking case now asserts no blockers except malware.pnpmCLI case still exits 1 and retains the evidence directory for a malware failure.security-fastworkflow tests execute the real step with the harness script: exits 0/1/130 propagate for pull_request events, manual dispatches, and non-release dispatch ids; both release dispatch-id prefixes exit 0 with the warning annotation; the harness sparse checkout includes the script. The workflow size guard (ci-workflow-guards.test.ts), which failed on the first push, is satisfied.node scripts/run-vitest.mjs <file> --maxWorkers=1, local host at load average ~65-75):dependency-vulnerability-gate.test.ts13.1 s (19 s wall);generate-dependency-release-evidence.test.ts20.5 s, dominated by the two unchanged git-history cases (about 8 s each);ci-security-fast-workflow.test.ts30.7 s at lower load, where the new cases add under 1 s of expression checks plus two extra step executions per audit exit code. No timers, sleeps, or network. One earlier run of the evidence file timed out in the unchanged git-history cases at a 172 s duration under that load; the rerun passed. That timeout is recorded here, not claimed as fixed.pnpm tsgo:scripts,pnpm tsgo:test:root, targeted oxlint, oxfmt check,pnpm format:docs:check, the knip unused-files scan (new script registered as a workflow entry), andgit diff --checkpass.