feat: extend harness audit integration scoring
Merged
AF
5mo ago+441+441+012345678901234567890123456789-23-23-01234567890123456789
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 version2026-05-19. - Adds
.github/CODEOWNERSso 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 passednode scripts/harness-audit.js repo --format json-> 80/80, no top actionsnode_modules/.bin/markdownlint commands/harness-audit.md .opencode/commands/harness-audit.mdnode tests/scripts/observability-readiness.test.js-> 10 passednpm 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.jsonscripts,.env.examplekeys, and workflow usage. - Report now includes
applicable_categoriesandcategory_count;max_scorederives from applicable categories. - Bumped
rubric_versionto2026-05-19and updated docs/examples. - Expanded tests for new categories and dynamic scoring; preserved current hook registry behavior.
- Added GitHub Integration category (workflows, PR template, issue templates, CODEOWNERS, Dependabot/Renovate). Achieves 10/10 by adding
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.