Skip to content

fix(release): publish preflight stalls silently, frv continue is silent, and the SDK acknowledgement is reported late - #161633

Merged
steipete merged 3 commits into
mainfrom
release/operator-feedback
Sep 30, 2026
Merged

steipete merged 3 commits into
mainfrom
release/operator-feedback

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: local release helpers went silent or wasted operator time during the 2026.9.7 release. release:publish-preflight hung at github.observation for more than 10 minutes. frv continue printed nothing while waiting. The candidate helper spent minutes deleting its temp worktree, and it reported a missing Plugin SDK acknowledgement only after a ~15-minute run.

User Impact

User impact: none for end users. Release operators see what each helper is waiting on, get a bounded preflight with explicit reasons, and learn about a needed SDK acknowledgement (with the exact rerun command) as soon as the evidence is downloaded.

Why This Change Was Made

  • Preflight observation (observeReleaseGitHubState):
    • A live measurement against v2026.9.7 made 32 serial GETs taking 110 s. The 24 per-workflow/per-status inventory reads dominated, and release-list pages returned 4.7 MB of bodies.
    • Observation now prints per-phase progress and has a 180 s total budget (OPENCLAW_RELEASE_OBSERVATION_BUDGET_MS). Once the budget runs out, unread items become WARN rows that name the exact read command. Per-call errors carry gh's stderr instead of vanishing.
    • Release lookup tries the exact published tag first. It falls back to the authenticated inventory, which draft detection needs, and there it trims non-matching releases with --jq (4.74 MB down to 0.11 MB).
    • Known concurrency matches stay FAIL.
  • frv continue: prints waiting and state-change lines, a five-minute heartbeat, and each verified child or parent rerun attempt with its URL. It goes to stderr and reuses frv watch's formatter. Rerun semantics and mutation counts are unchanged.
  • Candidate cleanup: runFromTrustedTooling now deletes its own mkdtemp root before the targeted git worktree remove. Git then doesn't walk the installed graph. Measured on fresh 2.5 GiB installs: 167 s before, 26–53 s after (the host was under contention).
  • SDK acknowledgement: on the existing-evidence path, the candidate validates the acknowledgement right after it authenticates the immutable SDK artifact, before generated checks and plugin planning. A failure prints the review reminder and the shell-quoted original command with the correct --plugin-sdk-api-acknowledgement added or replaced. The dispatch path still runs the local generated check before dispatching FRV. Digest logic stays in its one validator.
  • Docs: regular-release.md now says to run the candidate from a clean worktree at the Release SHA, with the command shape, because it relaunches trusted tooling itself. It also covers the pnpm store prune lock and the node --import ./scripts/tsx.mjs scripts/<helper>.mts fallback.

Production LOC: +267/−97 (net +170). It pays for the observation budget, error surfacing and progress reporting; duplicate caching and formatting were removed where possible. Tests: net +285. Docs: net +11.

Evidence

  • Regressions fail on the old code:
    • Observation budget exhaustion yields WARN rows with a reason, and progress is emitted.
    • frv continue waiting and started-attempt lines.
    • Early SDK acknowledgement failure with the exact rerun command.
    • All with injected clocks; there are no real timers.
  • release-candidate-checklist.test.ts: 155 passed (58 s). release-publish-state.test.ts + release-publish-closeout-preflight.test.ts: passed (46 s). frv.test.ts: 85 passed (4 s). plugin-sdk-api-release-evidence.test.ts: 10 passed.
  • pnpm tsgo:scripts, pnpm tsgo:test:root, check:script-erasability, check:line-cap-ratchet, check-deadcode-exports, scoped oxlint/oxfmt, git diff --check: pass.
  • Codex autoreview (gpt-6-astra, P2 threshold): scoped-clean.

@steipete steipete added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 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.

@steipete
steipete marked this pull request as ready for review September 30, 2026 05:13
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L labels Sep 30, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 2:27 AM ET / 06:27 UTC (Revision 3).

ClawSweeper review

What this changes

