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:
parent
7b7d12ea83
commit
36d1d2507d
6 changed files with 147 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue