CG Connect
One open contract for putting the Conscience Graph in any tool: ask before acting, get a signed verdict, and send the decisions on to the systems that keep the record. Any vendor can build to it without asking us. A conformance run is the gate to a listing.
Consult and Verify work today against the preview platform. Events, Evidence, Policy, the SDK packages and the conformance kit are in development with the first connectors. Listings and seals start with the production pilots in 2027. The draft can change before then; each change is versioned.
The five parts
| Part | Direction | What it does | Status |
|---|---|---|---|
| Consult | Your tool to the graph | Ask before an action and get a signed verdict, its conditions, the values behind it and a receipt for that exact call | Works today |
| Events | The graph to your tool | Signed CloudEvents for verdicts, escalations, drift, guardrail probes and Trust Mark changes | In development |
| Evidence | The graph to your tool | A signed bundle for a period, mapped to ISO/IEC 42001, the NIST AI RMF and the EU AI Act, in JSON and OSCAL | In development |
| Verify | Anyone | Check a receipt, verdict, graph certificate or Trust Mark offline against the published keys | Works today; packages in development |
| Policy | Your tool to the graph | Send a policy document or rule set and get a draft guardrail graph to review, sign and publish | In development |
Consult
Before the action runs, send what the agent is about to do. Name the tool and its arguments when there is one: the receipt is bound to them. Requests signed with an enrolled caller key (HTTP Message Signatures, RFC 9421) get receipts; anonymous answers are advice only.
curl -s https://api.consciencegraph.org/evaluate \
-H 'content-type: application/json' \
-d '{
"proposition": "Refund the customer 4,800 for the cancelled order",
"holds": "au.finance.profile",
"tool": "payments.refund",
"arguments": {"order": "SO-1182", "amount": 4800, "currency": "AUD"},
"session": "task-7f3a",
"integration": "my-gateway",
"chain": {"id": "task-7f3a", "hop": 1, "parent_receipt": "rcpt_..."}
}'
// Node 18+. cg.js signs the request (RFC 9421) with the caller key from `node cg.js enrol`.
const {loadKey, ensureEnrolled, signedFetch, API} = require('./integrations/cg-client/cg.js');
const key = await ensureEnrolled(loadKey());
const {body: v} = await signedFetch('POST', API + '/evaluate', {
proposition: 'Refund the customer 4,800 for the cancelled order',
holds: 'au.finance.profile',
tool: 'payments.refund',
arguments: {order: 'SO-1182', amount: 4800, currency: 'AUD'},
session: 'task-7f3a', integration: 'my-gateway'
}, key);
if (v.verdict === 'proceed' && v.receipt) await refund(v.receipt.token); // attach the receipt to the call
# Python 3.10+. Unsigned (advice only) until the consciencegraph package ships with key signing.
import json, urllib.request
body = {"proposition": "Refund the customer 4,800 for the cancelled order",
"holds": "au.finance.profile", "tool": "payments.refund",
"arguments": {"order": "SO-1182", "amount": 4800, "currency": "AUD"}}
req = urllib.request.Request("https://api.consciencegraph.org/evaluate", json.dumps(body).encode(),
{"content-type": "application/json"})
v = json.load(urllib.request.urlopen(req))
print(v["verdict"])
Request fields
| Field | Meaning |
|---|---|
proposition | The action in plain language. Hashed, never stored |
holds | The guardrail graph the agent answers to, for example au.finance.profile |
tool, arguments | The call itself. The receipt is bound to a hash of both |
state, provenance | Facts for checked conditions, and where the arguments came from |
session | The task, so related steps are judged together and the completion gate can tell what is still open |
chain | {id, hop, parent_receipt} when one agent acts on another's verdict |
integration, gateway_tenant | Which connector asked, and for which tenant of a shared gateway. Used for metering |
The answer
The verdict, the values it touched with their source and clause, any conditions, the checks run against the facts of the call, and a signed token. A permitted call to a signed caller also carries a receipt: single use, valid for 10 minutes, bound to the caller key and the call. A boundary redeems it once at POST /redeem before it lets the call through.
The enforcement contract
Every connector maps each verdict the same way, so a customer gets the same behaviour whichever tool asks.
| Verdict | The connector must | It must never |
|---|---|---|
proceed | Run the action with the receipt attached | Run it without a receipt that verifies for this exact call |
proceed_with_conditions | Run it and enforce the checked conditions, or attach them if the customer chose attach | Drop the conditions |
flag | Hold the action for a person, through the tool's own approval feature | Run it unattended |
escalate | Hold it for a qualified reviewer, and record the outcome with POST /outcome | Let the agent resolve its own escalation |
prune | Block it and return the values crossed to the agent | Retry the same call to get a different answer |
unknown | Follow the customer's setting: deny at a boundary by default | Treat it as proceed by default |
A clarify answer asks for the missing fact; the connector passes the question back to the agent or the person and consults again. When the signing service is unavailable (503 signing_unavailable), the connector applies the customer's fail mode: closed (refuse) by default at a boundary.
Events In development
Webhook subscriptions in the CloudEvents 1.0 format. Each event is signed, retried with back-off, and idempotent by its event id, so a receiver can safely see it twice.
| Event type | When |
|---|---|
org.consciencegraph.verdict.issued | A consult was answered (hashes and identifiers only) |
org.consciencegraph.escalation.opened, .resolved | A hold for a reviewer opened, and who resolved it, how |
org.consciencegraph.drift.detected | An agent's decisions moved away from its baseline |
org.consciencegraph.probe.detected | Repeated attempts to find a wording that passes |
org.consciencegraph.mark.changed | A Trust Mark was issued, suspended, expired, revoked or archived |
Evidence In development
GET /evidence?from=&to=, pulled with the organisation's own token. A signed bundle for the period: decisions by class and verdict, escalations and who resolved them, outcomes, drift, and inclusion proofs from the transparency log. Each item maps to ISO/IEC 42001 Annex A controls, NIST AI RMF functions, and EU AI Act Articles 9, 12, 14 and 26. JSON, and OSCAL assessment results for GRC tools that read them.
Verify
Anyone can check a receipt, verdict, graph certificate or Trust Mark without calling us, against the keys published at /.well-known/conscience-keys.json and a pinned root. cg-verify does this today from the repository; it will be published as @consciencegraph/verify on npm and consciencegraph-verify on PyPI. Every event and evidence bundle is checked with the same package.
node integrations/cg-verify/verify.js verdict.json --root root.pub.json
Policy In development
POST /studio/import with a policy document or rule set and its source. The answer is a draft guardrail graph in Guardrail Studio, with each node linked to the clause it came from. A person reviews, signs and publishes it; nothing is published by the import itself.
Identity
Any OIDC, SAML or OAuth 2.1 provider works without a vendor-specific build: Microsoft Entra ID, Okta, Ping Identity, Google Workspace, Auth0, Keycloak, AWS IAM Identity Center. Standard claims from a verified token raise the caller's identity level (L2: acts for a verified organisation; L3: a named, attested agent identity). The level is part of every verdict, and some guardrails require one.
Rules every connector keeps
- No request text leaves the customer. The graph stores hashes; events and evidence carry none.
- Every event and evidence bundle is signed, and the receiver verifies it.
- Latency: 50 ms on a cached receipt, 2 seconds on a cold consult with the assessor.
- A verdict is never edited. A connector can show it, route it and record a person's decision on it.
Conformance In development
The conformance kit, cg-connect-conformance, runs a fixed set of cases against a connector. Passing it is the gate to a listing, and from 2027 to the trust seal. A seal is withdrawn if a later run fails.
- Verdict cases: one for each verdict, plus a checked condition.
- Fail cases: a forged receipt, a replayed receipt, a receipt for another call, and a 503.
- Event cases: a probe event, an escalation round trip, and an evidence bundle verified offline.
Licence and versions
The specification, SDKs and conformance kit are Apache-2.0. Signed graphs, receipts and the Trust Mark stay with the Foundation and the Signing Authority. Versions follow semantic versioning: a connector lists the CG Connect version it passed, and a listing lapses if it fails the kit on a new version and is not fixed within 60 days.