Commit cc986c9
test(cli, create-objectstack): give MONOREPO_ONLY a pattern for project-escaping relative paths, and re-equalise the two pins' vocabularies (#17018)
* test(cli, create-objectstack): give MONOREPO_ONLY a pattern for project-escaping relative paths, and re-equalise the two vocabularies
The scaffold-comment pins match unfollowable references in five ABSOLUTE
spellings (an ADR id, an issue number, `scripts/<name>.mjs`,
`packages/<name>/`, the framework's own name in prose). None matched the same
reference written RELATIVELY, so `[ObjectStack Documentation](../../content/docs)`
in a scaffolded README was read, matched nothing, and reported as a passing
row — worse than not reporting on the file at all.
Adds a sixth pattern for a path that climbs out of the scaffolded project, to
BOTH pins, and backfills the fifth (the prose pattern) into the cli-side pin,
which had kept four while create-objectstack grew to five — the same defect
class answered differently depending on which scaffolder shipped it. The two
vocabularies are now byte-identical again.
Both additions are pure regression guardrails: measured on both swept
populations, each matches zero text today. The bare `../` anchor is sound here
because the cli pin's population is the DEFAULT placement only — the `files`
getter is `filesFor('standalone')` — and the one legitimate escaping `../`,
`rootTsconfigExtends`, is emitted only on the `in-repo` branch.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QE8qk46e5CHJxyQEUjbf8
* docs(test): record the escaping-path pattern's real trigger, not just the case that motivated it
The pattern matches ANY `../`, including a climb that stays inside the
scaffolded project — `import { x } from '../config'` in a nested source file,
or a prose "see ../README.md in this project", both legal and both reddened.
Only the population keeps that from mattering, and the population is measured
at zero `../` today.
The cli-side comment recorded one re-read condition (the population widening to
the `in-repo` placement) and the create-objectstack side recorded it as a
hypothetical. Neither named the likelier case: a template growing an
intra-project relative climb, which needs no placement change at all. A future
contributor hitting that red would have been told it could not happen.
Comment-only; the regex, the vocabulary and both populations are untouched.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QE8qk46e5CHJxyQEUjbf8
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 513c495 commit cc986c9
2 files changed
Lines changed: 135 additions & 0 deletions
File tree
- packages
- cli/test
- create-objectstack/src
Lines changed: 84 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
84 | 101 | | |
85 | 102 | | |
86 | 103 | | |
| |||
202 | 219 | | |
203 | 220 | | |
204 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
205 | 227 | | |
206 | 228 | | |
207 | 229 | | |
208 | 230 | | |
209 | 231 | | |
210 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 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 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
211 | 295 | | |
212 | 296 | | |
213 | 297 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| |||
115 | 130 | | |
116 | 131 | | |
117 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
118 | 169 | | |
119 | 170 | | |
120 | 171 | | |
| |||
0 commit comments