Commit graph

10 commits

Author SHA1 Message Date
Virgil
19232c5575 feat(cache): add batch eviction support
Some checks failed
CI / test (push) Failing after 3s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 0s
2026-04-01 09:46:02 +00:00
Virgil
248f542b08 fix(cache): pretty-print cache envelope
Some checks failed
CI / auto-fix (push) Failing after 0s
CI / test (push) Failing after 3s
CI / auto-merge (push) Failing after 0s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-01 05:20:29 +00:00
Virgil
fbf410e630 fix(cache): harden uninitialised cache state
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 1s
CI / auto-merge (push) Failing after 1s
2026-03-30 01:28:22 +00:00
Virgil
41150c0548 fix(cache): harden nil receiver handling
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 0s
2026-03-30 00:31:21 +00:00
Virgil
261a7ba950 Polish AX v0.8.0 cache package
Some checks failed
CI / test (push) Failing after 2s
CI / auto-fix (push) Failing after 0s
CI / auto-merge (push) Failing after 0s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-29 23:23:53 +00:00
Virgil
cabb7b1d0e fix(cache): resolve issue 4 findings 2026-03-23 07:35:31 +00:00
Snider
b36729e592 chore(cache): migrate to dappco.re vanity import path
Some checks failed
CI / test (pull_request) Failing after 2s
CI / auto-fix (pull_request) Failing after 0s
CI / auto-merge (pull_request) Failing after 0s
Update module path from forge.lthn.ai/core/go-cache to
dappco.re/go/core/cache. Update dependencies to dappco.re/go/core/io
v0.2.0 and dappco.re/go/core/log v0.1.0. Fix path traversal prefix
collision in Cache.Path() and update package doc comment.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 01:24:52 +00:00
Snider
0186ddc119 fix(docs,tests): fix stale coreerr example and add missing test coverage
- docs/architecture.md: replace fmt.Errorf with coreerr.E() to match actual implementation
- cache_test.go: add TestGitHubKeys for GitHubReposKey/GitHubRepoKey (was 0% coverage)
- cache_test.go: add TestPathTraversalRejected for Path() traversal guard

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 07:11:04 +00:00
Snider
a8fa63e7f1 fix(cache): replace fmt.Errorf and raw errors with coreerr.E(), standardise go-io import alias
- Add forge.lthn.ai/core/go-log as direct dependency (was indirect)
- Alias go-io import as coreio throughout cache.go and cache_test.go
- Replace all fmt.Errorf calls in Path() with coreerr.E()
- Wrap all raw error returns from stdlib/medium calls with coreerr.E()
- No interface implemented by Cache found; compile-time check skipped

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 18:19:50 +00:00
Snider
9f8cb6cd0e feat: extract cache package from core/go pkg/cache
File-based cache with TTL, JSON serialisation, go-io Medium backend.

Moved from forge.lthn.ai/core/go/pkg/cache to standalone module.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 13:03:52 +00:00