Repository navigation
fix(release): preserve terminal registry readback failures - #167528
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR makes invalid registry content and conflicting publication evidence terminal while preserving bounded recovery from transient read failures. Example: The npm registry returns HTTP 200 with body
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR repairs a release-readback defect still present on main. The production changes are sound; one test-policy correction remains, and current-head CI is pending. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherRelease verification reads npm and ClawHub metadata and package bytes, checks their expected identities, and returns verified evidence or an error to publication orchestration. flowchart TD
A[Release orchestration] --> B[Registry read owners]
B --> C[npm and ClawHub]
C --> D[Bounded response reader]
D --> E[Content and identity verification]
E --> F[Verified evidence or terminal error]
B --> G[Bounded transient retry]
Technical reviewBest possible solution: Retain the focused read-owner repair and make its timeout regression deterministic before landing through the enforced gates. Do we have a high-confidence way to reproduce the issue? Current-main source explicitly retries completed malformed JSON and immutable identity conflicts, and existing tests encode those outcomes; the author also records failing-before regressions, while this review executed no target code. Is this the best way to solve the issue? The production repair fits the existing owners, preserves read-only transient recovery and exact-byte verification, and avoids a second publication or finalization path. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7008414e344e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +15, Tests +203, Other -24. Total +194 across 13 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed October 9, 2026, 10:30 PM ET / October 10, 2026, 02:30 UTC (Revision 7). |
|
P01 now includes the remaining immutable-artifact owner repair, at cleanup head Completed invalid content, permanent transport errors and identity conflicts are terminal. Typed transient HTTP/socket/timeout failures still recover without publication; Retry-After is never shortened. Reused the canonical bounded response reader, removing duplicate streaming/retry paths. Correction production delta −23; entire PR production/tooling −20, tests/support +205. Before production edits: 11 regression failures. Final Six native HTTP fault scenarios passed, including a real stalled body timeout. Public exact-byte readback of Fresh immutable-correction autoreview: scoped-clean through P2. The earlier loader finding was disproven against actual TSX launchers and a disposable raw retained-source replay with no dist/generated retry JavaScript. No import workaround added. ClawSweeper reviewed the production repair at Initial hosted run Restart recovery and remaining CI holdRecovered the interrupted unmodified local replay: Latest exact-head ClawSweeper review covers The prior reference to #167814 establishes only a shared failure signature. That PR now withdraws its inherited-main attribution because earlier main snapshots passed. Stronger independent evidence is CI run 38010590560, job 114089680253 for merged #168048: directly inspected logs show the same four OAuth cases failing, five passing, at Direct source comparison against Holding as requested for an outside-P01/shared CI failure. Not merge-ready; no CI waiver, generation-fence weakening, merge, publication, finalization or release dispatch. Required next proof: clean-main replay with retained raw evidence and a proven lifecycle repair or a separately authorized exception. P02/P03 remain separate; no next batch started. |
|
@clawsweeper re-review P01 now repairs the remaining immutable-artifact classification at |
|
🦞👀 Re-review progress:
|
1ed0817 to
98c7d5a
Compare
6f9fd01 to
424553b
Compare
…167528) * fix(release): preserve terminal readback failures * fix(clawhub): preserve timeout retries and source-only readback * fix(release): stop immutable readback on terminal evidence
Closes #167501
What Problem This Solves
Release readback could hide malformed registry content or permanent transport failures behind retries and eventual success. The immutable ClawHub verifier also retried byte, metadata and publisher-identity conflicts, so the earlier P01 patch only partially fixed the linked issue.
Why This Change Was Made
This completes P01 — retry transient publication readbacks only. It does not implement P02 public finalization or P03 attempt-state routing.
The existing npm and release ClawHub read owners retain bounded transient recovery. The shared immutable-artifact verifier now retries only explicit transient HTTP statuses, native timeout/socket causes and temporary 404 visibility. Completed invalid JSON/UTF-8, missing content, permanent HTTP/TLS failures and identity conflicts stop immediately; a later healthy response cannot hide them. Retry-After is a lower bound, not a delay to shorten to fit the budget.
Both direct postpublish verification and bootstrap/configure-only adoption use the repaired owner. Its duplicate streaming reader and error-wrapping retry paths are removed in favor of the existing bounded response reader, keeping the attempt deadline active through body reads. The already-retained plain-Node dependency closure includes that reader. No new framework, dependency, configuration, schema, publication or finalization path.
Full PR production/tooling delta: −20 lines; tests/test support: +205. This final correction removes 23 production lines. Remaining earlier growth owns typed runtime timeout production, source-only publication startup and explicit transient classification.
User Impact
Operators can recover an unfinished readback without publishing again. Conflicting immutable evidence is a terminal verification failure, not eventual publication success. Current publisher configuration and downloaded bytes still do not attest historical publication authentication.
Evidence
156412fec38b00d109da7998df1c1957e9f4b8dcand stablev2026.9.9retain the defective immutable retry owner. The root cause remains present, not superseded.@openclaw/[email protected], 141,289 bytes, SHA-2563910ee8a891c649b42bfaeb02d3254760a142d95124ec9f16d7101b905f267b9; metadata, download headers and current publisher binding verified. The final replay used nine GETs including transient recovery; mutations zero. Earlier probes hit native fetch timeouts; the successful final readback used IPv4-first DNS and the existing attempt-timeout option, with no product default changed.Final candidate validation
node scripts/run-vitest.mjs test/scripts/verify-clawhub-published-artifact.test.ts test/scripts/clawhub-postpublish.test.ts: 98 passed, final settled source.node scripts/check-changed.mjs --base a79c01f83d4b321e6e3ac531068e1ee69fc3559b -- scripts/verify-clawhub-published-artifact.mjs test/scripts/verify-clawhub-published-artifact.test.ts: all guards, formatting, graph boundary, four root-test type shards and all three Knip scans passed. Script lint required preserving the JSON parse cause; corrected script/test lint and the two remaining Docker/HTTP2 guards passed. Final diagnostic wrapping/test cleanup was followed by both targeted lint commands andpnpm tsgo:test:root; all passed.pnpm build: passed, 5m26.5s. Runtime/declarations, local plugins, CLI-bootstrap imports, SDK exports and postbuild stamps completed. It predates only final endpoint/cause diagnostic wrapping and duplicate-test removal; native import closure and build surfaces are unchanged, and the final source is covered by the native/compiled/type/lint replay. Inherited advisory startup-JS size warning remains (365.2 KiB vs 364.7 KiB); this PR changes no UI/build budget. Named existing follow-up: startup bundle budget.scripts/lib/release-publish-children.sh:42and:1308launch the TypeScript verifier withnode --import tsx;scripts/full-release-publication-admission.mts:280usesscripts/tsx.mjs. A new disposable replay copied only the canonical retained source inventory: no workspace dist and no generated retry.jsfiles. Native Node plus the actual TSX loader imported the release dependency closure successfully, resolving retry and normalization imports to the retained.tsfiles. Mutations zero. The new immutable.mjspath remains plain-Node.autoreview --mode uncommitted --base 4207f05bc69511d980f45f2649ad819c77783888 --max-priority P2: scoped-clean through P2. The prior loader finding was rejected using the actual TSX launchers and independent raw-source replay, not a production import workaround. ClawSweeper subsequently reviewed1ed08173c26da25ee0510b3d78d75b7e12ab9944: complete fix, Platinum Hermit, no findings. Hosted CI then exposed the copied-source fixture gap described below.No merge, release, publication, finalization or release-workflow dispatch performed.
Hosted integration repair
The first correction-head CI run
38003201515failed in publication admission: newly landed F01 madefull-release-validation-policy.mjsimportscripts/pr-lib/gh-api-preflight.mjs, but the copied workflow fixture omitted that dependency. Integrated captured maindb776fa6a76291770c53957517da7bc58ece4b26; reproduced the healthy-flow failure locally before adding the dependency to the canonical test inventory. Itsdirect-run.mjsdependency was already present; no runtime parser or extra production inventory was added.959197ba0923f883b7150ce97ef5e07295e1f3ee. Integrated that landed owner fix; core types and the guard pass. P01 adds no Gateway repair, suppression or allowlist.98c7d5a266216852a4e16bc7a3c56f96b68a552d, based on959197ba0923f883b7150ce97ef5e07295e1f3ee. All P01 production owners are byte-identical to the reviewed/native-proof1ed08173c26candidate. The only subsequent readback correction is the one-line copied fixture dependency. The cleanup below removes dead exports without changing behavior.Classified gate cleanup and current head
bf2aee99c58362d3f588d98432dcbc7adc371c73,codex-rs/protocol/src/openai_models.rs:432–447and:484–496. No model context resolution or Codex protocol/runtime change.38005498718failed in the unchanged authenticated-widget-sandbox UI test: the board control never received pointer events after an iframe resize. Inspected its screenshots, final video frames and event diagnostics; the control is visible and unobstructed. The same helper/test are unchanged on current main, and no existing fix was found. Focused real Chromium replay on this checkout passed. The exact failed condition is not proven, so no speculative timeout, assertion weakening or pointer bypass was added. Named follow-up: capture pointer-receipt versus ancestor-layout diagnostics if this inherited UI failure recurs.6f9fd018d23a6bea50609c75c4e8fa9765160a8a; exact-head hosted CI run 38006774597 finished failed. Both hosted UI E2E shards passed, but four OAuth reply-entry cases failed withAgent database execution generation was replaced. The same four-case failure is independently recorded on interrupted-completion recovery #167814. This is not a waiver or a passing gate: local baseline reproduction and native-generation retirement tracing are underway; stale-reader authority checks remain intact. The readback production owner remains byte-identical to the ClawSweeper-reviewed and native/public-proof candidate. No merge performed.Restart recovery and remaining CI hold
Recovered the interrupted unmodified local replay:
node scripts/run-vitest.mjs src/agents/model-fallback.reply-entry.e2e.test.tscompleted 9 passed, with no lifecycle edits. Its runner ended[test] passed 1 Vitest shard in 2898.73s; cold runtime/compiler preparation dominated the wall time. This does not supersede the failed hosted gate.Latest exact-head ClawSweeper review covers
6f9fd018d23a6bea50609c75c4e8fa9765160a8a: Platinum Hermit, no code findings; its remaining pre-merge step is failure attribution. Live GitHub reports this non-draft PR has no conflicts, but its required CI gate remains failed.The prior reference to #167814 establishes only a shared failure signature. That PR now withdraws its inherited-main attribution because earlier main snapshots passed. Stronger independent evidence is CI run 38010590560, job 114089680253 for merged #168048: directly inspected logs show the same four OAuth cases failing, five passing, at
src/state/openclaw-agent-execution-scope.ts:239throughsrc/auto-reply/reply/agent-runner-core.ts:306. #168048 records a clean-main89c0368fe52reproduction (4 failed/5 passed); its standalone baseline log was not available for independent inspection, so that claim remains attributed evidence, not our own baseline run.Direct source comparison against
89c0368fe52finds no differences in this E2E, generation owner/assertion, reply admission wrapper, runner core or result-payload owner. No safe lifecycle root-cause repair is established. #168048 used an explicitly authorized inherited-failure exception; that is not a repair or an exception for P01. Current-main security-fast success does not cover this test.Holding as requested for an outside-P01/shared CI failure. Not merge-ready; no CI waiver, generation-fence weakening, merge, publication, finalization or release dispatch. Required next proof: clean-main replay with retained raw evidence and a proven lifecycle repair or a separately authorized exception. P02/P03 remain separate; no next batch started.