Repository navigation
docs(skills): objectstack-ui teaches the object's actionLayout - #37043
Conversation
One section in rules/actions.md (arms, pinned limit, what each arm reaches, the refusals, the .custom writer) and one eval case. Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
…et row The section drops to the four things the card names; one restated example on the copy-holes bullet is cut (49 bytes); the row for rules/actions.md moves 3711 -> 3880, the measured remainder. Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对L1 verdict: ACCEPT · card #36630 · zone a4-A · head Read from the PR's own diff and check-runs, not from the dev report.
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract review brief — PR #37043 @
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: Read for this record: card #36630 (body and its 4 comments: triage 7091886018, claim 7138343252, dev reports 7138721425 and 7138853384), PR #37043 (body, 4 files, net diff), the 49 check-runs on the head, and the cited code on ① Derived judgments
② Semver level
③ Boundary flagsDev flags, first report (7138721425):
Dev flags, second report (7138853384),
The ratchet row against the script header's raise rule (standing ruling, record 6513306068):
SQL push-down: not applicable. No query, no id materialisation and no join in the diff. ④ Design judgmentNo must-fix, no should-fix.
The three nits need no move of this head; each is the seat's to leave as an accepted deviation or to card. Read, not reviewed: the sentence in Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 维护者速读
席位意见:可以合并。文字逐句与已上线行为一致;上限只抬到实测值,没有余量。 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Hand-off · 2026-11-24T17:42Z · @os-zhuang — PR #37043 (card #36630) is ready for your approval. Tier H only because the skills token-ratchet script moves one ceiling (3711 → 3880, paid down first, measured, standing ruling 6513306068); the rest is skills text and one eval case. Seat record (速读 + ACCEPT): 7139578969. Contract review PASS: 7139491356, Head-sha |
…ard settings (objectstack-ai#37063) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes objectstack-ai#36422 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用 AI 助手搭看板的应用作者,拿到的看板配置会带上每条泳道底部的统计(计数、合计、平均、最小、最大),以及卡片上「是否显示字段名」「是否隐藏空字段」两个开关;此前助手只会写旧的求和写法。 - 为什么做:这是「看板视图有了自己的设置」这项工作的收尾,技能文档此前没有教这些新设置。 - 出错会怎样:助手会照着错的说明去写看板配置;本次只改文字,可以直接撤回。 - 要你做什么:无。 ## What changes `skills/objectstack-ui/rules/list-views.md`, section "Configuring Kanban Views": - The board example writes `kanban.summary` (`{ type: 'sum', field: 'estimate_hours' }`) in place of `summarizeField`, and sets `showFieldLabels` and `hideEmptyFields`, each with its default (`true`) in the trailing comment. - One note under the example: the six `summary.type` values (`none`, `count`, `sum`, `avg`, `min`, `max`); the four aggregates take a `field` and are computed by the query over every record of the lane, not only the loaded cards; the known gap the spec names (lanes over a lookup field, or a view with grouping: `sum` covers one fetched page and the other three show nothing); `summary` takes precedence over the older sum-only `summarizeField`. - `summarizeField` is still an accepted key (`KanbanConfigSchema` in `packages/spec/src/ui/view.zod.ts` declares it, no tombstone, no conversion), so it is named once as the older spelling and no longer taught as the way to write a lane statistic. No other file under `skills/` mentions it (`git grep summarizeField -- skills` at this head: one hit, the new note). Every sentence was written from the spec's describe text and JSDoc for `KanbanLaneSummarySchema`, `summary`, `showFieldLabels` and `hideEmptyFields` at main a68b475. ### Paid for in the same file The file had 4 bytes of token headroom, so the new teaching is paid by cutting restatement in `list-views.md` itself. No ratchet row moves. | Cut | Restates | |:---|:---| | search example comment "No `searchableFields` ..." | the "key omitted" row of the table below it | | search example comment "This list only ..." | the `searchableFields` line under it | | "The full `dropdown / tabs / toggle` range applies only to page lists ..." | "`tabs` is page-only" in the same bullet | | "the whole search box, for every user and every term: no result at all" | its own heading, "One bad entry 400s EVERY search on that list" | | "errors, not warnings" | "fails the build" in the same sentence | | comment "no search box" | the sentence introducing the example | | "one lane per option" on `groupByField` | the `lanes` note under the example | | "the default `list` and every other view untouched" | "a NEW `listViews` entry that coexists with the views the object has" | | gantt comments "task bar start" / "task bar end" | the key names `startDateField` / `endDateField` | ### Skills size readings | | before (a68b475) | after (7d7ca6d) | |:---|:---|:---| | `rules/list-views.md` lines | 409 | 411 | | `rules/list-views.md` bytes / tokens | 17788 / 4447 | 17775 / 4444 (ceiling 4448) | | all `SKILL.md` files, lines | 4942 | 4942 (none touched) | | bundle total, tokens | 295195 (the measured after, plus this file's 3) | 295192 (measured) | Net lines in `skills/**`: +2 (17 added, 15 removed), against a budget of +12. ## Tests Head 7d7ca6d. Text only: no tested behaviour changes, so no ablation. - `pnpm --filter @objectstack/spec run check:skill-examples` (spec and the client-react closure built first, under the verify lock): exit 0, "350 prose examples type-check across 3 surface(s)". This is the gate that type-checks the board example against `ListView`. - `node scripts/check-skills-token-ratchet.mjs`: exit 0, "skills/objectstack-ui/rules/list-views.md is 4444 tokens (ceiling 4448; headroom 4)". ## Acceptance notes - Card acceptance: the board example uses all three keys the board gained (`summary`, `showFieldLabels`, `hideEmptyFields`); the scope addition's three statistics (`avg`, `min`, `max`) are named with what they cover. - No eval case was added. No case in `evals/views-apps-actions-pages.json` exercises these keys, and a case was drafted, but `scripts/pm/overlap-check.mjs` answered exit 1 against open PR objectstack-ai#37043, which appends to the same file. The case was dropped so this branch does not queue behind that pull (overlap-check at this head: `VERDICT clean exit 0`). A case for the lane statistic can follow once that pull lands. - The example sets `showFieldLabels: false` and `hideEmptyFields: false`, the non-default values, so the keys are visible in the example; the comments carry the defaults. ## Verification First files to read: `skills/objectstack-ui/rules/list-views.md` (the hunk at "Configuring Kanban Views" is the teaching; every other hunk is a cut). Two-minute check: open the spec describe text for `summary`, `showFieldLabels` and `hideEmptyFields` in `packages/spec/src/ui/view.zod.ts` beside the new note. Expected: every clause of the note has a source sentence there. Local gate subset (derived by `dispatch-gates.mjs --commands`, 48 families): 43 exit 0; 5 exit 3, PREREQUISITE NOT MET because the full workspace is not built here (`check:doc-formula-expressions`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`). Those five are NOT MEASURED locally and left to CI; none reads a skills file's prose. --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr)_ Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Fixes #36630
Clause-②: no
Metadata-protocol: none
维护者速读
63287424a22bff43b285da9d0b731e506c965d25;席位核对 7139306737。What changes
skills/objectstack-ui/rules/actions.mdgains one section, "Button Order (actionLayout)", placed after thelocationstable. It is taught from the merged code, not from the prose of the pull that added the key:packages/spec/src/data/object-action-layout.ts(one arm per scope,pinnedrequired and at most 3,moreoptional, a name once across both parts, the list scope's$import/$exportpinned only);arrangedHeaderActionsinui/packages/types/src/ui-action.ts(record header, the side preview and the phone bar draw the same header) andui/packages/plugin-grid/src/rowActionArrangement.ts(a row's menu lists in the record arm's order);validateObjectActionLayoutinpackages/lint(a name that is no action of the object, or one not placed in the arm's scope);.customwriter:CUSTOM_ARRANGEMENT_KEYSinpackages/spec/src/data/field-customization.tsand theactionLayoutdescription onObjectExtensionSchema; the section points at objectstack-data, which already teaches the siblingfieldGroupsrule and its refusal doors, instead of restating them.skills/objectstack-ui/evals/views-apps-actions-pages.jsongains case 24: four header buttons are requested, so a correct answer pins three and leadsmorewith the fourth, pins$exportin the list arm, and does not renumberorderor author a page.A
patchchangeset for@objectstack/skills.Size readings (published skills)
rules/actions.mdevals/views-apps-actions-pages.json(measured, not ratcheted)SKILL.md, summedNet added lines under
skills/**: 22 (rules +13 -1, evals +10).Token ratchet: paid down first, then the measured remainder
The row for
skills/objectstack-ui/rules/actions.mdhad zero headroom. Under the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B):descriptionon the copy-holes bullet (a sentence choosing a new owner, written with a record-name hole). ThehelpTextbullet right below it and the Reassign Lead block'ssuccessMessageshow the same hole spelling.scripts/check-skills-token-ratchet.mjs.script" cue, therefreshAfternote, theobjectOverrideanddefaultFromRowsentences, thenewTabUrlconstraint, the "never viaparams" warning.Tests
No code changes; no behaviour to ablate. Readings on head
63287424a2:node ui/scripts/check-skill-eval-tokens.mjs(run fromui/): exit 0, "Every must_contain token is taught by its own skill bundle."pnpm --filter @objectstack/spec check:skill-docs: exit 0, "Skill docs in sync"pnpm --filter @objectstack/spec check:skill-refs: exit 0, "10 generated files in sync with packages/spec"check-skill-links,check-skill-identifier-liveness,check-skill-compatibility-version,check-skill-frame-sync,check-doc-authoring,check-role-word,check-corpus-claim-drift,pm/check-skill-id-lint,check-nul-bytes,check-closing-keyword-parity,check-doc-route-spelling --advisory,check-empty-changeset --base origin/main, ratchet--self-test: each exit 0node scripts/check-skills-token-ratchet.mjs: exit 0, "skills/objectstack-ui/rules/actions.md is 3880 tokens (ceiling 3880; headroom 0)"check:skill-examples(spec and ui), reason: both stop at PREREQUISITE NOT MET without a built client closure, and this diff adds no marked example block. CI runs them.Acceptance notes
leadatrecord_header(crm_convert_lead,crm_print_a3), so it is consistent with the reference rule it describes.Verification
First files to read, by risk:
skills/objectstack-ui/rules/actions.md(the new section, 9 body lines), then case 24 at the end of the evals file.Two-minute check:
git grep -n actionLayout -- skills/objectstack-uinow lists both files; before this pull it listed nothing.Generated by Claude Code