Code health
This codebase scores 6.0 out of 10 for code health, which we rate fair. It also scores maintainability 6.7 and static performance 9.8 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 339 of 1,451 files are git hotspots, and they average 4.3 — which is where the fixes pay off most.
7 things worth doing this quarter.
Break up applyFrame (CCN 42, 83 lines)
apps/x/apps/renderer/src/lib/spaces-read-state.ts:386
applyFrame nests its control flow deeply; 18 files import it, changed 6 times in 90 days.
Break up syncCalendarWindow (CCN 18, 138 lines)
apps/x/packages/core/src/knowledge/sync_calendar.ts:447
syncCalendarWindow nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 3 files import it, changed 9 times in 90 days.
Fix 5 broken references in apps/harbor/CONTRACT.md
The document points readers and agents at paths this repository no longer has.
Fix 3 broken references in apps/harbor/SPEC.md
The document points readers and agents at paths this repository no longer has.
Delete 18 unused symbols and files (1,332 lines)
Nothing in the graph reaches them, across 17 files; every reader and agent pays to skip them.
No commits indexed yet.
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.