01 / Continuity
Know where the record breaks
Report the first inconsistent record and the intact prefix. A malformed input, a broken chain and an unavailable source require different responses.
RAGBAZ / river / Nostoi
Let the record outlive the system.
Tamper-evident audit chains for systems whose actions must remain open to examination. Nostoi verifies recorded history, identifies the first inconsistency, and supports checkpoints and signed statements beyond the producer's own account of events.
Active development · verifier, CLI and TUI in source; registry publication pending
The homecoming: a chain carried safely across the river.
01 / Continuity
Report the first inconsistent record and the intact prefix. A malformed input, a broken chain and an unavailable source require different responses.
02 / Portability
The digest is taken over canonical JSON. A Python program using only its standard library can append to and verify a Rust-written nostoi-v1 chain, and the test suite checks the two against each other in both directions.
03 / Custody
Compare the chain with a deliberately selected external checkpoint. Conflicting readable destinations fail verification; unavailable destinations are reported as reduced assurance.
The witness problem / Brief 01
Integrity, signer trust and external observation are useful precisely because they are not the same claim.
Read the verification brief01 Nostoi
An automated system can leave behind an immaculate account of events. The harder question is whether that account remained intact after a disputed action, a software change or a change of custody. Nostoi gives reviewers a concrete starting point: inspect the record, verify its structure, and compare it with a reference retained elsewhere.
Its Rust library, command-line tool and terminal interface verify, append, stream and browse audit chains. Each record commits to its own content and to the preceding digest. An inconsistent record at position 204, with positions 1–203 intact, is a finding a reviewer can investigate rather than a single unexplained verdict.
Νόστοι means the homecomings. The name recalls lost Greek epic accounts of journeys home; the project mark depicts the duckling carrying Gretel across the river in Hansel and Gretel. Two different stories, one guiding image: bring something worth preserving across a difficult boundary.
02 Nostoi
Nostoi reads the chains the RAGBAZ projects already keep. nostoi-v1 is its own format, used by Sylvae, by Frog and by anything new; it is a JSON Lines file or the append-only SQLite store. weftmark-ledger-v1 is WeftMark's ledger.jsonl. ephor-audit-v1 is Ephor's governance_events store, hashed over length-prefixed fields rather than canonical JSON. The format is detected; --format overrides it.
The nostoi-v1 record has a consecutive sequence number, a previous digest or sixty-four zeros, an RFC 3339 UTC instant, a required kind, optional actor and subject fields, and a JSON object body. Floating-point values are refused: decimal quantities belong in strings, and integer values must remain within the supported 64-bit range. The canonicalisation contract determines the exact bytes being hashed.
The Python standard-library reference can append and verify nostoi-v1 chains without a Rust build or a native extension. The Rust and Python implementations are checked against each other in both directions. JavaScript consumers must preserve large integer values as JSON text rather than silently rounding them through Number.
03 Nostoi
The SQLite store retains complete records beside their chain fields. While its schema and triggers remain intact, UPDATE and DELETE are refused, and each INSERT must extend the head with a digest that matches its record. Nostoi registers the required nostoi_digest function; ordinary clients can inspect the file without obtaining a privileged mutation path through the application.
These constraints catch accidental rewrites and application mistakes. They are not an independent witness against someone who controls the database file and can remove the triggers or replace the entire store. That stronger threat model calls for external checkpoints, separate custody and verification outside the producer's control.
Owned databases also declare independent schema revisions and component identities, and prepared requests and kernel payloads carry explicit format tags. nostoi schema PATH --json inspects that metadata without migrating anything, which matters when the question is what a file is rather than how to change it.
04 Nostoi
An internal check cannot detect a history that was recomputed in full, digests included. That is not a weakness of the hash function; it is what a hash function is for. Detecting it requires a head that was trusted before the rewrite and retained somewhere the rewriter cannot reach.
Replication is useful; administrative independence adds a different protection. Nostoi can publish the same checkpoint to several destinations with separate credentials. Verification checks a deliberately selected key: conflicting readable checkpoints are rejected, while an unreadable destination is explicitly reported as unavailable. A run can succeed with one usable destination, but its assurance then rests on that smaller set.
The durable outbox records the exact prepared request before upload and recovers it after a crash. Publishing and verification use different credential scopes. Retention also has to be examined separately: S3 Object Lock and an operator-configured R2 bucket lock are different mechanisms, and a retention field inside a document is not proof that storage enforces it.
05 Nostoi
Integrity, signer identity and independent observation answer three different questions, and a page that merges them is how provenance pages begin to lie. Did the recorded sequence change? Which key vouched for this statement, and is that key trusted for this purpose? When did somebody else observe it? A chain can answer the first and no part of the others.
Signed attestations address the second. nostoi attest signs a small document with ssh-keygen -Y sign, binding a statement to a head under a verification policy; verify-attestation fails closed on a bad signature, an unpinned key, or a chain that no longer matches. The signer's claimed time inside the statement is not the moment another party saw it. Keeping those apart is the entire discipline.
For the basic chain commands, exit 0 means intact, exit 1 means a broken chain or an append refused on that basis, and exit 2 means a usage or operational error. Anchor fan-out and attestation commands have their own documented outcomes. An intact chain is evidence of internal consistency, not proof that all relevant events were recorded.
06 Nostoi
nostoi-core contains the formats, canonical JSON, streaming verification and stores. nostoi-anchor owns remote checkpoints and durable upload intents. nostoi-kmsg handles Linux kernel-ring-buffer ingestion. The facade preserves existing nostoi:: paths while portable consumers can select the core without networking, command-line or Linux dependencies.
Native Python and WebAssembly-component bindings reuse that Rust verifier. Current interoperability documentation includes canonical attestation bytes and document-to-chain checks; cryptographic signature verification remains a separate host-side responsibility and is reported as unchecked by those bindings. Registry publication is still pending.
The distinction between a measured result and a general guarantee matters here. A documented three-trial, 250,000-record JSONL run used roughly 3.6 MiB peak resident memory after streaming integration. That is an observation under specified workload and host conditions—not a throughput promise for an operational kernel logger.
07 Nostoi
For researchers studying extreme events, the interesting question is not simply how often one service fails. It is which failures arrive together: a shared credential, a common administrator, one software defect, one region-wide outage. Three storage destinations do not justify multiplying three small probabilities unless the relevant independence assumptions have been examined.
Audit quality also affects the observations available for inference. A missing event may be an instrumentation gap, a lost record or a deliberate omission. A valid chain cannot distinguish those explanations by itself. Gaps, retention intervals and checkpoint cadence therefore belong in the analysis alongside verified records.
08 Nostoi
For an investigator examining an agent-mediated action, the useful questions include who authorised it, which system carried it out, which inputs and tools were involved, and what another reviewer can reconstruct. An actor field such as agent:demo is an attribution supplied by the producer. It helps organise the record; it does not authenticate the actor or expose a model's unrecorded reasoning.
For public oversight, ask for an evidence package rather than a reassuring dashboard: the chain and its format, the selected checkpoint and custody, the relevant signature checks, the retained interval, and the known omissions. These are concrete subjects for a procurement specification or an investigation. Legal admissibility, regulatory obligations and proportionality require their own assessment.
The ambition is durable scrutiny of consequential systems. Nostoi supplies one layer of that work: a record another person can check, with its assumptions and gaps still visible. It does not certify an AI system as safe, estimate catastrophic risk, or turn a technically intact history into a complete account of the world.
A cooperative workshop
Use one tool where it helps, or connect the whole workshop. People keep the purpose and judgment; the tools make the work easier to explain.
From intention to understanding
Identify the producer, the format and the purpose. A chain of events is not a chain of true claims. Decide what an intact record would license you to conclude, and write that down first.
nostoi verify accepts several paths at once and reports each. Zero is every chain intact; one is a break, or an append refused because the chain was already broken; two is anything else entirely.
Choose a checkpoint from custody you trust, record its position and digest, and keep it outside the producer's authority. Inspect disagreement and unavailable destinations separately.
Attach the checkpoint or the attestation to the wider evidence story. Keep signer trust, external observation and engineering readiness as three separate findings rather than one verdict.
Connect integrity to review →A small first step
Build the CLI, create two harmless records, then compare an intact history with a deliberately altered copy. The original remains available as a reference.
Rust and Python 3 are used below. The altered copy should produce exit 1. Registry publication is pending; production anchoring and signer policy require their own configuration.
git clone https://github.com/tabenius/nostoi.git
cd nostoi
cargo build --release --bin nostoi
./target/release/nostoi formats./target/release/nostoi append example.jsonl \
--kind example.start --actor 'you' --body '{"purpose":"learning"}'
./target/release/nostoi append example.jsonl \
--kind example.finish --actor 'you' --body '{"result":"recorded"}'
./target/release/nostoi verify example.jsonl
./target/release/nostoi head example.jsonlpython3 - <<'PY'
from pathlib import Path
import json
records = [json.loads(line) for line in Path('example.jsonl').read_text().splitlines()]
records[0]['body']['purpose'] = 'altered'
Path('altered.jsonl').write_text(''.join(json.dumps(record) + '\n' for record in records))
PY
./target/release/nostoi verify altered.jsonl
printf 'verification exit=%s\n' "$?"
# Expected: exit 1, identifying the first inconsistent record.Full installation and operating guide →A conversation, not a sales funnel
Ask a question, tell us what you need, offer a contribution or simply show your support. RAGBAZ is a software studio working toward kindness, mutual cooperation and the good of all beings.
Prefer email? ragbaz@proton.me