Write Session Relationship Context
Append or replace developer-owned relationship context for one session.
This is a typed writeback layer for product facts such as “founding friend” or
“inner circle”. It is deliberately NOT canon/persona mutation: the data is
stored as a session context event, optionally permanent until soft-delete,
and then consumed through the same speakable/private/forbidden lanes as
POST /context-events. Use relationship_context_key +
write_mode=replace_key for durable lifecycle updates.
Authentication
LoreOS runtime API key (ck_...), sent as Authorization: Bearer <key>.
Path parameters
Request
Optional app-side label such as founding_friend or inner_circle.
Stable app-owned key for later replacement/deletion, e.g. tier:founding_friend. Required when write_mode=replace_key.
append keeps existing active context. replace_key soft-deletes active rows with the same relationship_context_key before storing the new row.
Relationship facts the character may say if relevant. These are planning-guarded against generic first-meeting contradictions.
Planning-only relationship context; never spoken directly.