Skip to content

fix(spec): dashboard columns and bulk-param allowCreate texts say what the runtime does - #37373

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-w3t2fi
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-w3t2fi

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #36913
Fixes #36927

repo:objectstack#5 · os-bill · session_01Utp6CahVE6H18HGhfsxm57

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:搭建者和 AI 读到的两处规格说明改成与平台实际行为一致:仪表盘不写列数时按组件宽度自动取 4 列或 12 列;批量操作参数被拒时的提示,说明字段上的“允许新建”会带到批量弹窗。只有文字变化。
  • 为什么做:替照规格说明写元数据的搭建者和 AI 解决“说明与运行不一致”,避免按“默认 12 列”布局却得到 4 列,或被告知“允许新建”带不过去。
  • 出错会怎样:最坏是说明措辞仍有偏差,运行行为和校验结果都不变;撤回即恢复旧文字。
  • 要你做什么:无。

What changes

Four commits: one per card, then the CLI mirror of the #36913 sentence (fence widened by the zone) and a test-hygiene import. Text only: no runtime change, no change to any parsed shape or refused key set.

#36913, DashboardSchema.columns describe. It said (default 12). The renderer (ui/packages/plugin-dashboard/src/DashboardRenderer.tsx, inferredColumns, ~L391–407 at 98bda0a) has no fixed default: with columns absent it takes the widest layout.x + layout.w (or layout.w) over the widgets and returns 12 if that exceeds 4, otherwise 4. The describe now reads: "Number of grid columns. When absent, inferred from the widgets: 12 if any widget layout reaches past column 4 (x + w > 4), otherwise 4". TSDoc follows; content/docs/references/ui/dashboard.mdx regenerated (gen:docs, the only stale artifact check:generated named). The packages/rest fixture that quotes the describe follows it, and the os explain dashboard table in packages/cli/src/commands/explain.ts now carries the same sentence. Because that rest test is edited, check:test-source-alias asked for its module-top import '@objectstack/objectql'; added.

#36927, BULK_PARAM_WIDGET_CONFIG_KEYS prescription and list.bulkActionDefs liveness note. PR #36919 made a promoted bulk def's field-backed lookup param carry the field's allowCreate (resolveActionParams copies it, ui/packages/plugin-grid/src/resolveBulkActions.ts toBulkParam L191 forwards it). The prescription, its TSDoc, and the liveness note now list allowCreate with lookupFilters / lookupColumns / lookupPageSize / descriptionField; the counts move from "four picker settings / six keys" to "five / seven". Every other key named is unchanged and still true on main (re-read in the same two files). The spec test comment that paraphrases the prescription follows it.

Tests

Local, on 9a3c289:

  • pnpm --filter @objectstack/spec build · check:generated (after gen:docs: all artifacts current)
  • vitest run on packages/spec/src/ui/bulk-action.test.ts, packages/spec/src/ui/dashboard.test.ts, packages/rest/src/meta-types-schema-titles.test.ts (3/3), packages/cli test/explain-rule-id.test.ts (14/14), pnpm --filter @objectstack/cli typecheck exit 0
  • the dispatch-gates --commands set for this diff; rows that need the whole workspace built exit 3 (prerequisite not met) and are NOT MEASURED locally, left to CI. 106 of 115 derived commands exit 0; 7 exit 3 (prerequisite); check:test-source-alias fixed and re-run green; check:platform-checklist red from main (see notes).

Acceptance notes

  • packages/cli/src/commands/explain.ts:292 repeated "(default 12)"; the zone widened the fence and it is fixed here.
  • check:platform-checklist is red locally on an ABSENT SYMBOL anchor (FlowItemMoreMenu) this diff does not touch; it comes from main.
  • No skills/** page repeats "default 12" (grep at 98bda0a).

Verification

Two-minute check: grep -n "columns:" packages/spec/src/ui/dashboard.zod.ts shows the inference wording; grep -c allowCreate packages/spec/liveness/view.json is non-zero.

Read first: packages/spec/src/ui/bulk-action.zod.ts prescription hunk (the only place with wording risk), then dashboard.zod.ts L1822–1827.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CahVE6H18HGhfsxm57

…nference

The describe said "(default 12)"; when columns is absent the renderer
infers 12 if any widget layout reaches past column 4, otherwise 4.
Regenerated the reference page; the rest fixture that quotes the
describe follows it. No runtime change.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CahVE6H18HGhfsxm57
… as carried

Since #36919 a promoted bulk action's field-backed lookup param carries
the field's allowCreate. The BULK_PARAM_WIDGET_CONFIG_KEYS prescription,
its TSDoc and the list.bulkActionDefs liveness note now say so. Text only.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CahVE6H18HGhfsxm57
@github-actions github-actions Bot added size/s 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 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/cli, @objectstack/spec, touching 3 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/liveness/view.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/getting-started/quick-reference.mdx (via DashboardSchema (symbol, a top-level const))
  • content/docs/permissions/field-level-security.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))
  • content/docs/protocol/objectql/security.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))
  • content/docs/ui/pages.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))
  • content/docs/ui/react-pages.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))

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

  • content/docs/releases/v15.mdx (via DashboardSchema (symbol, a top-level const))
  • content/docs/releases/v16.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))
  • content/docs/releases/v18/18-2.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))
  • content/docs/releases/v18/18-3.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))
  • content/docs/releases/v18/18-6.mdx (via os explain (command, read off packages/cli/src/commands/explain.ts))

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
  • 1 changed file(s) yielded no anchor (packages/spec/liveness/view.json) — pages documenting those are invisible to this run
  • 1 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 — 187 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 02520ab4808e46fa708ca257b11981499079d3ae → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 02520ab4808e46fa708ca257b11981499079d3ae

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

The explain table mirrored the old "(default 12)" describe; it now says
what the renderer does when columns is absent: 12 if any widget layout
reaches past column 4, otherwise 4.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CahVE6H18HGhfsxm57
…tion

check:test-source-alias judges edited test files; this one reaches a
lazy objectql import through RestServer, so it takes the module-top
side-effect import the convention asks for.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

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

  1. Shape: open draft against main, 9 files, +47/−17, four commits. The PR body has Fixes #36913 and Fixes #36927, and merging delivers both cards whole. l1-face flagged keywords-other-cards on the second one; that is intended, since this is one PR for two cards and each has its own commit and changeset. l1-face raised a second flag, changeset on @objectstack/rest. That is a false positive: the only rest file touched is src/meta-types-schema-titles.test.ts, and rest ships only dist/README/CHANGELOG. The newer Check Changeset run is green.
  2. Premise:
  3. Gates: check-runs at 9a3c2894c7: 62 success, 12 expected skip, 0 failed, 0 pending; mergeable clean. The two changesets (spec + cli patch; spec patch) were read against the diff and are true.
  4. Accepted deviations:
    • (a) the explain.ts "default 12" mirror, with the fence widened in both claims;
    • (b) the module-top import '@objectstack/objectql' that check:test-source-alias asked for in the edited rest test.
  5. Out of scope: none named.
  6. Landing terms: ungoverned, default tier, Clause-②: no. L1 only. The area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Probe Reading
check-governed-merges --pr 37373 NOT governed, ≤ 3000 lines
landing-k --pr 37373 K = 14 < 15
pr-state --pr 37373 at 9a3c2894c7 62 success · 12 expected skip · 0 failed · 0 pending, mergeable clean

Landing on seat ACCEPT 7179165071, named by the maintainer in the seat thread (「合并 #37354 #37377 #37373 #37381」, 2026-11-26T02:14Z): ready + auto-merge. Closes #36913 and #36927 on merge. Generated dashboard.mdx re-measured: no main commit since the base touches it or dashboard.zod.ts.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 02:18
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 5078f2f Nov 26, 2026
75 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-w3t2fi branch November 26, 2026 02:47
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/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants