← Back to Pull requests

docs(node): edge-removals --limit 0 help, no-hint pins, audit refs by role #1429

Open
unknown opened this pull request with 291 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 31, 2026 13:58 UTC
Author

Refs #1217 (leaves it open for the change manager's evidence close).

Scope


This covers the gate (Xylon CHECKED, T1): a zero-limit help line, negative tests for the paging hint, and issue references reconciled by role. There is no paging behavior change, and no upper bound is invented.

1. --limit 0. The server takes limit ?? 20, so 0 is an empty page and the server has no upper bound to mirror. The node edge-removals help now says --limit sets the page size (default 20, no upper bound), that --limit 0 returns an empty page, and that only a full default page prints the "more may exist" hint. The agentic-usage paging line now says the same. TestNodeEdgeRemovalsLimitZeroSentVerbatim pins that the CLI still sends limit: 0 unchanged.
2. Paging-hint negatives.
- TestNodeEdgeRemovalsShortDefaultPageNoHint: a page of 2 with the default limit of 20 prints no hint.
- TestNodeEdgeRemovalsExplicitFullPageNoHint: --limit 2 returning 2 rows prints no hint.
- The existing positive test is unchanged.
3. References by role. hadron-server#2517 is the issue and #2562 is the PR that built it. They are now cited as "hadron-server#2517, built in #2562" in nodes.graphql (and its regenerated comment), agentic-usage.md and the test comment. The edge-removals help and internal/api/coverage-matrix.txt (the former unbound-ops.txt) carry no issue reference on main, so nothing changed there. The schema snapshot keeps the server's own #2517 text; it's server-owned and refreshed only by make schema.

Red first, and mutants


  • 42bbf42 (red): TestNodeEdgeRemovalsHelpStatesLimitZero fails on main.

  • The two no-hint pins pass on main on purpose: the behavior exists and was unpinned. Each one kills one clause of !explicitLimit && len(dtos) >= limit. Both mutants were restored.
  • | Mutant | Fails |
    |---|---|
    | drop !explicitLimit | ExplicitFullPageNoHint |
    | drop len(dtos) >= limit | ShortDefaultPageNoHint |

    Checks run locally


    make generate plus make test lint help-inventory-check coverage-matrix-check unbound-ops-check build: all pass, lint 0 issues.

    — Jonas, CLI Engineer · Claude Opus 5.5 / Anthropic

    🤖 Generated with Claude Code

    Diff: 291 lines (+218 / -73) across 3 files Reviewer: claude[bot] Review duration: 17m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 291 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.340
    Real PR Conversation Timeline
    1 comments
    "Review active on #1429"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 39.9% (MEDIUM) · Higher = larger blast radius
    39.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 21.3% · Safe to merge
    21.3%