Skip to content

refactor: share repeated core and plugin paths - #167205

Merged
steipete merged 2 commits into
mainfrom
deslop/d29-core-misc-20261007
Oct 8, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/d29-core-misc-20261007

Conversation

@steipete

@steipete steipete commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Consolidates repeated implementations in core and bundled plugins.

User Impact

No user-visible change: configuration, CLI/protocol fields, persisted records, emitted messages, and card output retain their existing contracts.

Why This Change Was Made

Shares Claw provenance projections and migration preparation, system-agent inference guards, process control-message construction, and stale-run recovery. Plugin changes share variant dispatch, provider request preparation, migration verification, and LINE card construction while retaining their distinct validation, authority, ordering, and cleanup behavior. Telemetry methods remain bound to their original recorder owner.

Measured production delta: 991 net lines removed (1,611 added / 2,602 removed, 57 production files). Five existing tests only migrate removed private seams; assertions remain unchanged (37 added / 69 removed). The assertion-safety baseline was regenerated shrink-only (48 assertions removed). No new suppressions, dependencies, configuration/protocol/persisted shapes, or changelog changes.

This uses the campaign's authorized 500–999-line exception after a deep implementation and inspection pass. The 3% subsystem target was not reached. Per-file coverage follows below, including retained and partially inspected areas.

Evidence

  • Selected directory proof: 7,260 passing test executions across 635 passing file executions, including the focused Groq replay described below. Existing platform skips remain 5 files / 61 tests. Overlapping OpenTelemetry and Comfy proof was reused explicitly, not counted twice.
  • Full OpenTelemetry and Comfy directories plus lint suppressions passed after the final binding correction: 14 files / 191 tests, 499.30s wall time. The committed-head lint-suppression check then passed all 3 tests (46.45s).
  • Differential comparisons match the baseline: 1,848 LINE card/table/code outputs, 222 Tlon approval/admin/queue traces, 15,552 Google proxy outputs, 480 Signal flush traces, and 675 Foundry predicates.
  • Core and extension production/test types passed; the touched source/test graphs passed again after the two final lint corrections. Runtime import cycles and Madge cycles are both 0; the independently checked clean-main baseline also had 0 Madge cycles.
  • Independent review of the full refactor and fresh review of the final corrections completed scoped-clean (P0–P2). PR wrapper inventory/import-closure checks passed.
  • A fresh runtime build on the final head passed in 660.7s (96 plugins, CLI bootstrap guard, 53 control-plane module checks). The Claws CLI E2E replay then passed all 4 cases; total command wall time was 918.74s. No build/dependency configuration changed.
  • The local canonical changed check passed through core lint, then SDK package-boundary declaration preparation exceeded its unchanged 300s limit before extension lint. All five planned extension-lint batches subsequently passed with 0 warnings / 0 errors on Testbox run 37767499671, pinned to head 645b327559be3d4650e7665662336a4dfbaae9f7 / tree 7e09c6b3c6e2f4e72502368248762b6ba22ab0dd. The native wrapper reports exit 0 and settled lease cleanup; the backing Actions status may reflect that one-shot teardown. The remaining planned guards, including script lint, completed locally. This is combined local/remote proof; the original local exit 1 is retained.
  • Hosted CI run 37772454939, attempt 1 passed on exact head 645b327559be3d4650e7665662336a4dfbaae9f7; its jobs have no failures or non-skipped zero-step results.

The original full infra run timed out in setup-inference.groq-external.integration.test.ts at its existing 120s limit. One focused replay passed with the limit unchanged; the original 44-file order was not repeated, and the original cause remains unclassified. The initial Claws lifecycle CLI E2E run passed grouped inspection but timed out in migration (120s), initial add preview for Gateway removal (30s), and export round-trip (120s). A separate replay of the unchanged file passed all 4 cases with the original limits: migration 64.89s, inspection 1.30s, Gateway removal 29.89s, and export 12.74s. The initial timeout causes remain unclassified; the passing replay is not presented as a fix. No timeouts, retries, skips, or assertions were relaxed, and these failures are not claimed as proven main-red.

Existing test-file cost measurements

Each command was pnpm test <file> --maxWorkers=1 on the shared local host. These are fixture-seam updates with no added test cases. Wall time includes transformation and setup; existing localhost provider fixtures retain their real request/envelope/stream coverage. Hosted CI took 733s wall time; its 32 selected Node test jobs totaled 6,739 job-seconds including setup. That is the full PR test-job footprint, not marginal cost attributable to these five fixture updates.

File under extensions/ Wall seconds Result
minimax/image-generation-provider.test.ts 94.31 passed
minimax/music-generation-provider.test.ts 134.01 passed
minimax/tts.test.ts 59.76 passed
minimax/video-generation-provider.test.ts 60.01 passed
tlon/src/monitor/approval-runtime.test.ts 72.45 passed

Coverage log

The pass inspected all production files in Claws, process, and system-agent. Logging and eligible long-tail plugins were inspected largest-first with file-by-file decisions. Distinct authority, formatting, and cleanup paths were retained when they were not interchangeable. This does not claim exhaustive coverage of every long-tail plugin.

Condensed per-file inspection log

Paths without a src/ or extensions/ prefix are relative to extensions/.

File Disposition
amazon-bedrock-mantle/discovery.ts Read end to end
amazon-bedrock/discovery.ts Read end to end
amazon-bedrock/register.sync.runtime.ts Read end to end
amazon-bedrock/stream.runtime.ts Read early/configuration and middle stream/message conversion sections; remaining tail not fully audited
anthropic/cli-shared.ts Read end to end
anthropic/cli.runtime.ts Read end to end
anthropic/register.runtime.ts Read main model/config/provider registration sections; initial combined output was truncated
anthropic/session-catalog-discovery.ts Read end to end
anthropic/session-catalog-listing.ts Read end to end
azure-speech/speech-provider.ts Read end to end; retained
azure-speech/tts.ts Read end to end; retained
brave/src/brave-web-search-provider.runtime.ts Read end to end
byteplus/video-generation-provider.ts Read end to end; retained
clawrouter/provider-catalog.ts Read end to end
comfy/image-generation-provider.ts Read end to end; retained
comfy/music-generation-provider.ts Read end to end; retained
comfy/video-generation-provider.ts Read end to end; retained
comfy/workflow-runtime.ts Read end to end plus all three callers; implemented prepared connection consolidation.
crabbox/src/crabbox-worker-desktop-macos.ts Initial read
crabbox/src/crabbox-worker-desktop-windows.ts Initial read
crabbox/src/crabbox-worker-node-process.ts Full read
crabbox/src/crabbox-worker-provider.ts Initial large-file pass
crabbox/src/crabbox-worker-warm-image.ts Initial large-file pass
deepgram/realtime-transcription-provider-factory.ts Read end to end; retained
deepinfra/media-models.ts Read end to end
deepinfra/provider-models.ts Read end to end
elevenlabs/speech-provider-factory.ts Read end to end; retained
exa/src/exa-web-search-provider.runtime.ts Read end to end
extensions/code-mode-quickjs/src/code-mode.worker.ts Read complete owner; execution and resume have independent admission/receipt/snapshot state and already share VM loop.
extensions/cua-computer/src/action-targets.ts Existing observation/reference owner retained.
extensions/cua-computer/src/browser-actions.ts Read complete owner and browser boundary tests
extensions/cua-computer/src/commands.ts Full owner read; desktop screen-space path differs from window observation routing.
extensions/cua-computer/src/mcp-driver-client.ts Full adapter read; MCP errors, session start/stop and native enum mapping distinct from direct driver.
extensions/cua-computer/src/window-actions.ts Read complete owner, commands/action-targets/browser siblings and commands/modifier tests
extensions/diagnostics-otel/src/service-attributes.ts Add plugin-private optional-number projection, reused by three existing span recorders; only undefined is omitted.
extensions/diagnostics-otel/src/service-events.ts Read complete owner and all recorder creators; replace switch forwarding with typed event handler table
extensions/diagnostics-otel/src/service-genai-attributes.ts Read complete owner; positive, nonnegative and finite normalization differ.
extensions/diagnostics-otel/src/service-metrics.ts Read complete catalog; explicit metric descriptions, names, units and bucket contracts retained.
extensions/diagnostics-otel/src/service-recorders-harness.ts Read complete owner; specialized harness fields and late-child retention preserved.
extensions/diagnostics-otel/src/service-recorders-model.ts Read complete module plus model lifecycle proof
extensions/diagnostics-otel/src/service-recorders-operations.ts Read complete module plus memory/run lifecycle tests
extensions/diagnostics-otel/src/service-recorders-tools.ts Read complete module plus liveness/phase/tool lifecycle tests
extensions/diagnostics-otel/src/service-recorders-usage.ts Read complete owner; message/model usage/span parents deliberately differ.
extensions/diagnostics-otel/src/service-traces.ts Read complete owner; trusted-only, internal and exported context paths have security differences.
extensions/diagnostics-otel/src/service.ts Read complete service; signal lifecycle, failure retention and SDK ownership differ.
extensions/facetime/src/helper-rpc.ts Security handshake, single helper dialing, and multi-peer topology settlement are distinct contracts.
extensions/file-transfer/src/node-host/file-write.ts Repeated preflight and real writes deliberately differ in authorization binding and parent creation ordering; unsafe to collapse.
extensions/file-transfer/src/tools/dir-fetch-tool.ts Archive extraction/cleanup and aggregate rendering differ from file fetch.
extensions/file-transfer/src/tools/dir-list-tool.ts Pagination continuation depends on rendered prefix; shared rendering wrapper would obscure differences.
extensions/file-transfer/src/tools/file-fetch-tool.ts File-specific MIME, empty content and inline rendering.
extensions/file-transfer/src/tools/file-write-tool.ts Inline/media inputs and node result verification already share dispatcher.
extensions/github/src/detail.ts Read complete owner; commit/issue/pull metadata and public repository revalidation differ.
extensions/github/src/github-api.ts Most module read; REST/GraphQL quota, redirect and credential handling have deliberate distinctions.
extensions/google-meet/src/cli-export.ts Shared artifact document rendering already present
extensions/google-meet/src/meet-api.ts Conference resources already use one collection owner; participants/transcripts have different resource roots and validation text.
extensions/google-meet/src/runtime.ts Common meeting runtime already extracted; Chrome joining, recovery, tab release and Twilio retain different authority and cleanup order.
extensions/line/src/actions.ts (447) Read complete; limits differ by provider action/media type
extensions/line/src/bot-handlers.ts (722) Read complete; message/postback/join paths have distinct admission behavior; shared text delivery already owns reply-to-push fallback
extensions/line/src/bot-message-context.ts (667) Read complete; routing/envelopes already share finalizer; remaining message/postback preparation is distinct
extensions/line/src/card-command.ts (325) Read complete caller; parser/visible strings unchanged.
extensions/line/src/flex-templates/basic-cards.ts (220) Read complete; shared typed text/box construction preserves each object's fields and children.
extensions/line/src/flex-templates/common.ts (42) Read complete; add local cardText and cardBox constructors; all callers stay inside plugin
extensions/line/src/flex-templates/media-control-cards.ts (320) Read complete; migrate text/box trees to shared typed constructors and retire local horizontalRow duplication
extensions/line/src/flex-templates/message.ts/types.ts Read complete boundary types and serialized size checks
extensions/line/src/flex-templates/schedule-cards.ts (386) Read complete; migrate box/text construction to shared typed primitives with all original per-template style fields, optional children and explicit undefined fields.
extensions/line/src/markdown-to-line.ts (455) Read complete and full 378-line test suite
extensions/line/src/rich-messages.ts (368) Read complete caller; action normalization, fallback and size-boundary logic unchanged.
extensions/logbook/src/store.ts Read complete owner; frame I/O admission and worker settlement are different owners, retained.
extensions/memory-lancedb/index.ts Explicit store, forget, recall and auto-capture contracts differ in retained authority, injection filtering, deduplication and shutdown settlement.
extensions/oc-path/src/oc-path/universal.ts JSONC, JSONL, Markdown and YAML leaf coercion/insertions differ observably; unified generic path would grow policy knobs.
extensions/onnx/src/worker-client.ts Read complete owner; retire/finish differ because native work retains slot until child close.
extensions/opencode/session-catalog.ts Complete read; unrelated to session-share's remote snapshot owner despite similar size
extensions/openshell/src/backend.ts Large portions read; mirror synchronization and remote canonical workspace ownership intentionally differ
extensions/session-share/src/session-catalog.ts Catalog owner excerpt read; no near-duplicate with opencode
extensions/team-reports/src/aggregate.ts Streaming and daily aggregation differ in alias/coauthor deduplication, truncation, and stored-day selection.
extensions/team-reports/src/sources/github/index.ts Event searches and comments already table-driven; commit quota strategy and advisory handling are distinct.
extensions/team-reports/src/store.ts Typed facade owns closed-state behavior and named argument conveniences; removing it would require migrating all callers for little net saving.
extensions/zalo/src/monitor.ts (981) Read complete
extensions/zalouser/src/channel.adapters.ts (452) Read complete; outbound adapters already share send path
extensions/zalouser/src/send-api.ts (187) Read complete; audio is a two-effect text/voice path whose partial send receipt differs from ordinary media
extensions/zalouser/src/setup-surface.ts (425) Read complete; DM and group policies deliberately differ on empty/unresolved entries and QR flow distinctions affect user text
extensions/zalouser/src/text-styles-compile.ts (480) Read complete; block/source edge cases differ (unclosed code, quotes, empty list markers, spacing), no proven removable branch
extensions/zalouser/src/text-styles-ranges.ts (413) Read complete; preserve block-vs-inline offset boundary behavior and indentation accumulation
extensions/zalouser/src/tool.ts (220) Read complete; send/image/link share scaffolding but validations/caption/media-cap differ; retain pending sound shared path.
extensions/zalouser/src/zalo-js.ts (1,446) Read complete; API restoration, QR authentication and listener ownership differ intentionally
fal/image-generation-provider.ts Read end to end; retained
fal/video-generation-provider.ts Read end to end; retained
firecrawl/src/firecrawl-client.ts Read end to end
fish-audio-speech/speech-provider.ts Read end to end; implemented numeric directive consolidation.
fish-audio-speech/tts.ts Read end to end; retained
google/cli-backend-auth.runtime.ts Read end to end; retained
google/cli-backend-isolated-auth.runtime.ts Read end to end; retained
google/embedding-batch.ts Read end to end; retained
google/embedding-provider.ts Read end to end; retained
google/realtime-voice-lazy.ts Read end to end; retained
google/realtime-voice-provider.ts Inspected major config, event, transcript and lifecycle sections; retained
google/speech-dialogue.ts Read end to end; retained
google/speech-provider.ts Read end to end; retained
google/speech-synthesis.ts Read end to end; retained
google/src/gemini-web-search-provider.runtime.ts Read end to end; retained
google/transport-stream.ts Read end to end; retained
google/video-generation-provider.ts Read end to end; retained
inworld/speech-provider.ts Read end to end; retained
inworld/tts.ts Read end to end; retained
llama-cpp/src/llama-server-assets.ts Read end to end
llama-cpp/src/managed-server.ts Read end to end
llama-cpp/src/model-catalog.ts Read end to end
llama-cpp/src/setup.ts Read end to end
lmstudio/src/models.ts Read end to end
lmstudio/src/setup.ts Read end to end across two chunks
memory-wiki/src/chatgpt-import.ts Import parsing/rendering read through import commit; rollback lifecycle not yet inspected
memory-wiki/src/cli.ts Full read
memory-wiki/src/compile.ts Dashboard builders already share counted renderers; retain specialized freshness/provenance text
memory-wiki/src/compiled-cache.ts Full read
memory-wiki/src/gateway.ts Full read
memory-wiki/src/markdown.ts Full read
memory-wiki/src/query.ts Digest/live scoring already share scorePage and getMatchingClaims
microsoft-foundry/auth.ts Read end to end
microsoft-foundry/cli.ts Read end to end
microsoft-foundry/onboard.ts Read prompt/connection sections; initial combined output truncated
microsoft-foundry/provider.ts Read end to end
microsoft-foundry/runtime.ts Read end to end
microsoft-foundry/shared.ts Read end to end
minimax/api.ts Read full source
minimax/image-generation-provider.ts Read full source/tests/callers
minimax/index.ts Read full source
minimax/media-provider-runtime.ts Read full source/callers
minimax/music-generation-provider.ts Read full source/tests/callers
minimax/provider-registration.ts Read registration section (first read truncated), not a complete module audit
minimax/speech-provider-factory.ts Read end to end
minimax/video-generation-provider.ts Read full source/tests/callers; implemented factory/request-policy consolidation
mistral/realtime-transcription-provider-factory.ts Read end to end; retained
novita/video-generation-provider.ts Read end to end; retained
ollama/index.ts Read end to end
ollama/src/embedding-provider.runtime.ts Read end to end
ollama/src/stream.runtime.ts Inspected largest file, but combined output was truncated; not claimed as a complete audit
opencode/session-catalog-plugin.ts Read end to end
opencode/session-upstream-activity.ts Read end to end
openrouter/generation-request-context.ts Read end to end as a sibling ownership precedent; unchanged.
openrouter/music-generation-provider.ts Read end to end
openrouter/video-generation-provider.ts Read end to end
perplexity/src/perplexity-web-search-provider.runtime.ts Read full source/tests/callers/history
perplexity/src/perplexity-web-search-provider.shared.ts Read end to end
perplexity/src/perplexity-web-search-provider.ts Read end to end
pixverse/video-generation-provider.ts Read end to end; retained
qwen/stream.ts Read end to end
reef/doctor-contract-api.test.ts Full read
reef/doctor-contract-api.ts Full read
reef/protocol/audit.ts Full read; protocol shapes and encryption untouched.
reef/src/audit-state.ts Full read
reef/src/cli.ts Full read
reef/src/doctor-durable-state.ts Full read
reef/src/flow.ts Full read
reef/src/transport.ts Read HTTP half
reef/src/trust-store.ts Read first half
runway/video-generation-provider.ts Read end to end; retained
src/claws/add-plan-helpers.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/add.ts Read end to end and full provenance.test.ts: phase status/error handling differs by resource; retained.
src/claws/application-plan.ts Read end to end: extension/package variants have subtle omitted property differences; retained.
src/claws/application-provenance.ts Read end to end: common identity/action mapping already exists.
src/claws/bootstrap.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/cron-update.ts Read end to end: readiness and uncertain gateway mutation differ from other resources; retained.
src/claws/cron.ts Read end to end; readiness wait duplicated in separate error scopes intentionally; no changes.
src/claws/digest.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/doctor.ts Read end to end; common finding owner already exists; per-resource diagnostics encode distinct health contracts.
src/claws/experimental.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/export.ts Read end to end: serialization and optional sidecars preserve artifact bytes; retained.
src/claws/lifecycle-adopted-removal.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/lifecycle-bootstrap-removal.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/lifecycle-config-removal.ts Read end to end; deletion journal admission, monitor effects and config compare-and-swap are distinct sequencing; retained.
src/claws/lifecycle-delete-support.ts Read end to end; file staging/restoration and current-authority boundary retained.
src/claws/lifecycle-mcp-removal.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/lifecycle-remove-contract.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/lifecycle-remove-state-blockers.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/lifecycle-state.ts Read end to end: plan/apply ordering has real resource and authority distinctions; retained.
src/claws/lifecycle-status.ts Read end to end; orphan bootstrap/state inventory and offline/online extension checks intentionally distinct; retained.
src/claws/lifecycle.ts Implemented common workspace-source failure mapping with reader; package-specific fallback wording retained
src/claws/manifest-contract.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/mcp-records.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/mcp-update.ts Read end to end: lifecycle lease and concurrent ownership checks retained.
src/claws/mcp.ts Implemented shared identity inventory reader: same exact native queries, parameter binding, ordering, table-absence behavior, error boundary, and row codec.
src/claws/migrate-errors.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/migrate-package.ts Read end to end; source construction, preview cleanup and guarded persistent-package cleanup intentionally differ; retained.
src/claws/migrate-safety.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/migrate-validation.ts Read end to end; authored/inherited model and portable-field distinctions retained.
src/claws/migrate-workspace-files.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/migrate.ts Implemented shared preview/apply add-plan preparation; preserves captured roster and source identity, post-consent checks remain at callers
src/claws/monitor-cleanup-binding.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/monitor-cleanup-contract.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/openclaw-profile.ts Read end to end; legacy profile upgrade is scoped compatibility and cannot collapse into normal parsing; retained.
src/claws/package-extension-provenance.ts Implemented shared non-null package row projection used by insert and full-row expected comparison.
src/claws/package-remove-contract.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/package-remove-phase.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/package-remove-plan.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/package-remove.ts Read end to end; shared inspection already extracted, before/after lease-claim checks and uncertain mutation settlement retained.
src/claws/package-resume.ts Read end to end; exact replay ownership/extension proof and read-only handle closure retained.
src/claws/package-setup-requirements.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/package-status.kernel.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/package-update-provenance.ts Implemented shared projection; nullable extension IS comparisons left explicit and unchanged.
src/claws/package-update.ts Read end to end; installer/provenance adapters and external mutation reconciliation are distinct; retained.
src/claws/packages.ts Read end to end: plugin/skill paths share lease owner but differ in replay, preflight, origin, rollback and runtime reload contracts; retained.
src/claws/path-containment.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/plugin-runtime.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/project-build.ts Read end to end; source snapshot checks and deterministic artifact publishing use bounded distinct contracts; retained.
src/claws/project.ts Read end to end; path discovery, portable collisions, source exclusion, rollback and generated content preserve distinct policies; retained.
src/claws/provenance-adopted.ts Implemented same record projection; no bootstrap for adoption, ownership checks untouched.
src/claws/provenance-agent-origin.ts Read end to end: existing schema/ownership codec retained as owner.
src/claws/provenance-async.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/provenance-bootstrap.ts Read end to end: omitted bootstrap is intentional.
src/claws/provenance-read.kernel.ts Read end to end: narrow row and inventory reads intentionally differ; left native error behavior intact.
src/claws/provenance-record.ts New shared pure projection only; existing encodeClawAgentOwnership owns schema/ownership encoding.
src/claws/provenance-runtime-read.kernel.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/provenance-runtime-read.ts Implemented failed-snapshot projection with explicit prior-uncertainty policy; original error objects, publication timing and authority remain unchanged
src/claws/provenance-schema-version.ts Read end to end: schema versions unchanged.
src/claws/provenance-secondary-references.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/provenance-types.ts Read end to end: contracts unchanged.
src/claws/provenance-write.ts Read end to end; worker/host authority, native settlement and publication boundaries already separated; retained.
src/claws/provenance-write.worker-contract.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/provenance-write.worker.ts Read end to end; worker/host authority, native settlement and publication boundaries already separated; retained.
src/claws/provenance.ts Implemented: share plan record and SQL projections with adoption/update; unchanged transaction, guards, CAS and statuses.
src/claws/reader.ts Read end to end; implemented shared workspace-source error mapping, source-specific fallback text retained
src/claws/removal-journal-contract.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/removal-journal.ts Read end to end; worker/host authority, native settlement and publication boundaries already separated; retained.
src/claws/removal-journal.worker.ts Read end to end; worker/host authority, native settlement and publication boundaries already separated; retained.
src/claws/schema-portability.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/schema.ts Read end to end; existing common MCP shape already shared; validation order/errors and schema unchanged.
src/claws/source-diagnostics.ts New shared error classifier/message builder; explicit package/source variant preserves existing fallback text.
src/claws/source-limits.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/tool-policy-candidates.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/tool-policy-runtime.ts Read end to end; worker/host authority, native settlement and publication boundaries already separated; retained.
src/claws/tool-profile-consent.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/types.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/update-apply.ts Read end to end; per-phase rollback order and error classification differ intentionally; no changes.
src/claws/update-capability-changes.ts Read end to end: classification paths and omitted-vs-undefined digest fields are intentional; retained.
src/claws/update-plan-empty.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/update-plan-summary.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/claws/update-plan-types.ts Read end to end; persisted/protocol/type contract retained unchanged; no structural duplicate to remove.
src/claws/update-plan.ts Read end to end; resource drift/ownership classifications and exact capability effects intentionally differ; existing identity helper reuse retained.
src/claws/update-rollback.ts Read end to end: common rollback loop already exists.
src/claws/workspace-update.ts Read end to end: rollback preserves local changes with per-action checks; considering common error scaffolding only.
src/claws/workspace.ts Read end to end; source/file identity, overwrite refusal, pending ownership and incomplete-state settlement retained.
src/claws/yaml-document.ts Read end to end; narrow owner/helper already shared or distinct behavior, retained.
src/logging/code-mode-diagnostic.ts Complete read; bounded scalar/list projection already shared.
src/logging/console.ts Complete read; shared console capture and output owner already present.
src/logging/diagnostic-argument-churn-activity.ts Complete read; continuity/sequence merge policy is distinct from request counts
src/logging/diagnostic-cpu-profile.ts Complete read; CPU topology/sample validation unique.
src/logging/diagnostic-embedded-run-index.ts Complete read; sequence order differs from map order, retained.
src/logging/diagnostic-heap-profile.ts Complete read; heap summary bound and lost sample accounting unique.
src/logging/diagnostic-memory-bundle.ts Complete read; required/optional metrics and worker missing maps differ by admission contract.
src/logging/diagnostic-memory.ts Complete read; threshold candidates already table-driven
src/logging/diagnostic-owned-activity.ts Complete read; retry and backend wait protocols differ in renewal, abort, and completion
src/logging/diagnostic-phase.ts Complete read; concise overlap-aware phase owner.
src/logging/diagnostic-profile.ts Complete lifecycle/sanitizer read; CPU and heap already share capture owner.
src/logging/diagnostic-repeated-request-activity.ts Complete read; exact run-owner semantic progress contract; no safe unification with argument churn.
src/logging/diagnostic-run-activity-recovery.ts Complete read; common marker sweep already extracted.
src/logging/diagnostic-run-activity-state.ts Complete read; maps have distinct owner and alias invalidation lifecycle
src/logging/diagnostic-run-activity.ts Complete read; owner-backed and unbound event branches retain separate authority and stale-event cutoff semantics.
src/logging/diagnostic-runtime.ts Complete read; queue semantics distinct from log-only events.
src/logging/diagnostic-session-recovery-coordinator.ts Complete read; synchronous/async completion contracts and post-await authority retained.
src/logging/diagnostic-session-recovery.ts Complete read; tagged outcomes and text formatting retained.
src/logging/diagnostic-stability-bundle.ts Read complete; strict read versus best-effort retention stat errors differ intentionally.
src/logging/diagnostic-stability-query.ts Complete read; strict decimal query contract retained.
src/logging/diagnostic-stability-readers.ts Complete read; already typed shared optional field reader.
src/logging/diagnostic-stability.ts Event projection switch already shares typed copy helper; remaining discriminant cases differ.
src/logging/diagnostic-stuck-session-recovery.runtime.ts Implemented: shared fresh state predicate and stale outcome; unified stale run-handle/reply-only abort path with explicit handle-vs-reply backlog/deferred/blocker/log differences
src/logging/diagnostic-support-export.ts Read complete; common status/health capture already extracted; bounded standalone corrupt-config flow retained.
src/logging/diagnostic-support-redaction.ts Complete read; snapshot/config traversal already one parameterized owner; path and public diagnostic policies have distinct safety contracts
src/logging/diagnostic.ts Read complete event and heartbeat flow; explicit event field whitelist and differing recovery timing are behavior
src/logging/logger.ts Read complete pipeline; file/native diagnostic conversion differ observably, runtime log-level inheritance is live state
src/logging/message-lifecycle.ts Complete read; queue/state/processed differences are contract, existing wrapper intentional.
src/logging/redact-json.ts Read edit composition/current-token/project-message implementation; no interchangeable variant path found.
src/logging/redact.ts Read major scanner/structured/native conversion paths; already shares grammar and JSON edit owner
src/logging/redacting-stream.ts Complete read; one bounded partial-match decoder, retained.
src/logging/subsystem.ts Complete read; raw, JSON, console override and file paths differ; common emit owner already present
tavily/src/tavily-client.ts Read end to end
tts-local-cli/speech-provider.ts Read end to end; retained
xai/capability-provider-metadata-factory.ts Read end to end; retained
xai/lazy-capability-provider-factories.ts Read end to end; retained
xai/realtime-voice-events.ts Read end to end; retained
xai/realtime-voice-lazy.ts Read end to end; retained
xai/speech-provider-metadata-factory.ts Read end to end; retained
xai/tts.ts Read end to end; retained
xai/xai-oauth.ts Read end to end; retained
xiaomi/index.ts Read end to end

| src/process/command-queue.ts | Retained: queue admission, timeout arbitration and generation completion have distinct ordering contracts; no duplicate feature path. |
| src/process/supervisor/adapters/child.ts | Changed: pending output derives from owned streams through one drain callback registration; direct child signaling shares its best-effort failure policy. |
| src/process/supervisor/service-child-relay-host.ts | Changed: existing control sender stamps generation/sequence once, replacing per-frame repetition. Retirement still shares the same sequence owner. |
| src/process/supervisor/supervisor.ts | Retained: output completion and extinction ownership are separate; scope replacement fences and startup cancellation already have one owner. |
| src/process/exec-runner.ts | Retained: combined/per-stream head/tail limits, output deadlines and execa cleanup are already shared; startup and final result shapes differ intentionally. |
| src/process/spawn-broker/host.ts | Retained: ordered native admission and resource claims have distinct lifetime owners; result, close and transport readiness are separate facts. |
| src/process/gateway-work-admission.ts | Retained: independent/detached admission already share owners; synchronous and asynchronous continuation scopes have different lifetime boundaries. |
| src/process/supervisor/service-child-group-anchor.ts | Retained: Linux subreaper, retained worker lineage and ordinary process-group cleanup have different custody proofs and ACK behavior. |
| src/process/supervisor/service-child-windows-job-anchor.ts | Retained: Windows HANDLE/Job extinction owner and output polling are platform-specific, distinct from POSIX receipts. |
| src/process/spawn-broker/resource-server.ts | Retained: parent and worker close observers already share native close; ports are transport, not custody. |
| src/process/spawn-broker/worker.ts | Retained: prepared spawn, ordinary spawn and execa already share launch; pipe-transfer and ownership publication ordering is required. |
| src/process/supervisor/service-child-windows-job-native.ts | Retained: ABI declarations and transferred HANDLE ownership must remain explicit; compacting tables would mostly golf declarations. |
| src/process/exec-spawn.ts | Retained: scope custody and broker/native admission maintain different no-start and uncertain-cleanup evidence. |
| src/process/spawn-broker/resource-host.ts | Retained: outbound owner delivery, inbound reorder buffer and close observer state have distinct settlement/error semantics. |
| src/process/exec.ts | Retained: runExec preserves execa error semantics; buffered runner has independent discard-stream accounting and cannot delegate capture unchanged. |
| src/process/spawn-broker/child.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/command-queue.capacity-groups.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-broker/execa-worker.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/supervisor/service-child-relay.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/service-child-group-ownership.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/terminal-pty-node.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/exec-result.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/windows-command.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/terminal-pty.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/linux-oom-score.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/exec-termination.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/terminal-pty-bun.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/exec-output.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/adapters/pty.ts | Retained: PTY fallback refresh differs from direct child monotonic fallback; sharing them would need policy generalization without material reduction. |
| src/process/spawn-broker/resource-client.ts | Retained: attachment retry is bounded by startup authority; transport cleanup cannot replace resource close. |
| src/process/spawn-broker/ipc.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/supervisor/types.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/spawn-broker/execa-client.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/command-queue.state.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/decoded-output.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-secret-input.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/linux-child-subreaper.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/service-child-windows-task-launcher.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/respawn-child-runner.ts | Changed: one best-effort signal operation now serves TERM and KILL; removed the redundant force-only wrapper and duplicated catch. |
| src/process/supervisor/service-child-relay-preparation.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/service-child-protocol.ts | Changed: factor control payload from unchanged identity intersection; every discriminant and wire field is identical. |
| src/process/spawn-broker/resource-socket.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/spawn-broker/relay-integration.ts | Changed: existing sender constructs the control envelope for all variants, preserving field insertion order and admission/cancellation timing. |
| src/process/scoped-child-reaper.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-broker/pipe.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/supervisor/service-child-relay-retirement.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/terminal-pty-worker.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/background-work.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/service-child-output-relay.ts | Retained: pushed Windows text, native byte backpressure and awaited consumers already share output relay lifecycle. |
| src/process/spawn-broker/cleanup.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/spawn-broker/execa-protocol.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/spawn-diagnostics.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/darwin-process-command.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/command-lane-diagnostics.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/terminal-pty-protocol.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/spawn-broker/execa-types.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/spawn-broker/worker-sender.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/owned-stdio.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/command-error.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-utils.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-broker/protocol.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/child-process.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-broker/execa-message.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/command-queue.types.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/windows-command-line.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-broker/resource-protocol.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/supervisor/service-child-cleanup-deadline.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/adapters/child-stdin.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/command-process-custody.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/child-process-tree.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/spawn-broker/execa-output.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/child-process-bridge.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/adapters/process-events.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/spawn-broker/context.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/supervisor/service-child-control-reader.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/service-child-windows-job-start.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/lanes.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/spawn-broker/resource-port.ts | Retained: focused broker transport/serialization helper with a distinct bounded ownership contract. |
| src/process/bounded-line-framer.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/pipe-output.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/service-child-cleanup.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/inherited-process-lineage.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/pty-terminal-name.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/output-drain.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/index.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/cleanup-budget.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/process-deadline.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/service-child-stdio.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/supervisor/adapters/env.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/kill-tree.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/process/supervisor/supervisor-log.runtime.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/command-process-custody.types.ts | Retained: concrete type/transport contract; no removable duplicate runtime responsibility. |
| src/process/supervisor/cancellation-policy.ts | Retained: focused supervisor adapter, platform or lifecycle primitive; no sound structural consolidation found. |
| src/process/spawn-initiation.ts | Retained: focused process owner/helper; sibling inspection found no sound material consolidation. |
| src/system-agent/verified-inference.ts | Retained: creation/revalidation differ in failure contract, source authority, artifact reads, and successful-route freezing; merging those paths would obscure authority sequencing. |
| src/system-agent/operations-execution-helpers.ts | Retained: persistent apply already centralizes approval/audit/hash markers; model-write and setup commit checks bind different owners and phases. |
| src/system-agent/setup-inference-turn.ts | Retained: shared probe exists; verify/complete differ in owner proof and config rereads, with distinct user messages. |
| src/system-agent/operations-execute.ts | Retained: dispatch shares persistent operation owner; repeated case wrappers carry distinct action/audit and lazy-import boundaries. |
| src/system-agent/setup-inference-credentials.ts | Retained: stagePreparedCandidate already shares normalization/save/projection; login, auto-discovery, and saved-auth branches differ in cancellation and persistence. |
| src/system-agent/chat-turn-router.ts | Retained: typed config, navigation, approval, and model turns have distinct host/proposal state transitions. |
| src/system-agent/chat-wizard-host.ts | Retained: HOSTED_SETUP table already unifies variants; structured and text answer validation intentionally differ. |
| src/system-agent/setup-inference-activate.ts | Retained: candidate staging and commit/recovery checks bind separate temporal snapshots; no safe large equivalent path collapse. |
| src/system-agent/setup-apply.ts | Retained: roster admission, config commit, workspace creation, and Gateway lifecycle are separate guarded effects. |
| src/system-agent/greeting.ts | Retained: CAS cache, flight/backoff, grounding and delivery cursor have separate lifetimes; model and host alert text stay separate. |
| src/system-agent/setup-inference-core.ts | Retained: closed protocol/result types and distinct error wording; shared model-target and provider-kind parsing already present. |
| src/system-agent/operations-parse.ts | Changed: one whitespace/path validation scan for literal writes and SecretRef writes; distinct value grammar and order preserved. |
| src/system-agent/config-redaction.ts | Retained: path embedding and value sensitivity have deliberately different URL/container behavior; unknown-owner fallback is security behavior. |
| src/system-agent/tui-backend.ts | Retained: transport adapter and wizard handoffs preserve queue/retirement semantics; persistent guard recognizes cross-module errors unlike one-shot path. |
| src/system-agent/setup-inference-detect.ts | Retained: manual metadata, saved credentials, and live discovery publish distinct partial views and detection-only eligibility. |
| src/system-agent/agent-turn.ts | Changed: shared ordinary inference route guard; callback keeps failed proposal and CLI continuity cleanup in the guard failure continuation. |
| src/system-agent/inference-route.ts | Retained: projections distinguish model owner vs reserved execution identity and authored vs materialized plugin policy. |
| src/system-agent/hosted-setup.runtime.ts | Retained: runHostedSetup already owns config/lease lifecycle; memory outcome rendering has different count/failure branches. |
| src/system-agent/plugin-artifact.ts | Retained: proposal retention, expiry, digest verification, lease ownership, and activation are independent trust boundaries. |
| src/system-agent/overview.ts | Retained: ordinary overview and startup/onboarding text differ intentionally; fallback empty roster shape preserved. |
| src/system-agent/rescue-message.ts | Retained: consume/delete/replace paths have distinct atomic ownership; remote rejection strings and pending persisted shape remain untouched. |
| src/system-agent/setup-app-recommendations.ts | Retained: inventory and candidate normalization have distinct prioritization; bounded discovery and matching paths share existing owners. |
| src/system-agent/chat-engine.ts | Changed: shared ordinary inference route guard; conversation still owns history/wizard/proposal retirement; persistent-apply guard unchanged. |
| src/system-agent/assistant-prompts.ts | Retained: literal prompt bytes and distinct vocabulary are task contracts; greeting payload and hash have deliberate ordering differences. |
| src/system-agent/setup-inference-transition.ts | Retained: write/activate/recovery/deferred completion ownership is non-duplicate temporal behavior. |
| src/system-agent/assistant.ts | Changed: shared ordinary inference route guard before dispatch and after cleanup; planner stage and failure payload preserved. |
| src/system-agent/setup-inference-auth-options.ts | Changed: manual and guided options share eligibility/dedup collection; manual presentation comparator remains explicit. |
| src/system-agent/system-agent.ts | Changed: shared ordinary inference route guard; one-shot persistent probe retains separate error identity semantics. |
| src/system-agent/setup-inference-credential-access.ts | Retained: access/materialization and activate/rollback bind separate credential revisions; no persistence changes. |
| src/system-agent/setup-model-selection.ts | Retained: default/agent model selection differs in ownership, runtime override and utility migration behavior. |
| src/system-agent/inference-fallback.ts | Retained: policy-expanded routes and default auth fallbacks have different failure breadth/dedup keys. |
| src/system-agent/setup-inference-codex.ts | Retained: provider-owned auth and installer semantics require sibling Codex audit before changes; no changes proposed. |
| src/system-agent/onboarding-welcome.ts | Retained: authored setup and receipt recovery differ; model-only config must stay onboardable. |
| src/system-agent/approval-intent.ts | Retained: exact closed-list fast path and owned completion resource draining are distinct mechanisms. |
| src/system-agent/setup-recovery.ts | Retained: receipt and config ownership checks; crosses prohibited state owner only through existing contract. |
| src/system-agent/dialogue.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/operation-types.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/setup-native-session-catalogs.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/probes.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/setup-provider-method.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/rescue-policy.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/operator-approval.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/inference-error.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/setup-inference-profile.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/post-write-verification.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/transcript-store.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/setup-inference-probe-work.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/audit.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/plugin-install.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/setup-inference-custom.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/setup-inference.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/assistant-timeout.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/inference-guard.ts | New shared ordinary route guard; no persistent-write authority or runtime selection moved. |
| src/system-agent/setup-config-snapshot.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/new-agent-welcome.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/plugin-install-spec.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/agent-id.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/delegation-session.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/operations-internal.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |
| src/system-agent/operations.ts | Retained: small single-responsibility module or type/export contract; no useful behavior-identical structural reduction found. |

@clawsweeper

clawsweeper Bot commented Oct 8, 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.

@steipete
steipete marked this pull request as ready for review October 8, 2026 11:48
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 7:56 AM ET / 11:56 UTC.

ClawSweeper review

What this changes

The branch consolidates repeated core and plugin implementations into shared private helpers while preserving existing contracts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful consolidation with no identified patch defect, supported mainly by harness evidence and partially completed CLI validation.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The supplied repository state identifies a MEMBER-authored refactor outside the external-contributor proof gate. Recorded tests and differential harnesses support equivalence but do not establish complete shipped-flow coverage. Source comparison verifies unchanged stored columns, ownership encoding, namespaces, retention, and migration checks, so no new data-model migration is required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
Reason: Removing repeated private implementations reduces maintenance drift while retaining established behavior. Prior area history supports this consolidation direction without a new product surface.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides useful consolidation that remains absent from current main. No concrete introduced defect was found; the recorded CLI timeouts limit validation confidence.

Priority: P3
Reviewed head: 645b327559be3d4650e7665662336a4dfbaae9f7

Before merge

None.

Findings

None.

Provenance

  • src/system-agent inference guards: original intent not found (unknown: Commit history was readable, but the deeper symbol-introduction search failed when a historical blob fetch returned HTTP 403.)
  • src/process control-message and child-lifecycle consolidation: original intent not found (unknown: Commit-only history identifies prior lifecycle maintenance; historical blob retrieval prevented completing the introducing-symbol search.)

Tests

  • Missing end-to-end proof: The body records unfinished Claws CLI migration, add-preview, and export runs, and does not show a current-head published-driver upgrade run for the consolidated Doctor path. This read-only review did not execute those scenarios.
Agent review details

How this fits together

Core code manages agent setup, package ownership, process lifecycle, and recovery; bundled plugins translate requests and events into provider calls, channel messages, and telemetry. The refactor shares repeated preparation and projection steps within those existing owners.

flowchart TD
  A[Operator commands and agent requests] --> B[Core lifecycle owners]
  C[Provider requests and channel events] --> D[Bundled plugin owners]
  B --> E[Shared private preparation and projection]
  D --> E
  E --> F[Existing validation and lifecycle decisions]
  F --> G[Stored records and process control]
  F --> H[Provider calls messages and telemetry]
Loading

Technical review

Best possible solution:

Keep consolidation inside the existing owners, preserving their validation, persisted values, authority checks, and cleanup ordering.

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

Not applicable: this PR proposes behavior-preserving consolidation rather than reporting a reproducible product bug.

Is this the best way to solve the issue?

Yes: the inspected extractions reuse existing owners and migrate private callers together without adding public configuration, SDK contracts, or persistent formats.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness. Added test files: 5.

Security

None.

Evidence

What I checked:

  • Pinned introduction reviewed: Reviewed the merge-base-to-head hunks, rather than treating endpoint drift as PR edits. The verified test merge has the recorded base and exact PR head as its parents. (645b327559be)
  • Current-main necessity and drift: The new Claw record preparation, inference guard, and MiniMax request helper are absent from fetched main. Comparing the affected directories against the merge base found no changes to the PR's touched production files; intervening changes concern package manifests and other files. (e380a256e9a0)
  • Stored-record compatibility: The shared record projection retains the existing ownership encoder, SQL columns, bootstrap null handling, origin, status, and timestamps. Callers retain transaction guards, compare-and-swap predicates, and post-commit cache publication; no stored-format conversion is introduced. (src/claws/provenance-record.ts:18, 645b327559be)
  • Reef migration contract retained: The extraction preserves namespace settings, capacity checks, canonical-row comparisons, readback verification, source archival, and pending barriers. The original design in refactor(channels): persist runtime state in plugin SQLite #109380 makes Doctor the import owner and canonical SQLite state authoritative. (extensions/reef/src/doctor-durable-state.ts:302, 645b327559be)
  • Private MiniMax cutover: Both minimax and minimax-portal remain registered for image, music, and video generation. Removed factory wrappers were private implementation seams, absent from the plugin's public api.ts barrel; affected bundled callers and tests move together. (extensions/minimax/index.ts:21, 645b327559be)
  • Telemetry receiver correction: The final head binds table-dispatched methods to the same recorder object used by the former switch. Private model/tool content continues through explicit adapters, and previously ignored event types remain unhandled. (extensions/diagnostics-otel/src/service-events.ts:43, 645b327559be)

Likely related people:

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

PR surface

Source -991, Tests -32, Other -1. Total -1024 across 63 files.

View PR surface stats
Area Files Added Removed Net
Source 57 1603 2594 -991
Tests 5 37 69 -32
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 3 -1
Total 63 1642 2666 -1024

Stored data model

Persistent data-model change detected: database schema: src/claws/package-extension-provenance.ts, database schema: src/claws/package-update-provenance.ts, database schema: src/claws/provenance-adopted.ts, database schema: src/claws/provenance-record.ts, migration/backfill/repair: extensions/reef/doctor-contract-api.ts, migration/backfill/repair: extensions/reef/src/doctor-durable-state.ts, and 2 more. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Labels

Label changes:

  • add P3: This is internal maintenance with no intended new capability or user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is internal maintenance with no intended new capability or user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

@steipete
steipete merged commit 8bacf4f into main Oct 8, 2026
250 of 266 checks passed
@steipete
steipete deleted the deslop/d29-core-misc-20261007 branch October 8, 2026 12:11
steipete added a commit that referenced this pull request Oct 8, 2026
…lers

#166988 inlined clearFailedSystemAgentSessionState at its single caller
while #167205 added a second caller, leaving main failing tsgo:core
(TS2304 in src/system-agent/agent-turn.ts). Restore the helper and use it
from both paths. Also drop the unused SessionPendingInputState re-export
left behind by #167106.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
Consolidate core lifecycle/provenance preparation and bundled plugin variant paths while preserving their existing contracts.

Remove 991 net production lines. Type, cycle, lint, independent review, selected-directory tests, Claws CLI E2E, and exact-head hosted CI are recorded in openclaw#167205, along with the coverage log and original local timeout outcomes.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…lers

openclaw#166988 inlined clearFailedSystemAgentSessionState at its single caller
while openclaw#167205 added a second caller, leaving main failing tsgo:core
(TS2304 in src/system-agent/agent-turn.ts). Restore the helper and use it
from both paths. Also drop the unused SessionPendingInputState re-export
left behind by openclaw#167106.
steipete added a commit that referenced this pull request Oct 15, 2026
Share Google SSE startup, OpenAI voice configuration preparation and MiniMax
request credentials. Reuse the SDK FIFO permit pool for Session Share and
return Logbook's committed standup receipt instead of rereading its write.
Remove repeated ONNX validation after the existing schema boundary and unused
response/header copies. Preserve public surfaces, auth, resource bounds,
snapshot limits, user-data durability and shutdown settlement. Phase E stays
untouched. Simplify ordinary Memory Core sync-error bookkeeping and remove
late-probe cache fencing and synthetic multi-process LanceDB startup retries.
Remove redundant Bonjour sentinel/cleanup/listener defenses while retaining
network-error handling and stop settlement.
Net production reduction: 217 lines;
test reduction: 204 lines.

Best-effort tradeoffs accepted:
- Active Memory's synthetic maximum-Date clock no longer bypasses caching;
  d649548 introduced the forced-clock fixture, not a human-use report.
- Voice Call's synthetic maximum-Date clock uses numeric expiry and always
  admits the cache entry before native Promise rejection cleanup;
  55d4456 introduced the forced-clock fixture, not a human-use report.
- Future mutation of an internal webhook response is not isolated by copies;
  #118754 records synthetic HTTP proof, and no current consumer mutates it.
- A publication racing compiled-cache reconciliation is picked up on the next
  lifecycle refresh; #110167 pins a synthetic lookup interleaving, not an incident.
- A later parallel standup may overwrite the stored day, while each caller gets
  its own committed receipt; #99930/#144982 add the self-reread without an incident.
- Deliberate mutation of Fal's internal image array during credential lookup may
  reach provider validation; migration 0f54ca2 already had a guarded caller.
- Future mutation of Comfy's internal GET headers is not isolated by extra copies;
  #167205 retained these copies, but the current consumers are read-only.
- An embedding probe finishing during adapter replacement can cache old
  availability for the existing 30-second TTL or until invalidation; #144252
  and related #135599/#141280 describe architecture/synthetic lifecycle proof,
  not a human incident. Provider authority and shutdown drainage stay intact.
- A competing LanceDB initializer exposing a table before its first readable
  version may fail startup and need the next invocation/restart. #105896's
  retry proof coordinates six processes; #105680 describes source inference,
  and its review explicitly notes that no actual failure log was supplied.
  Atomic existOk creation, schema/agent checks and user-data durability stay.
- Internal handled-sync failure calls no longer re-check a tracked-active flag;
  #133239 introduced the bookkeeping, but every production caller is already
  inside tracked sync. A future untracked internal caller records its advisory
  failure directly. Deferred work and real overlapping failure identity stay.
- Nonfinite ONNX logits still fail at the TypeBox IPC schema boundary; #153476
  redundantly scanned the same validated vector a second time. No malformed
  network/worker input is newly admitted.
- Bonjour's fixed-path existsSync no longer catches impossible filesystem
  exceptions; direct 989cfd1 cites no incident and Node already returns false.
  A throwing monkey-patch now fails startup visibly.
- Bonjour cleanup no longer repeats stopPromise's once-only bookkeeping;
  ddc2036 added the flag for smoke stabilization without a user incident.
  Failed startup cannot expose a stop handle; SDK unsubscribe is idempotent.
- Bonjour's fixed EventEmitter listeners no longer swallow attachment errors;
  direct 7389fc0 cites no incident, and pinned Ciao inherits ordinary on().
  A future dependency-contract violation follows existing startup cleanup.

Proof: targeted production/test types, syntax lint, formatting, zero runtime
and Madge cycles, SDK source boundaries, lint-suppressions and focused plugin
owner/sibling suites. Fresh independent review's sole ONNX finding is disproved
by actual parseWorkerReply rejecting NaN and both infinities, as the installed
TypeBox validator calls Number.isFinite. No accepted finding remains.

One kept Memory Core generation-lease case hits its unchanged five-second
embedding-start deadline on both candidate and unchanged task base 9e3e16c.
It bypasses changed outcome/probe bookkeeping. It is not claimed passing or
fixed. Typed-lint declaration preparation and full Active Memory suite startup
also exceeded unchanged deadlines. Broad build/check-changed and PR CI unrun.
Below-500 branch-only packet for bundling; Phase E remains untouched.
steipete added a commit that referenced this pull request Oct 15, 2026
* refactor(plugins): consolidate provider and feature paths

Share Google SSE startup, OpenAI voice configuration preparation and MiniMax
request credentials. Reuse the SDK FIFO permit pool for Session Share and
return Logbook's committed standup receipt instead of rereading its write.
Remove repeated ONNX validation after the existing schema boundary and unused
response/header copies. Preserve public surfaces, auth, resource bounds,
snapshot limits, user-data durability and shutdown settlement. Phase E stays
untouched. Simplify ordinary Memory Core sync-error bookkeeping and remove
late-probe cache fencing and synthetic multi-process LanceDB startup retries.
Remove redundant Bonjour sentinel/cleanup/listener defenses while retaining
network-error handling and stop settlement.
Net production reduction: 217 lines;
test reduction: 204 lines.

Best-effort tradeoffs accepted:
- Active Memory's synthetic maximum-Date clock no longer bypasses caching;
  d649548 introduced the forced-clock fixture, not a human-use report.
- Voice Call's synthetic maximum-Date clock uses numeric expiry and always
  admits the cache entry before native Promise rejection cleanup;
  55d4456 introduced the forced-clock fixture, not a human-use report.
- Future mutation of an internal webhook response is not isolated by copies;
  #118754 records synthetic HTTP proof, and no current consumer mutates it.
- A publication racing compiled-cache reconciliation is picked up on the next
  lifecycle refresh; #110167 pins a synthetic lookup interleaving, not an incident.
- A later parallel standup may overwrite the stored day, while each caller gets
  its own committed receipt; #99930/#144982 add the self-reread without an incident.
- Deliberate mutation of Fal's internal image array during credential lookup may
  reach provider validation; migration 0f54ca2 already had a guarded caller.
- Future mutation of Comfy's internal GET headers is not isolated by extra copies;
  #167205 retained these copies, but the current consumers are read-only.
- An embedding probe finishing during adapter replacement can cache old
  availability for the existing 30-second TTL or until invalidation; #144252
  and related #135599/#141280 describe architecture/synthetic lifecycle proof,
  not a human incident. Provider authority and shutdown drainage stay intact.
- A competing LanceDB initializer exposing a table before its first readable
  version may fail startup and need the next invocation/restart. #105896's
  retry proof coordinates six processes; #105680 describes source inference,
  and its review explicitly notes that no actual failure log was supplied.
  Atomic existOk creation, schema/agent checks and user-data durability stay.
- Internal handled-sync failure calls no longer re-check a tracked-active flag;
  #133239 introduced the bookkeeping, but every production caller is already
  inside tracked sync. A future untracked internal caller records its advisory
  failure directly. Deferred work and real overlapping failure identity stay.
- Nonfinite ONNX logits still fail at the TypeBox IPC schema boundary; #153476
  redundantly scanned the same validated vector a second time. No malformed
  network/worker input is newly admitted.
- Bonjour's fixed-path existsSync no longer catches impossible filesystem
  exceptions; direct 989cfd1 cites no incident and Node already returns false.
  A throwing monkey-patch now fails startup visibly.
- Bonjour cleanup no longer repeats stopPromise's once-only bookkeeping;
  ddc2036 added the flag for smoke stabilization without a user incident.
  Failed startup cannot expose a stop handle; SDK unsubscribe is idempotent.
- Bonjour's fixed EventEmitter listeners no longer swallow attachment errors;
  direct 7389fc0 cites no incident, and pinned Ciao inherits ordinary on().
  A future dependency-contract violation follows existing startup cleanup.

Proof: targeted production/test types, syntax lint, formatting, zero runtime
and Madge cycles, SDK source boundaries, lint-suppressions and focused plugin
owner/sibling suites. Fresh independent review's sole ONNX finding is disproved
by actual parseWorkerReply rejecting NaN and both infinities, as the installed
TypeBox validator calls Number.isFinite. No accepted finding remains.

One kept Memory Core generation-lease case hits its unchanged five-second
embedding-start deadline on both candidate and unchanged task base 9e3e16c.
It bypasses changed outcome/probe bookkeeping. It is not claimed passing or
fixed. Typed-lint declaration preparation and full Active Memory suite startup
also exceeded unchanged deadlines. Broad build/check-changed and PR CI unrun.
Below-500 branch-only packet for bundling; Phase E remains untouched.

* refactor(plugins): consolidate remaining feature and provider owners

Replace ACPX trust scanning with the existing TOML parser, consolidate Logbook operation dispatch, reuse SDK FIFO playback admission, and prepare wiki claims once. Remove repeated internal validation and redundant copies while retaining external validation, live authority, resource bounds, durability and Phase E. Shrink only the assertion allowances eliminated by these removals. The complete branch removes 750 net production lines. Accepted timing and internal-mutation tradeoffs, provenance, review decisions and proof are recorded in the PR body and requested local ledger.

* test(plugins): align checks with simplified owners
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…aw#173064)

* refactor(plugins): consolidate provider and feature paths

Share Google SSE startup, OpenAI voice configuration preparation and MiniMax
request credentials. Reuse the SDK FIFO permit pool for Session Share and
return Logbook's committed standup receipt instead of rereading its write.
Remove repeated ONNX validation after the existing schema boundary and unused
response/header copies. Preserve public surfaces, auth, resource bounds,
snapshot limits, user-data durability and shutdown settlement. Phase E stays
untouched. Simplify ordinary Memory Core sync-error bookkeeping and remove
late-probe cache fencing and synthetic multi-process LanceDB startup retries.
Remove redundant Bonjour sentinel/cleanup/listener defenses while retaining
network-error handling and stop settlement.
Net production reduction: 217 lines;
test reduction: 204 lines.

Best-effort tradeoffs accepted:
- Active Memory's synthetic maximum-Date clock no longer bypasses caching;
  1802f6b introduced the forced-clock fixture, not a human-use report.
- Voice Call's synthetic maximum-Date clock uses numeric expiry and always
  admits the cache entry before native Promise rejection cleanup;
  c7b888b introduced the forced-clock fixture, not a human-use report.
- Future mutation of an internal webhook response is not isolated by copies;
  openclaw#118754 records synthetic HTTP proof, and no current consumer mutates it.
- A publication racing compiled-cache reconciliation is picked up on the next
  lifecycle refresh; openclaw#110167 pins a synthetic lookup interleaving, not an incident.
- A later parallel standup may overwrite the stored day, while each caller gets
  its own committed receipt; openclaw#99930/openclaw#144982 add the self-reread without an incident.
- Deliberate mutation of Fal's internal image array during credential lookup may
  reach provider validation; migration d365cd8 already had a guarded caller.
- Future mutation of Comfy's internal GET headers is not isolated by extra copies;
  openclaw#167205 retained these copies, but the current consumers are read-only.
- An embedding probe finishing during adapter replacement can cache old
  availability for the existing 30-second TTL or until invalidation; openclaw#144252
  and related openclaw#135599/openclaw#141280 describe architecture/synthetic lifecycle proof,
  not a human incident. Provider authority and shutdown drainage stay intact.
- A competing LanceDB initializer exposing a table before its first readable
  version may fail startup and need the next invocation/restart. openclaw#105896's
  retry proof coordinates six processes; openclaw#105680 describes source inference,
  and its review explicitly notes that no actual failure log was supplied.
  Atomic existOk creation, schema/agent checks and user-data durability stay.
- Internal handled-sync failure calls no longer re-check a tracked-active flag;
  openclaw#133239 introduced the bookkeeping, but every production caller is already
  inside tracked sync. A future untracked internal caller records its advisory
  failure directly. Deferred work and real overlapping failure identity stay.
- Nonfinite ONNX logits still fail at the TypeBox IPC schema boundary; openclaw#153476
  redundantly scanned the same validated vector a second time. No malformed
  network/worker input is newly admitted.
- Bonjour's fixed-path existsSync no longer catches impossible filesystem
  exceptions; direct 1fa8665 cites no incident and Node already returns false.
  A throwing monkey-patch now fails startup visibly.
- Bonjour cleanup no longer repeats stopPromise's once-only bookkeeping;
  2ef6daa added the flag for smoke stabilization without a user incident.
  Failed startup cannot expose a stop handle; SDK unsubscribe is idempotent.
- Bonjour's fixed EventEmitter listeners no longer swallow attachment errors;
  direct 836f011 cites no incident, and pinned Ciao inherits ordinary on().
  A future dependency-contract violation follows existing startup cleanup.

Proof: targeted production/test types, syntax lint, formatting, zero runtime
and Madge cycles, SDK source boundaries, lint-suppressions and focused plugin
owner/sibling suites. Fresh independent review's sole ONNX finding is disproved
by actual parseWorkerReply rejecting NaN and both infinities, as the installed
TypeBox validator calls Number.isFinite. No accepted finding remains.

One kept Memory Core generation-lease case hits its unchanged five-second
embedding-start deadline on both candidate and unchanged task base d6898f3.
It bypasses changed outcome/probe bookkeeping. It is not claimed passing or
fixed. Typed-lint declaration preparation and full Active Memory suite startup
also exceeded unchanged deadlines. Broad build/check-changed and PR CI unrun.
Below-500 branch-only packet for bundling; Phase E remains untouched.

* refactor(plugins): consolidate remaining feature and provider owners

Replace ACPX trust scanning with the existing TOML parser, consolidate Logbook operation dispatch, reuse SDK FIFO playback admission, and prepare wiki claims once. Remove repeated internal validation and redundant copies while retaining external validation, live authority, resource bounds, durability and Phase E. Shrink only the assertion allowances eliminated by these removals. The complete branch removes 750 net production lines. Accepted timing and internal-mutation tradeoffs, provenance, review decisions and proof are recorded in the PR body and requested local ledger.

* test(plugins): align checks with simplified owners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: googlechat Channel integration: googlechat channel: line Channel integration: line channel: reef Channel integration: reef channel: signal Channel integration: signal channel: tlon Channel integration: tlon channel: zalo Channel integration: zalo extensions: comfy extensions: diagnostics-otel Extension: diagnostics-otel extensions: diffs extensions: fish-audio Extension: fish-audio extensions: microsoft-foundry extensions: minimax extensions: oc-path extensions: perplexity P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: cua-computer plugin: facetime FaceTime plugin plugin: imap rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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