Skip to content

refactor(infra): deslop infra fifth pass - #159759

Merged
steipete merged 4 commits into
mainfrom
deslop/l123-infra-fifth-pass
Sep 28, 2026
Merged

steipete merged 4 commits into
mainfrom
deslop/l123-infra-fifth-pass

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

This fifth infra pass removes repeated projections, forwarding helpers, redundant normalization, and duplicated decision plumbing. The fourth pass (#158877) landed during preparation, so the rebase keeps its canonical implementations and drops overlapping cleanup.

User Impact

This is a behavior-preserving refactor except for the pairing bug below. SQLite schemas, persistent-store semantics, filesystem/security boundaries, SSRF guards, and update/install behavior remain unchanged. No migration or operator action is required.

Why This Change Was Made

The remaining diff removes 900 net production lines (794 added, 1,694 removed) across 90 production files, plus 45 net test lines. The earlier 1,480-line count is superseded: main absorbed the duplicate work. This is a below-threshold PR with complete, size-sorted READ coverage for every current production file over 200 lines attached in coverage part 1 and part 2.

  • Outbound: reuse payload, queue-failure, audit-context, routing, and delivery owners; remove repeated result construction and target forwarders while preserving settlement order.
  • Pairing/bootstrap: inline single-caller reconciliation and reuse token issuance, keeping approval, claim, persistence, and supersession ordering explicit.
  • Approval: import one request/resolution union and callback contract instead of maintaining parallel local declarations.
  • Heartbeat: remove ignored cooldown inputs and duplicated test cases; retain intent, flood, spacing, and scheduler source-to-intent coverage.
  • Migration: reuse transcript parsing, checkpoint keys, recovery and plan-tail handling, and canonical types without changing receipts or transactions.
  • SQLite: carry already-validated table-name types and remove the redundant WAL warning latch; retain main's reader diagnostic owner unchanged.
  • Environment/commands: remove dotenv names already covered by namespace/suffix rules, redundant normalized-key validation, repeated inline-evaluation result projection, and shell option scanning.
  • Network/catalog: consolidate ClawHub parsing and optional metadata projection, MiniMax usage-window descriptors, Bonjour beacon construction, and proxy numeric-option projection. Security and transport decisions remain with their existing owners.
  • Package/runtime: reuse npm metadata helpers, simplify package/preflight result construction and version-range parsing, and remove private restart and worker-pool forwarders. Update/install ordering and ownership stay unchanged.
  • Diagnostics/utilities: share trace propagation after queue admission, reuse usage aggregation, and remove redundant presence and runtime normalization.

Fixes found along the way

Permission-map equality used locale-sorted keys. Distinct Unicode keys that collate equally could make an unchanged map with different insertion order replace its pending pairing request. Exact own-key/value comparison fixes that behavior. The existing requestNodePairing metadata-refresh test includes the Unicode case and was demonstrated failing on the original implementation and passing with the fix.

Evidence

Final head: c468be72d093f9f97d89f4a525ca8fcad76f6d38; tested source tree: 0d6743a0f02c2fc302397e5ed0654f987fa506e2; base: 4dafd3b56a2c0da83ea3866c669052d0ebf80d16. All four task commits are patch-identical through the final rebase. The later duplicate check against 216798c496a found no absorbed cleanup or pairing fix, and the merge check is conflict-free. The PR remains unmerged and unarmed.

All checks, tests, and builds ran on Blacksmith Testbox through the repository wrapper, after frozen dependency installation and exact source-tree verification.

Current-head proof used tbx_01m3mqt4dk3gza7tpq70kkng59 (run). Every phase returned exit 0:

Command / contract Result Wall
node scripts/check-changed.mjs --base 4dafd3b56a2c0da83ea3866c669052d0ebf80d16 Passed all type, dead-code, lint, storage and other selected guards 1,743.32 s
node scripts/run-vitest.mjs <15 affected upstream contract files> Six routed shards passed 270.95 s
node scripts/run-vitest.mjs <all import-boundary tests> Nine routed shards passed, including fs-safe and sibling boundaries 101.84 s
node --import tsx scripts/ci-run-node-test-shard.mts with the original cap-failure plan and CI environment Both original-order groups passed with the original worker limits 226.22 s
node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts 219 passed 139.99 s
pnpm build Passed 467.23 s
Direct sourceDeliveryTargetsMatch blank-ID/topic-suffix probe All 18 comparisons passed 1.84 s
Package the built candidate with scripts/package-openclaw-for-docker.mjs Passed 68.17 s
pnpm test:docker:published-upgrade-survivor, published [email protected], base,legacy-operator-state, manual restart Both complete cells passed on their first attempt 816.61 s total

The normal published-driver cell passed in 361 seconds, including standalone post-update Doctor. The legacy-state cell passed in 433 seconds, including backup rollback. The inspected rollback receipt confirms raw transcript restoration, exact schema-23 admission for both agents, and all three seeded sessions readable by the retained published runtime. Candidate state/agent schema versions are 19/23. Live provider calls were disabled; this is update, state-preservation and rollback proof.

The final lease is stopped. Complete test logs and Docker summaries were downloaded; after the recursive receipt transfer hit its five-minute limit, both cell summaries and the rollback/restore receipts were downloaded individually and inspected. Current-head CI 36472384677 passed: 143 successful jobs, 18 skipped, no failures, including openclaw/ci-gate.

Full node scripts/run-vitest.mjs src/infra <24 importer files> passed 16,614 tests, 62 existing skips, nine routed shards in 1,598.10 seconds on preceding head 0a2f81c2903e1fb0b506613bf17256128c1dc477. The task diff is unchanged on the final head; the affected upstream-contract selection above covers the rebase additions. That broad run, boundary pass and build used tbx_01m3mkfdbttczz2jbq1vgvjqws (run); that lease is stopped.

Inherited failures and owner repairs

The final rebase includes the exact missing-scheduler fixture repair 4bd105408cc, the cap-preserving hourly planner repair df582a4010d, and the Doctor capture repair #160291 (7d8f806a69e). The original failing CI shard and complete upgrade/rollback flow now pass. No duplicate CI or product repair is included here.

The earlier census timeout was fixed by #160531 (714c2c6baa8f), landed by its existing owner. This lane additionally proved its exact head on Linux: complete ordered plan/matrix parity, three original-order shard replays, twenty consecutive whole integration-file passes, selector/planner/command suites, changed checks, boundaries, build, and independent P0–P2 review. Lease tbx_01m3mdba149d52w3072cvzydz4 is stopped. The duplicate fixture PR #159845 was closed as superseded.

One earlier tooling shard hung after successful assertion output at its unchanged 300-second watchdog. Its exact original ten-file/two-config plan passed on clean old base (215.75 seconds) and candidate (215.54 seconds), with original order and two workers. No assertion failure or OOM was observed; the original cache artifact was unavailable. That hang remains unreproduced and is not claimed fixed. No speculative teardown patch or timeout increase was added.

Review and test cost

Independent P0–P2 review completed with no accepted actionable finding. Its latest conditional finding claimed blank thread IDs blocked topic-suffix fallback. Complete owner source disproved that premise: stringifyRouteThreadId delegates to normalizeOptionalThreadValue and normalizeOptionalString, which trim blank strings to undefined. The current-head probe passed all 18 blank-ID combinations with matching and differing topics. Fresh ClawSweeper review also checked that helper chain and found no introduced code or security defect; its request for current-head upgrade and rollback proof is now satisfied by the receipts above. This records the rejected finding accurately, rather than calling that automated report clean.

Final ClawSweeper revision 21 marks proof sufficient and reports no actionable findings or supported blocking defect. Its rendered report retains two generic config/data-model checkboxes associated with migration paths and a truncated file inventory. Compatibility is confirmed here: this PR adds no config option or default, schema, transaction, durability, retention, or recovery contract; the current-head published-driver and rollback cells above passed. The pairing equality correction is the intentional behavior fix described above. No auto-merge is armed.

Changed test Single-file Testbox wall, one worker Prior-head CI case execution Shared CI shard wall
device-pairing-node.test.ts 17.85 s, 39 passed 5.377 s 244.49 s / 42 files
heartbeat-cooldown.test.ts 1.27 s, 18 passed 0 ms after rounding 68.97 s / 735 files

The changed test bodies are unchanged through rebases. These are costs, not a performance comparison.

@clawsweeper

clawsweeper Bot commented Sep 27, 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 Sep 27, 2026
@steipete
steipete marked this pull request as ready for review September 27, 2026 15:43
@github-actions

github-actions Bot commented Sep 27, 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: c468be72d093f9f97d89f4a525ca8fcad76f6d38
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/server/ws-connection/connect-node-pairing-ssh.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/infra/device-bootstrap.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/infra/device-bootstrap.worker-kernel.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/infra/device-pairing-core.kernel.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/infra/device-pairing-state.kernel.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/infra/exec-approval-channel-runtime.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/exec-approval-channel-runtime.types.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/infra/node-pairing-surface.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@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 Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:23 PM ET / 21:23 UTC (Revision 21).

ClawSweeper review

What this changes

The branch consolidates Gateway pairing, approvals, outbound delivery, migration, update, and diagnostic code, and fixes permission-map comparison during node pairing.

Merge readiness

⛔ Blocked before merge - 2 items remain

The branch still has a distinct pairing fix absent from current main. The previous review’s upgrade-proof request is addressed by current-head published-updater and legacy rollback results, and this review found no supported blocking defect.

Priority: P3
Reviewed head: c468be72d093f9f97d89f4a525ca8fcad76f6d38

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Current-head upgrade and rollback evidence supports a broad, coherent cleanup with no identified blocking defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The PR ties the pinned production tree to published [email protected] update and legacy rollback scenarios, reporting successful Doctor, transcript restoration, schema admission, and session reads after the candidate ran. Raw Testbox logs were unavailable to this reviewer through the sandbox network path; the captured maintainer report and linked run provide the outcome evidence. The refactor establishes no changed stored-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR ties the pinned production tree to published [email protected] update and legacy rollback scenarios, reporting successful Doctor, transcript restoration, schema admission, and session reads after the candidate ran. Raw Testbox logs were unavailable to this reviewer through the sandbox network path; the captured maintainer report and linked run provide the outcome evidence. The refactor establishes no changed stored-data contract.
Evidence reviewed 9 items Distinct pairing fix: The PR compares exact own permission keys and values without locale sorting; the added node-pairing case reverses two collating Unicode keys.
Current-main comparison: Fetched main still compares locale-sorted permission entries, so the pairing fix remains unique to this branch.
Pairing authority: A pending request can refresh only with the same public key, browser origin, and role, followed by matching or covered roles and scopes.
Findings None None.
Security None None.

How this fits together

Gateway infrastructure accepts device requests and agent output, then authorizes pairing and routes replies to channels. Its update and migration paths carry existing operator state into the next running Gateway.

flowchart LR
  A[Device requests] --> B[Pairing and approvals]
  C[Agent replies] --> D[Outbound routing and queue]
  D --> E[Channel delivery]
  F[Installed updater and state] --> G[Migration and recovery]
  G --> H[Running Gateway]
  B --> H
Loading

Before merge

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

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Published-driver proof 2 current-head cells reported passed The scenarios cover an ordinary update and legacy-state rollback with the shipped updater.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/infra/state-migrations.doctor.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Retain the existing infrastructure owners and exact pairing-permission comparison, with the recorded published-driver update and rollback results available for landing review.

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

Yes, by source inspection: current main locale-sorts distinct Unicode permission keys that can collate equally, and the branch adds the reversed-order pairing case. I did not execute that regression in this read-only review.

Is this the best way to solve the issue?

Yes. Exact own-key and value comparison repairs the pairing case, while the cleanup reuses existing owners without adding a competing capability.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d5b11b54afc0.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR ties the pinned production tree to published [email protected] update and legacy rollback scenarios, reporting successful Doctor, transcript restoration, schema admission, and session reads after the candidate ran. Raw Testbox logs were unavailable to this reviewer through the sandbox network path; the captured maintainer report and linked run provide the outcome evidence. The refactor establishes no changed stored-data contract.

Label justifications:

  • P3: The primary change is infrastructure cleanup with one narrow pairing correction.
  • merge-risk: 🚨 compatibility: The diff touches update and migration paths whose upgrade behavior warrants the recorded published-driver and rollback proof.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR ties the pinned production tree to published [email protected] update and legacy rollback scenarios, reporting successful Doctor, transcript restoration, schema admission, and session reads after the candidate ran. Raw Testbox logs were unavailable to this reviewer through the sandbox network path; the captured maintainer report and linked run provide the outcome evidence. The refactor establishes no changed stored-data contract.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR ties the pinned production tree to published [email protected] update and legacy rollback scenarios, reporting successful Doctor, transcript restoration, schema admission, and session reads after the candidate ran. Raw Testbox logs were unavailable to this reviewer through the sandbox network path; the captured maintainer report and linked run provide the outcome evidence. The refactor establishes no changed stored-data contract.

Evidence

What I checked:

  • Distinct pairing fix: The PR compares exact own permission keys and values without locale sorting; the added node-pairing case reverses two collating Unicode keys. (src/infra/node-pairing-surface.ts:54, c468be72d093)
  • Current-main comparison: Fetched main still compares locale-sorted permission entries, so the pairing fix remains unique to this branch. (src/infra/node-pairing-surface.ts:51, d5b11b54afc0)
  • Pairing authority: A pending request can refresh only with the same public key, browser origin, and role, followed by matching or covered roles and scopes. (src/infra/device-pairing-core.kernel.ts:43, c468be72d093)
  • Prior review finding checked: The thread-ID helper normalizes optional values before stringifying them; whitespace-only IDs therefore remain eligible for topic-suffix fallback. (src/plugin-sdk/channel-route.ts:77, c468be72d093)
  • Proof source identity: The checked-out head and tree match the PR’s recorded current-head proof identities. (c468be72d093)
  • Published-driver behavior evidence: The captured PR body and maintainer comment report that the published [email protected] driver completed base/manual update and legacy-state/manual rollback cells on the current tree, with post-update Doctor passing and restored transcripts and sessions readable. The linked Testbox workflow was cancelled when its lease stopped; this review environment could not fetch its raw logs from the blocked results host. (c468be72d093)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Avant: 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 (20 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-28T09:02:19.627Z sha 16c02885dc5a96eeefc31e6863d16fce36fc535a :: blocked before merge. :: none
  • reviewed 2026-09-28T09:29:47.223Z sha 16c02885dc5a96eeefc31e6863d16fce36fc535a :: blocked before merge. :: none
  • reviewed 2026-09-28T09:52:17.819Z sha c9ff549 :: blocked before merge. :: none
  • reviewed 2026-09-28T12:29:06.617Z sha c9ff549 :: blocked before merge. :: none
  • reviewed 2026-09-28T14:01:24.296Z sha ac07216 :: blocked before merge. :: none
  • reviewed 2026-09-28T14:24:20.175Z sha ac07216 :: blocked before merge. :: none
  • reviewed 2026-09-28T18:24:12.009Z sha 0a2f81c :: blocked before merge. :: none
  • reviewed 2026-09-28T19:40:08.394Z sha c468be7 :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The PR body now records completed proof for the current head 9ac158e7607ff895f72e63f4a48af0533501000e: exact-head CI passed (156 successful jobs, 19 skips), and the published [email protected] → candidate base/manual-restart upgrade cell passed on Blacksmith Testbox in 304 seconds (332.88 seconds wrapper wall). The candidate includes the merged native-admission repair from #159650. Please reassess the previously pending upgrade-compatibility result against the updated evidence.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The rollback-specific evidence requested in the last review is now complete on the same head and recorded in the PR body. The published [email protected] driver passed legacy-operator-state/manual in 419 seconds; the receipt reports backupRollback.status: passed and rawTranscriptRestoration: verified. After restoration, the retained published runtime reported both agent databases as exact at schema 23 and read all three seeded sessions, with logical inventory and non-mutation assertions intact. The base upgrade, full current Testbox checks, and exact-head CI also passed. The owned lease is stopped; this remains review-only and unmerged.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 28, 2026
@steipete

steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Infra fifth-pass coverage (1/2)

Complete read coverage for the infra fifth pass after integration with the fourth pass and required upstream fixes. This size-sorted log covers all 407 production files over 200 lines (406 TypeScript files and the security-policy JSON), plus two explicitly identified supplemental test-fixture/baseline files. READ records complete file and relevant caller inspection. Main retained marks unchanged code and the existing owner or contract that justifies retaining it.

Rows 1–199 of 409.

Lines File Read Simplification or retained contract
3439 src/infra/state-migrations.doctor.ts READ APPLIED: Reuse closeMigrationPlanTail for repeated first-refusal tail closure; preserve all eager/shared/final scheduling and projection differences.
2460 src/infra/update-managed-service-handoff.ts READ Main retained: Native/foreground supervision retains distinct lifetimes; system-service settlement requires the helper cleanup receipt before child close, and admitted physical stores stay pinned.
1685 src/infra/diagnostic-events.ts READ Shared trace propagation after queue admission; preserved dispatch order, trust, and listener isolation.
1505 src/infra/exec-approvals-allowlist.ts READ Main retained: Prior passes centralized contexts and authorization evaluation; remaining branches distinguish executable, shell, package-manager, and durable-grant security contracts.
1352 src/infra/update-global.ts READ Main retained: Global command normalization preserves manager-specific installation ownership; Bun commands use the running executable and its approved marker carries that runtime into preinstall.
1303 src/infra/outbound/delivery-queue-recovery.ts READ Consolidated repeated failure recording and missing-entry classification; removed the source-payload-count forwarding helper without changing settlement or cleanup ordering.
1230 src/infra/command-explainer/extract.ts READ Main retained: Tree-sitter traversal, source-offset decoding, and risk classification retain distinct syntax and ordered source-span contracts.
1181 src/infra/state-migrations.session-store.ts READ Main retained: Existing canonicalizeSessionStore owns winner installation; owner aliases, deferred receipts, and filesystem admission remain distinct contracts.
1130 src/infra/npm-managed-root.ts READ Reused canonical raw string-array filtering, simplified platform allow/deny selection, and inlined single-use metadata projections without changing manifest publication.
1012 src/infra/restart.ts READ Removed forwarding wrappers so exported reset and signal rollback operations directly own their existing cleanup.
901 src/infra/exec-authorization-plan.ts READ Main retained: Direct, wrapper, and positional-carrier planners intentionally preserve distinct authority and persistence boundaries.
816 src/infra/state-migrations.storage.ts READ Main retained: Recently consolidated archive and plugin-index ownership; queue import receipts and terminal/media custody semantics prevent replay.
795 src/infra/package-update-steps.ts READ Main retained: Existing stage/publication owners retain activation custody; native-manager probes project only admitted inputs so candidate-gated accessors remain deferred.
793 src/infra/update-startup.ts READ Main retained: Existing campaign controller owns lifecycle execution; package and Git target admission retain distinct projection and scheduling contracts.
783 src/infra/net/ssrf.ts READ Main retained: DNS answer, override, trust and cleanup checks have distinct boundaries; assertPublicHostname is retained by plugin-sdk/infra-runtime wildcard export.
760 src/infra/sqlite-wal.ts READ Removed duplicate warning latch; disabling split-brain scans already prevents repeat warnings.
756 src/infra/agent-run-registry.ts READ Main retained: Current-generation ownership, delegated authority and projection revisions are separate live contracts; no safe simplification beyond existing shared lease owner.
749 src/infra/update-candidate-state.ts READ Main retained: Snapshot discovery and raw aliases preserve released-worker contracts; plugin inventory, execution-approval copying, and plugin snapshots publish their own diagnostic phases.
745 src/infra/net/fetch-guard.ts READ Main retained: Each transport branch carries different DNS/proxy authority; redirect replay and request lifetime checks remain necessary.
745 src/infra/worker-task-pool-core.ts READ Removed factory forwarding layer; consolidated successful reply completion without changing input-custody retirement.
739 src/infra/package-update-swap.ts READ Main retained: Existing publication owner retires successful-update database snapshots with package backups; rollback evidence, verification, and sealed retirement retain distinct lifetimes.
735 src/infra/state-migrations.legacy-sessions.ts READ Main retained: No large safe restructure remains: SQLite-family reservation, reversible non-database moves, quarantine cutover, and protected current-session merge have distinct recovery contracts.
733 src/infra/outbound/deliver-queue-execute.ts READ Main retained: Preserved exact custody transitions, post-send evidence, cancellation joins and terminal publication ordering; recent fixes encode hard persistent semantics.
732 src/infra/backup-create.ts READ Main retained: sealed resource inventory, capture revalidation, tar traversal, and publication each enforce distinct filesystem or persistence boundaries.
729 src/infra/sqlite-worker-broker.ts READ Main retained: Actor factory identity survives worker failure while dispatch owns liveness; cancellation, input custody, and write settlement retain distinct boundaries.
727 src/infra/gateway-state-owner.ts READ Main retained: Explicit reads reuse bounded physical-ownership proof while mutations verify freshly; lifecycle invalidation, schema authority, retained projections, and private directory custody stay distinct.
723 src/infra/update-run-ledger.ts READ Main retained: Adoption, reconciliation and interruption transactions enforce distinct persistent outcomes; no storage-semantic-safe deletion remains.
722 src/infra/deferred-plugin-session-sources.ts READ Main retained: No sound bulk reduction: source caches are phase-scoped and receipt/index/transcript revalidation serves different provenance boundaries; recent indexless recovery must remain intact.
720 src/infra/state-migrations.meeting-transcripts-files.ts READ Main retained: All exports have migration callers; streaming staging, source rehash, path validation and archive restoration protect distinct filesystem/recovery phases; recent fs-safe work already removed duplication.
717 src/infra/device-pairing-store.ts READ Main retained: Row codecs preserve absent-vs-null and transaction/cache publication semantics; no safe independent simplification without touching persistent-store contracts.
716 src/infra/session-event-wake.ts READ Main retained: Per-target coalescing, global barriers, retry custody and timer generations have distinct fairness/lifecycle obligations; retained.
713 src/infra/update-check.ts READ Main retained: Registry and Git probes retain distinct cancellation, timeout, and receipt-authority semantics; existing package target owner receives registry abort signals.
712 src/infra/install-package-dir.ts READ Main retained: Sticky transaction authority, pinned publication receipts, quarantine custody, retryable rollback, and fs-safe retirement preserve distinct install and recovery contracts.
712 src/infra/update-managed-service-handoff-lease.ts READ Main retained: Existing lease store composes row, original-admission, mutation, cancellation, and reclamation owners; paired child binding and release preserve atomic custody.
710 src/infra/approval-handler-runtime.ts READ Main retained: Typed-to-erased adapters preserve callback async/this semantics; delivery cancellation and finalization own real lifecycle invariants.
704 src/infra/state-migrations.audit-logs.ts READ Main retained: Existing archive-path owner is shared; claim recovery, source identity, and append checkpoints require their current order.
703 src/infra/state-migrations.meeting-transcripts.ts READ Main retained: Import, rollback, archive-resume, and projection-repair paths have distinct durable outcomes and existing owner helpers; no safe large simplification.
701 src/infra/outbound/targets.ts READ Removed duplicate missing-plugin fallback callback and impossible sender assertion; retained account, owner, direct-route and heartbeat policy checks.
700 src/infra/update-runner-git.ts READ Main retained: Existing error/rollback owners already shared; admission, source mutation, state migration and runtime retention each require distinct recovery transitions.
698 src/infra/update-candidate-canary.ts READ Main retained: Step publication, deadline classification, and Doctor compatibility are intentionally phase-specific; no safe consolidation found.
697 src/infra/tailscale.ts READ Shared identical settlement callbacks; removed redundant permission substring and one-use boolean forwarding helper.
693 src/infra/session-cost-usage-rollup.ts READ Applied existing latency merge owner to daily summaries; derive activity dates from existing day map and bounds from sorted bucket traversal.
693 src/infra/system-run-mutable-file-operand.ts READ Main retained: Interpreter option and operand scanners implement distinct binding rules; consolidation would risk changing approval coverage.
693 src/infra/update-runner-git-preflight.ts READ Main retained: Fallback selection, candidate build and cleanup paths preserve distinct failure precedence and mutation admission.
687 src/infra/state-migrations.runtime-state.ts READ Main retained: Existing migration owner already centralizes JSON reads and row construction; legacy normalization and import precedence remain required.
686 src/infra/approval-native-route-coordinator.ts READ Reused canonical approval request union; retained native account selection and notice lifecycle.
682 src/infra/update-runner-git-target.ts READ Main retained: Existing selectNpmChannelVersion owns beta/stable selection; worktree preparation, Git ref validation, and candidate targeting retain distinct contracts.
679 src/infra/outbound/message-action-runner.ts READ Inlined one-use internal-source tool-result builder, removing duplicated payload type and preserving exact details projection.
678 src/infra/system-run-approval-binding.ts READ Main retained: Executable identity, env hash, script snapshot, and post-await revalidation checks protect separate authority boundaries.
676 src/infra/clawhub-install-trust.ts READ Main retained: Exact-release identity checks and install dispositions are boundary behavior; package and skill evidence differs and remains explicit.
676 src/infra/clawhub-plugin-catalog.ts READ Main retained: Remote catalog and detail parsers have distinct malformed-field diagnostics, null semantics and optional projections; prior passes already own capability parsing.
675 src/infra/outbound/message-action-execution.ts READ Main retained: Gateway timeout reconciliation, pending-source receipts, authority, and send/poll/plugin paths enforce distinct outcomes; no further sound simplification found.
673 src/infra/sqlite-snapshot.ts READ Main retained: Publication rechecks distinguish descriptor identity, mutation fingerprints, and target cleanup authority; no equivalent simpler path.
668 src/infra/agent-events.ts READ Main retained: Live generation, registration order, and hidden routing are distinct lifecycle invariants; recent owner consolidation retained.
666 src/infra/update-candidate-plugin-tree.ts READ Main retained: Graph inventory, ownership and publication checks protect filesystem isolation; recent copy optimizations already applied.
665 src/infra/update-failure-report.ts READ Main retained: Existing receipt projection and preparation owner preserves report consent, displaced ownership, and fresh-receipt reconciliation.
662 src/infra/session-sqlite-migration-manifest.ts READ Main retained: Prior deslop already unified move recording; V1 path normalization, archive pruning dependencies, and consumed-archive fallback are explicit durable-format contracts.
658 src/infra/outbound/source-reply-mirror.ts READ Main retained: No sound reduction found without changing recipient/thread proof, transcript idempotency or terminal-recovery ownership.
653 src/infra/package-local-overrides.ts READ Main retained: Replacement and deletion share exclusive native publication and verified rollback helpers; remaining distinct paths preserve original material and partial mutation receipts.
653 src/infra/session-sqlite-migration-readers.ts READ Main retained: Keep versioned transcript conversion and readonly legacy-schema projections; repeated file assertions surround separate mutation opportunities and stats uses a distinct missing-database result.
651 src/infra/gateway-suspend-coordinator.ts READ Main retained: Lifecycle identity, dual-clock expiry, scheduler recovery and handoff authority checks each protect distinct transitions; no sound further reduction.
651 src/infra/outbound/message-action-params.ts READ Main retained: Attachment hydration owns raw-buffer staging and carries the pure client upload-policy assertion through publication; media-source precedence and parameter contracts remain distinct.
648 src/infra/outbound/current-conversation-bindings.ts READ Main retained: Existing normalization owner captures conversations; storage, IPC admission, eligibility, and expiry retain distinct lifecycle checks.
646 src/infra/dispatch-wrapper-resolution.ts READ Main retained: Prior pass already centralized dispatch descriptors and scans; remaining platform and option differences are observable policy.
646 src/infra/gateway-lock.ts READ Main retained: Existing lock owner exposes its retained projection to the state owner; relocation transfer, historical-owner checks, and joined release preserve security and lifecycle contracts.
646 src/infra/package-root-imports.ts READ Main retained: Single AST dependency-origin analysis owner; flow-sensitive input snapshots and purity gates protect caller-versus-root require ownership.
645 src/infra/outbound/message-action-send.ts READ Main retained: Media preparation, TTS, source routing, queue ownership, and accepted-send mirroring already have separate canonical owners; remaining sequencing is required.
645 src/infra/sqlite-schema-contract.ts READ Main retained: Canonical collection already batches catalog facts; compatibility and shadowed-pragma fallbacks are named admission contracts.
643 src/infra/outbound/message.ts READ Localized poll result construction around normalized owner facts; removed repeated forwarding fields and the parallel normalized-poll type.
642 src/infra/windows-gateway-firewall-diagnostics.ts READ Centralized repeated ignored-local-rule diagnostic and field alias parsing; removed JSON parser forwarding wrapper.
640 src/infra/state-migrations.workspace-setup.ts READ Main retained: Discovery and migration cleanup have different source/receipt-generation contracts; no safe structural removal without changing persistent receipts or recovery behavior.
638 src/infra/update-run-recovery-schema.ts READ Main retained: Strict current and legacy inspection schemas were just specialized in #159358; validation and retained-byte contracts must remain exact.
634 src/infra/restart-stale-pids.ts READ Main retained: Recent liveness repair and platform-specific enumeration/signal authority contracts require distinct failure semantics.
631 src/infra/ports-inspect.ts READ Main retained: Retain platform collectors: lsof snapshot reuse, ss fallback diagnostics, process enrichment and bind-authoritative status have distinct contracts; prior sweep already unified socket and netstat collectors.
629 src/infra/heartbeat-dispatch.ts READ Main retained: Ordinary dispatcher already owns custody; quiet/suppressed/failure/visible outcomes have distinct settlement and activity semantics.
629 src/infra/state-migrations.plugin-doctor.ts READ Main retained: Detection, migration and post-session repair hold different authority and completion contracts; recently consolidated registry inventory and custody logic leaves no sound large simplification.
627 src/infra/command-analysis/inline-eval.ts READ Consolidated repeated matching-hit projection into ordered raw/normalized flag selection; preserved short-circuit matcher precedence.
626 src/infra/outbound/session-binding-service.ts READ Reused canonical conversation capture, removed redundant collection guards and placement forwarding helper; preserved registration/current-owner checks and SDK contracts.
623 src/infra/exec-approval-forwarder.ts READ Main retained: Exec/plugin/system strategies already share delivery owner; remaining live-origin and terminal-notice rules are intentional.
622 src/infra/package-update-publication-owner.ts READ Main retained: Journal-owned publication, rollback disarming, launcher identity, and resumable retirement preserve separate filesystem and durable recovery contracts.
619 src/infra/sqlite-readonly-location.ts READ Main retained: Raw artifact copy and online backup have different source-sidecar contracts; identity and recovery guards remain necessary.
605 src/infra/shell-wrapper-resolution.ts READ Main retained: Wrapper-specific startup and raw-command compatibility distinguish shipped shell semantics; shared candidate owner already exists.
603 src/infra/state-migrations.workspace-setup-store.ts READ Main retained: Existing comparison owner serves setup maps; setup/attestation precedence, transaction readback, and receipt authority checks remain required.
601 src/infra/provider-usage.auth.ts READ Main retained: Sync literal credentials and async SecretRef candidates have different caller contracts; plugin-source admission and OAuth fallback remain separate.
598 src/infra/restart-sentinel.ts READ Main retained: Transaction wrappers own operation labels and storage admission; retained update receipt validation and persistence semantics.
598 src/infra/state-migrations.media-persistence.ts READ Main retained: Current and legacy schema admission, quarantine, projection and canonical/archive recovery are distinct protected contracts; recent performance and fs-safe passes already own duplication removal.
596 src/infra/heartbeat-runner-execution.ts READ Main retained: Preflight versus busy guards and isolated preparation preserve intentional ordering and current-run fences; retained.
592 src/infra/session-cost-usage-worker.ts READ Main retained: Worker snapshot reads, incognito host effects and cancellation retirement use distinct owner contracts; retained.
589 src/infra/package-update-filesystem.ts READ Main retained: Journal-owned launcher publication adds strict file/directory durability to pinned-identity copy operations; ordinary copies and bounded retirement retain their existing contracts.
585 src/infra/push-web-store.kernel.ts READ Main retained: Endpoint/profile ownership, schema admission and retained delivery recovery queries each enforce distinct persisted contracts; retained.
581 src/infra/outbound/deliver-queue.ts READ Main retained: Preserved serialized modifier admission, stable intents, recovery reuse and producer leases; distinct branches enforce durable custody contracts.
580 src/infra/state-migrations.audit-recovery.ts READ Reuse reconcileAuditRecoveryPendingWrite inside advanceAuditRecoveryWrite; reuse finalizeLegacyAuditRecoveryArchive for two identical completed-restore cleanup sequences; Buffer.alloc(length, pattern) can replace manual scrub buffer filling.
577 src/infra/session-cost-usage-collection.ts READ Main retained: Archive materialization, SQLite precedence and explicit-target checks preserve public historical reader and storage contracts.
575 src/infra/outbound/delivery-queue-migration.ts READ Main retained: Retained explicit shipped-format projections and lease/checkpoint handling; broader consolidation risks the required unchanged migration and persistent-store semantics.
571 src/infra/state-migrations.shared-auth-store.ts READ Main retained: No sound structural cut: copy/ownership-flip/cleanup ledger stages preserve crash recovery and byte-shaped receipt digests; recent lifecycle and retained-agent fixes remain necessary.
570 src/infra/update-failure-report-receipt-store.ts READ Main retained: Receipt state transitions retain distinct CAS eligibility, cleanup and replacement rules; preserve exact persistent semantics.
568 src/infra/provider-usage.fetch.minimax.ts READ Applied one interval/week projection loop; removed empty-list and already-finite revalidation branches.
568 src/infra/triage-continuation.ts READ Main retained: No change: live handoff admission, cancellation, native scope and lease settlement remain separate owner obligations; prior pass already simplified the flow.
566 src/infra/package-update-activation-journal.ts READ Main retained: Existing one-operation journal owns schema admission, intent CAS, hot-journal recovery, completed-slot replacement, and durable first publication; persistence semantics are protected.
565 src/infra/state-migrations.legacy-session-store.ts READ Removed unused internal update callback option; public legacy save options and ordered normalization/maintenance remain required.
560 src/infra/update-run-report.ts READ Main retained: Shared report owner already centralizes notices, CLI and sentinel rendering; conditional wording preserves distinct recovery and historical-health claims.
558 src/infra/outbound/deliver-channel.ts READ Main retained: Preserved legacy/message adapter contracts, registry scoping, synchronous authority checks and lifecycle hook ordering; no sound further reduction found.
558 src/infra/state-migrations.debug-proxy.ts READ Main retained: Existing filesystem helpers own path probes; blob hashes, duplicate event multiplicity, and archive recovery remain separate contracts.
554 src/infra/outbound/deliver-core.ts READ Removed media-access forwarding closure and redundant delivered-results guard; fanout, suppression, diagnostics and post-send bookkeeping unchanged.
552 src/infra/bonjour-discovery.ts READ Applied one SRV beacon construction before optional TXT enrichment.
552 src/infra/session-cost-usage-worker-runtime.ts READ Main retained: Paired host effects and captured database identities keep authority current across awaits; retained lifecycle checks.
551 src/infra/exec-approvals-store.ts READ Main retained: SQLite policy, authority batching, rollback, and compare-and-swap semantics are hard-contract scope and retained.
546 src/infra/exec-approvals-allow-always.ts READ Main retained: Persisted exact-command/cwd-argv grant matching and mutation semantics retained unchanged.
543 src/infra/push-apns-store.ts READ Main retained: Input normalization and canonical persisted-row validation intentionally differ; APNs tombstone and conditional-clear behavior retained.
536 src/infra/sqlite-readonly-worker.ts READ Main retained: Native backups, framed auth reads, and reclamation use different process/retirement ownership and published-driver contracts.
535 src/infra/sqlite-transaction.ts READ Main retained: Nested savepoints, async preparation, native BEGIN waits, and rollback fencing preserve distinct transaction semantics.
535 src/infra/state-migrations.managed-outgoing-images.ts READ Main retained: Claim rollback, expired attachment cleanup, and canonical row verification have distinct failure contracts; no sound owner collapse.
534 src/infra/net/proxy/proxy-validation.ts READ Main retained: Existing fetch probe owner serves allow/deny validation; canary, transport evidence, and diagnostic distinctions remain required.
532 src/infra/outbound/target-resolver.ts READ Removed import/call of trim-only wrapper; retained directory lookup ordering, caching, reserved-literal and live-read authority contracts.
532 src/infra/update-candidate-plugins.ts READ Main retained: Plugin projection freezes bindings and validates each filesystem/state publication; persistent-store and safety semantics unchanged.
530 src/infra/exec-command-resolution.ts READ Public allowlist candidate aliases now directly reference canonical resolver functions; removed unnecessary return temporary.
529 src/infra/exec-approval-reply.ts READ Main retained: Public typed and legacy command-backed controls remain separate presentation contracts; recent system-agent/native guidance fixes retained.
529 src/infra/restart-intent.ts READ Main retained: Published-version lock compatibility and repeated current-owner checks protect native service handoff; persistent semantics unchanged.
528 src/infra/push-apns.ts READ Main retained: Prior pass already centralized direct/relay send; remaining request lifecycle and authority checks guard asynchronous send boundaries.
528 src/infra/shell-env.ts READ Main retained: Existing shell probe owner centralizes parsed entries; asynchronous probe lifetime and cache ownership require current sequencing.
522 src/infra/state-migrations.device-identity.ts READ Main retained: Existing claim/import owner already shares restore handling; native exclusion and canonical-key verification remain required.
518 src/infra/update-migrated-finalize.worker.ts READ Main retained: Delegated Doctor, migrated finalization, and post-core continuation validate distinct run/runtime authority; completion publishes only after child and executor settlement.
514 src/infra/update-recovery-backup-status.ts READ Main retained: Manifest, generation and outcome checks encode retained recovery trust and ambiguity contracts.
509 src/infra/outbound/delivery-queue-storage.ts READ Consolidated three identical failure transport wrappers into one recorder factory; removed a one-use error-construction forwarder.
507 src/infra/clawhub-client.ts READ Applied required-reader reuse for optional fields; removed base URL forwarding wrapper and redundant normalized-string guard.
507 src/infra/sqlite-worker-broker-reply.ts READ Main retained: Reply framing, native settlement, refusal provenance, and independent cleanup failures cannot be merged without changing behavior.
507 src/infra/state-migrations.transcript-directives.ts READ APPLIED shared fresh transcript-row query for planning and in-transaction revalidation plus exact shared JSON parser; timers preserved for promise continuation and global setImmediate test seam.
504 src/infra/install-source-utils.ts READ Main retained: Registry metadata, pack output and archive metadata have different input/output contracts and timeout rules; remaining wrappers own workspace or normalization invariants.
502 src/infra/outbound/outbound-audit.ts READ Shared actor/destination context projection across lifecycle and terminal events; removed unused payload-index parameter while retaining privacy and event fields.
496 src/infra/device-bootstrap.worker-kernel.ts READ Setup replay now uses existing credential issuance owner with the already-pruned state; removed duplicate expiry, record creation and persistence flow.
486 src/infra/outbound/delivery-completion.ts READ Main retained: Retained distinct conversation and pending-final settlement contracts, authority checks, transaction-bound receipt evidence, and recovery wakeup ordering; no sound further simplification found.
486 src/infra/state-migrations.source-snapshot.ts READ Main retained: No sound structural cut: source claim owner already centralizes shared flows and intentionally separates inode identity, content equality, portable link recovery, and sync source contracts.
485 src/infra/device-pairing-core.kernel.ts READ Removed single-caller reconciliation callback framework, duplicate refresh comparison setup, one-use silent helper and unused request-id override.
485 src/infra/outbound/message-action-routing.ts READ Removed one-use policy and prefix wrappers, unused action field, and pass-through parameter reconstruction while retaining policy-before-I/O ordering.
485 src/infra/state-migrations.state-dir.ts READ Main retained: Once-only preparation separates root relocation from plugin import until maintenance custody transfers; source artifacts, symlink admission, and rollback stay protected.
484 src/infra/device-identity-store.ts READ Main retained: Canonical validation, salvage and rotation preserve distinct identity continuity contracts; retained fail-closed checks and durable readback.
484 src/infra/package-lifecycle.ts READ Main retained: Lifecycle lock generation, root authority, marker retirement and uncertain cleanup checks protect distinct live-writer boundaries; no sound additional simplification.
481 src/infra/update-repair-agent.runtime.ts READ Main retained: Environment restoration, inference resources, tool policy and cleanup scopes each own necessary isolation boundaries.
480 src/infra/control-ui-assets.ts READ Main retained: No change: packaged/source asset resolution and bounded file checks retain distinct install and security contracts; prior pass already removed simpler duplication.
479 src/infra/sqlite-integrity.ts READ Main retained: Integrity diagnostics, repairable foreign keys, and generation-bound corruption confirmation enforce separate error contracts.
476 src/infra/update-doctor-result.ts READ Main retained: Doctor receipts track contiguous root/include write chains and invalidate ownership after foreign writes; IPC admission, live write authority, and recovery evidence remain distinct.
474 src/infra/sqlite-store.worker.ts READ Main retained: Command/result continuations and synchronous settlement guards protect native ownership; consolidation risks reordering authority.
474 src/infra/state-migrations.apns.ts READ APPLIED: combined adjacent claim/import try blocks with identical restore/error handling and removed unused private receiptAuthoritative field after full caller search; preserved tombstones and receipt-authoritative cleanup.
471 src/infra/package-manager-exec-wrapper.ts READ Main retained: npm/pnpm/yarn grammars and unsafe execution classifications differ; shared scanners already own common parsing and remaining branches protect approval boundaries.
470 src/infra/restart-sentinel-store.ts READ Main retained: Manual codec preserves omitted/null/diagnostic compatibility and guarded revision floor; persistent semantics excluded from change.
469 src/infra/state-migrations.exec-approvals.ts READ Main retained: Existing write owner serves canonical rows; missing-row and invalid-row decisions retain different verification contracts.
463 src/infra/exec-approvals-config.ts READ Main retained: Persisted parsing, migration, fail-closed fallback, and value-free diagnostics retained under persistent-store hard contract.
463 src/infra/update-failure-report-prepare.ts READ Main retained: Diagnostic sanitization, identifier allowlisting and exact reviewed-preview binding are security contracts, not redundant validation.
461 src/infra/clawhub-skills.ts READ Main retained: Wire-to-install reference mapping preserves publisher/source identity; detail/card/install responses have distinct limits and auth rules.
460 src/infra/restart-handoff.ts READ Main retained: Bounded persisted handoff validation/consumption is intentional; retaining exact expiry, PID and normalization behavior.
459 src/infra/session-cost-usage-worker-refresh.ts READ Removed selected-record allocation that had no consumer; incremental validation still checks every link and returns its leaf identity.
458 src/infra/outbound/outbound-send-service.ts READ Main retained: Plugin/native payload ownership, media access, first-contact commit and transcript mirror ordering are distinct contracts; no sound further simplification found.
457 src/infra/outbound/account-scoped-conversation-bindings.ts READ Main retained: No sound reduction found without touching durable binding projections, adapter lifecycle or synchronous SDK compatibility.
457 src/infra/terminal-file-upload.ts READ Main retained: Staging quota, pinned directory custody, private publication, and client upload-policy revalidation protect distinct filesystem and ingress boundaries.
455 src/infra/backup-sqlite-snapshot.ts READ Main retained: canonical registry capture, alias journal binding, and post-capture identity checks preserve snapshot semantics.
455 src/infra/state-migrations.mcp-oauth.ts READ Main retained: Existing claim/import owner shares failure handling; retired-runtime locks, credential merging, and receipt notices preserve recovery contracts.
452 src/infra/delivery-queue-sqlite.kernel.ts READ Main retained: connection-bound queue transitions and exact tombstone policies already have one owner; no sound reduction without persistent-store changes.
452 src/infra/package-dist-inventory.ts READ Main retained: Inventory and package-exclusion policy already centralized; rejected predicate compression because it saves syntax without clarifying ownership.
449 src/infra/exec-approval-channel-runtime.ts READ Reused canonical approval resolution union; retained replay, readiness, terminal error, and pending-entry lifecycle.
449 src/infra/state-migrations.snapshot.worker.ts READ Main retained: No sound structural cut: WAL/SHM authentication and whole-tree revalidation preserve snapshot semantics; repeated identity checks have distinct phases and failure messages.
446 src/infra/update-managed-service-handoff-control.ts READ Main retained: IPC admission, process joins and authority revalidation differ by phase; no equivalent helper can replace these boundaries.
445 src/infra/outbound/outbound-session.ts READ Main retained: No sound reduction found after prior routing cleanup; fallback inference and exact-recipient checks have distinct channel contracts; persistence unchanged.
443 src/infra/sqlite-worker-operation-admission.ts READ Main retained: Atomic request grants, commit facts, and settlement receipts are distinct; validation crosses a worker-message boundary.
439 src/infra/state-migrations.plugin-state.ts READ Main retained: No sound structural cut: recent shared-source custody, cap-eviction rollback, imported creation time, and deferred cleanup own different invariants; merging catches would skip required cleanup callbacks.
436 src/infra/clawhub-packages.ts READ Applied direct indexed owner types and one optional security-package string-field loop.
432 src/infra/state-migrations.node-host.ts READ Main retained: Existing source-claim/import owner shares restoration handling; source identity, receipt authority, and failed-import recovery remain required.
432 src/infra/telemetry.ts READ Main retained: Opt-in admission, daily persisted success, pending-write cache and concurrent request ownership have distinct contracts.
431 src/infra/sqlite-integrity-worker.ts READ Main retained: One-shot and retained child scopes have distinct close/cancellation requirements; table batching already uses one process owner.
425 src/infra/state-migrations.acp-replay.ts READ Main retained: Legacy lock/claim, event sequencing, byte accounting, and post-import reconciliation are distinct migration guarantees.
424 src/infra/deferred-plugin-migrations.ts READ Main retained: Sync artifact-preserving reads, worker reads and serialized writes serve different lifecycle contracts; live pending-generation checks and completion projection cannot be removed.
424 src/infra/update-candidate-snapshot.ts READ Main retained: Capacity selection, subprocess diagnostics and uncertain-cleanup retention preserve snapshot safety contracts.
416 src/infra/state-migrations.transcript-directives-archives.ts READ APPLIED identical directive JSON parser through existing transform owner; retained all scheduling, canonical-row rewrite, file publication, and cursor settlement phases.
415 src/infra/state-migrations.web-push.ts READ Main retained: Paired source claims, subscription timestamp precedence, VAPID conflict checks, and cleanup errors differ intentionally.
413 src/infra/outbound/payloads.ts READ Main retained: Raw and structured payload plans intentionally differ in directives and policy; transport, JSON and mirror projections have distinct field contracts.
412 src/infra/diagnostics-timeline.ts READ Main retained: Bounded file batching and sync/async span settlement are distinct; retained attribute filtering and output bytes.
411 src/infra/heartbeat-runner-scheduler.ts READ Removed unused reason argument to cooldown policy and stale duplicate policy narration; dispatch source-to-intent handling unchanged.
411 src/infra/sqlite-schema-facts.ts READ Main retained: Statement interception preserves native instrumentation and snapshot/schema invalidation; recent CASE fix already addresses false invalidation.
408 src/infra/update-managed-service-handoff-database.ts READ Main retained: Exact bigint file/parent identity, existing-store admission, synchronous transactions, and quarantine preserve the handoff database boundary.
408 src/infra/update-startup-auto-run.ts READ Main retained: Handoff cancellation, campaign completion and terminal diagnostics have distinct ownership and failure paths.
405 src/infra/state-migrations.restart-sentinel.ts READ Main retained: One exhaustive decision-to-message switch already owns projection; a dictionary would only change notation, while source-generation receipts and claim/import failures retain distinct contracts.
401 src/infra/session-cost-usage-reporting.ts READ Main retained: Time-series bucket rounding and bounded sorted log retention are distinct report behaviors already sharing parsing/pricing owners.
400 src/infra/command-carriers.ts READ Main retained: Carrier scanners already share option parsing; differences in env recursion, sudo assignments, and exec mode are semantic.
399 src/infra/device-pairing-approval.kernel.ts READ Main retained: Owner/bootstrap approval already share commit owner; separate scope policy and token replacement behavior are security contracts.
397 src/infra/outbound/agent-delivery.ts READ Prepared repeated requested-thread choice once and removed catch-only async IIFE and redundant null fallbacks; retained exact-route acceptance checks.
395 src/infra/sqlite-strict.ts READ Promoted checked table-name fact into return type and removed repeated guards and cast; SQL and migration ordering unchanged.
393 src/infra/package-update-integrity.ts READ Main retained: Bounded fingerprint readers preserve exact filesystem metadata, hardlink topology, late descriptor cleanup and diagnostic timing; no duplicate owner remains.
390 src/infra/command-analysis/risks.ts READ Main retained: Nested carrier recursion and shell positional evaluation protect distinct risk detection semantics; earlier common parser refactors retained.
390 src/infra/state-migrations.media-persistence-targets.ts READ Main retained: Discovery versus mutation intentionally rechecks deletion authority after admission; target precedence, inode dedupe and held-family behavior prevent unsafe ownership collapse.
389 src/infra/exec-approvals-effective.ts READ Main retained: Policy display preserves requested/global/agent/wildcard provenance and stricter-host behavior; prior pass already centralized source fields.
386 src/infra/shell-inline-command.ts READ Shared fish token scanning, reuse parsed combined-command flags, replace hand-scanned short-option membership and inline a Set.has forwarder.
385 src/infra/unhandled-rejections.ts READ Main retained: Recent shared registries already canonical; fatal/transient classification order and exact error boundaries retained.
383 src/infra/delivery-queue-sqlite-bound.ts READ Main retained: row serialization, prepared queries, and exact CAS/tombstone retention operations are canonical storage primitives.
383 src/infra/exec-authorization-render.ts READ Main retained: Source-span validation, overlap detection, and reviewed executable pinning are distinct approval integrity checks.
383 src/infra/gateway-boot-lifecycle.ts READ Main retained: Boot-loop accounting and restart history are persistent-store behavior; separate transaction boundaries and reasons remain intentional.
381 src/infra/windows-encoding.ts READ Main retained: Console/OEM/system code pages and streaming BOM/fallback paths protect different platform byte contracts.
378 src/infra/state-migrations.workspace-setup-receipts.ts READ Main retained: Moving receipts preserves normalized identity and byte-preserving filenames while revalidating authoritative rows; no semantics-neutral owner removal.
375 src/infra/agent-activity-events.ts READ Main retained: Transcript identity and ambiguity handling distinguish live outcomes from historical placeholders; no safe consolidation.
375 src/infra/github-issue.ts READ Main retained: Keep bounded UTF-8 issue preparation, native gh lifecycle, live pre-create authority and uncertain-write reconciliation; no equivalent removable ownership path found.
375 src/infra/state-migrations.plugin-doctor-context.ts READ Main retained: Inspection projection is a runtime security boundary; mutation gates and per-request source identity verification are intentional, with recent ingress authority dedup already landed.

@steipete

steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Infra fifth-pass coverage (2/2)

Complete read coverage for the infra fifth pass after integration with the fourth pass and required upstream fixes. This size-sorted log covers all 407 production files over 200 lines (406 TypeScript files and the security-policy JSON), plus two explicitly identified supplemental test-fixture/baseline files. READ records complete file and relevant caller inspection. Main retained marks unchanged code and the existing owner or contract that justifies retaining it.

Rows 200–409 of 409.

Lines File Read Simplification or retained contract
374 src/infra/backup-scratch.ts READ Main retained: retirement tokens, directory identity fences, and legacy scratch handling protect concurrent owners.
373 src/infra/session-cost-usage-cache-runtime.ts READ Main retained: Foreground refresh and queued refresh expose distinct empty-cache/backoff semantics and already share refresh worker owner.
369 src/infra/approval-native-runtime.ts READ Reused canonical approval resolution union; retained routing ownership and finally-based delivery reports.
369 src/infra/outbound/deliver-prepare.ts READ Reused canonical post-transform normalization with identical metadata-copy, scaffolding-removal and empty-payload decisions.
368 src/infra/http-body.ts READ Main retained: Existing once-only settlement owner serves error events; body size, timeout, and cleanup boundaries remain required.
368 src/infra/push-apns.relay.ts READ Main retained: Relay origin policy, signature framing, size limit and error classification are explicit boundary contracts; retained.
367 src/infra/update-failure-report-artifact.ts READ Main retained: Report refresh, diagnostic export and reviewed-preview publication preserve different filesystem and custody contracts.
364 src/infra/exec-safe-bin-policy-profiles.ts READ Main retained: Existing long-flag collector serves all flag sets; GNU abbreviation and conflicting-prefix metadata remain distinct security contracts.
364 src/infra/outbound/current-conversation-bindings.kernel.ts READ Main retained: No changes; SQL/query caching, expiry repair and legacy-key normalization are persistent-store contracts.
364 src/infra/sqlite-readonly-location-cleanup.ts READ Main retained: Synchronous and asynchronous retirement deliberately differ in worker token ownership and joining active snapshot work.
363 src/infra/package-local-overrides-capture.ts READ Iterate the append-only dependency worklist directly instead of shifting and rechecking an already-present item; closure and per-root rescan behavior retained.
362 src/infra/session-cost-usage-projection.ts READ Main retained: Aggregate versus per-session stale accounting deliberately differ; range fill protects calendar and floating-point ordering contracts.
361 src/infra/outbound/outbound-policy.ts READ Main retained: No changes; context guard action sets and nested policy merge semantics are explicit security/product boundaries.
361 src/infra/state-migrations.channel-pairing.ts READ Main retained: Existing importer owns cleanup; account ambiguity, case collisions, and external channel fallback remain required security contracts.
355 src/infra/device-pairing-tokens.kernel.ts READ Main retained: Token update context already owns common role validation; verify/ensure/rotate/revoke differ in authority and persisted lifecycle effects.
355 src/infra/worker-cpu.ts READ Main retained: Native exit counters and port/native-interrupt heap sampling have distinct ownership and freshness contracts.
354 src/infra/state-migrations.plan.ts READ APPLIED: Remove impossible candidate-artifact conditional: artifact is locally constructed deferred with required refusal, so returned outcome is always refused.
352 src/infra/sqlite-readonly-worker-session.ts READ Main retained: IPC framing, deferred broker transport, startup diagnostics, and close-before-rejection protect distinct lifetime contracts.
350 src/infra/net/undici-global-dispatcher.ts READ Main retained: Dispatcher classification, proxy TLS rotation, helper receiver binding and timeout refresh have distinct retained lifecycle contracts.
346 src/infra/push-apns-http2.ts READ Main retained: Proxy tunnel owns abort, ALPN, connection cleanup and bounded capture; no safe reduction beyond cosmetic edits.
345 src/infra/host-env-security.ts READ Preserved main immutable policy arrays and ordering; simplified the equivalent deny decision and removed redundant validation after normalized entry enumeration.
343 src/infra/delivery-recovery.shared.ts READ Main retained: error-graph proof branches, per-entry claims, drain exclusion, and replay pacing each guard distinct delivery contracts.
340 src/infra/push-web-store.ts READ Main retained: Worker/native adapters preserve distinct admission and snapshot effect timing; generic dispatcher would obscure typed operation contracts.
337 src/infra/session-delivery-queue-recovery.ts READ Applied: folded one-use settled callback helper into finalization while preserving authority check, callback/storage catch boundaries, and outcomes.
336 src/infra/npm-install-env.ts READ Main retained: npmrc resolution, configuration provenance/cache invalidation and freshness bypass already have one owner; preserve platform and environment precedence.
336 src/infra/outbound/deliver-queue-state.ts READ Main retained: Retained exact-claim checks and divergent before-send/after-send failure transitions; hard persistence and authority boundary preclude broader consolidation.
335 src/infra/exec-control-command-guard.ts READ Main retained: Guard parsers preserve approval command, login, and live-state SQLite boundaries without broadening accepted syntax.
334 src/infra/startup-migration-checkpoint.ts READ Main retained: No change: schema checkpoint invalidation and lease writer/read boundaries are protected persistent-store semantics.
333 src/infra/outbound/delivery-queue-storage.worker.ts READ Main retained: Existing switch already owns queue mutations canonically; claim, CAS, projection, and failure paths retain distinct persistence contracts.
331 src/infra/update-runner-git-transfer.ts READ Main retained: Separate Git inventories and pinned transfer lifetime prevent lazy fetch after admission and preserve large-pack behavior.
330 src/infra/http-request-lifecycle.ts READ Main retained: Connection admission queue, rejection fencing and platform response closure are separate invariants; no sound simplification without boundary changes.
329 src/infra/oauth-loopback-callback.ts READ Main retained: Existing shared deferred owner serves completion; callback admission and server shutdown retain distinct sequencing.
329 src/infra/session-delivery-queue-storage.ts READ Main retained: existing worker dispatcher owns transport; enqueue admission protects original session custody, while write settlement and read-return authority intentionally differ.
327 src/infra/update-native-package-stage.ts READ Main retained: Manager-specific staging and launcher relocation differ by documented pnpm/Bun contracts.
326 src/infra/clawhub-skill-security.ts READ Removed single-use fallback forwarding function; owner-qualified verification and identity validation remain in place.
326 src/infra/outbound/message-action-contracts.ts READ Main retained: Variant contracts and partial-delivery projections are used across Gateway, message tool, CLI, and task progress; no unused export or redundant owner found.
325 src/infra/device-pairing-node.ts READ Main retained: Reconnect claims, revision invalidation and approval guards are distinct live-authority responsibilities; retained.
322 src/infra/dotenv.ts READ Removed keys already covered by namespace/suffix rules, redundant OPENCLAW prefixes, and a one-use policy forwarder; retained four explicit CLAWHUB keys required by the security scanner.
318 src/infra/approval-handler-runtime-types.ts READ One presentation callback definition now serves typed specs and erased adapters; reused canonical resolution union.
318 src/infra/host-env-security-policy.json READ Main retained: Retained generated production policy: exact key and prefix sets define the security boundary; the canonical loader already derives immutable arrays.
317 src/infra/outbound/deliver-payload.ts READ Centralized shared post-transform normalization used before and after hooks; media-root capability and pin authority stay unchanged.
315 src/infra/windows-install-roots.ts READ Main retained: Cached process roots, registry fallbacks and caller-env precedence are distinct install/security contracts.
314 src/infra/push-web.ts READ Main retained: Settled send results, expired-target cleanup and snapshot-bound registration ownership preserve separate error and lifecycle contracts.
314 src/infra/sqlite-index-schema.ts READ Main retained: Canonical index repair and physical corruption repair require different proofs and preserve atomic rollback/backup ownership.
313 src/infra/device-pairing-node.worker.ts READ Main retained: Per-operation node mutations already share transaction owner; remaining branches distinguish generation and connection contracts.
312 src/infra/ocm-update-client.ts READ Main retained: No change: released-manager capability fallback, binding attestation and uncertain request reconciliation preserve update behavior.
312 src/infra/state-migrations.commitments.ts READ Main retained: Discard receipts distinguish interrupted cleanup from recreated retired state; exact source claims and receipt order remain necessary.
310 src/infra/system-events.ts READ Main retained: Existing queue owner selects the latest matching event; receipt and store ownership checks remain required.
310 src/infra/update-database-backup.ts READ Main retained: Canonical inventory, generation checks and retained backup publication are protected persistent-state semantics.
309 src/infra/device-bootstrap.ts READ Resolved issuance input once and inlined two one-use forwarding helpers while preserving handoff normalization and stripped-scope warnings.
309 src/infra/update-runner-git-runtime.ts READ Main retained: Cache exclusion and transactional promotion preserve external-store ownership and partial rollback cleanup.
307 src/infra/update-campaign.ts READ Main retained: Campaign transitions and scheduler lifetime already consolidated by recently merged update scheduling fixes.
304 src/infra/heartbeat-runner-prompt.ts READ Main retained: Prompt selection owns inspected occurrence sets and preserves exact task/cron/exec prompt bytes; no sound simplification found.
304 src/infra/system-presence.ts READ Simplified self-platform projection, removed unreachable parsed instance fields, and kept existing records typed; retained upstream connection-owned pending publication and snapshot visibility.
303 src/infra/sqlite-snapshot-staging.ts READ Main retained: Shared reclamation and token-owned allocation have separate lifetime and destination-error attribution contracts.
303 src/infra/state-migrations.prelude.ts READ Main retained: Existing ordered prelude descriptors carry schema/media/owner preparation and deferred endpoints; no further sound structural reduction found without obscuring order.
303 src/infra/tls/gateway.ts READ Main retained: Public cert inspection and server provisioning intentionally differ; exclusive publication receipts, degradation warnings and secure-context validation preserve TLS durability/security contract.
302 src/infra/update-run-schema.ts READ Main retained: Wire admission and ledger schemas intentionally use different bounds; no schema edits authorized.
298 src/infra/update-triage-resolution.ts READ Main retained: Each failure family needs recorded completion plus installed/service identity proof; no safe removal of fresh checks.
297 src/infra/sqlite-readonly-location.worker.ts READ Main retained: Auth transfer, snapshot inspection, token retirement, and reclamation have distinct message and source-custody contracts.
297 src/infra/state-migrations.tui-last-session.ts READ Main retained: No sound structural cut: timestamp arbitration, equal-time conflict rejection, verification, heartbeat retirement, and claim cleanup are separate necessary stages.
296 src/infra/exec-approvals-core.ts READ Main retained: Public request/store/policy types and exact-vs-display mode mapping carry shipped approval contracts.
295 src/infra/net/proxy/proxy-lifecycle.ts READ Main retained: Nested registrations and inherited process routing have separate restoration obligations; existing callback compatibility is named.
294 src/infra/state-migrations.media-persistence-database.ts READ Main retained: Shared keyset batch owner already handles transcript and trajectory scans; store-specific validation/rewrite and drift reporting preserve different persistent-store semantics.
293 src/infra/net/node-proxy-agent.ts READ Shared type-checked numeric Agent-option assignment loop; preserved proxy resolution and TLS/bypass contracts.
293 src/infra/net/proxy-env.ts READ Main retained: Lowercase blank precedence, ALL_PROXY trust separation and NO_PROXY CIDR parsing are externally observed contracts.
293 src/infra/package-update-manager-preflight.ts READ Consolidated four identical pnpm refusal step projections while retaining each diagnostic command, cwd, stdout and message.
291 src/infra/delivery-queue-sqlite-namespace.kernel.ts READ Main retained: explicit namespace transitions preserve conditional source matches, conflicts, staging consumption, and completion fences.
291 src/infra/state-migrations.types.ts READ Main retained: Canonical migration and receipt contracts; duplicated refusal field is a one-line redundant redeclaration, no meaningful broader reduction.
290 src/infra/sqlite-wal-checkpoint.ts READ Main retained: Checkpoint health preserves observation ordering and diagnostics separately from native completion; owner already canonical.
287 src/infra/outbound/deliver-hooks.ts READ Main retained: Legacy, projected and reply hooks have intentionally different SDK/lane semantics; retained their policy, cancellation and metadata contracts.
287 src/infra/system-disks.ts READ Main retained: Retain mount identity validation, overmount filtering, APFS device policy and partial snapshot lifecycle; no redundant flow that preserves these contracts.
286 src/infra/heartbeat-session-publication.ts READ Main retained: Receipt matching and exact-generation write/publication guards enforce accepted-result custody; retained.
286 src/infra/kysely-sync.ts READ Main retained: No change: query/iterator cleanup, runtime SQLite workarounds and compiled-binding owners serve separate native execution obligations.
286 src/infra/ssh-tunnel.ts READ Main retained: Exact child/listener ownership, OpenSSH alias settings, host-key policy, and joined shutdown are distinct tunnel security and lifecycle contracts.
285 src/infra/package-update-lifecycle.ts READ Main retained: Staging allocation, runtime verification, lifecycle execution, and custody-aware cleanup serve different installation states through existing owners.
284 src/infra/device-pairing-node.records.ts READ Main retained: Explicit pending/approved projections and reconnect merges intentionally differ in defaulting and omitted fields; retained.
284 src/infra/outbound/deliver-contracts.ts READ Main retained: Public/runtime/internal delivery types encode distinct authority and custody facts; no redundant owner or safe contract removal found.
284 src/infra/outbound/delivery-queue-media-spool.ts READ Main retained: Retained sequential copies, GC-visible media retention, path checks, and cleanup ordering; filesystem helper reuse already landed in the prior pass.
284 src/infra/package-update-activation-prepare.ts READ Main retained: Original executor admission, sealed helper identity, staged custody transfer, and durable journal publication require ordered preparation boundaries.
282 src/infra/package-local-overrides-shared.ts READ Main retained: Shared path topology, file modes and recovery admission already canonical; combining similar checks would change missing-path/security semantics.
282 src/infra/update-run-reader.ts READ Main retained: Synchronous maintenance and asynchronous worker reads serve distinct contexts; storage and freshness semantics are fixed.
281 src/infra/exec-wrapper-trust-plan.ts READ Main retained: Wrapper projection, shell builtins, multiplexers, and overflow checks track distinct dispatch authority facts.
280 src/infra/heartbeat-outcome-store.ts READ Main retained: Persist/claim paths share worker owner; incognito admission and model-only context retain distinct boundaries.
278 src/infra/delivery-queue-sqlite-claim.kernel.ts READ Main retained: producer promotion, dispatch, and renewal require distinct live-owner predicates and exact transaction boundaries.
278 src/infra/sqlite-reader-lifecycle.ts READ Main retained: Existing lifecycle owner provides bounded diagnostic projection and reader custody; path normalization, weak connection tracking, and release ordering remain distinct.
275 src/infra/host-env-security.reported-baseline.json READ Main retained: Retained reported-security baseline data: exact historical key coverage is a protected test contract, not executable production logic.
274 src/infra/clawhub-artifacts.ts READ Applied canonical SHA-256 hex helper directly; removed one-use digest forwarding and safe-integer revalidation.
274 src/infra/git-worker.ts READ Main retained: Worker admission, distinct pool ownership, host-owned effects and joined process settlement are necessary; batch transport already consolidated.
274 src/infra/session-cost-usage-cache.sqlite.ts READ Main retained: Refresh lock CAS, captured environment and admitted writer retention preserve persistent-store semantics; retained.
273 src/infra/outbound/channel-selection.ts READ Reused existing record coercion, removed single-use error string wrappers and redundant fallback reprojection; retained account inspection and credential error boundaries.
273 src/infra/runtime-guard.ts READ Removed duplicate minimum-engine parser; simple and compound ranges use one clause parser; re-exported canonical Node support check.
273 src/infra/windows-process-start.ts READ Main retained: Sealed helper independence and PID-reuse-safe native ticks/deadlines prevent merging with normal installation root helpers.
272 src/infra/update-candidate-plugin-repair.ts READ Main retained: Released-driver repair checks bind original sources before completing private plugin copies.
271 src/infra/heartbeat-runner-session.ts READ Main retained: Canonical session alias and isolated-base selection preserve distinct public routing and legacy data contracts.
271 src/infra/legacy-json-object-stream.ts READ Main retained: No change: streamed parsing versus hash-only reads preserve UTF-8 rejection, bounded memory and stable-read migration semantics.
270 src/infra/exec-approval-forwarder.messages.ts READ Main retained: Existing renderer/fallback owner already shares exec/plugin projection; system-agent terminal messages retain separate semantics.
270 src/infra/outbound/source-delivery-plan.ts READ Removed thread-normalization wrapper already guaranteed by canonical stringifyRouteThreadId and redundant destination guard after admission.
270 src/infra/update-run-codec.ts READ Main retained: Existing bounded codec retains the named admission and lifecycle warning receipts; recovery metadata, redaction, and compaction preserve their distinct storage contracts.
268 src/infra/sqlite-worker-broker-admission.ts READ Main retained: Preparation captures facts while live grants remain separate; path alias checks and failed-custody retention are required.
266 src/infra/outbound/target-normalization.ts READ Removed trim-only wrapper and exposed existing plugin-target result type for target-id resolver to reuse; retained plugin normalizer cache and reserved-literal contracts.
265 src/infra/event-session-routing.ts READ Main retained: Existing optional lowercase normalizer is shared; route and allowlist precedence remain required.
265 src/infra/git-read-cache.ts READ Main retained: Retain per-read freshness/subscriber cancellation and final process joins; cache factory already owns shared lifecycle and result copies differ by contract.
265 src/infra/update-candidate-predecessor-stop.ts READ Main retained: Recorded stop adoption and v2026.9.5 predecessor compatibility preserve live service authority.
264 src/infra/gateway-scheduler.ts READ Main retained: Monotonic/wall deadlines, earliest scheduling and async-work drainage are distinct recently fixed contracts.
264 src/infra/path-env.ts READ Main retained: Retain trusted-path selection and symlink-aware cwd exclusions; access-only executable checks differ from regular-file checks and package-manager placement is explicit install policy.
264 src/infra/provider-usage.admin.ts READ Main retained: Pagination rejects repeated cursors; request counts remain optional and aggregation ordering stable; numeric Number coercion differs from strict parser.
264 src/infra/sqlite-audit-record.kernel.ts READ Main retained: Kysely queries own keyed retention and legacy sequence semantics; no unused operations or equivalent duplicate query owner.
264 src/infra/update-triage.ts READ Main retained: Captured interactive triage and fresh CLI diagnostics intentionally have different environment and execution lifetimes.
263 src/infra/exec-approvals-sqlite.ts READ Main retained: SQLite row normalization, mutation fences, durable writes, and grant minting preserved under hard contract.
262 src/infra/state-migrations.meeting-transcripts-detection.ts READ Main retained: Canonical export matching requires exact/case-folded identity and artifact checks; detection admits historical schema independently.
261 src/infra/sqlite-worker-broker-lifecycle.ts READ Main retained: Existing lifecycle error owner preserves individual errors, aggregate causes, and actor/worker retirement messages.
260 src/infra/dotenv-global-core.ts READ Main retained: Synchronous and async readers retain distinct blocking contracts; shared parser/application owner already centralizes precedence and service-owned override diagnostics.
260 src/infra/node-duplex-framing.ts READ Main retained: Closed-shape frames, bounded buffers and ordered async delivery each enforce transport/security invariants.
259 src/infra/approval-request-account-binding.ts READ Main retained: Live turn bindings, persisted session bindings, forwarding, and unique-account selection intentionally use different precedence.
257 src/infra/backup-archive-publication.ts READ Main retained: exclusive publication, preserved uncertain commits, identity-bound cleanup, and directory sync error handling have separate obligations.
257 src/infra/update-candidate-rehearsal.ts READ Main retained: Environment/config projection deliberately isolates live selectors and cleanup drains database ownership first.
256 src/infra/provider-usage.fetch.claude.ts READ Main retained: OAuth/web response parsing already shares owner; web fallback, optional billing and per-window normalization remain distinct.
256 src/infra/session-delivery-queue-runtime.ts READ Applied: removed duplicate owner discrimination and ineffective Infinity minimums from retry delay calculation.
255 src/infra/gateway-owner-lease.ts READ Main retained: Physical owner identity, heartbeat readiness and failure custody are persistent-store lifecycle contracts.
255 src/infra/sqlite-snapshot-single-flight.ts READ Main retained: Waiter withdrawal, lease release, and producer settlement protect different cancellation and cleanup states.
255 src/infra/update-repair-agent.ts READ Main retained: Single bounded turn was just specialized in #159358; cancellation, validation and uncertain cleanup remain necessary.
254 src/infra/session-cost-usage-cache.kernel.ts READ Main retained: Canonical text/blob query owner already shared; CAS and retired-scope prune statements preserve exact storage semantics.
253 src/infra/openclaw-root.ts READ Main retained: Keep sync/async package-root consumers, node_modules traversal stop and first/all cache facts; install root identity and ordered package discovery must stay unchanged.
253 src/infra/update-retained-runtime-tree.ts READ Main retained: Hard-link versus copy paths retain inode/time fingerprints and source safety during installer replacement.
252 src/infra/outbound/channel-resolution.ts READ Collapsed ordered candidate checks and removed unused setup-shell fallback computation from activated-only branch; retained scoped-owner and bootstrap ordering.
252 src/infra/update-package-manager.ts READ Main retained: Pinned pnpm bootstrap and manager fallbacks preserve update/install behavior; no sound structural reduction found.
251 src/infra/update-runtime-relocation.ts READ Main retained: Symlink, launcher and pnpm manifest formats need distinct relocation adapters under a shared path owner.
250 src/infra/executable-path.ts READ Main retained: Explicit executable validation, PATH cache and Windows cmd-before-exe resolver have distinct policy contracts; no safe forwarding removal within assigned callers.
249 src/infra/outbound/channel-bootstrap.runtime.ts READ Main retained: No sound reduction found; generation cache partitioning, owner retention and post-await revalidation encode distinct lifecycle contracts.
248 src/infra/outbound/message-action-spec.ts READ Main retained: Core target modes and plugin delivery/resource aliases encode distinct admission contracts; prior refactor already consolidated alias lookup.
247 src/infra/device-auth-store.kernel.ts READ Main retained: Local/origin queries look similar but encode different scoped composite keys; no shared abstraction justified without obscuring authorization predicates.
247 src/infra/sqlite-worker-store.ts READ Main retained: Existing store adapters carry captured actor facts and abort-aware opening custody; shared-state and per-agent admission preserve distinct authority and error contracts.
247 src/infra/update-managed-service-handoff-cancellation.ts READ Main retained: Original-owner cancellation atomically advances paired generations; descendants must settle before release, so mutation and stored-row authority remain distinct.
246 src/infra/outbound/deliver-queue-admission.ts READ Main retained: Retained staged media custody, immutable queued recipient and ordered multi-error cleanup; filesystem and persistent semantics are hard contracts.
245 src/infra/system-run-command.ts READ Main retained: Canonical argv display and legacy shell-preview acceptance preserve node approval command binding contract.
245 src/infra/update-retained-runtime.ts READ Main retained: Scratch placement stays outside the enclosing mutation owner; retention and cross-volume fallback preserve running updater code through replacement and cleanup.
245 src/infra/widearea-dns.ts READ Main retained: Zone durability and path checks are hard contracts; content hash and RFC 1982 serial handling preserve persistent output.
244 src/infra/exec-approvals-authorization.kernel.ts READ Main retained: Authorization revalidation and persisted usage mutation retain exact authority, fallback, and delayed snapshot semantics.
244 src/infra/question-channel-runtime-internal.ts READ Main retained: Gateway scheduler owns terminal retention; original question custody, declared-answer filtering, delivery finalization, and Gateway retirement preserve distinct contracts.
241 src/infra/device-auth-store.ts READ Main retained: Read-only absence, token observation publication and mutation admission have distinct lifecycle behavior already centralized in executeDeviceAuth.
241 src/infra/state-migrations.audit-backup.ts READ Read checkpoint generation key directly; transformed-prefix witnesses and bounded retry preserve backup consistency.
241 src/infra/worker-task-server.ts READ Main retained: Public handler wrapper deliberately excludes native-resource capability; response consumption and cancellation paths retain distinct ownership.
239 src/infra/exec-safe-bin-policy-validator.ts READ Main retained: Long-option abbreviations, short clusters, positional tokens, and semantic denial are separate validation contracts.
239 src/infra/git-exec.ts READ Main retained: Text/byte output already share execution owner; buffered output keeps distinct cancellation/default policy and ref mutations retain FIFO and teardown authority.
239 src/infra/windows-shell-command.ts READ Main retained: Windows cross-shell quoting/token rules intentionally differ from POSIX and retain security boundaries.
238 src/infra/embedded-question-broker.ts READ Main retained: Injected Gateway scheduler owns question deadlines; requester authority, secret-store refusal, event delivery, and cancellation preserve separate RPC contracts.
238 src/infra/gateway-active-work.ts READ Main retained: Maintenance subset and complete suspension snapshot intentionally have different cost/contracts; previous pass already centralized counts.
238 src/infra/npm-registry-spec.ts READ Main retained: Registry-only npm grammar, monthly release corrections and prerelease opt-in have distinct public contracts; existing parse owner already shared.
237 src/infra/update-freebsd-pkg-ownership.ts READ Main retained: Bounded pkg inventory and canonical entry ownership are protected installation/security behavior.
236 src/infra/approval-gateway-resolver.ts READ Main retained: Canonical reviewer identity and shipped legacy owner-routing/fallback remain documented public contracts.
236 src/infra/session-sqlite-migration-artifact.ts READ Main retained: No safe structural reduction: checks bind descriptor/inode/content across publication, callback, unlink, and directory durability boundaries; APFS exception is intentionally narrow.
236 src/infra/state-migrations.audit-checkpoints.ts READ Removed forwarding key accessor and redundant Stats projections; retained source generation order and same-descriptor hash checks.
234 src/infra/diagnostic-error-metadata.ts READ Main retained: Own-data-property traversal deliberately avoids getters and proxies; hashing/low-cardinality policy retained.
234 src/infra/fs-safe-remove.ts READ Main retained: Planned-leaf identity guards reject replacement objects; recursive removal preserves pinned ancestors, sticky mutation authority, symlink policy, and ordinary missing-path handling.
234 src/infra/update-candidate-plugin-tree-links.ts READ Main retained: Duplicate-looking shape declarations retain the schema/import boundary; prior merged pass intentionally reverted type sharing.
233 src/infra/kysely-sync-cache-state.ts READ Main retained: No change: authorizer invalidation, two-hit admission, active-statement exclusion and native disposal sequencing each protect distinct SQLite contracts.
233 src/infra/outbound/conversation-delivery.ts READ Main retained: No changes; persistence/retry projection and queue/platform reconciliation are hard persistent-store semantics.
232 src/infra/update-failure-facts.ts READ Main retained: Unknown errors, source locations and private destination paths require independent redaction guards.
231 src/infra/diagnostic-trace-context.ts READ Validate already lowercase parsed trace fields directly; preserve W3C admission rules.
231 src/infra/session-delivery-queue.worker.ts READ Main retained: worker dispatch owns atomic durable transitions and settlement reconciliation; remaining adapters carry necessary namespace typing.
230 src/infra/net/undici-runtime.ts READ Main retained: SOCKS and env proxy adapters preserve native callback, close/destroy, credentials and direct/proxy TLS differences.
230 src/infra/update-channels.ts READ Main retained: Existing channel/version owner serves package and Git selection; release-channel distinctions remain public contracts.
228 src/infra/bun-sqlite-library.ts READ Main retained: No change: one-shot native selection, explicit override failures and inherited worker validation are required runtime admission facts.
228 src/infra/state-migrations.cron-run-logs.ts READ APPLIED: inlined one-use parseDetail/ordinalKey forwarders; preserved legacy row parsing, mirrored identity existence semantics, row ordering, and schema-owner transaction.
228 src/infra/update-candidate-canary-readiness.ts READ Main retained: Freshly merged progress-aware startup deadlines and loopback proxy handling must remain unchanged.
224 src/infra/exec-approval-text-sanitize.ts READ Main retained: Raw/stripped redaction masks, Unicode escape rules, and caps protect different spoof/redaction boundaries.
224 src/infra/sqlite-worker-transfer.ts READ Main retained: Framing validates byte bounds, counts, sequence, and complete-record delivery; producer cleanup retains failed obligations.
224 src/infra/update-candidate-admission.ts READ Main retained: Candidate protocol fallback and redacted verdict mapping enforce existing admission/security contracts.
222 src/infra/heartbeat-delivery-normalization.ts READ Main retained: Reply, tool notification, failure and source suppression classification differ intentionally; canonical sendable-parts owner already used.
222 src/infra/outbound/message-action-threading.ts READ Main retained: Explicit/implicit reply and thread inheritance plus first-reply consumption differ intentionally; prior pass removed duplicated transport preparation.
221 src/infra/device-pairing-worker.ts READ Main retained: Receipt validation and commit publication maintain current owner authority across awaits and failures; retained.
220 src/infra/backup-config-capture.ts READ Main retained: Hashes, file identities, canonical targets, and lexical alias proofs pin the complete authored include graph; archive capture and update rollback retain their distinct alias contracts.
220 src/infra/sqlite-schema-sql.ts READ Main retained: Existing shared SQL scanner already owns quote/comment handling for callers; parsing paths require different state.
220 src/infra/windows-port-pids.ts READ Main retained: Observation vs enrichment APIs retain distinct timeout/fallback semantics and provenance.
219 src/infra/outbound/message-account-selection.ts READ Main retained: Pre/post-await account checks preserve live authority and metadata-only broadcast secret selection; retained separate checks and failure behavior.
217 src/infra/approval-view-model.ts READ Main retained: Exec/plugin/system views retain discriminated request metadata and phase-specific public presentation shapes.
217 src/infra/exec-approvals.ts READ Main retained: Public aggregate exports and socket initialization behavior remain stable; sync and async pathways have distinct boundaries.
217 src/infra/ports-format.ts READ Main retained: Different expected bind shapes share parser and classification; keep dual-stack and specific-IPv4 ownership proof plus operator remediation output.
217 src/infra/update-managed-service-handoff-process.ts READ Main retained: Cross-platform process identity fallbacks retain distinct liveness and attribution guarantees; recently simplified in #158210.
215 src/infra/channel-summary.ts READ Removed single-use config/plugin forwarding wrappers while preserving lazy imports and source-config activation options.
215 src/infra/exec-approval-session-target.ts READ Main retained: Stored route vs live turn metadata consistency and public conversation projection retained.
215 src/infra/sqlite-worker-contract.ts READ Main retained: Transport unions and error inspection preserve cross-realm classification without invoking getters or proxy traps.
214 src/infra/system-run-approval-context.ts READ Main retained: Prepared payload normalization preserves legacy node plan and display fallback shapes.
214 src/infra/update-check-package-target.ts READ Returned the npm metadata parser result directly instead of rebuilding its normalized optional schema projection; retained upstream abort propagation through registry reads.
214 src/infra/update-failure-public-identifiers.ts READ Main retained: Exact source-defined outcome codes and catalog identities separate public failure reasons from private diagnostics; unknown checks, codes, and plugin IDs remain redacted.
213 src/infra/exec-safe-bin-trust.ts READ Main retained: Filesystem case probes, symlink targets, writable warnings, and trust cache freshness preserve security policy.
212 src/infra/sqlite-snapshot-retirement.ts READ Main retained: Recursive retirement preserves parent-first markers, nested token custody, and legacy age clamps; no safe structural removal.
211 src/infra/net/provider-websocket.ts READ Main retained: DNS preparation and handshake share deadline with independently owned agent/socket cleanup; HTTP policy parity is preserved.
211 src/infra/state-migrations.receipts.ts READ Main retained: No sound structural cut: canonical shared receipt owner; run/source upserts intentionally differ and authority checks surround transaction and write.
211 src/infra/update-run-write.ts READ Main retained: Existing transactions, first-terminal-outcome and bounded diagnostic projection are canonical persistent owners.
210 src/infra/gateway-process-argv.ts READ Main retained: Process discovery accepts documented hints, while mutation admission requires verified package identity; cwd inspection and ambiguous-process outcomes preserve security contracts.
210 src/infra/outbound/markdown-details.ts READ Main retained: Recently centralized depth cap and bounded parser preserve nested Markdown/code semantics; no sound further simplification found.
210 src/infra/push-web-preferences.ts READ Main retained: User defaults and per-device overlays intentionally preserve different missing-field semantics; no sound structural reduction found.
209 src/infra/exec-approvals-policy.ts READ Main retained: Approval requirements and allow-always availability encode policy; suppression-inspection parser remains intentionally bounded.
209 src/infra/update-control-plane-sentinel.ts READ Main retained: Shipped sentinel shape and restart-completion ownership require existing explicit projections.
208 src/infra/package-update-activation.ts READ Main retained: Recovery facade distinguishes read-only receipts from admitted continuations and freshly fenced repair; published-target capability detection preserves update compatibility.
207 src/infra/ed25519-signature.ts READ Removed base64url encoding pass-through; all bounds, canonical decoding, key validation and signature checks remain identical.
206 src/infra/approval-handler-bootstrap.ts READ Main retained: Gateway scheduler owns retry deadlines; handler generations, context replacement, terminal startup errors, and joined stop retain distinct lifecycle checks.
205 src/infra/git-commit.ts READ Main retained: Loaded artifacts and live checkout metadata have distinct invalidation/fallback contracts; common metadata probe already shares bounded reads and parsing.
205 src/infra/update-run-recovery-native-schema.ts READ Main retained: Native transition/history constraints were just specialized in #159358; schema contract unchanged.
204 src/infra/device-pairing.ts READ Main retained: Facades retain operation-specific locking, migration snapshots and live connection admission; existing worker owner already shared.
204 src/infra/package-update-verification-step.ts READ Main retained: Named missing-result fallback owns its fail-closed code/message; keeping that failure fact outside the central await expression preserves a clear verification boundary.
204 src/infra/resolve-system-bin.ts READ Main retained: Retain strict/standard trust roots, Windows install-root discovery and live LRU ordering; prior sweep already owns shared cache insertion policy.
204 src/infra/session-cost-usage-rollup-codec.ts READ Main retained: Versioned envelopes, hashes, byte limits and JSONL/SQLite freshness guards are required persisted-cache contracts.
203 src/infra/outbound/targets.shared-test.ts READ Main retained: Test fixture misclassified by production census; fully read, preserved shared routing/allowlist/prefix coverage unchanged.
203 src/infra/state-migrations.restart-sentinel-receipts.ts READ Main retained: No sound structural cut: published v2026.9.5 path-wide receipt contract differs from current source-generation receipts and canonical-import pointers.
202 src/infra/heartbeat-runner-run.ts READ Main retained: Uses shared inbound dispatcher; preparation gates and owned reply settlement preserve real heartbeat entry-point behavior.
202 src/infra/update-database-restore.ts READ Main retained: backup verification, generation checks, exclusive state custody, displaced-file publication, and child-settlement cleanup are separate rollback guarantees.
201 src/infra/provider-usage.load.ts READ Main retained: Provider work has own abort deadline and shared auth-store lifetime; plugin result ordering and error filtering remain meaningful.

@steipete
steipete force-pushed the deslop/l123-infra-fifth-pass branch from 9ac158e to cccc58f Compare September 28, 2026 01:52
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 28, 2026
@steipete
steipete force-pushed the deslop/l123-infra-fifth-pass branch from cccc58f to 2052970 Compare September 28, 2026 03:16
@steipete
steipete force-pushed the deslop/l123-infra-fifth-pass branch 3 times, most recently from 16c0288 to c9ff549 Compare September 28, 2026 09:40
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 28, 2026
@steipete
steipete force-pushed the deslop/l123-infra-fifth-pass branch from c9ff549 to ac07216 Compare September 28, 2026 13:48
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 28, 2026
@steipete
steipete force-pushed the deslop/l123-infra-fifth-pass branch from ac07216 to 0a2f81c Compare September 28, 2026 18:14
Consolidate outbound, pairing, migration, lifecycle, approval, environment, and update plumbing at existing owners. Preserve storage, security, network, and update contracts. Remove 1,514 net production lines and redundant test cases.

Fix unchanged Unicode permission maps replacing pending pairing requests when key insertion order changes. The pairing entrypoint regression fails before the exact-key comparison and passes afterward.

Linux Testbox: full infra plus importers, import boundaries, builds, and focused regressions passed. Codex P0-P2 review is clean. Changed checks pass except an inherited gateway line cap already fixed by #159473 on main; rebase validation follows. Published upgrade hits the separately owned WhatsApp Doctor defect in #159650.
Distinguish the directive parser from the media-persistence parser, whose error contract differs, and update both internal callers. Preserve JSON parsing, migration errors, and persistent behavior.

Linux Testbox: exact export-collision guard, targeted lint, core types, 45 migration/archive tests, import boundaries, and build passed. Fresh Codex P0-P2 review is clean.
@steipete
steipete force-pushed the deslop/l123-infra-fifth-pass branch from 0a2f81c to c468be7 Compare September 28, 2026 19:27
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current-head proof is complete for c468be72d093f9f97d89f4a525ca8fcad76f6d38 (source tree 0d6743a0f02c2fc302397e5ed0654f987fa506e2). The published [email protected] driver passed the complete base/manual cell in 361 seconds and legacy-state/manual rollback cell in 433 seconds, both on their first attempt. Standalone post-update Doctor passed. The inspected rollback receipt reports verified raw transcripts, exact schema-23 admission for both agents, and all three seeded sessions readable by the retained published runtime.

Blacksmith Testbox tbx_01m3mqt4dk3gza7tpq70kkng59 also passed check-changed, affected upstream contracts, all import boundaries, the original failing CI shard replay, 219 planner-policy tests, build, and all 18 blank-thread/topic comparisons. Logs, Docker summaries and selected rollback receipts were downloaded and inspected; the lease is stopped. Testbox run.

Exact-head CI passed 143 jobs with 18 skips and no failures. The unchanged refactor also retains the completed 16,614-test infra/importer proof. The PR body now records the commands, timings, inherited owner repairs, and the source-based review rejection.

No schema or stored-data contract is introduced by this refactor. The complete size-sorted coverage log has 409 READ entries, covering all 407 production files over 200 lines plus two supplemental files. This remains a 900-net-production-line reduction after removing cleanup already landed by the fourth pass.

This is a review-only refresh. Leave the PR unmerged and unarmed.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
@steipete
steipete merged commit 7f0781f into main Sep 28, 2026
245 checks passed
@steipete
steipete deleted the deslop/l123-infra-fifth-pass branch September 28, 2026 21:32
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
* refactor(infra): deslop infra fifth pass

Consolidate outbound, pairing, migration, lifecycle, approval, environment, and update plumbing at existing owners. Preserve storage, security, network, and update contracts. Remove 1,514 net production lines and redundant test cases.

Fix unchanged Unicode permission maps replacing pending pairing requests when key insertion order changes. The pairing entrypoint regression fails before the exact-key comparison and passes afterward.

Linux Testbox: full infra plus importers, import boundaries, builds, and focused regressions passed. Codex P0-P2 review is clean. Changed checks pass except an inherited gateway line cap already fixed by openclaw#159473 on main; rebase validation follows. Published upgrade hits the separately owned WhatsApp Doctor defect in openclaw#159650.

* refactor(infra): name the directive migration parser explicitly

Distinguish the directive parser from the media-persistence parser, whose error contract differs, and update both internal callers. Preserve JSON parsing, migration errors, and persistent behavior.

Linux Testbox: exact export-collision guard, targeted lint, core types, 45 migration/archive tests, import boundaries, and build passed. Fresh Codex P0-P2 review is clean.

* refactor(infra): retain canonical reader diagnostics after rebase

* refactor(infra): retain explicit ClawHub guard entries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed 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