The engine

How a consult is answered

An agent describes what it is about to do, and can send the tool call itself. The engine reads what is being asked, asks for context when the meaning depends on it, walks from the shared floor up through the law of the place and the right sector, scores the values in play, and returns a signed answer with its reasons. Nothing about the verdict is left to a model alone: models score, the graph decides, and a person decides where the graph cannot.

How it decides

Eleven steps, in order

01

Read the tool call

When the agent says which tool it is about to call and with what arguments, the tool can settle the kind of action, whatever the words say. Every kind of action is a read, a write, a send or a destroy. A read of the agent's own material, with nothing bearing on it, takes a shorter path; a read of anyone else's data never does.

02

Read the request

The intent frame: is the agent doing it, explaining it, reporting it, writing fiction or simulating? Is it ruled out ("never paste the key")? Is consent or authority stated? What does an ambiguous verb mean here?

03

Ask when context is missing

If the meaning depends on context the request did not give, such as what "target" means, the answer is clarify: what is ambiguous and the fields that settle it. Two rounds at most, then a person decides.

04

The floor, always

Forty-one values every AI carries. The floor is consulted first and can refuse on its own. No graph above it can lower it.

05

The law of the place

Where the affected person is decides which country floor and law apply. The same request can get a different answer in a different country.

06

The right sector

Chosen from the sector the agent declares, the graph it carries and its purpose, and the reading of the request, not from shared words alone. If two sectors fit and would answer differently, the engine asks.

07

Specialised graphs

An organisation's private graph or a registry graph, when named. Each is answered alongside every public graph it sits under, and the stricter answer stands.

08

Score the values

Cues, words and meaning find the values in play. For signed callers an AI assessor scores each: does it bear, and would the action cross it. When no action class matches, candidate values are found by meaning and scored the same way.

09

Bands and the verdict

Weights and scores give a cost and a band: comfort, stress or revulsion. A crossed sharp floor value refuses whatever the total, and the assessor can raise it but never talk it down. Values in conflict go to a person.

10

Check the facts

A condition can carry a check a program can run: a fact recorded, an amount under a limit, an unsubscribe line present, a hold still open. Where the agent says where each argument came from, a value it invented fails. A passed check clears its condition. A failed one goes back to the agent with what was expected and what was found; after two revisions, a person decides. A fact the agent states can stop a call, never clear one.

11

Watch the sequence, then sign

With a session id, a pattern across steps can raise the answer to a person. Before a task ends, the agent can ask whether anything is still open. The answer is signed: a receipt for one exact action when it may go ahead, advice otherwise, and recorded in the public log.

Simulation

Follow one consult through the engine

Pick a scenario and press Play, or step through it. The path lights up as the consult moves: back to the agent when context is missing, then up through the floor, the law of the place and the sector it is routed to, to the answer.


Try it live

Send a real consult

This calls the live API anonymously. Anonymous answers are signed advice, without the AI assessor. If the answer is clarify, add the context it asks for and send again.

The answer appears here.
Embed it

The same engine, in one file

The evaluator the navigator and the API run: intent frame, thresholds, cost, bands, verdicts, the resolver chain, and the word and meaning matcher. No dependencies, Apache 2.0.

engine.jsThe evaluator. In a browser it defines createEngine; in Node, require it.
graphs_data.jsonAll the foundation graphs as one JSON object: values, action classes, edges, sources, domains, case law, registry.
wordvec.jsonWord vectors for the meaning layer (optional; without it the engine matches words only).
graphs/The YAML sources, schema, generators and validator.
// Node
const CG = require('./engine.js');
const DATA = require('./graphs_data.json'), WV = require('./wordvec.json');
const E = CG.createEngine(DATA, WV);
// text, origin, graph held, impact region, sector, context
const ev = E.scnEvaluate('Can I target a hospital?', 'auto', 'floor', 'AU', 'auto', '');
console.log(E.toApi(ev).verdict);   // clarify

// Browser
<script src="https://engine.consciencegraph.org/engine.js"></script>

Verdict rules: the paper, sections 5.8, 7.1, 7.4 and B.13. Hosted consults with receipts: the API.