Repository navigation
docs(skills): the UI skill says where a form's column count is authored and where it is derived - #37645
Conversation
…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>
Claude-Session: https://claude.ai/code/session_01Q4EjjPcmj9vYFeSQiFajkp Co-authored-by: Claude <noreply@anthropic.com>
|
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf 维护者速读
Seat opinion: land. The skill text now matches the renderer on 席位核对Seat L1 verdict: ACCEPT · head
|
|
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf Landing · 2026-11-26T17:35Z · head
State change: ready + auto-merge; |
Requested by Jack · project thread
Fixes #37629
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ui/rules/navigation.md, "Record Presentation": the opening paragraph and the "Column count" bullet.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 owncolumnsis not read by the form page today.skills/objectstack-ui/evals/views-apps-actions-pages.jsongains case 25 (two columns per group on a named form, and what the New dialog does);evals/README.mdnames it. Onepatchchangeset for@objectstack/skills.Premise check: what reads which
columnsRead on
origin/mainat 33a31dc, renderer source only, no server booted for this part.columnscolumns/forms/:name(ui/apps/console/src/components/FormPage.tsx,buildSections)normalizeColumns(sec.columns))/f/:slug(same component)resolveRecordFormChromeinui/packages/app-shell/src/utils/recordFormNavigation.ts); the layout comes from the object'sfieldGroups, which has nocolumnskeybuildFormPreviewSchemain.../previews/ViewPreview.tsx)So the card's premise holds for the skill text and fails for the key it names:
FormViewSchema.columnsparses 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 leavespackages/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;columnson afieldGroupsentry is refused (unrecognized_keys);columnson 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, clientclaude -pon the small model,mcp__appand 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.columns: 2,columns: 2, andcolumns: 1for the notes section it keptcolumns: 2columns: 2Original 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.tgzin the project files.Skills size readings
skills/objectstack-ui/rules/navigation.md, linesskills/objectstack-ui/rules/navigation.md, bytesskills/objectstack-ui/rules/navigation.md, tokens (ratchet count)skills/objectstack-ui/evals/views-apps-actions-pages.json, linesskills/objectstack-ui/evals/views-apps-actions-pages.json, tokens (measured, not ratcheted)skills/objectstack-ui/evals/README.md, linesskills/*/SKILL.md, linesNet 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 withfieldGroups", 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 grepfor "Column count" and "column count" underskills/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
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.fieldGroups, as before.must_containpins the section spellinggroup: 'contact_info', columns: 2.rules/list-views.mdlinks to is unchanged.formslot, served asOBJECT.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.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.mainagain before opening: the eight commits since touch none of these four files.Verification
Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/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;--ranreconciled 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 fourscripts/ciself-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-loadsreads adist/of packages outside the closure built here (only the closure ofexamples/app-starterwas built, for the trial). The diff is prose and one fixture; CI runs it.Generated by Claude Code