Skip to content

refactor(sessions): compose incognito private rows and expiry (P7m2, inactive) - #165901

Merged
steipete merged 8 commits into
mainfrom
dbasync/incogp7m2
Oct 6, 2026
Merged

steipete merged 8 commits into
mainfrom
dbasync/incogp7m2

Conversation

@steipete

@steipete steipete commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Atomic incognito activation needs private-row presentation, related-session reads, expiry, and maintenance exclusions to retain the same captured actor and physical stores through preparation, consumption, and cleanup.

User Impact

This is an inactive prerequisite. Production incognito acquisition and native routes remain host-owned; this PR cannot activate actors by itself. It changes no schema, stored data, retention, durability, permissions, configuration, environment names, or update behavior.

Why This Change Was Made

Prepare private rows as one retained batch with actor facts, ACP metadata, private relatives, and an ordered durable-relative read. Preserve each child's agent and physical store, including captured absence. Retry stale placement preparation before invoking the synchronous consumer, including when a previously absent session appears during preparation. Revalidate actor-backed results through cleanup without replaying the consumer.

Ordinary unbound reads retain their existing synchronous completion boundary. The landing validation caught and fixed a regression where the new actor cleanup check reread ordinary projection readiness after consumption, turning an unrelated topology publication into an authorization/history failure. Native reads now use the same presenter directly; actor-bound reads retain their cleanup fences.

Compose existing-only all-actor expiry around the current single-actor deadline owner. Capture topology before yielding, refuse replacement incarnations, reconcile healthy actors despite a stale sibling, and join accepted deletion before releasing actors. Preserve no-disk/no-archive exclusions in cold restore, archive inspection, disk-budget maintenance, and page reclamation.

Main was integrated with a merge commit, preserving the merged history/compute parent, history identity and encoding repairs, accepted-persistence authority, typed ordered-read invalidation, and indexed row lookup. Related work: #165890 (merged parent), #165885, P7l deletion, and #162433. Final activation must install actor acquisition and deletion together and retire the native routes below.

Evidence

Current candidate: 3a7e1ade8de46c60bfe51959f796de8dee0ee1a4, integrated main baseline d8a62a83f3762c6f6727f6d16449bc63b18af48b.

After CI passed on 2eb513b9b56b2, P7k #165885 landed and caused two real conflicts. The merge retains its immutable root-only acquisition assertions and expanded claim/store-snapshot operations, together with M2 settled snapshots and batch cleanup. Fresh full-candidate P2 review, production types, all 27 core test type graphs, cycle/dead-code checks, the worker ratchet, targeted lint, and the refreshed SDK report passed on this head. Exact-head CI passed on its first attempt. Its logs directly confirm 38 cases across actor projection, expiry, placement lifecycle, membership, and actor sessions. The four related actor/SDK suites omitted by selective CI passed locally after the host reboot: 39 tests in 4 files, 34.47 s wall time, with --maxWorkers=1. Combined with CI, all nine integration files are covered on this exact head. The historical proof below is labeled separately.

  • Fresh full-candidate P2 Codex autoreview: scoped-clean, no accepted/actionable findings.
  • Post-integration production typecheck and all 27 core test typecheck graphs passed. Production and Gateway test types passed again after the native-completion repair.
  • Earlier integrated-head actor/expiry/history/compute/lookup proof: 107 tests in 6 files passed, 1,206.75 s command wall time.
  • Pre-P7k native-completion, prepared-row, event, actor, and membership proof: 28 tests in 6 files passed, 215.78 s command wall time. All focused runs use pnpm test <files> --maxWorkers=1.
  • The appearing-session placement regression failed before its repair (undefined versus requested). Both native completion cases failed before their repair and passed afterward. The new lifecycle cases took 18 ms and 6 ms locally and add no Gateway/process fixture; the actor fixture took 9.934 s, and the existing membership product test took 47.392 s in the final local run. Wall times include compilation/import overhead on the loaded host.
  • The CI membership failure was independently classified on a Blacksmith Testbox comparison: 5/5 failures on the pre-repair candidate, 5/5 passes on its pinned main baseline, singly with --maxWorkers=1. The box is stopped. Comparison exit 1 records the expected negative controls, not a passing gate. The original CI failure took 31.207 test seconds. A loaded-host local attempt timed out before this Linux comparison; that timeout was not treated as product evidence.
  • Current-head runtime process build graph and both import closures passed: 15 tests in 3 files, 22.37 s wall time, with --maxWorkers=1.
  • pnpm deadcode:knip passed; pnpm check:madge-import-cycles reported 0 cycles. The database-worker ratchet passed against the integrated baseline: no T1 growth. No new OPENCLAW_* names. Targeted lint, formatting, and git diff --check passed.

Released SDK source audit compared v2026.10.1-beta.1: changed callable helpers are internal, and the existing asynchronous public-facing facades retain their contracts. No compatibility adapter is required. The refreshed generated SDK report for d8a62a83f376 → 3a7e1ade8de4 completed successfully: 0 added/removed entrypoints, 0 top-level declaration/kind changes, 130 reachable-only changes, digest 5ec9f5693b48460f8ebdcd2602a2d0218fe52f51c1c93866dd5dbc574dc81f46.

The earlier current-head local nine-file attempt retained one 90 s membership timeout: Gateway startup reported 98.881 s before completion on the loaded host. Nine other cases passed before that shard stopped. This timeout remains recorded, rather than being called fixed; the same-head Linux CI membership case completed in 46.208 s. The supplemental Testbox attempt (tbx_01m48m9hgb7sp0wq3hca9besj3, run) timed out during setup before executing tests and is stopped. AWS staging was interrupted by the host reboot and produced no proof; no lease from that attempt remains active. The successful four-file local run closes the missing coverage.

Worker-routing audit found no missing host-owner project. Actor projection, expiry, history/compute, and lookup suites use existing host-owned projects; ordinary unbound projection helpers retain their original owner. The expiry proof injects Gateway deletion and exercises the real actor lifecycle kernel; it does not establish final production activation. New grant/validation callbacks add no SQL. Native production routes below remain activation debt.

ClawSweeper completed the exact-head review at 12:52 UTC with no actionable code or security finding. Its only request was completed integration evidence; the current-head results and refreshed SDK report above satisfy it. The original dependency-audit failure was fixed on main by #165902 and is included here; the old PR-context failure was corrected by adopting the required template headings.

Native routes retained until atomic activation

These are intentional production paths, not runtime fallbacks for a failed actor admission. Preserve durable and Doctor/CLI one-shot kernels when retiring them.

Native responsibility Current source anchor
Private row source, hydration, and by-ID discovery src/gateway/session-row-projection-materialize.ts:438, :600, :638, :676
Private ancestor sharing lookup src/gateway/session-row-projection-ancestors.ts:61
Private creator enumeration src/gateway/session-row-projection-identities.ts:156
Retained native incognito target src/gateway/session-utils-store-retained.ts:205
Native lifetime topology and sidecar src/gateway/session-incognito-lifetime.ts:225
Cold-status generation, retention, and count src/config/sessions/session-cold-storage-status.ts:51, :95, :107
History-eviction selection src/config/sessions/session-history-eviction.ts:185, :213
Maintenance archive-size branch src/config/sessions/session-accessor.sqlite-maintenance.ts:274
Native restore selection and metadata src/config/sessions/session-cold-storage.ts:387, :411
Page-reclamation selection src/config/sessions/session-accessor.sqlite-page-reclamation.ts:103

Compose shared actor bindings through history, Memory, usage, and reconciliation while production routing stays host-owned. Preserve FIFO read acceptance and reject stale or revoked results after cleanup. Native routes remain for the atomic P7 activation.
Prepare P7m2 shared-binding private presentation, retained lookup, no-disk maintenance exclusions, and all-actor expiry orchestration. Preserve production native routes until atomic activation; fence actor, ACP, durable and placement facts through cleanup without replaying consumers.
Keep child provenance and captured absence authoritative through presentation, and preserve captured incognito paths across environment changes. Validate stored and sharing facts at the same retained boundary; production routing remains inactive.
@clawsweeper

clawsweeper Bot commented Oct 6, 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 size: XL labels Oct 6, 2026
@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 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 11:56 AM ET / 15:56 UTC (Revision 7).

