Skip to content
Docs
Request access

Code-review team

Available

Two tasks done. A Chief of Staff delegates; the change summary counts only when the code reviewer and the security reviewer both pass it. Nobody reviews their own work.

  • NuraMesh installed and on your PATH, as in the Quickstart (installed with pip install "nuramesh[local]"; see Install options).
  • A throwaway folder to run in.
Terminal window
nuramesh init my-review --template code-review
created my-review from the 'code-review' template. Next:
nuramesh validate my-review/nuramesh.yaml
nuramesh try my-review --fake --approve-as human:you

init writes my-review/ with nuramesh.yaml (the organization: roles, agents, policies, budgets) and team.py (the example workers and the scripted fake model).

Terminal window
nuramesh validate my-review/nuramesh.yaml
my-review/nuramesh.yaml: valid

validate takes the configuration file, not the folder.

Terminal window
nuramesh try my-review --fake --approve-as human:you --run-id first-run
Run first-run
Tasks: 2 done
[done] first-run-summary (change-summarizer, attempts 1): Summarize the change for the review
gate is-summary (rule): passed by gate:rule
gate code-reviewer-review (verifier): passed by agent:code-reviewer
gate security-reviewer-review (verifier): passed by agent:security-reviewer
[done] first-run-decision (change-summarizer, attempts 1): Record the review decision
gate is-decision (rule): passed by gate:rule
Budgets:
code-reviewer-monthly (agent code-reviewer): spent 0.001626 of 5.00, reserved 0.000000
rb-486e135495bd (run first-run): spent 0.003747 of 2.00, reserved 0.000000
security-monthly (agent security-reviewer): spent 0.001596 of 5.00, reserved 0.000000
summarizer-monthly (agent change-summarizer): spent 0.000525 of 5.00, reserved 0.000000
Ledger: run:first-run seq 44, head 78efa315171e049c… (verified)

--approve-as human:you is a scripted approval so the run finishes on its own; the ledger records that it was scripted. Ids and numbers differ in your run.

Terminal window
nuramesh ledger verify --team my-review
org:my-review: 4 events, head d1672fcc9fe417b7… ok
run:first-run: 44 events, head 78efa315171e049c… ok
2 streams, 0 broken

Every stream’s hash chain is re-checked, so an edited or removed event would show as broken. (verified) in the run report means the same: the chain checks out. It does not mean the ledger is anchored (see anchors).

  • The fake model answers from a script in team.py, so this shows how the rules work, not how good a real model is.
  • The reviewers judge the scripted answers here.
  • Nothing is published and no real data is involved. Use synthetic data only; a real model needs the provider setup in the FAQ and limits.
  • The run report’s (verified) covers the hash chain only.

Was this page helpful?