Skip to content

refactor(auto-reply): deslop auto-reply and channels - #164547

Merged
steipete merged 2 commits into
mainfrom
deslop/l353-auto-reply-channels2-batch-20261003
Oct 3, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l353-auto-reply-channels2-batch-20261003

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Auto-reply and channel orchestration still had forwarding layers, duplicate projections and test-only runtime options after the previous cleanup pass.

User Impact

No intended user-visible change: command parsing, reply text, delivery ordering, persisted data, configuration and the public plugin SDK remain unchanged. Channels retain transport responsibilities.

Why This Change Was Made

This second-pass batch removes 403 net production lines, 184 net test/support lines, and one retired tooling-list entry. It is BELOW-1000 after completing the file coverage audit; the remaining large owners retain concrete lifecycle, authority, prompt-byte or public SDK contracts.

The simplifications are:

  • Detect commands with the canonical alias map, removing the parallel exact set and generated detector regex.
  • Inline one-use ACP steer, diagnostics and private-route forwarding; reuse reset context and use a Map for approval aliases.
  • Keep CLI terminal events with fallback settlement, deleting the unused terminal-event option and provider argument.
  • Derive bootstrap-warning state once in fallback orchestration, removing adapter result fields.
  • Delete the memory-flush visible-error callback and formatter, which had no production callers; retain failure accounting and compaction notices.
  • Remove strict-directive forwarding adapters, an unused parser knob, test-only skill-tool injection, redundant progress/media helpers and an unreachable media branch.
  • Remove the dispatch runtime facade and migrate its consumers/mocks to the canonical session, path and hook owners.
  • Share overflow-summary delivery and before-reply recovery transitions; preserve source custody, admission and exact-owner guards.
  • Share inbound context block rendering, simplify fuzzy model candidate projection and inline tool metadata flag parsing.
  • Inline channel threading context, use the canonical ingress claim shape, and remove redundant message-action discovery branches.

No independently verified bug was found along the way. The timing cleanup was excluded because its required shared assertion-baseline update overlaps other open campaign PRs.

Evidence

  • Independent autoreview: no P0/P1 findings on the final batch.
  • AWS Crabbox cbx_a737e62fe8c6: 43 focused files, 1,281 tests passed. Project timings: unit 5.48s, infra 210.89s, auto-reply 31.41s, CLI support 6.02s, channels 9.55s. Existing storage-backed integration suites retain their durable-state and lifecycle coverage; no new long-running tests were added.
  • Both import-cycle checks: zero cycles. Session-accessor boundary check passed.
  • Command parsing: 8,064 differential cases match the unchanged base.
  • Candidate source verified against the pinned base and a per-file SHA-256 manifest before the final run; raw Git patch hashing was replaced because macOS uses histogram diff formatting.
  • Changed-file guards passed on AWS through the compiler phase. A reset-boundary type-widening error was corrected; the final core typecheck passed. Local cycles remained zero and three real reset-path tests passed under the authorized low-priority fallback. The remaining full check lanes are delegated to exact-head hosted CI.
  • Remote validation run. Testbox attempts did not reach tests; validation used the authorized AWS fallback.

Post-CI correction and integration: the branch includes the existing main maintenance-fixture fix and a one-variable lint rename. git range-diff confirms the rebase preserved both patches. Both cycle checks remained zero; six tool-metadata tests and the targeted lint check passed. A local maintenance recheck under the overloaded host hit 60-second timeouts and follow-on retired-session/fixture failures; it is recorded as failed, not passing evidence. Exact-head hosted CI subsequently cleared the two previously failing memory transcript cases.

Final hosted evidence: CI run 37158827995 on exact head 8f75e8ce13e0f6bca84e5436c8642c640b90ae39 completed with 64 successful jobs, 22 skips, and one inherited failing leaf job (checks-node-changed-extensions-bundle-12; Copilot cases below), plus the aggregate CI gate. The two memory transcript cases pass in job 111307981177; core production types, lint, UI E2E and security-fast pass. Security Review 37159339918 reports no dependency changes requiring review and no sensitive product changes; its combined gate is red solely because CI is red. The maintainer-authorized inherited-failure exception applies only to the independently reproduced Copilot failure, with the merge pinned to this exact head.

Inherited CI evidence from the first head:

  • Dashboard layout: ui/src/e2e/board-mcp-app.e2e.test.ts, “retains one board runtime across split, expanded, and inactive panel states,” expects bottom/body-height gap 0 and receives 602. Identical failure on main run 37150519938, UI job 111283444404. This PR changes no UI or dashboard code.
  • Copilot tool bridge: 11 fixture failures caused by Tool Search being enabled by default while helpers select tools[0] as the requested tool (including provide query or queries, missing web_fetch/exclusive, and the ordering timeout). The same cases fail on unrelated current run 37157050744, job 111302737203, head 79ac6d84b3b8aad1b649bcdb5e672600fec4e8b2. Its changed files do not include the Copilot fixtures or tool-search/surface owners. Those owners are also unchanged by this PR; isolated Copilot forks inject their own tool constructor and do not import the changed auto-reply fixtures.
  • The memory transcript fixture failures were already repaired on main by fd4131f3b26d912c7a91409053f268d53cec43de; this branch integrates that fix. The one PR-owned lint failure was corrected by renaming the shadowing callback parameter.

The coverage log below records the examined production files over 200 lines at baseline ee9127b79e98bc5b07ae7e61f7ce3611d620140c; the trace harness is included conservatively as test support.

Complete largest-first coverage log

Baseline ee9127b79e98bc5b07ae7e61f7ce3611d620140c. Production files over 200 lines in src/auto-reply and src/channels, largest first; tests, fixtures and generated assets excluded. The trace harness is included conservatively as test support.

