Skip to content

refactor(gateway): deslop gateway request and runtime flows - #162874

Merged
steipete merged 3 commits into
mainfrom
deslop/l275-dup-gateway-agents2-20261001
Oct 2, 2026
Merged

steipete merged 3 commits into
mainfrom
deslop/l275-dup-gateway-agents2-20261001

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Gateway handlers repeat session-target resolution, scope predicates, queue mechanics, and normalization already owned by shared modules. This continues the maintainer-requested Gateway duplication sweep.

Related: #162413.

User Impact

No intended user-visible change. RPC names, schemas, error codes and text, authorization timing, CLI behavior, and persisted session state remain unchanged.

Why This Change Was Made

  • Compose agent admission and canonical session-key resolution in the existing store-key owner, replacing nine copies across boards, progress cards, companion RPC, attach grants, and subscriptions. Caller-specific errors and revalidation stay at their existing boundaries.
  • Share the strict admin predicate and complete model-auth errors at their owners. Keep permissive legacy predicates separate, retain strict logout input validation, and import status types directly from their type owner.
  • Use the existing keyed queue for node events and reaction mirrors, preserving per-key order and rejection recovery; reuse observer revision snapshots and run-owner matching.
  • Remove unreachable update-target revalidation after protocol admission.
  • Consolidate cron completion, Doctor ambient-agent fallback and cron constants; reuse JSON, URL, string-list, and stop-command helpers.
  • Remove startup/config settlement forwarders and unused inputs; normalize media base64 only once.

Measured candidate: 193 net production lines removed. No generated-code or test deletion is credited.

Fixes Found Along the Way

The update campaign fixture bypassed both validation layers and asserted an inner rejection unreachable through the real RPC. It now uses canonical admission and verifies malformed targets fail before update effects. Existing logout cases additionally cover ordered trim/deduplication and malformed or sparse selectors.

Evidence

  • Independent isolated Codex autoreview: no actionable P0–P2 findings, repeated after the test consolidation.
  • Blacksmith Testbox: 3,523 tests passed across 209 files; one existing opt-in reconnect benchmark was skipped. Sibling selection completed in 400.71 seconds, with auth/update suites measured separately.
  • Both import-cycle checks reported zero. Protocol checks/generated models have zero drift. SDK API comparison completed; the two changed reachable declarations add internal helpers without removing public entrypoint exports.
  • Materially changed test cost: auth status 40 seconds wall / 53 tests; update campaign 25 seconds / 28 tests. The existing auth suite is dominated by cold worker transformation; the added selector cases create no additional Gateway/process fixtures. Clean-base auth measurement passed 49 tests in 40.20 seconds.
  • The line-cap repair consolidates fixture code and error-envelope assertions without removing cases. The assertion baseline shrinks exactly with one removed cast.
  • Changed-file verification completed across the full run and scoped correction replays: core, all 27 core-test type shards, UI types, boundary/ratchet/dead-export guards, and final core/UI/script lint all passed. The final sparse-fixture syntax correction also passed its focused Gateway-method typecheck and 53 tests. Final cycles remained zero.
  • Final replay: Blacksmith Testbox run 36895878089, frozen source tree 058d3c92278af9145a5379c2c95bb3b99109a111. Earlier full-suite results are reused only for unchanged inputs.

Rebase recovery

The earlier UI retention failure was fixed on main by #163018 (a9665e46cc28db91063e21a06fdc0fd814231773). This branch is rebased onto 2dc1071d20812751fe55daab18b788fccf95c745, which contains that fix. The only manual resolutions preserve main's simplified web-search scope mock while removing the retired error-mapper mock, and preserve its CronStatusSummary import alongside the canonical model-auth type import. The two correction commits replayed unchanged.

Rebased head: 73a5ba9710ae685cf3730e035e08f4ff494413d6. Fresh independent Codex review found no actionable P0–P2 findings. Blacksmith Testbox tbx_01m3xc6833f2ag6sbpf6w72b1x (run 36962472110) verified all 58 changed-file SHA-256 hashes and passed 1,166 tests across 50 files in four Vitest shards (143.05 seconds), including the repaired usage-retention test. Both cycle checks report zero, protocol verification passes without drift, and the core production typecheck passes. The complete node scripts/check-changed.mjs --base origin/main invocation passed, including all 27 core-test type shards, UI types, boundary/ratchet/dead-export checks, and core/UI/script lint. The complete remote command exited 0 in 27m22.745s. Earlier evidence above remains explicitly prior-head evidence.

The first replacement attempt never executed tests: its admission log identifies lease tbx_01m3xbf6bzhagbkp78bpc5r0eh, whose workflow was cancelled while the provider continued to report it queued. That lease was stopped; the fresh lease above acquired a runner normally. No validation was weakened or rerun merely for green.

Independently verified inherited CI failure

The current PR Node job 110703173185 reports TypeError: log.trace is not a function at src/infra/gateway-scheduler.ts:282 while subagent-spawn.production-boundary.test.ts runs. The identical stack and test are recorded on scheduled main run 36961023723 / job 110694726457, head 4e397534d9eaa24631ecef85134055b8f7fefd46. The logger mock in prepared-model-runtime.test-harness.ts omits trace, while the scheduler's cadence logging uses it.

The actual PR CI checkout is merge e4dcfd5eb9dd1d0ccd2ca2b1a5018dc5aed4ec9d, with parents main 35b8a1ae736f0090a70cb095c09128aba934daa8 and PR 73a5ba9710ae685cf3730e035e08f4ff494413d6. The scheduler, logger harness, and originating test are byte-identical across the independently failing main head, that merge's main parent, and the tested merge. The PR does not change any of those three files. This qualifies the maintainer-authorized pre-existing-failure exception; no retry, weakened test, or production workaround was used.

@clawsweeper

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

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 73a5ba9710ae685cf3730e035e08f4ff494413d6
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/model-auth-refresh.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/operator-scopes.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/cron-creator-authority-admission.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/model-auth-agent-scope.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/models-auth-order.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/models-auth-refresh.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/models-auth-status.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@steipete
steipete enabled auto-merge (squash) October 1, 2026 17:26
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 2, 2026, 12:22 AM ET / 04:22 UTC (Revision 3).

ClawSweeper review

What this changes

The PR consolidates Gateway session targeting, permission predicates, queues, normalization, and lifecycle helpers while retaining existing request behavior and strengthening validation fixtures.

Merge readiness

⛔ Blocked before merge - 3 items remain

This maintainer-requested cleanup remains useful and has no concrete blocking code finding. The previously identified published-updater compatibility proof gap remains unresolved.

Priority: P3
Reviewed head: 73a5ba9710ae685cf3730e035e08f4ff494413d6

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is a coherent consolidation with substantial reported validation, but required installed-updater proof remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 8 items Pinned introduced change: Read all introduced hunks from the verified merge base to the original PR head, including the auth, update, queue, lifecycle, TUI, UI-type, and test changes. The supplied verified test merge retains the pinned main parent followed by this exact head; base-only changes were not attributed to the PR.
Existing owners are composed without moving authorization: The new session-target helper calls the same agent-admission and canonical-key owners in the same order as the replaced callers. The shared admin predicate preserves the previous array check and exact operator.admin membership test; caller-side active-authority checks remain present. These equivalent extractions do not materially change who can reach a final effect.
Removed update check is covered by production admission: update.run first awaits admitGatewayUpdateRequest, which validates the registered schema before installation inspection. The schema requires a git target, a nonempty reference without whitespace/control characters, and a 40-character hexadecimal SHA. The revised fixture removes validation bypass mocks and checks rejection before update mutation.
Findings None None.
Security None None.

How this fits together

The Gateway receives requests from chat clients, plugins, and operators, resolves their session and permissions, and dispatches work to agent, device, and maintenance owners. These shared helpers coordinate that dispatch and its runtime lifecycle.

flowchart TD
  A[Clients and plugins] --> B[Gateway request admission]
  B --> C[Session and permission resolution]
  C --> D[Agent and maintenance handlers]
  D --> E[Ordered runtime work]
  E --> F[Replies and session events]
Loading

Before merge

  • Resolve merge risk (P1) - Compatibility of the touched update, Doctor, and startup paths with an installed published updater and existing operator state remains unverified; repository policy requires that upgrade cell before merge.
  • Complete next step (P2) - Add published-updater × candidate evidence using existing operator state, including the observed update and replacement Gateway startup outcome.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -193, Tests -19, Other 0. Total -212 across 58 files.

View PR surface stats
Area Files Added Removed Net
Source 51 217 410 -193
Tests 6 101 120 -19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 58 319 531 -212

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/gateway/server-methods/doctor.ts, unknown-data-model-change: src/gateway/server-methods/doctor.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete the installed-updater evidence (recommended)
    Record a published updater applying the candidate to existing operator state and demonstrate successful recovery and Gateway startup.

Technical review

Best possible solution:

Retain the shared-owner cutover with unchanged request and stored-state contracts, supported by published-updater compatibility evidence.

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

Not applicable: this is an internal refactor, and source review found no concrete introduced failure to reproduce. No target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes: reusing the existing targeting, queue, normalization, and scope owners is a maintainable consolidation; the remaining gap is upgrade evidence rather than an identified code repair.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is requested internal cleanup with no intended user-visible behavior change or observed urgent regression.
  • merge-risk: 🚨 compatibility: The diff touches update, Doctor, and startup behavior without the published-driver compatibility evidence required by repository policy.
  • 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. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

  • Pinned introduced change: Read all introduced hunks from the verified merge base to the original PR head, including the auth, update, queue, lifecycle, TUI, UI-type, and test changes. The supplied verified test merge retains the pinned main parent followed by this exact head; base-only changes were not attributed to the PR. (73a5ba9710ae)
  • Existing owners are composed without moving authorization: The new session-target helper calls the same agent-admission and canonical-key owners in the same order as the replaced callers. The shared admin predicate preserves the previous array check and exact operator.admin membership test; caller-side active-authority checks remain present. These equivalent extractions do not materially change who can reach a final effect. (src/gateway/session-store-key.ts:143, 73a5ba9710ae)
  • Removed update check is covered by production admission: update.run first awaits admitGatewayUpdateRequest, which validates the registered schema before installation inspection. The schema requires a git target, a nonempty reference without whitespace/control characters, and a 40-character hexadecimal SHA. The revised fixture removes validation bypass mocks and checks rejection before update mutation. (src/gateway/server-methods/update-admission.ts:37, 73a5ba9710ae)
  • Current main does not contain this complete consolidation: Fetched main still lacks the composed session-target helper and shared admin predicate in their respective owners. The merged earlier Gateway cleanup at refactor(gateway): deslop gateway request owners #162413 is preceding work, not a verified replacement for this branch; the latest-release context supplies no fixing PR for this cleanup. (src/gateway/session-store-key.ts, 2dd93a290b74)
  • Scoped upgrade proof remains required: Root policy requires a published-driver × candidate cell for changes touching update, Doctor, or service lifecycle. This diff touches all three. The complete captured body describes Testbox unit suites, typechecks, and guards, but supplies no observed published-driver update with existing operator state. The earlier review's specific rank-up request therefore remains applicable; no waiver or acceptance is recorded. (AGENTS.md:84, 73a5ba9710ae)
  • Validation evidence and its limits: The captured body reports 1,166 passing tests across 50 files for the rebased candidate, hash verification, zero cycles, protocol verification, and production types. The linked Testbox workflow was still in progress when inspected and runs from an infrastructure SHA; its metadata alone does not independently establish candidate execution or installed-updater compatibility. No media files were present in the supplied proof scratch directory. (73a5ba9710ae)

Likely related people:

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

Rank-up moves

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

  • Add redacted published-driver × candidate evidence showing the update outcome and subsequent startup with existing operator state.

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 (2 earlier review cycles)
  • reviewed 2026-10-01T17:25:52.769Z sha dda3f82 :: blocked before merge. :: none
  • reviewed 2026-10-01T18:10:31.460Z sha dda3f82 :: blocked before merge. :: none

steipete added a commit that referenced this pull request Oct 2, 2026
## What Problem This Solves

The Control UI still reads top-level session selections and rewrites durable shared-token settings produced before the supported July 2026 upgrade window.

## User Impact

Upgrades from pre-July-2026 versions are no longer migrated: top-level remembered session selections and durable-token settings cleanup. Users with those unsupported selections can select their session again; conversations remain on the Gateway. Current shared credentials stay in session storage and are never restored from durable settings.

## Why This Change Was Made

This implements the maintainer's July-and-later migration policy at the settings owner. The scalar session writer was replaced by `sessionsByGateway` in d37e3d5, first shipped in v2026.3.22 (March 23); v2026.3.13-1 was the last prior tagged writer. Durable token writes were removed by 10d0e3f, first shipped in v2026.3.7 (March 8); v2026.3.2 still wrote them.

Actual v2026.7.1-beta.1, v2026.7.1, and v2026.7.35 source writes `sessionsByGateway` and omits durable tokens. The July sidebar-pins upgrader, device-token import, and chat-outbox/group migrations remain: supported releases still produced those shapes. The September-published v2026.7.35 still writes outbox v1 and browser-local groups, so main's earlier cutovers are insufficient evidence for deleting them.

Net production reduction: 9 lines. The obsolete migration test is removed, and the existing settings-upgrade test now exercises representative July beta/stable persisted shapes. No protocol, schema, SDK, or rendered appearance changes.

## Evidence

- Isolated Codex AutoReview: no actionable P0–P2 findings.
- Blacksmith Testbox, pinned source and edited-file hashes: settings and preference suites passed, 33 tests, 1.60 s total Vitest duration; July beta/stable fixtures load, migrate pinned routes where present, and round-trip.
- Both import-cycle checks: 0 cycles.
- `check-changed` against pinned base 04fbf17: passed, including UI types, eight affected test-type graphs, lint, i18n, and dead-export checks.
- Doctor legacy-config and migration suites: both passed (32.03 s across the two Vitest shards, including cold worker preparation).
- `git diff --check`: clean.

The repository wrapper's source staging hit local ENOSPC before upload. Native Blacksmith sync on the same owned lease verified the exact base and file hashes and ran the proof remotely. An initial changed-check invocation used the remote's newer `origin/main` and included inverse sibling changes; the corrected invocation pins this branch's actual base.

Hosted CI on head `7366eaed49bcc5f3e9750418180795bdc7355179`: [checks-ui (1/3)](https://github.com/openclaw/openclaw/actions/runs/36940168750/job/110629901361) passed 8,023 tests but failed `UsagePage detail requests > releases a loaded overview when its Gateway identity is replaced`: `expected OverviewPayload to be undefined`. Fail-fast cancelled the remaining run. The same failure is independently verified on unrelated PR #162874's still-current head `dda3f8258915c215083578eb6a46dc4b95c6d9ae`, [run 36898732505](https://github.com/openclaw/openclaw/actions/runs/36898732505/job/110492893649); its Usage test and page blobs match this head. Existing repair #163018 owns it; this PR does not duplicate that fix.

The failing synthetic lifecycle does not call settings readers and does not mount its dormant sidebar loader. A conservative graph including that dynamic loader still reaches settings, so no unconditional import-disjointness or admin exception is claimed. Hosted CI remains failed/pending acceptance, not green.
@steipete
steipete force-pushed the deslop/l275-dup-gateway-agents2-20261001 branch from dda3f82 to 73a5ba9 Compare October 2, 2026 04:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
## What Problem This Solves

The Control UI still reads top-level session selections and rewrites durable shared-token settings produced before the supported July 2026 upgrade window.

## User Impact

Upgrades from pre-July-2026 versions are no longer migrated: top-level remembered session selections and durable-token settings cleanup. Users with those unsupported selections can select their session again; conversations remain on the Gateway. Current shared credentials stay in session storage and are never restored from durable settings.

## Why This Change Was Made

This implements the maintainer's July-and-later migration policy at the settings owner. The scalar session writer was replaced by `sessionsByGateway` in e981fb5, first shipped in v2026.3.22 (March 23); v2026.3.13-1 was the last prior tagged writer. Durable token writes were removed by 3d59297, first shipped in v2026.3.7 (March 8); v2026.3.2 still wrote them.

Actual v2026.7.1-beta.1, v2026.7.1, and v2026.7.35 source writes `sessionsByGateway` and omits durable tokens. The July sidebar-pins upgrader, device-token import, and chat-outbox/group migrations remain: supported releases still produced those shapes. The September-published v2026.7.35 still writes outbox v1 and browser-local groups, so main's earlier cutovers are insufficient evidence for deleting them.

Net production reduction: 9 lines. The obsolete migration test is removed, and the existing settings-upgrade test now exercises representative July beta/stable persisted shapes. No protocol, schema, SDK, or rendered appearance changes.

## Evidence

- Isolated Codex AutoReview: no actionable P0–P2 findings.
- Blacksmith Testbox, pinned source and edited-file hashes: settings and preference suites passed, 33 tests, 1.60 s total Vitest duration; July beta/stable fixtures load, migrate pinned routes where present, and round-trip.
- Both import-cycle checks: 0 cycles.
- `check-changed` against pinned base 5729541: passed, including UI types, eight affected test-type graphs, lint, i18n, and dead-export checks.
- Doctor legacy-config and migration suites: both passed (32.03 s across the two Vitest shards, including cold worker preparation).
- `git diff --check`: clean.

The repository wrapper's source staging hit local ENOSPC before upload. Native Blacksmith sync on the same owned lease verified the exact base and file hashes and ran the proof remotely. An initial changed-check invocation used the remote's newer `origin/main` and included inverse sibling changes; the corrected invocation pins this branch's actual base.

Hosted CI on head `7366eaed49bcc5f3e9750418180795bdc7355179`: [checks-ui (1/3)](https://github.com/openclaw/openclaw/actions/runs/36940168750/job/110629901361) passed 8,023 tests but failed `UsagePage detail requests > releases a loaded overview when its Gateway identity is replaced`: `expected OverviewPayload to be undefined`. Fail-fast cancelled the remaining run. The same failure is independently verified on unrelated PR openclaw#162874's still-current head `dda3f8258915c215083578eb6a46dc4b95c6d9ae`, [run 36898732505](https://github.com/openclaw/openclaw/actions/runs/36898732505/job/110492893649); its Usage test and page blobs match this head. Existing repair openclaw#163018 owns it; this PR does not duplicate that fix.

The failing synthetic lifecycle does not call settings readers and does not mount its dormant sidebar loader. A conservative graph including that dynamic loader still reaches settings, so no unconditional import-disjointness or admin exception is claimed. Hosted CI remains failed/pending acceptance, not green.
@steipete
steipete merged commit 8fe0d57 into main Oct 2, 2026
166 of 169 checks passed
@steipete
steipete deleted the deslop/l275-dup-gateway-agents2-20261001 branch October 2, 2026 04:37
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…#162874)

Consolidate Gateway session-target admission, strict scope predicates, keyed queues, model-auth errors, observer/run facts, and normalization under their existing owners. Preserve RPC contracts, caller-specific authority checks, CLI behavior, and persisted session state.

Rebase onto current main while retaining its simplified web-search test fixture, Cron status contract, and deterministic usage-retention fix. Remove 193 net production lines without weakening coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: L 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