Code health
This codebase scores 4.7 out of 10 for code health, which we rate needs work. It also scores maintainability 4.7 and static performance 9.1 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 75 of 1,487 files are git hotspots, and they average 1.9 — which is where the fixes pay off most.
10 things worth doing this quarter.
Batch the network calls loops make through resolve_runtime_credentials
7 loops across 6 files reach it from code an entry point calls, once per item.
Batch the network calls loops make through _get_context_length_cached
6 loops across 5 files reach it from code an entry point calls, once per item.
Delete 2 unused symbols and files (43 lines)
Nothing in the graph reaches them, across 2 files; every reader and agent pays to skip them.
Batch the network calls loops make through _saveTasks
4 loops across 1 file reach it from code an entry point calls, once per item.
Batch the database calls loops make through setup_session_routes
3 loops across 1 file reach it from code an entry point calls, once per item.
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.