Skip to content

feat(studio): a dataset is a data type; datasets and positions are always listed in the menu - #37599

Merged
os-zhuang merged 6 commits into
mainfrom
claude/project-thread-80m7oi
Nov 27, 2026
Merged

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

repo:objectstack#5 · os-bill · session_01Utp6CbgELiNQU6e7me1RQy

Fixes #37564

Clause-②: no
Metadata-protocol: none
Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: MANDATORY docs/adr/**; served at tier, read from the thread's session record), effort: xhigh (reason: ADR-0084 revision plus a spec registry value, standing ADR-revision order)

维护者速读

  • 用户能看到什么变化:在 Studio 左侧菜单里,「数据集」从「界面」组的「高级」折叠里挪到「数据」组,紧跟在「对象」后面;「岗位」从「高级」折叠里挪到「访问」组,紧跟在「权限集」后面。两项始终显示,软件包里一个都没有也显示。
  • 为什么做:属于「Studio 是开发软件包的入口」这一轮菜单整理,落实你 11 月 26 日对架构记录 ADR-0084 的裁定:数据集是图表和 AI 问数共用的语义层,归数据;数据集和岗位都是常用项。记录里的类型归组表同步改成和菜单一致。
  • 出错会怎样:只影响这两类在菜单、类型目录里的位置和分组徽标,数据集本身的读写、图表、问数都不受影响,可以直接撤回。有一个对外可见的值变了:类型列表接口里数据集的归组由「界面」变成「数据」,按归组挑数据集的外部代码要跟着改。
  • 要你做什么:批准并合入(改了架构记录,属于受管文件,需要 os-zhuang 和 hotlong 批准)。没有需要你裁定的问题。

What changes

Nine files, +192 / −34 against main (merge base 9a65a48f: main has been merged in twice, each time for a neighbour that landed; head d2c2cb98). This PR carries out ADR-0084's Amendment (2026-11-26), "Placements, and what moves to Setup" for two rows, dataset and position, and decides nothing.

Where What changes
packages/spec/src/kernel/metadata-plugin.zod.ts One value: the dataset row of DEFAULT_METADATA_TYPE_REGISTRY reads domain: 'data'; it was 'ui'. A comment above the row says why. The row keeps its place in the block and its loadOrder (55).
ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts dataset and position move into the common rows, by name: dataset directly after object, position directly after permission. Each row carries its reason in a comment: a dataset's schema requires one object, and a position is one slot per name in the environment (ADR-0150 D7), so the rule's tests alone would sort each of them advanced. Twelve common rows, twenty advanced.
docs/adr/0084-application-builder-information-architecture.md The type-to-group table: dataset is row 2 of 数据 Data, tier 常用, and the five data types behind it are each one place later; its 界面 UI row is gone; position keeps its place and its tier reads 常用. One note under the table and one dated mark on the amendment's "not redrawn today" paragraph say the two rows are rewritten and that datasource and form still wait for their own changes. Nit N8 of the contract record on PR #37470: the 2026-11-24 top note's 2026-11-26 mark now links #amendment-2026-11-26-position. Still 32 rows of the pinned shape, in one table.
Four test files under ui/packages/app-shell/src/views/studio-design/ and packages/spec/src/kernel/metadata-plugin.test.ts The pins, below.
.changeset/37564-dataset-data-domain-common-tier.md @objectstack/spec patch, @object-ui/app-shell patch.

What follows from the registry value, with no edit. The menu, the type directory and the type page's group badge read the served domain, so all three show datasets under 数据 Data. studioMenuModel.ts and StudioMenu.tsx are not touched: the model reads the placement list and needs no special case.

A served value changes. GET /api/v1/meta/types answers domain: "data" for the dataset entry, and the listing is ordered by domain and then by type, so the entry now sits first among the data types. Read on a live showcase backend built from this branch: data:dataset data:field data:hook data:mapping data:object …. Code that finds the entry by type sees no difference. The changeset says this in the release note.

Why Clause-②: no and Metadata-protocol: none. No accepted set widens or narrows: the domain enum keeps its six values, no author writes the registry, and a *.dataset.ts item validates and loads as it did. No export, key or type is added, and the constant's declared type is the same. pnpm --filter @objectstack/spec check:generated reads "All 14 generated artifacts are up to date", so neither the API surface nor the authorable surface moved.

Not touched, as the card says. The datasource row, and form (ADR-0159): form is not registered at this base, so it has no row. The typescript-serializer.ts entry that maps dataset to ['Dataset', 'ui'] is the spec subpath the schema is imported from, not the domain; the schema still lives in ui/dataset.zod.ts.

Read first, by risk:

  1. packages/spec/src/kernel/metadata-plugin.zod.ts, the one-value hunk on the dataset row: it changes a served value.
  2. docs/adr/0084-application-builder-information-architecture.md, the table hunk: governed text, and the order of the 数据 Data rows is what the pin test compares to the placement list.
  3. ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, the two rows that move into the common block.

Two-minute verification: after pnpm --filter @objectstack/spec build, run pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts and expect Tests 17 passed (17). It reads the registry, the placement list and ADR-0084's table, and fails if any two of the three disagree.

Tests

  • packages/spec/src/kernel/metadata-plugin.test.ts: a new case pins dataset under data, dashboard and report under ui, and the six-value domain set. 41 of 41.
  • studioMenuPlacement.test.ts: the literal lists (twelve common, twenty advanced), a case for the two placements by name, and a new block that reads the three groups this change touches as ADR-0084 lists them. The existing block that compares the list with the ADR's Order and Tier columns, row by row, passes against the rewritten rows. 17 of 17.
  • studioMenuModel.test.ts and StudioMenu.test.tsx: the served fixture gains dataset under data; the common tier, the always-listed set and the fold are pinned with both types above the fold; a new block in StudioMenu.test.tsx asserts that 数据 draws object then dataset, 访问 draws permission then position, neither is inside the fold, and each links to its type page on an empty package, with a control (hook stays in the fold).
  • StudioPaletteGroups.surfaceScope-36900.test.tsx: the command palette draws the menu's entries, so position now follows permission there and its list is read. Two expectations, test only.
  • The four UI files together: 92 of 92 on c2e09545. On the merged head 2762c831 the affected run (every test file that reads the placement list, the directory grouping or the package overview) is 85 files, 730 tests, all passed, and the spec pin is 41 of 41. After the second merge, on d2c2cb98: the same selection is 85 files, 747 tests, all passed (the 17 tests more are main's), and the spec pin is 41 of 41.

Reverse verification, read on c2e09545 (neither merge changes the registry row, the placement list, or a line this PR adds to or removes from these pins), each mutation made with scripts/ablation-replace.mjs on a committed tree and restored to HEAD (blob equal to HEAD, git diff HEAD empty after each):

Mutation Reading
Registry: dataset back to domain: 'ui', spec rebuilt, dist read back as ui spec pin: 1 failed, 40 passed. studioMenuPlacement.test.ts: 5 failed, 12 passed (the ADR's group against the served domain, the order inside the group, and the new group block).
Placement list: position back to advanced 14 failed, 78 passed, in all four UI files.
Placement list: dataset back to advanced 12 failed, 80 passed, in three UI files. The palette file stays green: its fixture serves no dataset.

After the registry leg the package was rebuilt from the restored source and scripts/ablation-dist-preflight.mjs … --absent read the marker gone from all 614 built files; both pins passed again (41 of 41, 17 of 17).

Acceptance notes

  • The card's acceptance, line by line. The menu draws dataset under 数据 directly after 对象, and position under 访问 directly after 权限集, both outside the 高级 fold: read off a live Console on the showcase package in zh-CN, light and dark (数据: 对象 24 · 数据集 4, 访问: 权限集 9 · 岗位 10; the opened fold lists 18 entries and neither of the two). The dataset page's group badge reads 数据. The pin test is green against the rewritten rows. A spec test covers the registry value.
  • Screenshots. Eight PNGs, light and dark: the dataset list with the menu, the menu alone, the menu with the fold opened, and the position list. They are in the project's shared files under objectstack-seat5/topic-37424/cards/shots-37564/ and attached in the project thread; the relay cannot upload images to a PR.
  • One test outside the two the claim named. The affected-test run named StudioPaletteGroups.surfaceScope-36900.test.tsx, which pins the entries a package always lists. The area confirmed it is inside the claim's class before the edit was pushed.
  • The claim was posted by the area, not by this thread (comment 7193675575 on the card). The dispatch order asked the thread to write it; os-dev.md says a dispatched executor writes no claim and no assignee, and that file wins over an order.
  • Neighbours. main has been merged into this branch twice, each time because a neighbour landed in a shared test file.
  • Contract record. Comment 7196507657 on this PR reads PASS on c2e09545, and the delta record 7198537944 reads PASS on 2762c831, each with no must-fix and no should-fix. Nit N1 is closed (the mark on the "not redrawn today" paragraph opens with its date); N2 stays as the accepted deviation the record names. Since the delta record, the lines this PR adds and removes against its merge base are byte-identical in all nine files (git diff 4e10d4bf 2762c831 against git diff 9a65a48f d2c2cb98, per file, added and removed lines only): the second merge changed only what main brought.
  • Tier H by path. docs/adr/** (AGENTS.md Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14): approvers os-zhuang and hotlong, and the maintainer merges. The PR stays a draft. The Rule-change line is left out, as the template asks for a diff that does not touch .claude/**.
  • No docs page is owed. No page under content/docs/, no skill and no README places dataset in a Studio group or describes the menu's tiers. The Docs Drift Check lists three pages that name DEFAULT_METADATA_TYPE_REGISTRY (concepts/metadata-lifecycle.mdx, plugins/adding-a-metadata-type.mdx, protocol/objectui/concept.mdx); each was re-read, and none states dataset's domain.

Verification

  • Head d2c2cb98: six commits on the branch, of which two are merges of main (at 4e10d4bf and at 9a65a48f) and one dates the mark. No message names a card.
  • Gate list derived on d2c2cb98: node scripts/pm/dispatch-gates.mjs --commands prints 98 commands, line for line the 98 derived on the two earlier heads.
  • All 98 exited 0 on d2c2cb98, each exit code captured before any pipe, after pnpm install --frozen-lockfile and a full rebuild of the merged tree (123 of 123 tasks, none cached). --ran reconciliation: 98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED.
  • The same list was 98 of 98 on 2762c831 (after the first merge) and on c2e09545. Two reds of the very first pass were the container, not the diff, and each passed when run again alone: check-plugin-teardown-shape.mjs --self-test needs a pinned fixture commit that a shallow clone lacks; pnpm --dir ui exec vitest run scripts/ was killed by the container's memory limit while another test run shared the box.
  • Tests on d2c2cb98 under the verify lock: spec pin 41 of 41; affected UI run 85 files, 747 tests, all passed. On 2762c831: 85 files, 730 tests, all passed. On c2e09545: 82 files, 664 tests; 662 passed on the first run and the 2 that failed were the palette expectations above, fixed in that head.
  • Type checks were run locally on c2e09545 (pnpm --filter @objectstack/spec run typecheck, pnpm --filter @object-ui/app-shell run type-check, eslint on the seven changed source and test files, pnpm --dir ui run check:new-line-citations: each exit 0). They were not run again locally on either merged head; the type-check lanes are this PR's check-runs. The three reverse verifications were not run again either, for the reason given above them.
  • overlap-check.mjs on d2c2cb98: clean against origin/main 1dbf19a1 and the one open PR head that shares a file.
  • dispatch-gates --tier: docs/adr/** is the mandatory contract tier; changed lines 226 against the human-merge threshold 3000: under.
  • check-prior-rulings --paths on the ADR, the registry file and the placement list (read on c2e09545; neither merge changed the ADR): the 2026-11-24, 2026-11-25 and 2026-11-26 amendments of ADR-0084 are the rulings in force; this PR changes no decision of any of them.
  • CI was green on c2e09545 and on 2762c831 (72 check-runs: 60 success, 12 skipped, none failed). CI on d2c2cb98 is this PR's check-runs; the third report on the card cites them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy

…osition

The registry row for dataset moves from domain ui to data, the menu's
placement list places dataset directly after object and position directly
after permission in the common tier, and ADR-0084's type-to-group rows are
rewritten in the same change, as its 2026-11-26 amendment asks.

Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy
Co-authored-by: Claude <noreply@anthropic.com>
The command palette draws the left menu's entries. With position placed
in the common tier it is listed on a package that holds none, directly
after permission, and its list is read when the palette opens.

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

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 1 documentable anchor(s).

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

  • content/docs/concepts/metadata-lifecycle.mdx (via DEFAULT_METADATA_TYPE_REGISTRY (symbol, a top-level const object))
  • content/docs/plugins/adding-a-metadata-type.mdx (via DEFAULT_METADATA_TYPE_REGISTRY (symbol, a top-level const object))
  • content/docs/protocol/objectui/concept.mdx (via DEFAULT_METADATA_TYPE_REGISTRY (symbol, a top-level const object))
What this run could not see

Coarse fallback — 177 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 9a65a48f805dac70b64dc78c54abbe30dc0453d8 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ebcc37c7e1e59361fa205e16276aedd36d129dcf — the merge of head d2c2cb98cb39e1a11c1caa1daea6aec61fb8ad1d into base 9a65a48f805dac70b64dc78c54abbe30dc0453d8, 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 ebcc37c7e1e59361fa205e16276aedd36d129dcf && git checkout ebcc37c7e1e59361fa205e16276aedd36d129dcf
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9a65a48f805dac70b64dc78c54abbe30dc0453d8 d2c2cb98cb39e1a11c1caa1daea6aec61fb8ad1d && git checkout -B drift-repro 9a65a48f805dac70b64dc78c54abbe30dc0453d8 && git merge --no-ff d2c2cb98cb39e1a11c1caa1daea6aec61fb8ad1d

node scripts/docs-audit/affected-docs.mjs --json 9a65a48f805dac70b64dc78c54abbe30dc0453d8

⚠️ 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 9a65a48f805dac70b64dc78c54abbe30dc0453d8 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Green head for L1/L2 (round 1): c2e09545974c9dfc737e2f477258ebeea777bd8c. CI: all ten workflow runs completed, 8 success and 2 opt-in skipped. Read once by the card thread at 15:10Z. The os-dev report is 7196303644 on #37564. Tier H (docs/adr/**): approvers os-zhuang and hotlong, and the maintainer merges.

Area notes for L1/L2:

  1. Sent before the one main merge, on purpose. The ADR and spec contract review is the long part, so it starts now. After App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454 (PR feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546) lands, the thread merges origin/main once. The known conflict is a five-line hunk in StudioMenu.test.tsx. Then it re-runs and hands over a new head for a delta round. Do not queue on this head.
  2. Surface: this is claim 7193663065's class. The run named a third pinning test, StudioPaletteGroups.surfaceScope-36900.test.tsx, where the area OK'd +4/−1, test only. No source outside the claim.
  3. Registry judgment: dataset domain changes from ui to data. Clause-②: no and Metadata-protocol: none, with the reasoning in the PR body. One served value changes: GET /meta/types now answers domain: "data" for dataset. check:generated reads all 14 artifacts as up to date.
  4. ADR-0084: the dataset and position rows are rewritten in place, with no second table of the pinned row shape. N8 is folded in from carrier 7189717418.
  5. Ablations: three, all red as predicted. The registry leg was checked with a spec rebuild and a dist read-back.
  6. Carrier notes (out of scope): dataset's schema file still lives under spec's ui folder, and the position type page shows a read-only badge beside an enabled New button. That second one may overlap App Studio 改版(follow-up of 1-5):只读软件包里,资源列表的「新建」按钮置灰并带提示 #37580.
  7. Screenshots: objectstack-seat5/topic-37424/cards/shots-37564/, light and dark.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head c2e0954 · 2026-11-26T15:29Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c2e09545974c9dfc737e2f477258ebeea777bd8c
Local-runs: none
Scope: packages/spec/src/kernel/metadata-plugin.zod.ts, docs/adr/0084-application-builder-information-architecture.md + ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts
Security-touching: no

Read: card #37564 and its three comments (claim 7193675575, triage, dev report 7196303644), PR #37599's body and file list, the net diff against main (merge base 41164656, 9 files, +192 / −34), and the check-runs on the head. Nothing was built or run. The rest of the diff (metadata-plugin.test.ts, StudioMenu.test.tsx, studioMenuModel.test.ts, StudioPaletteGroups.surfaceScope-36900.test.tsx, the changeset's prose) is the lane seat's ACCEPT at TIER_DEFAULT.

On Security-touching: no: the hunks that name position change its menu tier and nothing else. No hunk teaches permission, sharing, credential, token or authentication behaviour; no access check, role or grant is read or written anywhere in the diff.

① Derived judgments

  • Accept set — unchanged. Right. MetadataTypeRegistryEntrySchema.domain keeps its six enum values (metadata-plugin.zod.ts:391). No author writes the registry. A *.dataset.ts item is validated by ui/dataset.zod.ts#DatasetSchema, which the diff does not touch; filePatterns, loadOrder (55), the overlay and create flags of the row are byte-identical.
  • Public surface — unchanged. Right. No export, key or type is added or removed. DEFAULT_METADATA_TYPE_REGISTRY keeps its declared type; one element's domain value moves from 'ui' to 'data'.
  • Served value — changes, and is declared. GET /meta/types answers domain: "data" for dataset, and the listing's domain-then-type sort (protocol-discovery-and-bases.ts:766-768) puts it first among the data types. getTypeInfo (metadata-manager.ts:4073) passes the same value. The PR body and the changeset both say so. Right.
  • No behaviour is keyed on the domain. Read across packages/ and ui/: the only readers of a registry entry's domain are that listing's sort, getTypeInfo, Studio's menu model (studioMenuModel.ts:189), the type directory (DirectoryPage.tsx) and the type page badge (PageShell.tsx). No write gate, loader, lint rule or serializer branches on it. typescript-serializer.ts:64 (['Dataset', 'ui']) is the import subpath of the schema, not the domain, and is rightly left alone. The Console registers no local dataset resource, so resolveResourceConfig (registry.ts:558) falls through to the served value and cannot hold the old group.
  • Generated output — none owed. Lint & Repo Gates, Type Check · source gates, Spec property liveness and Governed Surface Queue Guard are success on the head.
  • Gate verdicts. Every check-run on the head that ran concluded success (Test Core 1–10, Test UI 1–16, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, the lint and type-check lanes, Check Documentation Links). The skipped ones are opt-in or queue-only lanes.

② Semver level

@objectstack/spec patch and @object-ui/app-shell patch, with Clause-②: no and Metadata-protocol: none on both the PR body and the changeset. Right on each count.

  • Clause-②: no — the move is neither a widening nor a narrowing. For a published @objectstack/spec consumer, for Studio and for the docs, the set of values the domain field can hold, and the set of things the package accepts or exports, are what they were. One datum inside an exported constant differs. A (narrowing) arm would be wrong (nothing is refused or removed) and yes would be wrong (nothing is added).
  • Metadata-protocol: none — nothing a metadata author can write changes meaning, default or acceptance, so neither semantic nor added applies.
  • Level — none takes patch (AGENTS.md, Post-Task Checklist 3). The changeset body states the one consumer-visible effect in plain words: code that selected datasets by domain === 'ui' reads 'data'. That is the honest release note for a value change and needs no BREAKING banner, since no declared capability is taken away.

③ Boundary flags

open_questions is empty. The dev's five out_of_scope_findings, each answered:

  1. Claim written by the area, not the thread — process, no effect on the diff. Accepted.
  2. StudioPaletteGroups.surfaceScope-36900.test.tsx outside the named surface — test only, two expectations that follow from position being always listed; the area confirmed it before the push. It is in the lane seat's remainder. Accepted.
  3. Three pushes — no effect on this record, which names one head.
  4. dataset's schema stays in packages/spec/src/ui/dataset.zod.ts while the registry says data, and adding-a-metadata-type.mdx tells an author to place a schema under the matching domain folder. Agreed that it is not this card's: the amendment itself cites the schema at that path, the card asks for the registry value alone, and moving the file moves a published subpath export. The new registry comment says where the schema lives. Escalated to the seat as a follow-up question, not a finding on this head.
  5. Read-only badge beside an enabled New button on the position page — not caused by this diff; the seat's to file.

SQL push-down: the diff adds no query, no id materialisation and no in-app join. One consequence is noted, not a finding: position and dataset are now always-listed types, so a package's menu and palette read their lists even when the package holds none (the palette test's read set gains position). That is what the 常用 tier means and is ruled.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/kernel/metadata-plugin.zod.ts — against the amendment on main (#amendment-2026-11-26-moves, first bullet) and its first consumer.

  • The amendment: "its registered domain changes from ui to data in …#DEFAULT_METADATA_TYPE_REGISTRY… No special case is written into the menu for it." The diff does exactly that and nothing else on the row. dashboard and report stay ui, as the amendment says; no seventh domain value appears.
  • The new comment, sentence by sentence: "a dataset is a data type — the semantic layer that charts and an AI's data questions both read" is the amendment's wording; "Studio lists it under 数据 Data, directly after object" holds through studioMenuPlacement.ts (index of dataset is index of object + 1) and studioMenuModel.ts:189 (group is the served domain); "the row stays in this block because the overlay notes above name it" holds (the UI-block note names dataset twice for allowEnvironmentOverlay); "its schema still lives in ui/dataset.zod.ts" holds.
  • Break attempts. Load order: unchanged at 55, below report and dashboard at 60. A stale local override in the Console: none exists for dataset. A consumer that filters by domain to decide behaviour: none found. The seed row's older comment ("last in the data domain") was already untrue before this change (mapping is 96) and is outside the diff.

docs/adr/0084-application-builder-information-architecture.md — against the registry and the placement list at this head, and the amendment it carries out.

studioMenuPlacement.ts (implementing) — agrees with the contract. dataset directly after object, position directly after permission, both common, both removed from the advanced block; twelve common and twenty advanced rows. Each row's comment gives the amendment's own reason: test 1 for dataset (DatasetSchema.object is required, dataset.zod.ts:892), test 3 for position (ADR-0150 D7). The header's "Placements by name" paragraph restates the 2026-11-25 rule without rewording it. No group is stored: the file still holds order and tier only.

studioMenuPlacement.test.ts (the enforcing gate) — the three-way pin (registry, list, ADR rows) is unchanged in logic and passes on the rewritten rows; the literal lists are updated; the new cases pin adjacency and the three touched groups. Test UI is success on the head.

Nits, neither with an effect on correctness or the contract:

  • N1 (nit) — the mark added to the "not redrawn today" paragraph, "(Since rewritten: …)", carries no date of its own, where every other mark in the record opens "Amended YYYY-MM-DD:". It links the dated note under the table, so a reader cannot be misled. Date it when the branch merges main, or leave it.
  • N2 (nit) — three sibling marks of the 2026-11-26 amendment still read in the future tense for dataset ("is to be registered data": TL;DR 4, the stands table's TL;DR 4 row, and the two-tiers note). They are dated statements and true as written on their day; only the one paragraph got a "since" mark. Leave as an accepted deviation.

Seat questions

  1. Yes. The spec change agrees with the rewritten rows sentence by sentence and with studioMenuPlacement.ts; the detail is above. The pin test that compares all three is green on the head.
  2. Neither a widening nor a narrowing. A reader of a type's domain sees a different value for one type and the same set of possible values. Clause-②: no, Metadata-protocol: none and patch on both packages are right, and the changeset names the one effect on code that filtered by domain === 'ui'.
  3. Yes, as asked: the mark links #amendment-2026-11-26-position.
  4. Yes. Dated, appended as a note and a mark with the earlier text left standing, and it presents as placed only what the maintainer ruled (ruling record 7187264388 on App Studio 改版(1-0):修订 ADR-0084(及 ADR-0146 的分工)——Studio 是开发软件包的入口、恢复软件包切换器、去掉顶栏、「概览」为菜单首项、专用色、顶栏各按钮的新位置 #37451 for the tiers; the maintainer's words and decision 6 of epic 专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424 for the group and the place). One mark is undated (N1).
  5. None. No other type changes group or tier, and no relative order changes. What a reader sees move as a consequence: the Order numbers of picklist to seed are each one higher; the 界面 UI fold ends at action; the 访问 Access fold starts at assignment_rule; the type directory and the /meta/types listing count one more data type and one fewer UI type; the palette, which draws the menu's entries, always lists dataset and position on a package and reads their lists.

Implemented-by: claude/project-thread-80m7oi
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: c2e09545974c9dfc737e2f477258ebeea777bd8c
ACCEPT at this head; the handoff waits for the merged-main head — L1, seat repo:objectstack#5

  1. Shape: draft against main. 9 files, +192/−34. GOVERNED (docs/adr/**, published spec registry), Tier H, not security-touching. Clause-②: no, Metadata-protocol: none, patch on both packages: right. Only one value in an exported constant changes (dataset domain ui → data).
  2. Premise: the registry row, the ADR-0084 Data, UI and Access rows and studioMenuPlacement.ts agree row by row, and the counts are right. The group and the place rest on the maintainer's word and epic 专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424 decision 6, and both Common tiers rest on ruling 7187264388. The ADR note decides nothing new. N8 is fixed as record 7189689403 asked.
  3. Gates: contract record 7196507657 (CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS, with no must-fix and no should-fix. CI on this head: 0 failed.
  4. Accepted deviations: N1 (the undated "Since rewritten" mark; date it at the merge head if convenient) and N2 (three dated "is to be registered data" marks, true as dated).
  5. Out of scope and where it went: dataset's schema still lives under packages/spec/src/ui/ while the registry says data. The area files a p3 follow-up card under 专题:App Studio 改版(Studio 是开发软件包的入口:左右两栏、软件包切换和概览页、列表页按前端样式、专用色和新名字) #37424.
  6. Landing terms: Tier H. The area merges main once, after feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546 lands. That head gets a delta round, then the seat writes the maintainer brief and hands it to os-zhuang.

…-80m7oi

One conflict, in StudioMenu.test.tsx: main's overview row leads the menu,
and this branch's common list holds dataset and position. Both are kept.

Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy
Co-authored-by: Claude <noreply@anthropic.com>
The mark that says two rows of the type-to-group table are since
rewritten opens with its date, as every other mark in the record does.

Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Final green head for the delta round (2026-11-26T17:05Z): 2762c8316d150bc64385c005a544fd7e81dee584. This round follows the seat's ACCEPT 7196525264 and the contract PASS 7196507657 on c2e09545. The second os-dev report is 7198458341 on #37564. The card thread patched the PR body to this head. CI finished at 17:03Z with nothing red.

Delta since c2e09545:

  1. f8eb13b4 is the one merge of main, done after feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546 landed. Its only conflict was in StudioMenu.test.tsx, resolved by keeping main's 概览-row assertion and this branch's 常用 list with dataset and position. In eight of the nine files, the lines the PR adds and removes against its merge base are byte-identical before and after the merge.
  2. 2762c831 addresses N1: the mark on ADR-0084's "not redrawn today" paragraph now opens "Amended 2026-11-26: since rewritten". N2 stays as the accepted deviation.

Local runs on the new head: rebuild 123/123, spec pin 41/41, affected UI 85 files / 730 tests, and 98/98 derived gates. Overlap-check is clean against main and the heads of #37602 and #37422. The three ablations were not re-run on the merged head; the report says so.

Tier H (docs/adr/**). On ACCEPT, the PR goes to approvers os-zhuang and hotlong, and the maintainer merges.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2762c8316d150bc64385c005a544fd7e81dee584
Local-runs: none
Scope: packages/spec/src/kernel/metadata-plugin.zod.ts, docs/adr/0084-application-builder-information-architecture.md + ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts
Security-touching: no

Delta round on the record for head c2e09545974c9dfc737e2f477258ebeea777bd8c, which stands for everything it says about that head. Read: git diff between the two heads, the PR's own added and removed lines at each head against its merge base (41164656 then, 4e10d4bf now), the dev's delta report (comment 7198458341 on #37564), and the check-runs on this head. Nothing was built or run.

On Security-touching: no: unchanged. The delta adds one dated mark in the ADR and no hunk that teaches permission, sharing, credential, token or authentication behaviour.

① Derived judgments

  • Two commits since the reviewed head. f8eb13b4 is one merge of main at 4e10d4bf; 2762c831 is one ADR line.
  • The PR's own lines are unchanged in eight of nine files. Per file, the added and removed lines of the diff against the merge base hash the same at both heads for the changeset, metadata-plugin.test.ts, metadata-plugin.zod.ts, StudioMenu.test.tsx, the palette test, studioMenuModel.test.ts, studioMenuPlacement.test.ts and studioMenuPlacement.ts. The ninth is the ADR, by one mark. The diff against main is still 9 files, +192 / −34. The area's account holds.
  • The conflict resolution keeps the PR's assertions. StudioMenu.test.tsx carries no conflict marker, and its own added and removed lines are byte-identical to those at the earlier head, so nothing this PR asserts was dropped or reworded; what differs in the file is main's (5 lines, from PR feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546). It is the lane seat's file.
  • What the merge brought into the cited code. Between the two merge bases main changed studioMenuModel.ts and StudioMenu.tsx (the 概览 Overview row, card App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454) and nothing in packages/spec/src/kernel, the ADR, the placement list or metadata-admin/registry.ts. The Overview row is no StudioMenuEntry, belongs to no group and no tier, and is outside buildStudioMenu's groups, so it does not touch where dataset or position is drawn. Every judgment of the earlier record's ① stands.
  • Gate verdicts. 72 check-runs on this head: 60 success, 12 skipped (opt-in and queue-only lanes), none failed or pending. Test Core, Test UI, Check Changeset, the PR-body guards, the lint and type-check lanes and the Governed Surface Queue Guard are among the successes.

② Semver level

Unchanged and right: the changeset is byte-identical, @objectstack/spec patch and @object-ui/app-shell patch, Clause-②: no, Metadata-protocol: none. The delta publishes nothing more.

③ Boundary flags

open_questions is empty. The delta report's two notes: the one merge of main is spent and later overlaps (PR #37602, PR #37422) are the second lander's to re-read, which is the area's; the dataset schema path and the position page's badge are carried from the first report, already answered there and with the seat. SQL push-down: the delta adds no query, no id materialisation and no in-app join.

④ Design judgment

No must-fix, no should-fix.

  • N1: closed. The mark on the "not redrawn today" paragraph now opens "Amended 2026-11-26: since rewritten", the form every other mark in the record takes. Its content is otherwise word for word what it was, it still links the note under the table, and it states nothing that was not ruled.
  • N2 stays as the accepted deviation the earlier record names; nothing in the delta changes it.
  • The three other files in scope (metadata-plugin.zod.ts, studioMenuPlacement.ts, studioMenuPlacement.test.ts) are identical between the two heads, so the earlier ④ and its answers to the five seat questions stand on this head without change. The ADR line edit touches no table row, so the three-way pin reads the same rows.
  • Nothing new is found in the delta.

Implemented-by: claude/project-thread-80m7oi
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

维护者速读

席位意见:ACCEPT。忠实执行你的决定,只剩一个 nit。

席位核对 (delta)

Head-sha: 2762c8316d150bc64385c005a544fd7e81dee584
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: draft against main, merged with main once. 9 files, +192/−34. GOVERNED (docs/adr/**), Tier H, not security-touching. Clause-②: no, Metadata-protocol: none, patch on both packages.
  2. Closed: N1 (the mark is now dated). The merge changed none of the PR's own lines in 8 of 9 files. The ADR gained only that mark, and the StudioMenu.test.tsx resolution keeps the PR's assertions.
  3. Gates: delta record 7198537944 (CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS with no open must-fix or should-fix, over contract record 7196507657. CI on this head: 60 success, 12 skipped, 0 failed.
  4. Accepted deviations: N2 (three "is to be registered data" marks, which are true as dated).
  5. Out of scope and where it went: App Studio 改版(follow-up of 3-1):dataset 的 schema 文件从 spec 的 ui 目录挪到 data 目录,与注册表的 domain 一致 #37616 (dataset's schema folder under packages/spec/src/ui/).
  6. Landing terms: Tier H. The seat adds pm:awaiting-merge and requests the governed approvers. The maintainer's approval decides; after approval, the seat or the area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Approval requested (Tier H, docs/adr/**; not security-touching). Seat ACCEPT: comment 7198550339. Contract review PASS at CONTRACT_REVIEW_TIER: comment 7198537944, Head-sha 2762c8316d150bc64385c005a544fd7e81dee584. After approval the seat or area lands it.

@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 26, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 26, 2026 18:41
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 26, 2026
…-80m7oi

One conflict, in studioMenuModel.test.ts: main builds the environment's
menu with the Setup directory, and this branch's comment no longer calls
position an advanced type. Main's call and this branch's comment are kept.

Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4

Final green head for the third delta round (2026-11-26T20:04Z): d2c2cb98cb39e1a11c1caa1daea6aec61fb8ad1d. CI finished at 20:00Z with nothing red. The third os-dev report is 7202259871 on #37564. The card thread patched the PR body to this head.

Why this round: os-zhuang queued the PR at 18:42Z on 2762c831. The queue removed it at 19:13Z with MERGE_CONFLICT against #37602, which had just landed. Both edit studioMenuModel.test.ts.

Delta since 2762c831 (contract delta PASS 7198537944, seat ACCEPT 7198550339): one merge of main at 9a65a48f. Its one conflict was two adjacent lines of one test. The resolution keeps main's buildStudioMenu(..., setupDirectory: true) call from #37602 and this branch's "permission set, then position" comment. In all nine files, the lines the PR adds and removes against its merge base are byte-identical before and after the merge.

Local runs on the new head: rebuild 123/123, spec pin 41/41, affected UI run of 85 files / 747 tests, and 98/98 derived gates. Overlap-check is clean against main and #37422.

Tier H. After ACCEPT, the approvers re-approve if the push dismissed an approval, and the maintainer re-queues.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对 (delta 3, merge-only)

Head-sha: d2c2cb98cb39e1a11c1caa1daea6aec61fb8ad1d
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: one merge of main (d2c2cb9) after the queue dropped the PR on a conflict with feat(setup): the environment directory moves from Studio to Setup's access group #37602 in studioMenuModel.test.ts. The seat compared the PR's own +/− lines at the old head 2762c831 and the new head, each against its merge base. They are identical: 9 files, +192/−34. Nothing the contract record covers has moved, so record 7198537944 still covers this head and no new L2 is owed.
  2. Gates: CI on this head shows 62 success, 12 skipped, 0 failed. os-zhuang APPROVED at d2c2cb98.
  3. Landing terms: unchanged. Tier H, approved on this head. The seat or the area lands it through the queue.

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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants