← Back to Pull requests

feat(glossary): make generated vocabulary reviewable and reusable #382

Closed
unknown closed this pull request without merging on Nov 14, 2026 14:52 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 04:49 UTC
Author

  • Keep generated vocabulary grounded in retained evidence and explicit, revision-bound review.

  • Let clients load only the relevant meanings while retaining exact identity, policies and freshness.

  • Preserve separate organizational, code and customer language, including explicit replacements for internal labels in customer copy.

  • Keep term-use periods independent from policy activation and human review schedules.

  • Preserve publication and expert corrections through refresh, with connected inspection and governed model changes.
  • <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Medium Risk

    Adds Term schema, authenticated review authority, and many new read/write RPCs with publication selection logic; behavior is heavily tested but touches vocabulary governance and multi-process read consistency.

    > Overview

    Introduces a generated glossary profile on native Term entities: evidence pinned to same-namespace Documents, generation metadata, terminology policy, optional term-use windows, and server-owned User review that gates publication.

    > Exposes the workflow end-to-end via new gRPC methods (lean ListGlossaryPointers / GetGlossaryDefinition, full inspection, ReviewGlossaryTerm, compare, prose/code usage checks, source and refresh inspection), a trogon-atlas glossary CLI, and matching MCP tools plus a generate-glossary prompt. Glossary reads use durable store markers for cross-process consistency (documented under single-writer).

    > Adds reference docs (how-to, contracts, acceptance, gap map), a shipping fixture manifest and code snapshot, and broad integration coverage (CLI, MCP, Studio, core/server).

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

    <!-- /CURSOR_SUMMARY -->

    Diff: 241 lines (+180 / -61) across 3 files Reviewer: yordis Review duration: 2042m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.44) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 241 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%
    56%
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #382"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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.8% (MEDIUM) · Higher = larger blast radius
    43.8%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 18.9% · Safe to merge
    18.9%