Repository navigation
Commit 9573d47
committed
feat(cli,docs): the build path reports undeclared keys too, and the gate table says so (#3786)
Follow-up to the lint's first commit, closing a gap the docs-drift check made
visible: `validating-metadata.mdx` is a catalog of what `os validate`/`os build`
report, and the new check was not in it. Writing the row surfaced the real
omission underneath — the check ran in `validate.ts` only.
`defineStack` already covers any config authored through it, whichever command
loads it. What it does not cover is a config that SKIPS it — a plain object
default-export, or `strict: false` — and on that path `os build` would emit an
artifact with the key silently gone. `compile.ts` now runs the same pre-parse
report, at the same seam as the ADR-0089 visibility rule beside it. Verified:
a plain-object config with `pii` + `indexed` now warns on the build path.
Not a parity-test violation either way — `validate-build-gate-parity.test.ts`
enforces compile ⊆ validate, and validate already had it. This makes the two
agree in the direction the test cannot see.
Docs: a row in the two-entry-point table, and a §9 section showing what the
finding looks like and why a retired key deliberately gets no "did you mean".
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UXGj3Z5TmwSV6RK2oGc3cb1 parent acfaa14 commit 9573d47
3 files changed
Lines changed: 63 additions & 3 deletions
File tree
- .changeset
- content/docs/deployment
- packages/cli/src/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
212 | 247 | | |
213 | 248 | | |
214 | 249 | | |
| |||
228 | 263 | | |
229 | 264 | | |
230 | 265 | | |
| 266 | + | |
231 | 267 | | |
232 | 268 | | |
233 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
254 | 274 | | |
255 | 275 | | |
256 | 276 | | |
| |||
0 commit comments