Repository navigation
v1.0.1 — Security: manifest rollback anchor + full scope-subset validation
Closes the two architecturally-deferred findings from the 2026-05 Codex security audit.
v1.0.0 had quick fixes for H2 (path traversal) + H3 (expiry bound) + H4 + M1 + L1 + L2. v1.0.1 adds the deeper-required code for the remaining two:
Patches
- H1 — manifest rollback / truncation detection. New
state.manifest_anchortable (migration v3) holding{count, last_sig}per bucket. The puller validates every manifest pull against the anchor — truncation (loaded count < anchor count) and fork (chain diverges at anchor point) both fail closed. First-load is TOFU +slog.Info. - H3 (full) — capability scope-subset validation.
validateRefreshedCapabilitynow decodes both current and refreshed macaroons viafabric-sdk-go/grant.Parseand enforces: issuer unchanged, primitive unchanged, namespace unchanged, operations ⊆ current. Narrowed scope is accepted; widening is rejected.
Test coverage
- 4 new puller tests (TOFU, accept-extension, reject-truncation, reject-fork)
- 2 new state tests (anchor round-trip + clock override)
- 6 new refresh tests (each scope rejection + a narrowed-acceptance test)
- All v1.0.0 tests still green
Audit close-out
After this release: no outstanding audit items on crate-agent. The Codex audit's H1, H2, H3 (partial + full), H4, M1, L1, L2 findings are all patched.
Binaries
Built from 98e4d91 with make all VERSION=v1.0.1. SHA-256 checksums alongside each binary.
darwin-amd64 f20af3ef7890fc5d0479f820461311738b89775b4ce8aa3d903b0d87d53c0a3d
darwin-arm64 ceada9cf9959e210fbaf8dc76d2721e534af96a8ccab48180eac26936dba544f
linux-amd64 d84b7d7e137a4c19fcf5d626ea2a464df0924636a77de78a04379c74adb25de4
linux-arm64 5319bf5c56e7804b4d6f34d43e5bc391219b742d2ab8e8974367915739644cb9
Upgrading from v1.0.0
- macOS / Linux:
curl -L https://github.com/NakliTechie/crate-agent/releases/latest/download/crate-agent-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed s/x86_64/amd64/) -o /usr/local/bin/crate-agent && chmod +x /usr/local/bin/crate-agent - Restart the daemon (
launchctl kickstarton macOS /systemctl restarton Linux). The new state.db migration v3 runs automatically on first start; the anchor TOFUs on the next manifest pull. No config changes required. - Browser side (crate v1.0.1) gets the matching H2 patch — both sides land together.
Full changelog: CHANGELOG.md