Skip to content

refactor(core): deslop remaining small core subsystems - #164153

Merged
steipete merged 4 commits into
mainfrom
deslop/l324-simplify-small-core-subsystems-b2-20261002
Oct 3, 2026
Merged

steipete merged 4 commits into
mainfrom
deslop/l324-simplify-small-core-subsystems-b2-20261002

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Core subsystems retain private forwarding layers, duplicated projections, and unused branches that obscure their actual owners.

User Impact

The refactor preserves configuration, persisted data, protocol shapes, output text, and public SDK declarations. Gmail setup now also handles Python executable paths containing spaces.

Why This Change Was Made

  • Canvas directly creates the HTML widgets its sole production caller supplies; existing document manifests and serving remain readable.
  • Doctor prepares fixed health-check metadata once and calls lazy runtime owners directly. Model selection reuses provider matching and drops test-only switches.
  • Workshop replaces a single-implementation dependency object with its concrete evaluation/query owners. Other skill and system-agent paths reuse prepared facts and remove private result wrappers.
  • ACP, daemon, process, and proxy capture remove redundant settlement/storage references, private forwarders, and duplicate projections while preserving cancellation, fencing, FIFO, and cleanup.
  • Meeting, fleet, logging, web fetch, interactive replies, shared parsers, and utilities use direct projections and canonical helpers while retaining their public contracts.

Overlapping node configuration, exec-policy, phase-type, and installer cleanups were excluded because #164058 already landed them. Workboard's browser consumes the shared boolean module through the SDK; its generated manifest is refreshed for the resulting bundle hash.

Fixes found along the way

Gmail setup split a resolved Python executable on whitespace. Its existing regression now uses a path containing Python Runtime and checks the exact CLOUDSDK_PYTHON plus caching. The broker admission fixture now installs fake timers after module loading and before bootstrap, preserving every admission and zero-timer assertion. Current main's Doctor snapshot fixture repair is retained; our duplicate repair was dropped during rebase.

Evidence

  • Linux AWS proof before CI corrections: 2,362 tests passed across 120 focused files, one existing skip; 549.49 seconds across 16 routed shards.
  • Final rebased correction: targeted lint, core typecheck, both import-cycle checks (zero), and 318 tests across 11 files passed. Focused wrapper wall time: 202.06 seconds.
  • Broker fixture: 20 fresh-process runs (40 cases) passed; an injected bootstrap timer was caught by the unchanged zero-timer assertion. These repeats used the authorized macOS fallback under nice -n 15 after Testbox queueing and AWS sync timeout; they are not Linux repeat evidence.
  • Gmail negative control fails on the original source for the intended resolution/caching assertion; all 23 repaired Gmail setup tests pass.
  • Native Workboard asset generation and assertion-baseline regeneration completed. Independent review of the CI corrections reported no actionable P0/P1 findings.
  • After the baseline-only rebase, both cycle checks and the schema-defaulting/validation suites passed again; Workboard’s regenerated hash remained unchanged.
  • Exact-head hosted CI remains the final gate. The first run exposed the lint and generated-manifest issues repaired in this update.

The final run has one remaining failing job: UI E2E 1/9. chat-subagent-waiting.e2e.test.ts:201 uses a global text locator after navigation; it matches two cached-pane copies of “Handed off and waiting.” This test and its waiting-notice/pane rendering are unchanged by this PR; the changed UI fixture belongs to the separate real-Gateway project.

Unrelated PR #164221’s current run fails the same test at line 250 with an extra sessions.list request (expected 2, got 3). This corroborates instability in the new fixture but is a different assertion; exact failure-mode pre-existence is not yet proven. No admin merge has been attempted.

Final production delta: −997 lines (tests and generated assets excluded). BELOW-1000 final remainder after CI corrections; the full current large-file coverage log follows.

Coverage: all 415 production files over 200 lines, sorted by current size
lines	file	status	reason
1555	src/logging/redact.ts	READ	Distinct source, model-visible, structured-field and serialized redaction phases preserve exact masks and provenance; no safe remaining collapse.
1308	src/wizard/i18n/locales/en.ts	READ	Read all static localized copy and interpolation keys; no control-flow complexity to remove safely.
1261	src/flows/model-picker.ts	READ	Removed forwarding helpers and redundant preferred-provider pre-scan; retain catalog ordering, auth and lazy discovery boundaries.
1257	src/wizard/i18n/locales/zh-TW.ts	READ	Read all static localized copy and interpolation keys; no control-flow complexity to remove safely.
1255	src/wizard/i18n/locales/zh-CN.ts	READ	Read all static localized copy and interpolation keys; no control-flow complexity to remove safely.
1206	src/interactive/payload.ts	READ	Keep: public SDK legacy adapters, typed controls, bounded charts/tables and fallback continuation markers preserve wire and rendered output contracts.
1075	src/node-host/invoke-system-run.ts	READ	Removed unreachable companion fallback; duplicate phase-type cleanup left to PR164058.
1067	src/status/status-message.ts	READ	Plain-text and native-table outputs intentionally differ in curation, context meter and labels; shared model/auth facts already prepared once.
1053	src/logging/diagnostic.ts	READ	Logging handlers retain explicit field allowlists; heartbeat recovery generations, progress clocks and ordered emissions are lifecycle contracts.
1025	src/wizard/setup.finalize.ts	READ	Service installation, temporary Gateway teardown and dashboard readiness encode separate live contracts.
979	src/flows/doctor-core-checks.ts	READ	Distinct diagnostics retain wording and shipped selectors; dependency seams serve boundary tests.
966	src/system-agent/verified-inference.ts	READ	Consolidated embedded raw-profile and resolved-provider auth lookup; retained OAuth/harness owners, artifact and fingerprint fences.
965	src/flows/channel-setup.ts	READ	Picker consumes options directly; lifecycle leases, setup replay and post-write hooks remain unchanged.
960	src/logging/diagnostic-stability-bundle.ts	READ	Persistence readers retain validation labels/order, private-field filtering and unknown-version rejection; prior batch already shared field copying.
893	src/shared/json-schema-defaults.ts	READ	Shared recursion context and ref checks; preserve resource identity, keyword order, reference cycles and applicator convergence.
805	src/fleet/backup.runtime.ts	READ	Archive budgets, lease probes, publication, generation pinning and interrupted restore recovery are distinct durable contracts; no sound additional restructuring found.
800	src/logging/diagnostic-stability.ts	READ	Prior batch consolidated field copies; event-specific data projection, exporter custody and ring-buffer selection have distinct contracts.
788	src/shared/text/assistant-visible-text.ts	READ	Retained quote-aware, code-aware and streaming sanitizer contracts; public SDK trim wrappers remain exported.
786	src/fleet/service.runtime.ts	READ	Simplified list to carry each record with its resolved state; removed unavailable-inspection DTO construction and impossible missing-index fallback.
785	src/logging/diagnostic-support-export.ts	READ	Applied: one export writer replaces private artifact handoff DTO and repeated defaults; retained option snapshot, path resolution and redaction ordering.
758	src/system-agent/operations-execution-helpers.ts	READ	Persistent-operation owner, exact live-test/config fences and secret write recovery have distinct contracts.
754	src/process/supervisor/service-child-relay-host.ts	READ	0
750	src/system-agent/setup-inference-turn.ts	READ	Probe isolation, plugin generation ownership, activation revalidation and persisted-route verification retained.
747	src/skills/runtime/refresh.ts	READ	Observation scopes, reentrant subscriber replacement and retirement are required lifecycle ownership.
745	src/process/command-queue.ts	READ	2
744	src/proxy-capture/runtime-owner.ts	READ	Capture sessions, lexical maintenance claims and sync/async stores have distinct released lifetimes; retained admission and terminal settlement contracts.
743	src/node-host/node-worker-launch-store.kernel.ts	READ	Physical slot admission, replay identity, process custody and terminal pruning share synchronous transactions; no safe collapse of checks.
739	src/skills/security/scanner.ts	READ	Heuristic provenance, bounded findings, scan budgets and identity cache have independent security contracts; unchanged.
737	src/process/supervisor/adapters/child.ts	READ	0
736	src/process/exec-runner.ts	READ	0
735	src/fleet/containers.runtime.ts	READ	Remaining validators normalize real Docker/Podman output; repeated profile admission surrounds async environment staging and was retained.
732	src/flows/doctor-health.ts	READ	Maintenance admission, migration refusal, deferred warnings and recovery custody preserve update ordering.
730	src/acp/translator.prompt-stream.ts	READ	Keep: predecessor admission, cancellation barriers, terminal stream recovery and prompt ownership each guard a different asynchronous race.
729	src/daemon/schtasks-process.ts	READ	0
728	src/node-host/invoke.ts	READ	Removed obsolete host fallback wiring; dispatcher retains boundary-specific error mapping and result fences.
728	src/node-host/node-worker-workspace.ts	READ	Retention/cancellation/replacement admission and public synchronous workspace capability require separate lifetime paths.
727	src/node-host/node-worker-supervisor.ts	READ	Logical turn admission, physical worker reuse, retention and cancellation have distinct lifetimes; shutdown joins all accepted work.
726	src/meeting-bot/session-runtime.ts	READ	Join/leave fencing, runtime settlement and tab custody are documented lifecycle contracts.
724	src/daemon/inspect.ts	READ	8
721	src/process/supervisor/supervisor.ts	READ	8
717	src/fleet/service-support.runtime.ts	READ	Shared directory list now drives parallel preparation and ownership without repeating paths; checkpoints and recovery retain required ownership boundaries.
708	src/daemon/schtasks-control.ts	READ	0
708	src/wizard/setup.ts	READ	Prompt replay, migration promotion and config commits retain separate owner boundaries.
707	src/logging/logger.ts	READ	Applied: merged explicit trace lookup and provenance selection; preserve binding-before-positional-before-active priority.
699	src/logging/diagnostic-run-activity.ts	READ	Exact run-generation ownership, cutoff watermarks and alias merging prevent stale diagnostic events from reviving retired work.
691	src/process/supervisor/service-child-group-anchor.ts	READ	0
690	src/node-host/runtime.ts	READ	Preparation and active connection lifecycle separate registry readiness, duplex input, update admission and retryable cleanup.
690	src/process/gateway-work-admission.ts	READ	0
689	src/hooks/install.ts	READ	Keep: package/bare/archive/npm paths already share publication; forward projection retains transaction metadata and install policy boundaries.
687	src/acp/control-plane/manager.core.ts	READ	Changed: replaced duplicate native-promise settlement bookkeeping while retaining queued-only abort and normalized operation errors.
687	src/skills/loading/skill-root-discovery.ts	READ	Containment, grouped-depth, entry budgets and stable discovery ordering are real behavior/security contracts.
686	src/daemon/systemd-service-files.ts	READ	0
685	src/node-host/node-worker-transfer-client.ts	READ	Manifest integrity, checkpoint/overlay staging and transfer error provenance are distinct contracts.
681	src/system-agent/operations-execute.ts	READ	Persistent dispatch already uses canonical apply owner; remaining branches differ in output and approval behavior.
681	src/wizard/clack-navigation-prompts.ts	READ	Renderers preserve distinct Clack submit/cancel/error bytes and guides; autocomplete already consolidated.
680	src/node-host/node-worker-child-lifecycle.ts	READ	Journal start gate, turn settlement and physical extinction are independently observable; idle-generation invalidation prevents late reuse.
680	src/utils/directive-tags.ts	READ	Retained native-slot ownership, linear scans, Markdown boundaries, whitespace and streamed-prefix contracts.
679	src/system-agent/setup-inference-credentials.ts	READ	Saved/new/guided credentials have different consent, projection and persistence lifetimes.
678	src/flows/search-setup.ts	READ	Credential preservation, provider install and disabled-plugin state have distinct side-effect boundaries.
676	src/meeting-bot/status-call-source.ts	READ	Browser routing and caption identity state protect live ownership, media replacement and correction semantics.
674	src/meeting-bot/node-host.ts	READ	Bounded audio retention, output generations and drain/termination settlement are exercised contracts.
663	src/meeting-bot/chrome-transport.ts	READ	SIMPLIFIED: reuse launch parameters across browser open/recovery and rollback; remove forwarding aliases.
659	src/flows/doctor-health-contribution-runners.config.ts	READ	Config CAS, includes, roster commits and deferred repair settlement remain ordered.
659	src/mcp/channel-bridge.ts	READ	Keep: retained event cursors, aborted waiters, per-approval TTLs, authenticated permission matching and Gateway startup each have distinct lifetimes.
652	src/node-host/mcp.ts	READ	Catalog refresh and session reconnect need distinct serialization; descriptor bounds and published-tool dispatch share the current session owner.
651	src/status/status-text.ts	READ	Preserve prepared model-owner borrowing, auth-label precedence, optional usage deadlines and lazy runtime discovery boundaries.
649	src/process/spawn-broker/host.ts	READ	0
646	src/canvas/widget-tool.ts	READ	Narrowed its document creation call to direct HTML input; remaining presenter/grant/source routing has observable ordering and prompt contracts.
644	src/wizard/setup.migration-import.ts	READ	Freshness, staged import and post-promotion activation are separate durability phases.
642	src/flows/doctor-health-contributions.ts	READ	Replaced artificial contribution option envelope with consumed label.
639	src/daemon/schtasks-runtime.ts	READ	28
638	src/proxy-capture/runtime.ts	READ	Removed obsolete synchronous prepared callback and one-use async preparation forwarder; reused admitted fetch dispatch, parsed URL facts and text redaction.
638	src/system-agent/chat-turn-router.ts	READ	Approval/wizard/assistant routing retains host authority and distinct handoff behavior.
637	src/logging/diagnostic-support-redaction.ts	READ	Prior batch combined recursive sanitizers; private fields, path handling and public diagnostics have intentionally distinct masks.
637	src/system-agent/setup-inference-activate.ts	READ	Staging, credential activation, config undo and exact-owner live probes retain distinct transactional boundaries.
634	src/system-agent/chat-wizard-host.ts	READ	Wizard descriptor sharing already exists; tiny answer helper would add more abstraction than it removes.
633	src/daemon/schtasks-layout.ts	READ	0
632	src/wizard/session.ts	READ	Acknowledgement, progress delivery, cancellation fencing and cleanup are distinct protocol contracts.
631	src/system-agent/greeting.ts	READ	Single-flight and CAS cache ordering plus exact advisory output retained; generic timeout changes timer ref semantics.
625	src/meeting-bot/realtime-engine.ts	READ	Provider output ownership, consultation cancellation and retryable cleanup have distinct responsibilities.
624	src/skills/runtime/remote.ts	READ	Pairing-generation fences, probe coalescing and reconnect backoff preserve live node ownership.
620	src/daemon/systemd-scope.ts	READ	0
618	src/logging/redact-json.ts	READ	Coordinate transforms maintain encoded/decoded source spans and derived message masks; repeated searches use different inclusive boundaries.
617	src/skills/loading/workspace-skill-loader.ts	READ	Local/remote tier loading differs in source authority, library pin admission and cache invalidation.
616	src/system-agent/setup-apply.ts	READ	First-agent creation, verified route preservation and postcommit service/workspace effects retain separate guards.
615	src/acp/control-plane/manager.turn-runner.ts	READ	Keep: accepted-turn ownership, model authorization, cancellation publication, failover gating and final handle cleanup require distinct phases.
613	src/daemon/launchd-runtime.ts	READ	0
601	src/system-agent/setup-inference-core.ts	READ	Mostly public setup types and exact error contracts; cancellation/redaction preserve distinct guarantees.
599	src/skills/lifecycle/install.ts	READ	Equivalent installer simplification landed in PR164058; removed our duplicate patch.
598	src/hooks/message-hook-mappers.ts	READ	Keep: explicit input/event/context projections preserve public field presence, remote media staging and trace redaction contracts.
596	src/process/supervisor/service-child-windows-job-anchor.ts	READ	0
595	src/node-host/node-worker-bundle-installer.ts	READ	Archive integrity, staged publication rollback, namespace serialization and retention acknowledgment each protect current bundle consumers.
594	src/flows/doctor-core-checks.runtime.ts	READ	Collapsed boxed model read results and one-use catalog order wrapper; retained getter/proxy diagnostics.
593	src/daemon/runtime-paths.ts	READ	3
590	src/daemon/systemd-install.ts	READ	0
586	src/skills/lifecycle/clawhub-install-core.ts	READ	Unified archive trust/download dispatch after resolution; distinct from PR164058 integrity-normalization/typing changes and retained by coordinator direction.
585	src/pairing/setup-code.ts	READ	Retained URL source precedence, mobile TLS/access downgrade, issued bootstrap authority and decode validation contracts.
583	src/daemon/schtasks-install.ts	READ	6
583	src/node-host/runner.ts	READ	Enrollment, endpoint persistence, launcher readiness and shutdown keep distinct credential and native-resource responsibilities.
583	src/status/summary.ts	READ	Read-only roster/session projection preserves agent attribution, bounded windows and immutable aggregate copies.
582	src/system-agent/operations-parse.ts	READ	Private config parsers now return the canonical operation union directly; removed validity DTOs and forwarding projections.
567	src/daemon/systemd-definition-mutation.ts	READ	0
565	src/acp/event-ledger.ts	READ	Keep: prepared connection-scoped queries maintain sequence and byte aggregates inside synchronous mutations; retention trims invalidate completeness, and only eligible replays decode history.
564	src/logging/redact-patterns.ts	READ	Pattern variants encode credential grammar and intentional prose/source exemptions; scanner state avoids quadratic matching.
556	src/meeting-bot/browser-controller.ts	READ	SIMPLIFIED: inline one-use tab selector and derive inspection parameters from recovery owner.
556	src/system-agent/tui-backend.ts	READ	Backend protocol projection, queued failure retirement and interactive handoff ownership remain distinct.
555	src/process/spawn-broker/resource-server.ts	READ	0
554	src/boards/sqlite-board-codec.ts	READ	Persisted manifest parsing and grant semantics support current stored shapes; no safe removal of normalization or authority projection found.
552	src/proxy-capture/store.kernel.ts	READ	Shipped path-based and shared SQLite SDK stores intentionally differ in transactions, schema and blob custody; preserved those contracts.
550	src/system-agent/config-redaction.ts	READ	Unknown-owner, dynamic-key, schema-hint and malformed-config rules preserve secret boundaries.
548	src/skills/workshop/apply-transition.ts	READ	Removed single-implementation injected services; imports actual evaluation/query owners after stale reconciliation cutover.
542	src/logging/subsystem.ts	READ	File, structured console and plain console sinks differ in metadata, redaction and stack capture; dispatch already shares one owner.
528	src/skills/lifecycle/clawhub-status.ts	READ	Strict installed provenance and best-effort inventory/card projections intentionally differ.
528	src/skills/workshop/store.ts	READ	Create/revise/read/recovery paths differ in locks, receipts and generation cleanup; no sound broad consolidation.
527	src/flows/doctor-health-contributions-initial.ts	READ	Descriptors identify shipped checks or ordered migrations; no unsupported pre-July path found.
527	src/meeting-bot/runtime-facade.ts	READ	Facade methods preserve per-agent projection, requester custody and plugin hook contracts.
525	src/daemon/launchd-service-files.ts	READ	0
523	src/meeting-bot/participation.ts	READ	Replay claims and fresh owner checks protect action authorization across awaits.
523	src/wizard/setup.migration-stage.ts	READ	Isolated provider writes, projection and rollback receipts protect user data.
523	src/worker/worker-connection.ts	READ	Read current RPC simplification from 9a9091c0af9 plus existing lifecycle owner; remaining state controls admission, replay, heartbeat and fencing.
516	src/process/spawn-broker/worker.ts	READ	0
512	src/boards/sqlite-board-store.kernel.ts	READ	Batched SQL mutations, schema admission and exact invalidation remain necessary; no schema/security changes made.
508	src/process/supervisor/service-child-windows-job-native.ts	READ	0
502	src/logging/diagnostic-stuck-session-recovery.runtime.ts	READ	Run-handle and reply-only recovery use different backlog, maintenance and terminal-outcome guards; preserve side-effect fencing.
497	src/daemon/service-definition-backup.ts	READ	0
496	src/meeting-bot/transcripts-bridge.runtime.ts	READ	Capture and subscriber queues own distinct lifecycle and delivery ordering boundaries.
495	src/flows/channel-setup.status.ts	READ	Removed contribution envelope/source classification; returns sanitized options directly.
495	src/proxy-capture/proxy-server.ts	READ	Inlined one-use recorder factory into server lifetime and derived truncation from existing byte counters.
485	src/wizard/setup.migration-promotion.ts	READ	Journal recovery and filesystem alias/disjointness checks protect current migrations.
481	src/node-host/node-worker-container-engine.ts	READ	Docker and Podman target pinning differ; label ownership and post-removal observation preserve authoritative workload identity.
480	src/node-host/connection.ts	READ	Optional publication coalescing preserves latest desired values through ABA, rejection, uncertain timeout and reconnect generations.
475	src/skills/runtime/resources.ts	READ	Retained catalog bytes, file-host authority, bundle validation and locked materialization preserve user flows.
473	src/acp/server.ts	READ	Keep: bounded tee monitoring preserves pre-hello stdin and EOF; retryable shutdown retains cleanup ownership, drains agent state before Gateway/database close, and SDK ordering normalization has a narrow handshake contract.
473	src/flows/doctor-tool-schema-runtime.ts	READ	Read-only MCP inspection separates auth scopes, retained resources and cleanup failures.
470	src/decisions/provider-host.ts	READ	Provider health generation, reload pause, consumer cancellation and physical settlement are independent authority contracts; diagnostic wrapper owns final outcome logging.
465	src/daemon/service-types.ts	READ	0
462	src/daemon/launchd-lifecycle.ts	READ	0
461	src/skills/lifecycle/clawhub-store.ts	READ	Synchronous diagnostics, asynchronous tracking and rollback publication have distinct file contracts.
460	src/process/exec-spawn.ts	READ	0
459	src/flows/doctor-health-contributions-final.ts	READ	Multiple checks per startup-channel contribution are real consumers.
458	src/system-agent/setup-inference-detect.ts	READ	Partial discovery budget, provider visibility and saved-profile selection are documented behavior.
457	src/skills/library/bundle.ts	READ	Portable path checks, immutable revision integrity and staging durability retained; canonical fsync suppression differs.
454	src/logging/diagnostic-memory.ts	READ	Memory thresholds distinguish Node/Bun/native limits; growth-floor history and SDK compatibility inputs are named contracts.
454	src/system-agent/inference-route.ts	READ	Exact authored/runtime route projections and model/profile alias ownership retained.
445	src/logging/logger-file-transport.ts	READ	Async batching and synchronous exit rescue have distinct short-write and in-flight replay constraints.
441	src/pairing/pairing-store.ts	READ	Retained account-scoped approval, TTL/cap sorting, normalization, transaction and adapter contracts.
437	src/system-agent/agent-turn.ts	READ	Inlined sole-use workspace result DTO; shared runner inputs and identical artifact/workspace failure boundary.
434	src/boards/sqlite-board-store.ts	READ	Writer admission and cleanup outcomes retain separate success/uncertain/failure semantics; no sound additional simplification found.
434	src/skills/discovery/status.ts	READ	Inventory/readiness share requirements owner; detailed projection and install preference behavior differ.
433	src/meeting-bot/platform-adapter.ts	READ	Public SDK adapter factories retained; parsing normalizes external browser payloads.
433	src/node-host/node-worker-workspace-processes.ts	READ	Foreground results and persistent preview processes have different output and cancellation contracts; workspace custody waits for extinction.
431	src/daemon/service-audit.ts	READ	0
431	src/daemon/service.ts	READ	0
428	src/meeting-bot/session-transcript-store.ts	READ	Cursor and delivery state preserve retained indices and undelivered captions.
427	src/node-host/node-worker-workspace-quiescence.ts	READ	Watchdog lease controls outlive observation cancellation; nonce recovery and retained workspace custody require separate completion state.
426	src/boards/board-store.ts	READ	Manual snapshot cloning differs from layout projection and preserves full snapshots; retained existing semantics instead of speculative clone rewrite.
419	src/skills/lifecycle/workspace-skill-write.ts	READ	Prepare/apply/restore use distinct source and publication ordering; SKILL.md remains activation marker.
417	src/utils/usage-format.ts	READ	Inlined one-use pricing index factories and option bags; retained identity/order invalidation and pricing-source precedence.
416	src/acp/control-plane/manager.runtime-handle-ensure.ts	READ	Keep: backend-owned persisted identity, fresh-session retry and final control-binding admission protect current runtime handles.
416	src/daemon/service-audit-systemd.ts	READ	0
416	src/process/spawn-broker/resource-host.ts	READ	0
415	src/daemon/service-env.ts	READ	0
413	src/daemon/systemd-peer-native.ts	READ	0
412	src/skills/runtime/workspace-worker.ts	READ	Native typed operation adapters and persistent publication checkpoints preserve remote ownership.
411	src/web-search/runtime.ts	READ	Web-search: explicit/configured/runtime selection and credential-aware fallback have distinct authority and provider loading semantics.
410	src/daemon/launchd-foreign-jobs.ts	READ	0
410	src/flows/bundled-health-checks.ts	READ	Plugin-owned lazy registration and snapshot policy encode admission contracts.
410	src/wizard/setup.plugin-config.ts	READ	Scalar/array text prompts share unchanged-value detection and write preparation.
408	src/acp/translator.session-lifecycle.ts	READ	Changed: new/load/resume share the ordered snapshot/commands publication and response projection; replay/record flags unchanged.
405	src/status/status-plugin-health.ts	READ	Prior batch shared bounded sections and dedupe; runtime vs installed provenance and per-category suppression are required.
404	src/acp/control-plane/runtime-options.ts	READ	Keep: strict write validation differs from tolerant persisted normalization; own undefined clears fields, alias resolution follows advertised keys, and model replay preserves still-valid pending thinking selections.
401	src/projects/project-clone-runtime.ts	READ	Isolated refresh borrows objects without admitting local branches to transport; Git environment, ref and pinned-commit validation are ownership contracts.
401	src/worker/inference-stream.runtime.ts	READ	Different event signatures and tool argument completion need distinct projection branches; replay fitting and terminal errors preserve bounded wire behavior.
399	src/skills/lifecycle/upload-store.ts	READ	Inlined sole-use database options projection; SQLite implementation import is now type-only.
395	src/proxy-capture/store.sqlite.ts	READ	Removed parallel WeakMap state lookup; write closure retains constructor database/env directly, preserving transaction owner and SDK overloads.
394	src/wizard/setup.inference-verification.ts	READ	Credential replacement needs verification, activation and fresh owner checks after awaits.
392	src/acp/runtime/session-meta-write.ts	READ	Keep: retained dual-database identities, nonce/stage admissions, callback decisions, separate entry settlement, and receipt-based publication prevent stale control writes and unconfirmed notifications.
392	src/hooks/gmail-watcher.ts	READ	Keep: process-group settlement, bounded stderr drain, bind retry limits, and scheduler shutdown are distinct lifecycle contracts; shared watch-start execution offers no worthwhile net reduction.
391	src/skills/library/store.ts	READ	Existing schema and actor/revision authority ownership retained; no database semantics changed.
390	src/daemon/systemd-exec.ts	READ	0
389	src/system-agent/hosted-setup.runtime.ts	READ	Hosted setup already has canonical write owner; memory import has separate completion/audit semantics.
386	src/acp/control-plane/manager.cancel-session.ts	READ	Keep: captured accepted turns, active-turn cancellation, and reconstructed session cancellation have different authority and settlement owners; successor fencing and uncertain-RPC deduplication require separate phases.
384	src/daemon/service-state.ts	READ	0
384	src/system-agent/overview.ts	READ	Inlined sole-caller config/Gateway text wrappers without changing startup bytes.
383	src/process/exec.ts	READ	5
383	src/worker/embedded-agent.runtime.ts	READ	Resource materialization, local tool teardown and transcript settlement must finish before terminal ACK; named hooks retain separate owners.
382	src/fleet/doctor.runtime.ts	READ	Each diagnostic has a distinct runtime or filesystem contract; result abstractions would add machinery without simplifying checks.
380	src/skills/loading/plugin-skills.ts	READ	Admitted roots, host symlink publication and plugin cache lifetime preserve source identity.
377	src/meeting-bot/plugin-entry.ts	READ	Gateway/tool paths retain distinct trusted caller and error projection contracts.
374	src/wizard/setup.app-recommendations.ts	READ	Offer persistence separates durable skills from plugin config commits; explicit consent remains.
373	src/skills/workshop/service.ts	READ	Deleted dependency object and forwarding apply wrapper; existing public apply export aliases the actual owner.
371	src/shared/text/text-projection.ts	READ	Retained incremental append provenance, replacement invalidation and duplicate paragraph/code protection.
369	src/skills/workshop/service-evaluation.ts	READ	Capture/evaluate/commit fences and evaluator-result normalization preserve user-visible contracts.
369	src/system-agent/setup-app-recommendations.ts	READ	Catalog precedence, bounded search and model match validation keep observable discovery behavior.
368	src/skills/workshop/service-propose.ts	READ	Create/update already share pending-proposal construction; target and patch preconditions differ.
366	src/system-agent/plugin-artifact.ts	READ	Artifact review leases, exact bytes and approved import retention protect live plugin activation.
365	src/daemon/launchd-plist.ts	READ	0
365	src/wizard/setup.shared.ts	READ	Delta writes preserve explicit nulls, CAS snapshots and pending install records.
364	src/skills/library/service.ts	READ	Library publication/read/mutation require current actor and revision checks around durable and filesystem effects.
362	src/daemon/service-layout.ts	READ	4
361	src/daemon/launchd-stop.ts	READ	0
361	src/wizard/setup.model-auth.ts	READ	Cold skip path and provider retry preserve staged credentials and explicit selection.
355	src/worker/launch-descriptor.ts	READ	Descriptor schemas validate untrusted own-key, authority and paired field shapes; no validation-only API safely removed.
354	src/node-host/node-worker-supervisor-recovery.ts	READ	Replacement supervisor recovery preserves released process-group versus anchor/native-owner contracts and durable extinction evidence.
353	src/worker/worker.runtime.ts	READ	Removed fenced-reason revalidation already guaranteed by WorkerConnectionState; environment restoration, abort grace and fence result shape stay unchanged.
352	src/hooks/gmail-ops.ts	READ	Keep: setup registration fails hard while runtime renewal logs and continues; configuration provisioning and signal-owned service startup cannot share one failure policy.
352	src/node-host/node-worker-workspace-identity.ts	READ	Canonical path containment, generation identity and retained manifest aggregation protect external requests and destructive cleanup.
351	src/meeting-bot/realtime-agent-engine.ts	READ	STT/TTS flow differs from bidi in turn events, echo handling and stop settlement.
350	src/skills/loading/workspace-skill-sync.runtime.ts	READ	Cache identity, source revisions and materialization cleanup preserve source/context stability.
349	src/process/spawn-broker/child.ts	READ	0
345	src/acp/runtime/session-meta-doctor.ts	READ	Keep: offline repairs compare exact current entry bindings, aliases, payloads, and maintenance authority before rekeying; plugin claims exclude retired roster owners and preserve conflicting rows.
345	src/meeting-bot/realtime-local-audio-transport.ts	READ	Process generation fencing and byte-stream logging remain necessary.
344	src/proxy-capture/store-readonly.ts	READ	Native query paths preserve borrowed-database error ownership; canonical Kysely execution has different corruption handling and cannot replace them blindly.
339	src/acp/translator.agent-events.ts	READ	Changed: phase-specific updates share one session/ledger emission; tool-state publication ordering and approval relay lifecycle preserved.
337	src/acp/event-mapper.ts	READ	Keep: bounded recursive location discovery preserves first-seen order and specific-line upgrades; prompt byte admission happens before joining, while resource/title escaping and text fallbacks serve distinct protocol fields.
337	src/hooks/bundled/session-memory/handler.ts	READ	Keep: manual and automatic rollover retain separate admission lifetimes, capture departing transcripts before mutation, and reserve provenance before exposing memory files.
336	src/hooks/gmail-setup-utils.ts	READ	Changed: preserve spaces in the Python probe realpath while retaining executable and supported-version checks; existing boundary regression expanded.
336	src/worker/worker-command.runtime.ts	READ	Managed IPC must distinguish input close, active turn, retained environment, background drain and profile cleanup; no dead state found.
335	src/daemon/launchd-system.ts	READ	0
333	src/daemon/schtasks-state-probe.ts	READ	0
333	src/node-host/plugin-node-host.ts	READ	Registry-scoped availability, invocation authority and disconnect cleanup preserve plugin API and resource ownership; lazy loader boundary retained.
332	src/skills/workshop/experience-review.ts	READ	Detached source/permission fences, transcript anchoring and outcome settlement retained.
331	src/meeting-bot/page-script-source.ts	READ	Session identity and finalized-caption fallback are required for SPA transitions.
329	src/logging/console.ts	READ	Console capture preserves caller receivers, native warning classification, trace stacks and EPIPE shutdown barriers.
328	src/wizard/clack-prompter.ts	READ	Navigation signal ordering, stdin cleanup and cancellation finalization prevent terminal races.
326	src/skills/runtime/refresh-state.ts	READ	Discovery, supporting files and semantic snapshot versions are distinct refresh contracts.
325	src/shared/pid-alive.ts	READ	Retained platform identity precision, native/ps fallback and PID reuse/liveness distinctions.
324	src/shared/store-writer-queue.ts	READ	Retained FIFO conflicts, keyed authority, reentrancy, cancellation and event-loop turn budgets.
323	src/daemon/service-update-authority.ts	READ	0
323	src/skills/lifecycle/clawhub-uninstall.ts	READ	Verified staging and tracking rollback retain separate ownership and failure settlement.
323	src/worker/embedded-agent-live.runtime.ts	READ	Live preview bounding, phase projection and terminal lifecycle publication preserve different wire shapes and durability ownership.
322	src/daemon/schtasks-install-files.ts	READ	0
322	src/skills/lifecycle/install-download.ts	READ	Pinned roots, body limits, archive publication and stage-specific failures retained.
322	src/system-agent/chat-engine.ts	READ	Queue/history/session authority and router/wizard forwarding serve actual ownership. (Independent full read: remaining_read worker.)
320	src/fleet/cell-profile.ts	READ	Profile validation and argument construction retain documented runtime and environment-file boundaries; no unused user controls.
320	src/shared/assistant-error-format.ts	READ	Retained provider error contracts and recent #163381 ownership; no overlap edit.
319	src/meeting-bot/status-prejoin-source.ts	READ	Media and caption ownership reconcile existing in-page plugin state.
318	src/node-host/invoke-agent-cli-claude-params.ts	READ	Unknown request parsing enforces node-local argv/env and resource bounds; framing preselection intentionally precedes full validation.
318	src/worker/worker-connection-frames.ts	READ	Fresh #163874 centralizes typed RPC dispatch; remaining full validators and payload bounds protect wire and authority boundaries.
316	src/system-agent/rescue-message.ts	READ	Deterministic persisted approval identity, TTL and restricted remote operations retained.
314	src/daemon/systemd-system.ts	READ	0
314	src/wizard/setup.gateway-config.ts	READ	Bind, Tailscale and secret-input branches represent supported configuration choices.
313	src/wizard/setup.migration-snapshot.ts	READ	Snapshot hashes and nested target locks establish current source/destination ownership.
312	src/logging/log-tail.ts	READ	Bounded read cursor and backward redaction contexts preserve rotation, partial-line and cross-record credential contracts.
312	src/meeting-bot/output-loopback-verifier.ts	READ	Waveform matching and bounded correlation history prove actual microphone injection.
309	src/boards/board-layout.ts	READ	Explicit widget projection strips runtime view-ticket/frame/sandbox fields; retained it after checking the full protocol schema.
309	src/utils/queue-helpers.ts	READ	Removed fixed private summary option and redundant settlement state; retain in-flight identity, overflow atomicity and debounce clocks.
308	src/skills/lifecycle/clawhub.ts	READ	Lifecycle lease and tracked/requested slug validation remain required at local/remote boundaries.
308	src/worker/node-workspace-protocol.ts	READ	Workspace operations have intentionally distinct exclusivity and byte limits; schema primitives are already shared.
307	src/skills/lifecycle/upload-store.kernel.ts	READ	Worker transaction admission and leased upload state transitions retain distinct phases.
306	src/meeting-bot/realtime-engine-support.ts	READ	Provider selection and event handling preserve public runtime contracts.
305	src/daemon/service-audit-schtasks.ts	READ	0
303	src/node-host/auto-update-install.ts	READ	Immutable generation staging, integrity validation and fallback generation preserve existing runnable bytes; launcher owns activation.
299	src/acp/client.ts	READ	Keep: default-versus-custom server identity controls environment stripping, Windows invocation owns platform adaptation, and startup failures plus interactive exit retain child-process cleanup and exit-status semantics.
299	src/node-host/node-worker-supervisor-commands.ts	READ	Canonical descriptor dispatch already shares unavailable and error projection; per-command parsing and authority requirements differ.
298	src/acp/control-plane/manager.runtime-controls.ts	READ	Keep: capability discovery and optional status refinement precede actor-fenced ordered control replay; accepted thinking changes persist even when later controls fail, while only narrowly identified unsupported controls are skipped.
298	src/skills/lifecycle/archive-install.ts	READ	Shared install owner already exists; policy, backup-state verification and hook dispatch retain separate boundaries.
298	src/skills/runtime/refresh-watch-registry.ts	READ	Subscriber generations and source-scope publication preserve reentrant watcher ownership.
296	src/acp/control-plane/manager.turn-stream.ts	READ	Keep: authoritative submission, terminal result, event delivery, and cleanup are independent boundaries; races retain backend settlement and pending delivery before closing idle streams or retrying.
296	src/node-host/node-worker-capacity.ts	READ	Durable capacity count, serialized publication and abort-bound waits prevent over-admission; idle reclamation retains cleanup custody.
296	src/projects/project-clone.ts	READ	Clone and checkout leases fence registration, refresh and deletion separately; uncertain writes deliberately retain files for recovery.
295	src/daemon/systemd-loaded-runtime.ts	READ	0
295	src/skills/loading/session.ts	READ	Agent session loader has separate public path/diagnostic semantics from bounded workspace discovery.
294	src/wizard/navigation-prompter.ts	READ	Replay signatures, sensitive-answer exclusion and nested navigation preserve boundaries.
293	src/wizard/setup.post-install-migration.ts	READ	Optional offers retain plugin ownership and distinguish preparation disposal failures.
288	src/hooks/gmail.ts	READ	Keep: runtime override precedence and platform-specific invocation are centralized; setup intentionally has different provisioning defaults, so merging its resolution would change behavior.
288	src/node-host/config.ts	READ	Equivalent loader consolidation landed in PR164058; removed our duplicate patch.
287	src/node-host/invoke-agent-cli-claude.ts	READ	UTF-8 output quota and terminal-result retention differ from stderr tail; prompt/resource cleanup stays with descendant extinction.
287	src/skills/workshop/service-query.ts	READ	Owns the existing stale reconciliation helper; removed the dependency back-edge into apply-transition.
286	src/meeting-bot/realtime-output-owner.ts	READ	Output backpressure, native clear settlement and response fencing are distinct state.
286	src/node-host/node-worker-transfer-http.ts	READ	Equivalent unreachable host-check removal landed in PR164058; removed our duplicate patch.
286	src/skills/lifecycle/workspace-types.ts	READ	Typed local/remote lifecycle contracts have live production consumers. (Independent full read: remaining_read worker.)
284	src/node-host/node-stream-transport.ts	READ	Socket/WebSocket splice preserves metadata-first ordering, bidirectional backpressure and close acknowledgment before invocation completion.
284	src/skills/loading/skill-root-loader.ts	READ	Canonical source projection and generated plugin-link loading retain distinct precedence/containment contracts.
282	src/meeting-bot/browser-session-control.ts	READ	Leave and transcript paths preserve session/tab ownership and diagnostic ordering.
282	src/skills/runtime/refresh-watch-targets.ts	READ	Watcher targets retain bounded symlink discovery and authority-parent identity.
281	src/logging/diagnostic-profile.ts	READ	Single profiler owner already shared; conflict refusal, live authority and cleanup uncertainty are required.
280	src/acp/control-plane/manager.types.ts	READ	Keep: shared discriminated resolutions and dependency types carry target identity, ephemeral authority, accepted-write settlement, actor fencing, and private control constraints across concept owners.
280	src/system-agent/assistant-prompts.ts	READ	Distinct stable prompt bytes retained; shared text already factored. (Independent full read: remaining_read worker.)
279	src/daemon/systemd-lifecycle.ts	READ	0
279	src/daemon/systemd-unit.ts	READ	4
279	src/node-host/node-worker-prepared-workspace.ts	READ	Registration verifies immutable preparation while exact bind replay preserves later session edits; durable retirement fences acquisition.
279	src/utils/delivery-context.shared.ts	READ	Retained route/account conflict isolation and canonical persisted delivery projections; public SDK shapes remain.
278	src/node-host/node-worker-turn-store.kernel.ts	READ	Turn receipt state derives from a separately owned physical launch; immutable replay and terminal settlement stay transactional.
278	src/shared/usage-aggregates.ts	READ	Retained distinct model/provider/creator/daily grouping and weighted latency semantics.
278	src/skills/lifecycle/source-install.ts	READ	Git/path acquisition already converges on one install owner; source validation and safe export differ.
277	src/daemon/launchd-install.ts	READ	0
277	src/hooks/internal-hooks.ts	READ	Keep: immutable dispatch snapshots preserve family-before-action ordering across awaited reloads; registration and context narrowing are already small independent operations.
277	src/meeting-bot/runtime-facade-types.ts	READ	Publicly reachable facade callback declarations restored exactly; private signature reuse would alter the SDK declaration closure.
277	src/status/status-plugin-health.runtime.ts	READ	Keep compact registry-only health distinct from installed full config inspection and async quarantine stores.
274	src/skills/runtime/remote-skills.ts	READ	Connection generation, remote naming and node-specific read-location contracts retained.
274	src/skills/workshop/experience-review-scheduler.ts	READ	Generation checks and rearming preserve asynchronous cancellation/replacement. (Independent full read: remaining_read worker.)
272	src/process/command-queue.capacity-groups.ts	READ	0
272	src/projects/project-registry.ts	READ	Selected checkout custody survives cancellation for rollback, while live effects revalidate registry identity; retained independent lifecycle guards.
271	src/meeting-bot/node-invoke-policy.ts	READ	External node commands require allowlisted payload projection and validation.
269	src/acp/runtime/session-meta-keys.ts	READ	Keep: canonical scoped keys and historical raw aliases have distinct lookup rules; lifecycle/session fences select valid rows, and bounded legacy reads retain deterministic precedence.
269	src/meeting-bot/plugin-config.ts	READ	Config defaulting and validation are public behavior and platform fallback contracts.
268	src/worker/worker-rpc-live-event-client.ts	READ	Speculative preview degradation and authoritative terminal replay require separate acknowledgement, generation and high-water state.
267	src/canvas/wrap.ts	READ	Stable HTML/bridge bytes implement theme, sandbox, activation, prompt and snapshot contracts; bytes unchanged.
266	src/meeting-bot/browser-audio-capture-source.ts	READ	Capture isolation, track replacement and mute restoration require live identity checks.
265	src/meeting-bot/browser-plugin.ts	READ	Descriptor supplies platform strings and preserves lazy CLI loading; no unused options found.
265	src/meeting-bot/runtime-probes.ts	READ	Bidi speech and caption probes observe different real completion criteria.
265	src/node-host/invoke-system-run-allowlist.ts	READ	Argv and shell authorization have different rewrite contracts; canonical approval owners already supply analysis and planned execution.
264	src/shared/dot-path.ts	READ	Retained CLI quoted-key provenance, JSON5 escape compatibility and prototype restrictions.
264	src/skills/runtime/session-snapshot.ts	READ	Cache hydration and refresh differ in preserved prompt bytes and waiter/source authority.
263	src/logging/diagnostic-argument-churn-activity.ts	READ	Sequence ordering and run-specific policy wait tokens prevent stale progress from resetting semantic-stall evidence.
262	src/skills/discovery/chat-commands.ts	READ	Sync SDK and async preparation differ in remote eligibility, cancellation and discovery timing.
261	src/daemon/hosted-stop.ts	READ	0
260	src/acp/control-plane/manager.runtime-options-commands.ts	READ	Keep: live mode/config effects differ from metadata-only update/reset authority; normalization and signature invalidation are already centralized in persistManagerRuntimeOptions.
260	src/wizard/setup.migration-finalize.ts	READ	Deferred receipts and acknowledgement retain recovery contracts.
259	src/daemon/program-args.ts	READ	0
259	src/proxy-capture/ca.ts	READ	Root and leaf certificate publication use separate locks, validity periods and private-key custody; no security contract changed.
259	src/skills/workshop/reconcile-transition.ts	READ	Recovery classifies previous/proposed/partial state and verifies rollback provenance. (Independent full read: remaining_read worker.)
259	src/system-agent/system-agent.ts	READ	CLI routing, immutable authority snapshot and runtime registry lifetime retained. (Independent full read: remaining_read worker.)
257	src/skills/library/selection.ts	READ	Sync SDK reads and worker preparation have distinct admission; pinned revision bytes remain stable.
256	src/daemon/systemd-user-transport.ts	READ	0
255	src/node-host/claude-skill-session.ts	READ	Invocation-owned framed Workshop calls, local MCP proxy and verified resource cleanup preserve request authority and bounded transport.
255	src/shared/device-bootstrap-profile.ts	READ	Retained token role/scope boundaries and explicit purpose profiles.
255	src/skills/library/import.ts	READ	Import/upload ownership, extraction bounds and publication receipts retained. (Independent full read: remaining_read worker.)
254	src/decisions/validation.ts	READ	Finite accessor-free JSON admission distinguishes invalid from oversized input, then validates provider answers; each pass owns separate constraints.
254	src/fleet/registry.kernel.ts	READ	Live database row conversion and lease fencing are necessary; read-side absent-table handling remains tied to noncreating admission.
253	src/skills/workshop/store-sqlite-event.ts	READ	Event bounds, pagination and persisted payload decoding retained. (Independent full read: remaining_read worker.)
251	src/logging/diagnostic-run-activity-recovery.ts	READ	Owner markers, independent embedded/diagnostic sequence cutoffs and deferred cleanup preserve current work.
250	src/acp/runtime/session-meta-write.native.ts	READ	Keep: native/incognito compatibility retains exact entry binding checks and legacy-source consumption; clear publishes before cleanup whereas set requires entry and cleanup settlement before authoritative publication.
250	src/flows/doctor-health-contribution-runners.state.ts	READ	Runners adapt distinct owners and carry migration receipts/update warnings.
250	src/skills/discovery/chat-command-invocation.ts	READ	Deleted unproduced/unconsumed optional inline result field; behavior/provenance unchanged. (Independent full read: remaining_read worker.)
250	src/wizard/setup.memory-import.ts	READ	Memory-only offers preserve partial-copy outcomes and pre-apply authority checks.
249	src/node-host/node-worker-prepared-workspace-store.kernel.ts	READ	One registration and session bind retain compare-and-set row ownership through mutation and retirement; no safe state collapse.
249	src/status/summary.runtime.ts	READ	Persisted model display deliberately differs from canonical alias parsing; lazy metadata boundary retained.
249	src/system-agent/assistant.ts	READ	CLI/embedded shared preparation already exists; terminal/cleanup/authority checks differ. (Independent full read: remaining_read worker.)
247	src/hooks/update.ts	READ	Keep: lifecycle authority and payload/record transaction ownership are explicit; inspected sibling configured.ts can instead reuse this files canonical readHookInstalls owner.
247	src/logging/diagnostic-session-state.ts	READ	Canonical alias merge, generation advancement and TTL/size eviction encode distinct state ownership.
245	src/daemon/systemd-service-identity.ts	READ	0
245	src/node-host/node-worker-launch-observation.ts	READ	Output consumption joins admitted journal writes; physical cleanup uncertainty retains deferred ownership without erasing a completed turn.
245	src/worker/node-supervisor-protocol.ts	READ	Wire validation preserves error strings, receipt byte limits and exact supervisor identity; no redundant runtime revalidation removed.
244	src/acp/approval-classifier.ts	READ	Keep: tool-name agreement across metadata/title/input fails closed; read requires explicit scoped paths while trusted search may omit paths, so apparently similar branches enforce different approval contracts.
244	src/node-host/auto-update.ts	READ	Policy is revalidated after download and idle wait; runtime pause and launcher handoff have separate ownership and recovery.
243	src/acp/control-plane/manager.runtime-resume-state.ts	READ	Keep: fresh retries occur only once before authoritative submission/output; missing-session recovery clears resume identity through the metadata owner, and explicit discard preserves the shell while reporting skipped backend preparation.
243	src/skills/workshop/tool-policy-diagnostic.ts	READ	Uses effective policy owner; synthetic tool provides the required input contract. (Independent full read: remaining_read worker.)
242	src/logging/redact-json-tokens.ts	READ	Token contexts preserve string encoding, nested array ownership and raw-line boundaries; factories would add more abstraction than remove.
242	src/process/spawn-broker/execa-worker.ts	READ	0
242	src/skills/runtime/tool-dispatch.ts	READ	Injected tool creation protects a dependency boundary; effective policy matches the normal tool owner.
242	src/system-agent/setup-inference-transition.ts	READ	Credential/config recovery uses separate owners and reverse-patch conflict guards. (Independent full read: remaining_read worker.)
241	src/daemon/launchd-restart-handoff.ts	READ	0
241	src/hooks/discovery.ts	READ	Changed: removed unused frontmatter invocation computation; live enablement remains in hook policy and public plugin input types remain unchanged.
241	src/system-agent/setup-inference-auth-options.ts	READ	Guided/manual/enable/install options use different ordering and metadata availability contracts.
241	src/system-agent/setup-model-selection.ts	READ	Factory prepares async dependencies for synchronous config transform callbacks. (Independent full read: remaining_read worker.)
240	src/logging/diagnostic-session-recovery-coordinator.ts	READ	Synchronous and promise recovery completions have observable lifecycle timing; retain both paths and clear-in-flight custody.
239	src/mcp/channel-shared.ts	READ	Keep: compact MCP projections and canonical persisted media extraction preserve public result shapes and channel routing fallback order.
238	src/shared/tailscale-status.ts	READ	Retained discovery/adoption distinctions and shipped SDK service formatter.
238	src/skills/runtime/env-overrides.ts	READ	Entry/snapshot adapters already share the environment owner; refcounts and restoration retained. (Independent full read: remaining_read worker.)
237	src/skills/discovery/command-specs.ts	READ	Name claiming and dispatch validation preserve command output and public SDK shape.
236	src/meeting-bot/plugin-shell.ts	READ	SDK facade remains used by plugins and public SDK compatibility exports.
236	src/process/supervisor/service-child-group-ownership.ts	READ	0
235	src/daemon/service-process-membership.ts	READ	0
235	src/process/supervisor/service-child-relay.ts	READ	0
234	src/daemon/systemd-peer.ts	READ	0
233	src/acp/translator.presentation.ts	READ	Keep: the select-option builder already centralizes wire shape; explicit option metadata retains different defaults and value sets, while usage is emitted only for fresh finite bounded counters.
233	src/acp/translator.session-updates.ts	READ	Keep: per-ledger mutation tails preserve emission order independently of client delivery; failures mark replay incomplete, stop revokes access, and complete replay readers share one fallback owner.
232	src/system-agent/setup-inference-credential-access.ts	READ	Staged materialization, conditional persistence and rollback each fence separate effects. (Independent full read: remaining_read worker.)
231	src/skills/lifecycle/upload-store.sqlite.ts	READ	Deleted sole-consumer options projection after moving it into upload facade; query/lease logic unchanged. (Independent full read: remaining_read worker.)
230	src/meeting-bot/session-durable-transcripts.ts	READ	Policy transitions and durable-finalization retries retain distinct owner state.
230	src/skills/workshop/store.worker.ts	READ	Shared write helper already centralizes transaction/commit authority. (Independent full read: remaining_read worker.)
229	src/canvas/documents.ts	READ	Removed unreachable path/URL/PDF/image/video/asset writer adapters and DTOs; sole production caller is inline show_widget, while existing manifest read/serving shape remains intact.
227	src/node-host/desktop-stream-command.ts	READ	Public node-local desktop config and private provider-attested desktop facts share one stream owner with distinct admission checks.
227	src/shared/worker-bundle-archive.ts	READ	Retained archive bounds, tar abort cleanup, path safety and extracted-manifest hash verification.
226	src/acp/runtime/session-meta-control.ts	READ	Keep: prepared control reads retain source and shared-database identity, initial lifecycle/owner binding, and fresh metadata joins; incognito needs a separate current native ACP-row assertion.
226	src/skills/workshop/store-record.ts	READ	Diagnostic validators serve Doctor; nullable parsers serve database reads. (Independent full read: remaining_read worker.)
225	src/worker/worker-connection-admission.ts	READ	Current compiled validators from #163874 preserve late-frame and generation fencing; opening/admission failures need distinct diagnostics.
224	src/flows/channel-setup.prompts.ts	READ	Owner consent and channel DM policy prompts are distinct public behavior.
224	src/process/exec-result.ts	READ	0
223	src/meeting-bot/session-cleanup-tracker.ts	READ	Per-session prepare/stop/rollback sequencing and retryable resource custody are required.
223	src/node-host/auto-update-compatibility.ts	READ	Schema equality and copied-database candidate preflight protect rollback without migrating live state; cleanup failures remain observable.
223	src/shared/async-work-scope.ts	READ	Retained tracked descendants, context ancestry, admission settlement and cancellation lifecycle.
222	src/process/windows-command.ts	READ	0
222	src/skills/workshop/proposal-bundle.ts	READ	Traversal and byte/integrity bounds plus symlink/hardlink rules retained. (Independent full read: remaining_read worker.)
220	src/canvas/widget-script-syntax.ts	READ	HTML/SVG raw-text scanner states preserve source offsets and JavaScript MIME rules; no redundant branch identified.
219	src/process/exec-termination.ts	READ	0
219	src/skills/loading/config.ts	READ	Eligibility and asynchronous binary preparation share the config evaluator; secret isolation and missing-binary invalidation retained.
219	src/worker/worker-rpc-inference-client.ts	READ	Retained operation state distinguishes in-flight reconnect, stream sequence, settlement and disposal; callbacks may throw and need owning rejection.
218	src/acp/runtime/session-meta.ts	READ	Keep: the native reader is retained for an explicit shipped SDK contract; batch joins preserve canonical/legacy precedence and 500-key limits, while migration writes publish all affected alias identities.
217	src/acp/client-helpers.ts	READ	Keep: auto-approval, explicit terminal consent, and cancellation have distinct outcomes and option precedence; default server environment stripping and Windows spawn normalization reuse canonical owners.
217	src/node-host/invoke-system-run-plan.ts	READ	Approved versus ordinary path binding preserve different cwd and executable rules; canonical authorization helpers already own mutable operands.
217	src/process/terminal-pty-node.ts	READ	0
217	src/shared/config-eval.ts	READ	Inlined three one-use config traversal/truthiness helpers; split the path once and preserved blocked defaults.
216	src/daemon/service-reconciliation.ts	READ	0
216	src/logging/diagnostic-heap-profile.ts	READ	Sampling tree validation and bounded summary aggregation preserve measured totals, unattributed samples and privacy.
216	src/logging/redact-pem.ts	READ	Streaming delimiter automaton preserves partial PEM boundaries, overlapping delimiters and backwards-context composition.
216	src/process/linux-oom-score.ts	READ	0
216	src/shared/text/tool-call-shaped-text.ts	READ	Removed impossible non-opening-token branch in the private balanced scanner; sole caller admits only opening braces/brackets.
215	src/mcp/tools-stdio-server.ts	READ	Keep: transport cancellation, accepted tool work, borrowed plugin resources and harness disposal need coordinated independent settlement.
215	src/node-host/node-worker-launch-transport.ts	READ	Negotiated native process owner, released group-worker and container transports preserve distinct cleanup and startup contracts.
215	src/worker/transcript-message.ts	READ	Explicit wire projection preserves authoritative replay, strips nonprotocol fields and redacts diagnostics; generalized object copying would weaken boundary.
213	src/process/terminal-pty-bun.ts	READ	0
212	src/acp/session-new-ordering.ts	READ	Keep: valid SDK request IDs, provisional load claims, pending creations, and per-session queues prevent updates preceding session IDs without dropping overflow or blocking unrelated session release.
212	src/daemon/service-audit-preservation.ts	READ	2
212	src/node-host/pty-command.ts	READ	Fresh-start cwd rejection and resume fallback differ; PTY input validation, output backpressure and exit draining remain necessary.
212	src/skills/workshop/proposal-draft.ts	READ	Unified draft preparation retained; history confirms non-Error normalization contract. (Independent full read: remaining_read worker.)
211	src/daemon/systemd-command-query.ts	READ	0
211	src/fleet/registry.ts	READ	Async context ownership and worker release settlement preserve queued-operation authority; retained.
210	src/acp/control-plane/manager.close-session.ts	READ	Keep: fast reset, normal runtime close, and unavailable-backend recovery retain separate effects and notices; owner binding refresh and actor/source checks fence every consequential await and metadata removal.
210	src/daemon/launchd-update-jobs.ts	READ	0
209	src/meeting-bot/agent-consult.ts	READ	SIMPLIFIED: inline surface factory; use required tool callback contract without optional widening.
208	src/meeting-bot/platform-adapter-contract.ts	READ	Public generic platform/browser contract remains the SDK owner.
208	src/process/terminal-pty.ts	READ	0
208	src/skills/workshop/types.ts	READ	Protocol-derived types and internal authority/provenance states remain necessary. (Independent full read: remaining_read worker.)
206	src/decisions/runtime.ts	READ	Prepared plugin and operator authorities are rechecked after awaits; admission preferences and ongoing authority cannot be collapsed.
206	src/mcp/channel-tools.ts	READ	Keep: tool names, schemas, descriptions and structured result projections are the documented model-facing MCP contract.
206	src/process/exec-output.ts	READ	0
206	src/proxy-capture/runtime-response-body.ts	READ	Diagnostic tee branch cancellation must not wait for caller branch; byte bounds, idle deadline and finalization preserve independent stream lifetime.
204	src/daemon/systemd-runtime.ts	READ	0
204	src/pairing/pairing-store-sqlite.ts	READ	Retained indexed account ownership, persisted-shape normalization and deterministic rewrite ordering.
202	src/acp/control-plane/manager.runtime-handle-cache.ts	READ	Keep: identity-based eviction cannot remove replacement handles; single-close and shutdown-drain error semantics differ, and reuse checks preserve owner-repair failures instead of treating them as ordinary unhealthy status.
202	src/acp/translator.disconnects.ts	READ	Keep: disconnect generations prevent stale timers/reconciliation from expiring successor work; accepted sends and visible terminal replies distinguish recoverable prompts from genuinely disconnected ones.
202	src/system-agent/inference-fallback.ts	READ	Owner-level/model-level probes differ in deduplication and retirement behavior. (Independent full read: remaining_read worker.)

@clawsweeper

clawsweeper Bot commented Oct 3, 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 app: web-ui App: web-ui gateway Gateway runtime commands Command implementations fleet size: XL labels Oct 3, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 3, 2026, 6:53 AM ET / 10:53 UTC (Revision 4).

ClawSweeper review

What this changes

The branch simplifies private core runtime, diagnostic, storage, and widget plumbing and fixes Gmail setup when the resolved Python executable path contains spaces.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains a useful landing candidate: no actionable introduced correctness or security defect was found, and current main still lacks the Gmail executable-path repair. The related merged refactors do not supersede this work.

Priority: P3
Reviewed head: 428b82c1decd83e8b168d393df52c916eda767e8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent internal simplification with a focused source-supported fix and no actionable correctness findings; ordinary exact-head CI gates still apply.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified repository administrator is exempt from ordinary external-contributor proof. Reported focused validation is supplemental; unrelated error-copy screenshots do not prove this branch. The inspected changes preserve emitted manifests and database formats, and no material authority transfer or stored-data contract change requires an additional proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified repository administrator is exempt from ordinary external-contributor proof. Reported focused validation is supplemental; unrelated error-copy screenshots do not prove this branch. The inspected changes preserve emitted manifests and database formats, and no material authority transfer or stored-data contract change requires an additional proof gate.
Evidence reviewed 10 items Pinned introduction and merge ownership: Reviewed the merge-base-to-head introduced hunks. Raw test-merge records confirm the supplied base parent followed by the exact PR head; the merge result introduces no changes to the failing waiting-notice test or its chat rendering directories.
Gmail repair remains necessary: Current main still splits Python's resolved executable path at whitespace. The branch retains the complete first output line, validates that executable, and passes it through CLOUDSDK_PYTHON; its existing regression now exercises a directory named Python Runtime and cached reuse.
Latest-release comparison: GitHub source for v2026.9.8 also contains the whitespace split at line 105, so the Gmail repair is not already supplied by the latest release. The local release object was unavailable; the read-only GitHub contents endpoint supplied this check.
Findings None None.
Security None None.

How this fits together

These core subsystems turn configuration and agent requests into diagnostics, process execution, stored artifacts, and client updates. The refactor consolidates their internal plumbing while retaining the existing downstream contracts.

flowchart TD
  A[Configuration and agent requests] --> B[Core runtime owners]
  B --> C[Diagnostics and model selection]
  B --> D[Process and session execution]
  B --> E[Widget and capture storage]
  C --> F[Operator results]
  D --> G[Client updates]
  E --> G
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/flows/doctor-core-checks.runtime.ts, migration/backfill/repair: src/flows/doctor-core-checks.ts, unknown-data-model-change: src/flows/doctor-core-checks.runtime.ts, unknown-data-model-change: src/flows/doctor-core-checks.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Retain the consolidated owners and complete Python executable path while preserving existing storage, SDK, cancellation, and client-output contracts.

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

Yes, from source: current main truncates a resolved Python executable path containing spaces before checking its accessibility. The changed regression exercises that trigger; it was not executed in this read-only review.

Is this the best way to solve the issue?

Yes. The Gmail correction removes the destructive split at its producer, and the inspected refactors reuse existing owners without introducing competing APIs or changing stored formats.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6deb68fad107.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: The primary contribution is internal cleanup with a narrowly scoped Gmail path correction and no demonstrated urgent regression.
  • 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: The verified repository administrator is exempt from ordinary external-contributor proof. Reported focused validation is supplemental; unrelated error-copy screenshots do not prove this branch. The inspected changes preserve emitted manifests and database formats, and no material authority transfer or stored-data contract change requires an additional proof gate.

Evidence

What I checked:

  • Pinned introduction and merge ownership: Reviewed the merge-base-to-head introduced hunks. Raw test-merge records confirm the supplied base parent followed by the exact PR head; the merge result introduces no changes to the failing waiting-notice test or its chat rendering directories. (77d96f1ba1b4)
  • Gmail repair remains necessary: Current main still splits Python's resolved executable path at whitespace. The branch retains the complete first output line, validates that executable, and passes it through CLOUDSDK_PYTHON; its existing regression now exercises a directory named Python Runtime and cached reuse. (src/hooks/gmail-setup-utils.ts:98, 6deb68fad107)
  • Latest-release comparison: GitHub source for v2026.9.8 also contains the whitespace split at line 105, so the Gmail repair is not already supplied by the latest release. The local release object was unavailable; the read-only GitHub contents endpoint supplied this check. (src/hooks/gmail-setup-utils.ts:105, fc23bc864e45)
  • Canvas compatibility boundary: The sole production creation caller supplies inline widget HTML. The branch preserves that emitted manifest shape, the existing manifest type, guarded HTML reader, hosted-path resolver, retention behavior, and sandbox flag; removed creation modes have no remaining production callers. (src/canvas/documents.ts:192, 428b82c1decd)
  • Execution fallback was already unreachable: Before the patch, production preferred the macOS companion only when execHostEnforced was true, which already prohibited local fallback. Removing the private fallback parameters therefore does not introduce a new fail-closed operator mode. (src/node-host/invoke.ts:93, b978fc0e0e71)
  • Trusted-author scope: The repository collaborator endpoint verifies steipete has admin permission, resolving the inconsistent association values in the supplied context. The ordinary external-contributor proof gate does not apply; substantive security and compatibility review still applies.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Sanjays2402: 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 (3 earlier review cycles)
  • reviewed 2026-10-03T07:50:16.503Z sha a62dd73 :: blocked before merge. :: none
  • reviewed 2026-10-03T09:45:00.888Z sha 127ef896df693ec66e3d027b5f47246daa137bb1 :: blocked before merge. :: none
  • reviewed 2026-10-03T10:19:26.448Z sha 428b82c :: blocked before merge. :: none

@steipete
steipete force-pushed the deslop/l324-simplify-small-core-subsystems-b2-20261002 branch from a62dd73 to 127ef89 Compare October 3, 2026 09:37
Remove private forwarding layers, unused creation modes, redundant projections and dead type declarations while preserving public contracts and lifecycle ownership. Fix Gmail Python executable resolution for paths containing spaces.
Preserve sparse media projections and options snapshots while satisfying lint. Type Doctor snapshot fixtures and isolate the broker clock from module loading without weakening lifecycle assertions.
@steipete
steipete force-pushed the deslop/l324-simplify-small-core-subsystems-b2-20261002 branch from 127ef89 to 428b82c Compare October 3, 2026 10:10
@steipete
steipete enabled auto-merge (squash) October 3, 2026 10:14
@steipete
steipete merged commit fd333c7 into main Oct 3, 2026
297 of 299 checks passed
@steipete
steipete deleted the deslop/l324-simplify-small-core-subsystems-b2-20261002 branch October 3, 2026 11:16
steipete added a commit that referenced this pull request Oct 3, 2026
OPENCLAW_NODE_EXEC_FALLBACK was removed by #164153 without lowering the shrink-only budget.
steipete added a commit that referenced this pull request Oct 3, 2026
Consolidate connection-bound query caches, worker transaction admission, and schema installation through the existing SQLite owners. Preserve schemas, pragmas, transaction boundaries, current-authority checks, retention, persisted values, and SDK exports.

Remove 451 net production source lines after excluding adapters owned by #164153. The coverage log records 405 fully read production and operational files over 200 lines.

Validated with focused store tests, plugin contracts, typechecks, lint, formatting, and both import-cycle checks. Hosted CI remains the merge gate.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
* refactor(core): deslop remaining small core subsystems

Remove private forwarding layers, unused creation modes, redundant projections and dead type declarations while preserving public contracts and lifecycle ownership. Fix Gmail Python executable resolution for paths containing spaces.

* fix(core): repair deslop lint and fixture contracts

Preserve sparse media projections and options snapshots while satisfying lint. Type Doctor snapshot fixtures and isolate the broker clock from module loading without weakening lifecycle assertions.

* build(workboard): refresh browser asset fingerprint

* chore(core): reconcile assertion ratchet with current main
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
OPENCLAW_NODE_EXEC_FALLBACK was removed by openclaw#164153 without lowering the shrink-only budget.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
Consolidate connection-bound query caches, worker transaction admission, and schema installation through the existing SQLite owners. Preserve schemas, pragmas, transaction boundaries, current-authority checks, retention, persisted values, and SDK exports.

Remove 451 net production source lines after excluding adapters owned by openclaw#164153. The coverage log records 405 fully read production and operational files over 200 lines.

Validated with focused store tests, plugin contracts, typechecks, lint, formatting, and both import-cycle checks. Hosted CI remains the merge gate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui commands Command implementations fleet gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard 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