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.
| seq | t | step | kind | name | fields… | id | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | grid | world | 256 | 256 | #fe54e09e0416cf75 | ||||||
| 1 | 0 | 0 | create | source | 10 | 20 | 0 | default | energy | f64:100.0 | label | str:source | #334b8517bd7ae6e5 |
| 2 | 0 | 0 | create | target | 11 | 20 | 0 | default | energy | f64:0.0 | label | str:target | #f7ae8ecc7f69eafa |
| 3 | 1 | 1 | txn | transfer | source | energy | f64:90.0 | target | energy | f64: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.
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.