Thing 2.0 cut 12a: RecordStore in thing-state; MemState becomes its test front #28

Merged
eureka merged 1 commit from hands/thing2-mesh-store into main 2026-11-29 06:41:38 +00:00
Owner

Cut thing2:cut_spec:cut-thing-mesh-store.r1. The records, refusals, interests and change queue of a StatePort implementation move from MemState into thing_state::RecordStore (admit_contract with an accept hook, admit_state, admit_value, refuse, remove, purge, keys, interests, and impl StatePort), so thing-mesh can use the same store without depending on thing-testkit. MemState keeps its public surface and delegates; put now encodes then admits through the one door. StatePort::list now states the one-provider-and-schema, refusals-included, key-order rule (absorbs thing2:follow_up:state-port-list-contract-on-trait).

No behaviour change: the existing thing-core, thing-testkit and thing-tui tests and goldens are unedited and pass (457 workspace tests green). Mutants over the range: 68 tested, 57 caught, 11 unviable, 0 survived.

🤖 Generated with Claude Code

Cut `thing2:cut_spec:cut-thing-mesh-store.r1`. The records, refusals, interests and change queue of a StatePort implementation move from `MemState` into `thing_state::RecordStore` (admit_contract with an `accept` hook, admit_state, admit_value, refuse, remove, purge, keys, interests, and `impl StatePort`), so thing-mesh can use the same store without depending on thing-testkit. `MemState` keeps its public surface and delegates; `put` now encodes then admits through the one door. `StatePort::list` now states the one-provider-and-schema, refusals-included, key-order rule (absorbs `thing2:follow_up:state-port-list-contract-on-trait`). No behaviour change: the existing thing-core, thing-testkit and thing-tui tests and goldens are unedited and pass (457 workspace tests green). Mutants over the range: 68 tested, 57 caught, 11 unviable, 0 survived. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Thing 2.0 cut 12a: RecordStore in thing-state; MemState becomes its test front
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 4m8s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 5m37s
19da7f9f0d
The records, refusals, interests and change queue of a StatePort
implementation move out of MemState into thing_state::RecordStore, so
thing-mesh can use the same store without depending on thing-testkit.
MemState keeps its public surface and delegates; no existing test is
edited. RecordStore gains accept (a transport's post-decode refusal),
refuse, purge, keys and interests. StatePort::list now states that it
returns one provider and schema only, refusals included, in key order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 6fe8c58cba into main 2026-11-29 06:41:38 +00:00
eureka deleted branch hands/thing2-mesh-store 2026-11-29 06:41:38 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
GameCult/Thing!28
No description provided.