Skip to content

Commit 850d240

Browse files
fix(skills): a unit-of-measure request reaches the unit rules, and five eval cases stop failing a right answer (#39326)
<!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgNxfAEdS4c4yffrJ1xgKCUx)_ Fixes #38939 Fixes #38941 Claim for this branch: #38939 comment 7377768555, #38941 comment 7377782739 Clause-②: no Metadata-protocol: none repo:objectstack@os-bill · os-bill · session_01Utp6CarceUVwpaqnqVhFVn ## 维护者速读 - 用户能看到什么变化:让 AI 给产品加「计量单位」字段时,它现在会按平台的单位规则来写,不再写成普通文本;另有五道技能评测题换了判分条件。 - 为什么做:属于技能发布前评测的收尾,替做评测的人解决「答对被判错」和「单位字段答错」两件事。 - 出错会怎样:最坏是这五道题判分偏松,或数据技能入口多出一句提示;不影响任何运行中的应用,撤回本改动即可复原。 - 要你做什么:这是对外发布的技能包,需要你审阅后批准。 ## What changes **The unit-of-measure routing (the first card).** `skills/objectstack-data/SKILL.md`, one row of the "Where to go" table: "units of measure (`unitConfig`)" becomes "a unit of measure or `uom` (`unitConfig`, never free text)". With the old phrase, a request to add a `uom` text field was answered as a plain text field in 2 of 3 turns, and neither of those turns opened `rules/field-types.md`. The row now carries the request's own word and says the plain answer is wrong. No other skill text changes. **Five eval cases (the second card).** Only `assertions` and, in three cases, `expected_output` change. Every prompt is byte-identical. | case | before | after | the right answer that failed | the wrong shape that still fails | |:--|:--|:--|:--|:--| | data `objects-fields-relationships` 13 | forbids `ownership: 'user'` written as a key (four endings) | dropped; forbids a field keyed `assignee` or `assigned_to`, helper form (`assignee: Field.`) or literal form (`assignee: {`) | an object that writes the default out with a comment, "负责人 = owner_id" | an owner lookup (`reference: 'sys_user'`, `reference: 'user'`) or a hand-added assignee field | | automation `integrations-declared` 1 | requires `defineConnector` and `type: 'api'` | any of `defineConnector`, `declared connector`; any of `type: 'api'`, `` `api` flow `` | a prose plan: "one declared connector", "an `api` flow (recipe 4)" | a plan with no declared connector or no callback flow meets no member; the plugin and inline-secret shapes are still forbidden | | ui `analytics-inline-vs-dataset` 2 | forbids `dateGranularity`; a `note` calls it a review cue | forbid and note dropped; requires any of `stored field`, `stored rolling`, `rollup field`, `app code` | one that escalates to a stored rolling field and buckets that field by day | a date bucket passed off as the window, "the revenue stored on each order" included, meets no member | | ui `views-apps-actions-pages` 6 | requires `fieldGroups`, `master_detail` | any of `fieldGroups`, `field group`; any of `master_detail`, `master-detail`, `Master-Detail`, `relatedList: '`; forbids `formType="wizard"`, `formType='wizard'`, `defineForm({` | one that names the field group with `relatedList: 'invoice_line'` and says "master-detail child" (the bundle never writes `master_detail`) | the React form with `formType` set to wizard, or a `defineForm({` item, written as the build or as an option; a screen flow. Not caught: a hand-rolled stepper page. `type: 'wizard'` is not forbidden, because right answers write it while warning that a wizard form draws no lines | | ui `views-apps-actions-pages` 23 | requires `perRecord`, `'selection'`, `ctx.record`; forbids `succeeded:`, `{ succeeded`, `{ failed` | any of `perRecord`, `succeeded: [`, `succeeded, failed`, `{ succeeded`; any of `ctx.record`, `id, message`, `message: e`; forbids `id, error`, `succeeded.push({`, `throw new Error(JSON`, `resultDialog: {`, `bulkActions: [` | the aggregate body that catches each row and resolves a `BulkActionResult`, which `rules/actions.md` teaches and `packages/spec/src/ui/bulk-action.zod.ts` defines | counts with no well-formed `failed` list, one list, a JSON rethrow, `{ id, error }`, a reason under another key, objects pushed into `succeeded`, `perRecord` in prose with no handed row, neither list. Not caught: objects mapped (not pushed) into `succeeded`, or a count there, when the `failed` list is well formed. Not expressible in an all-of-any-of grammar: the per-record branch no longer requires `'selection'`, and an answer mixing one branch's token with the other's can pass | Case 13 is settled in the case; the data `SKILL.md` owner row is unchanged. Case 23 is settled on the case side (agreed with the seat, 2026-12-03 12:12Z; no ruling record): `rules/actions.md` is not touched. Its `expected_output` now names both forms. **Token ratchet.** `scripts/check-skills-token-ratchet.mjs`, the `skills/objectstack-data/SKILL.md` row: 2233 to 2240, pinned at the measurement. Raise path: the standing note 7216253348 on the ratchet card for a remainder of at most 10 tokens (「后续遇到这种问题,能适当放宽token 的限制」). The entry stays inside its 9 KB budget. **Skill size readings.** | | before (`f927afa48a`) | after | |:--|:--|:--| | `skills/objectstack-data/SKILL.md` | 165 lines, 8958 bytes, 2233 tokens | 165 lines, 8985 bytes, 2240 tokens | | every `SKILL.md` under `skills/` | 2122 lines, 119434 bytes | 2122 lines, 119461 bytes | ## Tests **Re-run with the skill.** The with-skill arm of `skill-evals`, rebuilt by hand from `arms.ts` and `grade.ts` (same argv, same bundle-only directory without `evals/`, same environment removals, same literal grader), sonnet at medium, 3 reps per case, Claude Code 2.1.335. The runner itself was not used: it needs an install and a build this container did not have. | case | on main `f927afa48a` | on this branch (head `716470aa`; objects 22 and integrations 1 at `19eb7732`, their text unchanged since) | |:--|:--|:--| | data objects 22 (`uom`) | 1/3 | 3/3 (and 6/6 in a second run of the same text) | | data objects 13 | 1/3 | 3/3 | | automation integrations 1 | 2/3 | 3/3 | | ui analytics 2 | 0/3 | 3/3 | | ui views 6 | 0/3 | 3/3 | | ui views 23 | 0/3 | 0/3 | Recorded answers regraded against the head's assertions: the main-side round reads 3/3 for objects 13, integrations 1 and analytics 2, 1/3 for views 6 and 0/3 for views 23; the first branch round reads 3/3, 3/3, 3/3, 2/3 and 1/3. Objects 22 does not move on a regrade (1/3 on main): its move is the routing row. Views 23 stays red at this head, and each red is a wrong answer, not a false red: all three wrote a `failed` entry the contract does not parse (`{ id, error }`, `{ id, reason }`) or pushed objects into `succeeded`. The case will stay mostly red until the skill teaches the entry shape (Acceptance notes). **Graded probes, no model.** Each case's reference answer passes its new assertions (5 of 5). Seven of the eight case 23 probes of contract review 7378829491 fail at this head; the eighth, objects mapped into `succeeded` beside a well-formed `failed` list, still passes (delta review 7379033136, N1), as do a count in `succeeded` beside a well-formed `failed` list and a rethrow that attaches the lists with `Object.assign`. Its probes also fail for analytics 2 (the bucket with "stored on each order"), case 13 (`assignee: { type: 'user' }`) and views 6 (`formType='wizard'`). Three right case 23 answers pass: the aggregate with `{ id, message: e.message }`, the same answer adding the warning "the key is message, not error", and the per-record form. **Gates run locally:** `node scripts/check-skills-token-ratchet.mjs` (61 files within their ceilings), `node scripts/check-skill-links.mjs` (283 links resolve), `node scripts/check-skill-identifier-liveness.mjs` (OK). The four eval files parse as JSON. Every other family is left to CI. ## Acceptance notes - **views 23, a skill-text gap.** `skills/objectstack-ui/rules/actions.md` names `BulkActionResult` but not its entry shape. Seven of nine aggregate answers across the three rounds wrote a `failed` entry keyed `error` or `reason`, or objects in `succeeded`; the contract is id strings in `succeeded` and `{ id, message }` in `failed`, and a value that does not parse is reported as unreadable. The other two left the entries open and said to read the type; one of those passes at this head and one does not. The bullet is the one the open selection-bar card also edits, so it is not changed here. Class: skill text. Reach: any agent following the ui skill for a bulk action with per-row outcomes. - **views 6, a skill-text gap.** For a request that says "stepped", three of nine answers offered a `kind: 'react'` wizard page beside or above the field-group form. The skill says the field group comes "before any custom page" but not that steps are the form's sections. Class: skill text. Reach: any agent asked for a stepped parent and line-item form. - The `read` count in my records undercounts file reads in some turns (a passing objects 22 answer quotes `rules/field-types.md` while the record lists no read). Verdicts and answers are unaffected; I make no claim here about which files a turn opened. ## Verification - Read first: the "Where to go" row in `skills/objectstack-data/SKILL.md` (the only shipped skill text that moves), then case 23 in `skills/objectstack-ui/evals/views-apps-actions-pages.json` (the one case whose reference answer widens), then the ratchet row. - Two minutes: `node scripts/check-skills-token-ratchet.mjs` prints "61 authored bundle file(s) within their ceilings". <!-- signed: repo:objectstack@os-bill · os-bill · session_01Utp6CarceUVwpaqnqVhFVn --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 68e76fa commit 850d240

7 files changed

Lines changed: 49 additions & 18 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
fix(skills): a unit-of-measure field request reaches the unit rules, and five eval cases stop failing a right answer
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/SKILL.md`: the Field Types row of the routing table now reads "a unit of measure or `uom` (`unitConfig`, never free text)". With the earlier wording, a request for a `uom` text field was answered as a plain text field without opening `rules/field-types.md`, where `unitConfig`, `unitMode` and the UN/ECE codes are taught. The file grows by 27 bytes.
11+
12+
Five eval cases change their `assertions` (and three their `expected_output`); no skill text of those bundles changes:
13+
14+
- `objectstack-data` `objects-fields-relationships` 13 no longer forbids `ownership: 'user'` written on the object: it is the default, and writing it out is the same answer. A field keyed `assignee` or `assigned_to`, in the helper or the literal form, now fails beside the owner lookup.
15+
- `objectstack-automation` `integrations-declared` 1 accepts `declared connector` for `defineConnector` and an `` `api` flow `` for `type: 'api'`.
16+
- `objectstack-ui` `analytics-inline-vs-dataset` 2 no longer forbids `dateGranularity`, which a right answer writes on the dataset over the stored rolling field; it requires the escalation instead (`stored field`, `stored rolling`, `rollup field` or `app code`).
17+
- `objectstack-ui` `views-apps-actions-pages` 6 accepts `master-detail` or the named `relatedList` for `master_detail` and `field group` for `fieldGroups`, and fails an answer that writes the React form with `formType` set to `wizard`, or a `defineForm({` item.
18+
- `objectstack-ui` `views-apps-actions-pages` 23 accepts both forms `rules/actions.md` teaches: the per-record action, or the aggregate body that resolves a `BulkActionResult`. It fails an aggregate answer that pairs `id` with `error`, pushes objects into `succeeded`, rethrows the lists as JSON, or returns neither list in a code shape. The grader matches literals, so other malformed entries are not caught.

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,20 @@ export const CEILINGS = new Map([
10871087
// pinned. Raise path: ruling record 6513306068, letter B; the standing ruling (2026-10-27,
10881088
// verbatim and untranslated): 「A:先削重复,余额按实测提高」.
10891089
// ceil(($(wc -c < skills/objectstack-data/SKILL.md) - 27) / 4) == ceil(8931 / 4)
1090-
['skills/objectstack-data/SKILL.md', 2233],
1090+
// 2233 -> 2240 (#38939, the measurement round): the Field Types row's unit phrase reads "a
1091+
// unit of measure or `uom` (`unitConfig`, never free text)" in place of "units of measure
1092+
// (`unitConfig`)". With the old phrase a request for a `uom` text field was answered as plain
1093+
// text without opening `rules/field-types.md` (eval objects 22: 1 of 3 with the skill); the
1094+
// row now says the request's own word and that the plain answer is wrong (6 of 6). No
1095+
// restatement is left in the entry to pay it down: the two pointer lines under `### Object
1096+
// Definition` and `### Field Type Selection` are what a reader served one section by its
1097+
// heading follows. 8958 -> 8985 bytes (8931 -> 8958 priced), +27, -> 2240 tokens, zero
1098+
// headroom, the row moves +7, pinned AT the measurement; the entry stays inside the 9 KB
1099+
// budget. Raise path, for a remainder of at most 10 tokens: the standing note 7216253348 on
1100+
// the ratchet card, the maintainer's words of 2026-11-27 05:20Z, verbatim and untranslated:
1101+
// 「后续遇到这种问题,能适当放宽token 的限制」.
1102+
// ceil(($(wc -c < skills/objectstack-data/SKILL.md) - 27) / 4) == ceil(8958 / 4)
1103+
['skills/objectstack-data/SKILL.md', 2240],
10911104
// 5997 -> 6008 (the formula skills follow-ups of PRs #34443 and #34447): the
10921105
// `label(record.f)` row teaches a multi-select (`multiple: true`) reading each
10931106
// selected label in stored order, joined with `, `, and the built-ins line

‎skills/objectstack-automation/evals/integrations-declared.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"expected_output": "A declarative instance inside the app, not a platform plugin and not a new connector package: `defineConnector` with `provider: 'openapi'`, whose `providerConfig.spec` is a packaged OpenAPI 3.x document converted offline from the Swagger 2.0 document and trimmed to the three operations (create envelope, get envelope, list status changes) (or `providerConfig.include` names those three operation keys, the `mcp` provider's allowlist meaning, where a non-array or unknown entry is fatal). Fields on `contract` (`envelope_id`, `signature_status`). Flows dispatch `connector_action`; the callback is a `type: 'api'` flow with a start-node `secretRef`, and its `config.signature` names DocuSign Connect's own header (`signs: 'body'`, `header: 'X-DocuSign-Signature-1'`, `algorithm: 'hmac-sha256'`, `encoding: 'base64'`), so status changes arrive verified instead of polled. `auth` is `{ type: 'oauth2', grant: 'authorization_code', authorizationUrl, tokenUrl, scopes, clientId, credentialRef }`, the client secret only a `credentialRef` (no inline `clientSecret`, no short-lived token parked behind a `bearer` `credentialRef`): the built-in `openapi` provider obtains and refreshes the token per dispatch, and the instance stays degraded \"not connected\" until an administrator holding `manage_connector_connections` connects it once per organization (`POST /api/v1/automation/connectors/docusign/connection`, then the vendor's redirect to `GET …/connectors/oauth/callback`; `DELETE` revokes). `connectorConfig.input` is a value slot: the per-contract payload reads the record through a CEL envelope (`envelopeId: { dialect: 'cel', source: 'record.envelope_id' }`), judged against the action's `inputSchema` before dispatch. The answer proposes no `registerConnector` code and no plugin.",
88
"files": [],
99
"assertions": {
10-
"must_contain": ["defineConnector", "provider: 'openapi'", "credentialRef", "connector_action", "type: 'api'", "secretRef", "Swagger 2.0", "oauth2", "authorization_code"],
11-
"must_contain_any": [["/connection", "manage_connector_connections", "once per organization", "not connected"]],
10+
"must_contain": ["provider: 'openapi'", "credentialRef", "connector_action", "secretRef", "Swagger 2.0", "oauth2", "authorization_code"],
11+
"must_contain_any": [["defineConnector", "declared connector"], ["type: 'api'", "`api` flow"], ["/connection", "manage_connector_connections", "once per organization", "not connected"]],
1212
"must_not_contain": ["registerConnector(", "connector-esign", "provider: 'docusign'", "implements Plugin", "clientSecret:", "token:", "blocked on outbound OAuth"]
1313
}
1414
},

‎skills/objectstack-data/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ definition as code.
6262
| Authoring | Open first |
6363
|:--|:--|
6464
| An object's other keys, a starter object, field groups, `protection`, an extension | [examples-objects.md](./references/examples-objects.md) |
65-
| A field's type and config, a default, exchange rates (`sys_exchange_rate`), units of measure (`unitConfig`), changing a field that has data | [Field Types](./rules/field-types.md) |
65+
| A field's type and config, a default, exchange rates (`sys_exchange_rate`), a unit of measure or `uom` (`unitConfig`, never free text), changing a field that has data | [Field Types](./rules/field-types.md) |
6666
| Names; labels in the request's language | [Naming](./rules/naming.md) |
6767
| `lookup` or `master_detail`, junctions, delete behaviour, roll-ups, line items | [Relationships](./rules/relationships.md) |
6868
| Validation rules, state machines, uniqueness, conditional field rules | [Validation](./rules/validation.md) |

‎skills/objectstack-data/evals/objects-fields-relationships.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
{
227227
"id": 13,
228228
"prompt": "工单需要一个「负责人」,每个客服只能看到自己负责的工单。",
229-
"expected_output": "Adds NO owner lookup: every object already carries the platform `owner_id` (reassignable, stamped to the creator), which is what owner-scoped visibility and \"my records\" views read — a hand-added 负责人 lookup is a second owner those never see. Sets `sharingModel: 'private'` on `ticket` (owner-only by default) and leaves `ownership` at its default. A people field is added only for a role DISTINCT from the owner (a reviewer, an approver), as `type: 'user'`.",
229+
"expected_output": "Adds NO owner lookup: every object already carries the platform `owner_id` (reassignable, stamped to the creator), which is what owner-scoped visibility and \"my records\" views read — a hand-added 负责人 lookup is a second owner those never see. Sets `sharingModel: 'private'` on `ticket` (owner-only by default) and leaves `ownership` at its default (`'user'`; writing the default out is the same answer). A people field is added only for a role DISTINCT from the owner (a reviewer, an approver), as `type: 'user'`.",
230230
"files": [],
231231
"assertions": {
232232
"must_contain": [
@@ -236,10 +236,10 @@
236236
"must_not_contain": [
237237
"reference: 'sys_user'",
238238
"reference: 'user'",
239-
"ownership: 'user',",
240-
"ownership: 'user' }",
241-
"ownership: 'user'}",
242-
"ownership: 'user'\n"
239+
"assignee: Field.",
240+
"assigned_to: Field.",
241+
"assignee: {",
242+
"assigned_to: {"
243243
]
244244
}
245245
},

‎skills/objectstack-ui/evals/analytics-inline-vs-dataset.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
{
1616
"id": 2,
1717
"prompt": "Add a dashboard chart showing 30-day rolling revenue (a moving average / running total over time). Model the data need.",
18-
"expected_output": "Recognizes a rolling window as BEYOND the dataset envelope (no window/having grammar; compareTo only shifts a period/year): escalates to a stored rolling field or app code, not a Cube, and never passes off a date bucket or a plain measure as a moving window.",
19-
"note": "'dateGranularity' in must_not_contain is deliberately strict; it can flag a correct answer that merely mentions the key — a review cue, not an automatic fail.",
18+
"expected_output": "Recognizes a rolling window as BEYOND the dataset envelope (no window/having grammar; compareTo only shifts a period/year): escalates to a stored rolling field or app code, not a Cube, and never passes off a date bucket or a plain measure as a moving window. A dataset over the stored rolling field may bucket it by day (`dateGranularity`): that charts the stored value, it does not compute the window.",
2019
"files": [],
2120
"assertions": {
2221
"must_contain": ["window"],
23-
"must_not_contain": ["dateGranularity"]
22+
"must_contain_any": [["stored field", "stored rolling", "rollup field", "app code"]]
2423
}
2524
},
2625
{

‎skills/objectstack-ui/evals/views-apps-actions-pages.json‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@
5454
{
5555
"id": 6,
5656
"prompt": "Invoice entry as a stepped form — header, then line items, then review — saving the invoice and its lines together.",
57-
"expected_output": "No form view and no screen flow (nothing branches): the invoice's New form is built from the object, so header, then lines, then the rest is the order of `invoice`'s `fieldGroups`. Line items come from the DATA MODEL: a field group naming the `master_detail` child (`fieldGroups: [{ key: 'header', ... }, { key: 'lines', label: 'Lines', relatedList: 'invoice_line' }, ...]`), which draws the editable grid in the form and saves parent + children in one atomic `/api/v1/batch`; without the group the form has no lines, whatever `inlineEdit` says. The hand-over says the steps are sections of one form, not a wizard: a wizard `form` item is not loaded by New or Edit, and a form an action opens draws no line items. No custom page, and no 'Add line' button (the ghost row exists).",
57+
"expected_output": "No form view and no screen flow (nothing branches): the invoice's New form is built from the object, so header, then lines, then the rest is the order of `invoice`'s `fieldGroups`. Line items come from the DATA MODEL: a field group naming the `master_detail` child (`fieldGroups: [{ key: 'header', ... }, { key: 'lines', label: 'Lines', relatedList: 'invoice_line' }, ...]`), which draws the editable grid in the form and saves parent + children in one atomic `/api/v1/batch`; without the group the form has no lines, whatever `inlineEdit` says. The hand-over says the steps are sections of one form, not a wizard: a wizard `form` item is not loaded by New or Edit, and a form an action opens draws no line items. No custom page (an answer that writes the React wizard form, `formType` set to `wizard`, as the build or as an option beside the field group, fails the case), and no 'Add line' button (the ghost row exists).",
5858
"files": [],
5959
"assertions": {
60-
"must_contain": ["fieldGroups", "relatedList", "master_detail"],
61-
"must_not_contain": ["type: 'screen'"]
60+
"must_contain": ["relatedList"],
61+
"must_contain_any": [["fieldGroups", "field group"], ["master_detail", "master-detail", "Master-Detail", "relatedList: '"]],
62+
"must_not_contain": ["type: 'screen'", "formType=\"wizard\"", "formType='wizard'", "defineForm({"]
6263
}
6364
},
6465
{
@@ -224,11 +225,11 @@
224225
{
225226
"id": 23,
226227
"prompt": "Our `archive_tasks` script action is wired as a `bulkActionDefs` entry with `execution: 'aggregate'`. Its body loops over the selected ids and updates each task, but some tasks are locked and their update throws, so the whole run is reported as failed even though most rows were archived. Make the result dialog say which rows were archived and why each of the others was not.",
227-
"expected_output": "`archive_tasks` moves to the per-record form, the form for a body that writes each selected row: the action declares `execution: 'perRecord'` and is placed at `selection` (`'selection'` in its `locations`), the view's `bulkActionDefs` aggregate entry is removed, and the body updates only the row it is handed (`ctx.recordId` / `ctx.record`), with no loop over `input._selectedIds`. Each ticked task is then its own run: a locked task's throw fails that row alone and the result dialog lists it with its message, while every other row is archived and counted. Not a `try` / `catch` loop in the aggregate body that returns per-row lists or counts of what it wrote and what refused, not `execution: 'perRecord'` added while the `bulkActionDefs` aggregate entry stays, not a `resultDialog`, and not a rethrow carrying the rows (a rejection's body is dropped).",
228+
"expected_output": "Either form the Actions rules teach, complete. (a) `archive_tasks` moves to the per-record form, the form for a body that writes each selected row: the action declares `execution: 'perRecord'` and is placed at `selection` (`'selection'` in its `locations`), the view's `bulkActionDefs` aggregate entry is removed, and the body updates only the row it is handed (`ctx.recordId` / `ctx.record`), with no loop over `input._selectedIds`. Each ticked task is then its own run: a locked task's throw fails that row alone and the result dialog lists it with its message, while every other row is archived and counted. (b) The aggregate entry stays and its body catches each row's throw, resolving a `BulkActionResult` (`@objectstack/spec/ui`) as its whole return value: `{ succeeded: [ids], failed: [{ id, message }] }`, `succeeded` a list of id strings and each `failed` entry an `id` with its reason under `message`, which the result dialog lists per row. Not counts, one list, object entries in `succeeded` or the reason under another key such as `error` (each is reported as unreadable or keeps the one-outcome report), not `execution: 'perRecord'` added while the `bulkActionDefs` aggregate entry stays, not a `resultDialog`, and not a rethrow carrying the rows (a rejection's body is dropped).",
228229
"files": [],
229230
"assertions": {
230-
"must_contain": ["perRecord", "'selection'", "ctx.record"],
231-
"must_not_contain": ["succeeded:", "{ succeeded", "{ failed", "bulkActions: ["]
231+
"must_contain_any": [["perRecord", "succeeded: [", "succeeded, failed", "{ succeeded"], ["ctx.record", "id, message", "message: e"]],
232+
"must_not_contain": ["id, error", "succeeded.push({", "throw new Error(JSON", "resultDialog: {", "bulkActions: ["]
232233
}
233234
},
234235
{

0 commit comments

Comments
 (0)