Skip to content

fix(release): retry timed-out plugin source fetches - #199924

Merged
RomneyDa merged 4 commits into
mainfrom
openclaw/ledger-runtime
Nov 17, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
openclaw/ledger-runtime

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Related: #133368

What Problem This Solves

Fixes plugin npm preflight and publication jobs failing immediately when their exact-source Git fetch times out transiently.

User Impact

Release operators can recover from a transient fetch timeout within the existing job instead of restarting the publication workflow. Fetch attempts remain bounded; no publication is retried by this change. There is no installed-product behavior change or required migration.

Why This Change Was Made

Both source-manifest read steps now use the existing Git owner’s retry-capable fetch operation. It preserves the selected immutable SHA, depth-one/blobless fetching, subprocess cleanup, and cancellation behavior, with up to three attempts and a five-second backoff. The manifest read remains outside the retry. The currently pinned action already supports this operation; no action pin or ownership policy changes are needed.

This is a maintainer-directed release-tooling repair. The release repair removes 20 production lines and adds 19 regression-test lines, without another retry implementation or test-only production seam. A subsequent patch-identical application of upstream #199944 corrects the inherited lint failure described below.

Evidence

  • Red: both workflow-entry regression cases failed against unchanged production with exit 124 and no manifest output after the first stalled fetch.
  • Green: node scripts/run-vitest.mjs test/scripts/plugin-release-git-lifecycle.test.ts --maxWorkers=1 — 47/47 passed, 28.00 seconds in Vitest / 28.85 seconds wrapper wall time. Hosted CI time is not yet measured.
  • The regression executes the actual YAML/Python policy entry points with a stalled first fetch followed by success, checks both attempts retain the same SHA, and requires one successful manifest read. Shared fixture assertions check descendant cleanup before subsequent operations and preservation of preexisting locks.
  • Passed targeted root-scripts typecheck, changed-test lint, formatting, git diff --check, and scripts/check-workflows.mts (including actionlint and zizmor).
  • Fresh native independent source review found no P0–P2 findings on the complete original two-file diff based on f4d2e45592438dbaae12975e1c4223a991285b7a, including direct inspection of the pinned action’s fetch/export contract. Release-repair commit 44f7ad857814fb4d39fcc77050c02fe38d2cf717 is patch-identical to that reviewed snapshot. Local review tools were unavailable; this was not machine-validated autoreview or a clean ClawSweeper certification.
  • Hosted ClawSweeper review subsequently reported no actionable findings at cc8e2b13c83990e5c40e7735fa1f5b0fc7062451. That prior-head review is not a certification of the subsequent lint correction or current head.
  • The lint correction was verified patch-identical to upstream 54070dc (fix(ci): core lint fails on main after the MCP catalog JSON snapshot change #199944), with focused lint red/green proof, 14/14 suppression-guard tests, and formatting checks. Existing valid release-repair proof was retained rather than unnecessarily rerun.

Proof limits: controlled Git subprocess I/O, virtual fetch deadlines/backoff, and accelerated TERM escalation; the harness uses the current local owner, with pinned-owner compatibility source-inspected. No live release fetch, remote release-workflow dispatch, OIDC, or npm publication was exercised. Publishing this PR is separate from release-publication proof.

Hosted CI follow-through

Historical failure: at old head cc8e2b13c83990e5c40e7735fa1f5b0fc7062451, CI run 43798181775 failed lint job 133073262681: src/agents/tool-search-prepared-catalog.ts:118:48, unicorn/prefer-structured-clone; its aggregate CI gate was also red. The failing source blob 5226ae58848652825503bb9c0558b70b73c7baf0 was identical at the original base and that old head. This established an inherited failure; it was not passing proof or a waiver.

Current correction: commit 4a5d6dfe0915282e9fc65b09092541de71bcfd90 applies the exact upstream #199944 correction: document why JSON encoding intentionally drops undefined metadata, and register that intentional suppression in the existing guard test. Patrick Erichsen's authorship and both human co-author trailers are preserved. Published head 81ad078c4c2093b94710679119e6ef944a329caf has the same tree as the prepared correction. Fresh checks are attached to that head and pending; the old lint failure does not describe the corrected source, and local lint success does not claim current hosted CI is green. Hosted review remains separate from CI.

Worked on by

RomneyDa and others added 2 commits November 16, 2026 03:17
Route both exact-source manifest reads through the existing Git fetch
owner, preserving immutable targets and cleanup before bounded retries.
Prove timeout recovery at both workflow policy entry points.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc
@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review November 16, 2026 03:26
@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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR routes both plugin npm source-manifest fetches through the existing Git owner's bounded timeout retries.

Example: The first exact-source fetch stalls for 120 seconds, and the second attempt succeeds.

  • Before: The job exits with code 124 before reading the source manifest.
  • After: The owner drains the stalled process tree, waits five seconds, retries the same SHA, and then reads the manifest once.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, minimal patch with targeted workflow-boundary regressions and a verified pinned-owner contract; execution evidence is harness-based and the required CI gate remains unresolved.
Proof confidence 🦐 gold shrimp (3/6) This internal workflow repair requires no installed-product demonstration; supplied proof executes both YAML policies with controlled Git subprocess I/O and explicitly excludes live transport and publication.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators must restart plugin npm workflows after a transient exact-source fetch timeout.
Reason: The maintainer-authored direction is established, and reusing bounded fetch recovery provides clear operational value with less production code.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a focused release-tooling repair with no actionable diff findings; the required CI gate remains red.

Priority: P2
Reviewed head: cc8e2b13c83990e5c40e7735fa1f5b0fc7062451

Before merge

None.

Findings

None.

Agent review details

How this fits together

Plugin npm preflight and publication jobs fetch an immutable source commit, read its package manifest, and pass those bytes to artifact verification before publication.

flowchart TD
  A[Immutable source SHA] --> B[Source manifest workflow step]
  B --> C[Pinned Git owner]
  C --> D[Bounded fetch retries]
  D --> E[Exact manifest read]
  E --> F[Artifact verification]
  F --> G[Publication gates]
Loading

Technical review

Best possible solution:

Use the existing fetch owner at both manifest-read sites, preserving immutable SHA selection and keeping manifest verification and publication outside retries.

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

Current main propagates the first fetch timeout before manifest output; the supplied regression reports that failure on the base and recovery on the head, but this read-only review ran no target code.

Is this the best way to solve the issue?

This is the smallest complete repair: both affected callers adopt the existing retry owner without adding retry machinery, changing publication policy, or retrying publication.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • One-shot source-manifest fetches changes intended behavior with a stated reason (50b675f: The earlier lifecycle migration deliberately preserved existing retry behavior while requiring process-tree extinction before downstream consumers.)
  • Blobless immutable-source manifest reads keeps the original intent (739a335: Avoid transferring whole source snapshots to read one manifest while retaining bounded network operations and artifact identity checks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 5e6d9a2 adds .github/workflows/plugin-npm-release.yml:209 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5e6d9a2781d6; files: .github/workflows/plugin-npm-release.yml)
  • Vincent Koc: Raw commit daa653c adds .github/workflows/plugin-npm-release.yml:91 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: daa653c5cc34; files: .github/workflows/plugin-npm-release.yml)

PR surface

Tests +19, Config -20. Total -1 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 19 0 +19
Docs 0 0 0 0
Config 1 4 24 -20
Generated 0 0 0 0
Other 0 0 0 0
Total 2 23 24 -1

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 LOC Production -20 net lines; tests +19 lines The change deletes duplicated fetch invocation details and adds one parameterized regression covering both independently wired workflow steps.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Transient fetch timeouts interrupt release operators' plugin preflight and publication jobs, with no installed-runtime impact.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 15, 2026, 10:57 PM ET / November 16, 2026, 03:57 UTC.

Patrick-Erichsen and others added 2 commits November 17, 2026 00:31
…change (#199944)

* fix(agents): core lint fails on the MCP catalog JSON snapshot

#199909 snapshots MCP catalog metadata through JSON on purpose, because the
round trip drops undefined members that structuredClone would keep. The
unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2
fails on main and on every pull request whose lint lanes include src/agents.
Record the reason with the repository's usual suppression.

* test(scripts): allow the MCP catalog JSON snapshot suppression

The production suppression allowlist must name each intentional lint
suppression; add the one this change introduces.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S and removed size: XS labels Nov 17, 2026
@RomneyDa
RomneyDa merged commit b4190c2 into main Nov 17, 2026
131 checks passed
@RomneyDa
RomneyDa deleted the openclaw/ledger-runtime branch November 17, 2026 08:57
RomneyDa added a commit that referenced this pull request Nov 17, 2026
* fix(release): retry timed-out plugin source fetches

Route both exact-source manifest reads through the existing Git fetch
owner, preserving immutable targets and cleanup before bounded retries.
Prove timeout recovery at both workflow policy entry points.

Release adaptation: none.

Companion review: Priority approved #199924: source b4190c2. Full plugin npm workflow and lifecycle tests read; shared Git fetch/run_git/git_output contract and test harness traced. Both exact-source package-read workflow entry points fail on first timed-out fetch, exit124 and no manifest;2 red failures/45 skipped in199924-red.log. Existing fetch owner retries bounded3, same exact SHA, blobless, drains children/reclaims owned locks before retry and preserves cancellation fencing. No new dependency; helper already present. Companion scan to c8d5cf5 finds no later path/source followups; neighbor plugin package policy suite is unchanged consumer and will be exercised. All-release ledger query has no sibling assessment. No publication/authority/artifact integrity policy changed.

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

* fix(release): retry timed-out plugin source fetches

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc

* fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944)

* fix(agents): core lint fails on the MCP catalog JSON snapshot

#199909 snapshots MCP catalog metadata through JSON on purpose, because the
round trip drops undefined members that structuredClone would keep. The
unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2
fails on main and on every pull request whose lint lanes include src/agents.
Record the reason with the repository's usual suppression.

* test(scripts): allow the MCP catalog JSON snapshot suppression

The production suppression allowlist must name each intentional lint
suppression; add the one this change introduces.

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

* Publish openclaw/ledger-runtime

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf

---------

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
(cherry picked from commit b4190c2)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
* fix(release): retry timed-out plugin source fetches

Route both exact-source manifest reads through the existing Git fetch
owner, preserving immutable targets and cleanup before bounded retries.
Prove timeout recovery at both workflow policy entry points.

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

* fix(release): retry timed-out plugin source fetches

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc

* fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (openclaw#199944)

* fix(agents): core lint fails on the MCP catalog JSON snapshot

openclaw#199909 snapshots MCP catalog metadata through JSON on purpose, because the
round trip drops undefined members that structuredClone would keep. The
unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2
fails on main and on every pull request whose lint lanes include src/agents.
Record the reason with the repository's usual suppression.

* test(scripts): allow the MCP catalog JSON snapshot suppression

The production suppression allowlist must name each intentional lint
suppression; add the one this change introduces.

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

* Publish openclaw/ledger-runtime

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf

---------

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix(release): retry timed-out plugin source fetches

Route both exact-source manifest reads through the existing Git fetch
owner, preserving immutable targets and cleanup before bounded retries.
Prove timeout recovery at both workflow policy entry points.

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

* fix(release): retry timed-out plugin source fetches

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 44e02330-78d5-4a34-b429-49716c9c10dc

* fix(ci): core lint fails on main after the MCP catalog JSON snapshot change (#199944)

* fix(agents): core lint fails on the MCP catalog JSON snapshot

#199909 snapshots MCP catalog metadata through JSON on purpose, because the
round trip drops undefined members that structuredClone would keep. The
unicorn/prefer-structured-clone rule rejects that line, so check-lint-core-2
fails on main and on every pull request whose lint lanes include src/agents.
Record the reason with the repository's usual suppression.

* test(scripts): allow the MCP catalog JSON snapshot suppression

The production suppression allowlist must name each intentional lint
suppression; add the one this change introduces.

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

* Publish openclaw/ledger-runtime

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 76d33b04-cb7e-4bdf-a924-c0ed6ce3dcaf

---------

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
(cherry picked from commit b4190c2)
(cherry picked from commit 38c263d2bcd7bf4f6814a501dc99bbbaec9d17f3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants