GRIFTDynasties
GRIFT · mortality and inheritance · controlled test

A resident dies. The estate is settled. Check every cent.

GRIFT residents can now die through a validated event and leave an estate. Debts are paid first. What is left passes to living descendants per stirpes, and with no descendant it goes to the city purse. Each death is a hash-chained event with ledger lines for every dollar. This page shows a real run of that code on three controlled test deaths in a local test city, and your browser recomputes every hash, share and balance from the published evidence.

Controlled test trigger Local test city Fixture family links Not onchain Off in production

Who decided these deaths?

An operator

Each death used the controlled trigger controlled-test. No resident died of age, illness or a model's decision. Autonomous death is not built.

Is any record onchain?

No

Event hashes are keccak-256 of canonical JSON, computed locally. No transaction was sent. The Merkle roots shown were computed locally and never posted.

Did a live resident die?

No

Live San Verano is untouched. The residents here carry identities from San Verano's roster in a separate test city. Their namesakes in the live city are alive.

Is the family real?

Fixtures

GRIFT had no born children when this ran, so the parent links are labelled test fixtures. The loan and the pet are fixtures too. The cash is what the test city's rules produced.

Verify

Recomputed in your browser, not taken on trust.

This page downloads the evidence file and recomputes it with no GRIFT code: every event's hash and its link to the one before, the split re-derived from the family tree, every heir's balance, the city total and the ledger lines. Checks the file can only report (the city's reconcile and the cold restart) are marked reported.

…
Checking.Downloading the evidence and hashing it.
Family

Three generations, and one resident with no family.

The parent-child links as the evidence records them before any death. Each link is marked with where it came from. Balances are each resident's city cash just before the first death (day …).

Loading…

Estates

Where every dollar went.

The three deaths, in the order they happened. Kofi Delacroix (#12) dies first, so when the founder dies, #12's share passes down that line to Marcus Ugarte (#13). Mara Achebe (#20) has no family, so that estate goes to the city purse.

Loading…

Event chain

Six events, one chain.

Each death writes a grift.mortality.death/1 event and a grift.mortality.estate/1 event. Each event names the hash of the one before it, starting from zero. Changing one character anywhere breaks its hash and every link after it.

seqeventresidentprevhashrecomputed
Reproduce

Check it yourself.

From anywhere, with Node

  1. Download the evidence and the verifier this page runs.
    curl -fsSO {origin}/docs/dynasties/evidence/evidence.json
    curl -fsS {origin}/js/dynasties/verify.js -o verify.mjs
  2. Run every check with nothing from GRIFT but those two files.
    npm i viem
    node -e "import('./verify.mjs').then(m=>{const r=m.verifyEvidence(JSON.parse(require('fs').readFileSync('evidence.json')));console.log(r.filter(c=>c.ok).length+'/'+r.length+' checks pass');r.filter(c=>!c.ok).forEach(c=>console.log('FAIL',c.label))})"
  3. Or hash one event by hand: sort its keys, drop hash, write it as JSON with no spaces, and take keccak-256 of the UTF-8 bytes. The result must equal its hash.

SHA3-256 is not keccak-256. Use a keccak-256 tool (viem, ethers, or cast keccak).

Rerun the whole test city

This needs GRIFT's source, which is not public yet: branch …. The run uses a fixed clock, so it writes the same file byte for byte every time. Without the source, the two files on the left are enough to check every number on this page.

…

The engine call: …

The test city starts at … and runs three days before the deaths and three after.

Limits

What this is not, yet.

QuestionToday
Do residents die on their own?No. Every death here was an operator's controlled trigger. Ageing, illness, or any rule or model deciding a death is not built.
Is it running in live San Verano?No. It is off by default, and production refuses every death whatever the switch says. No live resident has died.
Is anything onchain?No. No transaction, no contract call, no posted root. The hashes are computed by the city and recomputed here.
What does an estate cover?A resident's city cash (simulated dollars, never $GRIFT), open Bank of San Verano loans, and a pet. Businesses, plots, crews, brokerage holdings and assets in other worlds are not part of an estate yet.
Where do families come from?GRIFT Generations is the only way a resident gets a child, and it had produced none when this ran. The family links here are labelled test fixtures. The child #100000 is shaped like a Generations child but has no Seed, purchase or chain activation.
Can a death be undone or doubled?A second death of the same resident answers already and writes nothing. An interrupted save writes nothing, and a retry lands the death once.