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.
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.
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?
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.
Forty-one values every AI carries. The floor is consulted first and can refuse on its own. No graph above it can lower it.
Where the affected person is decides which country floor and law apply. The same request can get a different answer in a different country.
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.
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.
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.
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.
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.
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.
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.
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 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.js | The evaluator. In a browser it defines createEngine; in Node, require it. |
| graphs_data.json | All the foundation graphs as one JSON object: values, action classes, edges, sources, domains, case law, registry. |
| wordvec.json | Word 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.