Skip to content

fix(spec,studio): a record:quick_actions bar's location refuses record, and Studio stops offering it (#38045) - #38581

Merged
os-zhuang merged 12 commits into
mainfrom
claude/project-thread-y2muak
Nov 30, 2026
Merged

os-zhuang merged 12 commits into
mainfrom
claude/project-thread-y2muak

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Jianguo · project thread
Fixes #38045
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no text or eval under skills/ writes a record:quick_actions bar's own location; action locations themselves are unchanged

维护者速读

  • 用户能看到什么变化:在应用搭建里给记录页的快捷操作栏选位置时,下拉不再有「记录 · 页面与行」这一项;手写或 AI 写出这个值,保存或校验时直接报错,并提示改写成「记录页」。
  • 为什么做:这是你在快捷操作栏位置问题上选的方案 A(下拉和格式都去掉),趁 19 版正式发布前收紧,现在没有任何已写的栏用到这个值。
  • 出错会怎样:只影响快捷操作栏自己的位置设置,动作本身的「记录」位置不变;万一有问题,撤回这个改动即可恢复原样,不涉及数据迁移。
  • 要你做什么:契约复审通过后,请批准这个格式收紧。

Supersedes #38541
Seat: repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz (takeover of seat repo:objectstack#5)
Claim: governing claim amendment 7255928921 on #38045 (takeover Claim 7255614866, amendments 7255639984 and 7255928921)
Branch: claude/project-thread-y2muak (started at claude/issue-38045-quick-actions-no-record @c68dfcc7)
Ruling-ref: record 7251596106 on the card (maintainer ruling A, verbatim 「A 下拉和格式都去掉」). Analysis: 7251023956.

Takeover round (seat 1, governing claim amendment 7255928921)

This PR replaces #38541: its dev's account ran out of tokens, and the new branch starts at that PR's head c68dfcc7, where the seat L1 (7255089417, ACCEPT) and the contract review (7255183085, PASS with S3 open) were recorded. Every prior commit was re-read and kept; nothing was dropped or rewritten.

  • Merge of main. 40b0b59a merges origin/main at 30141766 through scripts/pm/os-regen-merge.sh. The only conflict was the generated content/docs/references/index.mdx. It was regenerated from the merged tree (gen:schema, spec build, gen:api-surface, gen:export-origins, gen:declaration-map, gen:docs) in 7fb066f7: main dropped one published schema while this PR adds RecordQuickActionsLocation, so the counts read 1742 total and 187 in UI. No other generated file moved, and no hand-written file needed a resolution (en.ts and zh.ts auto-merged).
  • S3 (contract review 7255183085). On the bar, the global_nav prescription no longer ends with the os migrate meta --from 18 sentence, which no conversion backs for that word (protocol 19's step covers a bar's four page-part words; the protocol-17 step stripped global_nav from action.locations only). QUICK_ACTIONS_BAR_PLACES_TAIL is split into the places sentence (all five rows) and the house migrate sentence (the four page-part rows). The bar's pin now asserts the global_nav message has no os migrate meta --from and each of the four names `os migrate meta --from 18`. Commit 5496b7a4.
  • N5. The older test comment no longer calls the global_nav message proof that the row rides the shared enum; it points at the positive pin.
  • N6. The two body sentences below ("What changes, Spec" and "Read first 1") now describe the bar's own map, not a delegation.
  • Readings at 5496b7a4. Spec component-record-blocks.test.ts, action.test.ts, retired-key-migrate-sentence.test.ts, type-alias-convention.pin.test.ts: 4 files, 209 passed. Ablation through scripts/ablation-replace.mjs: the global_nav row put back on the migrate tail turns "answers each retired word on the bar with a single place, never record" red (1 failed / 35 passed); restored, blob == HEAD. PR body gates (check-closing-keyword-parity, check-changeset-no-major --base origin/main, check-adr-0087-registration --base origin/main, check-partof-closing-keyword): exit 0. Full dogfood battery (closure built, then pnpm --filter @objectstack/dogfood test): lock VERDICT command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4187 passed, 68 skipped (4255), no failures. pnpm --filter @objectstack/spec test: Test Files 913 passed (913), Tests 28893 passed, 1 todo. dispatch-gates --commands derives 132 families; --ran with exit codes: 131 run with exit 0, 1 NOT MEASURED (check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET: it reads dists of packages not built here, such as packages/qa/scenarios/dist; CI runs it). overlap-check: main merges cleanly; feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired #38550 conflicts on three generated files (content/docs/references/ui/component.mdx, content/docs/ui/components/record.mdx, scripts/sdui-manifest.record.json), landing order set by the seat (this PR first, Bulk actions declared on the action (selection) with a selection arm in the object action layout, moved from view bulkActions #36496's thread regenerates after).

Rework round (contract review 7253506178, seat ruled both should-fix its way)

Head c68dfcc (merges main at d64541c first).

  • S1. The protocol-19 upgrade step action-locations-page-parts-retired (packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts) now says, in surface, replacement and acceptanceCriteria, that a record:quick_actions bar's own location takes one place only (record_page, its default, record_row, record_related, record_section or list) and that record there is refused at parse with the prescription naming record_page. No new id, no new entry. The changeset's ADR-0087 marker now says this change extends that entry's surface, and no longer says the conversion maps every protocol-18 bar location: it maps record_header, list_item and list_toolbar, and leaves a bar at record_more as stored with a TODO. The ledger feeds only gitignored projections (upgrade guide, spec-changes.json); check:upgrade-guide and check:spec-changes are green and nothing else regenerated.
  • S2. Clause-②: yes (narrowing) here and in the changeset (see Acceptance notes).
  • N1 (folded in). On the bar, a retired word (record_header, list_item, list_toolbar, record_more, global_nav) now gets a prescription written for a bar: it names the one place to write and never offers record. The shared enum's action-side prescriptions are unchanged. N2 and N3 are untouched.

What changes

Ruling A, carried out as one PR. On the record:quick_actions bar, record is not a place the bar can be set to; record on an action's own locations is untouched.

  • Spec (contract face). packages/spec/src/ui/action.zod.ts adds RecordQuickActionsLocationSchema (and its type RecordQuickActionsLocation): ActionLocationSchema.exclude(['record']), so it rides the shared enum (a location the vocabulary adds reaches the bar too). Its error map answers record with a prescription that names record_page, the five retired words (global_nav and the four page-part words) from the bar's own map of bar-worded prescriptions, and every other value with zod's own enum error; the shared enum keeps its action-side prescriptions. RecordQuickActionsProps.location uses it; its describe says "any action location but record". Proposed refusal text (the contract review judges it):

    record is not a place a record:quick_actions bar can be set to. On an action, record says what the action acts on: one record, drawn on the record page and on each list row. A bar sits in one place and draws that place's actions. On a record page write location: 'record_page' (the bar's default, so the key can be left out): it draws the record page's actions, the ones placed at record included. A bar for another single place names it: record_row, record_related, record_section or list.

  • Studio. The bar's location dropdown (block-config.ts) is built from a total label map keyed by RecordQuickActionsLocation (a TypeScript Record type) (the ActionDefaultInspector LOCATION_LABELS mechanism), so the compiler keeps the options equal to the spec's set: re-adding record is TS2353. Display order unchanged except record is gone (record_page first).
  • i18n. engine.inspector.pageBlock.option.location.record removed from en (Record · page and rows) and zh (「记录 · 页面与行」).
  • Outside the claimed file surface, and why. ui/packages/plugin-detail/src/index.tsx (the bar's registration, not the renderer) published location as [...ACTION_LOCATIONS]; that list is serialized into sdui.manifest.json, which JSX page validation reads. Left as it was, the manifest would still offer record on the bar, a second door that accepts what the spec now refuses. It now publishes RecordQuickActionsLocationSchema.options; sdui.manifest.json, scripts/sdui-manifest.record.json and content/docs/ui/components/record.mdx are regenerated by their generators (the manifest diff is the one enum member and the description). The renderer (record-quick-actions.tsx) is unchanged.
  • Generated. api-surface/, export-origins/, declaration-map/, json-schema.manifest/ui.json and content/docs/references/** regenerated by the spec gates (no hand edits). type-alias-convention.pin.test.ts pins the new alias as isomorphic (ADR-0122; check:spec-parsed-alias asked for it) and its count line moves 879 → 880.
  • Changeset. .changeset/38045-quick-actions-no-record.md: minor on spec, plugin-detail, app-shell and i18n, the two declaration lines, a FROM → TO table, and ADR-0087 disposition not-required (already-registered action-locations-acted-on, action-locations-page-parts-retired), whose semantic entry this PR extends (rework round, S1).

Census of authored bars at location: 'record' (any quoting, any file type): 0 in objectstack (git grep -nE "[\"']?location[\"']?\s*:\s*[\"']record[\"']" at 545a4fa), 0 in HotCRM (same pattern at origin/main d48b030b; its one record:quick_actions mention is a test). The authored bars are showcase_task_detail and sys_user, all at record_section, and both still parse.

Read first

  1. packages/spec/src/ui/action.zod.ts, the RecordQuickActionsLocationSchema hunk: the refusal text and the .exclude() with an explicit error (the explicit param replaces the copied one, so the bar's own retired-word map, QUICK_ACTIONS_BAR_RETIRED, is what answers those words on the bar).
  2. ui/packages/app-shell/src/views/metadata-admin/previews/block-config.ts, the QUICK_ACTIONS_LOCATION_LABELS map and the dropdown's options.
  3. ui/packages/plugin-detail/src/index.tsx, the registration's location enum (the surface addition above).

Two-minute check

pnpm --filter @objectstack/spec exec vitest run src/ui/component-record-blocks.test.ts — expect 36 passed, including the four cases under "record:quick_actions location — single places only, never record".

Tests

All at head aeb79b9 unless noted.

  • Spec pins (component-record-blocks.test.ts, new top-level describe in the bar's existing harness): positive (the bar accepts exactly ACTION_LOCATIONS minus record, each parses), negative (location: 'record' refused, one issue, code: 'invalid_value', path: ['location'], message first sentence and location: 'record_page'), record still on the shared enum, and each retired word on the bar is answered with one issue (invalid_value, location), a message that opens with the word, names a single place and never offers record, while the shared enum's record_header prescription still offers record. A schema refusal carries no ADR-0112 status (that envelope is the API's), so the pin is code + path + prescription, the add-record-config-retirement.test.ts precedent.
  • Studio pins (block-config.test.ts): offers exactly RecordQuickActionsLocationSchema.options; does not offer record (with the non-empty guard); no leftover …option.location.record translation in either locale, with a still-offered key as control.
Test runs
  • Rework round, at c68dfcc: pnpm --filter @objectstack/spec test 913 files passed, 28896 tests passed, 1 todo; spec component-record-blocks.test.ts + action.test.ts + action-locations-acted-on.test.ts 198 passed; pnpm --filter @objectstack/spec build && check:generated all 14 up to date.
  • pnpm --filter @objectstack/spec test (at 8a55fce, before the merge of main and the pin-count commits): Test Files 913 passed (913), Tests 28896 passed, 1 todo.
  • pnpm --filter @objectstack/spec typecheck: exit 0 (check:test-typecheck: OK), rerun after the pin edit.
  • spec component-record-blocks.test.ts + type-alias-convention.pin.test.ts: 2 files, 39 passed.
  • ui: block-config.test.ts + block-config-i18n.test.ts: 2 files, 68 passed.
  • ui: plugin-detail quick-actions and registration tests + all of packages/i18n/: 125 files, 1978 passed, 13 skipped. (The whole plugin-detail suite did not finish inside one 10-minute foreground run; narrowed to the files that read the registration or the bar, and left to Test UI.)
  • pnpm --filter @object-ui/plugin-detail type-check: exit 0. pnpm --filter @object-ui/app-shell type-check (both tsconfigs): exit 0.
  • Rework round, full dogfood at c68dfcc (closure built, then pnpm --filter @objectstack/dogfood test): lock VERDICT command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4183 passed, 68 skipped (4251).
  • Full dogfood at aeb79b9 (pnpm --filter @objectstack/dogfood test after building its closure): lock VERDICT command-exit 0, Test Files 495 passed, 3 skipped (498), Tests 4183 passed, 68 skipped (4251).
Ablations (each mutation through scripts/ablation-replace.mjs, landing and restore checked by blob hash)
  • Spec negative pin: location: RecordQuickActionsLocationSchema.optional() → ActionLocationSchema.optional(): "refuses location: 'record' …" red (1 failed / 35 passed); restored, blob == HEAD.
  • Spec positive pin: .exclude(['record']) → .exclude(['record', 'record_row']): "accepts every action location except record …" red; restored.
  • Studio: re-add record to QUICK_ACTIONS_LOCATION_LABELS: "offers exactly the locations the spec accepts" and "does NOT offer record" red (2 failed / 45 passed), and tsc --noEmit in app-shell red with TS2353: 'record' does not exist in the type, a Record keyed by exactly list, record_page, record_row, record_related and record_section — the reverse check that the Console compiles against the rebuilt, narrowed .d.ts. A first attempt was refused by the tool (its replacement contained its anchor) and changed nothing; the run quoted is the second.
  • Rework round, N1: the bar's retired-word branch pointed back at the shared action-side prescriptions: "answers each retired word on the bar with a single place, never record" red (1 failed / 35 passed); restored, blob == HEAD.
  • i18n: re-add the zh label: "has no leftover translation for the removed record option" red; restored.
Gates
  • Rework round, at c68dfcc: dispatch-gates --commands derives 130 families; --ran with exit codes: 129 run, 1 NOT MEASURED (check-plugin-teardown-shape --self-test, exit 3, shallow clone cannot reach its pinned fixture commit). Six gates first answered exit 3 on an unbuilt closure in the fresh worktree and pnpm --dir ui exec vitest run scripts/ was SIGKILLed on the shared box; after building the CLI and lint closures each was rerun: exit 0 (ui scripts: 172 files passed, 2 skipped). check-adr-0087-registration --base origin/main: exit 0 with the reworded marker.

  • Overlap at c68dfcc: overlap-check exit 1. Textual conflicts with two open draft PRs on files this PR changed in its first round (generated outputs): feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired #38550 on content/docs/references/ui/component.mdx, content/docs/ui/components/record.mdx, scripts/sdui-manifest.record.json; feat(runtime)!: retire POST /packages/:id/adopt-orphans and its two console entries (#38150 PR-B1) #38545 on content/docs/references/index.mdx. Not resolved by hand; whichever lands second regenerates.

  • dispatch-gates --commands (derived at c1cb23b, the same list at aeb79b9): 127 families run; --ran with exit codes: 124 run, 3 NOT MEASURED, all three PREREQUISITE NOT MET exit 3, none reading a file this diff changes: check-plugin-teardown-shape --self-test (shallow clone cannot reach its pinned fixture commit), spec check:skill-examples (reads packages/client-react/dist, not built here), check:dual-build-cjs-loads (reads dists of packages not built here). CI runs all three.

  • One real finding along the way, fixed in this PR: check:spec-parsed-alias asked for a pin of the new alias (exit 1, then 0).

  • pnpm --filter @objectstack/spec check:generated after rebuilding spec on the merged tree: all 14 artifacts up to date.

  • check-adr-0087-registration --base origin/main: exit 0 (the already-registered disposition). check-sdui-manifest, check:sdui-reference, check:nul-bytes, check:issue-citations, check-empty-changeset, check-changeset-no-major: exit 0 at aeb79b9.

  • check:query-options-erasure and check:type-check-debt exceed 300 s; rerun without that cap: exit 0 both.

Acceptance notes

  • ADR-0087 disposition: settled by the contract review (record 7253506178, option C). not-required (already-registered …) stands, and the semantic entry it names is extended here so the claim is a fact (rework round, S1). The original argument, kept for the record: The dispatch left open whether this narrowing needs a conversion entry. The registration gate refuses no-migration-prescription on any Metadata-protocol: narrowed changeset; what it accepts is a new semantic entry or a category resting on a fact. This PR claims already-registered action-locations-acted-on, action-locations-page-parts-retired: the word became legal on the bar only inside unreleased 19, by the change those entries register, and their conversion maps every protocol-18 bar location to a single place (record_header → record_page, list_item → record_row, list_toolbar → list) and never writes record on a bar. ADR-0087 records that the gate checks such an id is old, never that it covers the change, so this rests on the argument above. The alternative is a new semantic entry for prerelease authors. Seat repo:objectstack#5 ruled this disposition (option A, not-required) on 2026-11-29 at 08:24 UTC and asked the contract review to check the reading; if the contract review rules a semantic entry is owed, this PR switches to that entry.
  • Clause-②: yes (narrowing). The diff narrows one accept set (the bar's location refuses record) and also enlarges the public surface of @objectstack/spec/ui: two new exports, RecordQuickActionsLocationSchema and RecordQuickActionsLocation, and one new published JSON schema, ui/RecordQuickActionsLocation. Clause-② judges both accept sets and the public surface, so the honest value is yes with the (narrowing) arm, the spelling ruling record 7251596106 wrote and the claim's amendment 7253515149 now carries. The first round's no (narrowing) treated the new exports as outside the clause; the contract review corrected that (S2).
  • The generic action:bar and action:group blocks also take a location from the full vocabulary, record included, and match it literally. Neither has a Studio dropdown; outside this card, left as they are.
  • The record option's label keys stay in the action inspector (engine.inspector.action.location.record), where record is a real choice for an action.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jT4byCJU6xgZwQDh8y

…dio stops offering it (#38045)

WIP: spec narrowing, Studio dropdown, registration enum, pins.

Claude-Session: https://claude.ai/code/session_01FEkQ5pH8MaBBP5T2dVcTHL
Co-Authored-By: Claude <noreply@anthropic.com>
…s; bar-worded retired-word prescriptions; Clause-② yes (#38045)

Claude-Session: https://claude.ai/code/session_01FEkQ5pH8MaBBP5T2dVcTHL
Co-Authored-By: Claude <noreply@anthropic.com>
Main dropped one published schema while this branch adds
RecordQuickActionsLocation, so the counts read 1742 total and 187 in UI.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jT4byCJU6xgZwQDh8y
… no conversion backs

On a record:quick_actions bar, the five retired location words shared one
tail ending in the `os migrate meta --from 18` sentence. Protocol 19's step
covers the four page-part words on a bar, but no conversion ever covered a
bar's own `global_nav`, so the sentence was untrue for that row. The tail is
split: the places sentence for all five, the migrate sentence for the four.
The bar's pin now holds both halves.

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

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

  • content/docs/protocol/objectui/actions.mdx (via ActionLocation (symbol, a top-level type))
  • content/docs/ui/actions.mdx (via list_item (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED), list_toolbar (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED), record_header (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED), record_more (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED))

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

  • content/docs/releases/v15.mdx (via record_more (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED))
  • content/docs/releases/v17/17-0.mdx (via ActionLocationSchema (symbol, a top-level const object))
  • content/docs/releases/v17/17-7.mdx (via list_item (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED), list_toolbar (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED))
  • content/docs/releases/v18/18-4.mdx (via record_header (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED), record_more (symbol, a field of const object QUICK_ACTIONS_BAR_RETIRED))

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
  • 4 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/declaration-map/ui.json, packages/spec/export-origins/ui.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 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 62eecbca5359164b15c0163fda29b792c5e74e9b → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 62eecbca5359164b15c0163fda29b792c5e74e9b

⚠️ 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 62eecbca5359164b15c0163fda29b792c5e74e9b → 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#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a
Contract-review-claim: session_01QsR2jQkLKMF81cpqpt8p1a · head 5496b7a · 2026-11-29T12:21Z

Delta contract-tier review at this head by an isolated sub-agent of seat 1's L1 thread: this PR supersedes #38541, whose record 7255183085 (PASS at c68dfcc79a, S3 open, N2 to N6) is the round this one follows. The record follows on this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5496b7a4f5d724d6fc307244608d0c9cfc1acf41
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts, packages/spec/src/ui/action.zod.ts, packages/spec/src/ui/component.zod.ts + packages/spec/src/ui/component-record-blocks.test.ts, ui/packages/plugin-detail/src/index.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/block-config.ts, sdui.manifest.json, scripts/sdui-manifest.record.json, content/docs/ui/components/record.mdx, packages/spec/src/type-alias-convention.pin.test.ts, ui/packages/app-shell/src/views/metadata-admin/previews/tests/block-config.test.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts

DELTA review of PR #38581 (card #38045, maintainer ruling A, record 7251596106, 「A 下拉和格式都去掉」). PR #38581 supersedes PR #38541: the same card and the same commits, on a new branch started at the old head c68dfcc79a. The earlier rounds sit on PR #38541 (record 7253506178: PASS at head aeb79b9, S1 and S2 open) and (record 7255183085: PASS at head c68dfcc, should-fix S3 open, nits N2 to N6). Their reviewer is out of reach and this record is rendered by another one, so nothing below is carried on trust: a judgment is carried by reference only where I measured both that the file is the same blob at the two heads and that the code it was judged against did not move.

Inputs read: the card body and its eleven comments (the claim amendment 7255928921 included); PR #38581's body, its two comments (the docs-drift advisory and this review's claim line 7255757575), its 22-file list (the API list equals the three-dot name list) and the net diff against main; PR #38541's body and its eight comments; the three commits since c68dfcc79a; the check-runs on this head. Read outside the diff, never reviewed: packages/spec/src/shared/retired-key.ts, packages/spec/src/shared/retired-key-migrate-sentence.test.ts, packages/spec/src/conversions/entries/19/action-locations-acted-on.ts, packages/spec/src/migrations/registry.ts.template (the step-17 note), packages/spec/src/conversions/registry.ts at the tag @objectstack/spec@17.0.0 (the conversion action-global-nav-location-removed), ui/packages/types/src/ui-action.ts, ui/packages/plugin-detail/src/renderers/record-quick-actions.tsx, packages/cli/src/commands/migrate/meta.ts, content/docs/ui/actions.mdx, content/docs/protocol/objectui/actions.mdx, scripts/check-closing-target-claim.mjs with the claim reader in scripts/pm/check-half-states.mjs, and the title and file list of the open draft PR #38550.

① Derived judgments

  • The branch since c68dfcc79a: three commits, and the old head is an ancestor of this one, so no earlier commit was rewritten. 40b0b59aff merges main at 3014176695; its combined diff has no hunk (studio/en.ts and studio/zh.ts merged without a hand resolution). 7fb066f767 regenerates content/docs/references/index.mdx and nothing else. 5496b7a4f5 moves action.zod.ts and component-record-blocks.test.ts (+19 / -5). Right.
  • The PR's own net change. Path by path, the stable patch-id of the diff against the merge base is the same at both heads for 19 of the 22 paths: 17 are the same blob, and studio/en.ts and studio/zh.ts differ as blobs only by lines main brought. The three that differ are action.zod.ts and component-record-blocks.test.ts (commit 5496b7a4f5) and the generated index. With the index left out, the merge's net diff against its main parent has the same patch-id as the old net diff against its own base. So the net diff at this head is the old one, plus 5496b7a4f5, plus the index recount. Right.
  • The index recount: between the two bases main dropped one published schema and this PR adds one, so the page reads 1742 schemas and 187 in UI against 1741 and 186 at the merge base. The arithmetic is right; it is generated output and its gate concluded success.
  • What main moved between the two bases, under the code the earlier rounds cite: nothing under packages/spec/src/ui, packages/spec/src/conversions, packages/spec/src/shared, ui/packages/plugin-detail, ui/packages/types/src/ui-action.ts, ui/packages/core/src/actions, the Studio previews directory, the manifest or its record. Under packages/spec/src/migrations it added two entry files for another card and left this PR's entry alone. The lockfile resolves the same zod (4.6.7). main is one commit past the merge (62eecbca53); none of this PR's 22 paths is in it. So the earlier readings of the cited code carry. Right.
  • Accept sets: unchanged by the delta. The bar's location takes list, record_page, record_row, record_related and record_section; the shared enum keeps its six. Right.
  • Public surface: unchanged by the delta. The new constant QUICK_ACTIONS_BAR_PLACES is module-private, 5496b7a4f5 moves no generated artifact, and none of them carries the refusal text (the declaration map holds names, no line numbers). Right.
  • Refusal contract on the bar: one sentence leaves one message. global_nav now ends at the places sentence. list_toolbar, list_item, record_header and record_more keep both sentences, byte for byte as at the old head (the old tail's trailing space is now an explicit ' ' in the concatenation). record keeps its prescription and every other input keeps zod's own enum error. Right.
  • Refusal contract on the shared enum: unchanged. Right.
  • Upgrade ledger: the semantic entry is the same blob as at the old head. Right.
  • Census of authored bars at location: 'record', re-read on this head's tree in the object-literal and the JSX spelling, merged main included: 0 outside the PR's own changeset and pin. packages/spec is still 19.0.0-next.2 and the Action locations say what an action acts on: list and record, with narrow exception words and a lossless conversion (next major) #36495 changeset is still pending, so the narrowing still lands inside unreleased 19.

② Semver level

  • Level: unchanged, minor on @objectstack/spec, @object-ui/plugin-detail, @object-ui/i18n and the private @object-ui/app-shell. The changeset is the same blob as at the old head, and Check Changeset concluded success on this head. The delta publishes one shorter refusal message in a package already at minor. Right.
  • Clause-②: Clause-②: yes (narrowing) and Metadata-protocol: narrowed stand at line start on the PR body (lines 4 and 5, under the attribution comment and the requester line) and on the changeset (lines 10 and 11). The governing claim on the card (amendments 7255639984 and 7255928921) carries the same value. Right: the diff narrows one accept set and adds two exports and one published JSON schema.

S2: closed.

③ Boundary flags

S1: closed.

④ Design judgment

packages/spec/src/ui/action.zod.ts — the only hits file the delta moves. Judged against shared/retired-key.ts ("It must be TRUE of the tool"), the conversions, and ruling A.

S3: closed.

How it was read against the tree:

  1. The split is the one the earlier round prescribed. QUICK_ACTIONS_BAR_PLACES (line 889) is the places sentence. QUICK_ACTIONS_BAR_PLACES_TAIL (line 898) is that sentence, a space and the house migrate sentence. The global_nav row (lines 902 to 903) takes the first; the four page-part rows take the second.
  2. The global_nav message at this head, whole: "global_nav was removed from the action locations in @objectstack/spec 17: no surface ever drew it. A record:quick_actions bar names the one place it draws: record_page (its default), record_row, record_related, record_section or list." Both sentences are true: the first is the shared vocabulary's own history, and the five places are the schema's options with record_page the renderer's default. It ends at a full stop with no trailing space.
  3. No migrate sentence at all is the right end state, neither the house form nor the aged-out one. The earlier round rested this on the step-17 note in registry.ts.template ("The conversion strips the value from action.locations"). I read the conversion itself at the tag @objectstack/spec@17.0.0: action-global-nav-location-removed, surface action.locations[], a map over the actions collection and nothing else. It never visited a page component's own location. So the aged-out form ("run the tool on a release that still carries the conversion") would be untrue for a bar too, and the new source comment "the protocol-17 step stripped it from action.locations only" is true.
  4. The four page-part rows keep os migrate meta --from 18, and it is true of the tool for each. action-locations-acted-on lists record:quick_actions among its located component types, rewrites a bar's list_toolbar, list_item and record_header through SINGLE_LOCATION, and reports a block at record_more as a TODO, which os migrate meta prints. The shared record_more prescription on main closes the same way for the same block.
  5. The class pin still judges the sentence. The literal is whole on one line and is the last sentence of its literal, the reconstruction joins it across the new ' ' seam, and the new comment lines are // lines the scan drops. That pin states that it does not judge a prescription carrying no migrate sentence, so the global_nav row is outside it by its own scope; the bar's pin holds that row.
  6. Attempts to break it. Putting the global_nav row back on the tail turns the bar's pin red (not.toMatch(/os migrate meta --from/), line 311), and dropping the sentence from any of the four turns it red the other way (line 312); the loop cannot pass vacuously because it asserts a refusal with one issue per word. The record branch is still tested first, so no retired-word text can answer record. The own-property lookup still sends inherited keys and non-strings to zod's enum error. None broke.
  7. The docblock of RecordQuickActionsLocationSchema is unchanged and still true of the code under it.

The rest of the file is as the earlier rounds judged it: the record refusal names record_page as the ruling requires, each of its sentences is true of the renderer (default record_page at line 266 of record-quick-actions.tsx; actionRendersAt widens record to record_page and record_row only), and record on an action's own locations is untouched.

packages/spec/src/ui/component.zod.ts — the same blob as at the old head. Its describe, re-read against the renderer and ui-action.ts at this head: the default, the fold filter that runs at record_page only (lines 338 to 339), and "an action placed at record is drawn by a bar at record_page and at record_row". Holds.

packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts — the same blob as at the old head. Re-read against this head's schema: the five places it lists equal the schema's options, and "record there is refused at parse with the prescription naming record_page" is what the parse does. The entry restates no retired-word prescription, so the S3 fix does not reach it. Holds.

Implementing files:

  • packages/spec/src/ui/component-record-blocks.test.ts — agrees with the code, and is the only implementing file the delta moves. The retired-word case now also asserts that the global_nav message carries no os migrate meta --from and that each of the four page-part messages names os migrate meta --from 18. The older case's comment now says the positive pin is the proof that the row rides the shared enum. Test Core concluded success on this head.
  • ui/packages/plugin-detail/src/index.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/block-config.ts, sdui.manifest.json, scripts/sdui-manifest.record.json, content/docs/ui/components/record.mdx, packages/spec/src/type-alias-convention.pin.test.ts, block-config.test.ts — the same blobs as at the old head, and nothing they read moved. I re-read the registration (it publishes RecordQuickActionsLocationSchema.options, and the manifest's five members are those options in order), the dropdown's total label map, and the pin count (879 to 880 against this merge base). They agree with the contract, as the earlier rounds found.
  • studio/en.ts, studio/zh.ts — the PR's own change is the same patch as at the old head; the blobs differ only by main's lines. The removed key has no reader left but the negative pin.

N1: closed.
N5: closed.
N6: closed. The two body sentences now describe the bar's own map.

N2, N3, N4: unchanged, accepted deviations as the earlier round recorded them. N2 now has a first instance in flight (③, #38550). N3 is still a comment line spliced into the global_nav comment at studio/en.ts line 1060; fold it into the next edit of that file, not into this head.

New nits: none.

No must-fix, no should-fix.

Basis: the one sentence the earlier round asked to remove is gone from the one message it was untrue for, the four it is true for keep it, and the pin holds both halves. The net diff at this head is otherwise the diff the earlier rounds judged, on code that did not move. The one red check-run is a PR-body and claim guard, not a gate on the diff; it stays the seat's pre-landing condition.

Implemented-by: claude/project-thread-y2muak (resumed from claude/issue-38045-quick-actions-no-record)
Reviewed-by: session_01QsR2jQkLKMF81cpqpt8p1a

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

维护者速读

席位意见:建议批准。旧 PR #38541 上两轮复审留下的三条应改项,增量复审已逐条关闭。两件事不在这张 PR 里:action:group 上 global_nav 的报错句尾仍指向一条并不处理它的转换(main 上原有,裁决 A 也把它排除在外),还没有卡片承载,已报给席位立卡;#38550 要新增位置词 selection,后落地的那张要回答操作条能不能写它。检查列表里有一条 12:17Z 的红,是认领行修正之前的旧运行,同一检查之后两次都绿。

席位核对 — ACCEPT · L1 · seat repo:objectstack#1, review thread R2 · Head-sha 5496b7a4f5d724d6fc307244608d0c9cfc1acf41 · 2026-11-29T13:53Z

Card #38045 is seat 1's by takeover claim 7255639984, amended by 7255928921. PR #38581 supersedes PR #38541 (closed): the same commits on a new branch started at the old head c68dfcc79a, plus a merge of main, the regenerated reference index and one fix commit. The former seat's L1 records on #38541 are 7253379514 and 7255089417. The contract review at this head is the delta PASS 7256105969 (CONTRACT_REVIEW_TIER, narrowing face), rendered for this thread by an isolated reviewer; it closes S1, S2 and S3 of the two earlier rounds by id and opens nothing above a nit. This record was held until the narrowing arm's dogfood battery was measured at this head; the head has not moved since the review (the two later body edits are text only).

  1. Shape. Draft, base main, Fixes #38045, no closing keyword bound to any other card (l1-face --pr 38581). Clause-②: yes (narrowing) and Metadata-protocol: narrowed stand on the body and on the changeset. 22 files, +307 / -53; every published package touched has a changeset entry (@objectstack/spec, @object-ui/i18n, @object-ui/plugin-detail). Fixes is right: ruling A asks for the dropdown option and the format to go, and both do. Skills-docs: none is true: git grep quick_actions under skills/ at this head returns nothing.
  2. Premise, measured. At this head the only location: 'record' in a bar's spelling outside prose is the PR's own negative pin (component-record-blocks.test.ts line 271), so the refusal breaks no authored bar in the tree. main is 5 first-parent commits ahead; none of the 76 paths it moved since the merge base is among the PR's 22, so the review's readings carry to today's base. The open draft feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired #38550 overlaps this PR; the dev's overlap-check reads its conflicts as three generated files, and the seat has set the order: this PR first.
  3. Dogfood battery, owed by the (narrowing) arm. Report 7256832421 on the card pins it to this head: 5496b7a4, lock VERDICT command-exit 0, Test Files 495 passed and 3 skipped (498), Tests 4187 passed and 68 skipped (4255), no failures. It is the whole pnpm --filter @objectstack/dogfood test, not a narrowed run. The same report gives pnpm --filter @objectstack/spec test at 913 files and 28893 tests passed, and the derived gate sweep at 131 of 132 families exit 0. The one NOT MEASURED family is check:dual-build-cjs-loads (exit 3, dists not built on the dev's box); CI runs it inside Build Core, which concluded success on this head.
  4. Gates, as check-runs on this head. pr-state: 66 success, 13 expected skips, 0 unexpected skips, 0 pending, mergeable_state clean; check-expected-skips --pr 38581 answers OK. The floor checks (Lint & Repo Gates, TypeScript Type Check) are success. l1-face flags two items and both are read here: the battery (item 3), and one check-run with conclusion failure. That run is the first PR-body guards job (141341883827, 12:17Z). It refused the then-open duplicate fix(spec,studio): a record:quick_actions bar's location refuses record, and Studio stops offering it (#38045) #38541 and the takeover claim's Branch: line; fix(spec,studio): a record:quick_actions bar's location refuses record, and Studio stops offering it (#38045) #38541 is closed and the claim is amended (7255928921). The same check ran twice more on this head after those repairs and concluded success both times (141350358084 at 12:49Z, 141366626653 at 13:49Z, the latter on the final body). The old run stays listed because it belongs to an earlier check suite; it is not a required check's current answer.
  5. Prose faces, read sentence by sentence against the head. The changeset: the four package lines, the two-row migration table and the ADR-0087 marker agree with the schema and with the conversion as the review read it (record_header to record_page, record_more left as stored with a TODO, record never written on a bar). content/docs/references/index.mdx: 1742 schemas, 187 in UI, and RecordQuickActionsLocation on the action.zod.ts row. references/ui/action.mdx: the new section lists the five accepted places and both import lines carry the new names. references/ui/component.mdx and content/docs/ui/components/record.mdx: the bar's location row shows the five places without record, and its sentence on what a bar at record_page draws matches the renderer as the review read it.
  6. Accepted deviations, and where the rest goes. N2, N3 and N4 of the earlier rounds stay accepted nits, as record 7256105969 leaves them; N3 folds into the next edit of studio/en.ts. Two things go to the seat thread. First, N2 now has an instance in flight: feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired #38550 adds the location word selection, and the bar's set is spelled as every word but record, so the second of the two PRs to land must answer whether a bar may be set to it. Second, a gap that predates this PR and is outside ruling A: on action:group, location: 'global_nav' is answered by the shared prescription, whose last sentence names a conversion that only ever stripped action.locations; it has no carrier yet. The dev's three deviations (body layout under the attribution comment, the push held on overlap-check until the seat's go-ahead, the first claim copy corrected by the seat) change nothing the review read.
  7. Landing. Tier H by declared narrowing (maintainer ruling of 2026-11-19 on governance: the guard scripts join the governed register, .claude/** lands by declared rule-change, and a narrowed spec change lands only by the maintainer #35321); check-governed-merges --pr 38581 reads no governed path and 360 changed lines. The seat does not flip it ready or queue it before an authorized approval. pm:awaiting-merge and the review request go out with this record. After approval the seat runs the pre-landing checks at the then-current head and lands it ahead of feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired #38550; a head move by merge-forward owes a Regen-provenance: line or a new delta record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a

Tier H approval request · 2026-11-29T13:54Z · PR #38581 (Fixes #38045), Head-sha 5496b7a4f5d724d6fc307244608d0c9cfc1acf41.

The ask: approve this head, and the seat lands it; a merge by your own hand is the same record. It should land before #38550, which regenerates three files after it.

@os-zhuang
os-zhuang marked this pull request as ready for review November 30, 2026 00:51
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 34daac1 Nov 30, 2026
85 of 86 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-y2muak branch November 30, 2026 01:18
@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 30, 2026
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:ui 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