Skip to content

fix(cli): enforce zero debt score thresholds - #48

Merged
eduardbar merged 1 commit into
masterfrom
fix/42-zero-debt-gate
Aug 3, 2026
Merged

fix(cli): enforce zero debt score thresholds#48
eduardbar merged 1 commit into
masterfrom
fix/42-zero-debt-gate

Conversation

@eduardbar

Copy link
Copy Markdown
Owner

Refs #42

Summary

  • Enforce explicit --min-score 0 for scan and CI commands.
  • Preserve omitted and positive threshold semantics.
  • Emit JSON, Markdown, AI, SARIF, and human output before returning the correct failing exit code.
  • Add integration coverage for zero, exact, and positive thresholds.

Verification

  • Focused tests: 3/3
  • Full suite: 349/349
  • Build
  • Runtime policy and docs drift
  • Real score-4 self-scan correctly fails --min-score 0
  • Empty fixture with score 0 passes --min-score 0
  • No rule weights or scoring logic changed

Notes

This makes the zero-debt gate honest; it does not change the current score or suppress findings.

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
site Ready Ready Preview Aug 3, 2026 5:34pm

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

drift trust

drift trust

  • Trust Score: 55/100
  • Merge Risk: HIGH
  • Target: /home/runner/work/drift/drift

Diff signals

  • Base ref: origin/master
  • Diff status: NEUTRAL
  • Score delta: +0
  • Issues: +0 new / -0 resolved
  • Trust adjustment: +0 penalty / -0 bonus (net +0)

Top reasons

  • Error-level issues: 9 error issue(s) increase merge volatility. (impact 22)
  • Highest-risk file: /home/runner/work/drift/drift/site/src/App.jsx has hotspot risk 70/100. (impact 11)
  • Maintenance hotspots: Maintenance risk is MEDIUM (38/100). (impact 10)
  • Drift score pressure: Repository drift score is 4/100. (impact 2)

Fix priorities

drift review

drift review

ℹ️ No drift changes detected against base ref.

  • Base ref: origin/master
  • Score delta: +0
  • New issues: 0
  • Resolved issues: 0

File breakdown

  • No file-level deltas detected

@eduardbar
eduardbar merged commit 13a1e76 into master Aug 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:quality Quality gates and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant