You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(services): give each NATS service its own registerHandlers name
Five services each exported a function called registerHandlers. Every one is
imported only inside its own service, so nothing was broken — but a tree-wide
search for registerHandlers returned five unrelated definitions, and three of
them ranked in the codebase graph's top ten by connectivity, which made the
most-connected symbols in the system also the least searchable.
Each is now service-qualified: registerPromptStoreHandlers,
registerContentIngestHandlers, registerRecordResolverHandlers,
registerResponseStoreHandlers, registerRowStoreHandlers.
registerPersonHandlers in record-surrealdb-resolver is deliberately unchanged.
It was already unique, and renaming an unambiguous symbol is churn.
Corrects a count in the refactor backlog. That document said three, because
three was what the graph's top-ten showed; there are five. God-node rankings
report the top of a distribution, not a census — worth remembering the next
time one is read as a complete list. The backlog now records that, along with
the three other items that shipped without originally being scoped: the turbo
removal, the React eviction, and the shell typecheck fix.
Verified: all five services typecheck clean, 19 packages build, and every test
suite passes including the end-to-end group, which now has Docker available.
Files changed:
- services/{prompt-store,content-ingest,record-surrealdb-resolver,response-store,row-store}/src/{handlers,server}.ts
- context-v/refactors/Structural-Refactors-Surfaced-by-the-Codebase-Graph.md
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019a8tSPbFdvF1pKtADnWyDg
0 commit comments