Closed as not planned
Labels
area:coreCore runtime and shared infrastructurearea:storageStoragetool:codexCodextype:refactorCode restructuring
Description
Summary
There are two same-name ArchiveStats types with different fields and consumers. This is not yet proven to drop data at a boundary, but it creates active ambiguity between public facade summary stats and storage/archive readiness stats.
Parent: #578
Evidence
polylogue/operations/archive.py:455defines a public facadeArchiveStatswithconversation_count,message_count,word_count,tags,last_sync, andrecent.polylogue/lib/stats.py:9defines storage/archiveArchiveStatswithtotal_conversations, embedding coverage fields, db size, and retrieval readiness.ArchiveStatsMixin.storage_stats()returns the lib stats atpolylogue/operations/archive.py:501.ArchiveStatsMixin.summary_stats()returns the operations stats atpolylogue/operations/archive.py:504.- API exports the operations version; MCP/TUI payloads consume the lib stats shape.
Acceptance criteria
- Rename or otherwise disambiguate the two stats types so public API summary stats and storage readiness stats cannot be confused.
- Update type hints, exports, docs, and tests to use the explicit names.
- Add or adjust a test that would fail if the public API accidentally returned the storage stats shape, or vice versa.
Metadata
Metadata
Assignees
Labels
area:coreCore runtime and shared infrastructurearea:storageStoragetool:codexCodextype:refactorCode restructuring
Activity
Sinity commentedon May 1, 2026
Superseded by #621. I consolidated this finding into the composite issue so the work can be handled as one coherent slice instead of as a tiny standalone ticket. The original evidence remains available in this issue history.