sources 50 · kbTokens 100,000 · topics 1,000.
Read the compact AI rules
Turn a prepared knowledge draft into live answers by reviewing its facts, choosing topics and confirming publication.
Input: Prepared draft ·
Concurrency: Current revisions ·
Finish: Confirmed live topics
The important part
- A prepared source is not the same as published knowledge.
- Use the latest base revision and draft edit revision for each save or acceptance.
- Warnings and flagged topics need explicit human choices.
Find the draft from its job
An import returns HTTP 202. Example response, with illustrative IDs:id. Use a bounded delay, for example one second increasing to five seconds, and stop when the user leaves the screen. This is a client choice, not a required server interval. Honour next_retry_at and HTTP retry guidance. Resume later from the same job ID rather than submitting another import.
Read the draft. Legacy normalization is projected without being saved, using stable draft-scoped piece IDs. An explicit save or accept persists the repair. Retain the returned
data.edit_revision, not an earlier cached value. Show each topic’s facts, title and review reasons. Edit with expected_revision, expected_draft_revision, topic_id and topic; save before accepting.
Choose and publish reviewed facts
POST to accept draft with a new operation key. Use the current base revision, current draft edit revision and the explicit IDs the reviewer selected:acknowledge_warnings:true. Individually approved flagged pieces go in approved_flagged_topic_ids; never populate that array automatically. An unticked replacement retains the existing live topic.
Acceptance returns another job. Poll until its publication is confirmed, then reread the base and live topics. Lists use items,next_cursor, with limit 1–100. A stale topic cursor requires restarting the list.
Handle a stale review
Onstale_revision, reload both the current base and draft. Show the reviewer what changed before submitting again. Do not simply copy a newer revision number into an old approval: the facts or selected replacements may have changed.
Keep the idempotency key for an uncertain save. Use a new key only for a genuinely new edit or acceptance decision. idempotency_conflict means the same key was sent with different input; preserve the original operation record.