Commit graph

11 commits

Author SHA1 Message Date
Claude
1aed594690
refactor(cache): AX compliance pass 1
Remove banned encoding/json import; Entry.Data is now string using
core.JSONMarshal/JSONMarshalString. Rename ds→separator, cwd→workingDirectory
throughout. Add missing Good/Bad/Ugly tests for all public functions (29 tests,
all pass).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 12:05:02 +01: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
529e60f3ff fix(cache): preserve raw JSON payload in entries
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-29 23:46:45 +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
Claude
29ec99df12
feat: upgrade to core v0.8.0-alpha.1, replace errors.Is with core.Is
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: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 13:33:54 +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
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
32ede3b495 security: prevent path traversal in cache key resolution
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:28:55 +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