feat: extend harness audit integration scoring

Merged
AF
5mo ago
+441-23

Summary

  • Salvages the useful harness-audit scoring work from #1989 on a maintainer-owned branch without taking the stale hook-registry regression.
  • Adds GitHub Integration scoring, conditional Vercel/Netlify/Cloudflare/Fly deploy-provider scoring, dynamic applicable_categories, category_count, and rubric version 2026-05-19.
  • Adds .github/CODEOWNERS so the repo's new GitHub Integration category reaches 10/10.

Source Attribution

Based on the useful harness-audit ideas from #1989 by @knu77on. The broken hooks/hooks.json -> [] change and missing Stop-hook implementation were intentionally excluded.

Validation

  • node tests/scripts/harness-audit.test.js -> 23 passed
  • node scripts/harness-audit.js repo --format json -> 80/80, no top actions
  • node_modules/.bin/markdownlint commands/harness-audit.md .opencode/commands/harness-audit.md
  • node tests/scripts/observability-readiness.test.js -> 10 passed
  • npm test -> 2532 passed, 0 failed

Summary by cubic

Extends harness-audit to score GitHub and deploy-provider integrations with dynamic category totals, and updates the rubric. Improves audit accuracy and highlights CI/CD gaps.

  • New Features
    • Added GitHub Integration category (workflows, PR template, issue templates, CODEOWNERS, Dependabot/Renovate). Achieves 10/10 by adding .github/CODEOWNERS.
    • Added conditional provider categories: Vercel, Netlify, Cloudflare, Fly. Activated only when markers (e.g., vercel.json, netlify.toml, wrangler.toml, fly.toml) exist; checks cover config, package.json scripts, .env.example keys, and workflow usage.
    • Report now includes applicable_categories and category_count; max_score derives from applicable categories.
    • Bumped rubric_version to 2026-05-19 and updated docs/examples.
    • Expanded tests for new categories and dynamic scoring; preserved current hook registry behavior.

Summary by CodeRabbit

  • New Features

    • Enhanced audit tool now evaluates up to 12 categories, including GitHub Integration and platform integrations (Vercel, Netlify, Cloudflare, Fly).
    • Audit reports now include applicable categories and dynamic scoring based on detected integrations.
  • Documentation

    • Updated harness audit command documentation with revised rubric (version 2026-05-19) and expanded category coverage.
  • Tests

    • Added comprehensive test coverage for new integration detection and category applicability logic.
  • Chores

    • Updated codeowners assignment.

Review Change Stack