The branch adds progress and bounded GitHub reads to release preflight, reports Full Release Validation continuation progress, speeds temporary worktree cleanup, and checks Plugin SDK acknowledgement earlier.

Merge readiness

✅ Ready for maintainer review

Current main and v2026.9.7 retain the reported release-helper behavior. The earlier replay-command finding is addressed, and this review found no definite new blocking defect.

Priority: P2
Reviewed head: 1e486282313ef67c16c0360789011bcbc4af369e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused on release tooling and has meaningful regression coverage, with reported live timing evidence for cleanup.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The MEMBER-authored release-tooling PR is exempt from the external-contributor proof gate. Its body reports after-change cleanup timing, while focused tests cover the other paths; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored release-tooling PR is exempt from the external-contributor proof gate. Its body reports after-change cleanup timing, while focused tests cover the other paths; no stored-data contract changes.
Evidence reviewed 10 items Current main: The fetched main revision still uses the earlier publication observation path without an overall observation budget.
Released behavior: The latest supplied release tag has the earlier publication observation implementation; the branch changes are not in that release.
Bounded observation: The introduced path sets a 180-second default budget, reports progress, and records unread inventory as WARN while retaining known matching runs as FAIL.
Findings None None.
Security None None.

How this fits together

Release operators use these helpers to inspect validation evidence and GitHub release state before publication. The helpers return gate results, rerun progress, and commands for the operator’s next step.

flowchart TD
  A[Release operator] --> B[Candidate helper]
  B --> C[Validation evidence]
  C --> D[SDK acknowledgement]
  D --> F[Publish preflight]
  E[GitHub releases and runs] --> F
  A --> G[FRV continuation]
  G --> E
  F --> H[Operator guidance]
  G --> H
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +328, Docs +11, Other +173. Total +512 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 351 23 +328
Docs 1 11 0 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 5 270 97 +173
Total 11 632 120 +512

Review metrics

Metric Value Why it matters
Observation budget 180 seconds by default; 60 seconds maximum per GitHub read The new operator setting bounds a previously serial inventory pass while reporting reads left unresolved.
Code and test growth production net +170 lines; tests net +285 lines The PR body attributes production growth to bounded observation, error reporting, and progress output.

Technical review

Best possible solution:

Keep progress and early acknowledgement checks in the existing release helpers, with explicit warnings and replay commands for incomplete GitHub observations.

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

Yes. Current-main source shows the preflight and FRV continuation paths without the branch’s progress and budget handling, and the PR reports a v2026.9.7 preflight measurement. This read-only review did not execute the helpers.

Is this the best way to solve the issue?

Yes. The branch changes the existing release-tooling owners and keeps the SDK acknowledgement in its existing validator; focused tests cover the main new decisions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fad7d345a0c7.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a limited-blast-radius release operator workflow without reported end-user impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored release-tooling PR is exempt from the external-contributor proof gate. Its body reports after-change cleanup timing, while focused tests cover the other paths; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-30T05:22:41.321Z sha bd072fd :: needs changes before merge. :: [P3] Preserve the release filter in suggested replay commands
  • reviewed 2026-09-30T05:36:21.044Z sha 1a03146 :: needs maintainer review before merge. :: none

@steipete steipete self-assigned this Sep 30, 2026
@steipete
steipete merged commit 9dc08b1 into main Sep 30, 2026
142 checks passed
@steipete
steipete deleted the release/operator-feedback branch September 30, 2026 06:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 30, 2026
…nt, and the SDK acknowledgement is reported late (#161633)

* fix(release): bound publish preflight observation, narrate frv continue, and surface SDK acknowledgement early

* fix(release): replay failed preflight reads with their exact filter

* test(release): model the exact-tag release lookup in preflight inventory fixtures

(cherry picked from commit 9dc08b1)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
…nt, and the SDK acknowledgement is reported late (openclaw#161633)

* fix(release): bound publish preflight observation, narrate frv continue, and surface SDK acknowledgement early

* fix(release): replay failed preflight reads with their exact filter

* test(release): model the exact-tag release lookup in preflight inventory fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) 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