← Back to Pull requests

fix(trogonstack-nats): clarify Core NATS and JetStream channels #115

Closed
unknown closed this pull request without merging on Nov 12, 2026 03:32 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 21:51 UTC
Author

  • Correct wildcard, request-reply, and reserved-subject guidance to match NATS semantics.

  • Define one channel contract for Core NATS, JetStream, stream ownership, and management readback.

  • Add subject fixtures, a validator, and CI coverage for the NATS skill.

  • Show AsyncAPI only as channel and operation fragments, and declare streams and consumers as NACK resources, so Kubernetes is the one owner of JetStream configuration.
  • <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Documentation, skill content, and a CI validation script only; no runtime application or infrastructure behavior changes.

    > Overview

    Reframes the nats-design-subject skill from subject-hierarchy design to NATS channel contracts that explicitly separate Core NATS vs JetStream, channel kinds (RPC, live signal, durable event/work), tenancy, permissions, migrations, and single-owner stream/consumer provisioning.

    > Adds concrete artifacts and enforcement: AsyncAPI channel fragments, NACK JetStream manifests, a channel-contract reference, tagged nats-subjects fixtures, and a validate-subjects.mjs script wired into validate-plugins CI. Marketplace/plugin metadata descriptions are updated to match the broader scope.

    > Tightens reference guidance across patterns, JetStream, security, and anti-patterns—correct wildcard semantics, client-generated _INBOX for request-reply, reserved $JS/_INBOX permissions, and softer claims about performance/segment limits in favor of project conventions and benchmarks.

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

    <!-- /CURSOR_SUMMARY -->

    Diff: 227 lines (+170 / -57) across 2 files Reviewer: yordis Review duration: 340m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 227 lines diff across 2 files
    0.42
    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.325
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #115"
    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: 41.9% (MEDIUM) · Higher = larger blast radius
    41.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: 16.6% · Safe to merge
    16.6%