Commit graph

219 commits

Author SHA1 Message Date
Virgil
019a72d152 docs(store): clarify AX examples for options
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 13:25:19 +00:00
Virgil
168c94d525 refactor(scope): centralise namespace quota checks
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 13:16:24 +00:00
Virgil
772a78357c fix(store): avoid compact archive filename collisions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 13:10:33 +00:00
Virgil
85bef185e8 refactor(store): clone cached orphan slice
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 13:07:36 +00:00
Virgil
dd4c9a2585 refactor(store): clarify workspace summary prefix naming
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 12:13:08 +00:00
Virgil
f6a602f064 docs(store): improve agent-facing examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 12:08:14 +00:00
Virgil
11b23b99c0 docs(store): refine AX-oriented comments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 12:05:00 +00:00
Virgil
a2ddacb27b fix(store): wrap orphan cleanup errors
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 12:01:39 +00:00
Virgil
92db4b72ff docs(store): clarify shared journal flow
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:57:37 +00:00
Virgil
9450a293cf refactor(store): rename journal write helper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:54:03 +00:00
Virgil
ed51aa021d refactor(store): rename parent store fields
Use parentStore in the scoped and workspace wrappers so ownership reads more clearly for agents.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:47:49 +00:00
Virgil
3bd0ee531b refactor(store): align workspace naming with AX
Rename the workspace database field for clearer agent-facing semantics and improve one public usage example.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:43:54 +00:00
Virgil
a1ceea8eea refactor(store): clarify compact archive entry names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:40:29 +00:00
Virgil
2f23e8ef0d chore(store): clarify AX config guidance
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:37:06 +00:00
Virgil
c6c359e1c7 docs(store): add ax-oriented usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:33:32 +00:00
Virgil
57da334a1d docs(store): tighten AX API guidance
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:30:13 +00:00
Virgil
0ea38777d7 refactor(store): use descriptive configuration names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:26:16 +00:00
Virgil
2ff98991a1 fix(store): require explicit database path in config
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:22:50 +00:00
Virgil
edf9162c21 docs(store): clarify workspace query support
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:19:22 +00:00
Virgil
4031b6719f docs(ax): prefer declarative store configuration
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:13:36 +00:00
Virgil
38638268c7 refactor(transaction): use descriptive example names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:09:35 +00:00
Virgil
f2e456be46 refactor(store): clarify journal helper names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 11:05:48 +00:00
Virgil
6ba5701955 refactor(config): validate declarative store options
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:46:46 +00:00
Virgil
80bd9b59a4 docs(journal): sharpen query usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:40:37 +00:00
Virgil
aa83e59b69 fix(scope): enforce quotas in scoped transactions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:36:57 +00:00
Virgil
05c34585db refactor(store): clarify helper naming
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:33:25 +00:00
Virgil
4e6a97c119 docs(store): clarify declarative constructor guidance
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:29:56 +00:00
Virgil
089f80c087 refactor(store): clarify key-value terminology
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:25:34 +00:00
Virgil
21ce2938c8 refactor(workspace): clarify shared cleanup error context
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:23:00 +00:00
Virgil
7238871a3a refactor(scope): use groups helper for quota counting
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:17:28 +00:00
Virgil
7c59f9d011 fix(store): allow discard after workspace close
Make workspace cleanup idempotent so a closed workspace can still be discarded and removed from disk later. Also clarify the configuration comments for AX-oriented usage.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:13:27 +00:00
Virgil
9d6420d37f test(events): cover re-entrant callback subscriptions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:09:25 +00:00
Virgil
7874f6eda8 feat(scope): add scoped transaction wrapper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:03:41 +00:00
Virgil
4415c35846 fix(journal): stabilise journal ordering
Order journal queries and archive compaction by committed_at, entry_id so rows with identical timestamps are returned predictably.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:54:03 +00:00
Virgil
039260fcf6 test(ax): enforce exported field usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:48:02 +00:00
Virgil
09c78e13f4 fix(store): require complete journal configuration
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:43:27 +00:00
Virgil
50d368f1ae feat(scope): add declarative scoped constructor
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:34:54 +00:00
Virgil
4bd6b41d78 fix(workspace): preserve orphan aggregates during recovery
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:23:05 +00:00
Virgil
b10f4771bd fix(store): guarantee notification timestamps
Clarify the workspace comments and ensure notify always stamps events before dispatch.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:16:52 +00:00
Virgil
a3f49539f4 feat(store): add transaction read helpers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:09:12 +00:00
Virgil
37500c56ae refactor(store): clarify SQLite handle names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:04:56 +00:00
Virgil
4581c09631 fix(store): normalise default directory paths
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:01:23 +00:00
Virgil
a662498891 docs(ax): fix misleading store usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:57:06 +00:00
Virgil
e73d55d5ca refactor(store): rename transaction helper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:50:17 +00:00
Virgil
e55a8a8457 feat(store): add transaction api
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:46:59 +00:00
Virgil
cc8bebb8e0 refactor(store): clarify journal configuration and workspace errors
Add a declarative journal configuration check and wrap workspace database errors with package context.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:41:28 +00:00
Virgil
3742da144e fix(store): support Flux bucket filters in QueryJournal
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:36:42 +00:00
Virgil
2a28b5a71b feat(store): add closed-state accessor
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:32:55 +00:00
Virgil
28ea397282 fix(workspace): normalise orphan recovery paths
Handle the documented .core/state/ form the same as the default cache key and add a regression test for cached orphan recovery.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:28:07 +00:00
Virgil
5116662f41 feat(store): add database path accessor
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:23:23 +00:00