Repository navigation
fix(skills): three objectstack-ui record-page eval cases grade what the record-page rule teaches - #37704
Conversation
…the record-page rule teaches Case 4 no longer requires 'sys_activity' (unlisted approvals and the stream still follow a declared relatedLists); case 1's prompt asks for only the open tasks, which its required relatedListFilter grades; case 3 forbids the id list a wrong answer writes, not any quoted list. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: ① Derived judgmentsFirst round. Read: card #37632 (body and its three comments: triage 7198736691, claim 7203533165, os-dev-report 7203854967), PR #37704 (body, two-file list, net diff against What the grader reads decides every accept set:
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix) — case 1's reference answer now states a behaviour the platform does not have. Line 7 reads "listing the task alone would take the Attachments tab away and leave Events to follow unarranged". On Case 1 otherwise holds: the new prompt and the Case 4 holds: prompt, tokens and reference answer agree with §2 and with Case 3 holds: the reference answer is unchanged and matches N1 (nit) — case 1's N2 (nit) — case 4's N3 (nit) — case 3's Implemented-by: VERDICT: PASS |
…rule and pins 'event' Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: ① Derived judgmentsDELTA review from
② Semver levelThe changeset is byte-identical to the one at N5 (nit, changeset prose) — the changeset tells case 4's new required token and not case 1's: it says case 1's reference answer lists ③ Boundary flags
N4 (nit, PR body) — the body's two-minute check quotes ④ Design judgment
S1: closed. Line 7 again reads "listing the task alone would take the Events and Attachments tabs away", byte for byte the sentence on N1: closed. Case 1's N2 (nit), carried — the whole-quoted-name residual now holds for case 1's N3 (nit), carried — unchanged, accepted in the PR body. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head ddc29c8 · card #37632 · area s2-ai · 2026-11-26T22:24ZL1 checklist
Tier: H. Landing: hand-off to the approver by the next stroke; ⛔ the seat does not merge. |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head ddc29c8 · card #37632 · area s2-ai · 2026-11-26T22:25ZL1 checklist
Tier: S. Landing: ready + auto-merge by this stroke. |
Requested by Sales · project thread
Fixes #37632
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One file of eval fixtures,
skills/objectstack-ui/evals/record-page.json, cases 1, 3 and 4, plus a@objectstack/skillspatch changeset. No skill text changes.must_containno longer requires'sys_activity'; it requires'opportunity_contact_role', the second list the prompt asks to keep. The reference answer is nowrelatedLists: ['quote', 'opportunity_contact_role']and says approvals and the activity stream still follow when unlisted (naming both is right too). This isrules/record-page.md§2: "Declared, only the named lists show, in order (unlisted approvals and the stream still follow)".relatedListFilterrequired and changed the prompt: it now asks for the Tasks tab first and for that tab to list only the open tasks (a task whosestatusis notdone). Reason: §2 teaches two things here, the tab list andrelatedListFilteron the child's reference field, and this case is the only one in the catalog that gradesrelatedListFilter(the key occurs in this eval file and in §2, nowhere else underskills/). Dropping the assertion would leave that teaching graded by no case. The reference answer now lists['task', 'event', 'sys_attachment']and says approvals and the stream need no entry, for the same §2 reason as case 4. Once declared, only the named lists show, so listing the task alone would take the Events and Attachments tabs away (deriveRelatedLists.ts, pinned byderiveRelatedLists.relatedListsOrder-27069.test.ts).must_containnow also requires'event', so an answer that drops the Events tab fails (contract review 7204269799, S1 and N1).placedActions: trueonpage:header). The forbidden stringactions: ['becomesactions: ['open. The wrong answer this case guards against lists the package's action id beside or in place ofplacedActions: true; an answer that quotes the page's old id list in a// before:comment no longer fails. Same treatment as the earlier forbidden-string sweep (PR 31436): forbid the spelling a wrong answer writes, not any mention.Each of the three cases has a new case hash, so a
skill-evals --regradeof a round recorded before this change sets them apart.Tests
Head
ddc29c8379(delta: case 1's reference sentence and its'event'token; the readings below were taken on36f7a970cc, and the hand check was re-run on the new head: 6 cases, 0 violations).node ui/scripts/check-skill-eval-tokens.mjs: exit 0, "Every must_contain token is taught by its own skill bundle." See the first acceptance note for what this gate does and does not read.must_not_containentry of any of the six cases occurs in its ownexpected_output; everymust_containentry of cases 1, 3 and 4 occurs in its ownexpected_output(6 cases, 0 violations).node scripts/check-skills-token-ratchet.mjs: exit 0, "61 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted." No ceiling changed.dispatch-gates.mjs --commands, 44 commands): 39 exit 0. Five exit 3 (prerequisite, no build in this worktree; NOT MEASURED locally, left to CI):check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. They read build output, not this diff's two files.pnpm check:changeset-fixed: exit 0.Size readings (published catalog):
fbcfdfbb58)36f7a970cc)record-page.json, linesrecord-page.json, tokens (ratchet's count)ddc29c8379; 1924 at36f7a970cc)SKILL.mdfiles, linesddc29c8379)Acceptance notes
ui/scripts/check-skill-eval-tokens.mjsscans one bundle,skills/objectui("Scanned 1 skill bundle(s) under skills: 11 eval file(s)"). It does not readskills/objectstack-ui/evals/, so its green says nothing about this file; the hand check above stands in for it. Noted, not filed: coverage observation, no wrong answer at a public entry.ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts(arrangeDeclaredTabs, around lines 1151-1172) drops an unlisted attachments tab and places unlisted approvals and the stream after the listed tabs;RelatedListsEditor.tsx(around lines 269-276) previews the same.open…id (the prompt's "Open in billing"). An answer that setsplacedActions: trueand also lists other ids first would pass the string check; the runtime refuses that pair. No narrower literal separates it from a quoted old list.record-page.jsonentry inskills/objectstack-ui/evals/README.md("naming every tab it keeps") still name the two built-ins or speak of every tab. Both are valid authoring and outside this card's three cases; left as they are.Accepted deviations (contract review 7204269799)
'quote'and'opportunity_contact_role'in case 4, and'event'in case 1, are whole quoted names. An answer that writes theobject.fieldform ('quote.opportunity','event.lead') fails, even though the spec accepts it. §2 teaches bare names, and the measured answer wrote them.actions: ['openonly matches a single-quoted id that starts withopen. An answer that pairsplacedActions: truewith another id (for exampleactions: ['billing_open']) passes, even though the spec refuses that pair. An id list withoutplacedActions: truestill fails onmust_contain.Verification
Read first, by risk:
skills/objectstack-ui/evals/record-page.jsoncase 1: the prompt sentence and the reference answer (the one prompt change in this PR).must_containand the reference answer against §2 ofskills/objectstack-ui/rules/record-page.md.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprintsskills/objectstack-ui/evals/record-page.json is 1923 tokens — eval fixture, measured but not ratchetedand ends with the green line quoted above.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVUz5oS8fMgmncxU96