feat/transition-evidence #44

Merged
xavier merged 6 commits from feat/transition-evidence into dev 2026-11-11 08:51:01 +01:00
Owner
No description provided.
Receipt mirrors Comment (ULID identity, plain-string pointer — the TagRef reasoning, reader ungated). GuardEvidence maps the ONE shared ValidTagRef predicate to E_EVIDENCE on every pointer-writing path; GuardReceiptAuthor reuses E_NOT_AUTHOR under the comment discipline. Catalogue extended consciously (ADR-006).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
ReceiptRepo rides the Store/Tx ports (the comment shape: List/Append/Update/Delete, absence and presence preconditions). Filestore: receiptsDir/receiptFile layout, receiptJSON schema (id/status/pointer/author/created_at), marshal + loud parse — status and author re-validated, the pointer loaded verbatim, the floor staying write-path-only. Store-level repo read-only; test doubles extended (fakes, claims/comments absentReceipts, read-surface profiler).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
AttachReceipt (post-hoc, evidences the item's current status, dated at the attach moment), CorrectReceipt (pointer alone; id/status/author/moment never move), DeleteReceipt (hard) — existence and authorship checked before staging, GuardReceiptAuthor reusing E_NOT_AUTHOR; the floor rides attach and correction before the Tx opens. SetItem gains clock+ids and --evidence: the receipt appends in the same Tx as the item fact (the two-file write-set shape), evidencing the write's target; pointer without status rejects E_EVIDENCE; a floor failure aborts the whole carrying write. Use-case tests against a self-contained double (the comments_fakes precedent).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
ItemFacts gains the receipt count (snapshot loads per-item counts; retryFacts' bounded recompute adds the item's own receipts directory — the read-surface pin updated consciously; creation stays zero-read, receiptless by theorem). render.ItemRecord grows additive receipts (0 = receiptless) on every item record; release members carry it too; the human list grows the REC column. item show carries the full log under receipt_log — deliberately not 'receipts', which is the count's name and would be shadowed by a same-keyed collection. CLI: item set --evidence (Changed-gated, the publish --tag house pattern) and the item evidence {attach|set|rm} family. Golden-byte re-pins everywhere the record lands.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
E2E through the real boot path: the spec's four scenario pins (done-with-pointer, done→reopened→done with three receipts in order, claim/unclaim receipt-freedom, post-hoc moment never backdated), the floor at both entry points aborting the whole carrying write, the no-status rejection, author-only correction/deletion with E_NOT_AUTHOR/E_NO_RECEIPT, the receipts marker on list rows, release-member counts, the pre-floor reader-ungated pin, machine+human forms. Filestore: canonical receipt bytes + ULID order, append/update/delete preconditions, the pre-floor pointer parse twin of the tag-ref reader pin. Merge matrix: the six receipt rows (attach/attach, same-target status writes with different pointers, status-write-with-pointer vs comment, correct/correct conflict, correct/delete modify-delete, delete-item strands receipts dir loud on read).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
transition-evidence: test floor boundary runes, ready-list count, store-untouched abort pin, correction floor + author-gate bypass probes
Some checks failed
/ test (linux/amd64, full suite) (pull_request) Failing after 0s
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Failing after 0s
/ build darwin/amd64 (pull_request) Has been skipped
/ build linux/amd64 (pull_request) Has been skipped
/ build windows/amd64 (pull_request) Has been skipped
/ build darwin/arm64 (pull_request) Has been skipped
/ build linux/arm64 (pull_request) Has been skipped
/ build windows/arm64 (pull_request) Has been skipped
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
eb202d9e36
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!44
No description provided.