store-conformance-suite: the Store contract's executable form #47

Merged
xavier merged 1 commit from feat/store-conformance-suite into dev 2026-11-13 17:34:35 +01:00
Owner

A new engine-agnostic package, internal/storeconformance: the clause
catalog runs as subtests against any Store engine through a Harness
alone (Fresh/Alike/Interfere). Every mutating method's precondition is
proved in its direct form and in its mid-transaction race form — the
commit-time re-check, not a stage-time accident — plus the reads'
sentinel/empty/order catalog, the Recode rename seam with both
endpoints re-verified at apply, and the transaction mechanics. All 73
clauses pass against filestore (TestFilestoreStoreConformance); the
engine's dialect lives only in its harness — filestore's interference
is raw disk writes beneath the held project lock, the competing writer
the re-checks exist for. Existing filestore tests untouched — no lost
pins, no behavior change. items/put-upserts pins today's upsert
contract and is the documented fold-in point for «create-uniqueness at
the store» (docs/specs/server-mode.md) — the ADR is pending, the race
machinery ready; the clause rewrites when it lands (server-store-
engine's first motion otherwise).

Co-Authored-By: Xavier's assistant assistant@gijoe88.com

A new engine-agnostic package, internal/storeconformance: the clause catalog runs as subtests against any Store engine through a Harness alone (Fresh/Alike/Interfere). Every mutating method's precondition is proved in its direct form and in its mid-transaction race form — the commit-time re-check, not a stage-time accident — plus the reads' sentinel/empty/order catalog, the Recode rename seam with both endpoints re-verified at apply, and the transaction mechanics. All 73 clauses pass against filestore (TestFilestoreStoreConformance); the engine's dialect lives only in its harness — filestore's interference is raw disk writes beneath the held project lock, the competing writer the re-checks exist for. Existing filestore tests untouched — no lost pins, no behavior change. items/put-upserts pins today's upsert contract and is the documented fold-in point for «create-uniqueness at the store» (docs/specs/server-mode.md) — the ADR is pending, the race machinery ready; the clause rewrites when it lands (server-store- engine's first motion otherwise). Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
store-conformance-suite: the Store contract's executable form
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 5s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m12s
/ build linux/amd64 (pull_request) Successful in 42s
/ build darwin/amd64 (pull_request) Successful in 42s
/ build darwin/arm64 (pull_request) Successful in 45s
/ build windows/amd64 (pull_request) Successful in 45s
/ build windows/arm64 (pull_request) Successful in 37s
/ build linux/arm64 (pull_request) Successful in 38s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
2dc91dc8d9
A new engine-agnostic package, internal/storeconformance: the clause
catalog runs as subtests against any Store engine through a Harness
alone (Fresh/Alike/Interfere). Every mutating method's precondition is
proved in its direct form and in its mid-transaction race form — the
commit-time re-check, not a stage-time accident — plus the reads'
sentinel/empty/order catalog, the Recode rename seam with both
endpoints re-verified at apply, and the transaction mechanics. All 73
clauses pass against filestore (TestFilestoreStoreConformance); the
engine's dialect lives only in its harness — filestore's interference
is raw disk writes beneath the held project lock, the competing writer
the re-checks exist for. Existing filestore tests untouched — no lost
pins, no behavior change. items/put-upserts pins today's upsert
contract and is the documented fold-in point for «create-uniqueness at
the store» (docs/specs/server-mode.md) — the ADR is pending, the race
machinery ready; the clause rewrites when it lands (server-store-
engine's first motion otherwise).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
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!47
No description provided.