Skip to content

fix: reduce API requests for direct plugin release recovery - #204015

Merged
RomneyDa merged 1 commit into
mainfrom
fix/direct-plugin-evidence-reuse
Nov 23, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/direct-plugin-evidence-reuse

Conversation

@tideclaw-bot

Copy link
Copy Markdown
Collaborator

Related: #199853

What Problem This Solves

Direct prepared-plugin release recovery repeatedly downloads the same qualification evidence. Unlike parent-backed publication, it misses the evidence-reuse optimization and can refuse a 52-package batch unless 27,648 API requests remain.

User Impact

Release operators can use the existing optimized evidence path for direct recovery too. A 52-package batch with a current authenticated handoff needs 6,640 available requests instead. Package bytes, separate direct publication approval, and final live authority checks are unchanged.

Why This Change Was Made

The prepared CLI now owns handoff eligibility, emitted attempt identity, and the matching admission budget for both routes. An absent parent is explicitly null; partial tuples and cross-route replay are rejected. The workflow uploads evidence only when the CLI emits it. Non-FRV preparation remains on its existing carrierless path.

Evidence

  • Direct production-CLI regression fails on base; 73 boundary/workflow tests pass. Both 101-package routes use 4,901 physical requests across 203 independent CLI processes, within the unchanged 54-request worker cap.
  • Exact binding, final authority, tampered bytes, independent source/qualification, and non-FRV fallback covered.
  • Retry proof uses 26 requests; bounded pagination/retry exhaustion stops at exactly 54 with no output.
  • 26 prepared-owner, two receipt-recovery, and one approval-guard tests pass. Scoped lint, tooling typecheck, workflow, format, and diff checks pass.
  • Parent inspected the patch and proof; independent review omitted under explicit task instruction.

Live-proof limits: The focused beta.2 backport accepts the original seal and exact preparation artifact in read-only preview. The subsequent carrierless consume timed out; authorize did not run. Hosted optimized consume/authorize remains unverified until a successful new-tooling preview produces its authenticated artifact. Current main has a separate existing incompatibility with that historical seal; the release backport retains its existing compatibility repair. No rebuilt artifacts or fabricated hosted evidence are used.

Share the authenticated evidence handoff and admission owner with parent-backed publication while preserving direct approval and exact artifact identities.

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

clawsweeper Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts labels Nov 23, 2026
@tideclaw-bot
tideclaw-bot marked this pull request as ready for review November 23, 2026 09:25
@tideclaw-bot
tideclaw-bot enabled auto-merge (squash) November 23, 2026 09:29
@RomneyDa
RomneyDa disabled auto-merge November 23, 2026 09:37
@RomneyDa
RomneyDa merged commit 28fcb74 into main Nov 23, 2026
167 of 168 checks passed
@RomneyDa
RomneyDa deleted the fix/direct-plugin-evidence-reuse branch November 23, 2026 09:37
tideclaw-bot added a commit that referenced this pull request Nov 23, 2026
Backport PR #204015 to the beta.3 preparation branch. Preserve the newer
retained-artifact qualification owner and beta.3 workflow/test repairs.
Resolve only the comment and parameterized process-test context conflicts.
The resulting patch matches beta.2 backport eb005b4.

The already-running FRV remains pinned to C/Q 1a9812d and P 0174cf4;
it does not qualify this newly changed branch tip.

(cherry picked from commit 28fcb74)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
…#204015)

Share the authenticated evidence handoff and admission owner with parent-backed publication while preserving direct approval and exact artifact identities.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
tideclaw-bot added a commit that referenced this pull request Nov 24, 2026
…04360)

Allow reuse of authenticated child execution after qualification tooling changes.
Keep the original producer Q, exact candidate and inputs, receipt and artifact
identity, live attempts, and reevaluation under current Q grants.

Release adaptation: preserve stable's historical publication artifact selector,
its strict workload identity validator, and exact beta.2 bookkeeping exception.
Change only sealed child reuse; keep the branch's cancellation and reseal
behavior, and omit main-only receipt-backed aggregate recovery guidance. Adapt
proof to assert strict historical artifact selection and fail-closed lineage and
receipt checks. Admitted candidate FRV must select a P containing #204360.

Companion audit: #200377, #203885, #201773, #203832 and the waiver run-ID part
of #204300 are present-equivalent. Historical producer selection and #199838's
retired recovery contract are preserved; main-only recovery (#201814, #203826,
#204015 and the remainder of #204300) and unrelated fast-track/publisher changes
are not required. #204326 is already present. The original audit pin predates
#204360; no later touched-path commits were found through 0f3fc70.

(cherry picked from commit b8d72ac)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit bf4aa536ca4ef25469c2076d4a08e3fe706bf644)
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 scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants