Verify events were appended
You ran a command — or a whole workflow — and you want to confirm it actually wrote the events you expected. Maybe a read model didn’t update and you’re isolating whether the problem is the write or the projection. The CLI reads straight from the event log, so you can check the source of truth directly.
1. Check the tail moved
Section titled “1. Check the tail moved”The tail is the sequence number of the last appended event. Capture it before and after an action to confirm something was written:
cratis chronicle events tail --output plainFor a specific event source — say the account you just acted on:
cratis chronicle events tail --event-source-id "account-42"2. Read the events
Section titled “2. Read the events”List the events for that event source and eyeball what landed:
cratis chronicle events get --event-source-id "account-42"Filter to the event type you expected, and get the full document as JSON to inspect its content:
cratis chronicle events get --event-source-id "account-42" --event-type AccountOpened --output jsonIf the event you expected isn’t there, the problem is on the write side — the command didn’t append it (a validation failure, a constraint, an unhandled path). If it is there but a read model is wrong, the problem is on the read side — see Find and fix a stuck observer.
3. Audit a range
Section titled “3. Audit a range”For a compliance check or a wider audit, read a range of the log and export it:
cratis chronicle events get --from 0 --to 500 --output json > audit.jsonUse --output plain instead when you’re scanning in the terminal — it’s far smaller because it omits
metadata and schema details.
Done when
Section titled “Done when”You’ve confirmed the expected events exist (or proven they don’t) for the event source in question, and you know which side of the loop — write or read — to look at next.