Thing 2.0: state port values (StateValue, Record::State) and thing-state's by-name decode #12

Merged
eureka merged 6 commits from hands/thing2-state-port into main 2026-11-28 02:05:01 +00:00
Owner

thing-core gains StateValue (a closed named value tree), member() and Record::State { schema, value }; its normal deps stay exactly thing-contract and stacker, with no MessagePack reading in core (thing2:ruling:provider-state-named-value). The new crate thing-state owns the one decode of a provider record by its catalog member names (nested records positional per thing2:ruling:nested-members-positional-for-now; a members-[] store refuses with NoMembers). A provider's record type must equal its schema id; put_state refuses otherwise. MemState holds provider state.

Spec thing2:cut_spec:cut-state-port.r1; reports h1, h2; Soul s1, s2 (s2 holds). 176 tests; 22/23 mutants, one equivalent. Rust-only: Thing CI runs TS packages; evidence is the Yggdrasil runs.

🤖 Generated with Claude Code

thing-core gains StateValue (a closed named value tree), member() and Record::State { schema, value }; its normal deps stay exactly thing-contract and stacker, with no MessagePack reading in core (`thing2:ruling:provider-state-named-value`). The new crate thing-state owns the one decode of a provider record by its catalog member names (nested records positional per `thing2:ruling:nested-members-positional-for-now`; a members-[] store refuses with NoMembers). A provider's record type must equal its schema id; put_state refuses otherwise. MemState holds provider state. Spec `thing2:cut_spec:cut-state-port.r1`; reports h1, h2; Soul s1, s2 (s2 holds). 176 tests; 22/23 mutants, one equivalent. Rust-only: Thing CI runs TS packages; evidence is the Yggdrasil runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
eureka merged commit 491fc2020f into main 2026-11-28 02:05:01 +00:00
eureka deleted branch hands/thing2-state-port 2026-11-28 02:05:01 +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!12
No description provided.