Skip to content
Docs
Request access

How it works

Available

A verified run from start to end A team and its task lead to a policy check, a budget reservation, the work, the gates and the state done. Every step is appended to the ledger. Team and taskroles, rules, budgets,a definition of done Policyallowed by the role'spolicy, or a human is asked Budgetworst case reserved beforeeach model call Workthe agent does the task;real cost settled after Gatestests, rules, an independentverifier, a human doneonly when the gateshave passed Ledger: every step is appended to a hash chain; nothing is edited or deleted Team and taskroles, rules, budgets,a definition of done Policyallowed by the role'spolicy, or a human is asked Budgetworst case reserved beforeeach model call Workthe agent does the task;real cost settled after Gatestests, rules, an independentverifier, a human doneonly when the gateshave passed Ledger: every step is appendedto a hash chain; nothing isedited or deleted
Policy and budget come before the work, gates come before done, and every step lands in the ledger.
Diagram as text
  1. You describe a team (roles, rules, budgets); a task has a definition of done made of gates.
  2. An agent may do only what its role's policy allows; everything else asks a human.
  3. The worst-case cost is reserved before each model call.
  4. The agent does the work; the real cost is settled after the call.
  5. The gates run: tests, rules, an independent verifier agent, a human.
  6. Only passed gates move the task to done.
  7. 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.

  1. A person starts a run with an organization, a goal, the canon at a commit and a run budget.
  2. The lead agent of the team proposes tasks, each with a definition of done.
  3. For each task the engine checks the policy, the agent’s eval eligibility and the budget, then assigns it.
  4. The worker does the work. Its model calls are metered and its actions are checked by policy.
  5. 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.
  6. All required gates passed: the task is done. A gate failed: another attempt, or a human.
  7. The run ends with a report built from the ledger.
The parts of NuraMesh The web app talks to the API server. The API server and the command line call the engine. The engine uses the core rules, the stores and the adapters. Web appbuilder and run views Command linethe nuramesh command REST and WebSocket API server Engineapplies the rules and writes the ledger in the same step:tasks, budgets, policies, gates, verifiers, sandbox, content, anchors Core rulesplain Python, no I/O,tested without a model Storesin memory, SQLite,PostgreSQL AdaptersLangGraph,model providers Web appbuilder and run views REST and WebSocket API server Command linethe nuramesh command Engineapplies the rules and writes theledger in the same step:tasks, budgets, policies, gates,verifiers, sandbox, content, anchors Core rulesplain Python, no I/O,tested without a model Storesin memory, SQLite,PostgreSQL AdaptersLangGraph,model providers
The parts and what calls what. The web app and the command line never bypass the engine.
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.

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.

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.

  • 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.

Was this page helpful?