Skip to content

refactor(eve): represent pending input as assistant-turn batches - #1737

Open
ruiconti wants to merge 3 commits into
rui/hitl-late-approval-resumefrom
rui/hitl-pending-input-store
Open

refactor(eve): represent pending input as assistant-turn batches#1737
ruiconti wants to merge 3 commits into
rui/hitl-late-approval-resumefrom
rui/hitl-pending-input-store

Conversation

@ruiconti

@ruiconti ruiconti commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

Replace the singleton pending-input batch with an ordered list of assistant-turn input batches. A batch contains the requests created by one assistant turn and stores that turn's model output once. A batch containing only approvals is an assistant-turn approval batch.

Resolution still reads and removes only the oldest batch, so behavior stays unchanged. Duplicate request IDs fail instead of overwriting; all open IDs remain visible across batches; v1 durable snapshots migrate into one v2 batch.

Data flow

Before: each setPendingInputBatch replaced the one pending batch.

After: each call appends one assistant-turn input batch. Existing resolver code reads the oldest batch through the same API and leaves later batches untouched.

Why this shape

The model output is shared by requests created in the same assistant turn and must be restored exactly once. A simple ordered batch list represents that directly. There is no separate store and no normalized request↔batch index.

Scope

Data-only stage stacked on #1727. Required/dismissable behavior, deferred messages, stale handling, routing, and protocol events do not change.

Signed-off-by: Rui Conti <ruiconti@gmail.com>
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eve-docs Ready Ready Preview Aug 6, 2026 9:05pm
eve-docs-4759 Ready Ready Preview, v0 Aug 6, 2026 9:05pm

Signed-off-by: Rui Conti <ruiconti@gmail.com>
Signed-off-by: Rui Conti <ruiconti@gmail.com>
@ruiconti ruiconti changed the title refactor(eve): store pending input by suffix group refactor(eve): represent pending input as assistant-turn batches Aug 6, 2026
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