Skip to content

Commit 5df10ec

Browse files
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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
fix(spec)!: retire the build-progress stream frame (`ai/build-progress.zod.ts`) — its reader and its producer are gone
6+
7+
Clause-②: no (narrowing) — six published exports of `@objectstack/spec/ai` are removed
8+
Metadata-protocol: narrowed
9+
10+
<!-- adr-0087: registered ai-build-progress-frame-retired -->
11+
12+
**BREAKING** for TypeScript code that imports the build-progress frame from `@objectstack/spec/ai`. The module declared the payload of the `data-build-progress` stream part the build chat drew as its progress panel. That panel was removed with the build chat front end, and the cloud build loop that emitted the frame was removed with it, so nothing parsed the frame any more and the exported schemas read as a capability that no longer exists (ADR-0049 enforce-or-remove). It was never authored metadata: no metadata type, source file or stored row carries it, so there is nothing for `os migrate meta` to rewrite. A lingering import stops compiling, which is where an upgrader meets the change.
13+
14+
What moves (each line FROM → TO):
15+
16+
- `BuildProgressFrameSchema`, `BuildProgressFrame` (`@objectstack/spec/ai`): FROM the frame's `data` floor (`phase`, `hop`, `tool`) TO removed — delete the import and the code that emits or reads a `data-build-progress` part.
17+
- `BuildProgressPhaseSchema`, `BuildProgressPhase`, `BUILD_PROGRESS_PHASES` (`@objectstack/spec/ai`): FROM the closed phase vocabulary (`structure`, `data`, `verify`, `done`) TO removed — delete the import.
18+
- `BUILD_PROGRESS_FRAME_TYPE` (`@objectstack/spec/ai`): FROM the literal `'data-build-progress'` TO removed — delete the import.
19+
20+
The fix: delete the imports. A host that still streams a progress part of its own passes any `data-` part name to `ctx.onProgress` (`ToolExecutionContext.onProgress`, unchanged) and owns the payload shape it sends.
21+
22+
The retirement kit: `ai/build-progress.zod.ts` and its test deleted, `RETIRED_DEFS_BY_MAJOR[19]` rows `ai/BuildProgressFrame` and `ai/BuildProgressPhase`, D3 `ai-build-progress-frame-retired`, the `json-schema.manifest/ai.json` and `authorable-surface/ai.json` rows deleted deliberately (the def is no longer emitted), the regenerated `api-surface`, `export-origins` and `declaration-map` shards, the removed `build-progress` reference page, and the `type-alias-convention` pin count 881 → 879.

‎content/docs/references/ai/build-progress.mdx‎

Lines changed: 0 additions & 131 deletions
This file was deleted.

‎content/docs/references/ai/index.mdx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Protocol — complete schema reference
33
navTitle: AI Protocol
4-
description: "The ObjectStack AI Protocol in 18 reference pages: every schema in @objectstack/spec with its properties, types, defaults and a TypeScript example."
4+
description: "The ObjectStack AI Protocol in 17 reference pages: every schema in @objectstack/spec with its properties, types, defaults and a TypeScript example."
55
---
66

77
{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
@@ -12,7 +12,6 @@ This section contains all protocol schemas for the ai layer of ObjectStack.
1212
<Card href="/docs/references/ai/agent" title="Agent" description="Source: packages/spec/src/ai/agent.zod.ts" />
1313
<Card href="/docs/references/ai/ai-context" title="Ai Context" description="Source: packages/spec/src/ai/ai-context.zod.ts" />
1414
<Card href="/docs/references/ai/ask-question" title="Ask Question" description="Source: packages/spec/src/ai/ask-question.zod.ts" />
15-
<Card href="/docs/references/ai/build-progress" title="Build Progress" description="Source: packages/spec/src/ai/build-progress.zod.ts" />
1615
<Card href="/docs/references/ai/conversation" title="Conversation" description="Source: packages/spec/src/ai/conversation.zod.ts" />
1716
<Card href="/docs/references/ai/dataset-tools" title="Dataset Tools" description="Source: packages/spec/src/ai/dataset-tools.zod.ts" />
1817
<Card href="/docs/references/ai/draft-review" title="Draft Review" description="Source: packages/spec/src/ai/draft-review.zod.ts" />

‎content/docs/references/ai/meta.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"---More---",
1818
"ai-context",
1919
"ask-question",
20-
"build-progress",
2120
"dataset-tools",
2221
"draft-review",
2322
"object-query-source",

‎content/docs/references/index.mdx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Protocol reference — every schema by module
33
navTitle: Protocol Reference
4-
description: Every schema published by @objectstack/spec — 1744 schemas across 14 protocol modules
4+
description: Every schema published by @objectstack/spec — 1742 schemas across 14 protocol modules
55
---
66

77
{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
@@ -22,7 +22,7 @@ counts are sums of the rows they head. Regenerate with
2222

2323
| Module | Pages | Schemas | Description |
2424
| :--- | ---: | ---: | :--- |
25-
| [AI Protocol](/docs/references/ai) | 18 | 104 | Agents, tools, skills, RAG and knowledge sources, model registry, conversations. |
25+
| [AI Protocol](/docs/references/ai) | 17 | 102 | Agents, tools, skills, RAG and knowledge sources, model registry, conversations. |
2626
| [API Protocol](https://github.com/objectstack-ai/objectstack/tree/main/packages/spec/docs/references/api) | 37 | 529 | REST contracts, endpoints, routing, realtime, batch, discovery. |
2727
| [Automation Protocol](/docs/references/automation) | 16 | 82 | Flows and their nodes, approvals, ETL pipelines, webhooks, state machines, execution records. |
2828
| [Data Protocol](/docs/references/data) | 35 | 197 | Objects, fields, queries, filters, datasources and drivers — the ObjectQL layer. |
@@ -36,13 +36,13 @@ counts are sums of the rows they head. Regenerate with
3636
| [Studio Protocol](https://github.com/objectstack-ai/objectstack/tree/main/packages/spec/docs/references/studio) | 3 | 35 | Studio designer metadata — the authoring surfaces for the protocols above. |
3737
| [System Protocol](https://github.com/objectstack-ai/objectstack/tree/main/packages/spec/docs/references/system) | 40 | 298 | The runtime environment — logging, jobs, cache, metrics, notifications, i18n and compliance. |
3838
| [UI Protocol](/docs/references/ui) | 17 | 186 | Apps, pages, views, dashboards, reports, actions and themes — the ObjectUI layer. |
39-
| **Total** | **224** | **1744** | 14 protocol modules |
39+
| **Total** | **223** | **1742** | 14 protocol modules |
4040

4141
---
4242

4343
## AI Protocol
4444

45-
**Source:** `packages/spec/src/ai/` · **Import:** `@objectstack/spec/ai` · **18 pages, 104 schemas**
45+
**Source:** `packages/spec/src/ai/` · **Import:** `@objectstack/spec/ai` · **17 pages, 102 schemas**
4646

4747
Agents, tools, skills, RAG and knowledge sources, model registry, conversations.
4848

@@ -51,7 +51,6 @@ Agents, tools, skills, RAG and knowledge sources, model registry, conversations.
5151
| [`agent.zod.ts`](/docs/references/ai/agent) | `AIModelConfig`, `Agent`, `StructuredOutputConfig`, `StructuredOutputFormat`, `TransformPipelineStep` |
5252
| [`ai-context.zod.ts`](/docs/references/ai/ai-context) | `AiContext`, `AiContextBody`, `AiContextRelated`, `AiContextRelatedWhere` |
5353
| [`ask-question.zod.ts`](/docs/references/ai/ask-question) | `AskQuestion`, `AskQuestionEnvelope`, `AskQuestionOption` |
54-
| [`build-progress.zod.ts`](/docs/references/ai/build-progress) | `BuildProgressFrame`, `BuildProgressPhase` |
5554
| [`conversation.zod.ts`](/docs/references/ai/conversation) | `CodeContent`, `ConversationAnalytics`, `ConversationContext`, `ConversationMessage`, `ConversationSession`, `ConversationSummary`, `FileContent`, `FunctionCall`, `ImageContent`, `MessageContent`, `MessageContentType`, `MessagePruningEvent`, `MessageRole`, `TextContent`, `TokenBudgetConfig`, `TokenBudgetStrategy`, `TokenUsageStats`, `ToolCall` |
5655
| [`dataset-tools.zod.ts`](/docs/references/ai/dataset-tools) | `DatasetNextStep`, `DatasetNextStepDecision`, `DatasetProvenance`, `DatasetTermCandidate`, `DatasetTermMatch`, `DatasetTermMatchedOn`, `DatasetToolCatalogDimension`, `DatasetToolCatalogEntry`, `DatasetToolCatalogMeasure`, `ListDatasetsInput`, `ListDatasetsOutput`, `QueryDatasetInput`, `QueryDatasetOutput` |
5756
| [`draft-review.zod.ts`](/docs/references/ai/draft-review) | `DraftReviewItem`, `DraftReviewLinks`, `DraftReviewList`, `DraftReviewVerdict`, `DraftReviewVerdictRefusal` |

‎docs/audits/2026-07-unknown-key-strictness-ledger.counts/ai.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ hand-patch a number here** — fix the code or the verdict and regenerate.
1919

2020
| Dir | Sites |
2121
|---|---|
22-
| `ai/` | 121 |
22+
| `ai/` | 120 |

‎packages/spec/api-surface/ai.json‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
"AskQuestionOptionSchema (const)",
4646
"AskQuestionParsed (type)",
4747
"AskQuestionSchema (const)",
48-
"BUILD_PROGRESS_FRAME_TYPE (const)",
49-
"BUILD_PROGRESS_PHASES (const)",
5048
"BlueprintApp (type)",
5149
"BlueprintAppParsed (type)",
5250
"BlueprintAppSchema (const)",
@@ -71,10 +69,6 @@
7169
"BlueprintWidgetCondition (type)",
7270
"BlueprintWidgetConditionSchema (const)",
7371
"BodyHeading (interface)",
74-
"BuildProgressFrame (type)",
75-
"BuildProgressFrameSchema (const)",
76-
"BuildProgressPhase (type)",
77-
"BuildProgressPhaseSchema (const)",
7872
"CodeContentSchema (const)",
7973
"ConversationAnalytics (type)",
8074
"ConversationAnalyticsParsed (type)",

‎packages/spec/authorable-surface/ai.json‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@
123123
"ai/BlueprintWidgetCondition:field",
124124
"ai/BlueprintWidgetCondition:op",
125125
"ai/BlueprintWidgetCondition:value",
126-
"ai/BuildProgressFrame:hop",
127-
"ai/BuildProgressFrame:phase",
128-
"ai/BuildProgressFrame:tool",
129126
"ai/CodeContent:language",
130127
"ai/CodeContent:metadata",
131128
"ai/CodeContent:text",

‎packages/spec/declaration-map/ai.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
"BlueprintViewSchema": "ai/BlueprintView",
4242
"BlueprintWidgetCondition": "ai/BlueprintWidgetCondition",
4343
"BlueprintWidgetConditionSchema": "ai/BlueprintWidgetCondition",
44-
"BuildProgressFrame": "ai/BuildProgressFrame",
45-
"BuildProgressFrameSchema": "ai/BuildProgressFrame",
46-
"BuildProgressPhase": "ai/BuildProgressPhase",
47-
"BuildProgressPhaseSchema": "ai/BuildProgressPhase",
4844
"CodeContentSchema": "ai/CodeContent",
4945
"ConversationAnalytics": "ai/ConversationAnalytics",
5046
"ConversationAnalyticsSchema": "ai/ConversationAnalytics",

‎packages/spec/export-origins/ai.json‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
"AskQuestionOptionSchema": "src/ai/ask-question.zod.ts#AskQuestionOptionSchema (const)",
4646
"AskQuestionParsed": "src/ai/ask-question.zod.ts#AskQuestionParsed (type)",
4747
"AskQuestionSchema": "src/ai/ask-question.zod.ts#AskQuestionSchema (const)",
48-
"BUILD_PROGRESS_FRAME_TYPE": "src/ai/build-progress.zod.ts#BUILD_PROGRESS_FRAME_TYPE (const)",
49-
"BUILD_PROGRESS_PHASES": "src/ai/build-progress.zod.ts#BUILD_PROGRESS_PHASES (const)",
5048
"BlueprintApp": "src/ai/solution-blueprint.zod.ts#BlueprintApp (type)",
5149
"BlueprintAppParsed": "src/ai/solution-blueprint.zod.ts#BlueprintAppParsed (type)",
5250
"BlueprintAppSchema": "src/ai/solution-blueprint.zod.ts#BlueprintAppSchema (const)",
@@ -71,10 +69,6 @@
7169
"BlueprintWidgetCondition": "src/ai/solution-blueprint.zod.ts#BlueprintWidgetCondition (type)",
7270
"BlueprintWidgetConditionSchema": "src/ai/solution-blueprint.zod.ts#BlueprintWidgetConditionSchema (const)",
7371
"BodyHeading": "src/ai/record-body-anchor.ts#BodyHeading (interface)",
74-
"BuildProgressFrame": "src/ai/build-progress.zod.ts#BuildProgressFrame (type)",
75-
"BuildProgressFrameSchema": "src/ai/build-progress.zod.ts#BuildProgressFrameSchema (const)",
76-
"BuildProgressPhase": "src/ai/build-progress.zod.ts#BuildProgressPhase (type)",
77-
"BuildProgressPhaseSchema": "src/ai/build-progress.zod.ts#BuildProgressPhaseSchema (const)",
7872
"CodeContentSchema": "src/ai/conversation.zod.ts#CodeContentSchema (const)",
7973
"ConversationAnalytics": "src/ai/conversation.zod.ts#ConversationAnalytics (type)",
8074
"ConversationAnalyticsParsed": "src/ai/conversation.zod.ts#ConversationAnalyticsParsed (type)",

0 commit comments

Comments
 (0)