*Territory · 6 understandings*
## Summary
The enforcing tool-call adapter in adapters/tool-call/ runs one function, govern(call, session, harness, executor), which takes the call, gets scope, facts, derived facts, a spend reservation, approvals, history, time and nonces from the harness, verifies approvals, evaluates, claims the nonces it used, and calls the executor only on ALLOW or LIMIT.
## Explanation
- In SPEC.md, adapters/tool-call/ is the reference adapter: govern(call, session, harness, executor).
- adapters/tool-call/ is the reference adapter: govern(call, session, harness, executor).
- In CHANGELOG.md, the enforcing adapter (adapters/tool-call/, exported from the root) has govern(call, session, harness, executor) take a tool call as { id?, function: { name, arguments } } or { name, args }, build the request from the harness alone, verify approvals in the trusted layer, evaluate, and call the executor only on ALLOW or LIMIT, with the limits.
- The enforcing adapter (`adapters/tool-call/`, exported from the root) has `govern(call, session, harness, executor)` take a tool call as `{ id?, function: { na…
- In README.md, adapters/tool-call/ holds the enforcing adapter (govern), the reference harness (spend ledger with reserve-then-commit, nonce set, history store) and a data-driven harness for conformance, exported from the root bundle.
- adapters/tool-call/ holds the enforcing adapter (`govern`), the reference harness (spend ledger with reserve-then-commit, nonce set, history store) and a data-…
- In BOUNDARY.md, adapters/tool-call/ is the reference shape of the trusted layer for tool calls, where govern(call, session, harness, executor) parses the call ({ id?, function: { name, arguments } } or { name, args }), asks the harness for the scope, the supplied facts, the derived facts (integrator-declared functions over the arguments), an atomic spend reservation, the approvals it holds, the participant's history, the time and the consumed nonces, verifies the approvals, evaluates, claims every nonce the decision used atomically, and calls the executor only on ALLOW or LIMIT, passing the limits.
- adapters/tool-call/ is the reference shape of the trusted layer for tool calls, where govern(call, session, harness, executor) parses the call ({ id?, function…
## Threads
- The govern function and its parse-to-act pipeline in adapters/tool-call/
- `adapters/tool-call/index.ts` provides `govern`: parse → scope → facts → derived facts → reserve → verify approvals → request → `evaluate` → act, the fail-clos…
- The Adapter (§ 16.9) is `govern(call, session, harness, executor) → Governed { status, executed, decision, request?, result?, error?: { stage, message }, callI…
- adapters/tool-call/ is the reference adapter: govern(call, session, harness, executor).
- The enforcing adapter (`adapters/tool-call/`, exported from the root) has `govern(call, session, harness, executor)` take a tool call as `{ id?, function: { na…
- adapters/tool-call/ is the reference shape of the trusted layer for tool calls, where govern(call, session, harness, executor) parses the call ({ id?, function…
- The harness supplying scope, facts, derived facts, reservation, approvals, history, time and nonces
- The enforcing adapter (`adapters/tool-call/`, exported from the root) has `govern(call, session, harness, executor)` take a tool call as `{ id?, function: { na…
- adapters/tool-call/ holds the enforcing adapter (`govern`), the reference harness (spend ledger with reserve-then-commit, nonce set, history store) and a data-…
- adapters/tool-call/ is the reference shape of the trusted layer for tool calls, where govern(call, session, harness, executor) parses the call ({ id?, function…
- The reference harness with spend ledger, nonce set and history store, plus a conformance harness
- adapters/tool-call/ holds the enforcing adapter (`govern`), the reference harness (spend ledger with reserve-then-commit, nonce set, history store) and a data-…
## What's still open
What govern does when the executor throws, and whether a reservation or nonce claim is released, is not stated.
- The enforcing adapter (`adapters/tool-call/`, exported from the root) has `govern(call, session, harness, executor)` take a tool call as `{ id?, function: { na…
- adapters/tool-call/ is the reference shape of the trusted layer for tool calls, where govern(call, session, harness, executor) parses the call ({ id?, function…
## Consultant
**Where it shows up** — The same function keeps coming up across the doctrine, the spec, the changelog, the readme and the boundary note: govern(call, session, harness, executor), with the harness supplying scope, facts, derived facts, reservation, approvals, history, time and nonces.
**A question to sit with** — What should govern do when the executor throws after it has been called, and what should happen to the reservation and the nonce then?
**A way forward** — Keep the fail-closed table of SPEC.md § 16.9 beside the govern signature and add one line for the executor-throw case, so the table and the code say the same thing.
## Understandings
- `adapters/tool-call/index.ts` provides `govern`: parse → scope → facts → derived facts → reserve → verify approvals → request → `evaluate` → act, the fail-closed table of SPEC.md § 16.9, and `ADAPTER_CHECKS`. — from [[Bevia/World/Sources/AGENTS.md — Neuroverseos-governance|AGENTS.md — Neuroverseos-governance]] — 2026-10-19
- The Adapter (§ 16.9) is `govern(call, session, harness, executor) → Governed { status, executed, decision, request?, result?, error?: { stage, message }, callId? }`. — from [[Bevia/World/Sources/AGENTS.md — Neuroverseos-governance|AGENTS.md — Neuroverseos-governance]] — 2026-10-19
- adapters/tool-call/ is the reference adapter: govern(call, session, harness, executor). — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- SPEC|NeuroverseOS/Neuroverseos-governance: SPEC]] — 2026-10-19
- The enforcing adapter (`adapters/tool-call/`, exported from the root) has `govern(call, session, harness, executor)` take a tool call as `{ id?, function: { name, arguments } }` or `{ name, args }`, build the request from the harness alone, verify approvals in the trusted layer, evaluate, and call the executor only on ALLOW or LIMIT, with the limits. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- CHANGELOG|NeuroverseOS/Neuroverseos-governance: CHANGELOG]] — 2026-10-19
- adapters/tool-call/ holds the enforcing adapter (`govern`), the reference harness (spend ledger with reserve-then-commit, nonce set, history store) and a data-driven harness for conformance, exported from the root bundle. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- README|NeuroverseOS/Neuroverseos-governance: README]] — 2026-10-19
- adapters/tool-call/ is the reference shape of the trusted layer for tool calls, where govern(call, session, harness, executor) parses the call ({ id?, function: { name, arguments } } or { name, args }), asks the harness for the scope, the supplied facts, the derived facts (integrator-declared functions over the arguments), an atomic spend reservation, the approvals it holds, the participant's history, the time and the consumed nonces, verifies the approvals, evaluates, claims every nonce the decision used atomically, and calls the executor only on ALLOW or LIMIT, passing the limits. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance- BOUNDARY|NeuroverseOS/Neuroverseos-governance: BOUNDARY]] — 2026-10-19
## Who, where and what
Places: [[Bevia/World/Places/adapters-tool-call-|adapters/tool-call/]]
Things: [[Bevia/World/Things/{ id-, function- { name, arguments } }|{ id?, function: { name, arguments } }]], [[Bevia/World/Things/{ name, args }|{ name, args }]], [[Bevia/World/Things/Adapter (b353bd0b)|Adapter]], [[Bevia/World/Things/ADAPTER_CHECKS|ADAPTER_CHECKS]], [[Bevia/World/Things/adapters-tool-call-|adapters/tool-call/]], [[Bevia/World/Things/ALLOW (805f100b)|ALLOW]], [[Bevia/World/Things/args|args]], [[Bevia/World/Things/arguments|arguments]], [[Bevia/World/Things/call|call]], [[Bevia/World/Things/conformance|conformance]], [[Bevia/World/Things/data-driven harness|data-driven harness]], [[Bevia/World/Things/enforcing adapter|enforcing adapter]], [[Bevia/World/Things/evaluate|evaluate]], [[Bevia/World/Things/executor|executor]], [[Bevia/World/Things/function|function]], [[Bevia/World/Things/govern|govern]], [[Bevia/World/Things/govern(call, session, harness, executor)|govern(call, session, harness, executor)]], [[Bevia/World/Things/govern(call, session, harness, executor) → Governed { status, executed, decision|govern(call, session, harness, executor) → Governed { status, executed, decision]], [[Bevia/World/Things/harness|harness]], [[Bevia/World/Things/history store|history store]], [[Bevia/World/Things/id-|id?]], [[Bevia/World/Things/LIMIT (9032047a)|LIMIT]], [[Bevia/World/Things/name|name]], [[Bevia/World/Things/nonce set|nonce set]], [[Bevia/World/Things/reference harness|reference harness]], [[Bevia/World/Things/reserve-then-commit|reserve-then-commit]], [[Bevia/World/Things/root bundle|root bundle]], [[Bevia/World/Things/session|session]], [[Bevia/World/Things/SPEC.md|SPEC.md]], [[Bevia/World/Things/spend ledger|spend ledger]]