Repository navigation
docs(webhook_out): design note for a turn_finished outbound event (#962) - #976
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Step 1 of #962: a design note for a
turn_finishedoutbound webhook event. Docs only, no code.Why
After an Allow, the gateway (tole-gateway#16, and persona reply routing in #969) still polls session status and the log, because no event says a turn ended. The note settles the shape before any implementation touches the outbound data path or the turn runner.
Changes
docs/turn-finished-event.md: event name and body (ids and a status word only), the mapping from everyTurnOutcometo a closed status vocabulary, opt-in through the existingeventsallow-list (default unchanged), signing and retry identical to feat(cron): outbound signed webhook delivery target for cron results and approval requests #911 v2, idempotency key, ordering against the approval events, size cap, backpressure and queue choice, redaction design and leak-check test plan, what the gateway does with it, and nine owner decisions (D1 to D9). Each point is marked FIXED, RECOMMENDATION or DECISION NEEDED.docs/webhook-delivery-design.md: a pointer in section 2 and open item 13.faces.md, README status line anddocs/epics.md. They change in the implementation PR, which the note lists.Testing
TurnOutcome;approval_idnot available at settle;entriesvsseqcursor;Eventenum vsvalid_event; session id charset; Option A not being free; faces.md format; stderr sink). All were applied in the second commit, except the cursor question, which stays open as D2.