Skip to content

test: smoke-test the code-health gate (do not merge)#570

Open
RaghavChamadiya wants to merge 2 commits into
mainfrom
test/health-gate-smoke
Open

test: smoke-test the code-health gate (do not merge)#570
RaghavChamadiya wants to merge 2 commits into
mainfrom
test/health-gate-smoke

Conversation

@RaghavChamadiya

Copy link
Copy Markdown
Member

Throwaway PR to verify the Repowise bot health gate end to end on the dogfood repo. Do not merge - close after checking.

What it sets up:

  • scratch/health_gate_smoke/tidy.py - a clean module, committed by a human (scores ~10).
  • scratch/health_gate_smoke/messy.py - a deliberately gnarly function, committed with a Claude Code footer so the provenance classifier tags it AI (scores ~6).
  • .repowise/bot.yaml with health_gate.mode: blocking, min_new_file_score: 7.0, block_on_introduced: true, block_ai_regression: true.

Expected:

  • A Repowise / code health Check Run that concludes failure (the unhealthy file lands below the 7.0 floor and introduces findings).
  • A bot comment showing the health delta and an AI vs human section (AI-authored file avg ~6 vs human-authored file avg ~10).

This confirms the check is created, the blocking conclusion fires, and the provenance split renders. Branch-protection enforcement is a separate repo setting.

@repowise-bot

repowise-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

✅ Health: 7.6 (unchanged)

🤖 AI vs human (this PR)
By added-line authorship across changed files.

  • AI-authored: 1 file, avg health 6.0
  • Human-authored: 1 file, avg health 10.0

⚠️ Change risk: moderate (riskier than 34% of this repo's commits · raw 7.7/10)
This change's risk is driven by:

  • more lines added than baseline
  • more scattered than baseline

📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-06-22 18:02 UTC
Silence on a single PR with [skip repowise] in the title · Per-repo toggle on repowise.dev/settings?tab=bot

@repowise-bot repowise-bot Bot added repowise:gate-failed Repowise: code-health gate failed repowise:health-decline Repowise: repository health score declined labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repowise:gate-failed Repowise: code-health gate failed repowise:health-decline Repowise: repository health score declined

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant