Files
tai/taicpp/docs/store.md
T

18 lines
1.1 KiB
Markdown
Raw Normal View History

# store parity (tai.py -> taicpp)
2026-10-24 06:45:50 +02:00
Superseded detail lives in [foundation.md](foundation.md). Summary of the
current state, replacing the M3 stub notes:
| tai.py | taicpp | status |
2026-10-24 06:45:50 +02:00
|---|---|---|
| `Store` (sqlite + FTS5, WAL, busy timeout 30 s, per-profile slices) | `detz::store::Store(const Config&, const SealPort&)` | all methods ported, replayed against tai.py |
| 17 tables, 19 indexes, FTS triggers, `migrate_profiles` | `Schema` | schema DDL compared byte for byte |
| `records.id` is `mem:<16 hex>` text | `add_record` returns `std::string` | the pre-foundation stub used integers and a different schema; it is gone |
| `DebugLog`, `LOG` | `DebugLog`, `DebugLog::Global()` | sentence and json sinks and the `logs` table compared |
| `spill_output`, `spilled_view`, `spill_or_truncate` | `Spill` | python semantics (6000 char limit, head 1500, tail 500) |
| session, turn, bots, profile files | `Store::load_session` and friends | compared file by file |
Callers of the old stub (`Store st(path)`, `add_record` returning an integer,
`search`) must switch to `Store::Open(path)` and the python method names; see
`docs/wiring/foundation.md`.