Skip to content

fix(release): bound publication recovery to authenticated original evidence - #196596

Merged
RomneyDa merged 25 commits into
mainfrom
openclaw/receipt-payload-repair
Nov 10, 2026
Merged

RomneyDa merged 25 commits into
mainfrom
openclaw/receipt-payload-repair

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Problem

Publisher 42792702215 and npm child 42795139047 exhausted GitHub installation quota during full package fanout. Retained evidence needed bounded replay without replacing full admission or rebuilding C/Q artifacts. Original ClawHub child 42795145859/1 packed all 101 packages but never published: its approval failed with installation-quota HTTP 403 at 10:17:22 UTC on November 10, 2026, and publication job 129767568082 was skipped with no steps. Its seal contains unavailable entries without attempt IDs, not failed publication attempts.

Solution

  • Reuse the existing evidence owner for completed exact attempts and exact-SHA comparisons. Keep current authority, mutable refs, artifact metadata and child-parent binding live; deduplicate actor grants and metadata acquisition only within the authenticated operation.
  • Authenticate full original admission and immutable npm manifests before selecting packages. Validate exact source packages and fresh final authority; prune published npm packages only after exact registry-byte verification.
  • Keep bounded ClawHub recovery for actual attempted publications. Add a separate original-packed descriptor through the existing prepared-artifact owner for a proven skipped publisher: authenticate the original FRV, full admitted roster, seal, transactions and packing jobs, then restore and publish their exact sealed bytes under fresh current-parent approval. No repacking or fabricated historical authorization.
  • Require fresh authoritative registry publication absence for original-byte initial publication; pending, failed, unknown and ambiguous states fail closed. Bind descriptor parent run and attempt to the real dispatch event before authentication.
  • Discover immediate extension directories nonrecursively and fetch package manifests at the immutable SHA, without traversing unrelated large subtrees or increasing transport limits.
  • On the original-byte route, wait for successful terminal npm completion, check the release tag and registry absence, then use the existing parent authorization uploader. Require ClawHub terminal success and exact public readback before either core dispatch or disabled-core exit. Ordinary release authorization retains its existing ordering.
  • Permit active-parent readback only through an explicit same-run/same-attempt producer policy and the unique exact successful upload step. Select the actual original-byte authorization upload step; default completed-job checks and other consumers stay unchanged.

Release/channel/route/Windows operands and artifact identities remain unchanged. No new credential, permission expansion, replacement admission, C/Q rebuild, release dispatch, merge or external publisher-pin change.

Evidence and remaining gates

  • Published head: 25529b0852f402d9a6e6999eb618ff92adb64e90; worktree clean. Exact-head CI 42816682065 completed successfully, with no failed jobs in its inventory.
  • Previous CI 42814883590 on e95470bc6da7bafd99e636a11e72c2d79c9c9130 exposed eight stdin-import failures from the newly reached recovery module's unguarded realpathSync("-"), plus one seal-corruption fixture mismatch. The correction preserves realpath/symlink CLI recognition while allowing non-file importers; the fixture now flips one byte in the actual same-length ZIP, reaching digest validation without weakening its assertion. These failures are green in the subsequent exact-head CI.
  • Added production-entry regressions for original-byte restoration, full-roster admission, skipped-publisher authentication, real dispatch binding, strict registry absence, unrelated >1 MiB source subtrees, original-byte workflow ordering, active parent/job upload-step authentication, and negative upload/attempt boundaries. Existing sparse npm, exact-byte pruning and recovery coverage remains.
  • Fresh independent read-only reviews covered source ownership, workflow ordering, active-parent/step-name binding and the final three-file CI correction. Final review found no actionable findings and no apparent type or fixture mistakes. Reviews were source/diff inspection, distinct from hosted executable proof.
  • Pinned oxfmt and git diff --check passed. No local tests, lint, typecheck, build, dependency installation or product execution ran, per task constraints. A red-on-base run of the original handoff regressions and live-flow verification remain unperformed; hosted green CI does not prove a live release or registry write.
  • Simplification retains the existing prepared/publisher owners and shared authorization CLI rather than parallel publishing policy. Necessary growth authenticates the missing initial-publication handoff and protects its distinct boundaries. Cumulative increment against b00324095c9f04ec00317d666de48573ba2aa198: 26 files, +2962/-211. Exact net new test LF: 1352, funded by receipt-bounded-publication.txt; the earlier immutable-authority allocation remains 117. Changed-test-specific wall time and CI seconds remain unmeasured.

Operational and quota limits

The handoff is implemented but the original incident is not operationally recovered. No package writes or release retry were performed. Fresh registry absence, current protected inputs, approval and conservative measured capacity are still needed at operation time.

Original measured fixture: preview 194, consume 162, authorize 159; the 101-consumer extrapolation was 32,615, not an executed workload. Earlier full-fanout static predictions of 27,134 were not measurements and do not establish quota fit.

Allowlisted first/last quota headers are observed from existing responses without extra requests. fetch-metadata-only accounting excludes gh authority/evidence calls, archive redirects and registry traffic; it is not a complete dispatch budget or automatic quota gate. Selected scope avoids full prepared-roster prefetch. Full FRV traversal, stale-child inventories, pagination/retries, polling and Actions-managed traffic remain to be accounted for without assuming independent job quotas.

The incident launched 101 package jobs within two seconds, with 79 installation-quota errors within about 5.93 seconds. Original logs lacked capacity/remaining/reset/resource and Retry-After headers. Actual capacity, reset, safe batch size and retry window remain unverified. No unrelated quota was substituted; this proof does not justify a release retry.

Prior security-scan SARIF upload HTTP 403 was not changed. Main conflict was previously reconciled against 23bf595953db; PR #196541 is already merged. The paused simplification patch remains unchanged. Lead owns package-write reconciliation, merge and release.

Co-authored-by: RomneyDa [email protected]

RomneyDa and others added 12 commits November 10, 2026 07:26
OpenClaw-Publication: abfbfbf5-b067-4515-a86b-fb0966d6ec9e
OpenClaw-Publication: f8570c45-3da1-459c-98b7-ac39f4f91c54
OpenClaw-Publication: 26ecd3d3-263d-4bc8-b005-05325b100678
OpenClaw-Publication: b6c7c43f-4252-41a5-bf63-946ce2fb2a89
OpenClaw-Publication: 8479cb12-ce63-44ac-b35a-4baac32f7b09
OpenClaw-Publication: 0b194f7f-7ad9-41ab-8200-60328347ccc3
OpenClaw-Publication: 3624462e-edb8-4eb6-906a-10ae4be0df5d
Preserve the reviewed three-file correction unchanged while resolving its test conflict with the already merged repair.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: a51a7eb4-ebb8-41c4-97a0-93b8474198f7
OpenClaw-Publication: cb0f9035-5174-49d5-a399-cd8fab8371b9
OpenClaw-Publication: 1550244b-437d-4fa2-b7da-91427630206f
OpenClaw-Publication: 998652a8-cd73-476f-aa13-486b5ef3bcff
@clawsweeper

clawsweeper Bot commented Nov 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
OpenClaw-Publication: 004582c6-e7b3-4f68-9a12-aadcd4baedec
OpenClaw-Publication: 2e36dfa9-dfc9-4649-87a4-ac036debd550
OpenClaw-Publication: 500fc32e-96dd-4b7b-98a7-23d29cb451cb
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Nov 10, 2026
@clawsweeper clawsweeper Bot added 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR replays completed run attempts and exact-SHA comparisons while consolidating duplicate permission and artifact metadata reads.

Example: A package consumer authenticates retained qualification run 42386075889, attempt 1.

  • Before: Consume reacquires the completed attempt from GitHub despite having retained preview evidence.
  • After: Consume replays the completed attempt while continuing to check current permissions and artifact metadata.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, focused ownership-preserving optimization with one confirmed test defect and no current-head final-authority behavior proof.
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: Release operators encounter excessive GitHub evidence requests during package publication, contributing to installation quota exhaustion.
Reason: The maintainer-authored direction removes demonstrated duplicate requests through existing owners; it does not claim that the remaining workload fits the installation quota.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: this maintainer-authored PR addresses repeated release-evidence requests still present on main, but its changed request-count assertion fails current-head CI.

Priority: P2
Reviewed head: b00324095c9f04ec00317d666de48573ba2aa198

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise current-head preview, consume, and authorize with retained completed attempts and exact-SHA comparisons, recording the reduced reads and successful outputs for authorized actors, then rejection before outputs for a distinct unauthorized triggering actor and permission revocation after package acquisition; redact credentials, IPs, and non-public endpoints. 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.
  • Account for the consolidated grant in the removed-request assertion (P2) - The final callback now performs 15 fixture requests: completed-attempt replay removes one read from the previous 17, and sharing the identical actor/triggering-actor grant removes another. This assertion only accounts for the first reduction and expects 16. Current-head CI fails here with expected 15 to be 16, blocking checks-node-compact-small-3 and its aggregate gate. Correct the expectation and nearby explanation while retaining the callback-equivalence and live-authority assertions.
  • Resolve security review attention item - Source inspection found no concrete authorization bypass, but the release-authority optimization still needs final-effect validation.
  • Resolve merge risk - The PR owner must establish that replayed attempt identities and consolidated grants still reject a distinct unauthorized triggering actor and post-acquisition revocation before publication outputs.

Findings

  • [P2] Account for the consolidated grant in the removed-request assertion — test/scripts/plugin-npm-evidence-reuse.test.ts:650

Tests

  • Missing end-to-end proof: Supply current-head release CLI evidence for reduced acquisition and final-authority rejection; supplied prior-head fixture results and static predictions do not establish the changed behavior or red-base/green-head regression.
Agent review details

How this fits together

Release preview collects authenticated GitHub evidence into a bounded carrier; package consume and authorize commands validate that evidence and refresh live authority before emitting publication outputs.

flowchart LR
  A[GitHub release evidence] --> B[Preview authentication]
  B --> C[Bounded evidence carrier]
  C --> D[Consume and authorize]
  E[Live permissions and metadata] --> D
  D --> F[Publication outputs]
