*Continent · 3 territory*
## Summary
The governance engine's source tree is described file by file across four dates: the CLI utilities that absorbed duplicated parsing, the planned behavioral CLI, the worldmodel contract, parser, compiler and CLI that landed together, and the one evaluator with its dialect table and normalizeRulebook.
## Explanation
- On Mar 16, 2026, src/cli/cli-utils.ts held world path resolution, a stdin reader, JSON output helpers and CLI value parsing, which had been duplicated across 3-5 CLI commands each.
- src/cli/cli-utils.ts holds world path resolution, a stdin reader, JSON output helpers and CLI value parsing, which was duplicated across 3-5 CLI commands each.
- On Mar 22, 2026, src/cli/add.ts is a CLI harness with auto-classification from natural language.
- src/cli/add.ts is a CLI harness with auto-classification from natural language.
- On Mar 22, 2026, src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns and generate narrative.
- src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns, and generate narrative.
- On Apr 11, 2026, src/contracts/worldmodel-contract.ts is a new file holding type definitions, src/engine/worldmodel-parser.ts is a new deterministic markdown parser, src/engine/worldmodel-compiler.ts is a new compiler to.nv-world.md plus artifacts, and src/cli/worldmodel.ts is a new CLI with init/validate/explain/build/emit-* subcommands.
- src/contracts/worldmodel-contract.ts is a new file holding type definitions.
- src/engine/worldmodel-parser.ts is a new deterministic markdown parser.
- src/engine/worldmodel-compiler.ts is a new compiler to .nv-world.md plus artifacts.
- src/cli/worldmodel.ts is a new CLI with init/validate/explain/build/emit-* subcommands.
- On Oct 19, 2026, the changelog for Neuroverseos-governance records that one evaluator in src/model.ts carries a dialect table (DOMAIN_DIALECT, GOVERNANCE_DIALECT) and normalizeRulebook, that a /3 rulebook is returned as the same object, and that a /1 rulebook is viewed with tools as actions and scopes as areas.
- One evaluator (`src/model.ts`) has a dialect table (`DOMAIN_DIALECT`, `GOVERNANCE_DIALECT`) and `normalizeRulebook`; a `/3` rulebook is returned as the same ob…
- The README of the same date describes src/ as the engine with zero runtime dependencies, starting at types.ts and running through model.ts with the dialect table and the normalised model, compile.ts, governance.ts with the /1 compiler and missions, evaluate.ts as the one evaluator, plan.ts, check.ts, backtest.ts, approvals.ts with verified.ts as the verified handle, canonical.ts, and templates/, draft.ts, glasses.ts, zone-rules.ts and legacy.ts as the robotics dialect's tooling.
- src/ is the engine with zero runtime dependencies, starting at types.ts, with model.ts (the dialect table and the normalised model), compile.ts, governance.ts…
- The shared utilities in src/cli/cli-utils.ts sit under the CLI commands, and src/cli/add.ts is one such command harness, with src/cli/behavioral.ts planned as another.
- src/cli/cli-utils.ts holds world path resolution, a stdin reader, JSON output helpers and CLI value parsing, which was duplicated across 3-5 CLI commands each.
- src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns, and generate narrative.
- src/cli/add.ts is a CLI harness with auto-classification from natural language.
- The four worldmodel files landing on Apr 11, 2026 sit inside the src/ tree the README lays out, whose engine carries zero runtime dependencies.
- src/ is the engine with zero runtime dependencies, starting at types.ts, with model.ts (the dialect table and the normalised model), compile.ts, governance.ts…
- src/contracts/worldmodel-contract.ts is a new file holding type definitions.
- src/engine/worldmodel-parser.ts is a new deterministic markdown parser.
- src/engine/worldmodel-compiler.ts is a new compiler to .nv-world.md plus artifacts.
- src/cli/worldmodel.ts is a new CLI with init/validate/explain/build/emit-* subcommands.
- The records do not say whether src/cli/behavioral.ts was created, nor what the audit log contains or which adaptations it classifies.
- src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns, and generate narrative.
## Threads
- The natural-language harness in src/cli/add.ts and the planned behavioral CLI
- src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns, and generate narrative.
- src/cli/add.ts is a CLI harness with auto-classification from natural language.
- The worldmodel contract, parser, compiler and CLI that landed together on Apr 11, 2026
- src/contracts/worldmodel-contract.ts is a new file holding type definitions.
- src/engine/worldmodel-parser.ts is a new deterministic markdown parser.
- src/engine/worldmodel-compiler.ts is a new compiler to .nv-world.md plus artifacts.
- src/cli/worldmodel.ts is a new CLI with init/validate/explain/build/emit-* subcommands.
- The one evaluator in src/model.ts with its dialect table and normalizeRulebook, and the src/ tree around it
- One evaluator (`src/model.ts`) has a dialect table (`DOMAIN_DIALECT`, `GOVERNANCE_DIALECT`) and `normalizeRulebook`; a `/3` rulebook is returned as the same ob…
- src/ is the engine with zero runtime dependencies, starting at types.ts, with model.ts (the dialect table and the normalised model), compile.ts, governance.ts…
## What's still open
src/cli/behavioral.ts is still stated as to be created, and what the audit log holds is not said.
- src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns, and generate narrative.
## Two sides
src/cli/behavioral.ts is stated as still to be created while src/cli/add.ts already exists as a CLI harness and src/cli/cli-utils.ts already holds the shared parsing under the commands.
- One side
- src/cli/behavioral.ts is to be created to read the audit log, classify adaptations, detect patterns, and generate narrative.
- The other side
- src/cli/cli-utils.ts holds world path resolution, a stdin reader, JSON output helpers and CLI value parsing, which was duplicated across 3-5 CLI commands each.
- src/cli/add.ts is a CLI harness with auto-classification from natural language.
## Consultant
**Where it shows up** — The CLI layer keeps coming up: src/cli/cli-utils.ts absorbed parsing duplicated across 3-5 commands, src/cli/add.ts classifies from natural language, and src/cli/behavioral.ts is still to be created to read the audit log.
**A question to sit with** — What would the audit log need to hold for src/cli/behavioral.ts to classify adaptations and detect patterns?
**A way forward** — Keep the CLI files side by side — cli-utils.ts, add.ts, worldmodel.ts and the planned behavioral.ts — and note for each what it reads and what it writes.
## Ideas
- CLI value parsing, world path resolution, stdin reading and JSON output belong in one shared utilities file rather than repeated in each command.
- A behavioral CLI should read the audit log, classify adaptations, detect patterns and generate narrative.
- A CLI harness can classify from natural language automatically.
- A /1 rulebook should be viewed through the same evaluator with tools as actions and scopes as areas rather than given a separate evaluator.
- Both formats should be decided by one evaluator through a single dialect table.
- The engine should carry zero runtime dependencies.
## History
Earlier, Bevia read this as: “The governance engine's source tree is described across three documents: the robotics-dialect tooling, the one evaluator in src/model.ts with its dialect table and normalizeRulebook, and the zero-runtime-dependency src/ engine running from types.ts through canonical.ts.” (until 2026-11-22)
## Territories
- [[Bevia/World/Territories/Governance engine source tree and its evaluator|Governance engine source tree and its evaluator]]
- [[Bevia/World/Territories/CLI utilities, add harness and planned behavioral module|CLI utilities, add harness and planned behavioral module]]
- [[Bevia/World/Territories/Four new worldmodel files- contract, parser, compiler, CLI|Four new worldmodel files: contract, parser, compiler, CLI]]