release-openclaw-ci
OpenClaw Release CI
Use with $release-openclaw-maintainer and $openclaw-testing for candidate validation, install/update proof, live-provider checks, and CI recovery.
Fast-track approval boundary
The sole approval gate is the normal GitHub Actions npm-release environment,
reviewed by an eligible npm release manager. No Firebase service, chat/group
approval, approval URL or manually supplied approver/time is required. Agents
must not approve the environment using a human's token. Preparation and scoped
dispatch do not require a separate chat decision.
Pass exception evidence with --fast-track-request <packet.json> to
pnpm release:publish-preflight, forwarded as fast_track_request. Preserve
original FRV results and sealed bytes. Bounded policy: 20 commits AND 15,000
added/deleted lines, excluding enumerated package manifests/lockfiles from LOC
only. Partial-FRV retains a complete outstanding-check snapshot without a delta
ceiling. Neither establishes a fully validated baseline. Post-expiry recovery
uses the original packet-bound GitHub publication receipt and verified job start
time. See the release skill.
Guardrails
Scope and authority
- Ask first: version bumps, tags, npm/GitHub releases, and release promotion need explicit operator approval.
- After compaction, resume, or steering, restate the effective goal/phase from the latest explicit instruction. Do not restore superseded scope.
- Once a release branch or Code SHA exists, validate and ship that release—not moving
main. - Frozen-Code firebreak: admit only confirmed product/security defects, wrong or unverifiable package bytes, or publication blockers. Queue other findings for postpublish confidence/next beta.
- Dependency advisories are evidence, not firebreak admissions: queue bumps on
mainafter publication. Only known malware stops publication. - Touch
mainonly for operator-requested changes or the smallest critical main-owned release blocker that cannot be handled on the release branch. Main CI health does not gate release. - For tooling landings blocked by unrelated main failures: reproduce on clean
main, record in the PR, and merge. Admin merge is allowed for that exact case during a release; fix red main in a separate parallel lane. - Tooling-only PRs: add
release-fast-lanebefore pushing; follow Release tooling fast lane and native review/landing. The label narrowsopenclaw/ci-gate, not review or landing rules.
Frozen identities and qualification
- Record C (candidate), Q (qualification), P (admission/aggregate/verifier/publisher), rerun group, profile, effective soak, and context/transport refs. Code SHA and Release SHA are lifecycle roles, not extra workflow identities.
- Default Q=C. Freeze C/Q; select trusted P on main or a protected publication tag. C need not be P's ancestor. Executable Q must be reviewed with verified tooling lineage; authorized grant-only descendants follow the Q ledger procedure.
- Q owns the complete workflow/reusable-workflow, action, script, planner, contract, harness, and coverage closure. Q also owns the pinned grant ledger; P owns aggregate evaluation, not grant data. Future-main checks/scenarios are not implicit requirements.
- Missing contracts need a deliberate Q repair or candidate backport; never substitute moving main. Q-only repair may preserve C, but needs new Q, request/admission, and a successful parent. Never edit an old request or relabel failed FRV. P-only repair can preserve C/Q and valid original evidence.
- Candidate tags: absent is allowed; existing lightweight/annotated tags must resolve to exact C. Conflicts or failed remote lookup stop validation; never move a tag to recover.
- Protected lightweight
release-publish/<12sha>-<provenance-run>tags identify P, not Q. Suffix = tag-creation provenance, not current parent. Publication/checklist--workflow-shaselects P; FRV--workflow-shaselects Q. - Unless an exact human-approved fast-track packet is supplied, FRV must succeed with P evaluating pinned Q’s waiver policy; every other required lane must pass. Stable publication needs stable/full evidence, mandatory soak, and blocking performance. Beta proof cannot qualify stable; only checked-in performance exceptions apply.
- All-group qualification covers all nine Linux/Windows/macOS Gateway install/upgrade combinations. Preserve first failures, identities, and complete evidence.
- Regular releases may use one Code SHA = Release SHA and one successful fresh full parent for both roles and exact publication bytes. Later notes-only reuse requires the complete delta from Code SHA to change the selected
CHANGELOG/YYYY.M.PATCH.md, optionallyCHANGELOG.mdand its matchingCHANGELOG/records/YYYY.M.PATCH.md; no other paths, renames, or deletions. Changed bytes still need qualification. - Extended-stable validates one exact branch tip, not regular Code-SHA/Release-SHA reuse.
Runtime, capacity, and independent publication
- Frozen CI uses Q's Node planner/measured costs to discover and execute C's tests. Hosted full-release plans split measured rows above 12 minutes; retain file coverage, worker limits, and complete timing generations. Split indivisible over-budget owners; do not raise the budget.
- After the child finishes, run
scripts/ci-shard-timings-refresh.mtsfor that exact run and commit generated costs. Never hand-edit measurements. - Optional
OPENCLAW_RELEASE_RUNNER_GROUP: configure runners/repo a
