mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
About 9,400 frontend assertions and dozens of Go tests read product source as text and check for strings. They break on harmless refactors, pass on real bugs, and grow by one pin per change because a pin is the cheapest edit that satisfies the proof-file rule. 492 date-named coverage-chasing test files (*.branchcov0712b.test.ts) grew the same way. source-text-test-audit.mjs counts each test file's source reads (?raw imports, readFileSync and its helper wrappers, Go ReadFile of source literals) against a checked-in baseline. A count may fall but not rise, new test files start at zero, and no new date-named coverage file may appear. --write-baseline only lowers entries, so raising one is a visible hand edit. It runs in the lint chain, which CI runs for every code change, Go included. Negative controls: a new test importing App.tsx?raw fails, and a copy named docsLinks.branchcov1103.test.ts fails on both checks. Contract-Neutral: adds a lint script entry and an offline audit; no dependency, build, install or runtime change