Repository navigation
refactor(routing): remove resolver and test size exceptions - #159382
Conversation
Keep normalized binding indexing and its cache in one internal module and move existing cache regression tests into their own file. Preserve routing logic, public exports, source order and cache lifetime while restoring normal file-size checks. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c5219f0e-87b0-4d0d-bcae-5f027231bcf8
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 27, 2026, 12:55 AM ET / 04:55 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch moves binding indexing and caching into an internal routing module, separates cache regression tests, and removes two file-size exceptions. Merge readiness✅ Ready for maintainer review Current main and the latest release still carry the two routing size exceptions. This PR remains the active implementation for the linked cleanup issue; the introduced changes show no actionable routing defect. Priority: P3 Review scores
Verification
How this fits togetherIncoming channel messages and configured bindings feed the route resolver, which selects an agent and session key. The binding index prepares and caches candidates for that decision. flowchart LR
A[Incoming channel message] --> D[Route resolver]
B[Configured bindings] --> C[Binding index and cache]
C --> D
D --> E[Selected agent]
E --> F[Session key]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +9, Tests -8, Other -2. Total -1 across 5 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep binding preparation and its cache together under routing, preserve the resolver’s public selection behavior, and retire both size exceptions. Do we have a high-confidence way to reproduce the issue? Not applicable: this is cleanup rather than a behavior bug. Both exceptions are directly visible on current main and in the latest release. Is this the best way to solve the issue? Yes. The extraction keeps binding indexing and its cache together while the existing resolver retains route selection and public exports. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb39d6afef10. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Preserve the reviewed routing source unchanged while incorporating the landed roster fixture and publication repairs from #159394 for fresh CI. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 5857d0f0-8906-48ac-aa97-8f242c4a09e3
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…#159382) * refactor(routing): remove resolver and test size exceptions Keep normalized binding indexing and its cache in one internal module and move existing cache regression tests into their own file. Preserve routing logic, public exports, source order and cache lifetime while restoring normal file-size checks. Co-authored-by: steipete <[email protected]> * refactor(routing): remove resolver and test size exceptions Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: c5219f0e-87b0-4d0d-bcae-5f027231bcf8 * refactor(routing): remove resolver and test size exceptions Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 5857d0f0-8906-48ac-aa97-8f242c4a09e3 --------- Co-authored-by: steipete <[email protected]>
Closes #159305
What Problem This Solves
The routing resolver and its regression tests need file-size suppressions even though binding indexing and cache tests form independent, coherent units.
User Impact
No user-visible change. Routing precedence, session keys, configured ownership, and cache lifetime stay unchanged; developers regain normal size checks on these files. No migration or configuration change.
Why This Change Was Made
Move the existing binding normalization, source-order index, and its cache together into an internal routing module. Keep route selection and all public exports in the resolver. Move the existing cache regression tests into a focused test file without dropping assertions. Remove both
max-linescomments and their shrink-only baseline entries; do not relax any rule.This is part of the lint-suppression reduction explicitly requested by @steipete.
Evidence
Earlier broad local validation stopped on unrelated 701-line size drift in src/state/openclaw-state-worker-runtime.ts and src/gateway/session-row-projection.ts on the original base; it was not a passing full-wrapper run. Full repository validation was not repeated locally after refresh. Exact-head hosted CI and the enforced CI gate passed. Completed ClawSweeper review for the refreshed head reported no findings. Landed as 6f736dd; native closeout is complete.
Worked on by
Work sessions
View the OpenClaw team session