Statements
A statement records what one connected source reported about a subject.
The authenticated key supplies source identity; the request cannot impersonate
another source. sourceKey is optional and identifies a stable row or field inside
that source. Writing a statement does not promote it to curated Brain truth.
Use POST /v1/brains/{handle}/statements to report one.
curl -X POST "$API/v1/brains/tenant:acme/statements" \ -H "authorization: Bearer $NICIA_KEY" \ -H "content-type: application/json" \ -H "idempotency-key: stmt-salesforce-arr" \ -d '{ "subject": "acme", "predicate": "contract_value_usd", "value": 120000, "sourceKey": "salesforce-renewal" }'{ "data": { "statementIds": ["stmt_91ab01"], "outcome": { "kind": "admitted", "batchId": "batch_44a1e0", "policyVersionId": "pol_nicia_open", "acceptedSnapshot": "snap_6f1e4d6b", "changeIds": ["brn_9c2a1f:12:0:0"] }, "statements": [ { "id": "stmt_91ab01", "subject": "acme", "predicate": "contract_value_usd", "value": 120000, "validFrom": "2026-08-14T09:20:00.000Z", "sourceKey": "salesforce-renewal", "assertedBy": { "kind": "service", "id": "key_7f3a1c" }, "status": "active" } ] }}The returned source is the server-bound producer identity. Credential
rotation preserves it. assertedBy is projected from the accepted change; callers
cannot set either field.
A statement without sourceKey is valid when the producer has no durable row key:
curl -X POST "$API/v1/brains/tenant:acme/statements" \ -H "authorization: Bearer $NICIA_KEY" \ -H "content-type: application/json" \ -H "idempotency-key: stmt-handbook-pto" \ -d '{ "subject": "acme", "predicate": "pto_starts_on", "value": "day-one", }'A statement can cite the document it was read from, exactly as a
record write does: evidence names a
document the Brain holds, a quote that must occur in its current version, and
your own locator. The citation grounds the statement only, not the subject it
is about. Add an anchor (§ <heading> or L12-L14) to rest the statement on
a part of the document; the Brain resolves it, and a
standing answer that
depends on the statement is then monitored.
{ "subject": "sunfield", "predicate": "migratory_route", "value": "Pacific Flyway", "evidence": [ { "document": { "id": "environmental-report" }, "quote": "within the Pacific Flyway", "locator": { "page": 14 } } ]}Sources disagree
Section titled “Sources disagree”A later report for the same source stream supersedes. Another stream or source
disagreeing over an overlapping window does not: both statements stay, and the
next /context names it. You do not call GET /findings to find out. That
list is the operator inbox.
curl -X POST "$API/v1/brains/tenant:acme/statements" \ -H "authorization: Bearer $NICIA_KEY" \ -H "content-type: application/json" \ -H "idempotency-key: stmt-netsuite-arr" \ -d '{ "subject": "acme", "predicate": "contract_value_usd", "value": 145000, "sourceKey": "netsuite-renewal" }'curl -X POST "$API/v1/brains/tenant:acme/context" \ -H "authorization: Bearer $NICIA_KEY" \ -H "content-type: application/json" \ -d '{ "prompt": "What is the Acme contract value?", "maxTokens": 2000, "format": "items" }'{ "data": { "text": "", "citations": [], "items": [ { "kind": "record", "id": "stmt-salesforce-arr", "fields": { "contract_value_usd": 120000 }, "status": "contested" }, { "kind": "record", "id": "stmt-netsuite-arr", "fields": { "contract_value_usd": 145000 }, "status": "contested" } ], "staged": 0, "warnings": [ { "kind": "contested", "subject": "acme", "predicate": "contract_value_usd", "count": 2, "detail": "Two sources disagree about acme.contract_value_usd." } ], "receipt": "0198f3a2-7c41-7d3e-9a10-5b6c2fa05e82", "truncated": false }}warnings[] kind contested names the subject and predicate. Per-item
status: "contested" marks the statements in this answer. There is no
conflicts[] field on /context.
Resolve
Section titled “Resolve”GET /findings is the inbox. POST /v1/brains/{handle}/findings/{findingId}/decide
keeps one statement or writes a corrected value. The loser is retained, not
deleted. The call needs review and an Idempotency-Key.
curl "$API/v1/brains/tenant:acme/findings?resolved=false" \ -H "authorization: Bearer $NICIA_KEY"{ "data": { "findings": [ { "id": "fnd_91ab", "subject": "acme", "predicate": "contract_value_usd", "statements": [ { "id": "stmt_91ab01", "subject": "acme", "predicate": "contract_value_usd", "value": 120000, "validFrom": "2026-08-14T09:20:00.000Z", "sourceKey": "salesforce-renewal", "assertedBy": { "kind": "service", "id": "key_7f3a1c" }, "status": "conflicted" }, { "id": "stmt_91ab02", "subject": "acme", "predicate": "contract_value_usd", "value": 145000, "validFrom": "2026-08-14T09:21:00.000Z", "sourceKey": "netsuite-renewal", "assertedBy": { "kind": "service", "id": "key_7f3a1c" }, "status": "conflicted" } ], "detectedAt": "2026-08-14T09:21:01.000Z", "classification": "contradiction", "coverage": "complete", "reasons": ["declared-single-value-conflict"], "supportFingerprint": "sha256:finding-support", "analysisAsOf": "2026-08-14T09:21:01.000Z" } ], "receipt": "0198f3a2-7c41-7d3e-9a10-5b6c30b16f93" }}curl -X POST "$API/v1/brains/tenant:acme/findings/fnd_91ab/decide" \ -H "authorization: Bearer $NICIA_KEY" \ -H "content-type: application/json" \ -H "idempotency-key: resolve-acme-arr" \ -d '{ "keep": "stmt_91ab02", "reviewedReceipt": "0198f3a2-7c41-7d3e-9a10-5b6c30b16f93", "reviewedFingerprint": "sha256:finding-support" }'{ "data": { "outcome": { "kind": "admitted", "batchId": "batch_91ab03", "policyVersionId": "pol_nicia_open", "acceptedSnapshot": "snap_91ab03", "changeIds": ["brn_9c2a1f:15:0:0"] } }}Or send "value": 145000 instead of keep to supersede both with a
corrected number.
- Context — how a contested fact shows up on the read.
- Receipts — reconstructing a served read, and whether it is stale.
- Review — Open vs Reviewed, and settling the queue.
- Records — the subjects and sources statements point at.
What applied then, and what was known then
Section titled “What applied then, and what was known then”Add validFrom and optionally validTo to an ordinary statement. No temporal
schema, history table, or separate write endpoint is needed. A new subject is
created using the Brain’s free-form kind. All writes still follow admission policy;
check outcome.kind before treating a statement as accepted. A batch can contain
up to 500 statements, but compiling their records, fields and relationships must
fit the 100-mutation atomic write limit. If it does not, the API reports the
expanded count and asks for smaller batches; nothing is written.
{ "subject": "atlas-medical", "predicate": "warranty_months", "value": 12, "validFrom": "2026-01-01", "validTo": "2026-08-01"}validFrom is inclusive; validTo is exclusive. Dates mean midnight UTC;
timestamps must include a timezone. Omitting a boundary leaves that side open.
Nicia records when an accepted statement entered the Brain. Callers cannot
backdate recordedAt.
Read what applied in May with the knowledge available at a particular moment:
curl --get "$API/v1/brains/tenant:acme/records/atlas-medical/statements" \ -H "authorization: Bearer $NICIA_KEY" \ --data-urlencode 'predicate=warranty_months' \ --data-urlencode 'validAt=2026-05-15' \ --data-urlencode 'knownAt=2026-06-01T12:00:00Z'Supplying either coordinate selects a temporal read. The omitted coordinate
defaults to read time. The response includes normalized temporal.validAt and
temporal.knownAt, the subject and predicate, applicable statements, and a
receipt. Keep both returned coordinates when following nextCursor so later
writes cannot change the remaining pages. Without either coordinate, the endpoint
returns its usual full statement history.
A correction from the same source stream, with the same subject, predicate,
and validFrom, supersedes the earlier statement. Keep its sourceKey stable.
A correction learned in November can apply to May, while a knownAt cutoff from
before November still reconstructs the earlier value. For a prospective August
policy, close the old window at August 1 and write a new statement starting then.
An independent source’s disagreement remains a conflict; temporal reads do not
choose the winner.
Store the returned receipt beside an agent’s answer. GET /receipts/{id} exposes
receipt.temporalRead, the exact statement page served, including empty results.
Compare it with a new read at the same validAt and current knowledge. This shows
whether knowledge changed; judging the answer also requires the actual answer
and any other context the agent used. A receipt proves exposure, not reliance.
This reconstruction uses TypeGraph’s recorded history and statement business
validity. It currently applies to statement reads, not arbitrary historical
/context requests. Reads fail explicitly beyond 10,000 statements in a Brain,
500 statements for a subject/predicate, or the per-statement history scan bound;
no partial history is substituted silently.