Repository navigation
feat(studio): a dataset is a data type; datasets and positions are always listed in the menu - #37599
Conversation
…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>
…d; changeset 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>
📓 Docs Drift CheckThis PR changes 1 package(s): 3 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
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): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Green head for L1/L2 (round 1): Area notes for L1/L2:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head c2e0954 · 2026-11-26T15:29Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Read: card #37564 and its three comments (claim 7193675575, triage, dev report 7196303644), PR #37599's body and file list, the net diff against On ① Derived judgments
② Semver level
③ Boundary flags
SQL push-down: the diff adds no query, no id materialisation and no in-app join. One consequence is noted, not a finding: ④ Design judgmentNo must-fix, no should-fix.
Nits, neither with an effect on correctness or the contract:
Seat questions
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…-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>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the delta round (2026-11-26T17:05Z): Delta since
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 ( |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Delta round on the record for head On ① Derived judgments
② Semver levelUnchanged and right: the changeset is byte-identical, ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。忠实执行你的决定,只剩一个 nit。 席位核对 (delta)Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (Tier H, |
…-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>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the third delta round (2026-11-26T20:04Z): Why this round: os-zhuang queued the PR at 18:42Z on Delta since 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. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta 3, merge-only)Head-sha:
|
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)维护者速读
What changes
Nine files, +192 / −34 against
main(merge base9a65a48f:mainhas been merged in twice, each time for a neighbour that landed; headd2c2cb98). This PR carries out ADR-0084's Amendment (2026-11-26), "Placements, and what moves to Setup" for two rows,datasetandposition, and decides nothing.packages/spec/src/kernel/metadata-plugin.zod.tsdatasetrow ofDEFAULT_METADATA_TYPE_REGISTRYreadsdomain: 'data'; it was'ui'. A comment above the row says why. The row keeps its place in the block and itsloadOrder(55).ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.tsdatasetandpositionmove into the common rows, by name:datasetdirectly afterobject,positiondirectly afterpermission. 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.mddatasetis row 2 of 数据 Data, tier 常用, and the five data types behind it are each one place later; its 界面 UI row is gone;positionkeeps 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 thatdatasourceandformstill 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.ui/packages/app-shell/src/views/studio-design/andpackages/spec/src/kernel/metadata-plugin.test.ts.changeset/37564-dataset-data-domain-common-tier.md@objectstack/specpatch,@object-ui/app-shellpatch.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.tsandStudioMenu.tsxare not touched: the model reads the placement list and needs no special case.A served value changes.
GET /api/v1/meta/typesanswersdomain: "data"for thedatasetentry, 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 bytypesees no difference. The changeset says this in the release note.Why
Clause-②: noandMetadata-protocol: none. No accepted set widens or narrows: thedomainenum keeps its six values, no author writes the registry, and a*.dataset.tsitem 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:generatedreads "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
datasourcerow, andform(ADR-0159):formis not registered at this base, so it has no row. Thetypescript-serializer.tsentry that mapsdatasetto['Dataset', 'ui']is the spec subpath the schema is imported from, not the domain; the schema still lives inui/dataset.zod.ts.Read first, by risk:
packages/spec/src/kernel/metadata-plugin.zod.ts, the one-value hunk on thedatasetrow: it changes a served value.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.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, runpnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.tsand expectTests 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 pinsdatasetunderdata,dashboardandreportunderui, 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.tsandStudioMenu.test.tsx: the served fixture gainsdatasetunderdata; the common tier, the always-listed set and the fold are pinned with both types above the fold; a new block inStudioMenu.test.tsxasserts 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 (hookstays in the fold).StudioPaletteGroups.surfaceScope-36900.test.tsx: the command palette draws the menu's entries, sopositionnow followspermissionthere and its list is read. Two expectations, test only.c2e09545. On the merged head2762c831the 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, ond2c2cb98: the same selection is 85 files, 747 tests, all passed (the 17 tests more aremain'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 withscripts/ablation-replace.mjson a committed tree and restored toHEAD(blob equal toHEAD,git diff HEADempty after each):datasetback todomain: 'ui', spec rebuilt,distread back asuistudioMenuPlacement.test.ts: 5 failed, 12 passed (the ADR's group against the served domain, the order inside the group, and the new group block).positionback toadvanceddatasetback toadvancedAfter the registry leg the package was rebuilt from the restored source and
scripts/ablation-dist-preflight.mjs … --absentread the marker gone from all 614 built files; both pins passed again (41 of 41, 17 of 17).Acceptance notes
数据: 对象 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.objectstack-seat5/topic-37424/cards/shots-37564/and attached in the project thread; the relay cannot upload images to a PR.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.os-dev.mdsays a dispatched executor writes no claim and no assignee, and that file wins over an order.mainhas been merged into this branch twice, each time because a neighbour landed in a shared test file.4e10d4bf, after PR feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546 (card App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454) landed at 16:13Z. One conflict, inStudioMenu.test.tsx:mainasserts that the overview row leads the menu, and this branch's list of common types holdsdatasetandposition; both are kept.9a65a48f, after PR feat(setup): the environment directory moves from Studio to Setup's access group #37602 (card App Studio 改版(3-2):「全部软件包」目录 ~all 搬到设置的访问分组,Studio 不再有这个入口 #37565) landed and the merge queue removed this PR at 19:13Z for a merge conflict. One conflict, instudioMenuModel.test.ts, on two adjacent lines of one test:mainbuilds the environment's menu with the Setup directory, and this branch's comment on the next line no longer callspositionan advanced type.main's call and this branch's comment are kept.StudioMenu.test.tsxand the palette test merged without a conflict.overlap-check.mjsreads it as merging cleanly with this head.c2e09545, and the delta record 7198537944 reads PASS on2762c831, 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 2762c831againstgit diff 9a65a48f d2c2cb98, per file, added and removed lines only): the second merge changed only whatmainbrought.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. TheRule-changeline is left out, as the template asks for a diff that does not touch.claude/**.content/docs/, no skill and no README placesdatasetin a Studio group or describes the menu's tiers. The Docs Drift Check lists three pages that nameDEFAULT_METADATA_TYPE_REGISTRY(concepts/metadata-lifecycle.mdx,plugins/adding-a-metadata-type.mdx,protocol/objectui/concept.mdx); each was re-read, and none statesdataset's domain.Verification
d2c2cb98: six commits on the branch, of which two are merges ofmain(at4e10d4bfand at9a65a48f) and one dates the mark. No message names a card.d2c2cb98:node scripts/pm/dispatch-gates.mjs --commandsprints 98 commands, line for line the 98 derived on the two earlier heads.d2c2cb98, each exit code captured before any pipe, afterpnpm install --frozen-lockfileand a full rebuild of the merged tree (123 of 123 tasks, none cached).--ranreconciliation:98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED.2762c831(after the first merge) and onc2e09545. 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-testneeds 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.d2c2cb98under the verify lock: spec pin 41 of 41; affected UI run 85 files, 747 tests, all passed. On2762c831: 85 files, 730 tests, all passed. Onc2e09545: 82 files, 664 tests; 662 passed on the first run and the 2 that failed were the palette expectations above, fixed in that head.c2e09545(pnpm --filter @objectstack/spec run typecheck,pnpm --filter @object-ui/app-shell run type-check,eslinton 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.mjsond2c2cb98: clean againstorigin/main1dbf19a1and 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 --pathson the ADR, the registry file and the placement list (read onc2e09545; 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.c2e09545and on2762c831(72 check-runs: 60 success, 12 skipped, none failed). CI ond2c2cb98is this PR's check-runs; the third report on the card cites them.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy