BYTENAI

Event log

The event log

One row per committed change, tab-separated, with a content id in the last column. The sequence is unbroken from zero; that is what makes the file a log and not a list.

The log of the genesis run, exactly as smurf replay read it.
seqtstepkindnamefields…id
000gridworld256256#fe54e09e0416cf75
100createsource10200defaultenergyf64:100.0labelstr:source#334b8517bd7ae6e5
200createtarget11200defaultenergyf64:0.0labelstr:target#f7ae8ecc7f69eafa
311txntransfersourceenergyf64:90.0targetenergyf64:10.0#dd9f305939cd96aa

The page prints the row's own fields; it does not recompute the id. Recomputing it is the compiler's job, and the fuzzer's: format 40 mutation(s): 6 decoded and re-encoded byte for byte, 34 refused, 0 violation(s) format: 40 mutation(s) of one event — 6 still canonical, 34 refused, 0 with two spellings

A rewrite the decoder refuses

One field of the log was edited from source to SOURCE, and nothing else. The row's own checksum no longer matches, so replay stops at that line and exits non-zero. The transcript below is the compiler's, recorded by the same script as every other block.

$ smurf replay tampered.logexit 5
line 2: checksum mismatch (expected #cd01312bf9f0b8c8, found #334b8517bd7ae6e5)

Recorded by tools/smurf-fixtures.sh from smurf (../smurf); re-run that script and compare. The recording is 18654 bytes, sha256 d2977e431fde7e2c84d0c8d05aa8d2d8acb1fcc1ef794320b995b05b39bebf15.

What each row means

seq
The row number. It starts at zero and has no gaps; a gap means a row was removed.
kind
grid, create or txn. A refused transition produces no row at all.
id
A content id: a hash of the row's own fields. Change a field and the id no longer verifies.