Skip to content

fix(release): backport retrospective batch 5 to 2026.9.33 - #181920

Closed
RomneyDa wants to merge 29 commits into
extended-stable/2026.9.33from
tideclaw/batch5-extended-stable-2026.9.33
Closed

RomneyDa wants to merge 29 commits into
extended-stable/2026.9.33from
tideclaw/batch5-extended-stable-2026.9.33

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

Backports release-retrospective Batch 5 to extended-stable/2026.9.33.

The batch covers:

The branch-specific adaptation preserves the older release tooling shape, including its strict admission behavior and Telegram-waiver semantics. The independent review fix from #181914 routes manifest reuse through the admitted verifier. No public Plugin SDK export or configuration-schema surface changes are introduced on this release line.

Validation

  • focused FRV and artifact suites: 124 passed
  • execution-plan and Claude auth regressions: 102 passed
  • broad changed-area run: 861 passed before repairing two branch-local test/schema adaptations; affected suites reran green
  • formatting, Oxlint, script erasability, shell syntax, and git diff --check passed

The shared dependency install is from main, so older-branch tests that require the branch-local TypeScript package metadata cannot execute reliably in this worktree. The host also lacks zip. These are test-host limitations, not product failures; the affected Batch 5 regressions were exercised independently.

roboclaw-bot and others added 12 commits October 23, 2026 20:28
(cherry picked from commit 8d7e2f3)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit e8371fd)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 236a892)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 118a3c2)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 92c8424)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 019a6d5)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 6eaa319)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit da0f612)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 8c2a2a7)
@clawsweeper

clawsweeper Bot commented Oct 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.

@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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR backports release-validation recovery, artifact identity, SDK rendering, OAuth fallback, and QA completion fixes to extended-stable/2026.9.33.

Example: Release validation reuses root run 99 and artifact 900.

  • Before: The execution plan embeds the complete source manifest.
  • After: The plan retains artifact 900’s identity and digest and reconstructs its verified manifest when needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful maintainer-directed work remains blocked by a workflow that cannot start and recovery paths that do not survive final verification.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Release operators can lose reusable evidence, fail continuation, or receive inconsistent qualification results after retries.
Reason: The maintainer-authored direction addresses concrete release failures, but the branch adaptations still break workflow admission and recovery.

Merge readiness

⛔ Blocked before merge - 8 items remain

Keep open: this maintainer-directed backport has release value, but invalid workflow dependencies and incomplete recovery handling block merge.

Priority: P2
Reviewed head: 7bcf97b2c11135d02f5a41654ba25d8e72091a3b

Before merge

  • Add real behavior proof - Authority-chain proof required: the supplied suites do not show valid compact reuse and carried producer identity reaching qualification acceptance while substituted artifact identity, replacement producer execution, and a moved retained admission pin are rejected before acceptance or dispatch; provide redacted nonpublishing production-path logs or terminal evidence. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Remove dependencies on the branch-absent plugin npm job (P1) - Both release_decision and diagnostic_drain now name prepare_plugin_npm in needs, but this workflow defines no job with that ID. GitHub rejects the workflow before any FRV job runs. The earlier missing shell variables have been addressed by referencing another branch’s graph, rather than adapting to this branch’s actual producers. Remove the absent job and output references and keep the plugin gate explicitly inapplicable on this release line.
  • Carry recovered gate evidence through final verification (P2) - When an initial npm qualification fails and a later attempt succeeds, effectiveReleasePlanGates lets Decision and Drain omit the frozen qualification blocker. Final selection still calls verifyStateStructure, which derives baseline blockers from executionPlan.gates and throws 'release decision omits baseline blockers'. The new collector regression stops before that verifier, so it misses the failure. Extend the existing verification contract to authenticate recovered parent outcomes while preserving the immutable required gate set.
  • Preserve continuation for pre-backport producer logs (P1) - A retained run produced by the base workflow has the dispatch identity but no 'Artifact preparation npm identity' line: the base artifact collector never emitted it. The new unconditional requirement therefore rejects otherwise supported continuation with 'Original npm preparation identity is unavailable or ambiguous' before recovery begins. Authenticate the preparation identity from the existing retained descriptor and exact producer owner for historical runs, keeping replacement-byte rejection intact. This unchanged code was already present at the earlier reviewed head; I missed this compatibility regression in that review.
  • Resolve security review attention item - The candidate-selected renderer regression is repaired, while retained release evidence still crosses a publication trust boundary.
  • Resolve merge risk - The release owner must establish that retained artifact identities and producer authority remain valid across retries before qualification evidence is accepted.
  • Improve patch quality - Add final-effect proof for valid retained release evidence and its nearest substituted or stale identity, including rejection before acceptance or dispatch.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P1] Remove dependencies on the branch-absent plugin npm job — .github/workflows/full-release-validation.yml:2268
  • [P2] Carry recovered gate evidence through final verification — scripts/full-release-validation-state.mjs:1267-1270
  • [P1] Preserve continuation for pre-backport producer logs — scripts/frv.mjs:568-569

Tests

  • Low-value test test/scripts/package-acceptance-workflow.test.ts: Remove the new auth-assignment source assertions: executable hydration coverage already checks fallback and precedence without pinning local variable names.
  • Low-value test test/scripts/install-smoke-no-push-workflow.test.ts: Remove the added repeated producer-needs loop; the updated earlier producer test already checks the same dependency contract.
  • Missing end-to-end proof: Supplied evidence does not exercise final qualification acceptance after recovery or replay pre-change retained artifacts and logs; base-failing regressions for those complete paths are not demonstrated.
Agent review details

How this fits together

Release tooling turns admitted candidate inputs and GitHub Actions artifacts into execution plans, recovery decisions, and evidence used to qualify publication.

flowchart LR
A[Release operator] --> B[Admission and dispatch]
B --> C[Artifact producers]
C --> D[Immutable execution plan]
D --> E[Decision and recovery]
E --> F[Final evidence verifier]
F --> G[Publication qualification]
Loading

Technical review

Best possible solution:

Complete the backport through the existing release owners, preserving historical continuation and making collectors and final verification agree on authenticated recovered outcomes.

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

Pinned source establishes the undefined workflow dependency, collector/verifier disagreement, and rejection of pre-backport producer logs; no target execution was performed.

Is this the best way to solve the issue?

The existing owners are appropriate, but the backport needs a complete recovery cutover and authenticated historical identity handling rather than collector-only success or mandatory new log text.

Full review comments:

  • [P1] Remove dependencies on the branch-absent plugin npm job — .github/workflows/full-release-validation.yml:2268
    Both release_decision and diagnostic_drain now name prepare_plugin_npm in needs, but this workflow defines no job with that ID. GitHub rejects the workflow before any FRV job runs. The earlier missing shell variables have been addressed by referencing another branch’s graph, rather than adapting to this branch’s actual producers. Remove the absent job and output references and keep the plugin gate explicitly inapplicable on this release line.
    Confidence: 0.99
  • [P2] Carry recovered gate evidence through final verification — scripts/full-release-validation-state.mjs:1267-1270
    When an initial npm qualification fails and a later attempt succeeds, effectiveReleasePlanGates lets Decision and Drain omit the frozen qualification blocker. Final selection still calls verifyStateStructure, which derives baseline blockers from executionPlan.gates and throws 'release decision omits baseline blockers'. The new collector regression stops before that verifier, so it misses the failure. Extend the existing verification contract to authenticate recovered parent outcomes while preserving the immutable required gate set.
    Confidence: 0.99
  • [P1] Preserve continuation for pre-backport producer logs — scripts/frv.mjs:568-569
    A retained run produced by the base workflow has the dispatch identity but no 'Artifact preparation npm identity' line: the base artifact collector never emitted it. The new unconditional requirement therefore rejects otherwise supported continuation with 'Original npm preparation identity is unavailable or ambiguous' before recovery begins. Authenticate the preparation identity from the existing retained descriptor and exact producer owner for historical runs, keeping replacement-byte rejection intact. This unchanged code was already present at the earlier reviewed head; I missed this compatibility regression in that review.
    Confidence: 0.98
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7b71c2379764.

Merge-risk options

Maintainer options:

  1. Prove the retained authority boundary (recommended)
    The PR owner supplies nonpublishing production-path evidence that valid retained identities succeed and substituted or stale identities are rejected before acceptance or dispatch.
  2. Pause the aggregate backport
    The release owner holds this batch until its recovery and qualification boundaries can be verified.

Provenance checked

  • Trusted SDK surface computation keeps the original intent (d2afbd0: refactor(plugin-sdk): replace API baselines with diffs #123036 uses trusted tooling to render source declarations and requires release-time acknowledgement; the revised patch restores trusted renderer execution.)
  • Immutable plans and compact reuse changes intended behavior with a stated reason (a2f0b84: fix(release): report blockers before diagnostics finish #127014 seals identities for recovery without redispatch; compact artifact references address repeated-manifest size while retaining that purpose.)
  • Npm qualification recovery keeps the original intent (14edef7: fix(release): retry failed npm qualification without restarting validation #150991 permits qualification retries while preserving successful preparation bytes; the backport pursues that invariant but introduces the listed recovery defects.)
  • Admission and candidate identity keeps the original intent (c26c6ef: feat(release): qualify frozen candidates with their own harness #160695 separates frozen candidate qualification from trusted admission and preserves historical requests; this branch retains its strict pinned-ref check.)
  • Historical reuse version lookup keeps the original intent (2227743: The base supports split changelog evidence using the embedded manifest’s version; the revised validator restores that fallback and preserves absent legacy properties.)
  • Claude OAuth fallback keeps the original intent (96e676c: The original change activates sufficiently fresh credentials without shadowing configured fallback authentication; this patch preserves the freshness threshold and activates the existing setup-token fallback.)
  • QA tool-result evidence keeps the original intent (03f1bf9: Existing parity behavior treats missing tool results as failures; bounded settling retains that failure when completion never arrives.)
  • Install-smoke producer scheduling changes intended behavior with a stated reason (7dfe406: The original implementation parallelizes installer validation; this patch deliberately orders image producers behind candidate production to keep rerun artifact tuples consistent.)

Testing

Proof path: in-process harness.

Security

Needs attention: The candidate-selected renderer regression is repaired, while retained release evidence still crosses a publication trust boundary.

Evidence

What I checked:

  • Pinned review and live target: Live REST metadata confirms the reviewed head, extended-stable target, member authorship, and mergeable state; author comments add re-review requests without new behavior evidence. (7bcf97b2c111)
  • Undefined workflow dependency: Release Decision and Diagnostic Drain depend on prepare_plugin_npm, while the workflow defines no such job or plugin_npm_preflight_required output. (.github/workflows/full-release-validation.yml:2268, 7bcf97b2c111)
  • Collector and verifier disagree after recovery: The collector replaces frozen gate results with current outcomes, but verifyStateStructure reconstructs mandatory blockers from the original gate results and rejects their omission. (scripts/full-release-validation-policy.mjs:2441, 7bcf97b2c111)
  • Historical continuation regression: Continuation unconditionally requires the new preparation-identity log record; the pinned base producer emits no such record. The rejecting code is unchanged from the earlier reviewed head. (scripts/frv.mjs:568, 7bcf97b2c111)
  • Earlier findings repaired: The renderer now executes trusted SCRIPT_PATH; compact retry budgeting receives the revalidated manifest; legacy normalization preserves absent fields and the embedded version fallback; the parity test uses deterministic synchronization. (scripts/plugin-sdk-api-diff.mts:239, 7bcf97b2c111)
  • Current-main and feature history: Current main retains trusted SDK rendering and lacks the new seal-wait controls; merged history identifies shared release ownership and substantial QA refactoring rather than a landed replacement for this batch. (scripts/frv.mjs:452, 7b71c2379764)

Likely related people:

  • Dallin Romney: Raw commit 14edef7 adds scripts/frv.mjs:353 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 14edef7f0677; files: scripts/frv.mjs)

PR surface

Source +51, Tests +875, Config +50, Other +442. Total +1418 across 33 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 53 2 +51
Tests 14 890 15 +875
Docs 0 0 0 0
Config 2 58 8 +50
Generated 0 0 0 0
Other 14 562 120 +442
Total 33 1563 145 +1418

Review metrics

Metric Value Why it matters
New recovery controls 1 CLI flag and 1 environment variable Adds --wait-for-seal and OPENCLAW_FRV_PLAN_SEAL_WAIT_MS to the existing FRV command.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This affects release-operator validation and recovery without evidence of a current end-user outage.
  • merge-risk: 🚨 automation: An undefined job dependency invalidates release validation, and recovered collector output conflicts with final verification.
  • merge-risk: 🚨 compatibility: Previously produced npm logs lack a newly mandatory record, preventing continuation of retained runs.
  • merge-risk: 🚨 security-boundary: Changed persisted evidence identities and producer reuse decisions feed trusted qualification acceptance.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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 execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-23T21:13:09.886Z sha 8d1b4bb :: needs real behavior proof before merge. :: [P1] Keep SDK verification independent of candidate executable code | [P1] Define or remove the branch-absent plugin npm inputs | [P1] Complete compact-plan support in retry budgeting | [P1] Preserve legacy reuse bytes during normalization | [P2] Accept retained plans without a top-level target version | [P3] Synchronize the completion test without a real sleep

Reviewed October 23, 2026, 10:02 PM ET / October 24, 2026, 02:02 UTC (Revision 2).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

Superseded: all 29 commits were cherry-picked (with -x provenance) onto extended-stable/2026.9.33 for 2026.9.35 in f123d43..4a595a7, and the core, extensions, scripts and core-test typecheck lanes pass on that tip.

@RomneyDa RomneyDa closed this Oct 26, 2026
RomneyDa added a commit that referenced this pull request Oct 26, 2026
…ease Validation

The #181920 batch 5 backport wired a prepare_plugin_npm job and a plugin_npm_preflight_required output that exist only on main. GitHub rejected the workflow (HTTP 422 on dispatch) because release_decision and diagnostic_drain needed a job that does not exist. 2026.9.x prepares plugin npm at publication, and the release policy already treats an absent plugin preflight as not required, so the parent omits that gate. actionlint is clean on every workflow.
RomneyDa added a commit that referenced this pull request Oct 26, 2026
FRV 40403788884 normalCi failed check-dependencies (knip: production-unused exports added by the #181056 Slack and #179050 Codex ports) and check-docs (oxfmt on a #181920 test file). Keep those helpers module-private as main does, mirror the Slack limit in its test, and format the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: XL 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.

2 participants