feat/unify-strict-codec #54

Merged
xavier merged 3 commits from feat/unify-strict-codec into dev 2026-11-16 16:43:17 +01:00
Owner
No description provided.
filestore's codec gains the naming-free DecodeStrict core (closed shape,
one JSON value, no trailing data — plain errors describing the
violation); UnmarshalStrict becomes its file-naming wrapper. The
canonical codec now has one strict read half beside its canonical
writer, and the naming (file, bucket key, record) stays each consumer's
corruption type's decision. Message output through the wrapper is
byte-identical to before.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
The three local unmarshalStrict copies die; each consumer now wraps
filestore.DecodeStrict in its own corruption type — registry names
record+key, machineregistry record+digest, boltstore bucket+key via
corruptKey. Every corruption message is byte-identical to before (the
named facts file+key do not regress; the per-package CorruptError
shapes stay). tokenstore already rode filestore.UnmarshalStrict;
auditlog is write-only (MarshalCanonical, no decode). No new import
edges: every consumer already imported filestore. Zero test files
touched — the compat pins and the full conformance suite pass
unchanged.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
unify-strict-codec: corruption-form probes — exact message pins per store
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 6s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m40s
/ build darwin/arm64 (pull_request) Successful in 1m6s
/ build windows/amd64 (pull_request) Successful in 1m9s
/ build linux/amd64 (pull_request) Successful in 1m14s
/ build darwin/amd64 (pull_request) Successful in 1m17s
/ build linux/arm64 (pull_request) Successful in 1m1s
/ build windows/arm64 (pull_request) Successful in 1m0s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
71e3fed15f
The refactor claims zero corruption-message deltas; the existing pins stop at Contains-level and machineregistry had none. These pin the documented full sentences byte-for-byte: filestore '<path>: corrupt skuld file — <err>' (and the core's plain errors), registry 'record "<key>":', machineregistry 'record <hex>:' (previously unpinned), boltstore '<bucket>/<key>: corrupt skuld key —'. Typed *CorruptError shapes asserted per package; healthy canonical round-trips through each consumer.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
xavier deleted branch feat/unify-strict-codec 2026-11-16 16:43:17 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
assistant/skuld!54
No description provided.