Skip to content

feat(release): treat Windows and macOS app lanes as advisory for npm publication and add per-job FRV reruns - #156305

Merged
steipete merged 8 commits into
mainfrom
feat/frv-native-lanes-advisory
Sep 23, 2026
Merged

steipete merged 8 commits into
mainfrom
feat/frv-native-lanes-advisory

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The release-ops macOS preflight (openclaw/releases run 35874997006, openclaw-macos-publish.yml) failed in both per-arch build_sign_and_package jobs at "Generate signed appcast artifact". Sparkle 2.10.0 generate_appcast names its output after the app's embedded SUFeedURL basename (appcast-arm64.xml / appcast-x86_64.xml), while scripts/make_appcast.sh hard-codes $TMP_DIR/appcast.xml for the signature check and the final copy, so the script died with ENOENT .../appcast.xml after signing and notarization had already succeeded.

This pins the output with -o "$TMP_DIR/appcast.xml". Sparkle uses that path both to read the seeded feed and to write the result, so the rest of the script and the workflow's mv appcast.xml appcast-<arch>.xml keep working unchanged.

Evidence

  • test/scripts/make-appcast.test.ts: the fake generate_appcast now mimics Sparkle (writes appcast-arm64.xml unless -o is given) and asserts -o <tmp>/appcast.xml is passed. Without the script fix the 4 channel cases fail with the same ENOENT shape; with it, 7/7 pass.
  • pnpm check:changed (testRoot + tooling lanes) exit 0; bash -n and shellcheck scripts/make_appcast.sh clean.
  • Follow-up: cherry-pick onto release/2026.9.6 and re-dispatch the release-ops preflight + validate workflows.

@clawsweeper

clawsweeper Bot commented Sep 23, 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 23, 2026 07:26
@steipete
steipete requested a review from a team as a code owner September 23, 2026 07:26
@steipete steipete self-assigned this Sep 23, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Sep 23, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 4:25 PM ET / 20:25 UTC (Revision 3).

ClawSweeper review

What this changes

The branch makes selected native CI lanes advisory for release publication and adds a release-priority control that defers repository workflows, records cancelled runs, and reruns them during recovery.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 14 items remain

The release-priority work remains distinct from current main, but its recovery path can replay obsolete runs, lose deferred events, and replace another active release’s priority. The previous review’s four recovery findings remain; a newly identified 100-run query limit adds another loss path.

Priority: P2
Reviewed head: 976a68f02aa21a833cbf8c426eda22af065f74d8
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The branch contains useful release work, but several concrete recovery defects and missing final-effect authority proof prevent a reliable merge assessment.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: Authority-chain proof required: the repository variable lets one validation parent defer other principals’ workflow jobs, but the supplied after-change evidence uses fake clients and does not show an allowed parent restoring real runs or a conflicting parent being rejected before the variable write and workflow effects. Verified administrator authorship exempts unrelated contributor proof. The new standalone recovery JSON leaves existing release evidence formats unchanged, so no existing-state migration is needed. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: the repository variable lets one validation parent defer other principals’ workflow jobs, but the supplied after-change evidence uses fake clients and does not show an allowed parent restoring real runs or a conflicting parent being rejected before the variable write and workflow effects. Verified administrator authorship exempts unrelated contributor proof. The new standalone recovery JSON leaves existing release evidence formats unchanged, so no existing-state migration is needed. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 10 items Pinned introduced recovery path: The branch writes the priority variable, cancels queued runs, and later clears the variable before collecting and rerunning deferred runs.
Recovery identity and query limits: Restore coalesces runs by workflow name and branch, while the GitHub run reader requests one page of at most 100 runs.
Distinct repository events: Auto response handles issues, issue comments, and pull requests; grouping its runs only by workflow and branch does not preserve the affected issue or event.
Findings 5 actionable findings [P1] Check current validation before replaying a deferred run
[P1] Preserve distinct issue and comment events during restoration
[P2] Drain deferred runs that finish after the restore snapshot
Security Needs attention Deferred security scans may remain absent: The introduced CodeQL gate suppresses scan jobs while release priority is set. Event coalescing, a single restore snapshot, and the 100-run limit can omit their reruns, leaving missing security evidence for affected PRs.

How this fits together

Full Release Validation dispatches CI and release checks, then turns their results into evidence for an npm publication decision. The new priority control also changes when other repository workflows run and how their deferred events are restored.

flowchart LR
A[Release operator] --> B[Validation parent]
B --> C[Priority variable]
C --> D[Repository workflow gates]
D --> E[Deferred runs]
E --> F[Recovery and rerun]
B --> G[Release evidence]
G --> H[npm decision]
Loading

Decision needed

Question Recommendation
Should release priority also pause CodeQL security scans, or should those scans remain live while other PR workflows defer? Keep security scans live: Exclude CodeQL security workflows from the priority gate while repairing restoration for the remaining workflows.

Why: The branch suppresses security-scan jobs across PRs, and the available evidence does not establish reliable replay after the release.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: the repository variable lets one validation parent defer other principals’ workflow jobs, but the supplied after-change evidence uses fake clients and does not show an allowed parent restoring real runs or a conflicting parent being rejected before the variable write and workflow effects. Verified administrator authorship exempts unrelated contributor proof. The new standalone recovery JSON leaves existing release evidence formats unchanged, so no existing-state migration is needed. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Check current validation before replaying a deferred run (P1) - Restore sends gh run rerun for recorded IDs without checking whether the associated PR is still open or whether a newer head already has validation. A stale run can replace useful current CI; reread the current item and run identity before the rerun.
  • Preserve distinct issue and comment events during restoration (P1) - The key combines only workflow name and branch. Issue and comment workflows receive many distinct events on the default branch, so restoring only the newest run discards the others; retain event or item identity when coalescing.
  • Drain deferred runs that finish after the restore snapshot (P2) - Restore clears the gate and scans completed runs once. A run created under the gate but still finishing during that scan is omitted permanently; reconcile the pause window through a terminal boundary before declaring restoration complete.
  • Preserve another active release’s priority ownership (P2) - Prioritizing this parent sets the repository variable without first checking whether another active parent owns it. The later conditional clear does not undo that takeover; reject or reconcile a conflicting owner before the write.
  • Page through the complete deferred-run window (P2) - Late discovery: this unchanged code requests only per_page=100 and never follows another page. A busy release window can therefore omit queued cancellations or deferred runs from restoration.
  • Resolve security concern: Deferred security scans may remain absent - The introduced CodeQL gate suppresses scan jobs while release priority is set. Event coalescing, a single restore snapshot, and the 100-run limit can omit their reruns, leaving missing security evidence for affected PRs.
  • Resolve merge risk (P1) - The priority gate skips CodeQL and PR evidence workflows, while incomplete restoration can leave their events without the intended follow-up run.
  • Resolve merge risk (P1) - The proposed recovery relies on GitHub reevaluating repository variables when rerunning a skipped workflow; the PR documentation identifies that behavior as unproven.
  • Resolve merge risk (P1) - The two new job-level advisory overrides need release-child evidence showing that failed native jobs still appear with their actual conclusions in the saved advisory record.
  • Complete next step (P2) - Repair the five recovery findings, resolve whether CodeQL stays live, and add redacted production-boundary evidence for allowed and conflicting release ownership. Update the PR body with the release-priority evidence; a body update should trigger re-review, or a maintainer can request @clawsweeper re-review.
  • Improve patch quality - Repair stale-run selection, per-event coalescing, full-window draining, pagination, and conflicting-parent ownership.
  • Improve patch quality - Add final-effect proof for an allowed validation parent and the nearest conflicting active parent, including restoration of a deferred security scan before I/O.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Check current validation before replaying a deferred run — scripts/frv.mjs:1302-1305
  • [P1] Preserve distinct issue and comment events during restoration — scripts/lib/release-priority.mjs:87-90
  • [P2] Drain deferred runs that finish after the restore snapshot — scripts/frv.mjs:1285-1290
  • [medium] Deferred security scans may remain absent — .github/workflows/codeql.yml:63
Agent review details

Security

Needs attention: The priority gate can skip CodeQL security scans, and current recovery does not establish that every skipped scan runs afterward.

PR surface

Tests +378, Docs +58, Config +30, Other +467. Total +933 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 385 7 +378
Docs 3 65 7 +58
Config 12 51 21 +30
Generated 0 0 0 0
Other 8 481 14 +467
Total 31 982 49 +933

Review metrics

Metric Value Why it matters
Executable and test growth scripts/workflows +497 lines, tests +378 lines The new recovery control is substantial, and its size calls for production-boundary proof beyond the added fake-client tests.
New recovery state 1 repository variable, 1 JSON record format Both must retain one release owner and support complete restoration after interruption.

Stored data model

Persistent data-model change detected: serialized state: scripts/lib/release-priority.mjs, unknown-data-model-change: scripts/lib/release-priority.mjs. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Repair and prove restoration (recommended)
    Preserve per-event identity, page and drain the complete run window, reject stale owners, and capture allowed and conflicting-parent outcomes at the GitHub workflow boundary.
  2. Land advisory policy separately
    Pause the release-priority portion if its repository-wide replay behavior cannot be established while retaining the narrower release advisory work.

