Commit 99b4deb
tooling(pm): name the sweeper's third file in the patrol's adopt list (#15000)
The half-state patrol's documented sibling install listed two files to copy
(`scripts/pm/check-half-states.mjs` and the workflow) while the sweeper has
imported `../invoked-as.mjs` since before that list was written. A repo that
followed it verbatim installed a patrol that cannot start.
Measured on a clean two-file copy of this repo's own files:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module
'.../scripts/invoked-as.mjs' imported from
'.../scripts/pm/check-half-states.mjs'
exit 1
The same copy with `scripts/invoked-as.mjs` added runs the sweeper's
`--self-test` to `2062 cases pass`, exit 0. The failure is loud rather than
silent — the job's final step turns the run red and the anchor is rewritten
with the "THE SWEEP DID NOT RUN" body — but the adopter still gets a dead
patrol, and the next two adopters in the fleet would each get one.
Three comment/wiring corrections, all in the workflow; the sweeper is not
touched, so this repo's sweep behaviour is byte-identical by construction:
- the adopt list names three files, with the measurement that decides it;
- the "No `pnpm install`" note states the sweeper's real import set
(`node:` builtins plus the one repo-local helper) instead of "nothing but
`node:process` and global `fetch`" — that sentence is what an adopter
checks the copy list against, so a stale one re-creates the defect;
- `scripts/invoked-as.mjs` joins the `pull_request` path filter, so a change
to it gets the same pre-merge proof the other two files get. The adopted
objectui copy has carried that row since its port.
Part of #14881
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Co-authored-by: Claude <noreply@anthropic.com>1 parent e58ea8b commit 99b4deb
1 file changed
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
95 | 108 | | |
96 | 109 | | |
97 | 110 | | |
| |||
129 | 142 | | |
130 | 143 | | |
131 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
132 | 152 | | |
133 | 153 | | |
134 | 154 | | |
| |||
190 | 210 | | |
191 | 211 | | |
192 | 212 | | |
193 | | - | |
194 | | - | |
195 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
196 | 221 | | |
197 | 222 | | |
198 | 223 | | |
| |||
0 commit comments