Repository navigation
feat(#1502): health-report.ts — one script prints the fundamentals baseline, --check fails a raised metric, advisory CI job, release-checklist line - #1548
Merged
admarble merged 2 commits intoOct 19, 2026
Conversation
…ck ratchets it Entire-Checkpoint: abfb614a34fb
Entire-Checkpoint: b978c5c1123c
6 tasks
admarble
deleted the
feature/1502-feat-qa-health-report-ts-one-script-prints-the-fun
branch
October 19, 2026 17:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/qa/health-report.tsprints the fundamentals baseline: function length, empty catches,child_processmock files,ghcalls outside the provider, prose gates, the 28-day test ratio, deprecations, harness size and ADR actors. With--checkit fails when any gated metric rises abovescripts/qa/health-baseline.json. With--write-baselineit regenerates that file. The newhealth-advisoryCI job runs--checkwithcontinue-on-error: true, so it cannot block a merge.docs/internal/release-checklist.mdnow reads the report, andnpm run lint:healthruns it. W0 of graph-2026-10-fundamentals (#1501). There are no edits underplugin/,.claude/skills/ortemplates/skills/.Acceptance criteria — re-run by the runner on 8058510 (worktree, 2026-10-19)
health-report.ts --json | jq -e '…every key… >= 0'okdiffof the script's output against the committed baseline (minusgeneratedAt,commit,harness.memoryFiles,testRatio28d)samenpx vitest run scripts/qa/health-report.test.tsgrep -A14 '^ health-advisory:' ci.yml | grep -c 'continue-on-error: true'1grep -c 'health-report' docs/internal/release-checklist.md1/usr/bin/time -p … --jsonfast(3.73 s)The
health-advisorycheck on this PR's head finished with success.Mutation record (AC-3 is a gate test)
Mutation-verified: AC-3 — deleted the raised-metric branch in
compare(thecur[key] > base[key]push intoraised), keeping theloweredbranch so it still type-checks; scripts/qa/health-report.test.ts > health-report --check ratchet > exits 1 and names the key when a metric rose failed; restored.The same mutation also fails
--write-baseline rewrites the file and a following --check exits 0. Result: 2 failed and 5 passed out of 7. After the restore,git statuswas clean.Decisions to review
emptyCatch.byFile.*is reported but not gated. QA flagged this as going beyond the issue's two stated exclusions (testRatio28d.*,harness.memoryFiles). The spec's plan chose it deliberately (step 4: "foremptyCatch.byFile… compare only scalars (total) — report byFile diff informationally"). WithbyFileungated, moving a catch from one file to another does not fail--check, but any rise inemptyCatch.totalstill does. Owner ruling needed: keep it as is, or gate per file too.emptyCatch.total= 120 (the plan's table says 119) andproseGate.lines= 30,179 (the table says 30,461). The runner re-ran the script against a detached checkout of that commit. Every other planning value reproduces: functions 4 and 12,childProcessMockFiles31,ghCallFilesOutsideProvider3,proseGate.files76, deprecations 18, ADRs 11. The baseline commits what the script measures, so the ratchet is self-consistent. The two table values came from a different counting method at planning time.Not run
Fixes #1502
🤖 Generated with Claude Code