Technical review

Best possible solution:

Keep the established release-policy owner for native advisories, and make priority recovery preserve each event, respect the current release owner, drain the complete run window, and prove the final GitHub effects.

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

Yes for the recovery defects: the source gives concrete conflicting-parent, distinct-event, finishing-run, stale-PR, and over-100-run scenarios. No live GitHub reproduction was run in this read-only review.

Is this the best way to solve the issue?

No. Native advisory classification already has a release-policy owner on main; the new priority control needs owner-safe, lossless recovery and observed GitHub behavior before it is a maintainable addition.

Full review comments:

  • [P1] Check current validation before replaying a deferred run — scripts/frv.mjs:1302-1305
    Restore sends gh run rerun for recorded IDs without checking whether the associated PR is still open or whether a newer head already has validation. A stale run can replace useful current CI; reread the current item and run identity before the rerun.
    Confidence: 0.94
  • [P1] Preserve distinct issue and comment events during restoration — scripts/lib/release-priority.mjs:87-90
    The key combines only workflow name and branch. Issue and comment workflows receive many distinct events on the default branch, so restoring only the newest run discards the others; retain event or item identity when coalescing.
    Confidence: 0.96
  • [P2] Drain deferred runs that finish after the restore snapshot — scripts/frv.mjs:1285-1290
    Restore clears the gate and scans completed runs once. A run created under the gate but still finishing during that scan is omitted permanently; reconcile the pause window through a terminal boundary before declaring restoration complete.
    Confidence: 0.93
  • [P2] Preserve another active release’s priority ownership — scripts/frv.mjs:1251-1253
    Prioritizing this parent sets the repository variable without first checking whether another active parent owns it. The later conditional clear does not undo that takeover; reject or reconcile a conflicting owner before the write.
    Confidence: 0.96
  • [P2] Page through the complete deferred-run window — scripts/frv.mjs:932-936
    Late discovery: this unchanged code requests only per_page=100 and never follows another page. A busy release window can therefore omit queued cancellations or deferred runs from restoration.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is material release automation work with bounded but unresolved recovery defects.
  • merge-risk: 🚨 automation: Merging the priority control can suppress workflow events that its recovery path does not reliably replay.
  • merge-risk: 🚨 security-boundary: The new gate can defer CodeQL security scans across PRs without proven complete restoration.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: the repository variable lets one validation parent defer other principals’ workflow jobs, but the supplied after-change evidence uses fake clients and does not show an allowed parent restoring real runs or a conflicting parent being rejected before the variable write and workflow effects. Verified administrator authorship exempts unrelated contributor proof. The new standalone recovery JSON leaves existing release evidence formats unchanged, so no existing-state migration is needed. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Deferred security scans may remain absent — .github/workflows/codeql.yml:63
    The introduced CodeQL gate suppresses scan jobs while release priority is set. Event coalescing, a single restore snapshot, and the 100-run limit can omit their reruns, leaving missing security evidence for affected PRs.
    Confidence: 0.88

What I checked:

  • Pinned introduced recovery path: The branch writes the priority variable, cancels queued runs, and later clears the variable before collecting and rerunning deferred runs. (scripts/frv.mjs:1224, 976a68f02aa2)
  • Recovery identity and query limits: Restore coalesces runs by workflow name and branch, while the GitHub run reader requests one page of at most 100 runs. (scripts/lib/release-priority.mjs:85, 976a68f02aa2)
  • Distinct repository events: Auto response handles issues, issue comments, and pull requests; grouping its runs only by workflow and branch does not preserve the affected issue or event. (.github/workflows/auto-response.yml:3, 976a68f02aa2)
  • Existing advisory owner on main: Current main already classifies the named native CI jobs as advisory in the release policy; the branch’s distinct remaining capability is repository-wide priority and recovery. (scripts/full-release-validation-policy.mjs:1682, bdeca1661473)
  • Existing targeted rerun on main: Current main already accepts the targeted rerun command and job selector introduced through the merged related work. (scripts/frv.mjs:124, bdeca1661473)
  • Prior review continuity: The prior completed ClawSweeper review named four recovery findings. The release-priority helper and frv.mjs have identical content hashes at that reviewed head and this head; the new 100-run observation is therefore a late finding. (scripts/frv.mjs:932, 976a68f02aa2)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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-23T10:10:06.681Z sha cdccf38 :: needs real behavior proof before merge. :: [P1] Keep approval revocation outside the release-priority pause | [P2] Recognize the actual deferred CI job set | [P1] Record recovery before enabling automatic release priority | [P2] Exclude superseded PR runs before restoring them | [P2] Preserve prior cancellations when prioritization is repeated | [P2] Recheck queued runs immediately before cancellation
  • reviewed 2026-09-23T16:51:25.600Z sha a91643f :: needs real behavior proof before merge. :: [P1] Check current validation before replaying a deferred run | [P1] Preserve distinct issue and comment events during restoration | [P2] Drain deferred runs that are still finishing at restore time | [P2] Preserve another active release's priority ownership

