Skip to content

refactor(sessions): wire incognito domain facades and deferred lifetimes to the actor (P7i, inactive) - #165454

Merged
steipete merged 14 commits into
mainfrom
dbasync/incogp7i
Oct 5, 2026
Merged

steipete merged 14 commits into
mainfrom
dbasync/incogp7i

Conversation

@steipete

@steipete steipete commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The inactive incognito actor needs complete domain facades and retained lifetimes before atomic P7 activation. Accepted work must keep its original owner through reads, validation, dependent writes, publication, and cleanup. Closing must refuse new work while allowing accepted settlement to finish.

Solution

Wire actor bindings for reactions, heartbeat outcomes and claims, progress cards, Board continuations, admission claims, private-row preparation, and expiry. Private rows capture their snapshot inside the actor FIFO and retain related owners through synchronous consumption. Live authority and generation checks prevent stale disclosure; ended actors produce nonretryable INCOGNITO_SESSION_ENDED errors.

Separate retained settlement from strict read acceptance. A released borrow or closing actor can finish accepted persistence and cleanup, but cannot start another read consumer or deliver a private result. Rows check every related private actor; history, Memory, hydration, progress cards, heartbeat context, ACP entries, and pending-input readers check outward acceptance. Board consumers retain authority for dependent writes once accepted and recheck before returning their result. SessionManager model-context reads reuse the canonical context reader instead of a duplicate acceptance path. Strict readability is checked after caller authority callbacks, including final result delivery. Mutation responses that include stored private data use the same fence after persistence and committed publication finish. Member and suggestion list readers check delivery separately from internal claim-token release/finalize custody. Heartbeat results also recheck caller authority after claim settlement, preserving the accepted claim when delivery is refused.

Accepted expiry uses its retained borrow during close, and compute copies the caller's target before deferring work. Expiry remains the original, nonrenewing 24-hour deadline.

Impact

Inactive: production routing remains host-owned. Atomic activation must install these bindings and remove the native routes together. No schema, persistence, retention, durability, permissions, configuration, dependency, or update behavior changes; no update cell is required. The diff adds zero new environment names.

Main integrations preserve the newer compute claims, #165360 ordered-reader mutation fence, #165225 derived progress-card type, P7h1 #165525 admission owner, and P7j #165548 history/Memory wiring. Current-main #165600 membership authority also retains ordered reads alongside explicit private-row ordering. Related work includes P7e #165151, P7f2 #165217, and #162433. Wrapper dependency inventory includes the extracted modules, and affected tests are routed to the host-owned worker projects.

No pre-existing cross-owner host-SQL exception was identified in this delta's worker-grant callbacks. Same-owner checks consume actor-published facts; shared auth, ACP, and repository reads remain outside native grants.

Evidence

Current head: 38ca5c4a0c86d40ce5be23289d1a3f36dc0996b8. Fresh P2 review of the complete integrated candidate and its fixture-capacity correction is scoped-clean. The final SDK comparison and exact-head ClawSweeper review completed. Merged as af57555537a056dde973ddad2138e92c63a0f5f7 through native admin admission for the independently proven inherited membership timeout; the landing-parent audit matched.

Real-worker coverage exercises domain operations, transaction/commit revocation without persisted mutations, private-row lineage, accepted expiry, deferred compute cleanup, SessionManager appends, and Gateway shutdown ordering. The two P7f1 invariants were rechecked: anchor acceptance stays in the original actor FIFO, and history/Memory consumers retain the original owner through scanning, consumption, second validation, and cleanup. Worker test-routing audit found no missing host-owner route among affected callers.

The disclosure regressions failed on the unfixed candidate: the primary or related row consumer ran after actor retirement; a Memory observer received a second message after releasing its borrow; and final row delivery resolved after its last authority callback released the borrow. A broader retained-parent table also reproduced heartbeat, ACP, pending-input, Board, SessionManager context and hydration leaks; the final Memory compute-authorization case likewise failed before repair. All now pass. Accepted Board dependent writes and actor cleanup remain covered. The SessionManager FIFO fixture follows the canonical onRead acceptance callback after removing its duplicate validation path; its ordering assertions are unchanged.

Measured commands use pnpm test <files> --maxWorkers=1; wrapper wall times include compilation/imports on the shared host:

Proof Result Wall time
P7j actor history, Memory, compute, lifecycle 76 tests / 4 files passed 185.80 s runner
P7j boundary readers, Memory corpus, SDK signature, import and wrapper closure 96 tests / 12 files passed 728.20 s summed runners
Disclosure fix: private rows, actor, Board, history, Memory, compute 73 tests / 6 files passed 186.80 s
Related-owner fence: private rows, history, Memory 31 tests / 3 files passed 149.37 s
Final row-delivery fence 1 boundary test passed 44.74 s
Full domain disclosure sweep 97 tests / 7 files passed 37.24 s runner
SessionManager acceptance and persistence 20 tests passed 11.43 s
Current-main lookup, membership, private-row and history integration 68 tests / 4 files passed 170.80 s
Mutation-response and concurrent-close proof 50 tests / 4 files passed 45.02 s
Combined delivery and retained claim custody 30 tests / 2 files passed 39.24 s
Heartbeat caller authority after settlement 29 tests / 2 files passed 34.41 s
Dispatch-repair integration with private domains 82 tests / 4 files passed 50.92 s
Final retained-settlement delivery and context proof 118 tests / 9 files passed 77.45 s
Bound test callbacks: final settlement controls 8 tests / 3 files passed 15.06 s
Main admission-fence conflict integration 62 tests / 5 files passed 117.19 s
Three-slot fixture: five independent full-file runs 25/25 passed in every run 11.42–25.13 s each
Existing two-slot overload rejection control 1 passed / 9 filtered 8.35 s
Linux repaired wrapper and provisioning suites 33 passed / 1 platform-specific skip 414 s

Core production types and affected state, Gateway, config, and Plugin SDK test type graphs passed. These actor tests need real workers to establish native settlement and retained cleanup; mock helpers cannot prove that boundary. Current-head CI timing will be recorded after publication.

CI failures and repairs

The first run found two PR-caused fixture assumptions. Each failed in 5/5 PR-head reproductions and passed in 5/5 merge-base reproductions. The expanded private-row fixture now declares the existing synthetic three-slot host; production broker capacity is unchanged and its two-slot rejection control passes. The history release test now uses a non-mutating actor FIFO barrier, preserving its released-reference and mutation-fence assertions. The same correction was applied to P7j's extracted history fixture.

The second run inherited main's missing compiled-wrapper inventory entry for deferred-plugin-migrations.contract.ts. Main fixed it in #165572 (044859704eba). Linux provisioning reproduced the exact missing-module error in 5/5 old-main runs and passed in 5/5 PR-head runs. Repaired full wrapper/provisioning proof passed 33 tests with one platform-specific skip. Initial loaded-host timeouts and remote tmpfs-capacity refusals were excluded from valid evidence.

The third run inherited an exporter-fixture TS2322: descriptor inputs lacked required profile-access metadata. The exact PR head passed five compiler checks; main 6a42f13c7ab9 failed all five. Main repaired it in #165597 (b9f2ea649750).

That run also hit the 65-store list fixture's unchanged 120-second limit. The full file reproduced the same failure in 5/5 main runs and 5/5 exact CI-merge runs, with its two neighboring tests passing. Diagnostics placed the timeout during row seeding, before projection/listing: each agent paid about 2.3 seconds of worker startup. The proven main repair, e929d157b7d8c (published through 1cd64928a3667), publishes fixture configuration once and seeds the remaining pristine rows with the existing synchronous entry writer. It preserves all 65 databases, async transcript writes, list requests, assertions, and timeout. All three tests pass on both Linux revisions; the cap case takes 6.165/6.441 seconds. Both gateway-server type graphs, formatting, and P2 review passed. No inherited-failure admin exception has been used.

The fourth run found a PR-caused recursive type-inference failure in the private-row retirement fixture (TS7022), which also made its async mock callback fail type-aware lint. Commit 55fff1f099dfe pins the borrow to the existing actor interface, preserving the mock and every assertion. The exact Gateway-root type project, focused type-aware lint, and row regression now pass (14.52 seconds); fresh P2 review is clean. Failed logs were retained once, and no assertion or lint rule was weakened.

ClawSweeper identified two stored-data mutation responses that also need strict delivery: revision-mismatched progress-card writes and reaction results containing participant identities. These controls failed before repair, as did equivalent Board/ACP responses and member/suggestion list reads. The fixes preserve committed state, publication, and internal suggestion-token release/finalization. A real-worker concurrent-close case rejects all three read/write results and joins accepted work before closure. The heartbeat authority controls separately prove that a live actor cannot deliver an outcome after caller authority ends; the accepted claim remains retryable by its original run.

The fifth CI run passed the earlier type/lint gates and inherited a main-side Gateway dispatch failure introduced by #165629. Anonymous cron.status requests entered cache ownership before sharing eligibility, causing an undefined WeakMap key and preventing handler entry. Five unchanged PR-head runs passed all 31 metrics tests; five unmodified-main runs and the exact CI merge failed the same six tests (three overlap timeouts plus cascading assertions). Main repair 8d91b9c85e264 preserves namespace capture before awaited preparation and acquires the cache only for an eligible, current read. All 52 unchanged metrics/shared-read tests pass (50.474 seconds), along with format, lint, three type graphs, and P2 review. That repair is integrated here; the combined 82-test proof passes. No inherited-failure PR merge exception has been used.

The final settlement repair (18599aadac596, following mutation repair e2567fc401138) moves outward authority checks after the entire retained scope finishes. Three progress/reaction controls and ten Board, ACP, history, native-context, and SDK controls all reproduced private-response delivery after caller revocation before correction. After correction all 118 affected tests pass, including accepted-write/publication and dependent-cleanup cases. Production and five affected test type graphs pass; targeted type-aware lint passes after binding three captured test methods. P2 review of the full integrated delta is scoped-clean. No sleeps, retries, weakened assertions, or production activation were added.

The sixth CI run completed 100 jobs with one failing test job plus its aggregate gate. Two PR-caused domain-fixture cases needed three simultaneous broker slots: the retained suite actor, shared state, and a separate closing actor. A synthetic two-slot host reproduced exactly those two overloads in all five full-file runs; declaring the existing three-slot fixture topology makes all 25 tests pass in each of five runs. The production broker limit is unchanged, and its existing two-slot overload control still passes. Commit 38ca5c4a0c86d also resolves the real main conflict by preserving both explicit private-row ordering and main's membership onReadAdmitted freshness callback. All 62 affected integration tests, types, lint, and fresh P2 review pass.

The same job's membership product timeout is independently inherited: scheduled main run 37342235538, job 111872447762 fails the same test at 90 seconds. The fixture is byte-identical on the PR head, true merge base, and integrated main (d7f6d610a68ba7e3617ad602178636c4736da0f8). All five PR-head runs and all five true-merge-base runs reproduce the same sole timeout, as does the unmodified current-main control. The held authorization read owns the ordered writer FIFO while the fixture awaits an injected asynchronous membership removal from that same FIFO. This PR does not introduce membership ordering; main introduced it in #165600. No assertion, timeout, production error mapping, or retry was changed to hide the inherited failure. The final head qualified for the explicit inherited-failure exception with complete native attribution.

ClawSweeper's completed review of 38ca5c4a0c86d resolves both prior P1 findings, accepts the real-worker proof, and reports no findings or security concerns. Its technical review explicitly confirms that the unchanged Board schemas/kernels require no migration. Its remaining unknown-data-model-change heuristic names the Board orchestration wrapper. No Board data-model change exists: src/boards/sqlite-board-store.kernel.ts, src/state/openclaw-agent-board-schema.ts, src/state/openclaw-agent-schema.sql, src/state/openclaw-agent-db-schema-helpers.ts, and src/state/openclaw-agent-db-session-nodes-migration.ts are byte-identical between the base and candidate. The wrapper only adds actor composition and response authorization; stored row shapes, SQL kernels, schema versions, migration ownership, and update behavior are unchanged. Existing worker controls read stored Board content and verify accepted revisions/publications. The inactive stage requires no update cell.

The final exact-head CI run completed attempt 1 in 611 seconds of workflow wall time: 101 jobs, 76 successful, 23 intentionally skipped, and only the inherited membership test job plus its aggregate gate failed. The prior fixture-capacity failures are gone. Its checkout was 182f61e721df9d11b94d0c3f353482921faf1d4e, merging 38ca5c4a0c86d into main e26ef4fdb124e. All seven causal source files are identical between that baseline, tested merge, and the independently failing current-main control. Complete once-fetched failure/aggregate logs, five-by-five controls, main CI proof, and source/artifact hashes bind the native inherited-failure evidence. CI remains recorded as failed; no rerun or passing claim substitutes for the approved exception. The timed-out product case does not finish its later session-replacement, global-routing, and profile-custody phases.

Released SDK surface

The final integrated SDK report (d511ab92b63ae to 38ca5c4a0c86d, acknowledgement digest f358af6b) completed, including temporary-checkout cleanup. It has zero entrypoint additions/removals and zero direct exported-declaration changes; all 128 reports concern reachable internal actor types. It includes the final post-settlement fences and main-admission integration. Earlier reports are superseded by this report.

Inspection against latest release v2026.9.8 confirms the actor is absent from that release. The new strict-readability method is internal actor capability. Main's Memory SDK facade explicitly preserves released argument/callback shapes, with the memory-session-released-signatures compatibility record and contract type test. Removed internal helpers have no SDK, api.runtime, or documented-subpath exposure; existing reaction callers retain their input shape.

No live Gateway was modified. Production activation and its routing proof remain with the later atomic cutover. The task's remote lease is verified released.

@clawsweeper

clawsweeper Bot commented Oct 5, 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 gateway Gateway runtime scripts Repository scripts labels Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive guard cleared

Current revision: 38ca5c4a0c86d40ce5be23289d1a3f36dc0996b8

This PR no longer changes files in the maintainer security-review tier.

Separate CODEOWNERS requirements still apply to security policy and enforcement files.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 5, 2026, 2:12 PM ET / 18:12 UTC (Revision 16).

ClawSweeper review

What this changes

Connect incognito session operations, private reads, and deferred cleanup to their captured worker actor while preventing private results from reaching released or revoked callers.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/boards/sqlite-board-store.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.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, distinct inactive prerequisite. The earlier disclosure findings are resolved, and the Board changes do not introduce a stored-data migration requirement. No new blocking defect was identified.

Priority: P2
Reviewed head: 38ca5c4a0c86d40ce5be23289d1a3f36dc0996b8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful ownership work with strong production-boundary proof and resolved prior findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Recorded real-worker runs exercise the production actor, domain adapters, storage kernels, and transport under transaction/commit revocation, borrow release, and concurrent close. They show refused private delivery, rollback before unauthorized writes, and retained committed publication and cleanup. The unchanged Board schema/kernel blobs and inactive routing remove the prior migration concern; no stored-data contract changes were identified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Recorded real-worker runs exercise the production actor, domain adapters, storage kernels, and transport under transaction/commit revocation, borrow release, and concurrent close. They show refused private delivery, rollback before unauthorized writes, and retained committed publication and cleanup. The unchanged Board schema/kernel blobs and inactive routing remove the prior migration concern; no stored-data contract changes were identified.
Evidence reviewed 9 items Pinned introduction and clean checkout: Reviewed the introduced delta from d511ab9 to 38ca5c4. The checkout remained clean. The supplied stale test merge was not used to infer removal of current-main behavior.
Complete captured proof body inspected: Retrieved the complete 15,572-unit body through GitHub REST, including the omitted settlement, compatibility, and SDK evidence. Its SHA-256 matched the supplied snapshot: 67ef4d85defaa3649fbba3cc9221e2152b6eaf5bee45832fac18a192c3eaa56b. It reports 118 passing affected boundary cases after the final settlement repair, plus five corrected 25-case domain runs.
Earlier progress-card disclosure finding resolved: Both reads and writes recheck caller authority, captured session generation, and strict borrow readability after the retained scope settles. Revision-mismatch responses therefore pass the delivery fence before returning stored card content.
Findings None None.
Security None None.

How this fits together

Incognito sessions keep private session data in a process-local database. These adapters carry session operations through its worker owner, preserving accepted writes and cleanup while checking authority before returning private results.

flowchart TD
  A[Session operations] --> B[Captured actor binding]
  B --> C[Ordered worker operations]
  C --> D[Existing database kernels]
  D --> E[Committed publication and cleanup]
  E --> F[Current caller and borrow check]
  F --> G[Private result or typed refusal]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +906, Tests +1628, Docs +37, Other +4. Total +2575 across 56 files.

View PR surface stats
Area Files Added Removed Net
Source 37 1235 329 +906
Tests 17 1686 58 +1628
Docs 1 37 0 +37
Config 0 0 0 0
Generated 0 0 0 0
Other 1 4 0 +4
Total 56 2962 387 +2575

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +906 LOC; tests/support net +1,626 LOC Production growth is explained by completing inactive domain composition and retained lifetimes; the larger test delta covers distinct storage, disclosure, and shutdown boundaries.

Stored data model

Persistent data-model change detected: unknown-data-model-change: src/boards/sqlite-board-store.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep these adapters inactive until the atomic activation installs them and retires the native routes together.

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

Not applicable as a user-facing bug report: this is inactive ownership wiring. The recorded failing-before/passing-after worker controls provide concrete evidence for its disclosure and settlement repairs.

Is this the best way to solve the issue?

