Repository navigation
Commit 94763d7
Fixes #20494
Clause-②: no
## What changed
- `packages/spec/src/data/object.zod.ts` (~:2123): rewrote the
`activityMilestones[].type` `.describe()` to state the real default — an
unset `type` keeps the update row's kind, `updated`. No schema shape
change.
- Regenerated `content/docs/references/data/object.mdx` with `gen:docs`
(never hand-edited).
-
`packages/plugins/plugin-audit/src/activity-type-vocabulary-enforcement.test.ts`:
corrected the pin's title and docblock only — they stop describing a
divergence and stop saying it was "filed separately" (this card is where
it was filed). Its assertions are byte-for-byte unchanged.
- `.changeset/20494-milestone-type-default-describe.md`
(`@objectstack/spec` patch, `Clause-②: no`).
## Why
`audit-writers.ts` starts `activityType` from `activityTypeFor(action)`,
and a milestone can only fire on the UPDATE branch (`create` / `delete`
return their own summary before the milestone match runs), so an unset
`type` has always emitted `updated`, never `completed`. `milestone.type`
overrides it only when the author actually sets it — that half of the
old describe was correct and is unchanged. The plugin-audit pin
(`activity-type-vocabulary-enforcement.test.ts`) already measured this
real answer; only its title and docblock claimed a divergence and said
the finding was filed separately.
## Dedupe search for other stale copies
A repo-wide grep for the old wording, and for every `activityMilestones`
mention, found no other hand-written copy of the "completed" default.
`object.form.ts`'s `activityMilestones.type` help text (shipped with PR
#20485 — "Unset: updated.") already states the real default and is
unchanged.
## Verification record
Commands run in this worktree, foreground, through
`scripts/pm/os-verify-lock.sh` where heavy:
- `pnpm --filter @objectstack/spec build` — pass.
- `pnpm --filter @objectstack/spec run check:generated` — all 15
generated artifacts green after `pnpm --filter @objectstack/spec run
gen:docs` (only `check:docs` was stale, for exactly this describe
change).
- `pnpm --filter @objectstack/spec test` — 572 test files / 16796 tests
passed, 1 todo.
- `pnpm --filter @objectstack/spec typecheck` — pass.
- `pnpm --filter '@objectstack/plugin-audit^...' build` (dependency
closure) — pass.
- `pnpm --filter @objectstack/plugin-audit test` — 25 test files / 363
tests passed, including the renamed pin.
- `pnpm --filter @objectstack/plugin-audit typecheck` — pass.
- `pnpm check:doc-authoring` (dispatch-named — no tracker number in the
describe) — pass.
- `node scripts/check-nul-bytes.mjs` — pass.
- `node scripts/check-adr-0087-registration.mjs`,
`check-changeset-no-major.mjs`, `check-empty-changeset.mjs`,
`check-issue-citations.mjs` (`--self-test` and `--base origin/main`,
matched by the new changeset file) — all pass.
`node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack
--ran <record>` reconciliation: 112 families derived from this diff's
paths, 102 UNRUN locally. Those are whole-tree/whole-package scans this
describe-text-only change (no export, no authorable key, no schema shape
change) does not plausibly touch — `check:generated`'s own 15-gate sweep
already covers the ones that read the schema/docs pipeline this change
lands in (`check:docs`, `check:api-surface`, `check:authorable-surface`,
`check:export-origins`, `check:declaration-map`,
`check:strictness-ledger`, `check:liveness`, `check:test-typecheck`).
The remaining UNRUN families are deferred to CI's farm per this repo's
local-verification scope.
## Acceptance notes
Nothing found outside this card's file surface.
---
_Generated by [Claude
Code](https://claude.ai/code/session_014EJ1ED8X4MMrT18BhVx4tx)_
Co-authored-by: Claude <noreply@anthropic.com>
1 parent e1b736e commit 94763d7
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 | | |
| |||
Lines changed: 6 additions & 8 deletions
| 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