Skip to content

fix(release): expose Linux builder admission and retain failed bundles - #170297

Merged
RomneyDa merged 7 commits into
mainfrom
fix/linux-release-diagnostics
Oct 15, 2026
Merged

RomneyDa merged 7 commits into
mainfrom
fix/linux-release-diagnostics

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Closes #170291

What Problem This Solves

Linux release requests do not expose their actual downstream builder/admission in publication status, and failed packaging checks discard completed bundle bytes needed for diagnosis.

User Impact

Release operators can follow the exact request attempt to its builder and see receiver admission separately from dispatch acknowledgement. Completed failed-build bundles are retained for 14 days as explicitly unqualified diagnostics. Signing and publication eligibility are unchanged.

Why This Change Was Made

The existing Linux workflow now records its request, tooling, builder, selected source, and admission outcome. The existing bounded FRV reader consumes that evidence and reports an absent child as awaiting admission, a stale-main rejection as rejected, and terminal builder results without treating them as publication qualification. Correlation titles select candidates only; authenticated receiver artifacts own admission. Historical dispatches missing an exact attempt remain unknown rather than adopting a newer request attempt.

Failure-only diagnostic uploads contain completed .deb/AppImage bytes, source/tooling identity, failed-check outcomes, and checksums. They never expose the artifact IDs used by signing. This reuses existing workflow artifacts and readers, with no durable cache, new recovery dispatch, permission change, or alternate signing path. Production changes implement the previously absent read-only Linux surface and its owner evidence, with focused shell and CLI regression coverage.

Evidence

  • Observed packaging failure, run 37763337117: build, finalization, and staging passed; packaged runtime failed; normal bundle uploads and signing/publication skipped. Its artifacts retain runtime logs but not completed bundles.
  • pnpm test test/scripts/ci-workflow-guards.test.ts --maxWorkers=1 -t 'exact Linux request|exact completed Linux bundle': 3 passed, 6.68s wall time. Runs production workflow shell bodies, checks exact receiver JSON and retained bundle bytes/checksums, and verifies that signing depends on the failed build and consumes only qualified artifact IDs.
  • pnpm test test/scripts/frv.release.test.ts --maxWorkers=1 -t 'correlates the Linux builder': 6 passed, 14.52s wall time. Exercises real CLI transport/artifact boundaries for awaiting admission, exact admission, stale-main rejection, wrong source, foreign request, and unknown historical attempt.
  • Existing Windows/readback sibling scenarios passed (9 total focused FRV tests, 17.77s wall time before the final historical-attempt case).
  • pnpm test test/scripts/linux-updater-manifest.test.ts --maxWorkers=1 -t 'same-tag request|earlier request|requests Linux|dispatch': 9 passed, 11.96s wall time.
  • Regression controls against pinned pre-fix main fail: admitted Linux observation is absent; failed-bundle retention has no owner step. Original source bytes were restored afterward.
  • pnpm tsgo:scripts, pnpm tsgo:test:root, targeted script/root-test oxlint, formatting, git diff --check, pnpm docs:check-mdx, and PATH=/opt/homebrew/bin:$PATH pnpm check:workflows: passed. Initial workflow check correctly rejected the system Python 3.9 prerequisite; the installed supported Python runtime was used without changing product code.
  • Fresh independent autoreview: scoped clean at P0/P1, no actionable findings.
  • Live GitHub GET proof and official contracts: workflow-run filtering, workflow_run default-branch identity, and pinned artifact action. Request creation-time filtering returned two current-day builders rather than all eleven historical runs; no head-SHA filter hides stale-main rejection.

No real release build, signing, publication, or recovery was dispatched for this PR. Retained diagnostics support exact-byte inspection/checker reruns but do not implement full requalification without rebuilding. Prior-head CI 38314104129 passed 40 jobs with 26 skipped in 991 seconds wall time. That is historical proof for 513eeb0, not the corrected head. Corrected-head CI 38504601578 passed: 40 jobs successful, 26 skipped, 484 seconds wall time, at exact head 83221c6a3d8e4a73a164b198e0e498a069d50ee1. The companion Linux, macOS, and Windows checks also passed on that prior head. The prior-head CodeQL check failed; the subsequent correction below cleared those annotations.

Review follow-through

  • Corrected the actionable unconfirmed-dispatch finding in 83221c6a3d8e4a73a164b198e0e498a069d50ee1. Producer failures before any request now remain dispatch-unconfirmed, not awaiting-admission. The existing CLI table now covers the failed publisher job retaining evidence with no request ID.
  • Red control: that exact CLI case failed before the correction (awaiting-admission versus expected dispatch-unconfirmed), 5.16s wrapper wall time. After correction, 12 selected Linux/Windows/publication cases pass in 28.30s (26.16s Vitest); targeted script/root-tooling lint and typecheck, formatting, and whitespace checks pass. Fresh independent P0–P2 review is scoped-clean. Correction delta: production +3/-3, tests +21/-22.
  • Hosted request-to-builder release execution and real diagnostic upload remain unrun: they require an actual release operation, outside this review-only handoff. Existing production shell and CLI boundary fixtures establish the changed contracts; no live-after-fix release claim is made.

CodeQL CI correction

The cache-poisoning query combines the declared workflow_dispatch event with selected-tag build execution, even though the existing validation dependency excludes that event. The first correction (18e989c76fa) made the restriction explicit on the build job; hosted analysis proved that insufficient, with the same two annotations. That attempt is not claimed as a passing fix.

Commit 03c4e7fa2b62c6d007255e660e6d99812c0750e5 separates the existing entry points: Linux App Release is workflow_run-only; manual mirror dispatch uses Linux App Mirror (linux-app-mirror.yml). The mirror job moved byte-for-byte. The shared dispatcher and effect-time authenticated writer-path contract cut over together. Builder request titles, selected-source validation, signing, shared publication concurrency, and permissions are unchanged. Frozen historical tooling keeps its original workflow contract. No scanner suppression or alert dismissal was added.

  • Regression control: the existing mirror-boundary test fails before the split because the builder still declares both triggers (4.15s wrapper wall time).
  • Seven focused Linux workflow/admission/retention/credential-isolation cases pass, including the real shell dispatch function's exact workflow, pinned ref/SHA, five inputs, and retained acknowledgement: node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts --maxWorkers=1 -t 'serializes Linux manifests|detaches Linux mirror|stale Linux release|exact Linux request|exact completed Linux bundle|isolates release credentials' --reporter=dot; 8.77s wrapper wall time, 5.93s Vitest. Authorization and dispatch transport are fixed fixtures in that route test; they do not claim live publication authority.
  • Full node scripts/run-vitest.mjs test/scripts/linux-app-channel.test.ts --maxWorkers=1 --reporter=dot: 58/58 passed, 5.09s wrapper wall time, 3.29s Vitest, including effect-time writer/parent revocation and metadata/publication recovery.
  • Script and root-test typechecks, targeted script/root-test lint, shell syntax, formatting, git diff --check, docs MDX (1,352 files), and PATH=/opt/homebrew/bin:$PATH pnpm check:workflows passed. Fresh independent P0–P2 AutoReview is scoped-clean for the complete split and callers.
  • Follow-up delta from 83221c6a3d8: production/config +136/-117 (net +19, mostly moving the 90-line mirror job); tests +70/-6; docs +3. No durable state or public CLI argument changes.
  • 03c4e7fa2b62 encountered a concrete conflict with current main, so PR CI did not attach. Integrated pinned main 30b54f615c32a80547a6c6fd288a0c7780325a61 in 04766b04d421cd7f7ffd5b0209530c617db2a64f. The only conflict was the workflow-test reader migration: retained main's cached readWorkflow and the mirror assertions. Main's source-SHA packaging and signed-input publication recovery fixes remain intact.
  • Post-integration proof: 21 selected Linux/mirror cases passed (18.19s wrapper); all 58 channel-owner cases passed (18.13s); nine Linux/Windows real-CLI cases passed (28.88s). The full integrated PR received fresh P0–P2 AutoReview: all three chunks scoped-clean. Workflow checks, script and all four root-test type graphs, targeted lint, and formatting passed. The first type attempt used stale installed native-package declarations; a task-private frozen-lock install brought fs-safe/proc-safe to the versions already pinned by main, after which types passed. No dependency or lockfile changes were introduced. An unrelated blank line in main's changelog remains inherited; the PR delta against pinned main passes git diff --check.
  • Historical head 04766b04d421cd7f7ffd5b0209530c617db2a64f: CodeQL and Workflow Sanity passed; aggregate scan check neutral with zero annotations, no suppression/dismissal. Main CI completed successfully: 40 passed, 27 skipped. macOS and Windows companion checks passed; Linux companion failed at the source-package build deadline, addressed below. These are prior-head results, not current-head proof.

No real release build, signing, publication, recovery, or merge was dispatched for this correction. Hosted mirror dispatch remains a release-operation acceptance gap, not an executed test.

Linux companion CI follow-through — current head 92227d1d13a14c7ca675aabf31b5ddfdf68265aa

The red Linux companion job is independent of publication-report PR #170274. Native tests passed; cold canonical source packaging completed its package-declaration phase in 38m38s, then the package builder's 45-minute deadline interrupted the next declaration phase (parentSignal: SIGTERM, exit 143). There was no compiler diagnostic or failed native assertion at that boundary.

The same-source desktop staging change in #171117 already gave Windows a 60-minute package build budget inside a 105-minute job. Linux's outer budget increased then, but its inner package builder remained at 45 minutes. This correction applies the same existing, step-scoped budget to Linux. It retains the full canonical build, declarations, tarball integrity, install and native desktop checks. No global/default timeout, release budget, publication eligibility, runner class, dependency, or package contract changed.

  • Integrated pinned main 11f50d2c3e2ad5469f68300ebe973e8242d5dc73 in edfff632e36b; fix(release): publication status omits release and Windows source identities #170274's source/tests merged automatically. The documentation overlap now retains both its guidance and this PR's Linux admission/diagnostic contracts.
  • Extended the existing budget test across Linux and Windows. Before repair the Linux case failed on its missing scoped package budget; after repair node scripts/run-vitest.mjs test/scripts/tauri-workflow.test.ts --maxWorkers=1 --reporter=dot passes 12/12, 2.97s wrapper wall time (969ms Vitest).
  • Focused merged publication/Linux/Windows CLI cases: 11 passed, 20.25s wrapper wall time (18.76s Vitest). Workflow validation, targeted root-test lint/typecheck, docs MDX (1,369 files), formatting and whitespace checks passed. Fresh independent P0–P2 review is scoped-clean.
  • A first local lint attempt selected the shard config and expanded into unrelated declaration preparation; it was stopped through its managed owner, then the supported root-test lint configuration passed. That interrupted tooling attempt is not a product regression or passing check.
  • Current-head main CI, Linux App, CodeQL, and Workflow Sanity are pending. Completion within the adjusted budget must be established by hosted Linux CI; the configuration test alone does not prove it. Exact-head CI closeout remains active.

No release operation or PR merge was performed.

@clawsweeper

clawsweeper Bot commented Oct 12, 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 October 12, 2026 22:00
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR exposes exact Linux builder admission in FRV status and retains completed failed-build bundles as unqualified diagnostics.

Example: Linux builder run 37763337117 completes its bundles but fails the packaged-runtime check.

  • Before: Only runtime logs remain available; completed bundles are absent from the artifact inventory.
  • After: Completed bundles, identity metadata, and checksums are retained for 14 days without becoming signing inputs.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful diagnostic work with focused production-path fixtures, one incorrect status mapping, and no hosted after-fix demonstration.
Proof confidence 🦐 gold shrimp (3/6) This MEMBER-authored PR is outside the ordinary contributor proof gate; supplied evidence exercises production shell and CLI fixtures, while live GETs establish the existing failure and API filtering rather than hosted after-fix behavior.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators cannot follow Linux requests to their builder admission or inspect completed bundles after packaging checks fail.
Reason: The source-backed omission and observed packaging failure justify extending existing diagnostic owners; MEMBER authorship establishes direction.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-authored PR provides useful Linux release diagnostics that current main still lacks.

Priority: P2
Reviewed head: 513eeb0be8e1eedfb54e70befbea93c0a2c55a11

Before merge

  • Preserve the unconfirmed Linux dispatch state (P2) - When a release/history GET fails before dispatch, dispatch_linux_release_assets leaves a valid dispatch-unconfirmed record without requestRunId, and the publisher uploads it through its always-running evidence step. This branch nevertheless reports operation=awaiting-admission, and no later branch corrects it. Operators are told to await a receiver even when no request was created. Preserve an explicit unconfirmed or unknown operation state for dispatch-unconfirmed, and cover that retained failure record in the CLI fixture.
  • Complete next step - Classify and resolve the exact-head CodeQL cache-poisoning annotation on the diagnostic-retention step.

Findings

  • [P2] Preserve the unconfirmed Linux dispatch state — scripts/frv.mjs:2457-2460

Tests

  • Missing end-to-end proof: The supplied production-shell and CLI fixtures do not demonstrate hosted request-to-builder-to-FRV readback or an actual diagnostic upload.
Agent review details

How this fits together

The release publisher dispatches a Linux request, the independent builder validates and packages it, and FRV reads their authenticated artifacts to report diagnostic observations.

flowchart LR
  A[Release publisher] --> B[Linux request]
  B --> C[Linux builder]
  C --> D[Admission artifact]
  C --> E[Unqualified bundle diagnostics]
  A --> F[FRV status reader]
  D --> F
  F --> G[Operator observations]
Loading

Technical review

Best possible solution:

Keep dispatch uncertainty explicit while reporting receiver-owned admission and retaining diagnostic bundles outside qualification.

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

Current-main source establishes missing Linux observations, and the linked live builder confirms missing bundle artifacts after runtime failure; no target code was executed.

Is this the best way to solve the issue?

Extending the existing receiver and bounded reader fits their ownership contracts, but unconfirmed dispatches must retain their actual uncertainty.

Full review comments:

  • [P2] Preserve the unconfirmed Linux dispatch state — scripts/frv.mjs:2457-2460
    When a release/history GET fails before dispatch, dispatch_linux_release_assets leaves a valid dispatch-unconfirmed record without requestRunId, and the publisher uploads it through its always-running evidence step. This branch nevertheless reports operation=awaiting-admission, and no later branch corrects it. Operators are told to await a receiver even when no request was created. Preserve an explicit unconfirmed or unknown operation state for dispatch-unconfirmed, and cover that retained failure record in the CLI fixture.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • FRV publication observations keeps the original intent (e6b8b54: Expose authenticated diagnostic observations separately from release authorization.)
  • Linux request reuse keeps the original intent (cd1b8cd: Reuse existing same-tag requests while leaving native publication with the independent builder.)
  • Stale Linux request admission keeps the original intent (10a86ff: Reject stale main identities visibly before executing selected source.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit e6b8b54 adds scripts/frv-publication-status.mts:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e6b8b54a0bb0; files: scripts/frv-publication-status.mts)
  • Peter Steinberger: Raw commit 10a86ff adds .github/workflows/linux-app-release.yml:56 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 10a86ffb58e1; files: .github/workflows/linux-app-release.yml)
  • Dallin Romney: Raw commit cdb57ac adds scripts/frv.mjs:873 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cdb57ac7acdc; files: scripts/frv.mjs)

PR surface

Tests +254, Docs +11, Config +84, Other +213. Total +562 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 254 0 +254
Docs 1 12 1 +11
Config 1 84 0 +84
Generated 0 0 0 0
Other 3 230 17 +213
Total 7 580 18 +562

Review metrics

Metric Value Why it matters
Production versus test growth Production +297 lines; tests +254 lines Growth implements receiver evidence and bounded correlation within existing owners, with focused artifact and CLI contract coverage.

Labels

Label changes:

  • add P2: The change improves release-operator diagnosis without establishing an urgent build, signing, or delivery outage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The change improves release-operator diagnosis without establishing an urgent build, signing, or delivery outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 October 12, 2026, 6:09 PM ET / 22:09 UTC.

@RomneyDa
RomneyDa merged commit 614f559 into main Oct 15, 2026
127 checks passed
@RomneyDa
RomneyDa deleted the fix/linux-release-diagnostics branch October 15, 2026 01:14
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
openclaw#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds
RomneyDa added a commit that referenced this pull request Oct 20, 2026
…78169)

* fix: distinguish workflow approval and exception capabilities (#172661)

(cherry picked from commit aade2f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): expose Linux builder admission and retain failed bundles (#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds

(cherry picked from commit 614f559)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): let locale refresh workers bootstrap new locale memory (#172689)

(cherry picked from commit 17bea1c)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): prewarm history worker before composed SDK request budgets (#172745)

(cherry picked from commit 2051055)
Co-authored-by: RomneyDa <[email protected]>

* fix(android): prepare focused proof before running Gradle (#172668)

* fix(android): prepare focused proof before running Gradle

* test(android): reach proof prerequisites on Linux ARM

* test: remove duplicated Android job structure assertion

* fix: seed stored inference account for Docker cron cleanup

(cherry picked from commit 404b708)
Co-authored-by: RomneyDa <[email protected]>

* fix: preserve bound Codex history after app-server restart (#172705)

(cherry picked from commit 9fe4372)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>

* ci(release): temporarily disable Windows companion publication (#173656)

(cherry picked from commit 99ce3ea)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test

(cherry picked from commit 387ebd6)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): validate shipped release provenance markers against main (#173781)

(cherry picked from commit eee5b40)
Co-authored-by: RomneyDa <[email protected]>

* fix(sqlite): settle peer closes after shared worker refusal (#173813)

A refused opener stops its shared worker, so queued peer closes receive the
slot's existing operation failure without running. Join native exit without
recording that exact failed-slot error as a second cleanup failure. Distinct
close, termination and lease-cleanup failures still propagate.

Update and Doctor teardown can finish retiring peer agent stores after another
opening is revoked. The rejected opening retains its error, exact lease cleanup
remains owned, and uncertified native exit cannot publish a clean-close seal.

The real-worker regression fails on main with native retirement failed and
passes with all peer leases removed. The original intermittent sessions-tail
case passed six pre-fix replays; the forced owner boundary proves this repair.

Proof: sessions-tail/creation-owner/cleanup 62 passed; broker/client/reply,
close-wedge and retention siblings 54 passed; final integrity owner 27 passed,
one existing Linux-only skip. pnpm test
src/state/openclaw-agent-execution.integrity.test.ts --maxWorkers=1: 76.57s wall,
26.00s Vitest, new regression 2.66s. Scoped types, lint, formatting, line-cap and
independent P2 reviews pass. PR CI supplies broad proof.

(cherry picked from commit 6d51bb2)
Co-authored-by: RomneyDa <[email protected]>

* fix(gateway): restore 2026.10.4 startup memory by keeping cold start from opening every memory index (#174718)

* perf(agents): bound catalog worker young-generation heap

Keep the catalog worker's existing 512 MiB old-generation allowance while
bounding its young generation to 32 MiB. Forward-port of the release/2026.10.4
fix; main moved the catalog pool into prepared-model-catalog-worker.pool.ts, so
the limit now lives on that pool's single resource-limit object.

(cherry picked from commit a3510e8)

* fix(memory): keep cold Gateway start from opening every agent's index

#167756 started Memory Core's index service eagerly on every Gateway start,
opening each configured agent's memory manager right after readiness. On an
idle Gateway that startup catch-up touches every session-transcript read lane,
so each lane spawns its own worker isolate (plus a memory-search worker): the
2026.10.5 Gateway startup peak RSS rose from ~1.1 GB to ~1.8 GB.

Cold start is demand-driven again, as before #167756: the first search, flush,
or turn that needs an agent's index opens it. Once a watched manager has run in
the process (a process-wide fact that survives plugin instance replacement and
resets with a Gateway restart), every later service start reopens all configured
indexes, so plugin reloads, provider-only reloads, rollback recovery, and
memory/agent config restarts still resume watching without a search or turn.

* perf(sqlite): bound broker and transcript worker young-generation heaps

Cap the SQLite broker carriers and session-transcript reader workers at a
32 MiB young generation, matching the catalog worker bound, while keeping the
existing 512 MiB old-generation allowance. Worker counts, lanes, admission,
and lifecycle custody are unchanged.

V8's default nursery grows to ~63 MiB per worker after a startup allocation
burst and stays resident on idle workers. On the 2026.10.5 Gateway (fresh
state, forced 16 CPUs) the broker's heap total at startup peak fell
125 -> 91 MiB and the transcript reader 81 -> 34-66 MiB; with the Memory Core
cold-start fix, max Gateway peak RSS over the runs fell 1152 -> 1117 MB.
Tradeoff: more frequent scavenges during large allocation bursts in these
workers.

(cherry picked from commit 6c050f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): start a fresh model catalog read after invalidation (#174812)

(cherry picked from commit 919e835)
Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 20, 2026
…8170)

* fix: ClawHub release verification fails while publication is pending (#168153)

* fix(release): verify ClawHub only after public finalization

* fix: align ClawHub recovery with authoritative publication state

(cherry picked from commit 7985ac2)
Co-authored-by: RomneyDa <[email protected]>

* fix: Linux feed publication tolerates stale public downloads (#168179)

(cherry picked from commit 18f2006)
Co-authored-by: RomneyDa <[email protected]>

* feat(pr): scope worktree cleanup to one PR (#168152)

(cherry picked from commit 51c0f56)
Co-authored-by: RomneyDa <[email protected]>

* feat(release): reconcile exact owned validation cancellation trees (#168267)

* feat(release): reconcile exact owned FRV cancellation trees

* fix(release): parse cancellation provenance with fixed patterns

* fix(release): normalize rerun copies before cancellation discovery

(cherry picked from commit 02a2bd2)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): recover failed receipts without rerunning workloads (#168266)

* fix: recover failed release receipts without rerunning workloads

* test(release): materialize publication harness preload closure

(cherry picked from commit 4485101)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): restore Telegram progress E2E delivery (#168675)

(cherry picked from commit 1fbfd4a)
Co-authored-by: RomneyDa <[email protected]>

* docs(release): generate release notes once after validation-recovery backports (#169495)

(cherry picked from commit 696fb2f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): explain why release:candidate --workflow-sha must be trusted main (#169496)

(cherry picked from commit 513d0e7)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): full release validation helper fails when main advances before admission dispatch (#169500)

(cherry picked from commit 992410c)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): derive attested publish tooling in npm postpublish verification (#169497)

(cherry picked from commit 1f8307f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): report candidate supersession and resume watchers (#168271)

* fix(release): report candidate supersession and resume watchers

* fix(release): keep invalid candidate metadata advisory to watchers

(cherry picked from commit cdb57ac)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): stop waiting for advisory ClawSweeper reviews (#169739)

(cherry picked from commit c2d1513)
Co-authored-by: RomneyDa <[email protected]>

* ci: let PR checks finish and classify inherited failures (#169647)

* ci: finish PR jobs and classify failures against main

* ci: distinguish signature and job-name failure attribution

* test(ci): avoid object spread in failure fixtures

* ci: classify differing validation scopes as unknown

(cherry picked from commit 7c4ff5a)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): scripts/pr keeps a lock after a failed command that fully drained (#169595)

* fix(pr): release drained failed-operation locks instead of requiring manual recovery

* test(pr): drop unused lock owner initializer

* docs(pr): drop obsolete blanket failure-retention claim

(cherry picked from commit a939a9d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): success headline hides post-swap steps that did not run (#170490)

(cherry picked from commit f26cdca)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): require current website downloads at closeout (#170704)

* fix(release): require current website downloads at closeout

* fix(release): verify request-time downloads before closeout receipts

* style(release): use braces for dispatch validation

(cherry picked from commit 0c51cc6)
Co-authored-by: RomneyDa <[email protected]>

* fix(ci): prevent avoidable FRV retries and cold setup failures (#170964)

* fix(ci): preserve FRV work through transient GitHub reads

* fix(ci): retain cache reads for frozen workflow targets

* fix(ci): count contributing packed release timing samples

* fix(ci): avoid stalled iOS simulator diagnostics

* test(ci): correct FRV regression assertions and output capture

(cherry picked from commit 5cd688d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): stabilize stalled recovery cleanup validation (#171507)

* test(update): await recovery descendant before fixture expiry

Expire the generated helper recovery timeout callback after the isolated command has persisted a live descendant PID and emitted readiness. Keep process-group termination and close joins native, retain the durable failed sentinel and dead-descendant assertions, and bound missing readiness with a fixture watchdog.

Refs #170803 (stalled-recovery fixture race only).

* test(update): load recovery clock from fixture module

Replace the added hand-written preload source template with a test-owned ESM fixture and per-case JSON configuration. Preserve exact helper and recovery command scoping, native timeout callback and watchdog cleanup, persisted descendant readiness and existing deadline, close-order, sentinel and process-death assertions.

Production behavior and deadlines are unchanged. Refs #170803 (stalled-recovery fixture race only).

* test(update): join state workers before handoff cleanup

Await the maintained state-database test cleanup owner before removing managed-handoff fixture directories. Synchronous native-handle close only starts worker retirement and can race the final WAL cleanup, observed as ENOTEMPTY in the retained-notification triage case.

Reuse closeStateDatabaseForTest without retries, timing seams, triage behavior changes or production changes. Refs #170803 (managed-handoff test fixtures only).

(cherry picked from commit 4a25358)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): retire session MCP managers left by earlier test files (#172515)

(cherry picked from commit d4be691)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): show publication release and Windows source identities (#170274)

(cherry picked from commit 35fffec)
Co-authored-by: RomneyDa <[email protected]>

* fix: distinguish workflow approval and exception capabilities (#172661)

(cherry picked from commit aade2f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): expose Linux builder admission and retain failed bundles (#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds

(cherry picked from commit 614f559)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): let locale refresh workers bootstrap new locale memory (#172689)

(cherry picked from commit 17bea1c)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): prewarm history worker before composed SDK request budgets (#172745)

(cherry picked from commit 2051055)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): packed package check refuses a root dist above 10,000 JavaScript files (#172954)

(cherry picked from commit 244cd79)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): Bun agents-support shard fails after the question authority test leaks sharing reads (#172974)

(cherry picked from commit 54f0b41)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile (#173105)

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile

* test(googlechat): keep the direct smoke test deadline above its child budget

(cherry picked from commit 8bc4915)
Co-authored-by: RomneyDa <[email protected]>

* fix(test): interrupted test wrappers miss their signal exit verifying a generation (#173068)

* fix(test): interrupted test runs miss their signal exit verifying a generation they will delete

* fix(test): keep borrower disposal verification; skip it only for interrupted wrappers

* fix(test): return the shim interruption result on every path

(cherry picked from commit b66e0fc)
Co-authored-by: RomneyDa <[email protected]>

* test(openshell): registration lifecycle test fails when registry retirement outlasts its 1s poll (#173205)

(cherry picked from commit 7cd0f47)
Co-authored-by: RomneyDa <[email protected]>

* fix(android): prepare focused proof before running Gradle (#172668)

* fix(android): prepare focused proof before running Gradle

* test(android): reach proof prerequisites on Linux ARM

* test: remove duplicated Android job structure assertion

* fix: seed stored inference account for Docker cron cleanup

(cherry picked from commit 404b708)
Co-authored-by: RomneyDa <[email protected]>

* fix: preserve bound Codex history after app-server restart (#172705)

(cherry picked from commit 9fe4372)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>

* ci(release): temporarily disable Windows companion publication (#173656)

(cherry picked from commit 99ce3ea)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test

(cherry picked from commit 387ebd6)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): give relocated worker facade and image tests the archive budget (#174556)

(cherry picked from commit 746a52a)
Co-authored-by: RomneyDa <[email protected]>

* test(ui): settle lazy preference reader before profile identity waits (#174614)

(cherry picked from commit d6ea634)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): collect Bun recovery retention from a timer phase (#174924)

Bun's JavaScriptCore scans native stacks conservatively. Under load, the
immediate dispatcher can keep a stale pointer to the completed recovery
fixture graph across every immediate-phase collection, so the retired
PluginInstance stayed reachable only through GC-internal roots. A
collection from a timer callback releases it. When the expected
references are still live after the existing immediate passes, run up to
four timer-phase collections; a strong retainer still fails.

(cherry picked from commit 8919729)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): adapt worker archive timeout backport

Keep the release branch test inventory while granting the two relocated archive cases the intended three-minute budget.

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

* fix(codex): adapt unloaded-thread recovery to release params

Use the release branch request parameter directly when deciding whether an ordinary bound thread may be resumed.

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

* test(codex): adapt recovery fixture to release helper

Use the release branch thread-result helper signature so the recovery regression validates the intended thread identity.

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

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: publication observations omit downstream Linux builder admission

2 participants