Commit Graph
16081 Commits
Author SHA1 Message Date
Brennan Benson 2bb616c75e Merge commit '2b75d66a6e1' into brennanb2025/native-chat-sqlite-host 2026-11-08 11:51:32 -08:00
Brennan Benson 6cca352c3f Expose named history reads on the live journal handle 2026-11-08 11:51:03 -08:00
Brennan Benson 2b75d66a6e Add finite domain control commands for Stop, resume, reopen and shutdown cut
Stop acceptance withdraws host-held sends and records its Stop in one rollback
boundary; reopen marks only while a card waits; a quit cut is written only for a
presented interrupted turn whose cut is absent.
2026-11-08 11:50:09 -08:00
Brennan Benson 9efd49051f Merge commit '19cbcbbb4a90c8829bfa53e4d12aaf4c12662a7a' into brennanb2025/native-chat-sqlite-host 2026-11-08 11:45:47 -08:00
Brennan Benson 19cbcbbb4a Read native chat status and inputs from current domain rows
Replace projection-backed status, work, observer and input facts with named current-row queries while preserving the existing policy and result shapes. Page eligible headers before payloads, preserve independent sending and entered phase order, and retain raw versus visible boundaries.

Cover imported ownership and aliases, scoped cuts, retained end and handover evidence, stopped-history coverage, and complete input populations across keyset pages with real SQLite regressions.
2026-11-08 11:44:15 -08:00
Brennan Benson 6b310062a3 Merge commit '1d7691ffa15' into brennanb2025/native-chat-sqlite-host 2026-11-08 11:40:56 -08:00
Brennan Benson 48765e7185 Preserve independent submission phase order in current attempts 2026-11-08 11:40:31 -08:00
Brennan Benson 1d7691ffa1 Commit profile records through the worker writer before publishing
The record store now opens from the same worker database that loads its
records, commits transactions and lone receipts as named store effects,
and adopts a draft only after the acknowledged commit. Failed closes stay
owned until they succeed. Command receipts and workspace attention become
async worker reads; clear lineage derives from held conversations.
2026-11-08 11:29:23 -08:00
Brennan Benson 2f2ae3236b Persist current input facts and epoch-owned completion evidence 2026-11-08 11:26:19 -08:00
Brennan Benson 3a6ec90be2 Use a fixed clock for history authority regression 2026-11-08 11:04:36 -08:00
Brennan Benson 07c3a48ce0 Project current item columns once across every writer 2026-11-08 10:58:39 -08:00
Brennan Benson 53702ef540 Merge commit '878cc5c14af' into brennanb2025/native-chat-sqlite-host 2026-11-08 10:52:20 -08:00
Brennan Benson 52cdeca894 Read current journal entities and preserve public text cursors 2026-11-08 10:49:19 -08:00
Brennan Benson 878cc5c14a Route journal lifecycle and step commands through current rows 2026-11-08 10:44:19 -08:00
Brennan Benson 447aea3adb Capture queue handover facts before the single writer attempt 2026-11-08 10:36:21 -08:00
Brennan Benson 23079aeadf Merge commit 'eee23ce2c6c' into brennanb2025/native-chat-sqlite-host 2026-11-08 10:32:01 -08:00
Brennan Benson 3acccfe78c Index exact current lifecycle candidates and import their facts 2026-11-08 10:31:35 -08:00
Brennan Benson 3b0215f522 Allocate rejected command results after imported item groups 2026-11-08 10:29:31 -08:00
Brennan Benson eee23ce2c6 refactor: read the journal queue from current domain rows
Queue list/get/revision/cleared-through/next-input-card/pauses/user-stop/reopen-mark
now run named SQL on current cards, head pause facts, persisted edit holds and the
finite recovery index, sharing the writer's bounded selector instead of a reducer shell.
2026-11-08 10:28:01 -08:00
Brennan Benson f5613ec0ed Preserve settlement identities and indexed lifecycle facts in domain import 2026-11-08 10:19:14 -08:00
Brennan Benson 7a53159ae0 refactor: route journal recovery and context commands directly 2026-11-08 10:09:06 -08:00
Brennan Benson 611ccf4414 merge: direct context changes and item removal 2026-11-08 10:04:38 -08:00
Brennan Benson c0dfab3d8a merge: direct input recovery and command turns 2026-11-08 10:04:35 -08:00
Brennan Benson 9de3f2811d refactor: connect named journal commands to the new database 2026-11-08 10:04:20 -08:00
Brennan Benson 38b5c59c2c refactor: add named chat context and item removal transactions
Context clear, rewind and epoch replacement now run as named writer
transactions over the current chat rows. Removal deletes the current item
and keeps a higher tombstone, removed-turn membership and every independent
original (attempts, receipts, aliases, queue rows) in the same transaction,
refreshing Stop notes, queue failure holds, turn scope and the failure
boundary. Epoch replacement starts a new context in the same physical epoch.
Production still uses the existing journal path.
2026-11-08 10:01:45 -08:00
Brennan Benson b3edf15c4b Add SQL input recovery and command turn writers 2026-11-08 09:59:26 -08:00
Brennan Benson 4f0ad9d46d refactor: join sparse stream snapshots to the domain writer 2026-11-08 09:42:33 -08:00
Brennan Benson 3d83842c2d Merge commit '14e46f2e4a5fde18b0cfc40e5c7ce17cee7273a6' into brennanb2025/native-chat-sqlite-host 2026-11-08 09:30:23 -08:00
Brennan Benson 14e46f2e4a refactor: add named submission and dispatch transactions 2026-11-08 09:26:57 -08:00
Brennan Benson a2490987f9 refactor: integrate direct item and lifecycle reads 2026-11-08 09:14:16 -08:00
Brennan Benson 3d5eaedac6 Merge commit '866cbad6069' into brennanb2025/native-chat-sqlite-host 2026-11-08 09:03:44 -08:00
Brennan Benson c96a72725a refactor: persist queue pause and turn scope authority 2026-11-08 09:03:22 -08:00
Brennan Benson 866cbad606 refactor: read current chat items directly from domain rows
Replace the facade-backed item reads with readJournalDomainItems(db, target, operation),
which runs synchronously on the caller's reader snapshot against journal_items, aliases,
tombstones, name memberships and current submission attempts. Each read seeks a typed
scalar index and decodes only the rows it returns; the continuation export pages items
and sends in bounded keyset chunks.

journal-domain-item-read-columns.ts supplies the item-read columns, their indexes and the
pure per-revision extractor for frozen 001 and the single item/import upsert. Lifecycle
reads and the point-read dispatch are wired separately during the runtime flip.
2026-11-08 08:57:24 -08:00
Brennan Benson fb218275cc refactor: share exact current item persistence 2026-11-08 08:53:24 -08:00
Brennan Benson 52f547dde0 refactor: route text snapshots through direct message commands 2026-11-08 08:42:33 -08:00
Brennan Benson 582754d86f refactor: project Stop notes in their writer transaction 2026-11-08 08:22:37 -08:00
Brennan Benson ac9c052d02 refactor: write current chat items once per revision 2026-11-08 08:06:00 -08:00
Brennan Benson 7f482fbd0a refactor: wire bounded retired chat maintenance 2026-11-08 07:54:43 -08:00
Brennan Benson ba5c193736 Merge bounded retired chat maintenance 2026-11-08 07:52:53 -08:00
Brennan Benson e704b1f5bd refactor: freeze the native chat schema and index visible names 2026-11-08 07:50:38 -08:00
Brennan Benson 83399f46ad fix: pack retired journal deletes by payload size 2026-11-08 07:48:46 -08:00
Brennan Benson 32d6482322 fix: bound retired journal cleanup work per chat 2026-11-08 07:44:07 -08:00
Brennan Benson 2e50bfe3ee Merge bounded chat history selection 2026-11-08 07:37:05 -08:00
Brennan Benson 1488df73ce fix: restart unfinished chat imports from the original store 2026-11-08 07:36:33 -08:00
Brennan Benson c8b8f16696 fix: select domain history by stored size before reading bodies
Backward, tail and hydrate pages now take each header's sent size and current
submission size from the bounded header query, admit whole sequence groups by
those sizes, and only then load the admitted bodies and submissions. An
oversized lone group becomes placeholders without decoding its bodies. Forward
pages pick the longest event prefix whose touched rows fit by the same sizes
before the existing replay builder reads current rows. The roster finds each
unnamed subagent's earliest visible naming row through one indexed lookup per
id instead of scanning every naming row.

The sent-size column and the subagent-name relation are a new migration body
for the central migration list; item writers call the bounds write after each
upsert.
2026-11-08 07:31:25 -08:00
Brennan Benson 010bc1aaf8 perf: request chat checkpoints only at frame pressure 2026-11-08 07:29:15 -08:00
Brennan Benson 8c13d01790 refactor: initialize the chat store from profile metadata only 2026-11-08 07:22:47 -08:00
Brennan Benson 3ba1a9fbd3 refactor: integrate bounded journal maintenance 2026-11-08 07:07:41 -08:00
Brennan Benson 48c06a33ab Merge bounded domain maintenance 2026-11-08 07:05:54 -08:00
Brennan Benson 282836c6f9 fix: use the common journal WAL size target 2026-11-08 07:05:11 -08:00