ClawSweeper review

What this changes

The branch composes retained incognito session rows, related-session reads, expiry coordination, and disk-maintenance exclusions while preserving native production routing.

Merge readiness

✅ Ready for maintainer review

This remains a distinct, useful inactive prerequisite. The previous integration-evidence request is addressed, and the pinned diff has no actionable correctness or security finding.

Priority: P2
Reviewed head: 3a7e1ade8de46c60bfe51959f796de8dee0ee1a4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent internal refactor with focused boundary coverage, successful pinned-head CI, and the prior evidence request resolved.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored inactive prerequisite is exempt from ordinary contributor setup proof. Inspected actor-boundary suites cover private-row preparation, stale-owner rejection, and expiry settlement; the new completed runtime/import and SDK receipts address the previous request. No unresolved introduced authority violation requires additional final-effect proof, and no stored-data contract changes require migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored inactive prerequisite is exempt from ordinary contributor setup proof. Inspected actor-boundary suites cover private-row preparation, stale-owner rejection, and expiry settlement; the new completed runtime/import and SDK receipts address the previous request. No unresolved introduced authority violation requires additional final-effect proof, and no stored-data contract changes require migration proof.
Evidence reviewed 10 items Pinned introduction and clean checkout: Reviewed the introduced delta from the pinned main baseline to the original PR head. The checkout remained clean; the stale GitHub test merge was not used to infer removal of current-main behavior.
Retained presentation and cleanup: Batch presentation validates all prepared rows before and after the synchronous consumer. Retained actor, ACP, related-session, and durable-source assertions validate completion before resources are released.
Native completion remains synchronous: Post-consumption publication checks apply only to actor-bound preparation. Ordinary reads preserve their synchronous completion boundary; the new lifecycle regressions cover both placement-reader variants.
Findings None None.
Security None None.

How this fits together

The Gateway presents session information using stored entries, sharing facts, and worker placement data. This change prepares private session information under its captured in-memory owner and coordinates expiry with the existing deletion lifecycle.

flowchart TD
  A[Session read request] --> B[Captured private session owner]
  B --> C[Prepare rows and related sessions]
  D[Sharing and placement facts] --> C
  C --> E[Validate and present synchronously]
  B --> F[Existing session deadlines]
  F --> G[Delete and join cleanup]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +717, Tests +596, Docs +27. Total +1340 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 18 921 204 +717
Tests 3 603 7 +596
Docs 1 27 0 +27
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 1551 211 +1340

Review metrics

Metric Value Why it matters
Production versus test growth production net +717 lines; tests net +596 lines The documented growth supports retained batch preparation, cleanup fencing, and staged expiry composition.

Technical review

Best possible solution:

Retain this staged composition and complete acquisition, deletion, and native-route retirement together in the later atomic activation.

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

Not applicable: this PR prepares an internal ownership cutover rather than reporting a remaining current-main bug; its regression scenarios are explicit in the boundary suites.

Is this the best way to solve the issue?

Yes: the composition reuses existing actor, ordered-read, presentation, deadline, and deletion owners while preserving the documented staged activation boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9e5692852d60.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is bounded internal session-ownership work that remains inactive in production.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored inactive prerequisite is exempt from ordinary contributor setup proof. Inspected actor-boundary suites cover private-row preparation, stale-owner rejection, and expiry settlement; the new completed runtime/import and SDK receipts address the previous request. No unresolved introduced authority violation requires additional final-effect proof, and no stored-data contract changes require migration proof.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the introduced delta from the pinned main baseline to the original PR head. The checkout remained clean; the stale GitHub test merge was not used to infer removal of current-main behavior. (3a7e1ade8de4)
  • Retained presentation and cleanup: Batch presentation validates all prepared rows before and after the synchronous consumer. Retained actor, ACP, related-session, and durable-source assertions validate completion before resources are released. (src/gateway/session-row-projection-read.ts:476, 3a7e1ade8de4)
  • Native completion remains synchronous: Post-consumption publication checks apply only to actor-bound preparation. Ordinary reads preserve their synchronous completion boundary; the new lifecycle regressions cover both placement-reader variants. (src/gateway/session-row-placement-projection.ts:479, 3a7e1ade8de4)
  • Authority and stale-state coverage: The actor-row suite exercises real actor operations with isolated storage and injected lifecycle gaps. Assertions cover cross-agent child provenance, captured absence, stale preparation, expired consumer callbacks, related-actor loss, and target, ACP, durable, and placement changes during cleanup. These are boundary tests, not a claim of production activation. (src/gateway/session-row-projection.incognito-actor.test.ts:50, 3a7e1ade8de4)
  • Inactive expiry composition: The new all-actor sidecar captures topology before acquisition, checks exact incarnations, reconciles actors independently, and joins sidecar cleanup before actor release. Production server wiring still calls the native sidecar. (src/gateway/session-incognito-lifetime.ts:299, 3a7e1ade8de4)
  • Intentional staged cutover: The database reference explicitly documents this inactive stage and retained native routes. The introduced changes do not alter schemas, persisted formats, configuration, retention policy, or public SDK entrypoints. Public docs: docs/reference/database-schemas/worker-access.md. (docs/reference/database-schemas/worker-access.md:746, 3a7e1ade8de4)

Likely related people:

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

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 (6 earlier review cycles)
  • reviewed 2026-10-06T01:47:12.723Z sha 9611fbd :: needs maintainer review before merge. :: none
  • reviewed 2026-10-06T11:03:11.331Z sha 9611fbd :: blocked before merge. :: none
  • reviewed 2026-10-06T11:23:32.324Z sha 9611fbd :: blocked before merge. :: none
  • reviewed 2026-10-06T11:49:16.968Z sha 29c4394 :: needs changes before merge. :: none
  • reviewed 2026-10-06T12:27:21.588Z sha 2eb513b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-06T12:52:39.193Z sha 3a7e1ad :: needs changes before merge. :: none

Merge current main into the inactive private-row and expiry composition, retaining history encoding and identity repairs, accepted persistence authority, typed ordered-read invalidation, and indexed row lookup. Retry private-row preparation before consumption when an initially missing row acquires a placement; add an actor-boundary regression. Production incognito acquisition remains host-owned.
@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Keep unbound reads in their original synchronous consumer frame instead of rereading projection readiness after completion. Retain actor-bound preparation and cleanup fences. Add deterministic ready/exact placement regressions; the chat membership product test failed five times on the prior candidate and passed five times on its main baseline, then passed locally with this repair.
@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Merge main after P7k landed. Preserve its root-only acquisition authority and expanded claim/store-snapshot operations together with M2 settled snapshots, retained private-row batches, and native synchronous completion. Production actor acquisition remains inactive.
@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 7855489 into main Oct 6, 2026
144 checks passed
@steipete
steipete deleted the dbasync/incogp7m2 branch October 6, 2026 16:07
@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
…inactive) (openclaw#165901)

* refactor(sessions): compose incognito history and compute facades

Compose shared actor bindings through history, Memory, usage, and reconciliation while production routing stays host-owned. Preserve FIFO read acceptance and reject stale or revoked results after cleanup. Native routes remain for the atomic P7 activation.

* refactor(sessions): compose inactive private rows and expiry

Prepare P7m2 shared-binding private presentation, retained lookup, no-disk maintenance exclusions, and all-actor expiry orchestration. Preserve production native routes until atomic activation; fence actor, ACP, durable and placement facts through cleanup without replaying consumers.

* fix(sessions): preserve prepared private row ownership

Keep child provenance and captured absence authoritative through presentation, and preserve captured incognito paths across environment changes. Validate stored and sharing facts at the same retained boundary; production routing remains inactive.

* style(sessions): avoid shadowing in private row composition

* refactor(sessions): reuse captured lookup agent identity

* fix(sessions): preserve native row completion before topology changes

Keep unbound reads in their original synchronous consumer frame instead of rereading projection readiness after completion. Retain actor-bound preparation and cleanup fences. Add deterministic ready/exact placement regressions; the chat membership product test failed five times on the prior candidate and passed five times on its main baseline, then passed locally with this repair.
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

docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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