Repository navigation
feat(workboard): answer node ticket questions in the same session - #41
Merged
Merged
Conversation
A needs_input report blocked the card, and nothing carried an answer back to the session. Now the report posts the questions as a card comment and moves the card to review with a `questions` handoff, keeping the node worktree. A comment plus a move to todo resumes the same session in the same worktree, with the answers in the brief; the D56 reopen path does the start, slot wait, and no-answer bounce. A move to done is sent back to review, since there is nothing to publish. Comments now record their source: `operator` through the Gateway, `agent:<id>` through workboard_comment. Answered question rounds are counted on the worktree, and a round an operator answered is a human touch in the trust KPIs; one an agent answered is not. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A start claims the card before it replaces the questions worktree record, and the handoff sweep took that running card for a finished import and removed its node worktree and branch. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
Problem
A node ticket session that ended with
needs_inputblocked its card. Nothing handed the questions todev, and nothing resumed the session with an answer. This is the loop's "Questions" path (draft D10, D17, D27). Every question also counted as a block in the trust KPIs, so asking cost autonomy even whendevcould answer.Solution
Decided with the user in-session:
reviewplus aquestionshandoff phase, comment authorship recorded, anddevwoken by a board automation job.needs_inputreport posts the questions as a card comment, sets the worktree handoff to{phase: "questions", askedAt}, releases the claim and moves the card toreview. The node worktree stays.askedAtplus a move totodoresumes the same session (same session key) in the same worktree. The brief opens with "Answers to your questions". This reuses the D56 reopen path (nodeTicketReopen/reopenNodeTicket), including the slot wait and the start-failure block. A move totodowith no answer, or a move todone, goes back toreviewwith a comment naming the next step. No new status and no new model-facing tool.source:operatorthroughworkboard.cards.comment,agent:<id>throughworkboard_comment. New nullablesourcecolumn onworkboard_card_comments, withensureColumnfor existing databases. Existing comments read back without a source.questions: {rounds, operatorAnswers}). A round with an operator comment among its answers is a human touch, so the ticket is not clean or autonomous. Agent-only rounds stay clean.WorkboardTrustCountsgainsquestionRoundsandoperatorAnswers; the Control UI trust table does not show them yet.needs_inputquestions come with a proposed default, and the answer arrives as the next turn of the session.dev: the agent_end nudge already fires the board's automation job. After deploy, I'll create a voice-diary automation job fordev(with your go-ahead) and add the answering section to theworkboard-ticketskill.Review fix
A fresh review found that a start outside the handoff sweep (scheduled dispatch, or
workboard.cards.start) claims the card before it replaces the questions worktree record. The sweep then took the running card for a finished import and deleted the node worktree and branch.handoffCardnow skipsquestionslike it already skippedpublished. The regression test fails without the fix (worktree gone) and passes with it.Known gaps (not fixed here)
operator.writeclient can setsourceon comments throughworkboard.cards.updatemetadata. That is within the operator trust boundary; agent tools cannot do it.donemoves the answer cutoff, so an answer written before it must be repeated.Evidence
node-ticket-handoff.test.ts(node ticket questions):devanswers viaworkboard_comment→ move to todo → same session key and worktree, answers in the brief → done report → import to review.operatorAnswers: 1.trust-kpis.test.ts: an operator-answered round is not clean or autonomous; an agent-answered one is.lifecycle-sync.test.tscases updated from "needs_input blocks" to the new contract. The oversize-reason case now uses ablockedreport.pnpm test extensions/workboard --maxWorkers=1: 30 files, 437 tests passed, 2 m 39 s.node-ticket-handoff.test.tsalone: 19 tests in about 45 s, most of it the compiled build. The new tests run real git in temp repos, like their neighbors.tsgo(extensions, extension tests, ui): no Workboard or UI errors. oxlint and oxfmt are clean.devanswers it without the user, and the card reaches review.🤖 Generated with Claude Code