← Back to Pull requests

Save task handoffs with status changes #58

Closed
unknown closed this pull request without merging on Nov 28, 2026 10:37 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 13:01 UTC
Author

When an agent stops, a status change and a handoff comment sent as two calls can leave a task half handed off. update_task now takes an optional comment, saved in the same SQLite write as the rest of the edit: both are saved, or neither. An empty comment, one over 16 KiB, or any refused change saves nothing. Fixes #55.

To hand a task to the user, an agent passes escalated: true instead of human: true:

  • The card says Escalated, and get_task says "escalated to the user".

  • The task's next move to another column clears it, however it moves: update_task, a drag on the board, the selection bar or next_task. A task you drag back to todo goes to agents again.

  • human stays as it is today.

  • One edit is still one event: escalating with a move is task.moved, escalating in place is task.updated.
  • The agents' instructions now say to move to review with update_task's comment, and to add escalated when they need the user, instead of a separate add_comment call.

    escalated is migration 11, a column with a default, so older Kanzo versions keep opening the board. #57 and #56 follow as 12 and 13.

    Tokens: the tool list grows by 254 bytes (comment and escalated on update_task) and the instructions by 66. Replies without a comment are unchanged; with one, update_task adds the line Comment added as <client>.

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test pass (115 tests)

  • A board change was tried in a browser, in light and dark mode (Chrome: board, list, 320 px)

  • The README says what changed for users, if anything did (all four READMEs)
  • Diff: 205 lines (+153 / -52) across 2 files Reviewer: emanuele-em Review duration: 24335m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 205 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #58"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.3% (MEDIUM) · Higher = larger blast radius
    36.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.3% · Safe to merge
    14.3%