Lines File Status Disposition
1636 src/auto-reply/reply/export-html/template.js READ Prior pass already consolidated tree layout/rendering; remaining code is artifact rendering, navigation and URL/HTML security.
1454 src/auto-reply/reply/agent-runner-memory.ts READ Removed test-only visible-error callback; retained persisted failure accounting, cancellation, compaction, native-runtime and byte-latch ownership.
1343 src/channels/streaming.ts READ Retain shipped progress-formatting and SDK contracts, transport-specific mode defaults, bounded line selection, and correlation identity; display bytes and legacy July+ options must stay stable.
1312 src/auto-reply/reply/queue/drain.ts READ Consolidated retained and elided overflow summary delivery through one owner; admission, retries, cancellation, source accounting and FIFO remain intact.
1247 src/auto-reply/reply/get-reply.ts READ Retained media staging, prompt-byte and authority ordering; timing cleanup excluded because its required shared baseline overlaps concurrent PRs.
1236 src/auto-reply/reply/session.ts READ Retained initialization compare-and-swap, generation revalidation, reset hooks and explicit field clearing; apparent repeated base projections preserve missing-field semantics.
1051 src/auto-reply/reply/export-html/template.css READ Active responsive transcript styles; selector consolidation has cascade risks and no structural ownership gain.
905 src/channels/plugins/types.core.ts READ Retain public channel discovery/messaging/authority contracts; open-PR overlap explicitly excludes edits, and deprecated aliases have external SDK contracts.
897 src/channels/plugins/setup-wizard-helpers.ts READ Retain public setup helpers for credentials, account promotion, allowlists, and prompt behavior; wrappers are SDK contracts and callbacks have real channel consumers.
815 src/auto-reply/reply/dispatch-acp.ts READ Retain ACP admission, delegated-authority lifecycle, cancellation and transcript settlement; audit closure is excluded.
768 src/auto-reply/reply/reply-dispatcher.ts READ Retained serialized send/settlement chains, durable final custody, and per-enqueue outcomes; x01 owns adjacent before-deliver boundary.
748 src/channels/message/ingress-monitor.ts READ Retain: admission/claim exclusion, deferred delivery custody, restart fencing, and shutdown settlement are distinct live contracts; public options have active callers.
748 src/channels/message/ingress-drain.ts READ Retain: claim recovery, lane ordering, retry windows, adoption watchdog and joined disposal each protect a distinct ownership transition; tiny duplicate eventId/settled facts can be removed.
730 src/channels/plugins/message-action-dispatch.ts READ Retain provider/current-conversation admission and per-request live authority; scheduled writer policy is in the protected automation closure.
728 src/auto-reply/reply/dispatch-acp-delivery.ts READ Retain per-payload custody and TTS/block recovery state; apparently redundant final flags have recovery consumers.
727 src/auto-reply/reply/reply-run-registry.state.ts READ Retained live maps and settlement barriers; they preserve module identity, old-session lineage and handoff ordering across asynchronous writers.
726 src/channels/progress-draft-compositor.ts READ Retain progress owner for delayed visibility, acceptance-based dedupe, item retraction, transfer state, and final-reply cancellation; parameters are published SDK/transport contracts.
723 src/auto-reply/reply/reply-turn-admission.ts READ Retained current database incarnation and lifecycle fencing; heartbeat admission belongs to concurrent Automations work and was not edited.
723 src/auto-reply/reply/inbound-meta.ts READ Consolidated seven marked JSON context append paths without changing block labels, payloads, or order.
717 src/auto-reply/reply/directive-handling.impl.ts READ Directive transaction validates live model/auth authority and commits touched fields atomically; acknowledgement text/order is user-visible.
716 src/channels/turn/lifecycle.ts READ Retain shared routed/legacy delivery owner, deferred settlement and partial-send facts; direct audit token and pending-final custody are protected ownership contracts.
702 src/auto-reply/reply/agent-runner-result-payloads.ts READ Final delivery, continuation custody and suppression decisions have distinct observable ordering; no further sound simplification found.
701 src/channels/message/ingress-queue.kernel.ts READ Retain: guarded SQL transitions, bounded corrupt repair and cursor paging preserve durable state and opaque JSON behavior; no redundant owner found.
700 src/channels/plugins/types.adapters.ts READ Retain public config/status/gateway/approval/setup/security adapter contracts; synchronous compatibility and V1/V2 lifecycle distinctions are explicit, with legacy migration removal scheduled for 2027.1.
696 src/auto-reply/reply/dispatch-from-config.choose-route.ts READ Direct and routed delivery have distinct receipt/custody contracts; final fallback and transcript mirroring cannot be merged blindly.
694 src/channels/plugins/read-only.ts READ Retain manifest-only channel inventory, setup fallback, config rebinding, and credential-safe metadata; caches belong to plugin metadata lifecycle.
692 src/auto-reply/reply/agent-runner-run.ts READ Admission, queued handoff, steering and source recovery are distinct owner transitions; avoided removing authority or retry-custody checks.
688 src/auto-reply/reply/get-reply-run-execute.ts READ Run descriptor carries prepared facts and cron creator authority; excluded cron authority closure left untouched.
678 src/auto-reply/reply/get-reply-run-admission.ts READ Queue admission rereads session identity and authority after awaits; heartbeat preemption and recovery owners retained.
675 src/auto-reply/reply/dispatch-from-config.lifecycle.ts READ Removed static runtime facade; call canonical read-only session accessor directly. Admission and cancellation fences unchanged.
671 src/channels/plugins/setup-wizard.ts READ Retain sequenced credential/text/access workflow and temporary account scope; async prepare/finalize and environment shortcuts have active plugin consumers.
671 src/auto-reply/command-auth.ts READ Provider inference, allowlist fallback, current-owner revalidation and reset-only admission are distinct security contracts.
665 src/auto-reply/reply/get-reply-inline-actions.ts READ Removed test-only skill tool dependency injection and redundant runtime type; lazy canonical tool owner mocked in tests.
659 src/auto-reply/reply/reply-run-registry.operation.ts READ Retained concrete operation lifecycle owner; getters and callbacks preserve live mutable authority, cancellation and timed owner settlement.
656 src/auto-reply/reply/agent-runner-execution.ts READ Deferred lifecycle cleanup, cancellation freezing and live model fallback are real boundaries; no further sound simplification found.
651 src/auto-reply/reply/model-selection.ts READ Retained policy/catalog authority, persisted pin recovery, lazy catalog and thinking caches; heartbeat coupling is excluded.
639 src/channels/message-access/admission-evidence.ts READ Retain opaque branded evidence, audit-generation invalidation, bounded aggregation, and single-use handoff; protected audit/identity closure.
637 src/auto-reply/commands-registry.shared.ts READ Registry defines visible commands and argument menus; builder already owns default policy.
604 src/auto-reply/reply/followup-delivery.ts READ Routing fallback distinguishes same-channel retry from cross-channel nondisclosure and durable delivery custody; retain distinctions.
593 src/auto-reply/reply/dispatch-from-config.gather.ts READ Retain source/target session distinction and current plugin/runtime generation snapshots; message audit closure excluded.
590 src/auto-reply/reply/reply-run-registry.registry.ts READ Retained registry API and normalized public lookups; waits, stale eviction and exact-instance restart cancellation have distinct contracts.
586 src/channels/message/live.ts READ Retain shared stateful/stateless preview promotion algorithm and generation ownership; partial delivery, supplemental sends, and cleanup acceptance prevent duplicate sends.
577 src/channels/inbound-event/context.ts READ Retain public sync/async context construction, visibility filtering, and host-evidence wrapping; small forwarding layer is intertwined with protected admission-evidence closure and overload inference.
572 src/auto-reply/reply/get-reply-directives-apply.ts READ Model-only selection uses focused canonical service while mixed directives use atomic session transaction; distinct behavior prevents consolidation.
567 src/auto-reply/reply/get-reply-directives.ts READ Authorization, skill command reservation, model defaults and transcript projection are distinct ordered decisions; retain current owner.
567 src/auto-reply/reply/dispatch-from-config.finalize.ts READ Retain per-payload terminal receipts, pending finals and heartbeat settlement; audit/heartbeat closure excluded.
557 src/auto-reply/reply/restart-recovery-claim.ts READ Consolidated before-agent-reply begin and checkpoint into one exact-owner persisted transition; retained source claims and lifecycle checks.
557 src/auto-reply/reply/agent-runner-failure-reply.ts READ Error precedence and exact visible recovery copy are externally observable; retained classified and generic branches.
556 src/auto-reply/templating.ts READ Public inbound and template contexts retain shipped SDK aliases; prompt scalar serialization is already direct.
548 src/auto-reply/reply/reply-run-registry.message-injection.ts READ Retained V1/V2 adapters for explicitly named shipped compatibility and source-bound authority; acceptance and commitment differ intentionally.
544 src/auto-reply/reply-payload.ts READ WeakMap metadata preserves authority and transcript custody across copies without changing wire shape.
541 src/auto-reply/reply/commands-allowlist.ts READ Config and pairing writes have distinct authorization and persistence contracts; retained both.
540 src/auto-reply/reply/agent-runner-cli-dispatch.ts READ Removed terminal event owner reachable only through test defaults; fallback settlement remains sole production terminal owner.
530 src/auto-reply/reply/reply-media-paths.ts READ Retained mounted-workspace and remote-media authority checks plus preparation/application split that avoids reopening files.
527 src/auto-reply/reply/agent-runner-cli-candidate.ts READ Removed dead lifecycle option and unused provider forwarding; return canonical CLI result without derived bootstrap wrapper.
526 src/channels/plugins/outbound/presentation-limits.ts READ Retain action/select budgets, global priority selection, and complete fallback text; apparent duplicate truncation differs for malformed surrogate preservation.
515 src/channels/message-access/runtime.ts READ Retain canonical policy orchestration and host authority checks; raw versus normalized allowlists and sender/command/activation projections serve distinct public contracts.
513 src/auto-reply/reply/commands-session.ts READ Idle/max-age lifecycle already share one flow; retained expiry and owner checks.
509 src/auto-reply/reply/dispatch-from-config.execute.ts READ Progress callbacks carry delivery visibility and lifecycle settlement; no removal without changing start order or custody.
507 src/auto-reply/reply/commands-diagnostics.ts READ Removed one-use diagnostics export forwarding layer; approval integration remains before exec.
506 src/auto-reply/reply/commands-acp/lifecycle.ts READ Inlined one-use ACP steer forwarding helper while retaining admission and authority settlement.
503 src/auto-reply/reply/dispatch-from-config.prepare-context.ts READ Retain plugin transcript persistence retries and dedupe recovery tied to session incarnation; policy and turn-local mode remain distinct.
497 src/channels/message/ingress-queue.ts READ Retain: worker admission fencing and policy snapshot revalidation are required after awaits; public optional queue operations retain external plugin contracts.
496 src/auto-reply/reply/get-reply-run-context.ts READ Stable prompt bytes and CLI binding facts intentionally differ from turn-local delivery state; synthetic-turn contracts retained.
496 src/auto-reply/reply/agent-runner-core.ts READ Core helpers each encode delivery-custody, generation or source policy invariants; no obsolete public-free owner found.
490 src/auto-reply/reply/commands-tts.ts READ Preference commands share parsing/gates; audio latest path has distinct persistence contract.
486 src/auto-reply/reply/commands-models-catalog.ts READ Prepared catalog routing, credentials and publication-current checks are observable contracts.
484 src/channels/plugins/bundled.ts READ Retain lazy per-artifact loading and registry-lifecycle cache, source-root boundary checks, recursion guards, and distinct failure isolation.
480 src/auto-reply/reply/stage-sandbox-media.ts READ Retained exclusive staging, abort fences, local/SSH/SCP ownership and original-media rewrite contracts.
479 src/auto-reply/chunk.ts READ Grapheme, Unicode separators and code fences impose distinct splitting contracts, recently consolidated.
478 src/auto-reply/reply/followup-turn-admission.ts READ Retained generation-fenced session owner and late preflight publication; detached/session union prevents mismatched storage targets.
477 src/channels/message/send.ts READ Retain shared send owner; raw/structured delivery selection, partial-send receipts, queue intent, preview lifecycle, and ephemeral writer fences serve distinct public and durability contracts.
477 src/auto-reply/reply/block-reply-pipeline.ts READ Retained serialized streaming, occurrence-sensitive dedupe and terminal-delivery evidence; simplification would collapse distinct settlement facts.
476 src/auto-reply/reply/agent-runner-result-accounting.ts READ Accounting keeps captured compaction targets separate from current session projection and fallback identity; no sound cut found.
475 src/auto-reply/reply/agent-runner-execute.ts READ Restart claim, user admission, compaction and before-reply checkpoints own different commit boundaries; no sound cut found.
471 src/auto-reply/dispatch.ts READ Plain/projected and buffered/routed wrappers preserve different hook ownership and FIFO settlement contracts.
470 src/channels/message-access/state.ts READ Retain canonical normalization, redacted exact-pair authentication, dynamic group facts, and bidirectional origin-subject matching; adapter compatibility is documented.
465 src/auto-reply/reply/commands-context-report.ts READ Text/JSON/map reporting has distinct output contracts; retained cached-run vs estimated report distinction.
464 src/auto-reply/reply/reply-run-registry.contracts.ts READ Retained plugin-facing injection and operation contracts, including named August V1 compatibility; type-only deduplication would not simplify runtime ownership.
463 src/auto-reply/reply/route-reply.ts READ Retained raw/prepared operation boundary, source-route policy matching, and ambiguous/queue-custody outcomes.
463 src/auto-reply/reply/commands-compact.ts READ Compaction authority, writer fences and accounting ordering are required lifecycle contracts.
462 src/auto-reply/thinking.ts READ Catalog identity, provider profiles and harness modes retain explicit policy ownership and public consumers.
461 src/auto-reply/reply/followup-turn-execution.ts READ Progress sequencing and separate tool/progress failures preserve delivery ordering and first-failure priority; retained bounded drain.
455 src/channels/turn/types.ts READ Retain public turn input/result types; provider-owned versus core-owned delivery union enforces hook ownership and prepared lifecycle types preserve admission/settlement authority.
451 src/auto-reply/commands-registry.ts READ Public native specs/argument menu APIs have real callers and provider adapter lifecycle contracts.
446 src/auto-reply/reply/context-treemap.ts READ Retained byte/pixel-sensitive renderer and dependency-free font rasterization; l340 already simplified binary layout.
446 src/auto-reply/reply/agent-runner-payloads.ts READ Final dedupe uses distinct media normalization, stream and receipt evidence; SDK testing export prevents treating knobs as private dead API.
444 src/channels/message/types.ts READ Retain canonical receipt, rendering, live-message, durable-send, reconciliation, and acknowledgement contracts shared by channel adapters and SDK; no removable private implementation layer.
439 src/channels/plugins/catalog.ts READ Retain catalog source precedence and official-doc trust binding; install provenance, prerelease specs, and workspace exclusion are independent public contracts.
439 src/auto-reply/inbound-debounce.ts READ Admission and completion must release separately; keyed reservations, cancellation generations and monotonic deadlines are required.
437 src/auto-reply/reply/mentions.ts READ Retained Unicode grapheme/decorated-name regex construction, bounded caches and literal command-stripping semantics.
434 src/auto-reply/reply/progress-narrator.ts READ Retained turn cancellation, bounded visibility retries, preamble age and utility-model credential refresh contracts.
434 src/auto-reply/reply/commands-acp/shared.ts READ ACP parsers preserve flag spelling, Unicode dash handling and exact usage errors; helpers reused.
430 src/auto-reply/reply/get-reply-native-slash-fast-path.ts READ Real lazy boundary avoids full model/workspace setup for commands; status owner retains selected versus active model semantics.
428 src/auto-reply/reply/reply-tool-authority.ts READ Retained exact explicit overlay projection: missing keys must clear old authority, so object spread would change security semantics.
427 src/auto-reply/reply/commands-models.ts READ Provider/list menus differ intentionally; model names include readiness labels only when added by menu.
425 src/channels/status-reactions.ts READ Retain serialized reaction updates, terminal hold cancellation, non-atomic cleanup, and acknowledgement presentation; timer and active-emoji state track distinct ownership.
425 src/auto-reply/get-reply-options.types.ts READ Shipped callback and lifecycle SDK surface plus reserved audit and heartbeat dependencies; retained public contract.
423 src/auto-reply/reply/agent-runner-utils.ts READ Runtime config/secrets and source capability helpers retain lazy loading, routing and exact authority checks; no sound cut found.
421 src/channels/plugins/message-action-discovery.ts READ Applied: use the existing empty-result projection when no adapter exists and remove logging operation knob fixed to describeMessageTool; lazy catalog/discovery behavior and error text unchanged (-12 production lines).
411 src/auto-reply/reply/agent-runner-trace.ts READ Diagnostic format helpers preserve exact visible bytes and projected prompt attribution; no sound cut found.
409 src/auto-reply/reply/dispatch-from-config.prepare-operation.ts READ Bound plugin route checks repeat after async activity/persistence by design; command fast paths and claim custody remain separate.
408 src/auto-reply/reply/queue/enqueue.ts READ Retained parked-steer predecessor ordering, overflow protection and exact source lifecycle retention; each callback owns a distinct phase.
406 src/auto-reply/reply/acp-projector.ts READ Retained ACP hidden-tool boundaries, output budgets, live/final-only modes and tool lifecycle suppression.
405 src/channels/conversation-resolution.ts READ Applied: inline the one-use threading-context DTO and reuse normalized command sender/chat facts; provider fallback ordering, omitted fields, and target parsing stay unchanged (-15 production lines).
398 src/auto-reply/reply/abort-operation.ts READ Retained command authorization, exact session/run identities, cancellation ordering and persistent abort cutoffs.
396 src/channels/plugins/setup-helpers.ts READ Retain SDK setup/account mutation owner; default/named-account promotion and collision-aware account keys have public configuration and upgrade contracts.
389 src/channels/plugins/setup-wizard-types.ts READ Retain public declarative and imperative setup contracts; credential, access, account selection, deferred write hooks, and paused-result distinctions are meaningful separate steps.
386 src/auto-reply/reply/commands-login.ts READ Session adoption and retained login/model-access flows require separate authority and persistence checks.
385 src/channels/message-access/runtime-types.ts READ Retain SDK-exported ingress inputs and projections; deprecated dangerous/mutable-identifier fields have an explicit next-SDK-major removal contract.
384 src/auto-reply/reply/agent-runner-embedded-candidate.ts READ Removed duplicated derived bootstrap-warning return field; retained maintenance auth, compaction facts and source-delivery callbacks.
380 src/channels/message-access/types.ts READ Retain shared redacted/internal identity and gate contracts; separate normalized types encode stronger authentication guarantees without widening public inputs.
380 src/auto-reply/reply/directive-handling.shared.ts READ Canonical directive field tables already consolidate persistence; touched-field and stored-value semantics must remain distinct.
373 src/channels/plugins/group-policy-warnings.ts READ Retain SDK warning composition and provider group-policy adapters; shared factory already consolidates the two policy flows, and warning text must remain identical.
359 src/channels/message-access/decision.ts READ Retain ordered route/sender/command/event/activation decision flow and diagnostic graph; early exits and mention ordering are observable policy behavior.
359 src/channels/message-access/admission-evidence-scope-key.ts READ Retain accessor-free bounded snapshots and exact identity/context scope matching; validations reject forged or mutated plugin handoffs and belong to protected audit closure.
356 src/auto-reply/reply/bash-command.ts READ Retained process-registry scope and single active shell lifecycle; outputs and command parsing are observable contracts.
356 src/auto-reply/reply/agent-runner-fallback-candidate.ts READ Canonical fallback owner now derives bootstrap-warning state once from either runtime result.
355 src/auto-reply/reply/dispatch-from-config.prepare-execution.ts READ Inlined one-use plan formatter and item-event option descriptor; removed redundant optional callback presence branch.
348 src/auto-reply/reply/session-updates.ts READ Retained first-turn versus ordinary snapshot persistence ordering; coalescing branches would move async stale-session checks.
347 src/auto-reply/group-thread-dispatch.ts READ Participant dispatch preserves per-child counts and root delivery ownership; reset projections intentionally clear runtime authority.
341 src/auto-reply/reply/model-selection-directive.ts READ Removed weighted-score option-object and nested candidate projection boilerplate; scoring, tie order and selected IDs preserved.
340 src/auto-reply/reply/queue/delivery-context.ts READ Retained authorization and route identity keys plus explicit compact-source projection; broad object spread would carry forbidden transient metadata.
339 src/channels/turn/execution.ts READ Retain canonical record/dispatch/finalize owner; echo suppression, loop guard, observe-only behavior, history settlement, and diagnostic trace scope have distinct ordering and compatibility contracts.
337 src/auto-reply/reply/commands-plugins.ts READ Inspect/install/enable paths own distinct lease, consent and snapshot behavior.
332 src/channels/draft-stream-controls.ts READ Retain public finalizable preview lifecycle and generation-aware create/delete custody; retries, serialized cleanup, and retained IDs prevent duplicate or missing previews.
331 src/auto-reply/reply/followup-runner.ts READ Consumption precedes accounting/delivery to prevent side-effect replay; lifecycle cleanup and source completion paths must remain distinct.
330 src/channels/plugins/binding-routing.ts READ Retain account/conversation binding inspection and incarnation-aware post-await checks; timeout and late-settlement diagnostics preserve driver ownership.
329 src/channels/plugins/contracts/trace/delivery-trace.ts READ Test support: imported Vitest trace recorder; retained fake-clock wire ordering and canonical golden serializer.
326 src/auto-reply/reply/dispatch-from-config.prepare-delivery.ts READ Inlined single-use lazy media normalizer accessor into its only consumer; original lazy load and per-turn cache retained.
324 src/auto-reply/reply/history.ts READ Retained bounded history/media behavior and deprecated aliases exported by public plugin-sdk/reply-history.
323 src/auto-reply/reply/commands-system-prompt.ts READ Sandbox context inspection needs host/container boundaries and fallback behavior.
320 src/channels/plugins/config-schema.ts READ Retain SDK Zod input/output types and JSON runtime validation/defaults; v3 compatibility, strict group schemas, and multi-account refinements are published contracts.
320 src/auto-reply/reply/reply-payloads-dedupe.ts READ Retained account/thread-aware route matching, explicit transport policy and synchronous/asynchronous media normalization contracts.
320 src/auto-reply/reply/queue/types.ts READ Retained exported queue settings and FollowupRun contract; narrowing or field removal would alter plugin SDK surface.
319 src/auto-reply/reply/queue/state.ts READ Retained queue incarnation, summary capacity and mutable session selection ownership; optional field-presence checks encode explicit clears.
316 src/auto-reply/reply/commands-export-session.ts READ Export HTML, transcript migration, tree leaves and warning text are persisted/artifact contracts.
315 src/auto-reply/reply/directive-handling.model.ts READ Model summary, status and legacy list command outputs are distinct supported surfaces; configured/auth provider filtering retained.
312 src/auto-reply/heartbeat-filter.ts READ Read only; reserved concurrent Automations/heartbeat lane owns transcript filtering.
309 src/auto-reply/reply/commands-approve.ts READ Replaced prototype-sensitive alias object plus repeated hasOwn checks with Map lookup.
306 src/channels/turn/durable-delivery.ts READ Retain final-delivery authority and support admission, raw/prepared send distinction, partial-send settlement, and visible-content projection; directly imports protected audit execution identity token.
304 src/auto-reply/reply/agent-runner-steer-adoption.ts READ Parked input custody can survive loss of steerPending; catch and finally are not equivalent and must preserve aborted fallback consumption.
303 src/auto-reply/reply/session-reset-command.ts READ Retained anchored raw-text command parser; sender prefixes, mentions and transcript exclusions protect identical command interpretation.
302 src/channels/plugins/setup-contract.ts READ Retain typed channel-owned setup parsing and published legacy adapter boundary; unknown-input callbacks deliberately revalidate at public invocation boundaries.
301 src/auto-reply/tokens.ts READ Silent-token boundary and custom-token regexes preserve visible prose and have distinct parser contracts; heartbeat tokens reserved.
300 src/channels/plugins/message-action-current-conversation.ts READ Retain exact account/provider/typed-target matching and bundled-only alias proof; rejects conflicting targets and awaits provider proof without weakening live authority owner.
299 src/channels/plugins/package-state-probes.ts READ Retain bundled source-overlay versus built-artifact lookup and configured/auth state probes; absent backing-store shortcut avoids loading operational runtime.
299 src/channels/plugins/dm-access.ts READ Retain documented top/nested DM config and Doctor paired migration contract; these aliases are SDK-exported and used by current channel configurations.
297 src/auto-reply/reply/startup-context.ts READ Retained bounded source reads, calendar windows, newest-file ordering and binary fit preserving untrusted-note fences.
297 src/auto-reply/reply/agent-runner-error-handler.ts READ Failure precedence, live-switch retries and abort classification own observable recovery semantics; no sound cut found.
293 src/channels/turn/run-channel-turn.ts READ Retain staged adapter admission and dropped-history recording; prepared/routed/assembled dispatch cases carry different runtime ownership, and finalize/error ordering is observable.
287 src/auto-reply/reply/commands-acp/runtime-options.ts READ ACP single-option commands already share parsing/target/error flow; preserve descriptor-specific validation.
285 src/channels/plugins/config-helpers.ts READ Retain canonical config writes and account cleanup; root/default deletion, explicit disabled flags, collisions, and field-presence semantics are distinct contracts.
284 src/auto-reply/reply/agent-runner-result-complete.ts READ Durable final-delivery intent and recovery state are generation-sensitive; avoided heartbeat-owned behavior and persistence changes.
283 src/auto-reply/usage-bar/translator.ts READ User-authored template DSL supports different formats and coercion/fallback behavior; removing branches changes configured footer output.
283 src/auto-reply/reply/agent-runner-event-handler.ts READ Event projections preserve tool-only suppression timing and raw payload validation; no sound cut found.
281 src/auto-reply/reply/commands-info.ts READ Handler gates shared; tool inventory context owns acquisition/disposal and skill usage needs full inventory.
277 src/auto-reply/reply/dispatch-from-config.block-reply.ts READ Block receipts and TTS source fragments carry independent custody; direct/routed notification timing is observably different.
269 src/channels/account-snapshot-fields.ts READ Retain explicit credential-safe field allowlists and unknown-input normalization; diagnostic redaction cannot use a generic spread or remove boundary checks.
268 src/channels/message-access/runtime-identity.ts READ Retain public descriptor normalization and exact subject provenance; legacy positive match fallback explicitly preserves asserted SDK behavior rather than upgrading trust.
266 src/channels/plugins/session-conversation.ts READ Retain plugin-owned session grammar, absent-registry-only lazy fallback, and explicit parent candidates; public legacy parent hook has a named SDK contract.
266 src/channels/plugins/chat-target-prefixes.ts READ Retain public target/allowlist parsers with throw-versus-ignore malformed-value semantics; service and conversation prefixes have different empty-input behavior.
266 src/auto-reply/reply/reply-delivery.ts READ Retained direct/streamed delivery evidence, silent/media behavior and completed-answer boundaries.
265 src/channels/direct-dm.ts READ Retain published direct and injected-runtime paths with distinct host admission and context finalization contracts; turn plan and payload normalization already have one owner.
263 src/channels/message/ingress-queue.types.ts READ Retain: public SDK queue contract covers real worker, retention, inspection, and operator operations; optional seams explicitly support external queues.
263 src/auto-reply/reply/model-runtime-normalization.ts READ Retained prepared metadata owner, provider route selection and thinking hydration; all exported helpers have live callers.
262 src/auto-reply/reply/conversation-turn-capture.ts READ Retained pre-dispatch correlation, durable reply commit then optional transcript artifact, and lifecycle revalidation.
260 src/auto-reply/reply/commands-private-route.ts READ Removed one-use ranking and preference forwarding wrappers; owner/origin ordering stays in route owner.
256 src/auto-reply/reply/prompt-prelude.ts READ Retained distinct model/transcript/queued body projections and room-event source attribution; bytes are model-facing contract.
256 src/auto-reply/reply/dispatch-from-config.harness-defaults.ts READ Removed runtime facade import; canonical session/path owners preserve read-only behavior and July harness fallback contract.
255 src/channels/plugins/account-config-mutation.ts READ Retain setup preparation/mutation separation, lifecycle authority checks, and no-op deletion detection; delete and disable errors/hooks are intentionally different.
254 src/channels/message/ingress-queue.migration.ts READ Retain: active Sept 30 Telegram Doctor import preserves pending/failure receipts across upgrades; not pre-July legacy deletion.
253 src/channels/plugins/outbound.types.ts READ Retain public transport capability, presentation, target, native grouping, and delivery-callback contracts; extends canonical message context types instead of redeclaring them.
245 src/auto-reply/reply/strip-inbound-meta.ts READ Retained span-based generated-context removal and quoted-marker handling; l340 already removed string-split overhead.
244 src/auto-reply/reply/commands-acp/diagnostics.ts READ ACP doctor/session reporting has separate backend health and visibility contracts.
243 src/channels/progress-draft-status-text.ts READ Retain code-aware reasoning tag parsing and partial-delta buffering; second normalization and snapshot merging preserve visible text under streaming fragments.
242 src/auto-reply/reply/dispatch-from-config.audit.ts READ Read only; explicitly excluded audit closure, terminal evidence reason projection must remain intact.
241 src/auto-reply/reply/typing.ts READ Retained run/dispatch join, TTL/idle cleanup, no-restart seal and callback scheduling.
241 src/auto-reply/reply/queue/cleanup.ts READ Retained captured source identity, pending custody and exact-session generation checks across asynchronous Stop side effects.
240 src/auto-reply/envelope.ts READ Timezone/elapsed/sender formatting are externally visible prompt bytes; cached Intl formatter has explicit hot-path and replacement handling.
238 src/auto-reply/reply/conversation-label-generator.ts READ Retained model/profile dedupe, primary/utility fallback and current operator-authority assertions.
238 src/auto-reply/reply/commands-goal.ts READ Goal aliases share canonical storage actions; continuation prompt escaping is required command boundary.
234 src/auto-reply/reply/dispatch-from-config.context.ts READ Removed runtime facade import; session and path owners called directly, post-await conversation-binding comparison retained.
233 src/auto-reply/reply/dispatch-acp-payload.ts READ Transcript recovery needs original fragment ordering and confirmed-delivery source coverage; shared helpers already own transforms.
228 src/channels/plugins/directory-config-helpers.ts READ Retain public directory listers with distinct string-only versus stringified-ID normalization and inspected/resolved account contracts.
224 src/auto-reply/reply/get-reply-fast-path.ts READ Retain isolated test bootstrap and native command session initialization; reset lineage differs from normal model admission.
222 src/auto-reply/reply/reply-threading.ts READ Retained account/chat-type policy precedence, explicit references and first-reply preview semantics.
221 src/auto-reply/reply/session-usage.ts READ Retained billing versus context chronology and writer-fence accounting; heartbeat state must remain untouched.
221 src/auto-reply/reply/reply-run-registry.tool-authority.ts READ Retained participant custody and frozen route authority owner; lifecycle callbacks are independent of cancellation/settlement policy.
220 src/auto-reply/reply/dispatch-from-config.payloads.ts READ Exact dedupe keys and side-effect preparation protect public payload shape and delivery identity; TTS finalization lease retained.
219 src/channels/message/ingress-claim-owner.ts READ Applied: removed test-only processId/processPid DTO, converter and old-shape branch; canonical ownerId supplies process identity. Net -22 production lines; retained liveness contracts use canonical fixtures.
219 src/channels/join-intro/report-channel-room-join.ts READ Retain room-join durable dedupe and accepted-delivery settlement; directly invokes protected cron owner and is outside editable closure.
219 src/auto-reply/reply/reply-elevated.ts READ Retained stable identity versus mutable label policy and global/agent permission gates.
218 src/auto-reply/reply/inbound-context.ts READ Retained public SDK legacy projections at ingress and stricter runtime shape; aliases have shipped public contracts.
218 src/auto-reply/reply/block-reply-coalescer.ts READ Retained metadata, source-range, visibility and reply-target merge semantics; overflow handling also preserves synchronous callback reentrancy.
216 src/channels/inbound-event/session-transcript-context.runtime.ts READ Retain transcript/chat-window dedupe distinctions, pinned reply targets, owner resolution, and command boundary checks; includes cron direct-delivery history coupling in protected closure.
216 src/auto-reply/group-thread.ts READ Turn budget reservation, adoption and response collection define group execution ordering; public SDK knobs have actual consumers.
215 src/auto-reply/reply/directive-handling.model-selection.ts READ Stored numeric auth profile parsing protects existing model IDs; live operator/profile validation must re-run at commit.
214 src/auto-reply/reply/get-reply-directives-routing.ts READ Raw sender span, normalized command, and model prompt have different authority; preserve byte-exact cleanup and mention projection.
213 src/channels/status/account-state.ts READ Retain canonical account-state projection, failed-plugin credential redaction, and tri-state transport connectivity; state variants encode distinct visible status.
213 src/auto-reply/usage-bar/template.ts READ File watcher/cache owns invalidation, missing-file recovery and warning dedupe; retained bounded lifecycle.
213 src/auto-reply/reply/source-reply-delivery-mode.ts READ Retained sender/current-turn versus stable-session policy and heartbeat-coupled suppression contracts.
212 src/auto-reply/heartbeat.ts READ Read only; reserved concurrent Automations/heartbeat lane owns prompts and acknowledgement semantics.
211 src/channels/conversation-binding-route-facts.ts READ Retain immutable binding-incarnation observations through context spreads and awaited admission; plugin ownership and isolated automation exclusions are protected route facts.
210 src/channels/message/outbound-bridge.ts READ Retain SDK bridge into canonical receipts, sanctioned result-field allowlist and provider callback acceptance; legacy send methods remain published channel contracts.
210 src/auto-reply/reply/commands-reset.ts READ Passed existing reset context to hook owner, removing duplicated field forwarding.
209 src/auto-reply/reply/session-reset-model.ts READ Retained catalog-disambiguated reset model parsing and optimistic transaction checks; public command behavior must stay identical.
209 src/auto-reply/reply/post-compaction-context.ts READ Retained configured section extraction and documented legacy section fallback; prompt text/ordering and bounded reads are visible contracts.
207 src/auto-reply/commands-registry-normalize.ts READ Removed exact-set/mega-regex detection projections; use canonical alias spec for acceptance.
207 src/auto-reply/command-status-builders.ts READ Category, aliases and native pagination preserve command text; public wrappers serve different consumers.
206 src/channels/plugins/account-helpers.ts READ Retain public account enumeration/default-selection helpers with real config/env/nested-account callers; options preserve different channel account models.
206 src/auto-reply/reply/memory-flush-prepare.ts READ Retained detached-session admission, audience-grant release and exact flush-model fallback policy.
204 src/auto-reply/reply/commands-config.ts READ Read redaction and write authorization are distinct; shared path parser/mutation owner retained.
203 src/auto-reply/reply/get-reply-run-helpers.ts READ Removed unreachable empty-layout guard: every admitted image is either suppressed or appended to layout slots.
203 src/auto-reply/reply/block-streaming.ts READ Retained channel/account streaming precedence and distinct rounding/floor behavior; canonical integer helper is not behavior-identical.
203 src/auto-reply/fallback-state.ts READ Fallback active/cleared notices and transient error redaction are distinct visible contracts.

