Repository navigation
Conversation
The source-fence admission factory introduced in #168018 never acquired a production caller. Its only backend implementation is its synthetic test; existing publication, session-title and worktree operations keep their native source and effect guards. Remove the unadopted primitive, its exclusive worker and transaction wiring, and the tests that only exercise it. Keep ordinary admission, commit receipt, settlement and SDK transaction contracts intact. Remove the corresponding wrapper-copy entries and native-SQL allowance, and correct the documentation. This clears the production Knip unused-file failure without an ignore or configuration exemption. No schema, stored data or update behavior changes.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Closing as superseded by #168241. #168018 introduced the SQLite source fence on purpose as a dormant foundation. Its PR body and the worker-access reference say later GitHub publication, session-title, and worktree operations will adopt it. Removing it to satisfy Knip would undo that foundation and its broker tests. #168241 instead records the Knip finding against #168018, with an explicit removal condition (drop the entry with the first caller), and also fixes the other dependency-check findings on main. |
|
Codex review: needs maintainer review before merge. What this changesRemoves the unused SQLite cross-store source fence, its tests, and its worker, transaction, and tooling registrations. Example: Run pnpm deadcode:dependencies on the recorded base and candidate.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR removes a demonstrably unused foundation and its exclusive wiring without changing production authorization or settlement behavior; no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe SQLite broker sends typed operations to worker backends, which obtain live admission, execute native transactions, and return commit receipts and settlement facts. flowchart TD
A[Domain caller] --> B[SQLite broker]
B --> C[Worker backend]
C --> D[Live operation admission]
D --> E[Native SQLite transaction]
E --> F[Commit receipt and settlement]
F --> B
Technical reviewBest possible solution: Remove the unadopted fence completely while retaining existing domain authority guards and ordinary broker settlement. Do we have a high-confidence way to reproduce the issue? Current-main references establish the unused production factory, and the PR records the exact dependency gate failing on the base and passing on the candidate; no target code was run during this review. Is this the best way to solve the issue? Complete removal is a coherent repair because the primitive has no production adopter, its exclusive tests and wiring are removed together, and existing admission and final-effect guards remain. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against db74f466dcbe. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -528, Tests -726, Docs -35, Other -4. Total -1293 across 12 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 10, 2026, 1:44 AM ET / 05:44 UTC. |
What Problem This Solves
Fixes the main dependency check reporting
src/infra/sqlite-source-fence-admission.tsas an unused production file.User Impact
No user-visible behavior, schema, stored-data, public SDK, or update changes. Existing publication, session-title, and worktree operations retain their native source and effect guards.
Why This Change Was Made
The factory introduced in #168018 never acquired a production caller. Its only backend implementation is the synthetic test backend; the introducing documentation explicitly says there was no bundled-caller cutover. No admission fence was accidentally removed by a later change.
Remove the unadopted primitive, its exclusive worker/transaction wiring, and its synthetic test facility together. Ordinary admission, commit receipts, settlement, and transaction behavior remain with their existing owners. Remove the corresponding wrapper-copy entries and native-SQL allowance, and document the retained native guards. No Knip ignore or configuration exemption is added.
Related: #168018
Evidence
Linux proof uses Node 24.19.0 and frozen pnpm 12.7.0 dependencies at base
7008414e344eplus the exact candidate patch.deadcode:dependencies,deadcode:unused-files, anddeadcode:exportspass; production, full-tree, and script scans report zero entries (159.62 s / 90.50 s / 100.62 s).check-changed --base 7008414e344epasses (2966.56 s), including production types, all 27 core-test type graphs, script types, core/script lint, storage/security guards, and runtime import-cycle checks.The broader infra run was stopped after about 74 minutes with 13,000 passing case lines, six failures, and 408 files reached; this is partial coverage, not a passing whole-config result. All five worktree failures reproduce on the unchanged base when
/tmphas 7.6–7.7 GiB free against an 8 GiB setup requirement. Those same five cases pass on both base and candidate with disk-backed temporary storage (47.32 s / 47.49 s), without changing tests or capacity limits. The remaining failure inopenclaw-agent-execution-incognito.memory.test.ts:408reproduces identically in whole-file base/candidate runs: the status now includes two configuration lines absent from the expected text (10 pass, 1 fail on each).The entire infra and tooling configs and the other consumer configs are not completed. The direct-import and policy-watch footprint spans 14 configs, so this is a ready PR for maintainer review, not a claim that the direct-push proof floor is complete. Testbox admission exhausted 15 minutes; Linux proof used the authorized Crabbox fallback. No CI dispatches or reruns were requested.