Commit 6b8efe3
fix(devx): build tenant-audit-census self-test's unenforced-prose fixture from the page's own number (#17661)
The `⭐ a stale unenforced prose number is NOT a finding` / `an unenforced
prose claim reworded off the page IS a finding` self-test cases built
their `.replace()` search string from the LIVE census
(`census.declaredObjects`). The gate itself declares this figure
unenforced -- value free, sentence required -- so once the page's
stated number and the live tree disagree, that search string stops
matching the page, `.replace()` becomes a no-op, and the second case
fails for the PAGE rather than for the classifier it exists to pin.
Build the fixture from the page's own stated number instead (read with
the same `UNENFORCED_PROSE_COUNTS[0]` pattern the classifier itself
uses), so the pair of cases test the classifier's behaviour regardless
of whether the page and the live census currently agree.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8955995 commit 6b8efe3
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
841 | 858 | | |
842 | | - | |
| 859 | + | |
843 | 860 | | |
844 | | - | |
| 861 | + | |
845 | 862 | | |
846 | | - | |
| 863 | + | |
847 | 864 | | |
848 | 865 | | |
849 | 866 | | |
| |||
0 commit comments