Skip to content

Conversation

@mojoatomic
Copy link
Owner

Summary

  • Add health telemetry and optional gating to ratchet.js (config-aware via readProjectConfig).
  • Scoring: density per 1K executable LOC (overall/structural/semantic).
  • Gate: gateOn (overall|structural|semantic), minOverall, intentOverrides (e.g., refactoring), bypass (env or commit token).
  • Docs: HEALTH-GATING.md with config example and guidance; link from CONTEXT-AWARE-LINTING.md.

Behavior

  • Disabled by default (health.enabled=false). Prints health scores (informational).
  • When enabled and not bypassed, fails if current score < threshold.

Why

Tests (follow-up)

  • Unit: computeHealth mapping.
  • Integration: gate pass/fail and bypass token.

Notes

  • Traditional ratchet behavior unchanged.
  • Commit token bypass: set in .ai-coding-guide.json (e.g., [health-bypass]); env HEALTH_BYPASS=true also bypasses.

Refs

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.

2 participants