Skip to content

NRA gate findings: one shared action posts the blocking verdict on the PR - #3880

Merged
trissim merged 2 commits into
mainfrom
ccr-b17367e7-4095oh-nra-findings
Nov 2, 2026
Merged

trissim merged 2 commits into
mainfrom
ccr-b17367e7-4095oh-nra-findings

Conversation

@trissim

@trissim trissim commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

CI-reporting hotfix. A red NRA gate should say why on its pull request, so nobody has to download a 450 KB job log to find out.

  • The inline comment step in nra-gate.yml moves into .github/actions/nra-findings. The action is the single owner of the gate's PR comment. Agent-comms uses it beside its tree (./.github/actions/nra-findings). Toad uses it from the Core checkout its gate already runs from (./.core-gate/.github/actions/nra-findings), so the comment and the gate always come from the same Core commit.
  • The comment keeps only NRA's verdict lines. It shows the blocking grew / found / introduced / missing lines first. Warn-only measures (the ones NRA marks (warns, never blocks), such as Unformatted, LintFindings and GodClassExcess) go in a collapsed section. Installer noise such as + CommandPhase ... uv build is dropped. If the gate fails without printing a verdict (a crash), the comment shows the last 40 stderr lines instead.
  • There is one comment per kind, under the existing <!-- $KIND findings --> marker, and each run replaces it. A passing run rewrites a comment that an earlier red run left. It never opens a new one.

The proof will be in the paired Toad PR's own run. Agent-comms' gates do not measure .github/, so this PR's own debt gates pass and post nothing.


Generated by Claude Code

…e PR

The gate's pull request comment moves from an inline nra-gate.yml step into
.github/actions/nra-findings, which agent-comms uses beside its tree and Toad
uses from the Core checkout its gate already runs from. The comment carries
only the gate's verdict lines: grew/found/introduced/missing for blocking
measures first, then warn-only measures (those NRA marks "warns, never
blocks", such as Unformatted and LintFindings) in a collapsed section.
Installer chatter such as the CommandPhase/uv build lines is dropped. A
passing run rewrites a comment an earlier red run left, so a stale red
comment no longer outlives its fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdttfQjtizEYZGek9Gh
Copilot AI balanced review requested due to automatic review settings November 2, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

debt-src at 8183725 passes.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

debt-tools at 8183725 passes.

… spelling

The gate itself flagged render.py for StringIdentity (outcome == "success").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdttfQjtizEYZGek9Gh
@trissim
trissim merged commit 4a2f223 into main Nov 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants