Skip to content

Stream Responses compaction preparation and progress - #1363

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-resp-compact-stream-maple
Oct 31, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-resp-compact-stream-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Initial Responses compaction currently runs before SSE opens, so healthy summary work can hit a 60-second preparation limit without delivering keepalives or progress. With responses_compaction enabled, this accepts a durable Response after upfront validation, yields response.created and response.in_progress, and then performs preparation under the existing execution, cancellation and storage machinery.

Compaction emits metadata-only response.compaction.compacting events for new summary text, at most once per 30 seconds. Only published checkpoints produce output-item lifecycle events and opaque encrypted content; abandoned advisory work creates no output item or index gap. Initial helper preparation has a nonrenewing five-minute allowance within the existing ten-minute Response deadline. Flag-off ordering and caller output limits remain unchanged.

Validation: formatting and strict Clippy pass; 1,089 backend tests pass with 54 opt-in tests ignored; all 53 selected disposable-database tests pass. An encrypted Local SDK smoke completed a controlled 75.7-second compaction with initial lifecycle receipt in 28 ms, 73 keepalives, three progress events and a durable checkpoint verified by a fresh-session reload. Advisory failure, accepted failure, explicit cancellation, disconnect continuation, active tool compaction and history preservation were exercised. Nine real DeepSeek Responses and five summary helpers completed through the attested provider path. Applicable CI is green. No merges or Dev/Production deployments.

@AnthonyRonning
AnthonyRonning marked this pull request as ready for review October 31, 2026 18:57
@AnthonyRonning
AnthonyRonning merged commit db322cf into master Oct 31, 2026
21 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-resp-compact-stream-maple branch October 31, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant