Thing 2.0 cut 2: thing-core state port and thing-testkit (testkit-ports) #7

Merged
eureka merged 10 commits from hands/thing2-testkit-ports into main 2026-11-27 20:29:51 +00:00
Owner

thing-core starts with the StatePort and its value types (synchronous; subscriptions are a drained queue; reads route by provider). thing-testkit holds MemState, the one bless path (THING_BLESS=1 through golden::check), store helpers, the fixture loader (fixtures open from a unique temp copy, never in place) and fixtures f01, f09, f10. The contract tests' builders and bless helpers move into testkit; every golden is byte-identical.

Spec thing2:cut_spec:cut-testkit-ports.r1; reports h1-h3; Soul s1-s3 hold (30 whole-workspace runs, zero failures). Thing's CI runs the TypeScript packages only; the Rust evidence is the Yggdrasil runs in the reports and verdicts. Provider state shape stays open (thing2:question:provider-state-value, blocks cut 4).

🤖 Generated with Claude Code

`thing-core` starts with the StatePort and its value types (synchronous; subscriptions are a drained queue; reads route by provider). `thing-testkit` holds MemState, the one bless path (`THING_BLESS=1` through `golden::check`), store helpers, the fixture loader (fixtures open from a unique temp copy, never in place) and fixtures f01, f09, f10. The contract tests' builders and bless helpers move into testkit; every golden is byte-identical. Spec `thing2:cut_spec:cut-testkit-ports.r1`; reports h1-h3; Soul s1-s3 hold (30 whole-workspace runs, zero failures). Thing's CI runs the TypeScript packages only; the Rust evidence is the Yggdrasil runs in the reports and verdicts. Provider state shape stays open (`thing2:question:provider-state-value`, blocks cut 4). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The contract tests' builders (tests/common), golden_bytes/blessing and the
pinned-clock store helpers become thing_testkit::{build, golden, store}; the
contract tests link them as a dev-dependency. No golden byte changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
StatePort reads, lists, subscribes and drains queued changes and has no
writer; a refusal is Lookup::Refused / Change::Refused, never absence.
MemState is the CultCache-backed fake with a call log; the Fixture enum builds
f01, f09 and f10 and loads their frozen stores.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
thing-testkit: each fixture open has its own temp directory; the read-only test restores permissions on drop
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 3m45s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 2m47s
e0ed7e9a1d
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eureka merged commit d052428094 into main 2026-11-27 20:29:51 +00:00
eureka deleted branch hands/thing2-testkit-ports 2026-11-27 20:29:51 +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!7
No description provided.