Skip to content

Commit 22db7ae

Browse files
committed
docs(skills): pay the fieldPatches example's bytes by deleting a restatement
The .custom paragraph's closing clause restated the relabel paragraph's lead (a base field changes only through fieldPatches), so it goes, and the example's longer options patch fits under the unchanged token ceiling. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAmsHMwmra6cg78RoEp
1 parent 8920b06 commit 22db7ae

2 files changed

Lines changed: 3 additions & 3 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. 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 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.

‎skills/objectstack-data/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ owner's upgrades. A patch carries display keys only
360360
values and rules stay the owner's. A key the tenant edited keeps the tenant's
361361
text; between two extensions the higher `priority` wins. A patch naming a field
362362
or option value the target lacks is refused at install and by `os validate`, and
363-
a `picklist`-bound field's options (HotCRM's `industry`) are never patchable. Example:
363+
a `picklist`-bound field's options are never patchable. Example:
364364
`defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector' }, type: { options: { customer: { label: 'Client' } } } } })`.
365365

366366
**An object an installed package ships** (ADR-0146 D10) is extended from the
@@ -369,7 +369,7 @@ base's paired `.custom` package (`hotcrm.custom`; **objectstack-platform**
369369
declaration. Every field the pair adds ends in `__c` (`region__c`). The suffix is
370370
reserved to the pair, so a `__c` field in any other package, or an unsuffixed
371371
field in a `.custom` extension, is refused at save, publish and install and by
372-
`os validate` / `os build`; a base field changes only through `fieldPatches`.
372+
`os validate` / `os build`.
373373
Studio's **Add field** on a base object writes the same extension, as an
374374
`object_extension` item of the pair.
375375

0 commit comments

Comments
 (0)