Repository navigation
Commit de53a27
committed
fix(spec): activityMilestones[].type describe states the real default — an unset type keeps the update row's kind, updated (#20494)
`object.zod.ts` described the field's default as `"completed"`; the runtime
never wrote that. `audit-writers.ts` starts `activityType` from
`activityTypeFor(action)`, and a milestone can only fire on the UPDATE branch,
so an unset `type` has always emitted `updated`. Rewrote the describe to say
that and regenerated `content/docs/references/data/object.mdx` with `gen:docs`
(never hand-edited). Corrected the plugin-audit pin's title and docblock
(`activity-type-vocabulary-enforcement.test.ts`) so they stop describing a
divergence and stop saying the finding was "filed separately" — its
assertions are unchanged. No schema shape change, no runtime change.
Claude-Session: https://claude.ai/code/session_014EJ1ED8X4MMrT18BhVx4tx
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4a1df19 commit de53a27
4 files changed
Lines changed: 21 additions & 10 deletions
File tree
- .changeset
- content/docs/references/data
- packages
- plugins/plugin-audit/src
- spec/src/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
276 | 274 | | |
277 | | - | |
| 275 | + | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2120 | 2120 | | |
2121 | 2121 | | |
2122 | 2122 | | |
2123 | | - | |
| 2123 | + | |
2124 | 2124 | | |
2125 | 2125 | | |
2126 | 2126 | | |
| |||
0 commit comments