aetherlight: pin the digest and genesis clauses, record a band draw in the golden, document host contracts

A stored digest flipped without re-sealing, and each genesis clause rewritten
and re-sealed on a lone genesis, are now refused by tests that only that clause
can satisfy. The golden session declares a two-band toss and uses it three
times, so band selection is pinned (golden.digests regenerated). The
BandPreimage doc no longer claims the payload cannot reach the draw; WorldId
byte-equality, and truncation or rollback of an export, are documented as host
contracts in the code and PROVENANCE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-20 03:06:59 +01:00
commit 36d1d2507d
6 changed files with 147 additions and 10 deletions

View file

@ -245,6 +245,9 @@ struct CreateWorld {
impl CreateWorld {
/// The creation is named by its own bytes: equal creations are one command.
/// Host contract: two byte-equal creations share a `WorldId` and every id
/// derived under it, so a host that wants distinct worlds salts each run or
/// profile into the creation (for example a run seed in the patch).
fn id(&self) -> CommandId {
let mut hasher = Sha256::new();
hasher.update(CREATE_DOMAIN);