Skip to content

fix(code-mode): keep waiting results durable across retries - #119055

Closed
vincentkoc wants to merge 27 commits into
mainfrom
fix/code-mode-host-owned-replay-stack-20260804
Closed

vincentkoc wants to merge 27 commits into
mainfrom
fix/code-mode-host-owned-replay-stack-20260804

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Repair the session and SQLite ownership boundaries used by OpenClaw Code Mode continuation and ordinary admitted input persistence. Retained execution must keep the original authority, commit at most once, and refuse stale or foreign ownership without changing durable rows. This is correctness work, not a Code Mode efficiency or Beta claim.

Current signed head: 8837ca59748e195b0517b791c576924a089d9f3b; tree: ec53c8d3ccf154183088fdbd53df59c5a3dbb7e2. Its ancestry preserves merge d272c07aedfba39cf7cea56f3a938741a8cbe0a7, frozen main ab1b93295ad0f0c093563585bbc76f2e6ce39686, and prior candidate 9b8401c7cb4f4e6b5984f349798c6e8f302b0af5. This is not a claim to track later moving main. The PR remains draft; protected build/check/selected-test proof, attached CI and exact-head review are pending.

Root Cause And Canonical Repair

Asynchronous preparation, native worker execution, and synchronous SDK publication must share one captured database/session owner. Reconstructing authority after an await, treating a received result as joined cleanup, or publishing against a changed transcript identity can admit stale work, duplicate a durable result, or release custody too early.

  • Bind ordinary and nested workers to canonical maintenance/schema authority, including the original command assertion at request and commit boundaries. Authority/protocol failures fence successful wire results; failed cleanup retains UNKNOWN custody.
  • Share the canonical transaction journal, transcript snapshot and SessionManager view owners. Preserve committed identity, rollback ordering, synchronous SDK coexistence and one-shot publication.
  • Acquire sharing readers before awaits; carry full database identity, including replacement identity, through worker reads and volatile publication.
  • Preserve main's accepted-device, upload/Goal, follow-up completion and lifecycle owners. Await input settlement before releasing execution ownership. Do not restore retired Tasks/TaskFlow or coordinator paths.
  • Declare the isolated child-test fixture through a literal new URL(..., import.meta.url) dependency, so the trusted test planner selects its runnable parent rather than a test-support helper. The strict gate validator is unchanged.
  • Use literal source URLs as actual canonical worker-descriptor inputs, including the verifier helper. This closes the same missing-edge class for production workers without importing executable children, adding dead markers or weakening the trusted selector. All 59 registry descriptors and the verifier descriptor remain equal to their prior values.
  • Repair three consumers of relocated canonical exports. No compatibility re-export, retry, timeout increase, rule relaxation, schema bump or protocol bump is introduced by these integration repairs.
  • Preserve honest module boundaries: a real lazy read-only title operation for worker dispatch, canonical post-COMMIT ACP publication, compiler-entry byte capture rather than treating workers as generator-executed imports, and complete native archive inputs.
  • Consolidate shared query/transaction ownership, preserve the first authoritative rollback failure, and join cleanup without losing independent failures or UNKNOWN custody. Test fixtures retain actual scheduler, authority, memory-scope and lease-identity contracts.
  • Extract the complete retained chat work lifetime owner. Private issuance, captured admission/controller/generation, reference counts and joined release remain unchanged; consumers no longer load unrelated Goal/session lookup policy. The original runtime cycle guard reports zero SCCs.

The projection-file extraction first adapted from PR 161124 is already in the frozen main integration; its canonical implementation and contributor credit are retained.

Current Evidence

Proof Exact source Result
Native Darwin focused regression Current 8837ca59 / ec53c8d3 25/25 passed: work-lifetime 7 and scoped-worker admission 18, 63.38 seconds. Compiled-worker prerequisite passed in 13.145 seconds.
Original cycle/type failures Current 8837ca59 Runtime cycle guard passed with zero SCCs; core typecheck passed. No cycle ignore or lazy-import workaround.
Native LOCAL FULL build and complete check Current 8837ca59, first native full attempt Build and entire check passed, including all configured types, lint, formatting and cycle guard. Build took 7m24.4s. This is phase proof, not a full gate stamp.
Native full test attempt Current 8837ca59, same attempt Incomplete/failed: 18,342 passed, 45 failed, 45 skipped in completed shard summaries. Failures span three maintainer fixture files byte-identical to frozen ab1; the remaining unit-src run was canceled through the native supervisor and joined. No full-suite pass.
Testbox FULL prerequisite attempt Current 8837ca59, later native attempt Build passed in 14m3s and all typechecks passed; core lint hit the unchanged 900-second timeout. Native terminal failure; no Testbox allocation or tests. The earlier check pass does not waive this failure.
Native source review Signed 8837ca59 READY FOR preparation, no actionable findings in the reviewed boundaries. Not a gate or merge approval.
Protected AWS build/check/PR-derived tests Requested 8837ca59 against ab1b9329 Pending. Native guarded publication verified the live draft head. The protected publisher must evaluate its exact plan before owner/config/capacity/budget admission. Coverage is selected tests plus attached CI, not full pnpm test equivalence.
Exact-head ClawSweeper and attached CI 8837ca59 Required and pending. Older review dispositions do not approve this head.

Current focused proof used trusted source, qualified task-owned frozen dependencies, Node 26.7.0 / ABI 147 and pnpm 12.5.1 on Darwin, through the native one-worker runner. Both full files ran in one invocation; source identity was preserved and cleanup joined. Local full proof was a documented fallback after remote capacity refusal. No resource, timeout or rule allowance was increased.

Historical Linux proof at 9268833c remains 72/72, not current-head evidence. It used a fresh task-owned frozen install and verified base-plus-delta source before execution:

pnpm test src/state/openclaw-database-verify.test.ts test/scripts/pr-crabbox-gate-plan.test.ts src/infra/runtime-worker-url.test.ts src/infra/sqlite-worker-broker.native-drain.test.ts
Test files: 4 passed
Tests: 72 passed (24 verifier, 30 planner, 16 runtime URL, 2 native-drain)
Test command: exit 0, no signal, 37777 ms
Task fixture cleanup: exit 0
Native lease cleanup: complete; released; no remaining host

Run receipt: run_9ae4e6dbb1df20f1cda81926050fdd56. Retained private console SHA-256: 49843ee3c15deb5a7222ea10feea93b5175ea77a6f274f3ab5bfa09948eec7e9; public output above omits private paths and infrastructure addresses. The earlier 53-case run run_aca80e042dfe09a06347d9736e7d00e2 and its console prefix 5a5ec63b2f1ee14132390452246719d8060c16b5dd732e75e44acc8591126bd4 remain bound to d272c07a; its fixture and lease cleanup also completed.

Authority And Existing-State Outcomes

The current admission file passed 18/18 at 8837ca59. It exercises retained manager-host work committing once, closed continuation refusal, foreign-manager capture refusal, and nested maintenance authority invalidated before a child grant. It checks final SQLite effects before maintenance disposal and joins cleanup. It preserves legitimate captured authority rather than rejecting a continuation merely because ambient context differs.

The hydration and extracted release-format tests cover fresh state, synchronous SDK/worker coexistence and custom database ownership. The released-format case starts with a source-equivalent v2026.9.7 agent transcript, pinned to release source c074824a27c96d3983043f9eeb33823cd1772d8c: exact released agent DDL, agent schema 24, header v4, original identity payload bytes and the byte-identical released transactional index/active/FTS producer. It immediately reopens through the public SDK, performs SDK then worker appends, checks idempotent replay and reopens again without changing the original bytes, identities or generation. This is not packaged-release execution or shared-state schema 19-to-20 upgrade proof.

The first new fixture attempt omitted authoritative index/active/FTS rows and correctly failed bounded-open readiness. The fixture was completed through the released-equivalent producer, not a handcrafted ready stamp, retry, sleep or production fallback. On that earlier tree b82637cd14d1ba6eba848c09758e0a6945188d1a, planner 28/28 passed, hydration was 34/35 and admission did not run. Those outcomes remain separately attributed; none is added to the current 72 or called a current-head full gate.

Retained worker-input/lifecycle, rollback, durable-initialization, transformed/native module-identity and custom-path reconciliation tests remain part of the implementation. Earlier focused proof includes 413 passed plus one existing skip across 26 files in separately attributed continuations, not one final-head run. Later 27-case, 26-case and current 25-case corrections retain their own identities. None replaces the current protected profile or attached CI.

Review Dispositions And Limits

  • Revision 54's final-effect and fresh/existing-state requests have historical 53-case receipts at d272c07a, subsequent owner-specific regression proof, and current 18-case admission proof. Wider final-head native gates remain pending. No unrelated provider/chat campaign is substituted for this boundary proof.
  • Candidate identities and proof references are refreshed here. Downstream PR 135969, PR 119056, PR 142151 and PR 119057 are not requalified by this PR1 cycle.
  • IN-1 is resolved by complete feature deferral: commitProviderTranscriptPrefix, private Code Mode transcript-authority issuance/binding and associated types/docs/manually seeded tests are absent. There is no capability-free substitute or plugin-exposed issuer. FULL-B, restart/execution rehydration and any future host capability remain held; the old capability-bearing release prerequisite is not represented as shipped or implemented here.
  • Dependency-source review personally inspected Codex history pairing, normalization at line 347, abort-marker publication, and parallel tool lifecycle/cleanup. These contracts do not establish harness equivalence or a performance win.

Scope And Release Note

Against frozen ab1b9329, exact no-rename accounting is production +20,904/-6,154 across 215 files (net +14,750); tests/support +22,463/-1,321 across 126 files (net +21,142); metadata +10/-3 across three files. Most growth is the retained candidate: its prior production delta against its original base was net +14,365. Growth implements explicit database/session admission, asynchronous worker custody, identity-safe publication and lifecycle settlement. The latest lifetime-owner extraction is production +187/-182 (net +5), tests +6/-8 (net -2); moved owner bodies are byte-identical. Tests/support include released DDL provenance; archive and ratchet metadata are separate.

Release-note context: prevent stale/foreign retained session work from committing or releasing a successor's custody; preserve committed transcript identity and synchronous SDK behavior across worker execution. Normal repair policy leaves the release-owned changelog untouched.

Historical Evidence And Beta Boundary

Historical failures stay failures: publisher 36834021617 failed before allocation on an isolated helper; publisher 36885564005 failed before allocation on a production worker. Both descriptor-edge gaps were repaired at consumed source declarations; the strict validator remains unchanged. The current protected publisher owns the new exact plan, whose routing inventory can differ from older local previews. Publisher 36888381210 subsequently failed strict build; its lease cleanup was separately verified complete. Prior 0661cea8 built successfully with UI gzip warnings but core lint timed out at 900 seconds. One separate Linux frozen-baseline run found the inherited max-lines defect; it did not establish Darwin timeout causation. No historical failure is waived by later focused proof.

Earlier stack proof, including 47/48, clean lifecycle proof, 206/207 integration and its 29/29 focused correction, remains bound to the source heads in those runs. None is current-head or downstream-stack approval.

Frontier efficacy: INCONCLUSIVE. Frontier Beta: NO-GO. Historical reported accuracy was direct 7/30 versus Code Mode 6/30; visible calls fell 44.4%, but underlying total calls rose 29.9%, prompt tokens 11.6%, agent time 6.8% and wall latency 3.3%. Correctness proof cannot establish an efficiency win. ShellBench remains parked and untouched. Local-model preservation PR 115869 remains separate, non-Beta work; this PR does not discard or qualify it.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Aug 4, 2026
@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 1, 2026, 12:07 PM ET / 16:07 UTC (Revision 56).

ClawSweeper review

What this changes

The branch repairs session transcript publication, pending-input settlement, SQLite worker ownership, and native compiler cleanup so retained work preserves its original authority and commits at most once.

Merge readiness

⛔ Blocked before merge - 2 items remain

The session and worker ownership repair remains distinct from current main and has meaningful final-effect evidence. No actionable defect was found in the reviewed boundaries; the member-authored, protected PR remains eligible for continued review.

Priority: P2
Reviewed head: 9268833c0f94f2d4960f08c28f3e7e331f51afb1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The inspected repair has strong boundary proof and no actionable findings, with broader native qualification still outstanding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The preserved native admission/hydration run exercises production session and SQLite worker owners, observes once-only commits and stale/foreign-owner rejection before durable effects, and covers fresh and released-format SDK/worker coexistence. Relevant source and test blobs are unchanged at this head. Independent released-producer comparisons support transcript compatibility; broader native qualification remains separate and pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The preserved native admission/hydration run exercises production session and SQLite worker owners, observes once-only commits and stale/foreign-owner rejection before durable effects, and covers fresh and released-format SDK/worker coexistence. Relevant source and test blobs are unchanged at this head. Independent released-producer comparisons support transcript compatibility; broader native qualification remains separate and pending.
Evidence reviewed 10 items Pinned review identity and complete body: GitHub still identifies head 9268833, draft=true, mergeable=false, and mergeable_state=dirty. The complete retrieved body matches captured SHA-256 abaf0e986b24b959e81c5e2cca10e6ef696a3628979304aebe2bd4cff0748a31 and 12,618 UTF-16 units, including the omitted scope and proof limitations.
Introduction and re-review continuity: The pinned base-to-head hunks were inspected at the session, admission, transaction, compiler, and worker-descriptor boundaries. GitHub's exact-head commit record identifies four latest changes: worker descriptors, runtime URL tests, verifier descriptor, and planner tests. Revision 55 contained no findings; its qualification request remains only partially completed.
Retained authority and final effects: The admission scenarios use the production SessionManager and SQLite worker boundary. They check once-only retained execution, closed-continuation refusal, foreign-manager refusal, and maintenance revocation before commit, then inspect final database rows before cleanup. The body records 18 admission and 35 hydration cases passing on d272c07, separately from the current 72-case run.
Findings None None.
Security None None.

How this fits together

OpenClaw's session persistence layer receives agent messages and admitted user inputs, then coordinates SQLite workers and session views. Its ownership checks determine whether delayed work may commit and when callers can observe the result.

flowchart TD
  A[Agent messages and user inputs] --> B[Session admission]
  B --> C[Captured live owner]
  C --> D[SQLite worker]
  D --> E{Authority still current}
  E -->|Yes| F[Commit and publish session view]
  E -->|No| G[Refuse without durable changes]
Loading

Before merge

  • Complete next step (P2) - Complete the selected native qualification, resolve the reported merge conflicts with affected checks, and establish a ready candidate before landing.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth Production net +14,580 lines; tests/support net +20,988 lines The body justifies production growth through shared admission, worker custody, and publication ownership; the breadth makes the selected native qualification material.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Keep transcript writes, pending-input custody, and publication under the original live session/database owner while preserving existing SDK behavior and released transcript bytes.

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

Unclear for current main: retained-owner and publication scenarios are concrete and have after-fix native evidence, but this review did not establish a fresh failing current-main execution.

Is this the best way to solve the issue?

Yes for the inspected boundaries: extending the existing session and SQLite owners preserves authority and publication ordering without introducing a competing persistence owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a persistence and lifecycle correctness repair without evidence of an active emergency or broad user-facing outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The preserved native admission/hydration run exercises production session and SQLite worker owners, observes once-only commits and stale/foreign-owner rejection before durable effects, and covers fresh and released-format SDK/worker coexistence. Relevant source and test blobs are unchanged at this head. Independent released-producer comparisons support transcript compatibility; broader native qualification remains separate and pending.
  • proof: sufficient: Contributor real behavior proof is sufficient. The preserved native admission/hydration run exercises production session and SQLite worker owners, observes once-only commits and stale/foreign-owner rejection before durable effects, and covers fresh and released-format SDK/worker coexistence. Relevant source and test blobs are unchanged at this head. Independent released-producer comparisons support transcript compatibility; broader native qualification remains separate and pending.

Evidence

What I checked:

  • Pinned review identity and complete body: GitHub still identifies head 9268833, draft=true, mergeable=false, and mergeable_state=dirty. The complete retrieved body matches captured SHA-256 abaf0e986b24b959e81c5e2cca10e6ef696a3628979304aebe2bd4cff0748a31 and 12,618 UTF-16 units, including the omitted scope and proof limitations. (9268833c0f94)
  • Introduction and re-review continuity: The pinned base-to-head hunks were inspected at the session, admission, transaction, compiler, and worker-descriptor boundaries. GitHub's exact-head commit record identifies four latest changes: worker descriptors, runtime URL tests, verifier descriptor, and planner tests. Revision 55 contained no findings; its qualification request remains only partially completed. (src/infra/runtime-process-entrypoints.ts:6, 9268833c0f94)
  • Retained authority and final effects: The admission scenarios use the production SessionManager and SQLite worker boundary. They check once-only retained execution, closed-continuation refusal, foreign-manager refusal, and maintenance revocation before commit, then inspect final database rows before cleanup. The body records 18 admission and 35 hydration cases passing on d272c07, separately from the current 72-case run. (src/agents/sessions/session-manager-scoped-worker.admission.test.ts:127, 9268833c0f94)
  • Earlier proof remains bound to unchanged source: Parent and head tree records have identical blobs for admission tests, hydration tests, the released-format fixture, session write admission, and worker operation admission. This preserves the earlier boundary evidence without describing it as a new execution. (src/agents/sessions/session-manager-write-admission.ts, 9268833c0f94)
  • Existing transcript compatibility: The released-format case opens through the public SDK, performs synchronous and worker appends, checks idempotent replay, and preserves original event bytes, identities, and generation. Independent GitHub-content comparisons verified that the transcript encoder and index, projection-append, and FTS producers are byte-identical to v2026.9.7 source c074824. This establishes transcript-format compatibility, not packaged-release execution or an unrelated shared-state migration. (src/agents/sessions/session-manager-hydration.test.ts:63, 9268833c0f94)
  • Native preparation progress: The captured body records 72 focused native cases passing on the current tree in 37.777 seconds and a complete strict test-plan preflight. It explicitly distinguishes selection from execution and leaves the selected native build, check, and broader qualification pending. Successful dispatch or security workflows do not establish those outcomes. (test/scripts/pr-crabbox-gate-plan.test.ts:75, 9268833c0f94)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Complete the selected native build, check, and broader worker-input/lifecycle qualification while retaining the original source identities and failed-run history.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (55 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-10T15:01:18.234Z sha a20882e :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-10T18:11:27.838Z sha 90b210d23b167d9ae7080a7633fb2966efc9019a :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-10T18:43:41.630Z sha f680c43 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-10T21:24:06.180Z sha f680c43 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T12:02:36.669Z sha 2ad458b :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T12:44:24.576Z sha 2ad458b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T08:12:21.097Z sha 9b8401c :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T15:48:49.530Z sha d272c07 :: blocked before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 4, 2026
@vincentkoc
vincentkoc force-pushed the fix/code-mode-host-owned-replay-stack-20260804 branch from 611aaaf to 3bdc62f Compare August 5, 2026 10:32
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 5, 2026
…tion

Retain the frozen state-owner environment from each physical agent database open. Pin reconciliation paths before adopting a cached handle's owner so append and history-read workers use the same shared-state lease registry as the connection.

Drain scheduled workers by recorded owner, including custom database paths, and join reconciliation before message-cut fixture teardown. Cover cache reuse, environment mutation, worker lease release, native exit, and incognito sibling behavior.

Release note: Fix transcript reconciliation using the wrong state directory when a cached agent database is accessed with another environment or an independent database path.

Validation: targeted formatting, staged whitespace, and scoped privacy checks passed. Runtime qualification remains pending.
Keep nested activity tied to its captured turn while accepting same-turn delivery mirrors. Reject later user turns and preserve writer and lifecycle admission.
Carry the originating assistant through result emission and preserve its observed append receipt across awaited hooks.
Bind every persistent mutation-boundary fixture to its temporary state owner before the first database open. Reuse that environment for direct database access and assert retained ownership without changing production behavior or weakening mutation assertions.
Keep persisted transcript replay idempotent under the original transaction
and lifecycle owner. Preserve native failure identity, atomic publication,
physical database ownership, and drainage of admitted work.

Keep private provider-transcript-prefix capability deferred.

Punchcard-Session: quiet-workshop-willow-y6
vincentkoc and others added 15 commits September 27, 2026 19:14
Backport the compiler-owned TypeScript 7.1 boundary from 813169e, duplicate-transform removal from 614aa3a, and canonical SDK mutation fixture correction from 2b2ae31. Preserve the retained Code Mode candidate and its ancestry.

Co-authored-by: Peter Steinberger <[email protected]>
Punchcard-Session: quiet-workshop-willow-y6
Use the existing failure-trailer boundary around the complete extension compiler entry so diagnostic failures preserve exit status while native child handles drain. Include the helper in generator input identity and assert real failing workers settle under strict process-tree supervision without publishing output or receipts.

Punchcard-Session: quiet-workshop-willow-y6
Punchcard-Session: quiet-workshop-willow-y6
Punchcard-Session: quiet-workshop-willow-y6
Punchcard-Session: quiet-workshop-willow-y6
Move synchronous session description into the existing materialization owner, preserving owner context, exact refresh, archive handling and generation checks. This resolves the inherited max-lines failure without changing lint limits or row behavior.

Adapt the structural extraction from 124ddc0 (#161124), without the later repository-workspace changes. Existing resident and incognito tests pass before and after (16 cases); both touched files pass the original syntax lint rules.

Co-authored-by: Peter Steinberger <[email protected]>
Merge frozen main ab1b932 while preserving ready worker settlement, retained host authority, and exact transcript publication ownership. Retire removed task/coordinator paths and compose the canonical maintenance, snapshot, sharing-acquisition, and follow-up owners.

Qualify released agent transcript format through the source-equivalent v2026.9.7 writer/index contract, and expose the isolated child fixture dependency to the native test planner. Focused Linux proof: hydration 35/35 and admission 18/18 on tree ad5d02e; unchanged planner 28/28 on tree b82637cd14d1ba6eba848c09758e0a6945188d1a. Full candidate gates remain pending.
Derive canonical worker descriptors from consumed literal source URLs so static test planning follows executable children without evaluating them. Preserve all 59 registry descriptors and source, packaged, explicit-root and sealed resolution behavior.

Verify the descriptor and real planner contracts plus native transport drain and verifier lifecycle: 72 focused remote cases pass on the exact committed tree. Keep the full native gate and earlier session proof separately attributed.
Keep worker title reads behind their admitted lazy operation while removing ineffective host imports. Consume deferred ACP row publication before publishing committed identity maps, matching the canonical lifecycle owner.
Capture registered worker source bytes without interpreting runtime-only imports as declaration-generator dependencies. Complete the native wrapper archive and copied-worker fixture for the extracted SQLite transport owner.

Verify the full eager/bootstrap suite and strict generator boundary regression (18 tests), plus both complete declaration input scans.
Consolidate admitted transcript query and transaction owners, preserve the first rollback failure during poisoned connection cleanup, and split oversized owner modules without dropping tests. Restore real worker lifetime observations and move timeout waits to test-owned cancellation with joined cleanup.

Preserve the rollback-error ownership from #162139 while retaining unconditional cache and native cleanup. No schema, protocol, or Code Mode capability expansion.
Remove the identical helper copy introduced by main integration. Keep the canonical frozen-main implementation, exports, fixture lifecycle and all queued/killed history assertions.
Keep captured authority callbacks receiver-independent at their owning contracts, preserve both operation and release failures, and join admitted cleanup before fixture teardown. Resolve the remaining core lint findings without changing rules or resource limits.
@vincentkoc

Copy link
Copy Markdown
Member Author

Current maintainer disposition (2026-10-29): archive/defer this candidate while preserving 8837ca59748e195b0517b791c576924a089d9f3b as a reference.

This is not a claim that the candidate was merged, fully qualified, or wholly superseded. Its historical proof status remains pending as recorded in the original PR body. Later scoped fixes were qualified separately; they do not establish whole-stack equivalence. Any residual work needs a separately selected scope against current main.

This clarification does not resume #135969, FULL-B, compatibility, local-model, or other paused tracks, and does not establish resource clearance. It records today's disposition, not a reconstructed explanation for the earlier closure. The existing body, source, and history remain unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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.

1 participant