Repository navigation
Commit 5df10ec
fix(spec)!: retire the build-progress stream frame now that no code reads it (#38398)
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu7HuZkRt8dQwHpB1ErcP8fX)_
Fixes #37753
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no `skills/**` file names any of the six exports or
`data-build-progress` (`git grep -n -i
"build-progress\|BuildProgress\|BUILD_PROGRESS" -- skills/` returns
nothing)
## 维护者速读
- 是什么:spec 里给 build 对话进度面板用的流式帧定义(`ai/build-progress.zod.ts`,6
个导出)整个删掉。它唯一的读方(控制台的 build 进度面板)已随 build 对话前端删除,云端产生它的 build
循环也已删除(cloud#5046 已合并),现在没有任何代码读它。
- 为什么:没人读的导出 schema 会被下一个读者当成平台还有这个能力(ADR-0049 留或删)。
- 出错会怎样:用户无感,元数据作者无感(它从来不是可编写的元数据)。若有宿主代码还 import 这 6
个名字,升级后编译报错,changeset 里写了改法:删掉 import。可整体撤回。
- 要你做什么:批准这个拉取请求——它收窄了 `@objectstack/spec` 的公开导出,属 Tier H。
## What changes
`packages/spec/src/ai/build-progress.zod.ts` and its test are deleted,
with the `ai/index.ts` re-export. The six exports leave
`@objectstack/spec/ai`: `BuildProgressFrameSchema`,
`BuildProgressFrame`, `BuildProgressPhaseSchema`, `BuildProgressPhase`,
`BUILD_PROGRESS_PHASES`, `BUILD_PROGRESS_FRAME_TYPE`.
Route: the playbook's "nobody parses it" row (`spec-property-retirement`
§2). The frame was a stream payload, never a metadata type, so there is
no tombstone, no D2 conversion and no liveness-ledger row. What the
build asks for a whole-def removal is there:
- `RETIRED_DEFS_BY_MAJOR[19]`:
`retired-defs/19.ai__BuildProgressFrame.ts`,
`retired-defs/19.ai__BuildProgressPhase.ts` (the manifest deletion gate
names both).
- D3 semantic `ai-build-progress-frame-retired`
(`semantic/19.ai-build-progress-frame-retired.ts`), so the upgrade guide
tells a host what to delete. The changeset's ADR-0087 marker is
`registered ai-build-progress-frame-retired`. `runtime-export-retired`
does not fit: its predicate 2 refuses an operand declared in a
`*.zod.ts`.
- Deliberate baseline deletions: `json-schema.manifest/ai.json` (2 defs)
and `authorable-surface/ai.json` (3 keys). The build's check (c) accepts
the second because the whole def leaves. `authorable-surface.base.json`
is the pinned anchor and is not touched.
- Regenerated: `api-surface/ai.json` (−6), `export-origins/ai.json`
(−6), `declaration-map/ai.json` (−4), the reference docs
(`content/docs/references/ai/build-progress.mdx` removed, both indexes),
and the strictness-ledger counts.
- `type-alias-convention.pin.test.ts`: the M188 import leaves (slot
stays vacant, as for M166), the two `Iso_ai_buildProgress__*` pins
leave, and the count goes 881 → 879 in the assertion and both prose
counts.
- Three comments that cited the module as a precedent are reworded:
`contracts/ai-service.ts` (`onProgress`), `ai/record-citation.zod.ts`,
`ui/component.zod.ts` (which now says its remaining precedent,
`DashboardWidgetConfigSchema`, is declared in `ui/packages/types`).
- `packages/spec/llms.txt` (hand-kept, ships in the tarball): the schema
inventory count 233 → 232, the `ai` row 18 → 17 and its "Build Progress"
entry removed (contract review 7247625401 M2; `check:llms-txt`).
Changeset `.changeset/37753-build-progress-frame-retired.md`:
`@objectstack/spec` **minor** (kind `narrowed`), BREAKING banner, one
FROM → TO line per export group. The claim said `Metadata-protocol:
none`; `Check Changeset` reads the three removed
`authorable-surface/ai.json` rows as a narrowing and refuses `none` (run
46202350592 on 5036e03), so the line and the level follow the gate
(7b40319).
## Premise
- This repo, exact-name `git grep` of all six exports at `main` 600197a
and again after merging `main` ff69bca: zero code readers. Hits were
only the module, its test, the type-alias pin, the generated baselines,
the reference page, CHANGELOGs and three prose citations. Control, same
instrument: `KnowledgeBuildProgress` has live readers in
`service-knowledge` and `cli`. Under `ui/`, only three comments
(`plugin-chatbot/src/chat/liveness.tsx` twice,
`plugin-chatbot/src/toolResultParsers.ts:138`) and one test fixture
literal `'data-build-progress'` in
`useObjectChat.setMessagesHonest-8342.test.tsx` remain; none imports the
spec.
- Cloud: `objectstack-ai/cloud` is outside what this thread can read.
The premise that cloud no longer produces or imports the frame rests on
the maintainer's word, relayed by seat 2 on 2026-11-28 23:24Z: 「5046
已合并」 (cloud#5046, the cloud producer's removal, has merged). Card step 3
("order after cloud#5046") is therefore met.
## Verification
<details><summary>runs</summary>
Head 5036e03 (after `git merge origin/main`, no rebase); 7b40319
changes only the changeset's level and kind line, and
`check:adr-0087-registration` was re-run on it (exit 0,
`metadata-protocol-narrowed`). Rework for contract review 7247625401:
1d77b3a (M2, `llms.txt`) and 45c0e27 (S1, the changeset's fix line
names `ToolExecutionContext.onProgress`; N1, the `component.zod.ts`
comment). At 45c0e27, after a fresh spec build: `check:generated`
14/14, `check:llms-txt` 98 claims re-derived (232 schemas),
`check:adr-0087-registration` exit 0.
- `pnpm --filter @objectstack/spec build`: exit 0. The first two runs
went red on purpose, first on the manifest rows and then on the
authorable-surface rows, and each remedy above was applied.
- `pnpm --filter @objectstack/spec check:generated`: exit 0, 14/14
current.
- `pnpm check:adr-0087-registration`: exit 0 (self-test 871 assertions;
`registered ai-build-progress-frame-retired (new here)`).
- `pnpm --filter @objectstack/spec typecheck` (tsc, scripts typecheck,
test-typecheck): exit 0.
- `vitest run` on `src/type-alias-convention.pin.test.ts src/migrations
scripts/build-schemas-check-mode.deletion-proofs.test.ts src/ai`: 31
files, 791 tests passed.
- `node scripts/pm/overlap-check.mjs`: VERDICT clean.
</details>
**Dogfood battery** at 45c0e27: `pnpm --filter @objectstack/dogfood
test` under the verify lock after building its closure, VERDICT
command-exit 0, 495 test files passed (3 skipped), 4183 tests passed (68
skipped). Browser pass on `app-showcase` (own port, `--seed-admin`,
console built from this head): the boot log has no build-progress line,
the showcase app renders with zero console errors, and discovery reports
`services.ai` `enabled: false` (no AI service ships in the open
framework), so no assistant entry renders. A real tool-calling assistant
turn is NOT MEASURED: this container has no model provider key.
## Out of scope
- `docs/adr/0037-live-canvas-draft-preview.md` still lists
`data-build-progress` parts as shipped, and the three
`ui/packages/plugin-chatbot` comments cite the part name. Not touched
here (an ADR edit is its own tier); carrier: #38402.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(a module removed, nothing added)
- [x] 2. Every name I added uses the casing for its kind. (entry ids
only)
- [x] 3. No formatter ran.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed.
- [x] 7. No hand edits to `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (the 维护者速读 summary is
the seat's Chinese summary for the maintainer)
The branch is `claude/project-thread-akskmv`, assigned by the platform
rather than the repo's `claude/issue-<n>-…` convention.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgVih5qknszNdfFQwYb
<!-- signed: repo:objectstack#2 · os-sales ·
session_01L6bhgVih5qknszNdfFQwYb -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 28c2fe8 commit 5df10ec
22 files changed
Lines changed: 97 additions & 636 deletions
File tree
- .changeset
- content/docs/references
- ai
- docs/audits/2026-07-unknown-key-strictness-ledger.counts
- packages/spec
- api-surface
- authorable-surface
- declaration-map
- export-origins
- json-schema.manifest
- src
- ai
- contracts
- migrations/entries
- retired-defs
- semantic
- ui
| 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 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
| |||
0 commit comments