Skip to content

fix(sessions): preserve distinct rooms during canonical updates - #132242

Merged
steipete merged 4 commits into
mainfrom
steipete/sweet-sanderson-26a4f5
Aug 29, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/sweet-sanderson-26a4f5

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

Keep Allow edits from maintainers enabled.

What Problem This Solves

Updating one Matrix room session could prepare a different, case-distinct room for deletion and interrupt its active work. Ordinary Doctor policy/readiness checks also eagerly loaded agent execution machinery, contributing to cold Doctor timeouts.

Why This Change Was Made

Runtime session mutations now snapshot and update the exact canonical row. Doctor owns legacy normalization/import and plugin migration coordination. Real deletion, replacement, maintenance, native binding compensation and guarded orphan cleanup retain their lifecycle fences. Obsolete migration facades, dead internal exports and a test-only reset surface are removed.

Doctor reads harness policy from its policy owner and loads execution/tool factories only when asynchronous schema inspection needs them. Real selected plugin setup/auth/legacy surfaces and schema-check error/disposal behavior are preserved. No schema, protocol, configuration, lease, retention, timeout or catalog-selection change is introduced.

User Impact

Updating a canonical session leaves distinct rooms and their active work untouched. Doctor retains explicit legacy repair and main’s safe startup config-key migrations without loading unused execution machinery for policy/readiness checks.

Release-note context: canonical session updates no longer prepare case-distinct sibling rooms for deletion; Doctor owns legacy repairs and defers execution-factory loading until schema inspection. Existing documentation describes the retained repair contract. CHANGELOG remains release-only.

Evidence

Published head: ac447d219a2fc4b9e74c1b25db73a8d259c60fdd; frozen integration base: 9d79bf3f8c5f18f7c35d028d57402f5085659640. All four task commits replayed patch-equivalent, and all 53 task files match reviewed 8bbd7909 byte for byte. Integration followed actual main conflicts. It preserves main’s deletion authority guard, parent-fork locking/normalized writer, Codex cancellation and settlement ownership, and Doctor metadata generations/registry persistence.

The full local OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build passed in 276.490s on Node 24.20.0. HEAD, all 35,021 source hashes, patch, index and runtime binary remained unchanged. Seven static gates, production/test types, nine complete incoming/canonical owner files (368 cases), and the unchanged core lint stripe passed. Isolated precommit review covered six chunks; final whole-branch review with incoming Codex owner context found no actionable findings.

Exact-head CI passed on attempt 1. The actual CI checkout was GitHub’s merge ref ec6c990509381b23bbb52c26ef8c0ab38c7110ca (parents 24e12d4403571582d61e9c33c15efa9849f23ef6 and this head); its tree matches the inspected native composition, and all 53 task blobs match this head. Clean Linux proof verified raw HEAD and every source input before and after each phase. It ran full private QA, both complete cold Doctor files together, all eight preflight process cases, real plugin persistence, complete plugin declarations/lint, a source-launched Gateway probe (degraded; corrected below), and complete plugin/Codex/fork, Gateway creation, deletion/archive/worker and incoming-owner files. Cases, assertions, selected real plugin setup/auth/legacy surfaces and deadlines remained unchanged.

Linux results: cold Doctor 7/7 (first case 13.900s under the unchanged 30s limit); process 8/8; real plugin persistence 13/13; plugin/Codex/fork 638 cases; Gateway creation 130; deletion/archive/worker 102; incoming/canonical owners 368. Full Linux private QA passed in 235.061s; declarations/lint passed in 223.475s. All source, QA-artifact and collected phase-log hashes matched. The owned Testbox was stopped.

Gateway proof correction: raw-log inspection found that the earlier source/tsx probe started with only four plugins after ERR_PACKAGE_PATH_NOT_EXPORTED failures in the execa → npm-run-path → unicorn-magic chain. Its patch/reset assertions prove core RPC behavior in a degraded Gateway, not healthy normal plugin startup. That limitation was missing from the previous proof text; the original logs and checkpoint remain preserved. Direct probes on the pinned dependencies reproduce the failure with tsx plus require(execa), while plain Node import/require and tsx import succeed.

Corrected focused Linux proof used unchanged ac447d219a2fc4b9e74c1b25db73a8d259c60fdd, Node 24.19.0/pnpm 12.0.0, a fresh isolated HOME/state/workspace, and a matching full private QA build (226.701s). Plain Node loaded the existing emitted server used by the canonical Gateway CLI, with the same authoritative built session/admission module cohort. All 15 expected startup plugins registered successfully; there were no plugin error records or diagnostics, and codex/openai/memory-core were imported. Normal selection was preserved, including source entries selected for Teams/Zoom and built entries for the other startup plugins; no loader mocks, catalog filtering, alias overrides or new production exports were used.

Three actual loopback WebSocket connections recorded HTTP 101 upgrades, nonzero traffic, distinct hello-ok connection IDs and successful patch/reset/delete responses. The patch persisted the mixed-case label; reset changed its lifecycle revision while retaining the physical session ID. The case-distinct sibling row stayed identical and its admission stayed active with zero interruptions. Deleting a separate control session interrupted its own admission exactly once, confirming shared authoritative admission state. Temporary state was removed, no proof children/listener remained, and the owned lease stopped. The child exited naturally in 125.156s; the post-shutdown wait was not diagnosed, and no fast-exit or timing guarantee is claimed. Source and all 13,310 QA-artifact hashes matched before/after. This corrects proof composition only: product source, commits, index and green CI are unchanged.

No operator Gateway/config/secrets or provider turn was used. No authenticated Matrix delivery or UI capture is claimed: no test account/room was supplied, and no UI code changed. Historical owner regressions supply failing reproduction; the manual RPC probe was not run pre-fix.

Main independently fixed both failures in the preceding CI run: #132444 extracted unchanged media snapshot support below its existing line limit, and #132394 corrected the QA suppression inventory. The intervening test-only fixture cleanup was dropped. The large-timestamp regression remains. Main’s #132413 settlement/route-drain behavior was directly inspected and preserved; it is separate owner work. This PR authors no baseline, deadline, dependency or storage redesign and absorbs no unmerged peer payload.

Historical source nodes-help and local Gateway timing failures remain recorded against their actual heads; their sole cause was not established. The unmodified metadata generator used its normal cache policy, so the successful full build is not a separate direct cold nodes-help proof. Separately authored #131719, #131884 and #131503 own the CLI import/cache repairs. This PR claims neither those changes nor a nodes teardown fix or universal timing guarantee.

The primary reviewer personally inspected pinned sibling Codex rust-v0.150.1 / 90854393966b21e9ebfd21b122334eb09a20c93d: codex-rs/app-server/src/request_processors/thread_processor.rs:978–1040,1616–1710, codex-rs/app-server/src/thread_state.rs:445–564, and codex-rs/core/src/thread_manager.rs:1127–1157; terminal inventory/termination at thread_processor.rs:2343–2388,6035–6064 was also checked. This answers ClawSweeper’s direct-audit request. Its SQLite-table warning is a path heuristic: guarded orphan iteration changes no DDL.

Production +922/−1366 (net −444); tests/support +228/−107 (net +121); tooling −1. Discounting 260 identical Doctor relocation lines each way leaves the same production net. An existing stale-fixture assertion in the parent-fork test remains a named test-cleanup follow-up, not a confirmed product defect.

Native review initialization, baseline/head checkout, guard and artifact validation passed for this head. Final preparation and merge remain held for the lead’s exact-head checkpoint; neither prepare-run nor merge-run has run. AI-assisted implementation and review.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Aug 29, 2026
@steipete
steipete marked this pull request as ready for review August 29, 2026 00:50
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 5:06 AM ET / 09:06 UTC.

ClawSweeper review

What this changes

The PR makes SQLite session patches operate on only the selected row, refactors Doctor migration coordination, and consolidates Codex app-server subscription cleanup.

Warning

SQLite table change

This PR modifies persisted SQLite tables in extensions/codex/src/migration/session-binding-orphans.ts. Prefer a design that avoids changing persisted SQLite tables. If the change is necessary, verify migration and upgrade compatibility against an existing database before merge.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: the session repair is still needed and source review found no introduced defect, but the changed Codex subscription path needs the repository-required direct upstream Codex audit before a merge-readiness verdict.

Priority: P1
Reviewed head: ac447d219a2fc4b9e74c1b25db73a8d259c60fdd

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The session fix is focused and well-covered, with merge readiness capped only by the unavailable required Codex-contract inspection.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 9 items Introduced PR scope: The pinned introduction delta contains 53 changed files and totals 1,150 additions and 1,474 deletions; the checkout is at the PR head.
Exact-row session ownership: The updated selection snapshot returns only the selected exact row, preventing case-folded but distinct room keys from joining a runtime mutation snapshot.
Current-main comparison: Current main still snapshots every folded lookup candidate, including case-distinct room rows, so it does not contain the central repair.
Findings None None.
Security None None.

How this fits together

The session accessor owns SQLite rows representing channel conversations and supplies them to lifecycle, transcript, and work-admission operations. Doctor repairs legacy persisted state before runtime use, while the Codex plugin manages native thread subscriptions for Codex-backed sessions.

flowchart LR
  A[Session update] --> B[Exact session row selection]
  B --> C[SQLite session mutation]
  C --> D[Lifecycle and work admission]
  E[Doctor startup] --> F[Migration coordinator]
  F --> C
  G[Codex thread cleanup] --> D
Loading

Before merge

  • Resolve merge risk (P1) - The Codex cleanup changes behavior that relies on @openai/codex app-server subscription semantics, but direct upstream Codex source inspection was unavailable; this requires a maintainer-side contract audit before merge.
  • Complete next step (P2) - No source defect requires a repair PR, but the required direct upstream Codex contract audit cannot be completed from this checkout.
Agent review details

Security

None.

PR surface

Source -447, Tests +124, Other -1. Total -324 across 53 files.

View PR surface stats
Area Files Added Removed Net
Source 33 936 1383 -447
Tests 19 214 90 +124
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 53 1150 1474 -324

Review metrics

Metric Value Why it matters
Production versus test delta production −444; tests/support +121; tooling −1 The branch is net-negative in production code; the added test/support coverage exercises session isolation and migration coordination.
Changed surfaces 53 files; 3 owner areas Sessions, Doctor migrations, and the Codex plugin require cross-owner review rather than a narrow patch reading.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-config-preflight.ts, migration/backfill/repair: src/commands/doctor-session-canonical-candidates.ts, migration/backfill/repair: src/commands/doctor-session-sqlite-readers.ts, migration/backfill/repair: src/commands/doctor-session-transcripts.ts, migration/backfill/repair: src/commands/doctor.e2e-harness.ts, migration/backfill/repair: src/flows/doctor-core-checks.ts, and 37 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Audit the upstream subscription contract (recommended)
    Inspect the pinned Codex app-server source for unsubscribe, release, and stale-subscription semantics before merging this cleanup relocation.
  2. Pause the combined change
    Split or pause the Codex cleanup if the required upstream contract audit cannot be completed, while retaining the independently reviewed session repair for follow-up.

Technical review

Best possible solution:

Validate the retained-thread unsubscribe and release behavior against the pinned upstream Codex source, then merge the exact-row session repair if that audit confirms the existing helper contract.

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

Yes at source level: two case-distinct Matrix room keys are selected together on current main, and the new regression fixture demonstrates the conflicting active-sibling scenario; this review did not execute it.

Is this the best way to solve the issue?

Yes for the primary defect: restricting runtime patches to the exact selected row restores the session-owner boundary while Doctor remains the canonical-repair owner. The Codex cleanup portion remains conditional on direct upstream contract inspection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against c02dbf8bfe77.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P1: The repaired defect can interrupt an active, distinct room's session work during an ordinary update.
  • merge-risk: 🚨 compatibility: The Codex app-server cleanup depends on an upstream subscription contract not directly audited in this checkout.
  • merge-risk: 🚨 session-state: The branch changes how persisted session rows are selected and mutated across lifecycle operations.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

Likely related people:

  • steipete: Introduced the exact-row snapshot repair and owns the current PR-head changes across the session, Doctor, and Codex surfaces. (role: recent area contributor; confidence: high; commits: 074d65d48a93; files: src/config/sessions/session-accessor.sqlite-entry-store.ts, src/config/sessions/session-accessor.sqlite-entry.ts, extensions/codex/src/app-server/run-attempt-cleanup.ts)
  • Shakker: Blame identifies the prior session-selection snapshot implementation as the predecessor to the changed session-owner boundary. (role: prior feature contributor; confidence: medium; commits: 40a29dfb38; files: src/config/sessions/session-accessor.sqlite-entry-store.ts, extensions/codex/src/app-server/thread-ownership.ts)
  • Ming Yoo: Prior Codex cleanup work is adjacent to the changed thread-cleanup ownership path. (role: adjacent contributor; confidence: low; commits: cde3458c; files: extensions/codex/src/app-server)

Rank-up moves

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

  • Inspect the pinned upstream Codex source for the retained-thread unsubscribe and release contract.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-29T03:09:42.490Z sha fc701fa :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T04:08:18.992Z sha fc701fa :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T05:52:36.501Z sha 5d83a21e6b3222db190eb56e68c95881f416177d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T06:40:35.888Z sha cc66cbf5e1734b4cb0ab1716eb247f329053c509 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T07:13:34.610Z sha 8bbd79094ee86089aa76dd6678aec771f80ca8a9 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T07:39:46.357Z sha 758fb05f78d9534a8e5208505d76eb02f5c45bcc :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T08:05:29.415Z sha ac447d2 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T08:23:50.524Z sha ac447d2 :: needs maintainer review before merge. :: none

@steipete

steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Current candidate remains ac447d219a2fc4b9e74c1b25db73a8d259c60fdd on frozen base 9d79bf3f8c5f18f7c35d028d57402f5085659640. Exact-head CI is green. This update corrects Gateway proof scope only; product source, commits, index, reviewed patch and existing CI are unchanged. Native preparation and merge remain held for a new lead checkpoint.

Correction to the previous proof: the earlier Linux run passed its core WebSocket patch/reset assertions, but raw logs show a degraded source/tsx Gateway with only four startup plugins. Eleven initial plugins, then codex/openai/memory-core, reported ERR_PACKAGE_PATH_NOT_EXPORTED from unicorn-magic. This was omitted from the earlier summary; that run does not prove healthy normal plugin startup. Its logs and sealed checkpoint remain preserved. On the exact pinned dependency chain, tsx plus require(execa) reproduces the error, while plain Node import/require and tsx import succeed.

The corrected focused Linux run verified the exact head and all 35,021 source inputs, installed frozen dependencies, and rebuilt full private QA in 226.701s on Node 24.19.0/pnpm 12.0.0. Plain Node used the existing built server imported by the canonical Gateway CLI and the same authoritative session/admission modules. All 15 expected startup plugins registered without error records or diagnostics; codex/openai/memory-core imported. Normal source/built plugin selection was retained. No plugin disabling, catalog filtering, mock loader, export shim, dependency override, new production seam or deadline change was used.

Actual patch/reset/delete RPCs traversed three loopback WebSockets with HTTP 101 upgrades, nonzero traffic, distinct hello-ok connection IDs and successful responses. Patch persisted the mixed-case label; same-ID reset changed the lifecycle revision. The case-distinct sibling row remained identical and actively admitted with zero interruptions. A sacrificial delete interrupted its own admission exactly once, proving the Gateway and helper shared admission state. All 13,310 QA-artifact hashes stayed unchanged. State was removed, no proof children/listener remained, and the lease stopped. The child exited naturally in 125.156s; its post-shutdown wait was not diagnosed, and no fast-exit or universal timing claim is made.

The earlier full Linux suite remains valid for its other recorded phases: cold Doctor 7/7 (first case 13.900s), preflight process 8/8, real plugin persistence 13/13, declarations/lint, 638 plugin/Codex/fork cases, 130 Gateway creation cases, 102 deletion/archive/worker cases and 368 incoming-owner cases. Local private QA, static/types, owner tests and isolated reviews remain bound to this unchanged source. Those 1,266 cases were not rerun for this proof-only correction. No provider turn, authenticated Matrix transport or UI proof is claimed; operator state and credentials remain out of scope. Historical owner regression supplies the pre-fix reproduction; the manual RPC probe was not run pre-fix.

ClawSweeper disposition: the latest inspected current-head review requests the direct pinned-Codex subscription audit. The acting reviewer personally read Codex 0.150.1 at 90854393966b21e9ebfd21b122334eb09a20c93d: thread_processor.rs:978–1040,1616–1710,2343–2388,6035–6064, thread_state.rs:445–564, and thread_manager.rs:1127–1157. This satisfies that Rank-up move; its SQLite-table warning identifies migration paths, not new DDL/schema. Required CI remains successful. Main’s independently authored fixes and earlier failures retain their original attribution and scope. Production net −444; tests/support net +121; tooling −1. The original read-only candidate remains byte-identical. No prepare-run, merge-run, release or version publication has occurred.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 29, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Aug 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 29, 2026
@steipete
steipete force-pushed the steipete/sweet-sanderson-26a4f5 branch from 07f28f2 to fc701fa Compare August 29, 2026 03:01
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 29, 2026
@steipete
steipete force-pushed the steipete/sweet-sanderson-26a4f5 branch from fc701fa to 5d83a21 Compare August 29, 2026 05:44
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 29, 2026
@steipete
steipete force-pushed the steipete/sweet-sanderson-26a4f5 branch 2 times, most recently from cc66cbf to 8bbd790 Compare August 29, 2026 07:04
@clawsweeper clawsweeper Bot removed the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Aug 29, 2026
@clawsweeper clawsweeper Bot added the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Aug 29, 2026
Read harness policy from its existing owner and defer agent-tool and MCP
factories to the asynchronous schema-inspection boundary. Keep policy,
normalization, per-workspace reuse, and disposal unchanged.

Cold Linux proof: both complete Doctor E2E files pass 7/7 in three fresh
processes with empty transform caches and unchanged 30-second deadlines.
Real selected-plugin setup and legacy migration behavior stay covered.

Release-note context: Doctor policy and readiness inspection no longer
eagerly loads the agent execution graph. No final macOS timing claim.
The direct policy/type imports leave two internal re-exports without any
production consumer. Remove them and have the existing selection test
import policy from its implementation owner.

This resolves the unchanged hard-zero export guard without changing
selection behavior, test assertions, mocks, SDK contracts, or deadlines.
@steipete
steipete force-pushed the steipete/sweet-sanderson-26a4f5 branch from 758fb05 to ac447d2 Compare August 29, 2026 07:56
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 29, 2026
@steipete
steipete merged commit 1a0e72b into main Aug 29, 2026
273 of 276 checks passed
@steipete
steipete deleted the steipete/sweet-sanderson-26a4f5 branch August 29, 2026 09:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
…claw#132242)

* refactor(sessions): separate canonical mutations from Doctor repair

* test(doctor): use canonical migration owners in new diagnostics

* fix(doctor): load execution factories only for schema checks

Read harness policy from its existing owner and defer agent-tool and MCP
factories to the asynchronous schema-inspection boundary. Keep policy,
normalization, per-workspace reuse, and disposal unchanged.

Cold Linux proof: both complete Doctor E2E files pass 7/7 in three fresh
processes with empty transform caches and unchanged 30-second deadlines.
Real selected-plugin setup and legacy migration behavior stay covered.

Release-note context: Doctor policy and readiness inspection no longer
eagerly loads the agent execution graph. No final macOS timing claim.

* refactor(doctor): remove unused execution facade exports

The direct policy/type imports leave two internal re-exports without any
production consumer. Remove them and have the existing selection test
import policy from its implementation owner.

This resolves the unchanged hard-zero export guard without changing
selection behavior, test assertions, mocks, SDK contracts, or deadlines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations extensions: codex maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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