wire: questions to the specialists, ask frames and fixtures
Person API v1 gains Question (task_id, step_id, specialist, asker,
text, state, reason, attempt, answer, timing), POST tasks/{id}/questions,
GET questions/{id} and POST questions/{id}/cancel, the question event,
Task.questions and Step.askable. A question's answer streams as delta
and activity events whose resource is "question". Runner frames ask,
cancel_ask, answer and forget_task (all durable), Sync.asks and
StepReport.askable. AddressesReview routes a question to Review when
the person addresses it. Fixtures for the native apps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 files changed,
+246
−14
internal/wire/frames.go+15 −4internal/wire/questions.go+165 −0internal/wire/tasks.go+8 −0internal/wire/tasks_test.go+37 −0internal/wire/wire_test.go+1 −1internal/wire/wiretest/fixtures.go+5 −1internal/wire/wiretest/testdata/api/ask-request.json+1 −0internal/wire/wiretest/testdata/api/event-question.json+1 −0internal/wire/wiretest/testdata/api/event-step.json+1 −1internal/wire/wiretest/testdata/api/event-task.json+1 −1internal/wire/wiretest/testdata/api/needs-you.json+1 −1internal/wire/wiretest/testdata/api/question.json+1 −0internal/wire/wiretest/testdata/api/task-ready.json+1 −1internal/wire/wiretest/testdata/api/task.json+1 −1internal/wire/wiretest/testdata/api/tasks.json+1 −1internal/wire/wiretest/testdata/frames/answer.json+1 −0internal/wire/wiretest/testdata/frames/ask.json+1 −0internal/wire/wiretest/testdata/frames/cancel_ask.json+1 −0internal/wire/wiretest/testdata/frames/forget_task.json+1 −0internal/wire/wiretest/testdata/frames/step.json+1 −1internal/wire/wiretest/testdata/frames/sync.json+1 −1
Intent
diff --git a/internal/wire/frames.go b/internal/wire/frames.go| index d3a7bfef..1fb13739 100644 |
| --- a/internal/wire/frames.go |
| +++ b/internal/wire/frames.go |
| @@ -10,9 +10,10 @@ import ( |
| const StreamPath = "/api/runner/stream" |
| // Frame types. Instance to runner: welcome, message, cancel, drain, ack, |
| -// tool_result, reset, dispatch, cancel_step, recheck. Runner to instance: |
| -// hello, sync, lease, delta, activity, tool_call, reply, turn, move_in, |
| -// notebook, step, ack. |
| +// tool_result, reset, dispatch, cancel_step, recheck, watch_merge, ask, |
| +// cancel_ask, forget_task. Runner to instance: hello, sync, lease, delta, |
| +// activity, tool_call, reply, turn, move_in, notebook, step, merged, |
| +// answer, ack. |
| const ( |
| FrameToolCall = "tool_call" |
| FrameToolResult = "tool_result" |
| @@ -58,7 +59,7 @@ type Frame struct { |
| // Durable reports whether a frame must be acked and resent until acked. |
| func (f Frame) Durable() bool { |
| switch f.Type { |
| - case FrameMessage, FrameCancel, FrameReply, FrameTurn, FrameToolCall, FrameToolResult, FrameMoveIn, FrameNotebook, FrameReset, FrameDispatch, FrameCancelStep, FrameStep, FrameRecheck, FrameWatchMerge, FrameMerged: |
| + case FrameMessage, FrameCancel, FrameReply, FrameTurn, FrameToolCall, FrameToolResult, FrameMoveIn, FrameNotebook, FrameReset, FrameDispatch, FrameCancelStep, FrameStep, FrameRecheck, FrameWatchMerge, FrameMerged, FrameAsk, FrameCancelAsk, FrameAnswer, FrameForgetTask: |
| return true |
| } |
| return false |
| @@ -123,6 +124,14 @@ func (f Frame) Decode() (any, error) { |
| v = &WatchMergeCommand{} |
| case FrameMerged: |
| v = &MergedReport{} |
| + case FrameAsk: |
| + v = &AskCommand{} |
| + case FrameCancelAsk: |
| + v = &CancelAskCommand{} |
| + case FrameAnswer: |
| + v = &AnswerReport{} |
| + case FrameForgetTask: |
| + v = &ForgetTaskCommand{} |
| default: |
| return nil, fmt.Errorf("%w: frame type %q", ErrStrict, f.Type) |
| } |
| @@ -268,6 +277,8 @@ type Sync struct { |
| // Steps are the step attempts the runner holds (running, or reported |
| // and not yet acked). |
| Steps []StepRun `json:"steps"` |
| + // Asks are the question attempts the runner holds, likewise. |
| + Asks []AskRun `json:"asks"` |
| } |
| // DeltaReport is streamed coordinator text. |
diff --git a/internal/wire/questions.go b/internal/wire/questions.go| new file mode 100644 |
| index 00000000..cacaf3ac |
| --- /dev/null |
| +++ b/internal/wire/questions.go |
| @@ -0,0 +1,165 @@ |
| +package wire |
| + |
| +import ( |
| + "regexp" |
| + "time" |
| +) |
| + |
| +// Asking the implementer (Paul, 2026-11-07): from a task's page its |
| +// creator asks the specialist that did the work a question, and the |
| +// answer streams into the task's thread. The runner resumes that step's |
| +// own session, read-only, in a fresh tree of the commit the step made or |
| +// judged. The coordinator never relays technical detail; it points here. |
| + |
| +// Question states. A question ends in exactly one of answered, failed or |
| +// cancelled. One question of a task runs at a time; later ones queue. |
| +const ( |
| + QuestionQueued = "queued" |
| + QuestionRunning = "running" |
| + QuestionAnswered = "answered" |
| + QuestionFailed = "failed" |
| + QuestionCancelled = "cancelled" |
| +) |
| + |
| +// QuestionTerminal reports whether a question has ended. |
| +func QuestionTerminal(state string) bool { |
| + return state == QuestionAnswered || state == QuestionFailed || state == QuestionCancelled |
| +} |
| + |
| +// EventQuestion carries a Question to every active team member. While it |
| +// runs, its answer streams as delta and activity events whose resource is |
| +// "question" and whose turn_id is the question's id; the answered |
| +// question replaces the draft, as a committed message does in the chat. |
| +const EventQuestion = "question" |
| + |
| +// ResourceQuestion is the event resource for a question and its stream. |
| +const ResourceQuestion = "question" |
| + |
| +// Bounds for questions. |
| +const ( |
| + MaxQuestionText = 4000 |
| + MaxAnswerText = 16 << 10 |
| + MaxQuestions = 50 |
| +) |
| + |
| +// Question is one question a task's creator asked a specialist, and its |
| +// answer. StepID is the step whose session answers: by default the |
| +// newest Engineering step, or the newest Review step when the person |
| +// addresses Review. Answer is "" until it is answered. |
| +type Question struct { |
| + ID string `json:"id"` |
| + Revision int64 `json:"revision"` |
| + TaskID string `json:"task_id"` |
| + StepID string `json:"step_id"` |
| + Specialist string `json:"specialist"` |
| + Asker string `json:"asker"` |
| + Text string `json:"text"` |
| + State string `json:"state"` |
| + Reason string `json:"reason"` |
| + Attempt int64 `json:"attempt"` |
| + Answer string `json:"answer"` |
| + CreatedAt time.Time `json:"created_at"` |
| + UpdatedAt time.Time `json:"updated_at"` |
| + Timing *TurnTiming `json:"timing"` |
| +} |
| + |
| +// AskQuestion is the body of POST /api/v1/tasks/{id}/questions. |
| +// Specialist is "engineering", "review" or "" (Review when the text |
| +// addresses it, else Engineering). The same key with another body is 409. |
| +// The response is 202 with the Question; POST /api/v1/questions/{id}/ |
| +// cancel answers 202 with TaskAccepted, or 409 once it has ended. |
| +type AskQuestion struct { |
| + Text string `json:"text"` |
| + IdempotencyKey string `json:"idempotency_key"` |
| + Specialist string `json:"specialist"` |
| +} |
| + |
| +var reviewWord = regexp.MustCompile(`(?i)\breview(?:er|ers|ed|ing|s)?\b`) |
| + |
| +// AddressesReview reports whether a question with no chosen specialist |
| +// goes to Review: the person addresses Review or asks about the review. |
| +func AddressesReview(text string) bool { return reviewWord.MatchString(text) } |
| + |
| +// Frames for questions. ask and cancel_ask go to the runner; answer |
| +// comes back; forget_task tells the runner a task ended, so it can |
| +// delete the sessions it kept for the task's steps. |
| +const ( |
| + FrameAsk = "ask" |
| + FrameCancelAsk = "cancel_ask" |
| + FrameAnswer = "answer" |
| + FrameForgetTask = "forget_task" |
| +) |
| + |
| +// AskCommand asks the step's own session one question. CandidateSHA is |
| +// the commit the step made (Engineering) or judged (Review); BaseSHA the |
| +// task's base, for the change. The runner keeps the session id and its |
| +// account; neither leaves the runner. |
| +type AskCommand struct { |
| + Person string `json:"person"` |
| + TaskID string `json:"task_id"` |
| + StepID string `json:"step_id"` |
| + QuestionID string `json:"question_id"` |
| + Attempt int64 `json:"attempt"` |
| + Specialist string `json:"specialist"` |
| + Repo string `json:"repo"` |
| + Branch string `json:"branch"` |
| + BaseSHA string `json:"base_sha"` |
| + CandidateSHA string `json:"candidate_sha"` |
| + Title string `json:"title"` |
| + Text string `json:"text"` |
| +} |
| + |
| +// CancelAskCommand stops one attempt of a question. |
| +type CancelAskCommand struct { |
| + Person string `json:"person"` |
| + TaskID string `json:"task_id"` |
| + QuestionID string `json:"question_id"` |
| + Attempt int64 `json:"attempt"` |
| +} |
| + |
| +// AnswerReport moves a question forward: running when its session |
| +// starts, then answered with the text, or failed or cancelled with a |
| +// reason from AnswerReasons. |
| +type AnswerReport struct { |
| + TaskID string `json:"task_id"` |
| + QuestionID string `json:"question_id"` |
| + Attempt int64 `json:"attempt"` |
| + State string `json:"state"` |
| + Reason string `json:"reason"` |
| + Text string `json:"text"` |
| + Timing *TurnTiming `json:"timing"` |
| +} |
| + |
| +// ForgetTaskCommand: the task is done or cancelled. |
| +type ForgetTaskCommand struct { |
| + Person string `json:"person"` |
| + TaskID string `json:"task_id"` |
| +} |
| + |
| +// AskRun is a question attempt the runner holds, in sync. |
| +type AskRun struct { |
| + QuestionID string `json:"question_id"` |
| + Attempt int64 `json:"attempt"` |
| + State string `json:"state"` |
| +} |
| + |
| +// AnswerReasons are the codes a runner may report for a question that |
| +// was not answered. session_gone: the step's session is no longer kept |
| +// (it ran before sessions were kept, or its retention ended). |
| +var AnswerReasons = map[string]bool{ |
| + "": true, |
| + "cancelled": true, |
| + "interrupted": true, |
| + "runner_restarted": true, |
| + "turn_timeout": true, |
| + "provider_failed": true, |
| + "provider_rejected": true, |
| + "policy_rejected": true, |
| + "account_unavailable": true, |
| + "sign_in_again": true, |
| + "clone_failed": true, |
| + "candidate_unavailable": true, |
| + "session_gone": true, |
| + "superseded": true, |
| + "task_ended": true, |
| +} |
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go| index 3f01b3c8..fbfa4b1d 100644 |
| --- a/internal/wire/tasks.go |
| +++ b/internal/wire/tasks.go |
| @@ -199,6 +199,9 @@ type Step struct { |
| Checks string `json:"checks"` |
| Gate string `json:"gate"` |
| ExitCode *int `json:"exit_code"` |
| + // Askable is true while the runner keeps the step's own session, so |
| + // the task's creator can ask it a question (Engineering and Review). |
| + Askable bool `json:"askable"` |
| } |
| // Task is one piece of work under a project. Branch is the task's own |
| @@ -233,6 +236,9 @@ type Task struct { |
| ReviewLabel string `json:"review_label"` |
| NeedsYou string `json:"needs_you"` |
| FixRounds int `json:"fix_rounds"` |
| + // Questions are the creator's questions to the specialists and their |
| + // answers, oldest first (the task thread beside Thread's notes). |
| + Questions []Question `json:"questions"` |
| } |
| // TaskList is GET /api/v1/tasks: the team's tasks, newest first. |
| @@ -391,6 +397,8 @@ type StepReport struct { |
| Gate string `json:"gate"` |
| ExitCode *int `json:"exit_code"` |
| Output string `json:"output"` |
| + // Askable: the runner kept the step's session for questions. |
| + Askable bool `json:"askable"` |
| } |
| // RecheckCommand asks the runner to check now what its agent reaches. |
diff --git a/internal/wire/tasks_test.go b/internal/wire/tasks_test.go| index 56ee2bc3..aa0462d9 100644 |
| --- a/internal/wire/tasks_test.go |
| +++ b/internal/wire/tasks_test.go |
| @@ -49,3 +49,40 @@ func TestTaskToolsAreConverseTools(t *testing.T) { |
| } |
| } |
| } |
| + |
| +// Asking the implementer: the question and its cancel go to the runner, |
| +// the answer comes back, and a task's end lets the runner forget its |
| +// sessions. All durable; the answer's streamed text rides the delta and |
| +// activity frames, which are not. |
| +func TestAskFramesAreDurable(t *testing.T) { |
| + for _, kind := range []string{wire.FrameAsk, wire.FrameCancelAsk, wire.FrameAnswer, wire.FrameForgetTask} { |
| + if !(wire.Frame{Type: kind}).Durable() { |
| + t.Fatalf("%s is not durable", kind) |
| + } |
| + } |
| +} |
| + |
| +func TestQuestionTerminal(t *testing.T) { |
| + for state, want := range map[string]bool{wire.QuestionQueued: false, wire.QuestionRunning: false, wire.QuestionAnswered: true, wire.QuestionFailed: true, wire.QuestionCancelled: true} { |
| + if wire.QuestionTerminal(state) != want { |
| + t.Fatalf("%s terminal=%v", state, !want) |
| + } |
| + } |
| +} |
| + |
| +// AddressesReview decides who answers when the person did not choose: |
| +// Review when they address it or ask about the review, else Engineering. |
| +func TestAddressesReview(t *testing.T) { |
| + for text, want := range map[string]bool{ |
| + "Review, anything you were unsure about?": true, |
| + "Why did the review approve this?": true, |
| + "What did the reviewer check?": true, |
| + "What did you change and why?": false, |
| + "Can you preview the page?": false, |
| + "": false, |
| + } { |
| + if wire.AddressesReview(text) != want { |
| + t.Fatalf("AddressesReview(%q) = %v", text, !want) |
| + } |
| + } |
| +} |
diff --git a/internal/wire/wire_test.go b/internal/wire/wire_test.go| index 79ef363f..d75e9ffd 100644 |
| --- a/internal/wire/wire_test.go |
| +++ b/internal/wire/wire_test.go |
| @@ -33,7 +33,7 @@ func TestFrameFixturesRoundTrip(t *testing.T) { |
| t.Fatalf("%s: round trip\n got %s\nwant %s", name, out, raw) |
| } |
| } |
| - for _, kind := range []string{wire.FrameWelcome, wire.FrameMessage, wire.FrameCancel, wire.FrameDrain, wire.FrameAck, wire.FrameHello, wire.FrameSync, wire.FrameDelta, wire.FrameReply, wire.FrameTurn, wire.FrameLease, wire.FrameToolCall, wire.FrameToolResult, wire.FrameActivity, wire.FrameMoveIn, wire.FrameNotebook, wire.FrameReset, wire.FrameDispatch, wire.FrameCancelStep, wire.FrameStep, wire.FrameRecheck, wire.FrameWatchMerge, wire.FrameMerged} { |
| + for _, kind := range []string{wire.FrameWelcome, wire.FrameMessage, wire.FrameCancel, wire.FrameDrain, wire.FrameAck, wire.FrameHello, wire.FrameSync, wire.FrameDelta, wire.FrameReply, wire.FrameTurn, wire.FrameLease, wire.FrameToolCall, wire.FrameToolResult, wire.FrameActivity, wire.FrameMoveIn, wire.FrameNotebook, wire.FrameReset, wire.FrameDispatch, wire.FrameCancelStep, wire.FrameStep, wire.FrameRecheck, wire.FrameWatchMerge, wire.FrameMerged, wire.FrameAsk, wire.FrameCancelAsk, wire.FrameAnswer, wire.FrameForgetTask} { |
| if !seen[kind] { |
| t.Fatalf("no fixture for frame %s", kind) |
| } |
diff --git a/internal/wire/wiretest/fixtures.go b/internal/wire/wiretest/fixtures.go| index 89f2d342..a8c63a52 100644 |
| --- a/internal/wire/wiretest/fixtures.go |
| +++ b/internal/wire/wiretest/fixtures.go |
| @@ -55,7 +55,7 @@ func APIType(name string) any { |
| return &wire.CancelAccepted{} |
| case "error-conflict.json": |
| return &wire.Error{} |
| - case "event-delta.json", "event-turn.json", "event-runner.json", "event-card.json", "event-project.json", "event-activity.json", "event-coordinator.json", "event-task.json", "event-step.json": |
| + case "event-delta.json", "event-turn.json", "event-runner.json", "event-card.json", "event-project.json", "event-activity.json", "event-coordinator.json", "event-task.json", "event-step.json", "event-question.json": |
| return &wire.Event{} |
| case "project.json": |
| return &wire.Project{} |
| @@ -85,6 +85,10 @@ func APIType(name string) any { |
| return &wire.StepLog{} |
| case "thread-request.json": |
| return &wire.PostThread{} |
| + case "question.json": |
| + return &wire.Question{} |
| + case "ask-request.json": |
| + return &wire.AskQuestion{} |
| } |
| return nil |
| } |
diff --git a/internal/wire/wiretest/testdata/api/ask-request.json b/internal/wire/wiretest/testdata/api/ask-request.json| new file mode 100644 |
| index 00000000..37d2c7dd |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/api/ask-request.json |
| @@ -0,0 +1 @@ |
| +{"text":"What did you change and why?","idempotency_key":"k-ask-1","specialist":""} |
diff --git a/internal/wire/wiretest/testdata/api/event-question.json b/internal/wire/wiretest/testdata/api/event-question.json| new file mode 100644 |
| index 00000000..2f44d396 |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/api/event-question.json |
| @@ -0,0 +1 @@ |
| +{"cursor":51,"type":"question","resource":"question","id":"q_0001","revision":2,"attempt":1,"data":{"id":"q_0001","revision":2,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"running","reason":"","attempt":1,"answer":"","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:01Z","timing":null}} |
diff --git a/internal/wire/wiretest/testdata/api/event-step.json b/internal/wire/wiretest/testdata/api/event-step.json| index d1afb686..d31c40b8 100644 |
| --- a/internal/wire/wiretest/testdata/api/event-step.json |
| +++ b/internal/wire/wiretest/testdata/api/event-step.json |
| @@ -1 +1 @@ |
| -{"cursor":43,"type":"step","resource":"step","id":"s_0001","revision":3,"attempt":1,"data":{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null}} |
| +{"cursor":43,"type":"step","resource":"step","id":"s_0001","revision":3,"attempt":1,"data":{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true}} |
diff --git a/internal/wire/wiretest/testdata/api/event-task.json b/internal/wire/wiretest/testdata/api/event-task.json| index f3ec33d6..8d3e6050 100644 |
| --- a/internal/wire/wiretest/testdata/api/event-task.json |
| +++ b/internal/wire/wiretest/testdata/api/event-task.json |
| @@ -1 +1 @@ |
| -{"cursor":42,"type":"task","resource":"task","id":"tk0001","revision":5,"data":{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","fix_rounds":0}} |
| +{"cursor":42,"type":"task","resource":"task","id":"tk0001","revision":5,"data":{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","fix_rounds":0,"questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}]}} |
diff --git a/internal/wire/wiretest/testdata/api/needs-you.json b/internal/wire/wiretest/testdata/api/needs-you.json| index 2f30bb89..d2b20994 100644 |
| --- a/internal/wire/wiretest/testdata/api/needs-you.json |
| +++ b/internal/wire/wiretest/testdata/api/needs-you.json |
| @@ -1 +1 @@ |
| -{"items":[{"id":"tk0001","revision":9,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"ready_to_merge","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null},{"id":"s_0002","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","log_tail":"ok \tamadan.net/oficina/sample/panes\t0.012s","started_at":"2026-11-07T10:01:45Z","finished_at":"2026-11-07T10:02:30Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0},{"id":"s_0003","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"The change makes EdgeSwipe go back and keeps the pane order. Approved.","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"claude","account":"claude-a","verdict":"approve","review_label":"same_family","findings":[{"id":"rf_0001","text":"Consider a test for a swipe that starts mid-screen.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:04:10Z"}],"checks":"","gate":"","exit_code":null}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:04:10Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"merge","fix_rounds":0}]} |
| +{"items":[{"id":"tk0001","revision":9,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"ready_to_merge","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true},{"id":"s_0002","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","log_tail":"ok \tamadan.net/oficina/sample/panes\t0.012s","started_at":"2026-11-07T10:01:45Z","finished_at":"2026-11-07T10:02:30Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0,"askable":false},{"id":"s_0003","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"The change makes EdgeSwipe go back and keeps the pane order. Approved.","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"claude","account":"claude-a","verdict":"approve","review_label":"same_family","findings":[{"id":"rf_0001","text":"Consider a test for a swipe that starts mid-screen.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:04:10Z"}],"checks":"","gate":"","exit_code":null,"askable":true}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:04:10Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"merge","fix_rounds":0,"questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}]}]} |
diff --git a/internal/wire/wiretest/testdata/api/question.json b/internal/wire/wiretest/testdata/api/question.json| new file mode 100644 |
| index 00000000..8cd7d3a7 |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/api/question.json |
| @@ -0,0 +1 @@ |
| +{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":{"queued_ms":41,"start_ms":2310,"first_event_ms":620,"first_thinking_ms":0,"first_tool_ms":1800,"first_text_ms":4100,"last_text_ms":6900,"result_ms":7000,"cold":true}} |
diff --git a/internal/wire/wiretest/testdata/api/task-ready.json b/internal/wire/wiretest/testdata/api/task-ready.json| index 78a140c2..a6dfcd29 100644 |
| --- a/internal/wire/wiretest/testdata/api/task-ready.json |
| +++ b/internal/wire/wiretest/testdata/api/task-ready.json |
| @@ -1 +1 @@ |
| -{"id":"tk0001","revision":9,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"ready_to_merge","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null},{"id":"s_0002","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","log_tail":"ok \tamadan.net/oficina/sample/panes\t0.012s","started_at":"2026-11-07T10:01:45Z","finished_at":"2026-11-07T10:02:30Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0},{"id":"s_0003","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"The change makes EdgeSwipe go back and keeps the pane order. Approved.","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"claude","account":"claude-a","verdict":"approve","review_label":"same_family","findings":[{"id":"rf_0001","text":"Consider a test for a swipe that starts mid-screen.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:04:10Z"}],"checks":"","gate":"","exit_code":null}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:04:10Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"merge","fix_rounds":0} |
| +{"id":"tk0001","revision":9,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"ready_to_merge","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true},{"id":"s_0002","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","log_tail":"ok \tamadan.net/oficina/sample/panes\t0.012s","started_at":"2026-11-07T10:01:45Z","finished_at":"2026-11-07T10:02:30Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0,"askable":false},{"id":"s_0003","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"The change makes EdgeSwipe go back and keeps the pane order. Approved.","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"claude","account":"claude-a","verdict":"approve","review_label":"same_family","findings":[{"id":"rf_0001","text":"Consider a test for a swipe that starts mid-screen.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:04:10Z"}],"checks":"","gate":"","exit_code":null,"askable":true}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:04:10Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"merge","fix_rounds":0,"questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}]} |
diff --git a/internal/wire/wiretest/testdata/api/task.json b/internal/wire/wiretest/testdata/api/task.json| index 4bbf5711..c4f86d80 100644 |
| --- a/internal/wire/wiretest/testdata/api/task.json |
| +++ b/internal/wire/wiretest/testdata/api/task.json |
| @@ -1 +1 @@ |
| -{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","fix_rounds":0} |
| +{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","fix_rounds":0,"questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}]} |
diff --git a/internal/wire/wiretest/testdata/api/tasks.json b/internal/wire/wiretest/testdata/api/tasks.json| index 71aaccea..199b379b 100644 |
| --- a/internal/wire/wiretest/testdata/api/tasks.json |
| +++ b/internal/wire/wiretest/testdata/api/tasks.json |
| @@ -1 +1 @@ |
| -{"items":[{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","fix_rounds":0}]} |
| +{"items":[{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","fix_rounds":0,"questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}]}]} |
diff --git a/internal/wire/wiretest/testdata/frames/answer.json b/internal/wire/wiretest/testdata/frames/answer.json| new file mode 100644 |
| index 00000000..ca15b719 |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/frames/answer.json |
| @@ -0,0 +1 @@ |
| +{"id":"r-31","type":"answer","data":{"task_id":"tk0001","question_id":"q_0001","attempt":1,"state":"answered","reason":"","text":"I made the edge swipe return true, so a swipe from the left edge goes back a pane.","timing":{"queued_ms":41,"start_ms":2310,"first_event_ms":620,"first_thinking_ms":0,"first_tool_ms":1800,"first_text_ms":4100,"last_text_ms":6900,"result_ms":7000,"cold":true}}} |
diff --git a/internal/wire/wiretest/testdata/frames/ask.json b/internal/wire/wiretest/testdata/frames/ask.json| new file mode 100644 |
| index 00000000..2d5e3557 |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/frames/ask.json |
| @@ -0,0 +1 @@ |
| +{"id":"c21","type":"ask","data":{"person":"owner@example.com","task_id":"tk0001","step_id":"s_0001","question_id":"q_0001","attempt":1,"specialist":"engineering","repo":"amadan.net/oficina/sample","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","title":"Swipe back from the edge does nothing","text":"What did you change and why?"}} |
diff --git a/internal/wire/wiretest/testdata/frames/cancel_ask.json b/internal/wire/wiretest/testdata/frames/cancel_ask.json| new file mode 100644 |
| index 00000000..19e87891 |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/frames/cancel_ask.json |
| @@ -0,0 +1 @@ |
| +{"id":"c22","type":"cancel_ask","data":{"person":"owner@example.com","task_id":"tk0001","question_id":"q_0001","attempt":1}} |
diff --git a/internal/wire/wiretest/testdata/frames/forget_task.json b/internal/wire/wiretest/testdata/frames/forget_task.json| new file mode 100644 |
| index 00000000..455218d8 |
| --- /dev/null |
| +++ b/internal/wire/wiretest/testdata/frames/forget_task.json |
| @@ -0,0 +1 @@ |
| +{"id":"c23","type":"forget_task","data":{"person":"owner@example.com","task_id":"tk0001"}} |
diff --git a/internal/wire/wiretest/testdata/frames/step.json b/internal/wire/wiretest/testdata/frames/step.json| index ef2910c6..05b27835 100644 |
| --- a/internal/wire/wiretest/testdata/frames/step.json |
| +++ b/internal/wire/wiretest/testdata/frames/step.json |
| @@ -1 +1 @@ |
| -{"id":"r-12","type":"step","data":{"task_id":"tk0001","step_id":"s_0001","attempt":1,"state":"done","reason":"","base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"termination":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"output":""}} |
| +{"id":"r-12","type":"step","data":{"task_id":"tk0001","step_id":"s_0001","attempt":1,"state":"done","reason":"","base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"termination":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","log_tail":"Edit panes/swipe.go\nDone.","family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"output":"","askable":true}} |
diff --git a/internal/wire/wiretest/testdata/frames/sync.json b/internal/wire/wiretest/testdata/frames/sync.json| index d85a549f..6d5a0f49 100644 |
| --- a/internal/wire/wiretest/testdata/frames/sync.json |
| +++ b/internal/wire/wiretest/testdata/frames/sync.json |
| @@ -1 +1 @@ |
| -{"id":"r-sync-1","type":"sync","data":{"sessions":[{"person":"owner@example.com","provider":"claude","account":"claude-a","session_id":"00000000-0000-4000-8000-000000000001","last_turn":"t_0001"}],"runs":[{"turn_id":"t_0001","attempt":1,"state":"running"}],"steps":[{"task_id":"tk0001","step_id":"s_0001","attempt":1,"state":"running","candidate_sha":""}]}} |
| +{"id":"r-sync-1","type":"sync","data":{"sessions":[{"person":"owner@example.com","provider":"claude","account":"claude-a","session_id":"00000000-0000-4000-8000-000000000001","last_turn":"t_0001"}],"runs":[{"turn_id":"t_0001","attempt":1,"state":"running"}],"steps":[{"task_id":"tk0001","step_id":"s_0001","attempt":1,"state":"running","candidate_sha":""}],"asks":[{"question_id":"q_0001","attempt":1,"state":"running"}]}} |