Infer Round
Classify an assistant turn and, when it is an inference, persist it.
Mirrors ingest_round for auth, quota, ownership, and RLS. The
assistant turn’s provenance is decided by the pure classifier
classify_turn_provenance (no LLM):
-
AI_INFERRED: the assistant turn directly answers a prior user factual question. A single MemoryRecord is written through the writer chokepoint with
provenance=AI_INFERRED(record_type FACTUAL, role assistant).records_written=1and the new uid is returned. The SIP builder marks AI_INFERREDinference_onlyon the read side, so it is never presented as established fact. -
AI_GENERATED: no qualifying prior user question. AI_GENERATED has NO live write path until PR-3, so nothing is written here. The response carries
records_written=0andprovenance=AI_GENERATED; no record is created.
IDOR AUDIT PASS - session_id and user_id are attributed to the
authenticated principal, never the request body.
Authorizations
EDN API key presented as 'Bearer ' in the Authorization header. Create and manage keys from the Console.
