Commit graph

81 commits

Author SHA1 Message Date
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
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
2a28b5a71b feat(store): add closed-state accessor
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:32:55 +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
Virgil
e1cb275578 fix(store): preserve orphan files for recovery
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 08:12:29 +00:00
Virgil
1c92e47b24 fix(store): cache orphan workspaces during startup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 07:57:24 +00:00
Virgil
828b55960b refactor(store): clarify constructor naming and docs
Prefer struct-literal configuration in package docs and rename internal constructor helpers for clarity.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:54:19 +00:00
Virgil
ee984818d2 feat(store): expose active configuration
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:45:44 +00:00
Virgil
799d79d4e2 docs(store): clarify pagination and orphan scan wording
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:41:20 +00:00
Virgil
bf7b616fe1 feat(store): add paginated group reads
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:32:35 +00:00
Virgil
013a72753b fix(store): scan workspace orphans at startup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:27:52 +00:00
Virgil
5af3f90e2d fix(workspace): leave orphaned workspaces recoverable
Stop New() from eagerly discarding orphaned workspace files so callers can recover them explicitly through RecoverOrphans().

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:23:31 +00:00
Virgil
757e973097 feat(workspace): restore startup orphan cleanup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:15:01 +00:00
Virgil
4c33a53b67 refactor(store): remove no-op startup orphan scan
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:02:53 +00:00
Virgil
a2294650b4 feat(workspace): restore startup orphan scan
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:53:20 +00:00
Virgil
66d05a1822 refactor(store): remove no-op startup orphan scan
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:40:19 +00:00
Virgil
841e7b8936 fix(store): harden background purge interval
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:35:20 +00:00
Virgil
acad59664d fix(store): close watcher channels on shutdown
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:30:50 +00:00
Virgil
a9ab1fd2ee refactor(store): move options onto config
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:27:04 +00:00
Virgil
a2067baa5a feat(store): scan orphan workspaces on startup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:22:12 +00:00
Virgil
3a8cfcedf9 feat(store): add prefix cleanup helpers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:14:22 +00:00
Virgil
abf8fc20af refactor(workspace): keep orphan recovery explicit
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:04:33 +00:00
Virgil
406825917b refactor(store): tighten AX workspace naming
Align workspace and journal comments with the current contract while keeping the API stable.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:51:49 +00:00
Virgil
aad8dded6b feat(store): add declarative store config
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:47:39 +00:00
Virgil
bff79c31ca fix(store): add nil-safe guards
Add nil/closed checks across the store, scoped store, workspace, journal, event, and compact entry points so agent callers get wrapped errors instead of panics.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:31:35 +00:00
Virgil
a2adbf7ba6 refactor(store): tighten AX doc comments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:23:51 +00:00
Virgil
fd3266306a feat(store): expose journal configuration snapshot
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:15:45 +00:00
Virgil
12809c8d64 refactor(store): clarify journal configuration names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:11:38 +00:00
Virgil
f4492b1861 feat(store): surface journal configuration on store
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:08:16 +00:00
Virgil
4e8f0a0016 refactor(store): clarify workspace and archive naming
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:01:00 +00:00
Virgil
0c1b51413f feat(store): broaden journal query handling
Improve Flux measurement parsing, make orphan cleanup flow explicit, and align the CLAUDE watch example with the current API.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:53:56 +00:00
Virgil
bbbcb1becf docs(store): restore AX usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:49:31 +00:00
Virgil
619e82a459 refactor(store): rename slice helper for clarity
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:40:53 +00:00
Virgil
b6b29b50ce feat(store): add configurable purge interval
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:35:22 +00:00
Virgil
294a998282 refactor(store): rename journal config fields
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:28:57 +00:00
Virgil
0accc6e85e feat(store): clean up orphaned workspaces on startup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:18:05 +00:00
Virgil
387d1463fb feat(store): add RFC-scoped helpers and callbacks
Add the RFC-named scoped helpers, AllSeq iteration, and group-filtered change callbacks.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:13:46 +00:00
Virgil
016e2c3777 refactor(store): remove legacy alias entry points
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:05:53 +00:00
Virgil
d7f03d5db0 fix(store): make Close idempotent
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:00:56 +00:00
Virgil
5c7e243fc0 feat(store): align public API with RFC
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 04:44:45 +00:00
Virgil
4c44cfa336 fix(store): harden RFC journal and workspace flows
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 21:07:30 +00:00
Virgil
d9fad2d6be feat(store): implement RFC workspace and journal surfaces
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 20:46:43 +00:00
Virgil
134853e6df fix(store): tighten scoped purge and delete events
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 20:03:19 +00:00
Virgil
9cd7b9b1a7 fix(store): stabilise AX iteration behaviour
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:39:54 +00:00
Virgil
a0ee621ba4 refactor(store): align AX terminology in docs and comments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:18:20 +00:00
Virgil
05410a9498 refactor(store): clarify public AX surface
Add descriptive public type comments and rename watcher pattern fields so the package reads more directly for agent consumers.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:06:00 +00:00
Virgil
c54dfd7a96 refactor(store): use descriptive event registration identifiers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:00:51 +00:00
Virgil
4edd7dd0ca refactor(store): align AX examples and terminology
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 18:49:17 +00:00
Virgil
23f207db3f refactor(store): tighten AX naming and error contexts
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 18:37:07 +00:00
Virgil
2eedf1e937 refactor(store): tighten AX naming and examples
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m41s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 18:17:07 +00:00