Skip to content

fix(release): backport known tooling and CI repairs to 2026.10.10 - #178169

Merged
RomneyDa merged 13 commits into
release/2026.10.10from
tideclaw/ledger-fixes-release-2026.10.10
Oct 20, 2026
Merged

RomneyDa merged 13 commits into
release/2026.10.10from
tideclaw/ledger-fixes-release-2026.10.10

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the 2026.10.10 release branch is missing applicable release-tooling and CI-flake repairs recorded in the release retrospective ledger.

User Impact

User impact: release operators and CI get the known provenance, publication, Android, Codex, memory, SQLite, UI-catalog, and test-stability fixes that apply to this branch.

Why This Change Was Made

This is one aggregate backport for 13 ledger-linked repairs, cherry-picked with provenance.

Included repair PRs: #172661, #170297, #172689, #172745, #172668, #172705, #173615, #173656, #173465, #173781, #173813, #174718, and #174812.

Repairs already present through explicit branch backports were excluded rather than duplicated.

Evidence

  • git diff --check passes; all 13 commits carry the required co-author trailer.
  • Workflow guards: 169 tests passed.
  • FRV release evidence: 116 tests passed.
  • Linux publication: 61 tests passed; Android wrapper: 12 tests passed.
  • Codex and memory extension regressions: 91 tests passed.
  • UI model-catalog regressions: 26 tests passed.
  • One unchanged process-group cleanup assertion in pr-merge-outcome.test.ts fails locally because the recorded PGID remains alive; the other 58 tests pass. PR CI will re-evaluate it in a clean runner.
  • Full workflow validation remains delegated to PR CI: local check:workflows lacks python3.14-venv, and branch-vs-main ratchets prevent a clean aggregate pnpm check on this release base.
  • Independent autoreview was attempted with both canonical Codex and OpenClaw engines; the Codex executable is unavailable and the OpenClaw engine hit a sandbox-skill cleanup permission error. This PR remains draft pending CI/review.

RomneyDa and others added 13 commits October 20, 2026 06:21
#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(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]>
… companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>
…in 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]>
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]>
…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]>
@clawsweeper

clawsweeper Bot commented Oct 20, 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core scripts Repository scripts agents Agent runtime and tooling extensions: codex size: XL labels Oct 20, 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. label Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR backports thirteen merged repairs covering release tooling, CI preparation, Codex recovery, memory startup, SQLite cleanup, and model-catalog refresh.

Example: A conversation bound to Codex thread-old sends “hi again” after an app-server restart.

  • Before: Missing-thread recovery creates a replacement thread and loses access to the previous native context.
  • After: Recovery resumes thread-old and retries once after an exact rejection proving the input was not accepted.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The backports are coherent and source-supported, with no actionable introduced defect found; combined upgrade qualification remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The release branch retains known failures affecting conversation continuity, startup memory, model-picker freshness, and release validation.
Reason: The maintainer-authored aggregate has an established release purpose and preserves the direction of the merged repairs.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this maintainer-authored backport open: it carries useful repairs missing from the release branch, and no definite introduced code defect was found.

Priority: P2
Reviewed head: 3b103411311587eab4772b31c3052b98d76c0b39

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied run demonstrates the combined backport's latest-stable upgrade with existing memory indexes, configuration, and bound Codex sessions intact.
Agent review details

How this fits together

The release branch combines Gateway runtime, bundled plugins, Control UI caches, and release workflows; these repairs turn messages, startup events, catalog invalidations, and release requests into preserved conversation state, bounded worker startup, fresh model lists, and explicit publication outcomes.

flowchart TD
A[Release branch] --> B[Gateway and plugins]
A --> C[Control UI catalog]
A --> D[Release and CI tooling]
B --> E[Conversation and memory state]
C --> F[Updated model pickers]
D --> G[Qualified builds and publication evidence]
Loading

Technical review

Best possible solution:

Retain the faithful backports under the existing subsystem owners and qualify the combined release candidate before inclusion.

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

The release-base source exposes the reported recovery, eager-startup, and stale-catalog paths, and the merged repair discussions include matching failures and regression controls; no target code was executed during this review.

Is this the best way to solve the issue?

Faithful backports are appropriate here: they reuse existing recovery, lifecycle, provisioning, and publication owners, and remove the replaced Codex preparation and Linux mirror entry paths.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Codex missing-thread recovery changes intended behavior with a stated reason (a373468: The original recovery intentionally recreated stale bound threads after restarts, as described in Fix Codex bound thread recovery after restarts #76936; the backported repair explains why preserving recoverable history and avoiding uncertain replay is preferable.)
  • Memory index service startup changes intended behavior with a stated reason (0907600: The service restored indexing after plugin reloads in fix(memory): memory files stop indexing after plugin reloads until the next search #167756; the repair retains restart resumption after prior indexing while avoiding eager cold-start worker creation.)
  • Linux publication and detached mirroring keeps the original intent (10d67c8: fix(linux): preserve update delivery across core releases #146052 established independent canonical publication, legacy mirroring, and effect-time authority checks; the backport preserves those contracts while separating workflow triggers.)
  • Windows companion publication changes intended behavior with a stated reason (3ba9c7d: The existing workflow published Windows companion assets alongside Linux; the merged repair explicitly pauses that automatic publication after unplanned installers required withdrawal, retaining opt-in desktop-test output.)
  • SQLite retirement keeps the original intent (unknown: Path history and the merged repair explain the existing cleanup-error propagation; the exact original introduction was not independently established, and the change suppresses only the identical failed-slot refusal while retaining native-exit and distinct cleanup failures.)
  • Model-catalog request sharing keeps the original intent (unknown: History across the current store and its earlier chat-model paths shows deliberate scoped caching and concurrent-read sharing; exact introduction remains unverified, and the repair preserves sharing only within the same invalidation generation.)
  • Release diagnostics, provenance verification, and Android preparation keeps the original intent (unknown: The merged repair bodies document the intended authenticated approval reporting, main-validated provenance markers, and shared pinned Android provisioning; the backports preserve those owners and correct their incomplete paths.)
  • Telegram QA stale-update drain changes intended behavior with a stated reason (unknown: The existing drain discarded stale updates before scenario execution; the merged repair explains bounded retry and teardown cancellation for observed transient setup failures without changing the scenario transport owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Release-branch work remains distinct: The live PR targets release/2026.10.10, remains draft, and is mergeable with mergeable_state blocked; MEMBER authorship requires keeping it open. (3b1034113115)
  • Pinned introduced change: Reviewed the merge-base-to-head hunks rather than treating later main changes as PR edits; the release base still contains force-new Codex recovery, eager memory-index activation, and catalog request sharing across invalidation. (extensions/codex/src/conversation-binding.ts:572, 3b1034113115)
  • Backport fidelity: Stable patch-ID comparison matched ten source repairs exactly; comparison of the other three patches found only unchanged surrounding action pins and runtime context, with the repair hunks preserved. (3b1034113115)
  • Native retry contract personally verified: The patch calls native turn/start, thread/read, and thread/resume, making this dependency contract directly relevant: turn_start_inner loads the thread before processing input, load_thread produces the exact missing-thread rejection, and metadata-only reads can retrieve unloaded persisted history. (codex-rs/app-server/src/request_processors/turn_processor.rs:522, a956835d0207)
  • Effect-time release authority remains enforced: The mirror workflow, dispatcher, and writer-path check cut over together; the publisher revalidates executing workflow and parent/tooling authority before mutations, and existing production-CLI cases cover revocation and reassignment before later writes. (scripts/linux-app-channel.mjs:146, 3b1034113115)
  • Intentional operational tradeoffs: The merged maintainer repairs explicitly preserve unavailable-history errors instead of replacing Codex threads, defer cold-start indexing until demand, and temporarily disable regular Windows companion publication while retaining opt-in desktop-test builds. (.github/workflows/linux-app-release.yml:28, 99ce3ea01c91)

PR surface

Source +95, Tests +1081, Docs +66, Config +286, Other +384. Total +1912 across 61 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 176 81 +95
Tests 25 1136 55 +1081
Docs 7 77 11 +66
Config 8 431 145 +286
Generated 0 0 0 0
Other 11 441 57 +384
Total 61 2261 349 +1912

Review metrics

Metric Value Why it matters
New command option 1 opt-in --proof flag The Android wrapper adds prerequisite validation while preserving ordinary Gradle invocation behavior.

Labels

Label changes:

  • add P2: These are useful release-branch reliability and recovery repairs without evidence of an emergency caused by this PR.
  • add merge-risk: 🚨 compatibility: Codex recovery stops replacing unavailable history, memory indexing becomes demand-driven at cold start, and regular Windows companion publication is disabled; these changes are explicitly accepted in the merged maintainer repairs.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: These are useful release-branch reliability and recovery repairs without evidence of an emergency caused by this PR.
  • merge-risk: 🚨 compatibility: Codex recovery stops replacing unavailable history, memory indexing becomes demand-driven at cold start, and regular Windows companion publication is disabled; these changes are explicitly accepted in the merged maintainer repairs.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide a redacted latest-stable upgrade result showing preserved configuration, memory search and reload behavior, and recovery of an existing bound Codex thread.

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 20, 2026, 2:59 AM ET / 06:59 UTC.

@RomneyDa
RomneyDa marked this pull request as ready for review October 20, 2026 07:09
@RomneyDa
RomneyDa merged commit e21de08 into release/2026.10.10 Oct 20, 2026
164 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/ledger-fixes-release-2026.10.10 branch October 20, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex extensions: memory-core Extension: memory-core gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants