Commit abc10b2
test(scripts): pin a battery roster floor on 40 more
* test(scripts): pin a battery roster floor on 40 self-tests
`failures.length === 0` was the only success condition in these gates'
self-tests, so "every case held" and "the cases never ran" printed the
same line. Transplants the PR #13487 shape validated on
check-doc-authoring and carried to check-self-test-wired /
check-self-test-workflow-commands in PR #13797: every section opens with
`battery('<name>')`, every assertion is attributed to the battery most
recently opened, and a floor evaluated before the verdict requires the
OPENED set to equal the DECLARED set with each battery at or above its
own case count. The roster's own size is pinned too, so deleting an
entry cannot silence a floor.
Registered NAMES are what is pinned, never a total: a set difference
says WHICH battery stopped, a count says only that something did.
No case was rewritten — the only edits inside each self-test are the
roster wiring (a `battery()` opener per existing section banner, one
`registerCase()` line in the assertion helper, and the floor block
before the verdict). Floors are the per-battery counts measured on this
tree.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Swfxm6gT9ESmjSS7pqfVw
* test(scripts): pin the structural invariant, not today's count, on two ledger-driven batteries
Two batteries register one case per row of a list that is meant to
shrink: `KNOWN_NUMBER_COLLISIONS` in check-adr-anchors (a resolved
collision is deleted, and a stale entry already fails) and `ALLOW` in
check-single-authz-resolver (an exemption that exempts nothing is dead
weight). A floor at today's count would redden every legitimate removal
and train the next author to edit the floor — the one habit these floors
exist to prevent. Pinned instead is the part that does not move with the
list: the structural cases ran AND at least one row was audited, said in
place over each entry.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Swfxm6gT9ESmjSS7pqfVw
* test(scripts): reword the two ledger notes so neither reads as a ratchet-remedy offer
The first spelling put `ALLOW` and the words "shrink-only" inside
`anchorFor`'s window in check-single-authz-resolver, which flipped that
file from `excluded` to `unmarked` under check:ratchet-remedy-authority
(and then MISCLASSIFIED against its CONTROL row). Measured, both
findings; the gate is green again with the same fact stated without the
token. The adr-anchors note is reflowed for readability only.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Swfxm6gT9ESmjSS7pqfVw
* test(scripts): type the roster wiring in the .mts gate
scripts/check-test-typecheck.mts is the one .mts file in the batch and it
is reached by the root `tsc --noEmit`, so the untyped `battery()` /
`registerCase()` / `floorFailure()` insertions added 7 raw errors and
drifted the frozen DEBT entry for @objectstack/spec-monorepo upward
(26 -> 33, measured). Typing the wiring and widening the roster to
`Readonly<Record<string, number>>` puts the count back at its recorded
26 with check:type-check-debt green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Swfxm6gT9ESmjSS7pqfVw
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>scripts/** self-tests (#14851)1 parent 84b8190 commit abc10b2
40 files changed
Lines changed: 4265 additions & 8 deletions
File tree
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
241 | 282 | | |
242 | 283 | | |
243 | 284 | | |
| |||
1130 | 1171 | | |
1131 | 1172 | | |
1132 | 1173 | | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1133 | 1187 | | |
1134 | 1188 | | |
1135 | 1189 | | |
1136 | 1190 | | |
| 1191 | + | |
1137 | 1192 | | |
1138 | 1193 | | |
1139 | 1194 | | |
| 1195 | + | |
1140 | 1196 | | |
1141 | 1197 | | |
1142 | 1198 | | |
| |||
1236 | 1292 | | |
1237 | 1293 | | |
1238 | 1294 | | |
| 1295 | + | |
1239 | 1296 | | |
1240 | 1297 | | |
1241 | 1298 | | |
| |||
1335 | 1392 | | |
1336 | 1393 | | |
1337 | 1394 | | |
| 1395 | + | |
1338 | 1396 | | |
1339 | 1397 | | |
1340 | 1398 | | |
| |||
1446 | 1504 | | |
1447 | 1505 | | |
1448 | 1506 | | |
| 1507 | + | |
1449 | 1508 | | |
1450 | 1509 | | |
1451 | 1510 | | |
| |||
1613 | 1672 | | |
1614 | 1673 | | |
1615 | 1674 | | |
| 1675 | + | |
1616 | 1676 | | |
1617 | 1677 | | |
1618 | 1678 | | |
| |||
1825 | 1885 | | |
1826 | 1886 | | |
1827 | 1887 | | |
| 1888 | + | |
1828 | 1889 | | |
1829 | 1890 | | |
1830 | 1891 | | |
| |||
1917 | 1978 | | |
1918 | 1979 | | |
1919 | 1980 | | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
1920 | 2026 | | |
1921 | 2027 | | |
1922 | 2028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
821 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
822 | 875 | | |
823 | 876 | | |
| 877 | + | |
824 | 878 | | |
825 | 879 | | |
826 | 880 | | |
827 | 881 | | |
828 | 882 | | |
829 | 883 | | |
| 884 | + | |
830 | 885 | | |
831 | 886 | | |
832 | 887 | | |
833 | 888 | | |
834 | 889 | | |
| 890 | + | |
835 | 891 | | |
836 | 892 | | |
837 | 893 | | |
838 | 894 | | |
839 | 895 | | |
| 896 | + | |
840 | 897 | | |
841 | 898 | | |
842 | 899 | | |
| |||
846 | 903 | | |
847 | 904 | | |
848 | 905 | | |
| 906 | + | |
849 | 907 | | |
850 | 908 | | |
851 | 909 | | |
852 | 910 | | |
853 | 911 | | |
854 | 912 | | |
855 | 913 | | |
| 914 | + | |
856 | 915 | | |
857 | 916 | | |
858 | 917 | | |
859 | 918 | | |
| 919 | + | |
860 | 920 | | |
861 | 921 | | |
862 | 922 | | |
| |||
870 | 930 | | |
871 | 931 | | |
872 | 932 | | |
| 933 | + | |
873 | 934 | | |
874 | 935 | | |
875 | 936 | | |
| |||
880 | 941 | | |
881 | 942 | | |
882 | 943 | | |
| 944 | + | |
883 | 945 | | |
884 | 946 | | |
885 | 947 | | |
| |||
896 | 958 | | |
897 | 959 | | |
898 | 960 | | |
| 961 | + | |
899 | 962 | | |
900 | 963 | | |
901 | 964 | | |
| |||
946 | 1009 | | |
947 | 1010 | | |
948 | 1011 | | |
| 1012 | + | |
949 | 1013 | | |
950 | 1014 | | |
951 | 1015 | | |
| |||
972 | 1036 | | |
973 | 1037 | | |
974 | 1038 | | |
| 1039 | + | |
975 | 1040 | | |
976 | 1041 | | |
977 | 1042 | | |
| |||
1009 | 1074 | | |
1010 | 1075 | | |
1011 | 1076 | | |
| 1077 | + | |
1012 | 1078 | | |
1013 | 1079 | | |
1014 | 1080 | | |
1015 | 1081 | | |
1016 | 1082 | | |
1017 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1018 | 1129 | | |
1019 | 1130 | | |
1020 | 1131 | | |
| |||
0 commit comments