Skip to content

fix(release): recover every failed artifact producer - #178179

Merged
RomneyDa merged 9 commits into
mainfrom
fix/rri-118-account-skipped-producers
Oct 20, 2026
Merged

RomneyDa merged 9 commits into
mainfrom
fix/rri-118-account-skipped-producers

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • recover failed npm and Docker artifact producers during FRV continuation
  • keep candidate producer recovery fail-closed when acquisition leaves selected consumers undispatched
  • discover producer jobs from the authenticated frozen workflow contract and bind recovery to one canonical stage/target/run witness
  • fail closed for missing, ambiguous, or failed producer evidence while preserving proven per-stage artifact reuse

Fixes RRI-118.

Testing

  • pnpm format:check -- .github/workflows/full-release-validation.yml scripts/frv.mjs test/scripts/frv.test.ts
  • node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts/frv.mjs test/scripts/frv.test.ts
  • OPENCLAW_LOCAL_CHECK=0 node scripts/run-tsgo-core-test-shards.mjs --root-stripe 2/4
  • pnpm exec vitest run test/scripts/frv.test.ts test/scripts/full-release-artifacts.test.ts (148 tests)
  • parsed .github/workflows/full-release-validation.yml with the pinned yaml package

Review

  • independent semantic review completed with no P0/P1/P2 findings after two fail-closed corrections

Account for npm, Docker, and candidate producer jobs during failed release continuation, binding each recovery to the authenticated workflow and exact dispatch evidence.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR extends authenticated release continuation to failed Docker producers while preserving successful architecture artifacts and keeping candidate recovery disabled.

Example: Docker producer run 82 fails on arm64 after amd64 succeeds in attempt 1.

  • Before: Continuation discovers only npm producers, and Docker sealing requires matching producer attempts.
  • After: Continuation retries Docker and can seal the retained amd64 artifact from attempt 1 with arm64 from attempt 2.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful repair with the previous code finding addressed; final-effect authority evidence remains insufficient for merge.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A release operator cannot recover a failed independent Docker artifact producer through the existing continuation command while retaining successful work.
Reason: The maintainer-authored direction addresses a concrete recovery gap; the current body explicitly limits the change to npm and Docker.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-authored PR addresses a real Docker continuation gap, and the earlier artifact-adoption finding is resolved in the reviewed code.

Priority: P2
Reviewed head: 4118f3ab9b2cd4d0b87b32f83ecaf9184605692d

Before merge

  • Add real behavior proof - Authority-chain proof required: the body and contributor comments provide fixture-based validation, without production-path output showing Docker recovery through architecture sealing and parent verification or rejection of another parent's producer and an invalidated attempt/tooling binding before rerun I/O; supply redacted logs or terminal output with IPs, API keys, phone numbers, and non-public endpoints removed. 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.
  • Resolve security concern: Establish the expanded producer authorization boundary - Discovery now admits Docker producers for rerun and cross-attempt adoption; fixture rejection cases do not establish that foreign-parent and invalidated bindings are rejected before the production effect.
  • Resolve merge risk - The expanded Docker recovery authority remains unverified at the final effect: another parent's producer or an invalidated attempt/tooling binding must be rejected before rerun I/O.

Findings

  • [medium] Establish the expanded producer authorization boundary — scripts/frv.mjs:637

Tests

  • Missing end-to-end proof: Supplied fixtures do not establish hosted Docker retry recovery through sealing and parent verification, final-effect rejection controls, or a red-on-base regression run.
Agent review details

How this fits together

The FRV controller consumes frozen workflow contracts and dispatch evidence, retries authenticated artifact producers, and returns their sealed evidence to parent release verification.

flowchart TD
  A[Frozen FRV plan] --> B[Authenticated dispatch discovery]
  B --> C[Producer identity checks]
  C --> D[Failed producer retry]
  D --> E[Docker architecture sealing]
  E --> F[Parent evidence verification]
Loading

Technical review

Best possible solution:

Retain the existing controller and artifact owners, adopt authenticated per-architecture attempts, and establish the final-effect authorization boundary before merging.

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

Current-main source exposes the failure path: recovery discovers npm only, and Docker sealing compares architecture metadata against one producer attempt; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch uses the existing recovery controller and artifact owners, preserves legacy npm behavior, and supplies the missing Docker adoption path without claiming recovery for undispatched candidate consumers.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Prove the Docker recovery authorization boundary (recommended)
    Supply authorized production-path evidence for successful recovery and rejection of foreign-parent or invalidated producer bindings before rerun I/O.

Provenance checked

  • FRV producer discovery and frozen-workflow compatibility changes intended behavior with a stated reason (14edef7: The earlier repair supported npm qualification retries while retaining exact bytes and deliberately excluded Docker recovery.)
  • Docker artifact naming and producer-attempt equality changes intended behavior with a stated reason (a162944: Prepared OCI artifacts bind exact source, workflow, producer, job, and artifact identities before publication.)
  • Independent producer dispatch and parent adoption keeps the original intent (06f897f: Independent producer runs retain dispatch records and sealed receipts so parent retries can reuse prepared artifacts.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authorization bypass was found, but the expanded recovery boundary still needs final-effect authority proof.

Evidence

Security concerns:

  • [medium] Establish the expanded producer authorization boundary — scripts/frv.mjs:637
    Discovery now admits Docker producers for rerun and cross-attempt adoption; fixture rejection cases do not establish that foreign-parent and invalidated bindings are rejected before the production effect.
    Confidence: 0.95

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a162944 adds scripts/docker-release-artifacts.mjs:359 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a162944f5483; files: scripts/docker-release-artifacts.mjs)

PR surface

Tests +350, Config +5, Other +200. Total +555 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 379 29 +350
Docs 0 0 0 0
Config 2 5 0 +5
Generated 0 0 0 0
Other 3 245 45 +200
Total 9 629 74 +555

Review metrics

Metric Value Why it matters
Production versus test changes Production/workflows +250/-45; tests +379/-29 Growth supports frozen-contract discovery, per-architecture adoption, and distinct recovery and rejection regressions within the existing owners.

Root-cause cluster

Relationship: canonical
Canonical: #178179
Summary: This PR owns the main-branch producer-recovery change; two open release-train PRs explicitly backport it.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • remove merge-risk: 🚨 automation: Current PR review merge-risk labels are merge-risk: 🚨 security-boundary.

Label justifications:

  • P2: This repairs release-operator recovery with a limited blast radius and no demonstrated urgent installed-product regression.
  • merge-risk: 🚨 security-boundary: The patch expands which authenticated producers may receive GitHub rerun mutations and supplies cross-attempt artifact evidence to release verification.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add production-path proof of Docker recovery through sealing and parent verification, including foreign-parent rejection and invalidated attempt/tooling rejection before rerun I/O.

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 (6 earlier review cycles)
  • reviewed 2026-10-20T06:55:00.876Z sha 5f78ed1 :: needs real behavior proof before merge. :: [P2] Preserve discovered producers while other producer jobs remain active
  • reviewed 2026-10-20T07:27:19.100Z sha a0337a4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-20T07:57:33.451Z sha 3f6f59e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-20T08:07:13.597Z sha f5ac7f8 :: needs real behavior proof before merge. :: [P2] [P2] Complete recovered-attempt adoption in the artifact resolver
  • reviewed 2026-10-20T08:26:41.930Z sha 9ecb472 :: needs real behavior proof before merge. :: [P2] Complete candidate recovery before admitting the candidate stage
  • reviewed 2026-10-20T08:56:19.554Z sha 04403ae :: needs real behavior proof before merge. :: [P2] Complete Docker artifact adoption before admitting failed-job recovery

Reviewed October 20, 2026, 7:23 PM ET / 23:23 UTC (Revision 7).

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Addressed the mixed producer-state finding in a0337a40bb1:

  • producer discovery now retains completed dispatch identities while separately reporting whether another producer job is still active;
  • continuation can rerun an already-failed npm producer without waiting for an active Docker dispatch job;
  • added a regression covering npm failure recovery while Docker remains in progress.

Validation: all 104 test/scripts/frv.test.ts tests pass, pnpm tsgo:scripts passes, and oxlint reports zero warnings/errors.

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Repaired the integration fixture to provide the structured artifact-recovery workflow contract and canonical dispatch witness. The full release-ci-summary suite now passes and the test demonstrably reruns the failed npm producer before the parent.

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Oct 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added docker Docker and sandbox tooling size: L and removed size: M labels Oct 20, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the stale Docker adoption finding in 79dbcc2 with authenticated per-architecture producer attempts, and fixed the follow-up CI type error in 4118f3a.

Validation: the exact failing root-scripts type shard passes, and all 33 Docker artifact tests pass.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@RomneyDa
RomneyDa merged commit 10f76c5 into main Oct 20, 2026
178 of 182 checks passed
@RomneyDa
RomneyDa deleted the fix/rri-118-account-skipped-producers branch October 20, 2026 23:33
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
* fix(release): recover every failed artifact producer

Account for npm, Docker, and candidate producer jobs during failed release continuation, binding each recovery to the authenticated workflow and exact dispatch evidence.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): retain discovered artifact producers

Co-authored-by: RomneyDa <[email protected]>

* test(release): exercise structured artifact recovery

Co-authored-by: RomneyDa <[email protected]>

* fix(release): retain legacy npm recovery

Co-authored-by: RomneyDa <[email protected]>

* fix(release): adopt recovered artifact attempts

Co-authored-by: RomneyDa <[email protected]>

* fix(release): keep candidate recovery fail closed

* fix(release): adopt retried Docker architectures

* test(release): type Docker retry producer entries

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 28, 2026
Preserve the tested pinned-P unit from 9961d25.
Source lineage: #178179, #179112, #174693, #166083 and #172883.
No registry or release publication.

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling 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.

2 participants