Commit graph

7 commits

Author SHA1 Message Date
Cristina Poncela Cubeiro
ae1e410e37
fix: sqlite queries optimizations (#7727)
* fix: findEntriesOnBranch filters

* fix: branch entry membership index

* fix: get log limit, add test

* fix: record indexes

* fix: use facts index

* fix: composite desc index for cwd, created at
2026-08-07 07:24:00 +02:00
Armin Ronacher
055ecce080 feat(agent): add SQLite SQL template queries 2026-08-06 18:10:42 +02:00
Cristina Poncela Cubeiro
77f4840320
chore: qa2 tests (#7706)
* 1. rejects corrupt parent chains in array-backed readers

* 2. does not decode SQLite branch entries outside query bounds

* 3. validates SQLite entries before filtering and limiting branch results

* 4. does not validate SQLite ancestors beyond newest-first stop bounds

* 5. rejects repository operations and session writes after disposal

* 6. supports lexical ownership with await using

* 7. uses listing as a barrier between accepted session operations

* 8. waits for every accepted session operation during disposal

* 9. waits for accepted appends before disposal and rejects later writes

* 10. repository disposal closes its owned storage

* 11. stops branch traversal at retained-tail compaction

* docs: mark QA2 done
2026-08-06 11:24:09 +02:00
Cristina Poncela Cubeiro
2f550d827d
fix: project open operation id to lanes (#7654)
* fix: project open operation id to lanes

* delete: idx_lanes_session_leaf

* fix: split, over-defensive

* delete: unnecessary assertion
2026-08-05 16:57:41 +02:00
Christian Klotz
1022a9e824
fix(agent): list SQLite sessions without writer claims (#7655)
* fix(agent): list SQLite sessions without writer claims

* fix(agent): reject null SQLite session names
2026-08-05 13:25:37 +03:00
Vegard Stikbakke
591f22a618
feat(agent): add indexed harness recovery queries (#7646)
Implements R0 of the harness v2 plan, which adds RecordQuery.operationKind filtering and adds Session.findOpenOperations() for recovery purposes. The in-memory implementation keeps the open-operation projections in memory. SQLite implementation adds an index idx_records_session_lane_run_id_type.
2026-08-05 10:41:44 +02:00
Cristina Poncela Cubeiro
a80008b96c chore: rename storage package to session-backends 2026-08-05 09:28:44 +02:00