Untitled conversation
- User
[Reborn WebUI Beta] Add WebUI idempotency and accepted-message ledger Parent tracker: #3607 Module: M2 — Native Product Workflow / Inbound Facade Priority: P0
Goal
Make WebUI mutations idempotent so duplicate browser submits do not create duplicate turns/messages.
Scope
- Use client action id / idempotency key for create-thread and send-message.
- Preserve accepted-message ref/outcome for duplicate requests.
- Handle concurrent duplicate submissions safely.
Acceptance criteria
- Duplicate send returns the same accepted ref/outcome.
- Concurrent duplicate send creates at most one accepted message/turn.
- Failed validation does not create a ghost turn/message.
- Retry after transient unavailable state has deterministic behavior.
- Tests cover same-thread duplicate, cross-thread duplicate rejection, and concurrent duplicate behavior.
Interface
No new interfaces are introduced.
- Assistant
I'll explore the WebUI mutation flow and any existing idempotency patterns so we can add an accepted-message ledger.
- Assistant
Implementing user-scoped idempotency (not per-thread) and adding the missing contract tests.
- Assistant
Implementing user-scoped accepted-message idempotency and adding the missing contract tests.
- Assistant
Implemented WebUI idempotency and the accepted-message ledger in
RebornServices(#3607).Changes
Accepted-message ledger scope (
reborn_services.rs)Split binding IDs so idempotency is actor-scoped, not thread-scoped:
webui_accepted_message_binding_id—tenant + agent + actor— keys the accepted-message ledger via(source_binding_id, client_action_id)webui_turn_source_binding_id— includesthread— used for turn submissionsource_binding_ref/
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.