Skip to content

refactor: trim redundant gateway test journeys - #207311

Merged
vincentkoc merged 4 commits into
mainfrom
test/gateway-value-wide-20261128
Nov 28, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
test/gateway-value-wide-20261128

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Related: #207118

What Problem This Solves

Gateway tests repeat fixture lifecycle, projection bookkeeping, and the same owner-level behavior through additional mocked journeys. This maintainer-approved VALUE audit removes those layers across discovery, fixture infrastructure, session lifecycle, startup trace, and chat.

User Impact

Test maintenance becomes smaller. This intentionally reduces low-value coverage: the removed matrices and wiring observations are no longer promised. Production behavior, dependencies, CI routing, and runtime configuration are unchanged. Actual security/authority variants, privacy, data-loss/race guards, release integrity, witnessed regressions, and one public-method happy path remain.

Why This Change Was Made

This is an approved value-based coverage reduction. Distinct behavior alone is not a retention rule. KEEP covers auth/security/ownership/authorization, data loss, race/TOCTOU, privacy, release integrity, witnessed user-visible regressions, and public-method happy paths. CUT covers nonauthority permutations without a linked bug, internal/mock/wiring observations, fixture-only bookkeeping, redundant journeys, and duplicate variants.

No production files or test-only production seams are changed. Four exact mock-factory baseline rows are removed by the native generator for mocks retired in this diff (6,082 → 6,078); no allowance is added. Actual ambient credential/HOME/config retention guards stay; synthetic hook/port bookkeeping does not automatically qualify as product safety. The native fixture keeps its existing assertions and now checks an unstarted suite's cleanup while the enclosing HOME is live. The config-publication block is retained byte for byte. The stale-compaction Gateway RPC guard is retained: worker proof supplied correct inputs cannot by itself replace the Gateway outcome.

ClawSweeper review focus: this is authorized VALUE-based coverage reduction, not a behavior-preserving reorganization. Challenge any CUT that loses an authority-distinct variant, ambient credential/HOME privacy guard, user-data/race protection, release-integrity guard, witnessed regression, or the only public-method happy path. Specifically inspect synthetic-vs-native fixture cuts, Gateway-to-storage/controller bridges, cross-agent resolution, live chat ownership/recipient filtering, and whether cited primary keepers really exercise the claimed owner. Do not request restoring surplus permutations solely because they are different. Report concrete preservation gaps and unsupported equivalence claims.

Evidence

Frozen integration base: 08a545d2c37abaf6ff23df20b77972c789d5f811. All 17 path preimages match the original base 997c25449c2836d37e6186ab7f219a2a9ffcb4fa. Test-only diff; no wall-time, GitHub Actions billing, or model-billing savings are claimed.

Sixteen touched roots: 164 → 123 declarations; 250 → 171 default registered cases (41 fewer declarations and 79 fewer expanded cases). Partial tables have per-row decisions below. One opt-in inventory performance row and generated native-child tests are excluded from these default parent counts. Counts describe touched roots, not the entire retained proof run.

Per-file line evidence

Paths below are under src/gateway/. Net means deletions minus additions; unchanged production lines are zero.

File Base LOC Candidate LOC Net removed
server-chat.agent-events.test.ts 2,933 2,791 142
server-methods/sessions-describe-worker.test.ts 564 558 6
server-startup-trace.test.ts 291 192 99
server.chat.gateway-server-chat-history.test.ts 423 415 8
server.sessions.agent-inventory.test.ts 189 174 15
server.sessions.archive-worktree-lifecycle.test.ts 972 944 28
server.sessions.compaction-preemption.test.ts 180 148 32
server.sessions.compaction.test.ts 1,036 905 131
server.sessions.fixture-lifecycle.test.ts 679 155 524
server.sessions.list-store-materialization.test.ts 150 90 60
server.sessions.store-paths.projection.test.ts 155 0 155
sessions-resolve-store.test.ts 305 291 14
sessions-resolve.test.ts 246 177 69
test-helpers.acquisition.test.ts 855 323 532
test-helpers.listener.test.ts 187 0 187
test-helpers.server-rpc.test.ts 480 159 321

Additional test infrastructure at repository root:

File Base LOC Candidate LOC Net removed
config/test-mock-exports-baseline.txt 6,086 6,082 4

Total: 2,327 net lines removed: 2,323 test-source lines plus four retired test-linter baseline entries, across 17 files.

Corrected candidate

Signed head 611e67242e62c2dae1f63d588e6d05443047eb5b preserves both ownership checks. The title-lookup suite passed all six cases, and the public sessions-read suite passed all 17 on the signed resolver correction. The final child adds five lines to the existing native fixture. Its disposable Gateway worker passed after executing the unstarted suite's registered cleanup and checking the active HOME, state and session markers and six environment selectors. Scoped format, lint, Gateway root and server test types, and the full range diff checks passed. Independent review covered all 17 files and the final five-line change. All 171 cases across the 14 retained changed test files passed on the published head (101 cases, 70 cases). Architecture, core test types and core lint all passed. Full hosted CI and both required reports passed. Hosted CI

Submitted revision CI

Native preparation completed at reviewed head b0eb29dcf1b04b987146458d817f2860c987a6cc, with no source changes. The submitted revision ran https://github.com/openclaw/openclaw/actions/runs/46119748551; attempt 1 completed failure, and the required openclaw/ci-gate CheckRun and status both completed failure. Three completed leaf jobs fail outside this diff:

The submitted head stopped at these three main-side failures. The frozen integration includes the Workshop cycle, Board type, and Board and dashboard lint fixes. At that earlier checkpoint, the landed campaign total was 134,599 lines. The inherited local dead-code scans for that original revision are recorded below.

Submitted revision validation

Baseline before the respective edits: 266 tests / 19 files passed, including all removed declarations and adjacent preview, startup-fixture, and read-error roots. Qualified task-owned physical dependencies: Node 26.13.1, pnpm 12.15.0; install reused 1,484 packages, downloaded zero, with 53.87 GiB before and 53.79 GiB after (10 GiB floor). All 29 selected core-test type graphs passed. Scoped lint passed. Final candidate: 407 tests / 27 files passed through the native Vitest wrapper, Node runtime, one worker, using gateway-server, gateway-database-workers, gateway-core, gateway-server-isolated, runtime-config, unit-src, and unit-fast. This includes all retained touched roots, adjacent preview/startup/read-error roots, the committed-boundary accounting Gateway test, and every primary keeper named below. The earlier 266-test baseline and this wider 407-test proof have different file sets; these figures are not a claimed test-count reduction.

Final scoped format: 14 remaining edited test files pass. Scoped oxlint passes, including the restored stale-compaction guard. All 29 selected type graphs passed, followed by a passing rerun of core-test-gateway-server for that restored guard. Native mock-factory generator removed exactly four retired factories (no additions); the guard passes without --prune. git diff --check passes. The test-source commit is signed.

Preservation control: reporting backend success before final compaction persistence made the retained stale-session RPC guard fail at response.ok (expected false, received true). Production source was restored byte for byte (SHA-256 b60e2b4c13865065130d8e5935f0de55d617e00578cc3214e2a2fa1e0e362f5b). Narrower controls omitting the accounting expected tuple, including the scope session ID, still passed because other fences reject the replacement. Consequently this PR claims the observable stale-RPC guard, not mutation proof that any one identity argument is uniquely necessary.

Submitted revision review

Fresh local ClawSweeper reviewed committed base 997c25449c2836d37e6186ab7f219a2a9ffcb4fa → head b0eb29dcf1b04b987146458d817f2860c987a6cc with the full KEEP/CUT inventory supplied as its authoritative PR body. Result: complete, zero review findings, security cleared, patch correct, no repair or additional maintainer decision requested. That review applies to the submitted revision. The two ownership checks added afterward are covered by the corrected-candidate review. Required exact-head CI remains the landing gate.

Dead-code checks and inherited failures

deadcode:unused-files passes both production and full-tree scans with zero entries. Script unused-export scan passes with zero entries. deadcode:dependencies stops on two production unused exports; deadcode:exports reports those same two in production and the harness type in the full tree:

  • src/agents/harness/types.ts: AgentHarnessSideQuestionRequest
  • ui/src/pages/chat/session-prefetch-history.ts: requestChatSessionSnapshot

A controlled rerun restored all 17 changed files to frozen base 997c25449c2836d37e6186ab7f219a2a9ffcb4fa in the same qualified environment and reproduced the exact production/full-tree/script signatures. The committed candidate was then restored byte for byte. No new orphan files or script exports were found. No ignore/baseline allowance or production fix was added. The UI export already has an independent main fix: #207270 (30bbc0acdb12). The unrelated harness export remains outside this test-only PR. These local failures are disclosed, not waived: required CI must be green before landing.

Pnpm dlx reused cached Knip 6.40.0 with zero downloads; disk before/after checks stayed above 34 GiB (10 GiB floor). Review uses the final signed committed range and this inventory; required CI and native prepare/merge remain landing gates.

Inventory — discovery and resolution

Each line is a declaration unless table rows are named. KEEP/CUT reasons describe the actual assertion; an unlinked contract is not presented as a witnessed bug.

File / declaration VALUE Reason
describe-worker: live pending titles for viewers/owners KEEP, trim Both sharing roles traverse pending/settled titles and preserve prior snapshot; cut call counts and repeat unchanged reads.
describe-worker: registry facts after list publications KEEP Current owner facts survive awaited publication.
describe-worker: committed target/lineage/children/placement KEEP Current target identity and committed placement.
describe-worker: sharing visibility after role / creator-alias changes (2) KEEP both Authority-distinct visibility changes.
describe-worker: current agent / main-alias owner (2) KEEP both Different ownership sources.
describe-worker: retired executor cannot promote historical control KEEP Historical execution is not current control authority.
describe-worker: sole executor / reservation owner (2) KEEP both Distinct current ownership paths.
describe-worker: missing/hidden target does not provision storage KEEP Hidden-target privacy and nonmutating reads.
agent-inventory: sparse real tool→Gateway actor/selector/dashboard results KEEP, trim Exact keys, saved dashboard, transcript privacy; cut forwarded-request mock shapes; dashboard fix 68cfa0ca5381.
list-store-materialization: titles/previews across 65 stores KEEP User data remains visible beyond handle cap.
list-store-materialization: malformed raw insertion / zero warm reads CUT Synthetic malformed state plus internal projection read counts.
store-paths.projection: conventional preparation reuse CUT Filesystem/environment probe counts over nonauthority query permutations.
store-paths.projection: configured multi-store preparation reuse CUT Internal allocation/reuse bookkeeping; real multi-store outcomes remain.
resolve-store: agent-scoped isolation KEEP Cannot resolve another agent store.
resolve-store: bare key versus fixed-store owner KEEP Cannot cross the fixed owner boundary.
resolve-store: absent-agent ambiguity KEEP Does not silently choose between agent owners.
resolve-store: duplicate global row uses selected owner KEEP Stored row owner wins.
resolve-store: timestamp winner within one agent CUT Same-owner ordering permutation.
resolve-store: deleted main non-alias rejection KEEP Deleted-owner isolation.
resolve-store: no adoption of deleted main legacy aliases KEEP Legacy key cannot grant another store ownership.
resolve-store: ordinary legacy ACP reads / Doctor repair (2) KEEP both Read cannot adopt lifecycle-bound metadata; Doctor repairs only after canonical rows.
resolve-store: listed deleted main key is not live default KEEP Explicit owner cannot be remapped.
resolve: display slug narrows short-ID tie CUT Display-only permutation.
resolve: deleted-agent collision excluded KEEP Retired owner cannot control resolution.
resolve: ten recent candidates / stale slug CUT Candidate-limit/display-hint combination.
resolve: agent-scoped short ID KEEP Explicit agent isolation.
resolve: short-ID allowMissing CUT Unlinked missing-result option combination.
resolve: global alias stored nondefault owner KEEP No default-agent substitution.
resolve: opaque room key casing (2) KEEP both Case-distinct opaque identities cannot collapse.
resolve: named-reference ambiguity/bounds/title combination KEEP ownership, CUT bounds matrix The same title is ambiguous with both agents configured and selects the live session after retirement. Both records are in the main store.
resolve: invalid short-ID length / slug-without-ID / exclusive selectors (3) CUT all Unlinked input-shape permutations.

Inventory — test infrastructure

File / declaration or rows VALUE Reason
fixture-lifecycle: preparation before releasing home CUT Synthetic import/hook scheduling.
fixture-lifecycle: shared setup failure skips acquisition CUT Injected fixture-error/report shape.
fixture-lifecycle: partial setup closes acquired server CUT Synthetic acquisition/teardown wiring.
fixture-lifecycle: delayed server acquisition CUT Mock timing and temporary-directory cleanup.
fixture-lifecycle: delayed template initialization CUT Intercepted test-template disposal scheduling.
fixture-lifecycle: pending home acquisition CUT Synthetic home acquisition ordering.
fixture-lifecycle: cleanup error still clears directories/env CUT Injected synthetic server close failure.
fixture-lifecycle: skipped setup preserves enclosing home KEEP physical ownership check The real fixture keeps the active HOME, state and session markers, and its environment selectors after an unstarted suite's cleanup. The separate hook-collector journey was removed.
fixture-lifecycle: required real Gateway close failure KEEP Real native owner retains HOME/state/session markers/config/token, refuses successors, including after module reset; retained 135-line source+wrapper unchanged.
fixture-lifecycle: test/suite × interrupted/uninterrupted late startup (4) CUT all Synthetic server/hook permutations; native privacy/retention owner stays.
server-rpc: projection joins released history reader CUT Synthetic fixture projection/release settlement.
server-rpc: session / Gateway event admitted continuation (2) CUT both Fixture deselection/disposal permutations.
server-rpc: queued participant persistence on fixture release CUT Synthetic fixture selection/queue settlement.
server-rpc: rpcReq / fixture release / fixture reseed queued writes (3) CUT all Same fixture settlement wiring.
server-rpc: reply preparation / RPC update with real IO (2) KEEP both Awaited config publication preserves directory identity and 0700 private parent.
server-rpc: agent-only edits/removals preserve authored config KEEP Authored bytes, inherited defaults and parent privacy; retained config block 136 lines unchanged.
acquisition: helper × failure-stage matrix (19) CUT all Fake-peer transport/protocol cleanup permutations; no product authority decision.
acquisition: auth-open / tailscale-default / tailscale-override nonce+headers (3) CUT all Fixture forwarding shape, no authority evaluation.
acquisition: assertion / cancellation / early-rejection preparation joins (3) CUT all Observer reset and synthetic acquisition scheduling.
acquisition: native error waits for webchat preparation CUT Synthetic error precedence.
acquisition: startup rejection restores token env KEEP Actual ambient credential selector restored after failure.
acquisition: raw joined / raw rejected shutdown (2) KEEP both Held close retains owned token until completion; failed close retains owned token and owner. Existing native failed-close fork stays.
acquisition: GatewayClient joined / rejected shutdown (2) CUT both Only port restoration/client-stop wiring; no ambient token assertion.
acquisition: one-shot device socket close CUT Helper transport cleanup/request shape.
listener: first / second overlapping reservation startup (2) CUT both Mock transport reservation ordering.
listener: unclaimed listener cannot steal startup socket CUT Synthetic fixture reservation/adoption bookkeeping.
listener: settled claim release despite listener CUT Fixture claim bookkeeping.

The removed 19-row acquisition matrix contains tracked held-upgrade/post-upgrade errors; shared-auth missing challenge; webchat transport/post-hello errors; device missing response; auth-open/tailscale-open/harness × held-upgrade/rejected-upgrade/post-upgrade errors; and harness auth-rejection/transport/post-hello/missing-response failures. Generated native children (observes retained Gateway owners through fixture teardown, retains a failed acquisition owner) remain; their cases are not parent declaration counts.

Inventory — startup trace

Declaration / rows VALUE Reason
completed startup plugin worker observation KEEP, trim One run→observer→detail happy path; drop overlap/unrelated worker attribution and formatting permutations.
process RSS/heap diagnostic formatting, trace off/on (2) CUT both Does not measure a memory regression; formatting-only matrix (origin #184338).
slow-service visibility/outcome rows (5) KEEP all Preserve hidden 249ms, visible 250ms, visible 500ms failure, trace-on success, nested hidden success; explicitly exclude failure payload message at info egress.
updater canary/marker rows (5) KEEP all Release integrity: canary false/2 and true/0..3 report only completed supported milestones.
bootstrap count carried to ready/restart CUT Diagnostic string/count journey does not exercise repeated schema-reader defect (origin #150444).
terminal event-loop close once/no reopen KEEP Terminal cleanup regression dbac2c10809f, #122595.
recoverable measured error keeps tracing until terminal KEEP Recoverable/terminal cleanup distinction, same fix.

Inventory — session lifecycle

File / declaration or rows VALUE Reason
compaction: manual happy path, accounting/events/no artifacts KEEP Public RPC path, SQLite persistence, nine stale usage/native-binding fields cleared; checkpoint contract #154131.
compaction: host-accepted successor accounting KEEP Committed successor must receive counts before RPC success; fa6b02a14d6e, #133260.
compaction: manual rewrite clears byte latch KEEP Gateway argument matters; 9cd23e6067c8, #168051.
compaction: native terminal/stale negative estimate KEEP Native binding/latch/accounting differs from host rewrite; thread-management contract #98510.
compaction: persisted native CLI target/no API keys KEEP f5c46de8ac50, #120496.
compaction: failure ends operation KEEP Accounting preparation failure still terminates visible progress; not claimed as disk-failure proof.
compaction: stale terminal after session replacement KEEP Captured-target RPC rejection and untouched replacement data; worker-given-correct-args alone is insufficient.
compaction: concurrent metadata preserved while counting CUT Real worker atomic-accounting keeper plus stronger retained Gateway committed-boundary correction (server.sessions.compaction-accounting.test.ts) pin data preservation.
compaction: reset waits for terminal CUT Controller raw-cleanup sequencing keeper owns generic serialization.
compaction: admission blocked through terminal write CUT Real queued-turn controller keeper owns unfinished-mutation exclusion.
compaction: too-small manual no-op during admission KEEP No-op cannot cancel accepted work; active-turn fix #110389.
compaction: real manual refuses active admission KEEP Mutating path cannot interrupt/cancel work; same fix.
compaction: accepted queued follow-up KEEP Lost-work fix 860960e54368, #117840.
compaction: summary-elided queued follow-up KEEP Distinct retained source/controller input, not three independent prompt permutations.
compaction: remote inference owns session KEEP Authority-distinct remote owner cannot be drained/compacted; active-turn fix above.
compaction: archive waits for terminal CUT Generic serialization is controller-owned; archive-specific races remain.
compaction: maxLines happy rows/parents/no archive KEEP Independent public mode plus backup-privacy fix 4ffcd972d3c3, #125183.
compaction: maxLines active mutation refused KEEP Actual trimming must preserve live rows/work.
compaction: maxLines short transcript no-op KEEP Existing-row no-op cannot interrupt work.
compaction: maxLines no-transcript no-op KEEP Separate absent-data path cannot interrupt work.
compaction: nested model/provider patch+list KEEP Picker regression 4977c4ab8221, #61382.
preemption: abortable true / false (2) KEEP both Distinct controller/backend authority; abort/join versus refusal, both preserve queued work.
preemption: timeout KEEP No successful preemption means no compaction.
preemption: idle mutation's own turn CUT Owner admission keeper pins own nested turn before competitors.
archive: exact maintenance wake/count CUT Relinquishes unchanged/no-checkout notification predicate; real removal/snapshot/coalescing outcomes stay.
archive: unrelated writes during restoration allocation KEEP Lease releases writer, fences only same-session successors.
archive: live Undo / retired Undo / ordinary Restore KEEP all Distinct authority, dirty work/transcript/shared pin preservation.
archive: stale archivedAt / sessionId / lifecycleRevision checks KEEP all Each captured fence protects a different current target/occurrence.
archive: unarchive before cleanup KEEP Dirty live checkout cannot be deleted.
archive: unarchive during cleanup KEEP Wait for in-flight final snapshot before recovery.
archive: failed restore leaves label for next batch target KEEP No label/metadata consumption after failed preparation.
archive: identity / label-owner / participants / manual removal (4) KEEP all Replacement identity, competing label, concurrent durable members, manual removal each remain authoritative.
archive: accepted / revoked / backend replacement permissions (3) KEEP all Every authority/backend-distinct outcome retained; no applying old backend intent to a successor.
archive: ready / cleared-selection catalog before Git (2) KEEP both Preserve unpushed HEAD, dirty work/transcript and concurrent model-window clear semantics.
archive: refused archive publication KEEP Refusal cannot authorize deletion or lose conversation/dirty files.
archive: patch busy / patchMany snapshot-failed (2) KEEP both Different contention/failure paths retain committed archive/events and recoverable work.
archive: automatic snapshot/restore KEEP Retention-entry happy path preserves usable dirty work and conversation.
archive: newer archive during cleanup KEEP Stale cleanup cannot delete a newer occurrence or replace its metadata.
archive: expired snapshot / source missing (2) KEEP both Distinct actionable recovery failures preserve archived conversation.

Archive data/writer regressions: 2c75b75f0d81 (#139114), 8e4eb78fa20b (#132706). Undo authority contract: 3fa253a2dc68. Controller ownership contract: #175837. Archive notification optimization origin: #198362; this CUT preserves outcomes, not every notification count.

Primary lifecycle keepers: src/config/sessions/session-entry-patch.operations.test.ts:290 (atomic metadata/accounting and stale expected identities); src/sessions/session-controller-sequence.test.ts:48 (both cleanup orderings); src/sessions/session-controller.lifecycle.test.ts:584 (queued turn behind compaction); src/sessions/session-controller.admission.test.ts:48 (own nested turn); src/gateway/server.sessions.archive-failed-worker.test.ts:167 and src/gateway/worktree-maintenance.test.ts:464 (real removal/snapshot/coalescing/in-flight commits).

Inventory — chat

Source positions below refer to the frozen base server-chat.agent-events.test.ts (A) and server.chat.gateway-server-chat-history.test.ts (H). Ranges name all rows where authority differs.

Declaration / source VALUE Reason
synchronous event resolves once, A143 KEEP Routing remains current between synchronous events.
successful live widget snapshots, A165 KEEP Live canvas/MCP ownership, dedupe, timing, next-turn cleanup.
bounded widget helper, A231 KEEP Live count/byte bounds, failed/node-panel/oversize exclusions.
retry drops failed-attempt widgets, A233 KEEP Failed attempt cannot leak into successor.
reused run retires tool-only widgets, A251 KEEP Prior owner cannot contaminate new final.
warnings/Guardian reconnect snapshot, A290 KEEP Client-owned reconnect retention and run mapping.
captured-progress reserialization, A352 CUT Owner capture/eviction/immutable replay pinned by state121/418 and progress-snapshot126.
diagnostics cleared on assistant / tool progress, A383 (2) KEEP both Distinct wire branches clear stale diagnostics.
cross-frame private tags, A453 KEEP Sanitize emitted bytes while retaining authoritative source.
retry long backoff, A489: rate_limit / timeout KEEP rate_limit; CUT timeout One recovery journey; terminal timeout is separately retained at A1742.
overdue hidden timer batches, A556 KEEP Bounded pending work plus latest delivery under interleaving.
native-item-start flush, A702 KEEP Candidate/assistant output ordering at item boundary.
aborted run/sibling/reuse isolation, A763 KEEP Only retired run's state is released.
immediate output after thinking / lifecycle, A857 KEEP thinking; CUT lifecycle Buffered thinking is the meaningful pending-frame transition; lifecycle row has no equivalent buffer.
managed media complete / split, A897 (2) KEEP both Distinct privacy boundaries.
ordinary control-like text, A947: MEDIA / trailing M / No KEEP MEDIA; CUT M, No Negative control against managed-media suppression; two surplus ordinary-text permutations.
separate empty replacement, A963 CUT, fold Retained A1039 empty row now asserts absent final message; no loss of retraction guard.
prepared short reply, A999 CUT Assertions after completion did not prove immediacy; state765 and A1013 remain.
glued leading NO_REPLY literal, A1013 KEEP Cumulative delta/final literal bytes and node parity.
segmented text / empty replacement before final, A1039 (2) KEEP both Append/retract differ; folded empty final guard.
state-clear cancels trailing delta, A1075 KEEP No delayed output after retirement.
later item correction preserves earlier text, A1104 KEEP Owned data retention across correction.
tool-start flushes chat first, A1126 KEEP Observable emitted ordering.
unused verbosity read spy, A1179 CUT Obsolete mock shape; actual routing/verbosity privacy stay.
expired run versus current session audience, A1216 KEEP Distinct current recipient authority.
newer session verbosity, A1239 KEEP Timestamp precedence over stale run metadata.
run+session subscriber dedupe, A1275 KEEP Exact recipient partitioning.
dispatch_action / mcp_report output, A1327 (2) KEEP both Preserve display/source bytes; omit only raw dispatcher mirror.
canonical terminal status and cleanup, A1382 KEEP Adapter post-state order.
plugin-only lifecycle listeners, A1455 KEEP Receiver admission with no WS audience.
concurrent completion canonical publication, A1486 KEEP Post-write state ordering.
failure persistence succeeds / rejects, A1551 (2) KEEP both Settle once without delaying another run.
failed persistence fallback, A1587 KEEP Visible terminal, sanitized logs, custody cleanup.
old-generation deferred error versus same-ID retry, A1640 KEEP Old timer cannot consume successor state.
lifecycle final diagnostic/yield/abort, A1742 (5) KEEP all Safe validation, unsafe abort, terminal timeout, resumable yield, abort-over-stale-yield are distinct.
verbose on / full, A1773 (2) KEEP both Recipient privacy and partial-output suppression differ.
selected / configured-system agent, A1815 (2) KEEP both Distinct global subscriber authority.
fallback exhaustion / native cancellation, A1869 (2) KEEP both Definitive outcomes retire deferred errors/timers.
phaseless lifecycle observation, A1906 KEEP Cannot cancel pending terminal cleanup.
command / reply owner errors, A1936 (2) KEEP both Distinct terminal composition owners and sanitized node parity.
error allowlist/bounds/log-only exclusion, A2041 KEEP Private/invalid/raw fields cannot reach wire.
linked / unlinked chat.send, A2081 (2) KEEP both Linkage controls terminal ownership, bookkeeping stays correct.
selected saved partial and backstop diagnostic, A2123 KEEP Persisted receipt stays tied to terminal.
reply-dispatch global text after release, A2162 KEEP Completion ownership, aliases and one final.
nonenumerable owner claim persistence, A2249 KEEP Internal ownership survives persistence.
context-removed assistant / lifecycle owner events, A2270 (2) KEEP both Distinct stream/terminal paths retain owner scope.
released visible assistant / hidden item, A2371 (2) KEEP both Clear only released queued work.
reused source ID with queued tail, A2463 KEEP No prior-owner text/timer contamination.
hidden previews: session / remove subscriber / replace subscriber, A2519 (3) KEEP all Each changes captured/current audience differently.
maintenance child selected parent, A2589 KEEP Suppress parent output/persistence but settle tracked work.
hidden messages to exact subscribers, A2623 KEEP Exact audiences across five streams; suppress after source release.
active / aborted hidden commentary, A2700 (2) KEEP both Active tags may mirror; aborted/untagged/final echoes cannot.
candidate change/clear without persisting selection, A2829 KEEP Projection/committed data separation.
same candidate after visibility/receiver/target changes, A2861 KEEP Every answer-changing input invalidates dedupe.
deferred candidate sees committed model, A2888 KEEP Race cannot poison remembered publication key.
failed publication retry, A2914 KEEP Failed attempt stays retryable; success deduplicates.
inbound null-byte rejection and normalization, H90 KEEP Trust-boundary input handling.
send/history real WebChat journey, H103 KEEP, trim Explicit WebChat authority, subagent, Discord group denial, cron allowance, both attachment shapes, default history window. CUT only mocked immediate-reply timeout child: it passed if timeout ignored.
backing session ID history→send, H273 KEEP Public API identity bridge.
kept-tail reset marker, H290 KEEP Data selection and marker preservation.
authenticated history error classes, H308 (3) KEEP all Overflow, rate-limit, private upstream failures have distinct sanitized outcomes.
history presentation/control rows, H352 (4) KEEP all Responses blocks, commentary, literal skip text, NO_REPLY-only/mixed each differ.

Chat primary keepers run separately: server-chat-state.test.ts (prepared replay/eviction, immutable JSON capture, prepared short text); server-chat-progress-snapshot.test.ts (immutable canonical output); server-chat.control-replies.test.ts (empty retraction). The explicit WebChat socket remains; default helper identity is not a substitute.

Verified chat fixes include 3305669b7293 (#147438), 38feb5159077 (#147538), bd5f760aecae (#170534); ownership/publication fixes 9344233e7a66, 94c0f0d589ab, 2f58eadd0558, 1d68ad3513c9, de8a33a55346, 119a01c82998, and bc2d501b1dcb remain pinned by the corresponding KEEP rows. No new production guarantee is inferred from a historical citation.

@clawsweeper

clawsweeper Bot commented Nov 28, 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 gateway Gateway runtime size: XL labels Nov 28, 2026
@vincentkoc vincentkoc self-assigned this Nov 28, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 28, 2026 07:07
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Nov 28, 2026
@clawsweeper clawsweeper Bot added 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 Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR removes selected Gateway test journeys, trims internal observations, and deletes baseline entries for retired mocks.

Example: An assistant replaces “Hello world” with an empty reply.

  • Before: Separate tests cover retraction and flushing before completion.
  • After: The retained flushing case also requires the final event to contain no message.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The inspected patch is coherent and has reported focused harness validation, while broad CI qualification remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) No user-visible production behavior changes; the body reports focused Node validation, and inspected historical UI screenshots do not serve as proof for this test-only change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Gateway maintainers must keep repeated mocked journeys and internal bookkeeping checks synchronized.
Reason: Maintainer authorship establishes direction, and the inspected retained tests continue to protect session identity, ownership, privacy, and observable completion behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes an intentional, useful coverage reduction, and inspection found no actionable patch defect; required CI remains red.

Reviewed head: b0eb29dcf1b04b987146458d817f2860c987a6cc

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway tests exercise session discovery, compaction, fixture ownership, startup diagnostics, and chat delivery through handlers, WebSockets, controllers, and storage owners.

flowchart TD
  A[Test fixtures] --> B[Gateway handlers]
  B --> C[Session controllers]
  C --> D[Storage workers]
  B --> E[Chat event delivery]
  D --> F[Retained assertions]
  E --> F
Loading

Technical review

Best possible solution:

Retain the approved test reduction and protected owner-level guards, then complete the existing required CI gate before landing.

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

This is a test-maintenance change with no reported production defect to reproduce.

Is this the best way to solve the issue?

The focused deletions fit the accepted direction, preserve the inspected critical boundaries, and introduce no competing production owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Fixture acquisition and teardown changes intended behavior with a stated reason (10951e1: refactor(gateway): make fixture teardown wait for owned work #157114 joined asynchronous acquisition and cleanup before shared state reset; this PR deliberately retires selected fixture permutations while retaining token and failed-close ownership checks.)
  • Session fixture lifecycle changes intended behavior with a stated reason (d9cbb7d: fix: preserve Gateway test cleanup after partial setup #132574 repaired partial-setup teardown failures and late acquisition; the current body explicitly accepts reducing synthetic fixture checks and preserves the native retention scenario.)
  • Compaction sequencing keeps the original intent (36e277d: refactor(sessions)!: give each session one controller for turns, queues, and Stop #175837 centralized turns, queues, and Stop in the session controller; retained controller sequencing tests own generic exclusion while Gateway stale-result and accounting tests remain.)
  • Resolution and diagnostic permutations changes intended behavior with a stated reason (unknown: The body names the retired permutations explicitly; local path history and symbol searches recovered several origins, but a missing historical blob prevented complete introduction tracing.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned scope: The introduced range changes test sources and removes four mock-baseline entries; it changes no production implementation, dependency, workflow, or runtime configuration. (b0eb29dcf1b0)
  • Approved coverage tradeoff: The maintainer-authored body explicitly accepts removing unlinked permutations and fixture bookkeeping while retaining protected guards; this is an intentional coverage reduction rather than a claim of identical coverage. (b0eb29dcf1b0)
  • Compaction protection remains: The retained WebSocket RPC test replaces the session during held compaction, requires a session-changed failure, and checks that replacement accounting remains untouched; the separate accounting suite exercises concurrent metadata through actual persistence. (src/gateway/server.sessions.compaction.test.ts:496, b0eb29dcf1b0)
  • Fixture privacy and ownership remain: The retained native-child scenario checks HOME, state, session markers, config selectors, token retention, and refusal of successor setup after required Gateway cleanup fails. (src/gateway/server.sessions.fixture-lifecycle.test.ts:114, b0eb29dcf1b0)
  • Chat retraction assertion preserved: The remaining empty-replacement row explicitly expects message: undefined at completion, alongside the replacement delta and node-delivery count. (src/gateway/server-chat.agent-events.test.ts:948, b0eb29dcf1b0)
  • CI remains a landing gate: The reviewed head has failed architecture, lint, type, and aggregate checks. The body attributes the leaf failures to UI changes from fix: move archived and restored Workshop skills immediately #207138 and fix: keep dashboard widgets where you drop them while saving #207112; their base commits confirm the implicated code predates this diff. Annotations were readable, but job-log downloads were blocked by the artifact-host allowlist. (b0eb29dcf1b0)

Likely related people:

  • Vincent Koc: Raw commit 10951e1 adds src/gateway/test-helpers.acquisition.test.ts:325 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 10951e196f81; files: src/gateway/test-helpers.acquisition.test.ts)
  • Peter Steinberger: Raw commit 78e9b14 adds src/gateway/server.sessions.compaction.test.ts:1354 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 78e9b1432867; files: src/gateway/server.sessions.compaction.test.ts)

PR surface

Tests -2347, Other -4. Total -2351 across 17 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 16 80 2427 -2347
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 4 -4
Total 17 80 2431 -2351

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +80/-2,427 The reduction serves the approved test-maintenance goal without adding production machinery.

Labels

Label changes:

No label changes.

Label justifications:

  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete required CI qualification once the independently owned UI failures are resolved.

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 execution lanes are retired.

Reviewed November 28, 2026, 2:39 AM ET / 07:39 UTC.

@vincentkoc
vincentkoc merged commit 9fa8d14 into main Nov 28, 2026
129 checks passed
@vincentkoc
vincentkoc deleted the test/gateway-value-wide-20261128 branch November 28, 2026 12:15
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
* refactor: trim redundant gateway test journeys

* test(gateway): preserve live session selection by title

* test(gateway): preserve the active fixture home during skipped teardown
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
…205987)

## Class: completion is published before required maintenance finishes

Fleet run `4de610c8-e63d-4336-8e85-a76379cfd934` committed and served the new core, but its completion notice preceded the failed plugin result. The bug is ordering, not the core's status.

The modern Gateway-ready owner now settles once **after** required plugin work and sends one final notice afterward. A failed plugin remains a failed step, not a failed core update or a rollback trigger. Existing CLI following and capability-consent behavior remain; the failed-status/early-exit/backoff experiment is removed.

CLI completion, status, Doctor history and the Control UI reuse the existing `renderUpdateRunSummary` over recorded facts. Running results keep their phase; succeeded results name the installed after-version; skipped results keep their existing reason headline, never a guessed serving state. Failed work names its step and exact recovery command. Startup refusal diagnostics, structured failure facts, rollback compensation reasons, recorded signal output and profile-specific recovery commands remain visible. Existing discriminators distinguish repair and reconciled-history records from core updates. Background completion never rewrites the shared trial, preserving a newer pending trial and restart resumption.

## What this deletes

- `renderUpdateRunReport`, its private recovery hints and cause module.
- Routine Markdown completion publication/refresh, automatic `reportPath` output, and artifact-only admission/options plumbing.
- Obsolete completion-export tests and renderer-only assertions. Ledger, recovery, authority, privacy and step-detail assertions remain on their retained data owners.
- The abandoned failed-status classifier, campaign/retry exceptions, early-return CLI path and associated UI/test allocation.

**Kept deliberately:** explicit consent-gated **Report update failure** GitHub preview/submission, its reservation/receipt authority and sanitized issue artifacts. The remaining `update-failure-report*` code serves that user feature and triage, not routine completion. Identity/recovery and legacy result/sentinel projections remain because those manual-report and sentinel consumers still use them.

No new status, state store, flag, stored-record shape or launcher format.

## Size

`tokei` on this PR's **20 production files**, excluding tests/support/harnesses, against integrated main `6ac896f4cbb8bc29940c625cb1e2b19990e87284`:

| | Before | After | Net |
| --- | ---: | ---: | ---: |
| Production code lines | 7,758 | 7,148 | **−610** |
| Test/support lines | | | **−1,257** |

## Verification

- The earlier base Gateway-owner regression exposed the premature terminal write before plugin settlement. Final owner tests pin delayed settlement, unchanged successful core status, exact plugin recovery, one acknowledged final notice, newer-trial preservation and restart resumption.
- **Earlier focused AWS replay GREEN:** nine observed prepare/status/progress regression cases passed in99s; core and CLI-update types, scoped lint (zero warnings/errors) and format passed. https://crabbox.openclaw.ai/portal/runs/run_e5a8682ccf98bb7765b9d075be801705 . Exact qualified source was `5c6686ad20f50377f6affdec0d948f362dc37851`, tree `5ed1cb6e544fbd93604eea566b550f0c722842c8`, normal carrier `d2821086c00e55c8de35d00d7a4418168ca25a2d`; lease released with `--wait`. This is not claimed as an exact-head run after the later shared-summary/UI refinements.
- **Final pushed head:** `79182af301a6166914840dab9a705f4fa5c72fbd`. Restores the existing installed-runtime admission receipt before stop-and-repair advice, keeps historical summaries informational, and types the captured handoff notice without weakening assertions. Three requested files passed once: guidance32/32, handoff19/19, UI view15/15 (**66/66**). https://crabbox.openclaw.ai/portal/runs/run_ea4006e0b21e09bfbd763abe6e25929a . Qualified source was `985dd796d1` plus those two frozen restores, tree `45fe9f49c964b39806b431cde018432ed6e472fc`, normal carrier `81d874a77bb7de2f72307cca91f827db71ec7850`. Exact AWS lease released with `--wait`, exit0. Final-head CI remains the landing gate.
- **Repair candidate:** `1f223e15a20a04a27a4f745af81fb11b106d9d40`. Plain integrated main `6ac896f4cbb8bc29940c625cb1e2b19990e87284` passed all39 CLI tests on hydrated AWS4CPU/7730MiB, including the #205898 restart-wire case in31ms: https://crabbox.openclaw.ai/portal/runs/run_97637e77b460fbb7176bd261693cabd1 . B's timeout came from its local ledger fixture using a remote run ID; the fixture is corrected without changing main's captured connection contract.
- **Node regression batch:** nineteen files on repair predecessor `eede`, 481passed/4failed/1skipped; core types, scoped lint and format passed. https://crabbox.openclaw.ai/portal/runs/run_fbcf26ce68d5a5a539f63f6ee793237a . The four residuals were an early-return saved-notice recognition bug, two assertions pinning retired reconciled wording, and a native-refusal assertion reading a clipped excerpt instead of its retained structured cause. All are corrected without changing generic ledger storage.
- **Final-head residual proof:** summary18/18, abandoned-repair rows2/2 and native-start refusal1/1 passed; core and CLI-update types plus scoped format passed. https://crabbox.openclaw.ai/portal/runs/run_f4e633ac557bce484d1939c03cf88b3f . Source tree `9112e46c2b3081aab02b3dc9a0dfc1e0c06da55f`, normal carrier `82470c4669b7cc502049fa978dc5ed37defb6c6a`, AWS4CPU/7730MiB. Scoped lint did **not** run: its normal SDK declaration preparation failed first with TypeScript/vscode-jsonrpc `ERR_STREAM_DESTROYED`. No retry or bypass; current-head CI remains the lint gate.
- Historical failed-status screenshots, broad partial qualification and prior reviews describe the superseded design, **not** this head.
- No new upgrade source, death proof, harness test or Linux product campaign is added. Superseded remote proof jobs were cancelled and all their leases released with `--wait`.
- The ready-time settlement owner tests passed on integrated `9aba`: `gateway-trial.test.ts`18/18. Later output refinements do not change that settlement policy. Frozen `01b` UI reproduction observed unit14pass/1fail and E2E8pass/2fail. On repair predecessor `eede`, unit15/15, UI/pages/E2E types and scoped lint/format passed. Final `f087` passed both changed E2E cases (standalone repair history; warning advice and keyboard-accessible output), UI/pages/E2E types, scoped lint and format: https://crabbox.openclaw.ai/portal/runs/run_13701071e15057d5ac5c4ac5e927c65d . Source tree `3c734ef709a186303996517ecad54c5e5d4a0e9c`; exact lease released with `--wait`. The other8 E2E cases passed on `eede` and were intentionally not repeated.
- **Accepted budget cost:** exact `1f223` CI measures chat boot gzip **1,336,500→1,337,028 (+528 B)**, requests21→21; startup+1 B. Base already exceeds its cap, so normal tolerance is64 B (464 B excess). https://github.com/openclaw/openclaw/actions/runs/45885636780/job/140136424955 . Cause: `update-run-projection.ts` synchronously imports the shared summary for the existing card/view projection; the existing async result boundary already imports it dynamically. Ayaan accepted this cost for this PR through Main; no new async plumbing or budget config. Main applies the performance-only override at merge; every other gate remains required.
- **Final-head budget receipt (`79182`):** chat boot gzip **1,336,744→1,337,247 (+503 B)**, requests21→21; startup+1 B, normal tolerance64 B. https://github.com/openclaw/openclaw/actions/runs/45895112042/job/140167696819 . This is below the accepted predecessor's +528 B cost; same synchronous-summary cause, no new plumbing/config. Remaining CI gates are still pending.
- **Latest pushed head: `be86da0464892c10cbe7207ff98228eb1e81758a` (test-only delta).** The shared notice mock uses its production signature; no cast or weakened notice assertion remains. Healthy final recovery without an installed-runtime admission receipt explicitly expects update-again/no-stop advice. Two affected files passed once (**81/81**: handoff19, post-update62), focused Gateway/CLI-update types and lint passed: https://crabbox.openclaw.ai/portal/runs/run_c8784e2fe001772ae88bae53af8d9747 . Qualified source was `79182` plus the frozen test edits; only generic-type wrapping changed mechanically afterward, normal commit hooks passed. No production/budget change.
- The prior ratchet failure is infrastructure: its GitHub annotation says the hosted runner lost communication, leaving the baseline-ratchet step without a verdict. Its log fetch returned BlobNotFound/404. No old-head rerun was accepted or needed; this head's normal CI runs the ratchet again.
- **Latest pushed head: `bf3ab61efbb9dba856bfc4d651c7fc77f44549f2` (one exact-copy test assertion).** Requested same-guest owner-file comparison: plain main `993d0b77`13/13 passed ([run](https://crabbox.openclaw.ai/portal/runs/run_4983803c6c82c64295d7d513ac8b52cd)); `be86`12/13 passed ([run](https://crabbox.openclaw.ai/portal/runs/run_51b38ba2049d66bdf6437b89731bf787)), failing only the expected generic details tail. The actual last notice correctly preserves `commands.restart=false` and its app/operator remedy. This commit changes only the exact expected string, retaining acknowledgement, no-update and last-call/context assertions; no mock runtime or production change. No extra local rerun: new-head CI verifies the migrated expectation.

Co-authored-by: Ayaan Zaidi <[email protected]>

(cherry picked from commit ed8b883)

Release adaptation: Port Gateway run/notice timing and the existing maintenance result contract only; retain beta.2 CLI, Doctor and UI summary surfaces and explicit failure reports. Fold in #208074 abort/grace follow-up where applicable.

Later same-path commits from the pinned scan (separate behavior unless named as folded/selected below): 974d792 fix: keep update status quiet and app-managed updates honest (#208359); 186e941 fix: restore the dependency check on main (#207741); dae01a9 fix: keep other agents running when one store is refused (#208364); c9f7a98 fix: keep container Gateway commands from rolling back host updates (#208271); edb6820 fix: let the Gateway restart while boot plugin maintenance is running (#208074); bb37856 fix: keep Windows WebChat connected during config reloads (#208109); 516166c fix: exit once when gateway run rejects an argument after an update (#208068); 07e96dc fix: restart the Gateway after real plugin repairs (#208207); bd48ff6 fix: avoid restarting the Gateway for plugin timestamp changes (#208119); 259f71c fix: stop Linux service starts from copying the whole agent database (#207969); 7cb8975 fix: keep forked Claude chats separate after a Gateway crash (#208048); 6d300d3 fix: restart launcher-managed Gateways after exit 78 (#207972); 90ff668 fix: stop treating limited access as an Inbox alert (#207737); ec39a90 fix(whatsapp): retain sender for explicit current-message reactions (#190121); 86ca412 fix: show the saved quota reset when chat skips its only model (#207210); c4a675f fix: avoid reloading unchanged plugins after Gateway boot (#207949); 13c67a1 fix: let updates back up deeply nested databases (#207756); e2fcd4d fix: acknowledge updates when the Gateway first becomes ready (#207819); 8933edd fix: name safe recovery when agent schema markers disagree (#207705); 19e9dd6 fix(gateway): keep Linux legacy lock recovery explicit (#207340); 54b5989 test(update): move startup diagnostics to the live CLI (#207589); fbf1aae fix: give safe update ownership guidance and restore legacy result delivery (#207640); 0cbe433 test(gateway): move update admission tests to the current handler (#207545); a922203 refactor(update): remove native post-activation Doctor subprocess (#207585); c72bd9a fix(anthropic): show Claude CLI quota usage from the native login (#207543); 7ac87ad fix: avoid taking service-account ownership during updates (#207563); b3902a2 fix(update): allow in-place updates without a full state copy (#207448); 9fa8d14 refactor: trim redundant gateway test journeys (#207311); 2cf1cb6 test(cli): remove unused private fixture state (#207431); ece7a74 improve(workboard): apply the Control UI glossary and style to Workboard copy; 1c89587 fix: update system service packages without root state changes (#207304); dfd17d0 fix(docker): avoid pre-boot Doctor delays on container recreation (#207200); b616036 refactor(subagents): simplify ACP spawn relay ownership (#207023); 93ca762 improve: reduce allocations when preparing session rows (#207109); adb3716 fix(update): surface boot plugin repair advisories (#207163); f79ef8c fix: finish updates of 2026-11-17 main checkouts automatically on Linux and macOS (#207062); 3c4362b fix(update): preserve exception causes in failure history (#207085); 20c92a4 fix: converge plugins after every Gateway boot (#206926); 3078862 fix(update): clean up rejected Git update worktrees (#207040); 9993328 refactor(subagents): simplify kill claim and ownership handling (#207025); 97815bd refactor(subagents): consolidate registry cleanup and publication guards (#207064); e94f799 refactor(subagents): centralize requester turn matching (#206584); 819935f refactor(test): trim unused plugin fixture setup (#206982); 8ae0874 improve(gateway): avoid redundant cleanup for empty legacy auth stores (#206867); 4849bb7 fix(browser): report crashed tabs as tab-scoped failures (#194682); ea77ca3 refactor: report update failures from recorded runs (#206700); b19387e fix(test): cover SIGBREAK during pending update recovery (#206860); 18e53d8 fix: finish Linux upgrades after a legacy Gateway crashes (#206530); 8bd1863 chore(test): remove unused plugin contract fixture setup (#206812); f1841bc fix: stop repeating unchanged session state in every chat turn (#206766); f9a8f18 fix: clear the update warning after a retired model is repaired (#204778); 4d7e00b fix: let started participant runs and requests finish after an access change (#206747); 35cd392 improve: use less memory when waiting for an agent reply (#206733); 9845bf5 fix(test): keep readiness abort fixtures alive until stopped (#206660); 461f650 fix(ci): keep startup helpers internal (#206649); f89ae43 refactor(subagents): use cleanup and terminal owners in sweeps (#206533); a882e0f fix(agents): preserve task answers when sessions are reused (#126263); ccb6d81 fix: finish core updates when the Gateway is ready (#206560); 74f02b4 fix: refuse root updates of a system service that runs as another account (#206343); 01032b1 fix(update): keep acknowledged run IDs when status is unavailable (#206562); 3ce0582 refactor(subagents): centralize collector replay decisions (#206471); c2cfab0 chore: consolidate repeated test fixtures and guards (#198739); 219b6b0 perf(agents): render the system prompt from one manifest and halve it (#206537); 360e306 refactor(test): remove mocked outbound staging fixtures (#184863); cbdd907 fix: finish release updates after a slow launcher response (#206503); 81fc833 refactor(subagents): own dormant child Stop decisions (#206479); 91d4912 fix(update): stop using foreign recovery records as admission (#206295); 6feeb50 fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341); be3c73e fix(subagents): finish claimed stops after session rotation (#206405); 5e5bb6e fix(update): round status inspection timeouts (#206250); 41afc0f fix(update): keep successful plugin reload warnings advisory (#206372); 6d86389 fix: finish healthy Git updates after an older verifier exits; da6ec1a fix(update): bound release CLI Gateway waits (#206252); d9a36b3 improve: skip unrelated harness discovery for isolated model calls (#206323); bcdb2ef improve(cli): skip channel and web discovery for model credentials (#206240).
Later PR-number mentions: none Later commit-SHA mentions: none
Pinned PR grep: ed8b883 fix(update): settle after plugins and share one completion summary (#205987)

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. 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