@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 scripts Repository scripts agents Agent runtime and tooling 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:40 PM ET / 22:40 UTC (Revision 2).

ClawSweeper review

What this changes

Simplifies automatic replies and shared channel helpers by removing unused controls, forwarding layers, and duplicate projections while retaining existing behavior.

Merge readiness

⛔ Blocked before merge - 1 item remains

This useful cleanup remains distinct from current main, and no actionable introduced defect was found. The earlier migration blocker is unsupported: the refactor preserves persisted shapes and recovery transition guards.

Priority: P3
Reviewed head: 8f75e8ce13e0f6bca84e5436c8642c640b90ae39

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent internal cleanup with relevant reported validation and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: Verified repository-admin authorship exempts this internal refactor from the external-contributor proof gate. Reported focused validation is supplemental; source comparison shows no material authority change or stored-data-model change requiring additional final-effect or migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Verified repository-admin authorship exempts this internal refactor from the external-contributor proof gate. Reported focused validation is supplemental; source comparison shows no material authority change or stored-data-model change requiring additional final-effect or migration proof.
Evidence reviewed 11 items Introduced patch reviewed: Reviewed the pinned merge-base-to-head hunks across production code, tests, support fixtures, and the retired boundary-check entry. No dependency, workflow, package-resolution, or release-file changes are introduced.
Recovery compatibility and prior-review resolution: The shared before-reply transition retains the session ID, recovery run ID, source run ID, and expected-state comparisons. Begin still writes pending; checkpoint retains the same pending-final-delivery fields and safe-tools flag. This changes neither the stored model nor its migration requirements.
Queue custody preserved: The consolidated overflow path preserves retained and elided source grouping, cancellation, admission, retry release, and source settlement through the existing delivery owner; the optional protected-source argument defaults to the same sources.
Findings None None.
Security None None.

How this fits together

Automatic reply orchestration receives channel messages and commands, prepares agent execution, and coordinates reply delivery. Its queue and recovery owners preserve message custody across cancellation, retries, and restarts.

flowchart TD
  A[Incoming messages and commands] --> B[Command parsing and context]
  B --> C[Reply admission and session checks]
  C --> D[Agent execution and fallback]
  D --> E[Reply delivery]
  C --> F[Queue and recovery state]
  F --> D
  E --> G[Channel transport]
Loading

Before merge

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

Security

None.

PR surface

Source -403, Tests -184, Other -1. Total -588 across 43 files.

View PR surface stats
Area Files Added Removed Net
Source 33 413 816 -403
Tests 9 38 222 -184
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 43 451 1039 -588

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: src/auto-reply/reply/restart-recovery-claim.ts, unknown-data-model-change: src/auto-reply/reply/restart-recovery-claim.ts, vector/embedding metadata: src/auto-reply/reply/memory-flush-errors.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep command parsing, session persistence, admission, and terminal settlement with their canonical owners while removing redundant internal paths.

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

Not applicable: this PR proposes behavior-preserving cleanup and does not report a product defect to reproduce.

Is this the best way to solve the issue?

Yes: the inspected changes consolidate existing owners and remove unused internal controls without introducing a competing implementation or stored-data contract.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal cleanup with no intended user-visible behavior change or 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: Verified repository-admin authorship exempts this internal refactor from the external-contributor proof gate. Reported focused validation is supplemental; source comparison shows no material authority change or stored-data-model change requiring additional final-effect or migration proof.

Evidence

What I checked:

  • Introduced patch reviewed: Reviewed the pinned merge-base-to-head hunks across production code, tests, support fixtures, and the retired boundary-check entry. No dependency, workflow, package-resolution, or release-file changes are introduced. (8f75e8ce13e0)
  • Recovery compatibility and prior-review resolution: The shared before-reply transition retains the session ID, recovery run ID, source run ID, and expected-state comparisons. Begin still writes pending; checkpoint retains the same pending-final-delivery fields and safe-tools flag. This changes neither the stored model nor its migration requirements. (src/auto-reply/reply/restart-recovery-claim.ts:357, 8f75e8ce13e0)
  • Queue custody preserved: The consolidated overflow path preserves retained and elided source grouping, cancellation, admission, retry release, and source settlement through the existing delivery owner; the optional protected-source argument defaults to the same sources. (src/auto-reply/reply/queue/drain.ts:599, 8f75e8ce13e0)
  • Removed controls had no production consumers: Base-reference searches show the visible memory-error callback and skill-tool dependency injection were supplied by tests, and the elevated-parser knob had no caller. The sole production CLI lifecycle caller disabled terminal emission already; fallback settlement remains responsible for terminal events. (src/auto-reply/reply/agent-runner-cli-candidate.ts:221, 8f75e8ce13e0)
  • Private test contract: The ingress helper's alternate identity shape is exposed only through a private-local testing subpath; package.json explicitly excludes its JavaScript and declarations from publication. Production ingress supplies the canonical queue claim shape. (src/plugin-sdk/plugin-state-test-runtime.ts:25, 8f75e8ce13e0)
  • Still necessary on inspected main: Fetched main still contains the dispatch runtime forwarding module and the parallel exact-set/regex command detector. The central cleanup is therefore not already implemented there; no merged replacement fixing PR was established. (src/auto-reply/reply/dispatch-from-config.runtime.ts:1, 67ab6f3104fd)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • ooiuuii: 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 (1 earlier review cycle)
  • reviewed 2026-10-03T21:28:07.662Z sha 9615e86 :: blocked before merge. :: none

@steipete
steipete enabled auto-merge (squash) October 3, 2026 21:35
@steipete
steipete disabled auto-merge October 3, 2026 21:56
Remove test-only runner controls, redundant command and dispatch forwarding,
and duplicate channel context projections. Consolidate overflow summary
execution and restart checkpoint updates while retaining their ownership
and lifecycle checks.

Preserve command parsing, reply text, transport behavior, persisted shapes,
and the public plugin SDK. The second-pass coverage audit exhausted the
available non-overlapping simplifications below the campaign size target.
@steipete
steipete force-pushed the deslop/l353-auto-reply-channels2-batch-20261003 branch from 9615e86 to 8f75e8c Compare October 3, 2026 22:32
@steipete
steipete enabled auto-merge (squash) October 3, 2026 22:37
@steipete
steipete disabled auto-merge October 3, 2026 23:01
@steipete
steipete merged commit 74c8c68 into main Oct 3, 2026
154 of 157 checks passed
@steipete
steipete deleted the deslop/l353-auto-reply-channels2-batch-20261003 branch October 3, 2026 23:03
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
Remove test-only runner controls, redundant command and dispatch forwarding,
and duplicate channel context projections. Consolidate overflow summary
execution and restart checkpoint updates while retaining their ownership
and lifecycle checks.

Preserve command parsing, reply text, transport behavior, persisted shapes,
and the public plugin SDK. The second-pass coverage audit exhausted the
available non-overlapping simplifications below the campaign size target.

Land with the maintainer-authorized inherited CI exception: Copilot tool-bridge fixtures fail identically in unrelated run 37157050744; all task-related checks pass in run 37158827995.
amittell added a commit to amittell/openclaw that referenced this pull request Oct 9, 2026
Brings the branch onto current main; GitHub reported it CONFLICTING.

inbound-meta.ts conflicted because main rewrote the helpers this branch had
moved out of it: openclaw#157000, openclaw#161129, openclaw#164547 and openclaw#166085 trimmed the file,
openclaw#158028 dropped its max-lines suppression, and openclaw#167236 merged the transcript
sanitizers into sanitizeTranscriptText. The split is re-applied on main's
code rather than on the branch's older copies:

- inbound-meta.text.ts holds main's normalizePromptMetadataString,
  normalizePromptMetadataStringArray, sanitizePromptBody,
  truncateBodyHeadTail and sanitizeTranscriptText, moved verbatim.
- inbound-meta.current-message.ts builds both projections with
  sanitizeTranscriptText(..., "body") in place of the branch's
  sanitizeTranscriptBody; the inline projection keeps main's bare header.
- inbound-meta.ts is main's file minus the moved helpers.
- config/max-lines-baseline.txt takes main's side, which already dropped the
  inbound-meta.ts entry.

The carrier projection stays in its own module: get-reply-run.media-only.test.ts
and followup-turn-admission.test.ts mock ./inbound-meta.js with closed
factories, and prompt-prelude.ts must not import the projection through them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant