*Continent · 4 territory* ## Summary A governance specification and its changelog describe the JSON Schemas in spec/ for rulebooks, plans, plan evaluations, backtests and tool calls, and a README sets out field-by-field how a Decision and a Plan are compared. ## Explanation - In AGENTS.md, spec/ holds JSON Schemas, draft 2020-12: the /3 set and governance-{rulebook,request,decision,plan,approval,backtest}.schema.json and tool-call.schema.json. - `spec/` holds JSON Schemas, draft 2020-12: the `/3` set and `governance-{rulebook,request,decision,plan,approval,backtest}.schema.json` and `tool-call.schema.j… - In CHANGELOG.md, the schemas are spec/governance-{rulebook,request,decision,plan,approval,backtest}.schema.json and spec/tool-call.schema.json. - The schemas are `spec/governance-{rulebook,request,decision,plan,approval,backtest}.schema.json` and `spec/tool-call.schema.json`. - In README.md, spec/ holds JSON Schemas (draft 2020-12) for both formats: rulebook, request, decision, plan, plan evaluation, findings, approvals, backtest, and the adapter's tool-call input. - spec/ holds JSON Schemas (draft 2020-12) for both formats: rulebook, request, decision, plan, plan evaluation, findings, approvals, backtest, and the adapter's… - A rulebook is one JSON object (spec/rulebook.schema.json). - A rulebook is one JSON object (spec/rulebook.schema.json). - A /1 rulebook (spec/governance-rulebook.schema.json) has format, id, name, kinds, authorities (highest first), tools[], scopes[], roles[] (with tools, inheritance resolved), facts, limits, tags { tools, scopes, roles }, otherwise, trustedKeys?, rules, planRules?, mission? (§ 16.7), builtin (MUST include the eight /1 IDs), findings, and fingerprint (SHA-256 over canonical JSON of everything but findings, § 8). - A /1 rulebook (spec/governance-rulebook.schema.json) has format, id, name, kinds, authorities (highest first), tools[], scopes[], roles[] (with tools, inherita… - validateRulebook(rulebook) gives the problems, in plain words, for a rulebook received as JSON; this is what the spec calls rulebook validation. - validateRulebook(rulebook) gives the problems, in plain words, for a rulebook received as JSON; this is what the spec calls rulebook validation. - The plan evaluation result is { status, steps, planChecks, firstViolation?, approvalRequests, approvalsUsed, finalFacts, finalArea, planDigest, fingerprint } (spec/plan-evaluation.schema.json). - The plan evaluation result is { status, steps, planChecks, firstViolation?, approvalRequests, approvalsUsed, finalFacts, finalArea, planDigest, fingerprint } (… - The changelog entry dated Oct 18, 2026 says SPEC.md § 12, spec/plan.schema.json and spec/plan-evaluation.schema.json cover whole plans. - SPEC.md § 12, spec/plan.schema.json and spec/plan-evaluation.schema.json cover whole plans. - The changelog entry dated Oct 18, 2026 says SPEC.md § 13, spec/backtest.schema.json and spec/backtest-report.schema.json cover the backtest. - SPEC.md § 13, spec/backtest.schema.json and spec/backtest-report.schema.json cover the backtest. - For a Decision, status is compared exactly, reasons are an ordered list checked on ruleId, status and setBy with the reason text free-form and never compared, and trace is checked the same way, while limits and approvalsUsed are deep-equal when present and must be absent when the expectation has none, then is exact when present and absent otherwise, approvalRequests are an ordered list checked on ruleId, by, rulebookFingerprint, participantId, action, areaId and setBy with reason free-form, and fingerprint is exact. - For a Decision, compare status (exact); reasons (an ordered list, each entry compared on ruleId, status, setBy, with the reason text free-form and never compar… - For a Plan, status, finalArea, finalFacts, planDigest, approvalsUsed and fingerprint are exact, steps are ordered and each is checked on index, action, areaId and its decision as above with the step's facts and note not compared, planChecks are ordered and checked on ruleId, status, setBy and stepIndex, firstViolation is checked on stepIndex, ruleId, setBy and from with absent meaning absent, and approvalRequests are as for a decision. - For a Plan, status, finalArea, finalFacts (deep), planDigest, approvalsUsed (deep) and fingerprint are exact; steps are ordered, each compared on index, action… - The two README sections leave open how a step's facts and note are judged, since they are named as not compared, and how a reason's text is judged, since it is named free-form. - For a Decision, compare status (exact); reasons (an ordered list, each entry compared on ruleId, status, setBy, with the reason text free-form and never compar… - For a Plan, status, finalArea, finalFacts (deep), planDigest, approvalsUsed (deep) and fingerprint are exact; steps are ordered, each compared on index, action… ## Threads - The JSON Schemas in spec/ for rulebook, request, decision, plan, plan evaluation, findings, approvals, backtest and tool-call input - `spec/` holds JSON Schemas, draft 2020-12: the `/3` set and `governance-{rulebook,request,decision,plan,approval,backtest}.schema.json` and `tool-call.schema.j… - The schemas are `spec/governance-{rulebook,request,decision,plan,approval,backtest}.schema.json` and `spec/tool-call.schema.json`. - spec/ holds JSON Schemas (draft 2020-12) for both formats: rulebook, request, decision, plan, plan evaluation, findings, approvals, backtest, and the adapter's… - What a rulebook is made of and how validateRulebook reports its problems - A rulebook is one JSON object (spec/rulebook.schema.json). - A /1 rulebook (spec/governance-rulebook.schema.json) has format, id, name, kinds, authorities (highest first), tools[], scopes[], roles[] (with tools, inherita… - validateRulebook(rulebook) gives the problems, in plain words, for a rulebook received as JSON; this is what the spec calls rulebook validation. - The plan evaluation result's fields and the changelog's pointers to plan and backtest schemas - The plan evaluation result is { status, steps, planChecks, firstViolation?, approvalRequests, approvalsUsed, finalFacts, finalArea, planDigest, fingerprint } (… - SPEC.md § 13, spec/backtest.schema.json and spec/backtest-report.schema.json cover the backtest. - SPEC.md § 12, spec/plan.schema.json and spec/plan-evaluation.schema.json cover whole plans. - How a Decision and a Plan are compared field by field in the README - For a Decision, compare status (exact); reasons (an ordered list, each entry compared on ruleId, status, setBy, with the reason text free-form and never compar… - For a Plan, status, finalArea, finalFacts (deep), planDigest, approvalsUsed (deep) and fingerprint are exact; steps are ordered, each compared on index, action… ## How it formed The changelog entries dated Oct 18, 2026 point to the plan and backtest schemas; the specification, AGENTS.md, CHANGELOG.md, README.md and the two comparison sections are dated Oct 19, 2026. - `spec/` holds JSON Schemas, draft 2020-12: the `/3` set and `governance-{rulebook,request,decision,plan,approval,backtest}.schema.json` and `tool-call.schema.j… - The plan evaluation result is { status, steps, planChecks, firstViolation?, approvalRequests, approvalsUsed, finalFacts, finalArea, planDigest, fingerprint } (… - The schemas are `spec/governance-{rulebook,request,decision,plan,approval,backtest}.schema.json` and `spec/tool-call.schema.json`. - spec/ holds JSON Schemas (draft 2020-12) for both formats: rulebook, request, decision, plan, plan evaluation, findings, approvals, backtest, and the adapter's… - SPEC.md § 13, spec/backtest.schema.json and spec/backtest-report.schema.json cover the backtest. - …and 3 more ## What's still open How a step's facts and note are judged, and how a reason's free-form text is judged, are named as not compared. - For a Decision, compare status (exact); reasons (an ordered list, each entry compared on ruleId, status, setBy, with the reason text free-form and never compar… - For a Plan, status, finalArea, finalFacts (deep), planDigest, approvalsUsed (deep) and fingerprint are exact; steps are ordered, each compared on index, action… ## Consultant **A way forward** — Keep the README's field-by-field comparison as the reference and add one worked example of a Decision and a Plan that pass, next to the rules. ## Territories - [[Bevia/World/Territories/Spec sections and schemas for plans and backtests|Spec sections and schemas for plans and backtests]] - [[Bevia/World/Territories/JSON Schemas for governance formats in spec-|JSON Schemas for governance formats in spec/]] - [[Bevia/World/Territories/rulebook JSON object and validation|rulebook JSON object and validation]] - [[Bevia/World/Territories/Decision and Plan field comparison rules|Decision and Plan field comparison rules]]