Commit graph

83 commits

Author SHA1 Message Date
Snider
345fa26062 feat(store): add Exists, GroupExists, and Workspace.Count methods
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Add public existence-check methods across all store layers (Store,
ScopedStore, StoreTransaction, ScopedStoreTransaction) so callers can
test key/group presence declaratively without Get+error-type checking.
Add Workspace.Count for total entry count. Full test coverage with
Good/Bad/Ugly naming, race-clean.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 08:58:26 +01:00
Virgil
72eff0d164 refactor: tighten store AX documentation
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 21:29:27 +00:00
Virgil
cdf3124a40 fix(store): make scoped store nil-safe
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 21:19:59 +00:00
Virgil
69452ef43f docs(ax): tighten usage examples
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 21:13:50 +00:00
Virgil
e1341ff2d5 refactor(store): align internal lifecycle naming with AX
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Use more descriptive private lifecycle, watcher, and orphan cache field names so the implementation reads more directly for agent consumers while preserving the exported API and behaviour.\n\nCo-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 21:09:20 +00:00
Virgil
fcb178fee1 feat(scope): expose scoped config snapshot
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:54:45 +00:00
Virgil
c8504ab708 docs(store): clarify declarative constructors
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Prefer the struct-literal constructors in package docs and namespace helpers.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:46:40 +00:00
Virgil
ea3f434082 feat: add scoped store watcher wrappers
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:34:25 +00:00
Virgil
466f4ba578 refactor: align workspace and scoped store names
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Use the repo's primary store noun for internal references so the implementation matches the RFC vocabulary more closely.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:11:54 +00:00
Virgil
fb39b74087 refactor(scope): centralise quota enforcement
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:07:33 +00:00
Virgil
1c004d4d8a refactor(store): remove redundant scoped quota constructor
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:03:22 +00:00
Virgil
4726b73ba6 feat(scope): restore scoped quota constructor
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 19:38:06 +00:00
Virgil
e5c63ee510 refactor(scope): remove redundant scoped quota constructor
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 19:34:32 +00:00
Virgil
4c6f2d6047 feat(scope): add scoped on-change helper
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 19:24:47 +00:00
Virgil
731a3ae333 fix(scope): make quota checks non-mutating
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 19:12:24 +00:00
Virgil
39fddb8043 refactor(scope): reuse shared prefix helper
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 18:42:19 +00:00
Virgil
00650fd51e feat(store): add transaction purge helpers
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 18:20:52 +00:00
Virgil
aa49cdab4e feat(scope): add scoped pagination helpers
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 17:53:21 +00:00
Virgil
ba997f7e6b docs(store): align public comments with AX
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 17:43:55 +00:00
Virgil
b20870178c refactor(store): unify scoped prefix helper naming
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Align the scoped helper name with the rest of the package and fix the RFC reference paths so the docs point at real local sources.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 16:47:13 +00:00
Virgil
9dc0b9bfcf refactor(scope): make scoped group access explicit
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 16:37:56 +00:00
Virgil
d682dcd5dc docs(scope): prefer explicit scoped examples
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 16:31:38 +00:00
Virgil
dfbdace985 feat: add scoped store transactions
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 16:09:14 +00:00
Virgil
1fb8295713 feat(store): add scoped store config constructor
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 16:06:43 +00:00
Virgil
cae3c32d51 refactor: add AX config validation helpers
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 15:47:56 +00:00
Virgil
b43eb4e57a docs(store): make public comments example-driven
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 14:23:29 +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
f6a602f064 docs(store): improve agent-facing examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 12:08:14 +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
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
6ba5701955 refactor(config): validate declarative store options
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:46:46 +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
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
7874f6eda8 feat(scope): add scoped transaction wrapper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 10:03:41 +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
50d368f1ae feat(scope): add declarative scoped constructor
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 09:34:54 +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
28b917cad6 refactor(scope): clarify watcher error contexts
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 09:02:04 +00:00
Virgil
214b024d12 refactor(scope): clarify scoped error contexts
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:58:15 +00:00
Virgil
7fa9843083 refactor(scope): clarify scoped store lookup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 08:36:40 +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
3a8cfcedf9 feat(store): add prefix cleanup helpers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:14:22 +00:00
Virgil
c12aba4145 feat(scope): support scoped wildcard watchers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 07:00:35 +00:00
Virgil
303b75444d feat(scope): add scoped event delegation
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:55:37 +00:00
Virgil
2d9c5b2b49 refactor(store): clarify backing store names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 06:35:23 +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
07500561fd docs(store): sharpen AX usage comments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 05:57:40 +00:00