docs: revise architecture audit and roadmap for v2.6.0#261
docs: revise architecture audit and roadmap for v2.6.0#261carlos-alm wants to merge 2 commits intomainfrom
Conversation
|
Claude finished @carlos-alm's task —— View job PR Review CompleteRoot Cause AnalysisProblem Being Solved: This PR updates documentation to reflect actual codebase evolution from v1.4.0 (5K lines, 12 modules) to v2.6.0 (17,830 lines, 35 modules). The architecture audit reprioritizes recommendations based on real growth patterns, and the roadmap documents features shipped across v2.0.0-v2.6.0. Why This Approach: The original architecture audit and roadmap were written for a much smaller codebase. As the project grew 3.5x, the priority of architectural issues shifted (e.g., dual-function pattern became #1 concern, parser plugin system dropped in priority). Risk Assessment: HIGH RISK - Misleading PR Scope Critical Concerns1. Misleading PR Scope
|
Greptile SummaryThis PR combines feature implementation with documentation updates, despite the title indicating "docs only." The main technical contribution is the introduction of The documentation changes update the roadmap from v1.4.0 to v2.6.0, add Phase 2.5 documenting 18 new analysis modules shipped since the original roadmap, and revise architectural recommendations based on actual codebase growth (3.5x expansion). A new Key concerns:
The code quality is excellent with proper caching, comprehensive tests, and consistent application. However, the PR structure makes it harder to review and understand the scope of changes. Confidence Score: 4/5
Important Files Changed
Last reviewed commit: a4f34d4 |
a4f34d4 to
d64292a
Compare
d64292a to
ef1aa14
Compare
Add normalizeSymbol(row, db, hashCache) that returns a consistent 7-field symbol shape (name, kind, file, line, endLine, role, fileHash) across all query and search commands. Update queryNameData, fnDepsData, fnImpactData, explainFunctionImpl, listFunctionsData, rolesData, whereSymbolImpl in queries.js and searchData, multiSearchData, ftsSearchData, hybridSearchData in embedder.js to use normalizeSymbol. Update SQL in listFunctionsData, rolesData, iterListFunctions, iterRoles, _prepareSearch, and ftsSearchData to include end_line and role columns. Export normalizeSymbol from index.js. Add docs/json-schema.md documenting the stable schema. Add 8 unit tests and 7 integration schema conformance tests. Impact: 13 functions changed, 33 affected
|
Superseded by #266 (rebased, clean commit history, all CI passing). |
Re-evaluate all architectural recommendations against the actual codebase as it grew from v1.4.0 (5K lines, 12 modules) to v2.6.0 (17,830 lines, 35 modules). Architecture audit: - Reprioritize: dual-function anti-pattern across 15 modules is now #1 (was analysis/formatting split at #3) - Downgrade parser plugin system from #1 to #20 (parser.js shrank to 404 lines after native engine took over) - Add 3 new recommendations: decompose complexity.js (2,163 lines), unified graph model for structure/cochange/communities, pagination standardization - Update all metrics and line counts to current state Roadmap: - Add Phase 2.5 (Analysis Expansion) documenting 18 modules shipped across v2.0.0-v2.6.0 (complexity, communities, structure, flow, cochange, manifesto, boundaries, check, audit, batch, triage, hybrid search, owners, snapshot, etc.) - Mark Phase 5.3 (Hybrid Search) as completed early in Phase 2.5 - Update Phase 3 priorities based on revised architecture analysis - Update version to 2.6.0, language count to 11, phase count to 10 - Add Phase 8 note referencing check command foundation from 2.5
Summary
generated/architecture.mdagainst the actual codebase as it grew from v1.4.0 (5K lines, 12 modules) to v2.6.0 (17,830 lines, 35 modules)docs/roadmap/ROADMAP.mddocumenting 18 modules shipped across v2.0.0-v2.6.0Key priority shifts:
Roadmap changes:
Test plan