Loading

Technical review

Best possible solution:

Keep the existing replay and authority owners, correct the stale request-count assertion, and validate the optimized release flow without changing candidate qualification or publication permissions.

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

Current main excludes the reported completed-attempt and exact-SHA routes from replay, establishing repeated acquisition from source; current-head CI independently demonstrates the stale count assertion without a local test run.

Is this the best way to solve the issue?

The approach fits the existing content-only replay boundary: duplicate work moves to established owners, mutable checks remain live, and no additional cache framework or production layer is needed.

Full review comments:

  • [P2] Account for the consolidated grant in the removed-request assertion — test/scripts/plugin-npm-evidence-reuse.test.ts:650
    The final callback now performs 15 fixture requests: completed-attempt replay removes one read from the previous 17, and sharing the identical actor/triggering-actor grant removes another. This assertion only accounts for the first reduction and expects 16. Current-head CI fails here with expected 15 to be 16, blocking checks-node-compact-small-3 and its aggregate gate. Correct the expectation and nearby explanation while retaining the callback-equivalence and live-authority assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Verify final authority before merge (recommended)
    The PR owner should provide current-head allowed and denied consume/authorize evidence, including distinct principals and permission revocation after evidence acquisition.

Provenance checked

  • Content-only evidence replay keeps the original intent (c9e6370: Reduce identical publication evidence acquisition while keeping permissions, producer attempts, artifact metadata, and final authority live.)
  • Original qualification refresh keeps the original intent (62a3f2f: Authenticate original successful receipts and current operator authority during release recovery; the inner owner still performs the removed outer refresh.)
  • Operator identity and grants keeps the original intent (38740f2: Require authenticated qualification actors with current repository authority; both identities remain validated and only identical principals share a response.)
  • Child artifact metadata keeps the original intent (ebdab59: Bind reused child evidence to its selected artifact identity; the existing downloader and post-download identity comparison retain that validation.)
  • Pinned source-parent origin keeps the original intent (db9a5ce: Historical dispatch origins must remain valid after parent reruns while exact origin identity is still checked live.)

Testing

Proof path: in-process harness.

Security

Needs attention: Source inspection found no concrete authorization bypass, but the release-authority optimization still needs final-effect validation.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit c9e6370 adds scripts/lib/release-evidence-replay.mjs:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c9e6370bb191; files: scripts/lib/release-evidence-replay.mjs)
  • Peter Steinberger: Raw commit ebdab59 adds scripts/lib/full-release-child-reuse.mjs:251 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ebdab59f91db; files: scripts/lib/full-release-child-reuse.mjs)
  • Vincent Koc: Raw commit cbe3731 adds .agents/skills/release-openclaw-ci/scripts/release-ci-summary.mjs:1003 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: cbe3731f7723; files: .agents/skills/release-openclaw-ci/scripts/release-ci-summary.mjs)

PR surface

Tests +117, Other +26. Total +143 across 12 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 124 7 +117
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 7 61 35 +26
Total 12 185 42 +143

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test changes Production +59/-35; tests +124/-7 The small production increase extends existing owners; regression growth covers replay eligibility, live-origin preservation, request accounting, and paired principals.

Labels

Label changes:

  • add P2: Repeated evidence acquisition affects internal release publication, with a focused repair and no demonstrated end-user runtime outage.
  • add merge-risk: 🚨 security-boundary: The optimization changes acquisition and refresh of release authorization evidence; source retains live checks, but final-effect rejection needs current-head validation.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: Repeated evidence acquisition affects internal release publication, with a focused repair and no demonstrated end-user runtime outage.
  • merge-risk: 🚨 security-boundary: The optimization changes acquisition and refresh of release authorization evidence; source retains live checks, but final-effect rejection needs current-head validation.
  • 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 current-head final-output proof for distinct unauthorized principals and post-acquisition permission revocation.

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.

Reviewed November 10, 2026, 6:09 AM ET / 11:09 UTC.

OpenClaw-Publication: 3b9e9ecf-2ad4-4451-a79c-39f4c588b96e
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL and removed size: M labels Nov 10, 2026
@RomneyDa RomneyDa changed the title fix(release): replay completed attempt and exact-SHA evidence fix(release): bound publication recovery to authenticated original evidence Nov 10, 2026
OpenClaw-Publication: 49318147-01d3-473c-bc85-a9b980e3555e
OpenClaw-Publication: a9b96fd0-3487-44c5-89af-cf045841eeb3
OpenClaw-Publication: 5ea47457-2204-451e-92f9-fb5f29c71d47
OpenClaw-Publication: d76599c7-9b62-4589-8dee-c07869e3ca1c
OpenClaw-Publication: 31bc8d15-5696-46c7-9a21-a93ea38faa96
OpenClaw-Publication: 0e82f47f-9fee-4942-aacb-7caaa31c81d4
@RomneyDa
RomneyDa merged commit 53aed90 into main Nov 10, 2026
117 checks passed
@RomneyDa
RomneyDa deleted the openclaw/receipt-payload-repair branch November 10, 2026 16:26
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: 🚨 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.

1 participant