Skip to content

Commit bb6a823

Browse files
committed
fix(skills): record-page eval cases 7 and 8 forbid the wrong spelling, not a mention of it
A must_not_contain entry is a literal substring match, so the bare kind: 'full' entry failed each case's own reference answer. Both cases now forbid the code spelling, and the reference answers say no full page. The rule drops one repeat of the opening line; its token row follows the measurement down, 1249 -> 1244. The changeset names the deleted clauses as one false and three restating. Claude-Session: https://claude.ai/code/session_01WGufzfcCk7a8bQdgyaxzu7 Co-authored-by: Claude <noreply@anthropic.com>
1 parent f71d424 commit bb6a823

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎.changeset/38680-record-page-skill-keys.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Clause-②: no
88
Metadata-protocol: none
99

1010
`skills/objectstack-ui/rules/record-page.md`: step 1 no longer says the record page's layout follows "never a key". It now teaches the two object keys that re-arrange the standard record page. `pinOverview: false` keeps the desktop full page from pinning the details, which become its first tab; the side preview and a phone are unchanged. `fieldTabs: [{ key, groups }]` draws named field groups as tabs of their own right after the details; the note lists what the parse refuses and says this is not the form-level `FormSchema.fieldTabs`, which lists field names. Print pages and authored `kind: 'full' | 'html' | 'react'` pages read neither key, and an object extension is refused both. The example declares both keys. `relatedLists` stays the related-tab list. `evals/record-page.json` gains one case per key.
11-
The file's token ceiling moves from 990 to 1249: four restating clauses of the same file are deleted first, and the row moves by the measured remainder.
11+
The file's token ceiling moves from 990 to 1244: four clauses of the same file (one false, three restating) are deleted first, and the row moves by the measured remainder.

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,20 +2219,20 @@ export const CEILINGS = new Map([
22192219
// widths)" aside — step 1 already says layout follows the surface's width — is gone; the
22202220
// ceiling follows the file down to the measurement (3961 bytes).
22212221
// 991 -> 990: -1 to the measurement.
2222-
// 990 -> 1249 (card #38680): step 1 teaches the two object keys that re-arrange the
2222+
// 990 -> 1244 (card #38680): step 1 teaches the two object keys that re-arrange the
22232223
// standard record page, `pinOverview` and the object-level `fieldTabs` (what each does on
22242224
// the desktop full page, the surfaces that do not read them, the object-extension refusal,
22252225
// the four `fieldTabs` parse refusals and the form-level `FormSchema.fieldTabs` it is not),
22262226
// and the one checked example declares both. Raise path the standing ruling
2227-
// 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). PAID DOWN FIRST, 94
2228-
// bytes: step 1's false clause "never a key" and its "the Console synthesizes it from the
2229-
// object alone" (the title and the step's own heading say it), step 2's "nothing changes"
2227+
// 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). PAID DOWN FIRST, 81
2228+
// bytes of restatement beside the 13 of step 1's false clause "never a key": step 1's "the
2229+
// Console synthesizes it from the object alone" (the title and the step's own heading say it), step 2's "nothing changes"
22302230
// (the default it introduces follows it), and step 4's second "is `kind: 'full'`" (its
22312231
// heading says it). Arithmetic against `main`'s 3959 bytes (headroom 0): the file is
2232-
// 3959 -> 4993 bytes, so the row moves +259, the measured remainder only. Pinned AT the
2232+
// 3959 -> 4974 bytes, so the row moves +254, the measured remainder only. Pinned AT the
22332233
// measurement.
2234-
// ceil($(wc -c < skills/objectstack-ui/rules/record-page.md) / 4) == ceil(4993 / 4)
2235-
['skills/objectstack-ui/rules/record-page.md', 1249],
2234+
// ceil($(wc -c < skills/objectstack-ui/rules/record-page.md) / 4) == ceil(4974 / 4)
2235+
['skills/objectstack-ui/rules/record-page.md', 1244],
22362236

22372237
// ── 2026-09-22 the #19715 split — decision batch #213 item 1 ─────────────
22382238
// The maintainer ruled the four over-500-line published SKILL.md files split

‎skills/objectstack-ui/evals/record-page.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
{
119119
"id": 7,
120120
"prompt": "Our policy records are long documents. On a desktop the policy record page pins the details in a narrow left column beside the tabs; stop that, so the details are the first tab and use the page's width. The `policy` object is defined in our own package and has Tasks and Attachments tabs today.",
121-
"expected_output": "One key on the `policy` object: `pinOverview: false`. The desktop full page then never pins, at any width: Details is the first tab, open by default, and its fields lay out by width in up to three columns; the Tasks and Attachments tabs follow as before. Absent or `true` the pin is derived from the width, so the key is written only for this. The side preview and a phone draw the same either way. It is declared on the object itself (an object extension is refused it). No page file, no `kind: 'full'` or slotted page, and no `relatedLists` change.",
121+
"expected_output": "One key on the `policy` object: `pinOverview: false`. The desktop full page then never pins, at any width: Details is the first tab, open by default, and its fields lay out by width in up to three columns; the Tasks and Attachments tabs follow as before. Absent or `true` the pin is derived from the width, so the key is written only for this. The side preview and a phone draw the same either way. It is declared on the object itself (an object extension is refused it). No page file, no full or slotted page, and no `relatedLists` change.",
122122
"files": [],
123123
"assertions": {
124124
"must_contain": [
@@ -127,16 +127,16 @@
127127
"must_not_contain": [
128128
"pinOverview: true",
129129
"definePage(",
130-
"kind: 'full'",
131-
"kind: 'slotted'",
130+
"kind: 'full',",
131+
"kind: 'slotted',",
132132
"slots: { tabs"
133133
]
134134
}
135135
},
136136
{
137137
"id": 8,
138138
"prompt": "On the policy record page, put the Content and Original field groups on a tab of their own, titled Content, right after the details; Basic stays in the details. The policy declares `fieldGroups: [{ key: 'basic', label: 'Basic', fields: ['title', 'owner'] }, { key: 'content', label: 'Content', fields: ['body'] }, { key: 'import', label: 'Original', fields: ['source_file'] }]`.",
139-
"expected_output": "One key on the `policy` object, beside the `fieldGroups` it already declares: `fieldTabs: [{ key: 'content', groups: ['content', 'import'] }]`. An entry names field GROUPS, not fields: the two groups leave Details and draw as one tab right after it, before the related-list tabs, and the tab takes its title and icon from its first group, so `content` comes first and the entry carries no `label`. Basic stays in Details because no tab names it, and `relatedLists` is untouched (it is still the related-tab list). This is not the form-level `FormSchema.fieldTabs`, which shares the name and lists field names: `fields` on an entry here is refused. No page file, no `kind: 'full'` page, no form view sections.",
139+
"expected_output": "One key on the `policy` object, beside the `fieldGroups` it already declares: `fieldTabs: [{ key: 'content', groups: ['content', 'import'] }]`. An entry names field GROUPS, not fields: the two groups leave Details and draw as one tab right after it, before the related-list tabs, and the tab takes its title and icon from its first group, so `content` comes first and the entry carries no `label`. Basic stays in Details because no tab names it, and `relatedLists` is untouched (it is still the related-tab list). This is not the form-level `FormSchema.fieldTabs`, which shares the name and lists field names: `fields` on an entry here is refused. No page file, no full page, no form view sections.",
140140
"files": [],
141141
"assertions": {
142142
"must_contain": [
@@ -147,7 +147,7 @@
147147
"fieldTabs: [{ label",
148148
"label: 'Content', groups",
149149
"definePage(",
150-
"kind: 'full'",
150+
"kind: 'full',",
151151
"slots: { tabs",
152152
"sections:"
153153
]

‎skills/objectstack-ui/rules/record-page.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ width: a full page fitting 320 px of details beside 400 px of tabs
1313
pins the details left of the tabs, unless they hold a child table or no other
1414
tab exists; else one column, Details first.
1515

16-
Two object keys re-arrange the standard page; write one only when asked, never
17-
a page file. Print and `kind: 'full' | 'html' | 'react'` pages read neither; an
18-
object extension is refused both (the defining package declares them).
16+
Two object keys re-arrange the standard page; write one only when asked. Print
17+
and `kind: 'full' | 'html' | 'react'` pages read neither; an object extension is
18+
refused both (the defining package declares them).
1919
- `pinOverview: false`: the desktop full page never pins: Details is its first
2020
tab, open by default, fields in up to three columns by width, child table or
2121
not (`true` forces nothing). The side preview, a phone and a narrow page never

0 commit comments

Comments
 (0)