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
src/backend/database.py (1270 lines) is a delegation facade for all database operations. The agent operations were successfully split into mixins (#102), reducing db/agents.py from ~1000 to ~160 lines. The same pattern should be applied to the remaining delegation methods in database.py itself.
Currently database.py contains delegation methods for:
Agent operations (done — delegates to mixins)
Schedule operations
Public link operations
Monitoring operations
System view operations
Dashboard history operations
And more
Proposed Solution
Group remaining delegations by concern and slim the facade:
Remove pass-through methods where callers can use the operation class directly
Or continue the mixin/facade pattern to keep DatabaseManager as the single entry point but slim each section
The goal is database.py < 500 lines with clear section organization.
Closing as superseded — file-split refactor tickets created en masse on 2026-03-14 from a one-shot complexity scan. The /code-health weekly automation now scores hotspots dynamically and creates better-targeted issues from current churn × complexity, so static "split N-line file" tickets are no longer the right unit of work. The underlying complexity signal will resurface organically if/when it matters. Reference: backlog lean review on 2026-05-28.
Activity
oleksandr-korin commentedon May 29, 2026
Closing as superseded — file-split refactor tickets created en masse on 2026-03-14 from a one-shot complexity scan. The
/code-healthweekly automation now scores hotspots dynamically and creates better-targeted issues from current churn × complexity, so static "split N-line file" tickets are no longer the right unit of work. The underlying complexity signal will resurface organically if/when it matters. Reference: backlog lean review on 2026-05-28.feat(github): per-user GitHub credentials (Abilityai/trinity-enterpri…