Commit graph Thing/crates/thing-contract
Author SHA1 Message Date
Meta Vens
86a0f891f2 thing-contract test: pin Count::get on a nonzero value (cargo-mutants survivor); drop the self-defeating old-prefix assertion
Builds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:35:54 +02:00
Meta Vens
b62eb5d6f4 thing-contract goldens: re-blessed surface-all-arms (TextInput with InputKind::Text) and surface.cc (thing:asset_catalog: key prefix); five domain refusal goldens added
Written by the production encode path (THING_BLESS=1, goldens_match). No other golden changed. Builds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:26:22 +02:00
Meta Vens
f2ab72d84d thing-contract: each field's type owns its domain (Seq, Version, Count, Segment), injective record keys, domain refusal cases, per-field privacy doctests
Seq, Version, Count and Segment check their domain in new, and their Deserialize calls new, so the constructors and every decode door hold one rule. Record keys take Segment so they split at the last dot; the asset key prefix is thing:asset_catalog:. result-missing-slot is dropped (CultLib's rule). Goldens are re-blessed in the next commit; this commit's goldens_match fails until then.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:21:52 +02:00
Meta Vens
649844aa59 thing-contract goldens: README names each case and its expected decode
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:53:23 +02:00
Meta Vens
1444e0c4f7 thing-contract: blessed goldens (surface with all 13 arms, composition, invocation, one result per outcome and effect arm, asset catalog, surface.cc, refusal and tolerance payloads); the 64-deep chain runs on a 16 MiB thread
Blessed on Yggdrasil (Linux, debug). deep_tree's decode overflows a 2 MiB stack at depth 32.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:52:44 +02:00
Meta Vens
c3991ec1e8 thing-contract: depend on serde_bytes (the CultSlots bytes slot expands to it); goldens are never text-converted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:12:42 +02:00
Meta Vens
896a6a1c83 thing-contract tests: goldens harness (bless or compare), refusal cases, deep tree, result constructors (goldens not yet blessed; the goldens test fails at this commit)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:03:19 +02:00
Meta Vens
852c34b60a thing-contract: the gamecult.thing.* kinds as CultCache entries and unions (first commit, build not yet verified)
Does not build-verified at this commit; tests follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 03:51:58 +02:00