Skip to content

fix(spec)!: retire the build-progress stream frame now that no code reads it - #38398

Merged
os-zhuang merged 6 commits into
mainfrom
claude/project-thread-akskmv
Nov 29, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/project-thread-akskmv

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

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

runs

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.

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

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (a module removed, nothing added)
  • 2. Every name I added uses the casing for its kind. (entry ids only)
  • 3. No formatter ran.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/releases/.
  • 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.ai/code/session_01L6bhgVih5qknszNdfFQwYb

ai/build-progress.zod.ts declared the payload of the data-build-progress
stream part for the build chat's progress panel. The panel was removed with
the build chat front end (#37720) and the cloud build loop that emitted the
frame with it, so no code reads any of the module's six exports. Removed
whole under ADR-0049 enforce-or-remove: RETIRED_DEFS_BY_MAJOR[19] rows for
ai/BuildProgressFrame and ai/BuildProgressPhase, D3
ai-build-progress-frame-retired, baselines regenerated, the manifest and
authorable-surface rows deleted deliberately, pin count 881 -> 879.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVih5qknszNdfFQwYb
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:ai protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 9 documentable anchor(s). ⚠️ 10 changed file(s) yielded no anchor (packages/spec/api-surface/ai.json, packages/spec/authorable-surface/ai.json, packages/spec/declaration-map/ai.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/protocol/knowledge.mdx (via ToolExecutionContext (symbol, a top-level interface))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v15.mdx (via ToolExecutionContext (symbol, a top-level interface))
  • content/docs/releases/v9.mdx (via ToolExecutionContext (symbol, a top-level interface))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 10 changed file(s) yielded no anchor (packages/spec/api-surface/ai.json, packages/spec/authorable-surface/ai.json, packages/spec/declaration-map/ai.json, …) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 253 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 125 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 181 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json c610020e2f2b0c06aab7d092b19b2e77622815ac → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ccf917a0833dd60b8bfb571bae44447621320504 — the merge of head 45c0e2737b420a270424b8fa08559622d9a61d80 into base c610020e2f2b0c06aab7d092b19b2e77622815ac, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ccf917a0833dd60b8bfb571bae44447621320504 && git checkout ccf917a0833dd60b8bfb571bae44447621320504
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c610020e2f2b0c06aab7d092b19b2e77622815ac 45c0e2737b420a270424b8fa08559622d9a61d80 && git checkout -B drift-repro c610020e2f2b0c06aab7d092b19b2e77622815ac && git merge --no-ff 45c0e2737b420a270424b8fa08559622d9a61d80

node scripts/docs-audit/affected-docs.mjs --json c610020e2f2b0c06aab7d092b19b2e77622815ac

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs c610020e2f2b0c06aab7d092b19b2e77622815ac → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…inor

The authorable-surface ai shard loses three rows, which Check Changeset reads
as a metadata-protocol narrowing.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVih5qknszNdfFQwYb
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7b40319dd7c2e17ce2c0a03d1ad3278ae4ef8dbe
Local-runs: none
Scope: packages/spec/src/ai/build-progress.zod.ts, packages/spec/src/ai/index.ts, packages/spec/src/ai/record-citation.zod.ts, packages/spec/src/contracts/ai-service.ts, packages/spec/src/migrations/entries/retired-defs/19.ai__BuildProgressFrame.ts, packages/spec/src/migrations/entries/retired-defs/19.ai__BuildProgressPhase.ts, packages/spec/src/migrations/entries/semantic/19.ai-build-progress-frame-retired.ts, packages/spec/src/ui/component.zod.ts + packages/spec/src/type-alias-convention.pin.test.ts, packages/spec/src/ai/build-progress.test.ts, packages/spec/json-schema.manifest/ai.json, packages/spec/authorable-surface/ai.json, packages/spec/api-surface/ai.json, packages/spec/export-origins/ai.json, packages/spec/declaration-map/ai.json

Read: card #37753 with its five comments, the PR body and file list, the net diff of 21 files against main ff69bca (the merge base), and the check-runs. This head is one commit on 5036e03; that commit changes two lines of the changeset and nothing else, so every other file is byte-identical to the head read first. On this head, at the read, seven check-runs had concluded success and none had failed; Check Changeset, Type Check · source gates and the Build, Lint, Test Core and remaining Type Check lanes were still in progress, so they are not gate verdicts yet. On 5036e03, Check Changeset and Type Check · source gates concluded failure.

① Derived judgments

  • Six exports leave @objectstack/spec/ai: BuildProgressFrameSchema, BuildProgressFrame, BuildProgressPhaseSchema, BuildProgressPhase, BUILD_PROGRESS_PHASES, BUILD_PROGRESS_FRAME_TYPE. Right. An exact-name grep of the head tree finds no reader of any of the six outside this PR's own retirement entries, the changeset, CHANGELOG files and authorable-surface.base.json; on main the only holders were the module, its test, the pin test, the five baselines, the reference page and index, and the two precedent comments. packages/**, ui/**, examples/**, skills/**, packages/cli/** and content/docs/** (outside releases) hold no import. The control KnowledgeBuildProgress / BUILD_PROGRESS_LOG_INTERVAL_MS in service-knowledge is a different family and is untouched.
  • No code in this repo emits or parses a data-build-progress part: no caller of ToolExecutionContext.onProgress exists under packages/** at the head, and ui/ keeps the literal only in three comments (plugin-chatbot/src/chat/liveness.tsx twice, plugin-chatbot/src/toolResultParsers.ts:138) and one test fixture that uses it as an arbitrary part name. Right to remove.
  • Two defs leave the emitted JSON schema: ai/BuildProgressFrame, ai/BuildProgressPhase, each with a RETIRED_DEFS_BY_MAJOR[19] entry file in the house shape. Right.
  • Three authorable-surface rows leave authorable-surface/ai.json (ai/BuildProgressFrame:hop, :phase, :tool); authorable-surface.base.json keeps them, as its own gate requires. The removal is right, and the declaration now says so, see ②.
  • Baseline rows removed are exactly the module's: api-surface 6, export-origins 6, declaration-map 4, json-schema.manifest 2, authorable-surface 3. No other row moves in any of the five shards.
  • Reference docs: page removed, meta.json and both indexes follow (18 → 17 pages, 104 → 102 schemas, 224 → 223, 1744 → 1742); strictness-ledger count 121 → 120. Consistent with one module and two defs leaving.
  • packages/spec/llms.txt still declares the module. Wrong, see M2.
  • Cloud premise (card Do item 3): not readable from this review. It rests on the maintainer's sentence quoted in the PR body and the seat note, 「5046 已合并」. Nothing in this repo contradicts it.

② Semver level

Clause-②: no (narrowing) — right. A published export set shrinks and nothing is added.

Metadata-protocol: narrowed — right. The changeset at this head carries '@objectstack/spec': minor with Metadata-protocol: narrowed, and the PR body carries the same two declarations and says "minor (kind narrowed)". The diff removes three rows from packages/spec/authorable-surface/ai.json, which the ratchet records as an authorable key leaving; narrowed with the (narrowing) arm is the kind that shard records, and minor is the level that kind takes during the launch window (major is refused). The playbook's changeset row says the same. The frame was never a key on a governed metadata type, as the body says, and the declaration still follows the ratchet, which is the rule the gate applies. Check Changeset refused the earlier none and patch on 5036e03; its run on this head had not concluded at the read.

M1: closed — the changeset and the PR body both read narrowed and minor at this head.

The BREAKING text has the banner, a FROM → TO line per export group and a one-line fix, and the ADR-0087 marker registered ai-build-progress-frame-retired matches the semantic entry id. Its fix line names AIToolContext.onProgress; no symbol of that name exists in the tree, the interface is ToolExecutionContext (contracts/ai-service.ts:1259). This is S1.

③ Boundary flags

  • open_questions: empty in the dev report. Nothing to answer.
  • Dev flag, published-readme-exports exit 3 locally (prerequisite missing): not measured by the dev; its CI lane had not concluded at the read. Left to the check-run.
  • Dev flag, out of scope: docs/adr/0037-live-canvas-draft-preview.md still lists data-build-progress parts as shipped, and the ui/packages/plugin-chatbot comments still cite the part. Agreed that both are outside this card's surface. The report says carrier: none; an ADR that states a removed stream as shipped needs a carrier, so this is escalated to the seat to file as a follow-up card. The premise text counts two ui comments; the tree has three (toolResultParsers.ts:138 is the third). None imports the spec.
  • Dev flag, dogfood battery owed at the final head: agreed, the head will move.
  • SQL push-down: not applicable. The diff adds no query, id materialisation or join.

④ Design judgment

M2 (must-fix) — packages/spec/llms.txt is not in the diff and still advertises the removed module at this head: line 95 says ai | 18 and lists "Build Progress", while packages/spec/src/ai/ holds 17 *.zod.ts modules; line 80 says 233 schemas, one more than the gate counted. check:llms-txt turned Type Check · source gates red on 5036e03 for exactly this, and neither llms.txt nor packages/spec/src/ moved between that head and this one; the lane's run on this head had not concluded at the read. It is a shipped file of the package, so it belongs to the retirement. Fix by hand (there is no generator): both counts and the "Build Progress" entry.

S1 (should-fix) — still open at this head: the changeset's fix line (line 20) cites AIToolContext.onProgress. That name is not declared anywhere in the repo; the contract is ToolExecutionContext.onProgress. The line ships in the package CHANGELOG as the instruction an upgrader greps for. The name was carried from the removed module's own prose. The semantic entry says ctx.onProgress and is unaffected.

N1 (nit) — ui/component.zod.ts: the rewritten sentence now names DashboardWidgetConfigSchema as "the house precedent" alone. That schema is declared in ui/packages/types, not in packages/spec; the citation predates this PR, and the rewrite leaves it as the sentence's only anchor without saying where it lives.

Per file:

  • ai/build-progress.zod.ts (deleted): holds. The module's own docblock recorded verify, hop and tool as declared ahead with zero emitters and zero readers, and named the plugin-chatbot panel as the one consumer; with that consumer gone (feat(chatbot): retire the build chat frontend #37720) nothing in this repo parses the frame, which is the ADR-0049 remove arm. Whole-module removal with no tombstone is the playbook's whole-def shape: the frame was never a key on a governed metadata type, so there is no liveness-ledger row and no D2 conversion to write, and the four ratchets must move, which they do.
  • ai/index.ts: holds. The re-export and its header bullet leave together; no other line moves.
  • migrations/entries/retired-defs/19.ai__BuildProgressFrame.ts, 19.ai__BuildProgressPhase.ts: hold. File names, the single entry export and the def ids match the neighbouring 19.ai__* entries and the two manifest rows removed.
  • migrations/entries/semantic/19.ai-build-progress-frame-retired.ts: holds. surface names all six exports, replacement is none with the action, and the id matches the changeset marker. A D3 entry is the right register for a removal with no data half; the three authorable rows were a projection of the frame's object shape, not a key any metadata source carries.
  • contracts/ai-service.ts: holds. The onProgress signature is unchanged; the jsdoc loses the data-build-progress example and the apply_blueprint sample, which described a producer this repo does not contain. The remaining sentences agree with the signature.
  • ai/record-citation.zod.ts: holds. The dropped precedent pointer named a removed constant; the remaining sentence is true of RECORD_CITATIONS_PART_TYPE.
  • ui/component.zod.ts: holds apart from N1. Comment only; no schema line moves.
  • type-alias-convention.pin.test.ts: agrees. M188 import removed with the slot left vacant, two Iso_ai_buildProgress__* pins removed, 881 → 879 in the assertion, the title and the header.
  • ai/build-progress.test.ts (deleted) and the five baselines: agree with the removal; row counts as in ①.

Implemented-by: claude/project-thread-akskmv
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

VERDICT: FAIL

…say where the precedent schema lives

Contract review 7247625401 S1 and N1.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVih5qknszNdfFQwYb
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 45c0e2737b420a270424b8fa08559622d9a61d80
Local-runs: none
Scope: packages/spec/src/ai/build-progress.zod.ts, packages/spec/src/ai/index.ts, packages/spec/src/ai/record-citation.zod.ts, packages/spec/src/contracts/ai-service.ts, packages/spec/src/migrations/entries/retired-defs/19.ai__BuildProgressFrame.ts, packages/spec/src/migrations/entries/retired-defs/19.ai__BuildProgressPhase.ts, packages/spec/src/migrations/entries/semantic/19.ai-build-progress-frame-retired.ts, packages/spec/src/ui/component.zod.ts + packages/spec/llms.txt, packages/spec/src/type-alias-convention.pin.test.ts, packages/spec/src/ai/build-progress.test.ts, packages/spec/json-schema.manifest/ai.json, packages/spec/authorable-surface/ai.json, packages/spec/api-surface/ai.json, packages/spec/export-origins/ai.json, packages/spec/declaration-map/ai.json

Delta review of record 7247625401 (head 7b40319). Read: the range 7b40319..45c0e27 (two commits, three files, 6 insertions and 5 deletions), the PR body at this head, and the check-runs on this head. Every file outside those three is byte-identical to the head record 7247625401 covers, so its ①, ③ and per-file ④ readings stand for them. Net diff against main ff69bca is now 22 files.

Check-runs on this head at the read: Check Changeset concluded success (a second run of it was still in progress), Spec property liveness, Governed Surface Queue Guard, Dogfood Regression Gate and five others success, none failed, one PR-body guards run cancelled beside one that succeeded. Type Check · source gates and the Build, Lint, Test Core and other Type Check lanes were still in progress, so they are not gate verdicts yet.

① Derived judgments

  • No accept-set or public-surface change in the delta. Right: the three hunks are a changeset sentence, two count lines and one row of llms.txt, and a comment in ui/component.zod.ts. No schema line, export, baseline or migration entry moves.
  • packages/spec/llms.txt now describes the package without the removed module: heading 232, ai | 17, "Build Progress" gone from the row. Right. packages/spec/src/ai/ holds 17 *.zod.ts modules at this head, and 232 is the count check:llms-txt reported for the tree on 5036e03, whose src/ is unchanged since.
  • The derived judgments of record 7247625401 are unchanged.

② Semver level

Clause-②: no (narrowing) — right, unchanged.

Metadata-protocol: narrowed, @objectstack/spec minor — right, unchanged in the changeset frontmatter and the PR body. Check Changeset concluded success on this head.

The delta's one changeset edit replaces a symbol name in the fix line and moves no level, kind or marker.

③ Boundary flags

④ Design judgment

M2: closed — packages/spec/llms.txt lines 80 and 95 read 232 and ai | 17, and the row no longer lists "Build Progress" (1d77b3a). No other line of the file moves.

S1: closed — the changeset's fix line names ToolExecutionContext.onProgress, the interface declared at contracts/ai-service.ts:1259 (45c0e27). AIToolContext no longer appears anywhere in the tree.

N1: closed — the ui/component.zod.ts comment now says where the precedent lives, and the pointer is true: DashboardWidgetConfigSchema is declared at ui/packages/types/src/zod/complex.zod.ts:1767 as a z.looseObject with declared members, which is what the sentence claims of it. Comment only; no schema line moves.

M1 was closed in record 7247625401 and stays closed.

The delta introduces nothing new. No must-fix, no should-fix.

Implemented-by: claude/project-thread-akskmv
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 45c0e27 · card #37753 · area s2-ai · 2026-11-29T00:44Z

L1 checklist

  • Shape and checks. Every check on the head is green apart from expected skips (65 success, 14 skipped; the one cancelled PR-body guards run is superseded by a later success of the same check); mergeable clean. The PR is a draft. It removes packages/spec/src/ai/build-progress.zod.ts and its test, the ai/index.ts re-export, the reference page, and regenerates the spec baselines; it adds two retired-def entries and one semantic migration entry (ADR-0087), corrects the hand-kept llms.txt counts, fixes the comments that named the removed export, and adds one changeset. Dev report 7247570184.
  • Contract review at CONTRACT_REVIEW_TIER. Record 7247625401 FAILed on M2 (llms.txt counts), S1 (the changeset named the wrong context type) and N1 (a precedent comment); delta record 7247739823 on this head is a PASS with nothing open. The seat adopts both records.
  • Premise. Zero readers of the removed exports in this repo; the cloud producer is gone per the maintainer's 「5046 已合并」 in this seat's project.
  • Dogfood on this head. The dogfood battery exits 0 (495 files passed, 3 skipped; 4,183 tests passed, 68 skipped). The showcase app boots on this head with no build-progress line in its log and no console error; the in-app assistant is not served in this edition, so a live tool-call turn is NOT MEASURED (no model key in the container).
  • Declarations. Clause-②: no (narrowing), Metadata-protocol: narrowed, @objectstack/spec minor. Fixes #37753 is right. ADR-0037's stale text is out of scope and carded as docs/adr/0037: stop listing data-build-progress parts as shipped now the build progress frame is retired (#37753) #38402.
  • Governance. A narrowing of a published surface is Tier H, so the maintainer's approval lands it.

Tier: H. Landing: hand-off to the maintainer follows this record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Tier H hand-off · 2026-11-29T00:45Z · head 45c0e27 · approver os-zhuang

维护者速读

  • 改了什么: 从规范包里删掉「构建进度帧」这一套已经没人用的数据格式(AI 搭建应用时推送进度的消息格式)。云端那边的发送方你已确认合并(「5046 已合并」),本仓库里也查过零读者。
  • 用户会看到什么: 正常使用看不到变化。对写代码引用这个格式的开发者,它不再从 @objectstack/spec 导出,所以版本按 minor 发,迁移记录里写明了它已退休。
  • 审核: 契约审核(最高档)第一轮 FAIL(7247625401,计数和一处类型名写错),修完后复审 PASS(7247739823)。CI 全绿,dogfood 测试全过,示例应用在这个版本上启动正常。席位 L1 ACCEPT 在本评论前一条。
  • 没测到的: 开源版不带 AI 服务、容器里也没有模型密钥,所以没跑真实的 AI 工具调用对话。
  • 要你做什么: 需要你批准后才能合并。撤回这一次合并即恢复原样。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 29, 2026 00:51
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 5df10ec Nov 29, 2026
88 of 90 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-akskmv branch November 29, 2026 01:20
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…s five records) (objectstack-ai#38774)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Part of objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries seven of the card's nine rows. The two
ADR-0161 rows stay on the card; see "Rows not carried".

## 维护者速读

- 用户能看到什么变化:用户无感;只在五份设计记录里补了七条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29
日这一周);清单每一行指出一处「记录写的和主线不一致」或「记录留给某项工作回答、那项工作已经做完」,这次把代码已在主线的七行一并补齐。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这七条说明并批准一次(设计记录须由你本人批)。

## What changes

Five ADR files gain seven notes dated 2026-11-30. Every diff line is an
addition: 62 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. Where a row's wording did not match the tree, the
note says what `main` does; the last column says so and the list under
the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0084 · amendment of 2026-11-28, item (3) | "one landing for every
door is not ruled"; the command palette's package entries, an app's
design-in-Studio entry, the empty menu's entry and Setup's doors "still
open the object list" | One landing is ruled: ruling record 7247357556
on objectstack-ai#37958, the maintainer's 「OK」, quoted with its question. Every door
lands on the package's overview, `/studio/PACKAGE/overview`.
`/studio/PACKAGE/data` stays a working address for the object list. The
review-changes deep link still opens the Changes drawer over the object
list and is read as no door, by a seat reading and not by a ruling |
objectstack-ai#38501 | Card body row and 7252442785 · **written, corrected to the
tree** (two labels, the date) |
| ADR-0084 · the note of 2026-11-29 on the `form` row (near line 219) |
"The same change takes the type off the directory's hidden types and
brings its designer" | True of card objectstack-ai#37087, loose for the change: objectstack-ai#38484
brought the designer, and objectstack-ai#38619, which wrote the row, lists the type
(off the hidden types, a place in the menu) | objectstack-ai#38484, objectstack-ai#38619 |
7258423977 · **written as an added note** (the row says "Reword") |
| ADR-0037 · TL;DR item 2 and the "What already exists" table | "the
streaming build tree (`data-build-progress` parts)", and a table row
that marks "`data-build-progress` stream parts" shipped | The
build-progress stream frame is retired. Its reader left with the build
chat frontend, its producer with the cloud build loop, and its
declaration left `@objectstack/spec/ai`. The upgrade guidance is the
migration entry `ai-build-progress-frame-retired` | objectstack-ai#38398 (reader:
objectstack-ai#37720) | 7250363289 · **written** (one sentence beyond the row) |
| ADR-0150 · the note of 2026-11-26, bullet "Reads stay the missing
name" | "Three reads at `_env` still answer `409` at this head
(`?state=draft`, `?preview=draft`, `?layers=true`), and card objectstack-ai#34261
carries their move to `404`." | The move has landed. For a name only
disabled packages hold, each of the three answers its own `404` and
names no package, on both transports. An enabled package's stored draft
that the plain read does not see keeps the `409` for the two draft reads
| objectstack-ai#38633 | 7259890438 · **written, corrected to the tree** (codes and
callers made exact) |
| ADR-0150 · D4, the engine's flow-map row | The table keys the engine's
flow map by `(package, name)` and says nothing of the status rows read
from it | Each status row carries the `packageId` of the engine slot it
reads, so `(packageId, name)` names one row. The toggle door reads back
the row of the slot it switched, and echoes the request only where the
reading cannot name that flow | objectstack-ai#38652 | 7266385586 · **written** |
| ADR-0085 · the note of 2026-11-27 | "Neither key is in the spec yet:
`ObjectSchema` is strict and refuses both until objectstack-ai#37792 lands
`pinOverview` and objectstack-ai#37802 lands `fieldTabs`." | `pinOverview` is in the
spec, an optional boolean on `ObjectSchema`; `false` means the desktop
full record page never pins. An object extension does not carry the key.
`fieldTabs` is still refused | objectstack-ai#38679 | 7271302663 · **written**, no
`fieldTabs` line |
| ADR-0146 · the note of 2026-11-24 (near line 908) | "A `.custom`
package that is not the object's pair is not applied, and the boot log
names it." | Maintainer ruling 7268226134 on objectstack-ai#36548, item 5, arm (c),
verbatim 「保存和安装都拒绝」. A non-pair `.custom` package that writes
`fieldGroups`, `relatedLists` or `actionLayout` on an object extension
is refused at the save, the restore, the draft promotion, a package
duplicate and marketplace install. Where no door can read the installed
packages, the sentence stands | objectstack-ai#38706 | 7272564306 · **written,
corrected to the tree** (statuses; the duplicate's answer corrected in
patch round 1) |

### Rows not carried

- **ADR-0161, two rows** (Consequences, "The service keeps none of its
own"; K7 components table, "Split algorithm version"). The claim for
this pull request leaves that file out, because pull request objectstack-ai#38764 was
open on the same record when the claim was written. objectstack-ai#38764 merged at
2026-11-30T13:15:16Z, while this branch was being verified, and the
prerequisites both rows name (objectstack-ai#38307, objectstack-ai#38401, objectstack-ai#38375, objectstack-ai#38452) are
merged. Pull requests objectstack-ai#38730 and objectstack-ai#38732 (card objectstack-ai#38692) are still open and
both write ADR-0161, so that record still has other writers. By the
seat's call on the card (comment 7280598106) the two rows stay on objectstack-ai#38438
behind them, and this pull request is `Part of objectstack-ai#38438`.
- **ADR-0085, a `fieldTabs` line.** Its pull request, objectstack-ai#38742, was open
and a draft when this was opened (read at 2026-11-30, head
`59220bf331`). The card says that line follows when it merges.

Every prerequisite of the seven rows is merged on `main`: objectstack-ai#38398,
objectstack-ai#38501, objectstack-ai#38484, objectstack-ai#38619, objectstack-ai#38633, objectstack-ai#38652, objectstack-ai#38679 and objectstack-ai#38706. The newest
comment on the card when this was opened is the claim, 7279134045; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0084, item (3).** The row names Setup's doors "Open in Studio"
and "Customize in Studio". The labels on `main` are "Open in App Studio"
and "Customize in App Studio", and the note uses them. The proposed text
was dated 2026-11-29; the note is dated 2026-11-30, the day it was
written into the record. The note names the three Setup doors one by one
and says of the review-changes deep link what the row says: no door, by
a seat reading, not by a ruling.
- **ADR-0084, the `form` row.** The row says "Reword". The card's rule
is that a row lands as an added dated note, so the 2026-11-29 note stays
as written and a note under it says which pull request did which half.
- **ADR-0037.** One sentence goes beyond the row: Phase 2's first
invalidation source, the `buildProgress.items` diffs, was the same
signal as the chat held it, and no code under `ui/` holds it any more.
Cut it if the note should carry the row alone. The note also names the
producer's retirement in the cloud repository and what a host does that
still streams a progress part of its own.
- **ADR-0150, the reads.** The row's proposed sentence gives `404` for
`?preview=draft` and `?layers=true`. The note gives the code the tree
answers, `404 RESOURCE_NOT_FOUND`, says that these are the answers to a
caller admitted to the switch, and that a caller who is not admitted
gets the plain read's `404`. It adds two facts from the tree: a
package-less draft is withheld while a disabled package holds the name,
and the layered view answers `404` under the leak guard.
- **ADR-0150, D4.** The note spells out the three cases where the toggle
door still echoes the request. The row's proposed sentence leaves them
out.
- **ADR-0085.** The row offers a "Built by" line in the style of an
earlier note. The note carries it and also restates what `false` does
and why an object extension does not carry the key, both from the row's
own "what is true now".
- **ADR-0146.** The row gives one code for every door. The tree answers
`VALIDATION_ERROR` with status 400 at the save, the restore and the
draft promotion, and with status 422 at marketplace install, with
nothing installed. A package duplicate saves each copied row through the
save door and lists a refused row in its own `failed[]`, with the save
door's sentence and no code, storing nothing for that row. The note says
all three, and that no error code is minted.

## Patch round 1 (head `04cc5911`)

The contract review at `947b7e64` (comment 7280965486) passed with one
should-fix: the ADR-0146 note put `VALIDATION_ERROR` / 400 on the
package duplicate. Commit `04cc5911` corrects this branch's own
2026-11-30 note to the tree (`duplicatePackage` reports the refused row
in `failed[]`) and adds one sentence from item 3 of ruling 7268226134 (a
target whose owner the door does not know is not judged by role). Only
that note moves: +9 / -3 inside it, and the branch is still +62 / -0
against `main`. Dev report: card comment 7281379369. Sections below that
name `947b7e64` record the first round.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text at `947b7e64`:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0085 note,
reads as the sentence renders: the record links its two card references
and the quotation does not.
- Each verbatim maintainer quotation was compared with its record on
GitHub (7247357556 and 7268226134).
- Each path a note cites exists on the tree. The one exception is
deliberate: the ADR-0037 note names
`packages/spec/src/ai/build-progress.zod.ts` to say that the module is
gone.
- Each test title a note quotes is in the test file the note names.
- A probe on the spec source: `ObjectSchema` accepts `pinOverview:
false`, refuses `pinOverview: "no"`, and refuses `fieldTabs` as an
unrecognised key; `ObjectExtensionSchema` refuses `pinOverview` as an
unrecognised key, with its guidance.
- Upstream moved four commits while this was written. The branch merges
`main` at `f576dee5`; none of the four touches one of the five files or
a path a note cites. `overlap-check` answers `VERDICT clean exit 0`
against that `main`, and no open pull request shares a file with this
branch.

Two tests read these records from disk. Both were run on `947b7e64`
under the verify lock, after building what each needs:

-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table: `Test Files 1 passed (1)`, `Tests 21 passed
(21)`.
- `packages/qa/scenarios/test/score/entry.test.ts` reads ADR-0150's D1
table: `Test Files 1 passed (1)`, `Tests 14 passed (14)`. Its first run
answered `Failed to resolve entry for package "@objectstack/types"`, a
missing build in the fresh worktree and no verdict on this change; it
passed once that package's build closure was built.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on commit `947b7e64` (patch round 1
ran the same 21 on `04cc5911`, all exit 0). Each exit code was captured
before any pipe. Reconciliation: `Run reconciliation — 21 derived, 21
run, 0 NOT-MEASURED, 0 UNRUN`. The same 21 were derived and run on the
commit before the merge, with the same result.

<details><summary>ADR gates on 947b7e6 (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4597
anchors across 165 records resolve`, 0 line anchors survive. On the base
commit the gate read 4570, and 4593 with this change alone; the other
four come with `main`. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29015 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building `@objectstack/spec`, `@objectstack/formula` and
`@objectstack/lint` under the verify lock |

</details>

<details><summary>The other derived families on 947b7e6 (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs`, `node
scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm
check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm
check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm
check:pm-prior-rulings`, `pnpm check:refd-timer-probe`, `pnpm
check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, two commit messages (three after
patch round 1, also exit 0), no card relation and no model identifier in
the trailer pair.

</details>

<details><summary>A local-only reading that is red for a reason outside
this change</summary>

`pnpm check:dev-prereqs` exits 1 in this worktree: "The workspace is not
built", 105 of 110 workspace packages have no build output. It judges
the machine and not the diff, CI does not run its scan, and a fresh
worktree that builds only what a docs change needs reads this way. It is
not in the derived list.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them on the pull request and on the merge
group. Every other family CI runs is read from this pull request's check
runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why "Part of".** The card says it ends when its pull request merges.
Two of its rows are not here, so merging this one must leave the card
open.
- **Seen and left alone.** These are outside the seven rows and are not
changed here.
- ADR-0037's Status line says all four phases are implemented. On this
tree the console's canvas-invalidate signal has a subscriber and no
publisher: nothing calls the bus function that emits it. It is a
candidate row for the card of this name.
- ADR-0150's D4 note of 2026-11-10 gives its own end condition, an
earlier card landing. That card ended on 2026-11-12, and the record
carries no line that says so. A possible row; not judged here.
- Comments in the chat plugin still name the retired build-progress
part, and one test fixture uses the name as an open `data-` part. Not a
record, so not a row.

## Verification

### Read first

1.
`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`,
the note of 2026-11-30 under the note of 2026-11-24. The highest-risk
hunk: it quotes a maintainer ruling, and it draws the line between the
doors that refuse and the places where the old sentence still stands.
Check the two statuses and the list of places with no door.
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-11-30 under the amendment of 2026-11-28. It quotes a
maintainer ruling and lists every door; check the list, and the sentence
on the review-changes deep link, which records a seat reading and says
so.
3.
`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`,
the first amendment note of 2026-11-30. Check the three answers, who
gets which, and the leak-guard paragraph against the tests it names.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect five
rows under `docs/adr/`, each with `0` in the removed column, and 62
added lines in total (2, 4, 18, 28 and 10). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:ai protocol:ui size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retire the build-progress frame from the spec now that no consumer reads it (build retirement, cloud#5024)

3 participants