Skip to content

docs(skills): the UI skill says where a form's column count is authored and where it is derived - #37645

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

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-oddvpd

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Jack · project thread

Fixes #37629

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用界面技能搭应用的 AI,被要求「表单每组两列」时不再回答做不到,会在命名表单的分组上写两列,并说明对象自带的新建和编辑弹窗的列数由平台自动决定。
  • 为什么做:属于「云端 agent 效果」专题的第一批修复;技能原来说列数一律不能写,三次试验里有两次因此答了做不到。
  • 出错会怎样:只改一段说明文字和一条评测用例,写错了 AI 会按错的说法搭表单;撤回这次合并即可恢复原文。
  • 要你做什么:不用你批。低风险的技能文字改动,席位在审核通过且检查全绿后落地。

What changes

skills/objectstack-ui/rules/navigation.md, "Record Presentation": the opening paragraph and the "Column count" bullet.

  • Before: "Column count. Not authored", for every form.
  • After: an object's own New, Edit and detail are built from the object's fieldGroups, never from a form view, and their column count is derived. On a named or public form the count is authored per section, { group: 'contact_info', columns: 2 } (1 to 4; one column on a phone). A form view's own columns is not read by the form page today.

skills/objectstack-ui/evals/views-apps-actions-pages.json gains case 25 (two columns per group on a named form, and what the New dialog does); evals/README.md names it. One patch changeset for @objectstack/skills.

Premise check: what reads which columns

Read on origin/main at 33a31dc, renderer source only, no server booted for this part.

Surface Form view's own columns A section's columns
Named form page, /forms/:name (ui/apps/console/src/components/FormPage.tsx, buildSections) not read read (normalizeColumns(sec.columns))
Public form, /f/:slug (same component) not read read
An object's New and Edit, dialog and full page no form view is read at all (resolveRecordFormChrome in ui/packages/app-shell/src/utils/recordFormNavigation.ts); the layout comes from the object's fieldGroups, which has no columns key not applicable
Setup preview canvas of a form view (buildFormPreviewSchema in .../previews/ViewPreview.tsx) read read

So the card's premise holds for the skill text and fails for the key it names: FormViewSchema.columns parses and is drawn on the preview canvas, and no form a user fills in reads it. The run of the original trial that was counted as "wrote two columns" had written that form-level key. Whether the key is enforced on the form page or retired is not decided here: the seat moved that question to its own decision card, and this pull request leaves packages/spec/** and the renderer untouched. The skill sentence about that key says only what is true today.

Three parse probes against the built spec of this branch: a section { group: 'basic_info', columns: 2 } parses; columns on a fieldGroups entry is refused (unrecognized_keys); columns on the form view parses.

Trial case 2, three runs against this branch's skills

Harness from the trial (harness.mts, cases 4, 1, 2 in one fresh boot per run, examples/app-starter, client claude -p on the small model, mcp__app and Skill only), skills copied from this branch at 2a30689; the skills tree at the head below is byte-identical to that commit. Prompt of case 2: split the customer form into "基本信息" and "联系方式", two columns each.

Run Answered "cannot be done" What it saved (published, 0 refusals) Told the user about the New and Edit dialog
1 no form view, three sections: columns: 2, columns: 2, and columns: 1 for the notes section it kept no
2 no form view, two sections, each columns: 2 no
3 no form view, two sections, each columns: 2 yes: the dialog's count is derived and does not read this form

Original trial on main: 2 of 3 answered that two columns cannot be done; the third wrote the form-level key. Here 0 of 3 answer that, and 3 of 3 write the section key.

One earlier run on the first commit of this branch (677f942, whose wording also said an undeclared section draws 2) saved no column count: it grouped through fieldGroups, said the New and Edit dialog derives its count, and offered a named form with { group, columns: 2 }. That wording was dropped on the seat's correction, since the undeclared count depends on the pending ruling.

Raw records of all four runs: trials/haiku-door/rerun-37629/rerun-37629.tgz in the project files.

Skills size readings

Reading Before (33a31dc) After (f01576d)
skills/objectstack-ui/rules/navigation.md, lines 191 192
skills/objectstack-ui/rules/navigation.md, bytes 10216 10235
skills/objectstack-ui/rules/navigation.md, tokens (ratchet count) 2554 2559 (ceiling 2564)
skills/objectstack-ui/evals/views-apps-actions-pages.json, lines 245 255
skills/objectstack-ui/evals/views-apps-actions-pages.json, tokens (measured, not ratcheted) 6591 6912
skills/objectstack-ui/evals/README.md, lines unchanged unchanged
All skills/*/SKILL.md, lines 4961 4961
Ratcheted authored bundle, tokens 199601 199606 (ceiling sum 204471)
Whole shipped tree, tokens 299325 299659

Net lines added under skills/**: 11 (22 added, 11 removed). The order's budget was 15. The rule file had 10 tokens of headroom; the new words are paid for by shortening the paragraph's rationale ("from the client viewport, because an author, especially an AI, cannot know the client's screen" became "all derived from the client's screen") and by dropping "Author grouping with fieldGroups", which the paragraph's closing sentence and the ladder's first step already say.

Tests

No test pins this passage. The new eval case is a fixture, not an executed test. git grep for "Column count" and "column count" under skills/ finds two other statements, both about the New and Edit dialog and both still true: rules/list-views.md ("Dialog size and column count are derived, never authored") and eval case 19.

Acceptance notes

  • Read first: the "Column count" hunk in skills/objectstack-ui/rules/navigation.md. The risk is its last sentence, which describes today's renderer and has to be rewritten when the form-level key is ruled on.
  • Then the opening paragraph of the same section: "detail" is kept in the list of surfaces built from fieldGroups, as before.
  • Then eval case 25: must_contain pins the section spelling group: 'contact_info', columns: 2.
  • The heading keeps its text, so the anchor that rules/list-views.md links to is unchanged.
  • In runs 1 and 2 the assistant did not say that the view it edited (the container's form slot, served as OBJECT.form) opens nowhere in that app, since no action targets it, and the draft door answered with no advisory. rules/list-views.md "Form Views" already states that rule; this pull request does not change it. Noted for the epic's analysis, not filed.
  • The card's claim is comment 7198444906 on skills: objectstack-ui says a form column count is never authored, while FormViewSchema.columns exists — the model tells users "two columns" is impossible #37629 (seat epic:fix(lint): regex/JSON Schema 编译不过的校验规则改在发布期拒绝 —— 声明了却什么都不拦的两个静态产物 (#4762) #5027#1, branch claude/project-thread-oddvpd). It was posted two minutes after this pull request was opened, so the two declaration lines here were copied from the dispatch order, and the first run of the PR-body claim guard read the card before the claim was on it.
  • The branch is based on 33a31dc and was not merged with main again before opening: the eight commits since touch none of these four files.

Verification

Two-minute check: node scripts/check-skills-token-ratchet.mjs prints skills/objectstack-ui/rules/navigation.md is 2559 tokens (ceiling 2564; headroom 5) and exits 0.

Local gates at f01576d: 47 derived commands, 46 exit 0, 1 exit 3 (prerequisite not met)

Derived with node scripts/pm/dispatch-gates.mjs --commands (no paths) on the committed head; --ran reconciled 47 derived, 47 run, 0 unrun. Each exit code was captured before any pipe.

Exit 0: check-adr-0087-registration (and its self-test), check-changeset-no-major, check-closing-keyword-parity (and self-test), check-comment-mask-corpus, check-doc-route-spelling --advisory (and self-test), check-dts-emitted --self-test, check-empty-changeset (and self-test), check-skills-token-ratchet (and self-test), the four scripts/ci self-tests, check-governed-queue-guard --self-test, release-rehearsal-clone --self-test, release-pending-publish --self-test, check:doc-formula-expressions (lint), check:adr-anchors, check:agent-test-spelling, check:changeset-gate-self-tests, check:ci-filter-parity, check:closed-ceremony-text, check:corpus-claim-drift, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:dts-closure, check:gitlink-declared, check:lean-entry-closure, check:nul-bytes, check:pm-expected-skips, check:pm-governed-merges, check:pm-skill-id-lint, check:published-files, check:refd-timer-probe, check:role-word, check:skill-compatibility, check:skill-frame-sync, check:skill-identifier-liveness, check:skill-links, check:sourcemap-no-sources-content, check:watch-hint-literal.

NOT MEASURED, exit 3, reason: check:dual-build-cjs-loads reads a dist/ of packages outside the closure built here (only the closure of examples/app-starter was built, for the trial). The diff is prose and one fixture; CI runs it.


Generated by Claude Code

…ed and where it is derived

An object's own New, Edit and detail are built from its fieldGroups, never
from a form view, and their column count is derived. On a named or public
form each section's columns is authored. The Record Presentation section of
objectstack-ui rules/navigation.md said the count is never authored.

Claude-Session: https://claude.ai/code/session_01Q4EjjPcmj9vYFeSQiFajkp
Co-authored-by: Claude <noreply@anthropic.com>
The count an undeclared section draws depends on the pending ruling about
the form view's own columns, so the passage keeps to what holds either way.

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

Copy link
Copy Markdown
Contributor Author

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f01576d043d3f5496677777d2e19d03ec7c0cb7f
Local-runs: none
Scope: skills/objectstack-ui/rules/navigation.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-ui/evals/README.md + none
Security-touching: no
Rule-change-verified: none

① Derived judgments

  • Public surface: the diff publishes skill prose and one eval fixture in @objectstack/skills. No spec key, export, renderer or gate moves; packages/spec/** and ui/** are untouched. Right.
  • Accept set: unchanged. The text now teaches a spelling the spec already accepts (columns beside group on a form section) and stops teaching a false refusal. Right.
  • .claude/**: not touched. Security: no hunk teaches permission, sharing, credential, token or authentication behaviour.
  • Check-runs on the head: all success or skipped, except one superseded PR-body guards run (failed 17:02:32Z before the claim landed; re-ran green 17:08:23Z). Governed Surface Queue Guard, Check Changeset and Lint & Repo Gates (skills token ratchet) green.

② Semver level

  • .changeset/37629-ui-skill-form-section-columns.md: '@objectstack/skills': patch. Right: correction of published prose, Metadata-protocol: none.
  • Clause-②: no right (nothing an author can write is added, removed or re-meant); present in PR body and changeset with the claim's value. Metadata-protocol: none right.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

Implemented-by: claude/project-thread-oddvpd
Reviewed-by: session_01Q4EjjMUfmNYTem26rXLFUf

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

维护者速读

Seat opinion: land. The skill text now matches the renderer on main and stops teaching a false refusal; the open product question is carried on #37638.

席位核对

Seat L1 verdict: ACCEPT · head f01576d043d3 · 2026-11-26T17:35Z · Fixes #37629.

  • Shape: draft, base main, Fixes #37629 only; changeset @objectstack/skills patch with Clause-②: no / Metadata-protocol: none. 4 files, +32/−11; net +11 lines under skills/** (budget 15); navigation.md 2559 tokens under its 2564 ceiling.
  • Diff read: the "Record Presentation" intro and "Column count" bullet; eval case 25 + README phrase. Wording avoids "section wins" per the seat's correction.
  • Gates: head check-runs success/skipped; the one red PR-body guards run is superseded by its green re-run after the claim landed.
  • L2: Contract review PASS at CONTRACT_REVIEW_TIER on this head (record above, tier-verified), Security-touching: no, no must-fix/should-fix; nits N1–N4 accepted (N1 and N4 fold into the rewrite after [Decision] FormViewSchema.columns (form-level) is read only by the Setup preview: enforce it on the form page, or retire it #37638 is ruled).
  • Landing tier: check-governed-merges --pr 37645 reads Tier S via the low-risk skills arm.
  • Out of scope: in two trial runs the assistant edited a container's form slot no action opens without saying so — noted for the epic's M2 skill work, not filed now.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

Landing · 2026-11-26T17:35Z · head f01576d043d3

Probe Reading
check-governed-merges --pr 37645 GOVERNED, Tier S (low-risk skills arm; L2 PASS on this head, Security-touching: no)
head check-runs success / skipped (superseded guard run re-ran green)

State change: ready + auto-merge; Fixes #37629 closes the card at MERGED.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 17:36
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 41babf7 Nov 26, 2026
52 of 53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-oddvpd branch November 26, 2026 17:55
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 size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants