Skip to content

fix(release): candidate checks drift with moving main - #168681

Merged
RomneyDa merged 4 commits into
mainfrom
fix/release-candidate-owned-harness
Oct 11, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
fix/release-candidate-owned-harness

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Related: #160695

What Problem This Solves

Fixes: release-candidate checks pick up a different harness when main advances, so a frozen package can fail a new Telegram check despite passing its candidate-owned qualification.

User Impact

Release operators can reuse authenticated package Telegram proof and run supplemental Telegram or local Parallels checks with the frozen candidate's code. Explicit live-provider checks and separately packed historical tarballs still need their own proof; a missing or moved qualification ref produces recovery instructions instead of using main.

Unbound planning flags and tooling pins can be corrected without moving the saved state aside. Already-bound requests remain locked. Windows not selected in the original admission must be attached afterward through windows-node-release.yml or covered by newly admitted evidence.

Why This Change Was Made

Stable npm-stable-v1 and admitted stable/full coverage already include mock-provider package Telegram qualification. Reuse that evidence only for the exact FRV-qualified package and without a Telegram waiver; beta stays deferred, never passed. Supplemental checks verify the retained candidate ref before dispatch, pin the harness SHA, and verify the returned run SHA. Their run IDs remain in candidate evidence, not the publisher's optional diagnostic input. Parallels uses the candidate checkout and dependency graph, while trusted helper/publication tooling remains independently pinned.

The same bounded helper repair matches saved publication tags to the selected tooling SHA and removes temporary worktrees through Git before deleting their root. The dispatch audit found fresh FRV already uses Q=C and the old npm-preflight fallback is absent from current main.

Evidence

  • Head ce8b2939: CI attempt 1 succeeded (34 passing jobs, 25 selected skips; all 59 finished). openclaw/ci-gate, openclaw/dependency-review, and openclaw/security-sensitive-review are green. All 189 affected cases passed in the Node shard: 140 checklist, 43 FRV-validator, and 6 SDK-report cases, including the Linux-only compiler-lifetime case. The authored eight-file +490/-57 patch is unchanged.

  • Red/green regression: stable --workflow-sha <P> with no --workflow-ref dispatched Telegram on main before the fix; it now reuses FRV proof with zero dispatches. Coverage also checks exact producer binding, live/waived/separate-pack qualification, missing/moved refs, returned-SHA mismatch, beta deferral, candidate Parallels execution, saved-state locking, stale P tags, Windows guidance, and recoverable cleanup.

  • Original single-file proof passed with pnpm test <file> --maxWorkers=1:

    File Tests passed Local wall time Vitest duration CI reported case time
    test/scripts/release-candidate-checklist.test.ts 140 65.33 s 43.62 s 5.213 s
    test/scripts/validate-full-release-validation-evidence.test.ts 43 18.28 s 2.68 s 0.275 s

    The longer checklist suite proves real Git revision/worktree and owned-dependency cleanup behavior; remote workflow effects are stubbed. Timings were collected alongside static checks. All 17 state/Telegram regressions passed again after lint-only corrections. CI seconds are sums of the reported per-case durations, excluding collection/setup; the complete shared Node job took 96 s. SDK-report cases contributed 8.469 s across six passing cases. One canonical job log was used, without double-counting its per-step copies.

  • Script and root-test typechecks, focused type-aware lint, script erasability, selected guards, docs lint/MDX/links, and diff checks passed. Independent Codex autoreview of the unchanged authored patch was scoped-clean through P2.

  • Fresh completed ClawSweeper review covers ce8b2939 with no actionable findings and no before-merge code blocker; it remains ready for maintainer review. No patched-CLI live GitHub qualification is claimed.

  • The original inherited Knip gap is closed on the integrated head: production, full-tree and script scans all report zero unused exports. No dead-code exclusion was added.

  • Read-only incident evidence: helper Telegram runs 38085957302 and 38087435756 failed on main; the FRV package Telegram job succeeded at candidate e178c39e9aae. The FRV manifest records Q=C, npm-stable-v1, and package Telegram enabled.

CI repair attribution and integrated-head proof

CI Repair

The completed original run 38092468166 has ten failed leaves. All are inherited from the tested main base, not from this release-helper patch:

Failure owner Landed main repair
SDK surface growth / stale budgets and unused exports 8fc31c91
Duplicate plugin DM resolver export 13296b17
Unused ownership-migration binding, repeated across six compiler graphs and lint 243b6dbf
Cache shadowed binding / redundant numeric conversion f9940dc8
Worker race fixture unbound-method capture 8fc31c91

Local replay also found a newer main-only Doctor prompt export collision; the independently landed 3f08ea94 repairs it. The remaining SQLite/Lobster unused exports and stale Discord export inventory are repaired by d4e9d09e. The branch integrates the landed owner repairs. Signed head ce8b2939f7b19c7857312f8564905bd98292271a against pinned main 8267c24051ff695a239b27ca768820274b5936b7 retains the original eight-file delta, +490/-57, with identical added/deleted feature content.

Final integrated-head proof: the two release suites and SDK-report suite passed together with --maxWorkers=1 (188 passed, one Linux-only skip on macOS; 353.430 s command wall, 312.63 s Vitest duration). The SDK surface check passed in 37.600 s: 152 public entrypoints, 3661 exports, 2127 callable exports, and no unauthorized shipped-SDK removal. Timings were collected on a concurrently busy host, not as a performance comparison. The full selected changed gate passed in 1330.898 s, including all three zero-entry export scans and focused lint. Docs sanity also passed: Markdown lint (1321 files; 19.932 s), RELEASING MDX (3.112 s), and 15334 internal links with zero broken links (37.686 s). Exact-head hosted CI attempt 1 succeeded with all 59 jobs terminal and the three required status contexts green. No CI rerun was used. No check was disabled or weakened by the release-helper patch.

No release qualification or publication workflow was dispatched. release/2026.10.1, v2026.10.1, protected release-publish/* tags, and running release workflows were not mutated.

Reuse authenticated FRV package Telegram coverage and pin supplemental Telegram and local Parallels qualification to candidate code. Preserve bound requests while allowing pre-dispatch planning updates, match saved tooling tags to P, clarify Windows attachment recovery, and retain Git worktree registrations until cleanup succeeds.
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Oct 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR reuses authenticated package Telegram qualification, pins supplemental checks to the frozen candidate, and preserves bound release requests during recovery.

Example: Qualify v2026.10.1 at e178c39 after main advances.

  • Before: The checklist dispatches another Telegram check using main’s newer harness.
  • After: The exact FRV-qualified package reuses authenticated stable Telegram proof; supplemental checks use the candidate’s retained ref and SHA.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent repair with green exact-head CI and focused boundary coverage; runtime confidence remains limited to the supplied harness evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied validation exercises production functions with mocked remote effects and real Git cleanup, while historical hosted qualification corroborates the incident rather than the patched CLI.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A frozen release package can fail newly added main-harness checks after its candidate-owned qualification already passed.
Reason: The reported release incident and existing frozen-qualification contract justify this focused maintainer-authored repair.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR fixes qualification drift still present on main, and no actionable introduced defect was found.

Priority: P2
Reviewed head: ce8b2939f7b19c7857312f8564905bd98292271a

Before merge

None.

Findings

None.

Provenance

  • Temporary trusted-tooling cleanup: original intent not found (unknown: The old order removed installed files before Git cleanup; older checklist blob availability prevents establishing the original cleanup rationale.)

Tests

  • Missing end-to-end proof: No supplied run exercises the patched release:candidate CLI through real supplemental dispatch and candidate Parallels execution.
Agent review details

How this fits together

The release-candidate coordinator consumes frozen source, saved requests, and authenticated FRV artifacts, runs supplemental checks, and emits evidence plus a publication command.

flowchart TD
  A[Frozen candidate] --> B[Release candidate coordinator]
  C[Trusted tooling] --> B
  D[Authenticated FRV evidence] --> B
  B --> E[Candidate supplemental checks]
  E --> F[Candidate evidence bundle]
  B --> F
  F --> G[Publication preflight]
Loading

Technical review

Best possible solution:

Keep qualification tied to the frozen candidate and authenticated package while preserving independent trusted publication tooling and bound-request recovery.

Do we have a high-confidence way to reproduce the issue?

Current-main source dispatches Telegram with workflowRef=main and selects Parallels from trusted tooling, establishing the drift path; this review ran no target code.

Is this the best way to solve the issue?

The change repairs the existing coordinator and consumes the existing authentication owner rather than introducing another qualification authority.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 948e76d89203.

Provenance checked

  • Supplemental qualification harness keeps the original intent (38740f2: Candidate-owned FRV separates frozen qualification from trusted admission and publication; the supplemental moving-main path predates that cutover, with its original introduction unresolved because older blobs are unavailable.)
  • Bound candidate state and publication selection keeps the original intent (7bf4e2e: Historical recovery must retain its original publication selection and cannot silently acquire a new admission contract.)
  • Saved publication tooling tag keeps the original intent (364f1dd: The selected trusted tooling SHA resolves to an exact protected tag used by saved state and publication.)
  • Stable supplemental checks changes intended behavior with a stated reason (ebdab59: Stable candidates ran both supplemental checks; the PR explains replacing duplicate mock Telegram qualification with authenticated exact-package evidence.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit a94074f adds scripts/release-candidate-checklist.mts:1072 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a94074f6a498; files: scripts/release-candidate-checklist.mts)
  • Peter Steinberger: Raw commit 74b764e adds .agents/skills/release-openclaw-maintainer/references/regular-release.md:64 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 74b764e81d4b; files: .agents/skills/release-openclaw-maintainer/references/regular-release.md)
  • Vincent Koc: Raw commit 7bf4e2e adds scripts/validate-full-release-validation-evidence.mjs:270 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7bf4e2e088bc; files: scripts/validate-full-release-validation-evidence.mjs)

PR surface

Tests +280, Docs +40, Other +113. Total +433 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 298 18 +280
Docs 4 50 10 +40
Config 0 0 0 0
Generated 0 0 0 0
Other 2 142 29 +113
Total 8 490 57 +433

Review metrics

Metric Value Why it matters
Production versus tests Production/tooling +142/-29; tests +298/-18 Growth supports qualification identity, recovery, and failure coverage without adding a configuration option or changing the stored schema.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs release-operator qualification drift without changing end-user runtime behavior.
  • merge-risk: 🚨 compatibility: Historical supplemental qualification without a retained Q=C ref now requires newly bound evidence; the maintainer-authored change explicitly adopts this frozen-harness restriction.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-10T22:48:42.818Z sha c7109cc :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T06:29:36.369Z sha ce8b293 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 2:52 AM ET / 06:52 UTC (Revision 3).

@RomneyDa
RomneyDa merged commit 41e1f70 into main Oct 11, 2026
111 checks passed
@RomneyDa
RomneyDa deleted the fix/release-candidate-owned-harness branch October 11, 2026 07:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
Reuse authenticated FRV package Telegram coverage and pin supplemental Telegram and local Parallels qualification to candidate code. Preserve bound requests while allowing pre-dispatch planning updates, match saved tooling tags to P, clarify Windows attachment recovery, and retain Git worktree registrations until cleanup succeeds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant