Skip to content
Docs
Request access

Canon

Available

How the canon reaches a run The canon lives in a Git repository and is pinned to one commit. NuraMesh re-hashes every file of that commit. A mismatch stops the run. Otherwise the snapshot is loaded once per run, reaches the verifier, and its commit and content hash are written to the ledger. Canon in Gitone pinned commit Hash checkevery file re-hashed Snapshotloaded once per run Verifierchecks against it Mismatchthe run stops Ledger entrycommit and hash Canon in Gitone pinned commit Hash checkevery file re-hashed Snapshotloaded once per run Verifierchecks against it Mismatchthe run stops Ledger entrycommit and hash
The canon is read from one pinned commit, checked file by file, loaded once per run and named in the ledger.
Diagram as text
  1. The canon lives in a Git repository; the configuration pins one commit.
  2. NuraMesh re-hashes the pinned commit, its directories and every file. A hash that does not match stops the run with an error.
  3. The checked snapshot is loaded once per run.
  4. The snapshot reaches the verifier.
  5. The commit and the content hash are written to the ledger.

The canon is the team’s shared facts and rules: style, decisions, domain knowledge. It lives in a Git repository, so it is versioned and reviewed like code.

  • A run loads the canon once, from a pinned commit (canon in the configuration: repository, commit, paths).
  • The loaded snapshot reaches the verifier (tested); it is loaded once per run.
  • The commit and the content hash are written to the ledger, so you can tell which version of the rules a run used.

NuraMesh checks the canon against the commit you pinned. It reads the pinned commit, every directory (tree) below it and each file it returns, and recomputes the hash of every one of them. Each hash must match the id the pinned commit names. So the files an agent is told are exactly the files of that commit, even if someone tampered with the repository’s object store after you pinned the id.

What this does not check:

  • A collision prepared before the pin. Git ids are SHA-1. The check cannot tell two different files apart if someone crafted a SHA-1 collision before you pinned the commit.
  • Changes during one process. A loaded canon is cached for the life of the process; a change to the repository after that load is found only by a process that reads it again.
  • Earlier history. Ancestor commits are not verified. The pin proves the canon files are exactly those of that commit, not that the history before it is untouched.
  • Whether the commit is a good one. There is no signature check. Pin the commit id from a reviewed configuration.
  • Repositories that use the SHA-256 object format are refused for now (the run does not start). Shallow clones are fine.
  • A failed check stops the run with an error. It is not yet written as its own ledger record.

The ledger entry for a loaded canon (canon.loaded) now also lists what was verified: the object format, the root tree id, how many trees and files were re-hashed, and whether the repository is shallow (informational only). The canon hash itself did not change.

Not available today: searching a large canon, and agents proposing canon changes. Agents never edit the canon directly; a human changes it through Git.

Was this page helpful?