saravanakumardb1
|
d10322095a
|
docs: fix 10 inaccuracies in DRY audit + roadmap after thorough review
Verified claims against actual codebase. Key corrections:
Audit (CROSS_REPO_DRY_AUDIT.md):
- Fix #5: all 9 repos already use @bytelyst/datastore — issue is only
DB_PROVIDER missing from config.ts in 3 older repos (not a full migration)
- Fix #6: only 3 repos have product-config.ts (not 4) — NomGap was wrong
- Fix #11: web telemetry.ts is in NomGap+NoteLett+ChronoMind+LysnrAI (not JarvisJr)
- Fix #12: web diagnostics.ts includes LysnrAI user-dashboard-web (5 repos total)
- Fix auth.ts LOC: exactly 79 lines × 9 repos = 711 (was '60-90')
- Fix request-context.ts LOC: 30-49 lines range (was '~30-50')
- Fix package count: 50 packages (not 53)
- Add items 15-16: web auth.ts + billing-client.ts (noted as keep-as-is)
- Fix LOC math: ~2,700 total (was inflated ~4,200)
- Add cosmos-init.ts note (5 repos, product-specific, not consolidation candidates)
Roadmap (CROSS_REPO_DRY_MIGRATION_ROADMAP.md):
- Phase 0.2: 6 repos need product-config.ts (add NomGap)
- Phase 2.3: rewritten from 'migrate to datastore' to 'add DB_PROVIDER to config'
- Phase 4: add LysnrAI user-dashboard-web to affected repos, remove JarvisJr from telemetry
- Fix product-config.ts template path (was ../../../../, now ../../../ with depth note)
- Fix success metrics: packages 50→55, product-config 3→9, LOC ~1,760
- Fix overview table: Phase 2 name, Phase 4 repo count
|
2026-03-20 07:15:07 -07:00 |
|
saravanakumardb1
|
a769f671e2
|
docs: cross-repo DRY audit + end-to-end migration roadmap
- CROSS_REPO_DRY_AUDIT.md: identified 14 duplication patterns across
9 product backends + web clients (~4,200 LOC duplicated)
- CROSS_REPO_DRY_MIGRATION_ROADMAP.md: 5-phase execution plan with
concrete file lists, migration steps, verification checkpoints,
rollback strategy, and success metrics
- Phase 0: quick wins (delete errors.ts re-exports, standardize product-config)
- Phase 1: @bytelyst/fastify-auth (auth + request-context for 9 repos)
- Phase 2: @bytelyst/backend-config + datastore migration for 3 older repos
- Phase 3: backend-flags, backend-telemetry, domain-events (FlowMonk + ActionTrail)
- Phase 4: web client DRY (telemetry, diagnostics, product-config conveniences)
- Estimated: 11 days, 5 new packages, ~3,260 LOC eliminated
|
2026-03-20 07:04:46 -07:00 |
|