done, and every step lands in the ledger.Diagram as text
- You describe a team (roles, rules, budgets); a task has a definition of done made of gates.
- An agent may do only what its role's policy allows; everything else asks a human.
- The worst-case cost is reserved before each model call.
- The agent does the work; the real cost is settled after the call.
- The gates run: tests, rules, an independent verifier agent, a human.
- Only passed gates move the task to
done. - Actions, model calls, costs, gate results and approvals are appended to the ledger, a hash chain where nothing is edited or deleted.
NuraMesh is a trust layer around agent frameworks, not a framework. You describe a team; NuraMesh decides what each agent may do, what it may spend and when its work counts as done, and records all of it.
A run, step by step
Section titled “A run, step by step”- A person starts a run with an organization, a goal, the canon at a commit and a run budget.
- The lead agent of the team proposes tasks, each with a definition of done.
- For each task the engine checks the policy, the agent’s eval eligibility and the budget, then assigns it.
- The worker does the work. Its model calls are metered and its actions are checked by policy.
- The worker submits. The gates run outside the worker, so it cannot mark its own work done. Cheap checks run first: a rule, then the project’s tests, then the verifier. A verifier sees the task, the definition of done, the output and the canon, and never the worker’s reasoning.
- All required gates passed: the task is
done. A gate failed: another attempt, or a human. - The run ends with a report built from the ledger.
The parts
Section titled “The parts”Diagram as text
- The web app (builder and run views) talks to the API server over REST and WebSocket.
- The API server and the command line call the engine.
- The engine applies the rules and writes the ledger in the same step: tasks, budgets, policies, gates, verifiers, sandbox, content, anchors.
- Under the engine: the core rules (plain Python, no I/O), the stores (in memory, SQLite, PostgreSQL) and the adapters (LangGraph, model providers).
| Part | What it does |
|---|---|
| Core rules | Entities, validation and state rules, for example “a task becomes done only through passed gates”. No I/O; it needs only the Python standard library and pydantic |
| Engine | Services that apply the rules and write the ledger in the same transaction |
| Stores | Ledger and state storage: in memory, SQLite, PostgreSQL |
| Adapters | Run an agent’s graph (LangGraph) as a worker; provider clients for models |
| API server | REST and WebSocket API with no business rules of its own |
| Command line | The nuramesh command |
| Web app | The builder and the run views, built on the API only |
The Security model page covers the platform side.
What the report shows
Section titled “What the report shows”| You see | What it proves |
|---|---|
Tasks: 3 done |
Each task reached done only because every required gate in its definition of done passed and the results were recorded. No code path marks a task done without them. See Tasks and gates. |
gate review (verifier): passed by agent:rhea |
An independent verifier judged the output. It got the task, the definition of done, the output and the canon, never the worker’s reasoning. See Independent verifiers. |
gate approve-deploy (human): passed by human:you |
The deploy gate passed on an approval. In the quickstart that approval is scripted (--approve-as), so no person reviewed it: the ledger records scripted_approval and human_review: false. Use --interactive to approve it yourself. |
spent 0.003471 of 2.00 |
Every model call reserved its worst case first and settled the real cost afterwards. A budget is a hard stop. See Budgets. |
Gates run cheapest first: a rule, then the project’s tests, then the reviewer. If a cheap check fails, the reviewer is not paid for.
What (verified) on the ledger line means
Section titled “What (verified) on the ledger line means”Every action, model call, cost, gate result and approval is an entry in an append-only hash chain.
(verified) means the run’s chain was re-read and each entry still matches the hash of the one before
it. nuramesh ledger verify --team my-team does the same for every stream and ends with 0 broken; editing
any entry breaks the chain.
What it does not mean
Section titled “What it does not mean”- It is not a statement that the fix is correct beyond its gates. The gates are only as good as the tests and the definition of done you wrote.
- It does not mean the ledger is anchored. A chain that checks out proves internal consistency;
deleting the newest entries, or a whole stream, leaves the rest intact. Keep a head hash elsewhere
(
--expected-head) or use anchors to catch that. See The ledger and anchors. - The quickstart uses the fake model: its answers are scripted, so it shows the machinery (gates, budgets, policies, ledger), not the quality of any real model.
Related pages
Section titled “Related pages”- Teams and roles, Tasks and gates, Independent verifiers
- Budgets, Autonomy policies, The ledger and anchors
- Quickstart: see a run on your machine.
Was this page helpful?