Return candidates for review
Inspect candidate content, source, confidence, evidence quote, turn indexes, action relevance, and rejection reason without writing memory.
turns → encrypted candidate reviewContextDB Formation · Hosted Alpha
Submit structured turns after a call, chat, or workflow. ContextDB removes PII before the provider, extracts quote-backed candidates, applies blocking gates, and either returns them for review or commits them to the correct user partition.
Why it exists
A direct remember call is right when your application already
knows the exact fact. Formation is for raw interaction turns that still
need extraction, provenance, confidence, evidence, deduplication, and a
decision about whether anything should be stored.
The API object
Every submission requires an idempotency key. Repeating the same request resolves to the same job; changing the payload under that key fails closed.
The poll response shows provider attempts, elapsed time, accepted and rejected counts, terminal reason, candidate evidence, and committed memory IDs when commit mode succeeds.
# enqueue POST /v1/formation/jobs Idempotency-Key: call-456-formation-v1 { "user_id": "customer-123", "mode": "propose", "turns": [ {"speaker": "user", "content": "I prefer Saturday mornings."} ] } → 202 {"job_id":"frm_…","status":"queued"} # poll GET /v1/formation/jobs/frm_… → succeeded · completed · candidate accepted
Two modes
Inspect candidate content, source, confidence, evidence quote, turn indexes, action relevance, and rejection reason without writing memory.
turns → encrypted candidate reviewAccepted candidates enter the scoped memory store with stable commit identity. The result carries memory IDs and a read-your-writes consistency token.
validated stage → idempotent memory writeDurability and safety
Request, staged candidate, and result payloads use project and job-bound authenticated encryption. Raw turns and candidates do not enter plaintext control columns.
Jobs carry leases, deadlines, provider-attempt limits, and worker limits. Expired leases produce named worker-loss attempts instead of a permanent running state.
A staged candidate has one commit identity. If a worker exits after the memory write, the next lease owner recovers that memory instead of writing another copy.
Use cases
Extract stable caller preferences after the phone conversation without adding turn latency.
Propose durable account context for operator review before it reaches future agents.
Turn structured human and agent events into sourced memories with a named failure state.
Offer post-session memory creation while keeping the platform's realtime runtime independent.
Verified behavior
This is functional evidence, not a quality benchmark, COGS result, sustained-load test, worker-failover proof, or availability commitment.
Questions
Use remember when your host knows the exact fact. Use Formation when structured turns still need extraction and validation.
No. Submission returns a job ID immediately. The host polls after the interaction while the worker runs independently.
No. The Hosted Alpha contract accepts structured text turns only.
No. Cancellation, job listing, retention cleanup, and scheduling are not part of the current contract.
The implementation uses idempotent enqueue, staged candidates, stable commit identity, and recovery tests. ContextDB does not claim exactly-once infrastructure or an availability SLO.
Start with propose mode, inspect one candidate, then decide whether commit fits your workflow.