Independent research · Brain API

Decide and record what AI agents may do

An intent-aware control plane for policy-governed agentic systems.

Open the paper Open the demo

scroll ↓

What it is

The governed decision between intent and execution, kept as a record

Existing control planes, workflow engines and service meshes lack abstractions for intent-level decision governance: they cannot represent high-level goals as first-class control objects, cannot enforce policy over the mapping from intent to execution plan, and cannot produce auditable records of why one execution path was chosen over its alternatives.

Brain API’s central contribution is the decision artifact: a durable, versioned, auditable record of how an intent became an executable plan, capturing which policies applied, which capabilities were evaluated, which alternatives were rejected, and why.

Pipeline from an intent through candidate generation, policy filtering, context signals, ranking and selection, and plan synthesis, to an execution plan and a decision artifact.
Figure 1 of the paper. An intent does not map directly to execution: it enters a decision in which candidates are generated, policy removes the inadmissible ones, the remainder are ranked and one is selected, and the choice is kept as a decision artifact beside the execution plan. Borders mark whether a stage was evaluated: policy filtering, selection and the artifact were; candidate generation, context signals, ranking and plan synthesis were not.

Use cases

Where Brain API’s ideas are at work

One use case measured with Brain API itself, then projects from the portfolio built on its ideas: decide before acting, and keep the record of why. One of them is a game.

First use case: Agentium DB

Agentium DB holds datasets under their descriptors. Every request to a dataset goes to Brain API: the policy filter first, then System One, then the route rule. Agentium DB checks the decision it gets back and records it byte for byte in its ledger. Only then does the selected capability run.

Measured on 3,393 held-out requests:

Same decisions

3,393

of 3,393 decisions the same as Brain API’s alone, byte for byte.

Replayable

3,393

of 3,393 replayed exactly from the ledger with the model stopped.

Fails closed

0 of 180

requests ran under 9 planted failures, 20 requests each.

Cost

9.3 ms

median Agentium DB adds to each decision.

accuracy stayed at 98.1%

Limits. Generated datasets, one model, one machine.

See it work: one recorded session with the running system. A request is traced from Brain API’s decision to Agentium DB’s ledger, a SQL statement runs only as the capability it is the form of, a forged grant and a changed byte are refused with nothing run, and the ledger replays with the model not allowed to answer.

33 seconds of the 208-second recording: an analyst asks the bog-wildlife dataset in words. Brain API’s policy admits 4 of 12 capabilities, System One judges get_site in scope at 0.9997, and the route rule selects it; Agentium DB passes all 14 checks, writes ledger line 0, and only then runs it. Full run at agentiumdb.org; archived at doi:10.5281/zenodo.24504444.

From the portfolio

Agentic Crawl

A goal-driven web crawler. Each step is written as a Brain API decision record: the links it weighed, what the sites’ rules said, what it took and why.

agenticcrawl.ca

Agentic Delivery

Agents propose software changes and a gate decides. Any decision opens as its record in the Brain API decision-artifact form: what was considered, what was chosen, and why.

agenticdelivery.ca

Agentic Loom

Batch recipes in which every step is admitted before it runs, and a refused step goes to a person, on the record. Brain API is one of its foundations.

agenticloom.ca

Agent Scope

A live map of agents, policies and the gate they must pass. Allows and denials alike leave a decision artifact with the rule, the reason and a trace id, on a hash-chained ledger. Eight recorded demos apply it to gene evidence, cluster operations, software delivery, laboratory data, a GPU fleet, a data estate, a library of PDFs and datasets that ask before they act.

agentscope.ca

Agentic DOOM, a fun project

A browser DOOM engine whose monsters act as declared state machines. Press J and System One, a small trained decision model inside the engine, picks for the monsters that lose sight of the player.

agentarena.ca

All projects

The whole portfolio, one page per project, with its links and its recordings.

portfolio.chernov.ca

Results

Measured results

A prototype of the decision layer, evaluated against two external policy corpora the author did not write.

Policy-stage conformance

42 of 42

agree with the OPA Gatekeeper library’s published verdicts: 19 admit, 23 deny.

Auditability

6 of 6

audit questions answered from the decision artifact, against 2 of 6 from an admission log.

Selection

20 of 20

trials selected the alternative the corpus labels compliant, in one pass.

Second domain: Cedar

78 of 81

agree with Cedar’s reference implementation: 71 of 71 denials, 7 of 10 allows.

Limits. The evaluation covers policy filtering and selection; candidate generation, context signals, ranking and plan synthesis are not measured, nor is decision latency under load.

Open the paper

Demo

What a decision artifact records

An auditor answers six questions from a Brain API decision artifact and two from an admission log, measured against the OPA Gatekeeper constraint library.

Side-by-side comparison: admission control adjudicating one proposed object, and Brain API selecting among alternatives and keeping the choice.
Figure 2 of the paper. Adjudication against selection. Both act before execution; the difference is that admission control adjudicates one proposed object, while Brain API resolves one goal among alternatives and keeps the choice.

Open the demo

Model

System One: a small trained model that judges dataset requests

It reads an Agentic Dataset’s descriptor and a request, and judges which of the capabilities policy admitted the request is for. Policy decides what may run. The model judges only what policy admitted, and every decision is recorded with the model’s version.

98.1%

held-out accuracy on generated families, trained 1.5B

92.6% before training

96.3%

held-out accuracy on generated families, trained 0.5B

69.5% before training

314 ms

median per decision, trained 1.5B

7B reference: 98.2% at 1,499 ms

88.3%

on Bitext, which no step trains on, trained 1.5B

47.2% before training

Open the results

Writing

The paper, articles and published research

Paper

Brain API: An Intent-Aware Control Plane for Policy-Governed Agentic Systems. The arXiv preprint: its abstract, measured results and figures.

Open the paper

Articles

Reprints of articles first published on LinkedIn. Each links to the original.

Open on chernov.ca

Papers

Abstracts of published research — agentic control planes and dataset descriptors. Papers themselves are at the publisher.

Open on chernov.ca