← Back to Pull requests

[CP 63] docs: deploy branch naming convention (AGENTS.md + CLAUDE.md + .cursorrules) #28

Closed
ci-penbot-01 closed this pull request without merging on Aug 03, 2026 22:04 UTC
View on GitHub
ci-penbot-01 ci-penbot-01 commented on Aug 03, 2026 21:52 UTC
Author

<!-- CP_SOURCE: pensando/k8s-network-node-labeller#63 -->
cp of pensando/k8s-network-node-labeller#63

---
Source PR Description (pensando/k8s-network-node-labeller#63):
<!-- CP_ORIGINAL_DESCRIPTION -->
Adds AI tool branch naming guidance as part of the fork → branch workflow migration.

AGENTS.md — shared baseline read by all AI tools (Claude Code, GitHub Copilot, Codex, Gemini):

  • Branch naming format, allowed prefix whitelist, username lookup
  • CLAUDE.md — Claude Code-specific guidance (references AGENTS.md):

  • Step-by-step branch creation workflow
  • .cursorrules — Cursor-specific guidance:

  • Branch naming rules

  • Common developer scenarios and how to respond

  • Scoped fetch setup for post-migration repos with 5,000+ branches
  • See: Migration docs
    <!-- /CP_ORIGINAL_DESCRIPTION -->

    Cherrypick triggered by: ACP-Automation

    Diff: 262 lines (+262 / -0) across 3 files Reviewer: None requested Review duration: 12m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.79) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.79 · 262 lines diff across 3 files
    0.79
    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: 10%
    57%
    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.333
    Shallow Review Depth shallow_review_depth
    0.289
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Sensitive Paths sensitive_paths
    0.079
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #28"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    ci-penbot-01 ci-penbot-01
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    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: 79.4% (HIGH) · Higher = larger blast radius
    79.4%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 33.4% · Safe to merge
    33.4%