Yes. Reusing existing actor, admission, and database-kernel owners is a maintainable direction; separating accepted settlement from outward disclosure preserves both cleanup and current authorization.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 51ef4bc11dc4.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded internal ownership prerequisite with production activation deferred.
  • 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): Recorded real-worker runs exercise the production actor, domain adapters, storage kernels, and transport under transaction/commit revocation, borrow release, and concurrent close. They show refused private delivery, rollback before unauthorized writes, and retained committed publication and cleanup. The unchanged Board schema/kernel blobs and inactive routing remove the prior migration concern; no stored-data contract changes were identified.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded real-worker runs exercise the production actor, domain adapters, storage kernels, and transport under transaction/commit revocation, borrow release, and concurrent close. They show refused private delivery, rollback before unauthorized writes, and retained committed publication and cleanup. The unchanged Board schema/kernel blobs and inactive routing remove the prior migration concern; no stored-data contract changes were identified.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the introduced delta from d511ab9 to 38ca5c4. The checkout remained clean. The supplied stale test merge was not used to infer removal of current-main behavior. (38ca5c4a0c86)
  • Complete captured proof body inspected: Retrieved the complete 15,572-unit body through GitHub REST, including the omitted settlement, compatibility, and SDK evidence. Its SHA-256 matched the supplied snapshot: 67ef4d85defaa3649fbba3cc9221e2152b6eaf5bee45832fac18a192c3eaa56b. It reports 118 passing affected boundary cases after the final settlement repair, plus five corrected 25-case domain runs. (38ca5c4a0c86)
  • Earlier progress-card disclosure finding resolved: Both reads and writes recheck caller authority, captured session generation, and strict borrow readability after the retained scope settles. Revision-mismatch responses therefore pass the delivery fence before returning stored card content. (src/gateway/progress-card-store.ts:110, 38ca5c4a0c86)
  • Earlier reaction disclosure finding resolved: Reaction results check current caller authority, the session claim, and strict readability after accepted mutation settlement, before returning participant-bearing data. (src/config/sessions/session-reaction-store.ts:100, 38ca5c4a0c86)
  • Authority rejection reaches real storage boundary: The domain fixture uses the actual ephemeral actor and worker transport. Transaction/commit refusal cases verify that reactions, heartbeat outcomes, and cards remain unmodified. Released-parent and concurrent-close cases reject outward responses while checking accepted mutations remain committed. Fault-injection wrappers call through to the production owner rather than replacing its transport. (src/gateway/progress-card-store.incognito.test.ts:275, 38ca5c4a0c86)
  • No introduced Board data-model change: Base and head have identical blob IDs for sqlite-board-store.kernel.ts, openclaw-agent-board-schema.ts, openclaw-agent-schema.sql, openclaw-agent-db-schema-helpers.ts, and openclaw-agent-db-session-nodes-migration.ts. The Board wrapper delta changes retained composition and result authorization, without changing row formats, SQL kernels, schema versions, or migrations. The previous migration checkbox has no remaining source-backed trigger. (src/boards/sqlite-board-store.ts:210, 38ca5c4a0c86)

Likely related people:

  • Peter Steinberger: Raw commit b0d6eea adds src/plugin-sdk/codex-session-transcript-runtime.ts:53 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b0d6eea2fe08; files: src/plugin-sdk/codex-session-transcript-runtime.ts)

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 (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-05T12:40:05.416Z sha c2cf2a2 :: needs changes before merge. :: none
  • reviewed 2026-10-05T13:13:48.759Z sha c2cf2a2 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-05T13:32:38.994Z sha bdb00ef :: needs changes before merge. :: none
  • reviewed 2026-10-05T14:11:23.974Z sha bdb00ef :: needs maintainer review before merge. :: none
  • reviewed 2026-10-05T14:34:17.653Z sha bdb00ef :: needs maintainer review before merge. :: none
  • reviewed 2026-10-05T16:04:47.448Z sha 4dcf4dc :: needs real behavior proof before merge. :: [P1] [P1] Check readability before returning progress-card write results | [P1] [P1] Fence reaction mutation responses against released borrows
  • reviewed 2026-10-05T16:26:50.432Z sha 55fff1f :: needs real behavior proof before merge. :: [P1] [P1] Check readability before returning progress-card write results | [P1] [P1] Fence reaction mutation responses against released borrows
  • reviewed 2026-10-05T17:48:57.631Z sha 18599aa :: blocked before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot closed this Oct 5, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 5, 2026
Merge main while preserving its store-wide compute claims and the inactive actor facades. Keep accepted expiry deletion in its retained borrow during actor close; refuse new callers. Preserve the empty-inventory fixture before the released-borrow regression.
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 5, 2026
Clone the caller target before retaining deferred work so later object mutation cannot retarget an accepted scope. Cover the original-session read across synchronous target replacement with a real actor regression.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Reuse the ordered-reader native mutation fence and cleanup-close regression already landed in #165360. Preserve the incognito domain facades, retained expiry settlement, and synchronous compute target capture.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Keep the ProgressCardStore type derived from the main-owned implementation while retaining the inactive incognito facade. Group the two new test registrations with existing incognito tests, preserving membership and avoiding unrelated insertions at the array head.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Declare the three-slot synthetic host required by two private actors plus shared-state reads, following the lifecycle fixture. Use a non-mutating FIFO barrier for released history consumption so the strict release assertion is independent of transcript mutation. Both original failures reproduced five times on the PR head and passed five times on the merge base; repaired tests and the low-capacity rejection control pass.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Oct 5, 2026
@clawsweeper clawsweeper Bot added the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Oct 5, 2026
Use the existing actor interface to break recursive inference in the Gateway-root test graph. This also preserves the async mock callback contract for type-aware lint. Runtime behavior and all disclosure assertions are unchanged.

Verified the Gateway-root type project, focused type-aware lint, and row regression (14.52 seconds); fresh P2 review is clean.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Require current readability before delivering stored progress-card, reaction, Board and ACP payloads after accepted mutation settlement and committed publication. Fence member and suggestion list results at their existing read adapters while retaining internal claim-token custody, release/finalize and publication.

Real-worker controls reproduced released-parent and closing-owner disclosure. After repair, 50 affected tests and 30 combined integration tests pass; claim cleanup and committed state remain verified. Production and relevant test types, type-aware lint, and fresh P2 review are clean.
Merge current main with the published Gateway dispatch repair. Recheck captured caller authority and strict actor readability after outer domain and context scopes settle, while preserving accepted writes, publication, and cleanup.

Validation: 118 tests across nine affected files pass; eight final bound-fixture controls pass; affected production/test types and targeted type-aware lint pass. Fresh P2 review is scoped-clean. Incognito activation and production routing remain unchanged.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 5, 2026
Integrate main sharing-admission freshness while retaining explicitly ordered private-row reads. The domain fixture retains a suite actor, shared-state worker, and separate closing actor; declare its synthetic three-slot host without changing production broker capacity.

Validation: five unchanged two-slot controls reproduce the exact two CI overloads; five corrected runs pass all 25 tests; the existing two-slot overload guard passes. Conflict integration passes 62 tests, affected types and lint. Fresh P2 review is scoped-clean.
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit af57555 into main Oct 5, 2026
172 of 175 checks passed
@steipete
steipete deleted the dbasync/incogp7i branch October 5, 2026 18:26
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Oct 5, 2026
Move withIncognitoSessionRow unchanged into session-row-projection-read.ts,
which already owns database-fact acquisition and is imported in production.
Update its actor regression import and delete the test-only production file
introduced by #165454. Preserve the existing inactive P7 marker; add no Knip
configuration exceptions and change no runtime behavior.

P7h2 reconciliation: #165628 also touches session-row-projection-incognito.ts.
Apply any pending changes to session-row-projection-read.ts instead and keep
the old module deleted.

Proof: production Knip passes (69.44s; baseline failed on the sole unused file
in 69.94s), actor row regression passes (35.62s), Madge reports zero cycles
(38.67s), core typecheck passes (13.71s), touched-file typed lint passes
(10.84s), and max-lines ratchet passes (11.12s). Codex P2 review is clean.
The idle Incognito sibling Gateway regression passes on unmodified
round-21 main a5a43a0 (79.96s). Its first candidate run stopped before
Vitest because local artifact separation could not be verified; the baseline
retry reused matching prepared artifacts with the guard unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
…mes to the actor (P7i, inactive) (openclaw#165454)

* refactor(sessions): wire inactive incognito domain facades and lifetimes

* fix(sessions): capture incognito compute targets before deferral

Clone the caller target before retaining deferred work so later object mutation cannot retarget an accepted scope. Cover the original-session read across synchronous target replacement with a real actor regression.

* test(sessions): isolate incognito capacity and release fixtures

Declare the three-slot synthetic host required by two private actors plus shared-state reads, following the lifecycle fixture. Use a non-mutating FIFO barrier for released history consumption so the strict release assertion is independent of transcript mutation. Both original failures reproduced five times on the PR head and passed five times on the merge base; repaired tests and the low-capacity rejection control pass.

* test(sessions): pin borrowed actor type in retirement fixture

Use the existing actor interface to break recursive inference in the Gateway-root test graph. This also preserves the async mock callback contract for type-aware lint. Runtime behavior and all disclosure assertions are unchanged.

Verified the Gateway-root type project, focused type-aware lint, and row regression (14.52 seconds); fresh P2 review is clean.

* fix(sessions): fence private mutation responses after settlement

Require current readability before delivering stored progress-card, reaction, Board and ACP payloads after accepted mutation settlement and committed publication. Fence member and suggestion list results at their existing read adapters while retaining internal claim-token custody, release/finalize and publication.

Real-worker controls reproduced released-parent and closing-owner disclosure. After repair, 50 affected tests and 30 combined integration tests pass; claim cleanup and committed state remain verified. Production and relevant test types, type-aware lint, and fresh P2 review are clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
Move withIncognitoSessionRow unchanged into session-row-projection-read.ts,
which already owns database-fact acquisition and is imported in production.
Update its actor regression import and delete the test-only production file
introduced by openclaw#165454. Preserve the existing inactive P7 marker; add no Knip
configuration exceptions and change no runtime behavior.

P7h2 reconciliation: openclaw#165628 also touches session-row-projection-incognito.ts.
Apply any pending changes to session-row-projection-read.ts instead and keep
the old module deleted.

Proof: production Knip passes (69.44s; baseline failed on the sole unused file
in 69.94s), actor row regression passes (35.62s), Madge reports zero cycles
(38.67s), core typecheck passes (13.71s), touched-file typed lint passes
(10.84s), and max-lines ratchet passes (11.12s). Codex P2 review is clean.
The idle Incognito sibling Gateway regression passes on unmodified
round-21 main 875af2b (79.96s). Its first candidate run stopped before
Vitest because local artifact separation could not be verified; the baseline
retry reused matching prepared artifacts with the guard unchanged.
steipete added a commit that referenced this pull request Oct 11, 2026
## What Problem This Solves

Removes dormant migration scaffolding that adds maintenance surface without serving a production caller.

## User Impact

No user-visible behavior change. Active UI state owners and projections, native incognito expiry, public SDK/package exports, security checks, storage, and configuration remain intact.

## Why This Change Was Made

Delete unadopted Solid projections and their event/lease infrastructure rather than retaining a parallel adapter layer for hypothetical future consumers. The introducing [projection PR](#168405) explicitly describes an internal foundation with no rendered UI change.

Delete the inactive actor-specific incognito expiry sidecars and their exclusive tests. Their introducing work ([single-actor](#165454), [topology composition](#165901)) explicitly leaves production on the native sidecar. Its existing real deletion/shutdown tests stay unchanged.

Net production reduction: **1,262 lines** (13 added, 1,275 deleted; tests, test support, docs, fixtures and generated code excluded). Every removed module/export was checked against repository-wide references, dynamic loaders, manifests and package exports. The active `projectSource` implementation is unchanged apart from making its unused exported input type private. Remove the stale whole-directory Knip entry exemption now that every retained reactive module has a production caller. Also drop four zero-caller Solid presentation helpers from the preparatory #168576 layer; their live Lit counterparts and all gallery-used helpers remain.

## Best-effort tradeoffs accepted

- Unused event-projection replacement/disposal generations, duplicate-listener bookkeeping and async settlement: these only served the unadopted #168405 adapters and synthetic tests, not a human-reported runtime incident. Future event consumers subscribe to the existing owners and retain their ordering/completion contracts.
- Unused board/provider lease counting and temporary palette subscriptions: #168405 introduced them for future migration consumers that never arrived. Existing provider/preference owners remain authoritative; a future port must add only the adapter it actually needs.
- Unused generic locale-catalog replacement/listener bookkeeping: the wrapper had only its own test as a caller. Actual locale subscriptions and lazy English registration remain; a future replacement API must be integrated with the translation owner rather than kept as a test-only parallel path.
- Inactive actor topology capture, incarnation fences, acquisition/retirement reconciliation and actor-only settling checks: #165454/#165901 label this prerequisite inactive, and production still calls the native sidecar. Future activation must implement its actual integration; no live deletion loses authority or shutdown checks.

## Evidence

- Independent P0–P2 review: scoped clean; no accepted/actionable findings.
- Retained reactive scope plus application-context lifecycle: **27 tests passed in 10 files**.
- Retained Solid component scope: **49 tests passed in 10 files**, 83.22 s command wall time.
- Changed-file cost run with `--maxWorkers=1`: **20 tests passed in 7 files**, 74.43 s command wall time; individual file test windows were 2–325 ms. No new tests, timers, retries, skips, or suppressions.
- Real native incognito sidecar/deletion/shutdown suite: **9 tests passed**, unchanged.
- Lint-suppression guard: **3 tests passed**; no new suppressions.
- Production Knip: **passed** on the source-capsule-verified Testbox candidate.
- Full-tree Knip: no unused files/exports reported; the broader pass reports pre-existing dependency/binary/path metadata outside this diff. Canonical export-only pass is clean.
- Change-check proof: all 28 core/test type graphs plus production/UI types, ratchets, formatting, script lint, storage/loader/auth guards passed. The initial run caught README formatting and one unused test import; both are fixed. Completed results were reused while the corrected lint stripe and remaining commands were run through the same changed-scope owner. Final component-only UI types, lint, and style checks passed.
- Runtime import cycles: **0**. Madge cycles: **0**. Final production and full-tree export scans both passed on the source-capsule-verified [Testbox run](https://github.com/openclaw/openclaw/actions/runs/38171748378).
- [Exact-head CI](https://github.com/openclaw/openclaw/actions/runs/38175521266) passed on `6b35e73d5f9be9cf79ccc4692f0109ce7d2915b3`, including `openclaw/ci-gate`; no failed checks or CI reruns. Workflow wall time was 454 s. The three UI check jobs took 264/304/288 s wall time (including setup), and the UI E2E jobs passed.

No live Gateway or real OpenClaw state was used. Every executable proof used isolated HOME, OpenClaw state/config and XDG directories.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
)

## What Problem This Solves

Removes dormant migration scaffolding that adds maintenance surface without serving a production caller.

## User Impact

No user-visible behavior change. Active UI state owners and projections, native incognito expiry, public SDK/package exports, security checks, storage, and configuration remain intact.

## Why This Change Was Made

Delete unadopted Solid projections and their event/lease infrastructure rather than retaining a parallel adapter layer for hypothetical future consumers. The introducing [projection PR](openclaw#168405) explicitly describes an internal foundation with no rendered UI change.

Delete the inactive actor-specific incognito expiry sidecars and their exclusive tests. Their introducing work ([single-actor](openclaw#165454), [topology composition](openclaw#165901)) explicitly leaves production on the native sidecar. Its existing real deletion/shutdown tests stay unchanged.

Net production reduction: **1,262 lines** (13 added, 1,275 deleted; tests, test support, docs, fixtures and generated code excluded). Every removed module/export was checked against repository-wide references, dynamic loaders, manifests and package exports. The active `projectSource` implementation is unchanged apart from making its unused exported input type private. Remove the stale whole-directory Knip entry exemption now that every retained reactive module has a production caller. Also drop four zero-caller Solid presentation helpers from the preparatory openclaw#168576 layer; their live Lit counterparts and all gallery-used helpers remain.

## Best-effort tradeoffs accepted

- Unused event-projection replacement/disposal generations, duplicate-listener bookkeeping and async settlement: these only served the unadopted openclaw#168405 adapters and synthetic tests, not a human-reported runtime incident. Future event consumers subscribe to the existing owners and retain their ordering/completion contracts.
- Unused board/provider lease counting and temporary palette subscriptions: openclaw#168405 introduced them for future migration consumers that never arrived. Existing provider/preference owners remain authoritative; a future port must add only the adapter it actually needs.
- Unused generic locale-catalog replacement/listener bookkeeping: the wrapper had only its own test as a caller. Actual locale subscriptions and lazy English registration remain; a future replacement API must be integrated with the translation owner rather than kept as a test-only parallel path.
- Inactive actor topology capture, incarnation fences, acquisition/retirement reconciliation and actor-only settling checks: openclaw#165454/openclaw#165901 label this prerequisite inactive, and production still calls the native sidecar. Future activation must implement its actual integration; no live deletion loses authority or shutdown checks.

## Evidence

- Independent P0–P2 review: scoped clean; no accepted/actionable findings.
- Retained reactive scope plus application-context lifecycle: **27 tests passed in 10 files**.
- Retained Solid component scope: **49 tests passed in 10 files**, 83.22 s command wall time.
- Changed-file cost run with `--maxWorkers=1`: **20 tests passed in 7 files**, 74.43 s command wall time; individual file test windows were 2–325 ms. No new tests, timers, retries, skips, or suppressions.
- Real native incognito sidecar/deletion/shutdown suite: **9 tests passed**, unchanged.
- Lint-suppression guard: **3 tests passed**; no new suppressions.
- Production Knip: **passed** on the source-capsule-verified Testbox candidate.
- Full-tree Knip: no unused files/exports reported; the broader pass reports pre-existing dependency/binary/path metadata outside this diff. Canonical export-only pass is clean.
- Change-check proof: all 28 core/test type graphs plus production/UI types, ratchets, formatting, script lint, storage/loader/auth guards passed. The initial run caught README formatting and one unused test import; both are fixed. Completed results were reused while the corrected lint stripe and remaining commands were run through the same changed-scope owner. Final component-only UI types, lint, and style checks passed.
- Runtime import cycles: **0**. Madge cycles: **0**. Final production and full-tree export scans both passed on the source-capsule-verified [Testbox run](https://github.com/openclaw/openclaw/actions/runs/38171748378).
- [Exact-head CI](https://github.com/openclaw/openclaw/actions/runs/38175521266) passed on `6b35e73d5f9be9cf79ccc4692f0109ce7d2915b3`, including `openclaw/ci-gate`; no failed checks or CI reruns. Workflow wall time was 454 s. The three UI check jobs took 264/304/288 s wall time (including setup), and the UI E2E jobs passed.

No live Gateway or real OpenClaw state was used. Every executable proof used isolated HOME, OpenClaw state/config and XDG directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime 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