Generated Round
Persist an assistant-produced, non-user-confirmed statement as AI_GENERATED.
This is the dedicated, auditable write surface for the AI_GENERATED class.
It is deliberately separate from /infer (which only ever writes
AI_INFERRED and never produces AI_GENERATED): the safety-critical class gets
its own surface so it can be audited in isolation. The scaffolding mirrors
ingest_round/infer_round for auth, quota, ownership, and RLS. A
single MemoryRecord is written through the writer chokepoint with
provenance=AI_GENERATED (record_type FACTUAL, role assistant) and its new
uid is returned.
SAFETY (EC1A.4, locked spec 9): AI_GENERATED records are NEVER SIP-eligible
for the factual sections (identity, active_context, preferences). The SIP
builder raises on any AI_GENERATED record placed in those inputs, and the
retrieval layer (cosine.py SIP_ELIGIBLE) excludes AI_GENERATED at the SQL
level so it is never even selected into the factual candidate set.
AI_GENERATED only ever surfaces in the uncertain_facts SIP section,
explicitly marked uncertain. This endpoint adds the first live writer for the
class and creates no path by which its output can reach a factual SIP slot.
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.