steipete pushed a commit that referenced this pull request Sep 23, 2026
steipete added a commit that referenced this pull request Sep 23, 2026
…156295)

* docs(release): make the fast path the default stable release process

* docs(release): scope runner-priority cancellation and keep required-lane repairs on the fast path

* docs(release): name the frv rerun-failed and prioritize controllers on the fast path

* docs(release): keep the fast path on landed frv commands until #156305 merges
Peter Steinberger added 3 commits September 23, 2026 07:36
…eview

- drop the superseded frv rerun-failed/attempt-tolerance changes (main landed rerun --job and attempt materialization tolerance)
- Security Review is never paused (approval revocation owner)
- record the pause window before enabling priority; clear it when the operation ends
- deferred CI recognizes security-fast; restore closes the window first, coalesces newest run per lane; prioritize rechecks queued state and preserves prior cancellations
…fication, re-add Release Decision advisory warnings
@steipete
steipete merged commit 66ce17a into main Sep 23, 2026
325 of 337 checks passed
@steipete
steipete deleted the feat/frv-native-lanes-advisory branch September 23, 2026 21:12
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…penclaw#156295)

* docs(release): make the fast path the default stable release process

* docs(release): scope runner-priority cancellation and keep required-lane repairs on the fast path

* docs(release): name the frv rerun-failed and prioritize controllers on the fast path

* docs(release): keep the fast path on landed frv commands until openclaw#156305 merges
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…publication and add per-job FRV reruns (openclaw#156305)

Admin merge under the release-window "unrelated red must not block" steer (coordinator, 2026-09-23).

Red at merge: checks-node-compact-small-37/38/39/44 only, failing test/scripts/pr-wrappers.test.ts, eager-import-closure.test.ts, pr-wrapper-source-closure.test.ts, pr-main-refresh.test.ts. This PR has zero diff on scripts/pr, scripts/pr-lib, src/infra, or those tests. The same files fail on pristine origin/main in a clean clone: all four at 19d09b7; pr-wrappers and eager-import-closure still fail (28 tests) at c0a8280 "fix(ci): add sqlite schema-fact modules to the pr wrapper inventory" (merged 20:56Z), which repaired the other two. Search of open PRs found no further fix in flight. checks-ui (2/3) was a runner kill (exit 143) and passed on rerun; every other lane is green.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
…penclaw#156295)

* docs(release): make the fast path the default stable release process

* docs(release): scope runner-priority cancellation and keep required-lane repairs on the fast path

* docs(release): name the frv rerun-failed and prioritize controllers on the fast path

* docs(release): keep the fast path on landed frv commands until openclaw#156305 merges

(cherry picked from commit 7b0a075)
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
…publication and add per-job FRV reruns (openclaw#156305)

Admin merge under the release-window "unrelated red must not block" steer (coordinator, 2026-09-23).

Red at merge: checks-node-compact-small-37/38/39/44 only, failing test/scripts/pr-wrappers.test.ts, eager-import-closure.test.ts, pr-wrapper-source-closure.test.ts, pr-main-refresh.test.ts. This PR has zero diff on scripts/pr, scripts/pr-lib, src/infra, or those tests. The same files fail on pristine origin/main in a clean clone: all four at 71875bf; pr-wrappers and eager-import-closure still fail (28 tests) at 0338fa2 "fix(ci): add sqlite schema-fact modules to the pr wrapper inventory" (merged 20:56Z), which repaired the other two. Search of open PRs found no further fix in flight. checks-ui (2/3) was a runner kill (exit 143) and passed on rerun; every other lane is green.

(cherry picked from commit 66ce17a)
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
…gh read

The clear-mode variable read in setReleasePriority (openclaw#156305) went through
runGh without the Cache-Control: max-age=0 header, so the at-sha dispatch
proof rejected it as a cached read; the same defect exists on main.
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
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: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant