Skip to content

Commit 7c661de

Browse files
committed
docs(spec,skills): scope the TSDoc comment to HotCRM's account and trim the changeset claim
The ObjectExtensionSchema example extends `contact`, so the comment on why `industry` takes no option patch now names the case it holds for (a picklist-bound `industry`, as on HotCRM's crm_account). The skills changeset no longer says the skill text names `industry` as picklist-bound. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAmsHMwmra6cg78RoEp
1 parent 22db7ae commit 7c661de

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.changeset/30944-skills-field-patches-example-hotcrm.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ docs(skills): the `fieldPatches` example relabels HotCRM's `industry` and patche
77
Clause-②: no
88
Metadata-protocol: none
99

10-
The `objectstack-data` skill's one `fieldPatches` example patched an option of `crm_account.industry`. HotCRM binds that field to the shared `industry` picklist, so a verbatim copy was refused at install and by `os validate` (`picklist-option`). The example now sets `industry`'s `label` only and patches an option of `type`, which declares its own `options` (`customer` → `Client`); the sentence before it names `industry` as the picklist-bound field whose options no patch reaches. The added bytes are paid by deleting a restatement in the same file: the `.custom` paragraph's closing clause "a base field changes only through `fieldPatches`", whose facts the relabel paragraph above it already states. No token ceiling moves. No schema, key or behaviour changes.
10+
The `objectstack-data` skill's one `fieldPatches` example patched an option of `crm_account.industry`. HotCRM binds that field to the shared `industry` picklist, so a verbatim copy was refused at install and by `os validate` (`picklist-option`). The example now sets `industry`'s `label` only and patches an option of `type`, which declares its own `options` (`customer` → `Client`). The added bytes are paid by deleting a restatement in the same file: the `.custom` paragraph's closing clause "a base field changes only through `fieldPatches`", whose facts the relabel paragraph above it already states. No token ceiling moves. No schema, key or behaviour changes.

‎packages/spec/src/data/object.zod.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5130,7 +5130,8 @@ function fieldPatchesDescription(): string {
51305130
* fields: { sales_stage: Field.select([...]) },
51315131
* // A base field's display properties only (ADR-0146 D10), applied by the
51325132
* // registry merge (`mergeObjectDefinitions`) — see `fieldPatches`.
5133-
* // `industry` is picklist-bound, so only its label; `type` declares its own options.
5133+
* // Where `industry` is picklist-bound, as on HotCRM's `crm_account`, only its
5134+
* // label is patchable; an option patch goes on a field declaring its own options.
51345135
* fieldPatches: { industry: { label: 'Sector' }, type: { options: { customer: { label: 'Client' } } } },
51355136
* }]
51365137
* ```

0 commit comments

Comments
 (0)