Commit 8f81731
authored
Zod's default .strip silently discarded undeclared keys on authorable schemas —
the instance kept parsing, so a mis-spelled or wrong-layer key shipped as
metadata that quietly ignored the author's config (#3405, #1535). This lands
the #4001 Tier-A slice inside the v17 breaking window.
- docs/audits/2026-07-unknown-key-strictness-ledger.md: the authorable / wire /
open triage (#4001 step 1), classified by "who writes this schema's input",
with the ratchet's verified next targets.
- shared/suggestions.zod.ts: new strictUnknownKeyError factory generalizing the
#3746 hand-rolled map (alias table + length-relative edit distance +
tombstone/wrong-layer guidance); ui/action.zod.ts re-homes onto it with
byte-identical messages.
- security/permission.zod.ts: PermissionSetSchema, ObjectPermissionSchema,
FieldPermissionSchema, AdminScopeSchema are .strict().
EffectiveObjectPermissionSchema explicitly .strip()s back — response shapes
stay wire-tolerant.
- automation/flow.zod.ts: FlowSchema, FlowNodeSchema, FlowEdgeSchema,
FlowVariableSchema are .strict(); a node's config record stays open (the
executor's configSchema, #4027/#4040, and the ADR-0087 conversion layer own it).
Three real defects the gate caught in its first two runs, all previously
invisible — each key written by real code, silently dropped at parse:
PermissionSetSchema could represent neither `description` (authored by the
built-in default sets, read by the Setup projection) nor the ADR-0010 runtime
protection envelope (stamped by applyProtection on every metadata type and
round-tripped through getMetaItemLayered -> saveMetaItem; every sibling
registered type already spread MetadataProtectionFields, permission was the
outlier); and a dogfood fixture declared the object-level `sharingModel` on a
flow. Two of the three are inverse drift — the direction the per-property
liveness ledger cannot see.
Migration is behavior-preserving by construction: any key now rejected was
previously stripped and therefore never had a runtime effect.
1 parent 46e86ba commit 8f81731
15 files changed
Lines changed: 1067 additions & 44 deletions
File tree
- .changeset
- content/docs
- references/security
- releases
- docs/audits
- packages
- qa/dogfood/test/fixtures
- spec
- liveness
- src
- automation
- security
- ui
- skills/objectstack-automation/references
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
310 | 352 | | |
311 | 353 | | |
312 | 354 | | |
| |||
0 commit comments