Comprehensive Codebase Audit Report - Untracked Task Gap Pass - 2026-05-26

Scope

Acceptance Criteria

Evidence Reviewed

Findings

ID Domain Severity Confidence Summary Evidence Task Mapping
F-001 UI Architecture High 93% The Blazor route backlog still does not own the two largest and most actively changed route components: Chat.razor and Admin.razor. Hotspot scan plus direct route reads show Chat.razor at 2511 lines and Admin.razor at 1663 lines, each combining large markup and large local state/event surfaces; task search found no route-level decomposition owner. New: TSK-0189, TSK-0190
F-002 Core Memory Architecture High 90% MemoryApplicationService has become a central monolith for retrieval, mutation, diagnostics, and telemetry without an owning refactor task. MemoryApplicationService.cs at 1168 lines; public methods span list/search/search-metadata/lexical/semantic/hybrid/context pack/get/diagnostics/find-by-source/create/update/delete/usage/stats/telemetry. New: TSK-0191
F-003 MCP/Chat Tool Architecture High 92% ChatToolCatalog has become its own architecture hotspot and will keep growing under the current MCP backlog unless modularized first. ChatToolCatalog.cs at 1161 lines; 19 yielded tool descriptors; schema builders and format helpers are in the same file; active backlog items TSK-0183, TSK-0185, TSK-0186, and TSK-0177 all touch this surface. New: TSK-0192
F-004 Task Contract Hygiene Medium 88% The task-contract guardrail task is still correct, but it needs refreshed evidence and explicit linkage to today's audit because mixed persisted shapes and imported legacy ids still exist. TSK-0053 remains open; TSK-0177 uses PascalCase roots; TSK-0026 to TSK-0028 retain *-new-task ids; runtime compatibility exists, but canonicalization is not complete. Existing: TSK-0053 updated
F-005 Secondary Route Candidates Medium 74% Tasks.razor and Pages.razor remain large, but current evidence is weaker for immediate extraction because recent UX/layout work is still settling. Hotspot scan shows Tasks.razor 1300 lines and Pages.razor 1046; however, they also have recent completed UX tasks and fewer cross-cutting platform concerns than Chat/Admin. Deferred under TSK-0047 guardrail review

Backlog Cross-Reference

Area Existing task set This audit's action
MCP benchmark/auth follow-up TSK-0179, TSK-0180, TSK-0183, TSK-0184, TSK-0185, TSK-0186 Reuse as active baseline; do not duplicate.
Service/test decomposition TSK-0042, TSK-0043, TSK-0044, TSK-0045, TSK-0047, TSK-0048, TSK-0049, TSK-0050, TSK-0051, TSK-0157 Extend with the still-unowned UI route, memory-core, and tool-catalog architecture tasks.
Task provenance and contract drift TSK-0029, TSK-0053 Keep TSK-0029 closed; update TSK-0053 with current evidence rather than clone a new hygiene task.

Risk Register

Open Questions

Confidence