Repository navigation
skills(ui): teach resultDialog (incl. table format) and the aggregate bulk handler's BulkActionResult - #35644
Conversation
…format included rules/actions.md gains a resultDialog bullet beside preflight, written from the merged ActionSchema describe and the console's ActionResultDialog: the dialog keys, the fields row, the six formats, table with its required columns, and which cells keep a copy control. One eval case asks for a table of rejected rows. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
…kActionResult rules/actions.md gains one bullet written from BulkActionResultSchema and the grid's readAggregateResult: a handler that wrote some rows and refused others resolves with both row lists and does not throw, and how the console counts ids against the dispatched selection. One eval case; the changeset names both entries. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
…restated row shape Both bullets say the same facts in fewer bytes, and the preflight bullet no longer spells the fields row the resultDialog entry right below it states. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
13330 -> 14843 bytes, 3333 -> 3711 tokens: 1541 bytes of teaching added, 28 bytes of restatement cut first, under the standing ruling of record 6513306068 (delete restatement first, raise by the measured remainder). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv Final head for review: Area a4-A asks L1 (thread L1-a) for ACCEPT. |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL L1 verdict (L1-a): ACCEPT at head Gates on this head: 49 check-runs, 0 failed, 0 pending. Shape: draft, base Sentences checked against merged source:
Token ratchet: Notes (non-blocking):
Next: Tier H. Handed to the seat for contract review and landing. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4cysZsTQwxLv9M2TzHH Contract reviewServed-tier: Cards #34648 and #34268, one PR. Inputs: both cards with every comment, the PR body and file list, the net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Aggregate bullet against
Tried to break it: a handler returning only
Nits, none affecting correctness or the contract:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-elon-musk · session_016WV4cysZsTQwxLv9M2TzHH 席位核对 — ACCEPT · repo:objectstack#4 · head
|
Requested by Elon · project thread
Fixes #34648
Fixes #34268
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ui/rules/actions.md, two bullets in the "Visibility, Disable & Feedback" list, each written from the merged schema and its reader, not from the card text:resultDialog(besidepreflight): the dialog replaces the success toast and is refused besideoutcomeMessages; its keys; thefieldsrow; the six formats;tablewith itscolumns(one row per element of the array atpath, one cell per column, required withtable, refused beside any other format); the dialog-level default and a cell's format take every format buttable. It says atextorcode-listcell has no copy control and asecretorqrcodecell keeps its own, which is whatActionAnswerTableColumnSchema.formatdescribes andActionResultDialog.tsxdraws. The card's proposed sentence was checked againstpackages/spec/src/ui/action.zod.tsand kept where it matched.execution: 'aggregate'handler that wrote some rows and refused others catches per row and resolves{ succeeded: string[], failed: [{ id, message }] }(BulkActionResult) as its whole return value; a throw is one outcome for the selection; ids outside_selectedIdsare dropped, a duplicate counts once, an id in both lists is failed, a selected id in neither is not confirmed; a value with neither member keeps the whole-selection report and one with either member that does not parse is unreadable. Source:BulkActionResultSchemainpackages/spec/src/ui/bulk-action.zod.tsandreadAggregateResultinui/packages/plugin-grid/src/hooks/useBulkExecutor.ts.preflightbullet no longer spells the{ path, label?, format? }row that theresultDialogbullet right below it now states (28 bytes).scripts/check-skills-token-ratchet.mjs: therules/actions.mdrow only, 3333 to 3711 with its note (see Token budget)..changeset/34648-skills-result-dialog-bulk-result.md:@objectstack/skillspatch.Net added lines for the whole PR, changeset included: 43 (
git diff --numstat origin/main...HEAD: 45 added, 2 deleted), under the order's 45.Evals
Two cases appended to
skills/objectstack-ui/evals/views-apps-actions-pages.json:must_contain:resultDialog,format: 'table',columns,rejected,reason.must_not_contain:columns: ['email'(column names in place of column objects) anddisplay: 'table'(a refused alias).must_contain:_selectedIds,succeeded,failed,message,catch.must_not_contain:succeeded: ids.length(a count where a list is required).Neither refusal list holds a bare identifier a correct answer may mention. The cases were not run against a model in this PR.
Token budget
skills/objectstack-ui/rules/actions.mdhad zero headroom on main: 13330 bytes, 3333 tokens, ceiling 3333. Raise path: the standing maintainer ruling of 2026-10-27, 「A:先削重复,余额按实测提高」, ruling record 6513306068 (letter B).{ path, label?, format? }row on thepreflightbullet, which theresultDialogbullet right below it now spells.ceil(14843 / 4) == 3711.node scripts/check-skills-token-ratchet.mjsat head 060842a: exit 0, "skills/objectstack-ui/rules/actions.md is 3711 tokens (ceiling 3711; headroom 0)".Verification
Two readings for a
skills/**diff:rules/actions.mdSKILL.mdfiles summedSKILL.mdtouched)Token convention is the gate's own,
ceil(utf8 bytes / 4).Local gate readings
check-skills-token-ratchet("59 authored bundle file(s) within their ceilings"), its--self-test("104 cases pass"),check-ratchet-remedy-authority,check-nul-bytes.check:skill-identifier-liveness,check:skill-links,check:skill-compatibility,check:skill-frame-sync,check:nul-bytes,check:pm-skill-id-lint,check:doc-authoring,check-empty-changeset --base origin/main,check-adr-0087-registration --base origin/main,check-changeset-no-major --base origin/main.node scripts/pm/overlap-check.mjs --branch=claude/area-a4A-34648: "VERDICT clean exit 0".loadSkillEvalCatalog(23 cases in the file), and each new case's expected output passes its own assertions by substring.check:published-filesand the rest) is declared to CI.Two-minute check: open
skills/objectstack-ui/rules/actions.md, read theresultDialogbullet underpreflightand the last bullet of the same list, and compare with the.describestrings ofActionAnswerTableColumnSchemaandBulkActionResultSchema.Read first, by risk: (1) the
resultDialogbullet's copy-control sentence; (2) the aggregate bullet's counting rules; (3) the twomust_not_containlists.Acceptance notes
list_toolbarrow and its Add to Campaign example read the selection asinput.selectedIds, whilepackages/spec/src/ui/action-params.zod.tsnames_selectedIdsas the built-in key and callsselectedIdsits near-miss spelling. Not reproduced at a public door in this PR.🤖 Generated with Claude Code