← Back to Pull requests

feat(api): add owner and due to open question annotation #378

Closed
unknown closed this pull request without merging on Nov 13, 2026 04:03 UTC
View on GitHub
unknown unknown commented on Nov 12, 2026 18:48 UTC
Author

An open question had no owner and no due date, so nobody knew who should answer it or by when.

OpenQuestionAnnotation now has two optional fields. owner is a free-text role or team, for example payments team. due is a calendar date, for example 2026-12-01.

  • OPEN_QUESTION_PRESENT adds [owner: ...] and [due: ...] to its message when they are set. The message is unchanged when they are not set.

  • A due that is not a Gregorian YYYY-MM-DD date gives the new warning OPEN_QUESTION_DUE_INVALID.

  • The server has no overdue rule. Validation stays pure and never reads the clock, so an attested bundle validates the same at any time.

  • Studio shows owner and due in the Inspector.

  • The author-storyboard prompt names both fields.
  • Closes #103

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Additive proto fields, informational validation tweaks, and Inspector display only; no auth or breaking behavior changes.

    > Overview

    Open questions can now record who should answer them and by when via optional owner (free-text role/team) and due (CalendarDate as YYYY-MM-DD) on OpenQuestionAnnotation.

    > The validator enriches OPEN_QUESTION_PRESENT info messages with [owner: …] and [due: …] when set, and adds OPEN_QUESTION_DUE_INVALID (warning) for non–Gregorian-YYYY-MM-DD due values. It still does not compare due dates to the current time, so attested bundles validate consistently over time.

    > Studio shows owner and due in the Inspector; the author-storyboard prompt documents the new fields. Server and UI tests cover message formatting, invalid due dates, and backward-compatible behavior when owner/due are absent.

    > <sup>Reviewed by Cursor Bugbot for commit 1f73308006e83d57866e188484e15e8958810ee5. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 245 lines (+183 / -62) across 3 files Reviewer: yordis Review duration: 554m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 245 lines diff across 3 files
    0.44
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #378"
    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: 43.9% (MEDIUM) · Higher = larger blast radius
    43.9%
    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: 17.3% · Safe to merge
    17.3%