← All workflows

Workflow

OpenAI Responses state, compaction and retention

Choose server-managed chaining or replay, compare compaction costs, and document store:false and ZDR settings.

Sources checked:

What you can do

Choose state and retention settings that fit the task and confirm them on a test conversation.

Track persisted resources and billed prior input separately, then test whether compaction preserves the facts the work needs.

Build your execution checklist

Inputs are processed in this browser only and cleared when you close or refresh the page.

You need a multi-turn Responses API flow and want to control retention and input cost.

Read the full steps

Choose a stored chain or stateless replay

You need a multi-turn Responses API flow and want to control retention and input cost.

  1. For stored chaining, choose previous_response_id or a Conversation based on the required state lifetime. Log actual input and cached token detail per turn.
  2. For stateless calls, set store:false and pass every item from each response's output array into the next request. The Responses API returns encrypted reasoning items by default; keep the history that produced them unchanged.
  3. Compare three identical turns with both strategies and verify answers, tool call continuity, retention controls and billed usage.

Measure compaction on a long conversation

The conversation's input cost or latency grows with each turn.

  1. Record baseline turn count, input/output tokens per response, cache use and latency for a repeatable multi-turn task.
  2. Test server-side compact_threshold or the standalone compaction flow with the same conversation and output checks. Keep the opaque compaction item intact.
  3. Compare total cost and retained facts across the entire run, including any standalone compaction request. Roll out only when the task's acceptance checks still pass.

Review Responses data-retention controls

You need to identify which retention settings and features apply to an integration.

  1. List the API organization and project setting and record the requested store value. Identify every used feature including background processing, file input and remote tools.
  2. Read the endpoint-specific data controls and confirm your organization's approved contract and feature configuration. A per-request store flag alone does not change abuse monitoring policy.
  3. If the requirement prohibits temporary state, use a permitted foreground fixture and verify each tool separately. Escalate unresolved exceptions to the organization privacy owner.

Scope & limits

  • Check the latest contract and feature settings before drawing retention conclusions.

Verified sources

Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.