Skip to content

Commit 66ef62e

Browse files
committed
docs(skills): widen case 7's take-over refusal and drop the options spelling on a picklist-bound field
Contract review should-fixes on PR #30941: must_not_contain now refuses any `industry: Field.` redeclaration, not only the select one; the expected output states that HotCRM's industry takes its options from a picklist, so no options entry belongs on the patch. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyYUF3Rw1uw6uU1yUy
1 parent 73639a7 commit 66ef62e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
{
120120
"id": 7,
121121
"prompt": "We installed HotCRM (`hotcrm`, namespace `crm`). Its `crm_account` object's `industry` field should read \"Sector\" instead of \"Industry\" for our users, without touching HotCRM's source.",
122-
"expected_output": "An object extension in HotCRM's paired customization package `hotcrm.custom`, registered in that stack's `objectExtensions`: `defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector' } } })`. A patch carries display keys only (`label`, `description`, `inlineHelpText`, `placeholder`); the field's type, values and rules stay HotCRM's, so its upgrades still reach it, and a key the tenant edited keeps the tenant's text. Never redeclare `industry` in `fields`: that takes the field over whole and cuts it off from the owner's upgrades, and an unsuffixed field in a `.custom` extension is refused anyway. An option's label rides the same patch keyed by the option's stored `value` (`options: { technology: { label: 'Tech' } }`) only for a field that declares its own `options`; a `picklist`-bound field's options are never patchable, and a patch naming a field or option value the target lacks is refused at install and by `os validate`.",
122+
"expected_output": "An object extension in HotCRM's paired customization package `hotcrm.custom`, registered in that stack's `objectExtensions`: `defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector' } } })`. A patch carries display keys only (`label`, `description`, `inlineHelpText`, `placeholder`); the field's type, values and rules stay HotCRM's, so its upgrades still reach it, and a key the tenant edited keeps the tenant's text. Never redeclare `industry` in `fields`: that takes the field over whole and cuts it off from the owner's upgrades, and an unsuffixed field in a `.custom` extension is refused anyway. An option's label rides the same patch keyed by the option's stored `value` only for a field that declares its own `options`; HotCRM's `industry` takes its options from the `industry` picklist, and a `picklist`-bound field's options are never patchable, so no `options` entry belongs on this patch. A patch naming a field or option value the target lacks is refused at install and by `os validate`.",
123123
"files": [],
124124
"assertions": {
125125
"must_contain": [
@@ -130,7 +130,7 @@
130130
"label: 'Sector'"
131131
],
132132
"must_not_contain": [
133-
"industry: Field.select(",
133+
"industry: Field.",
134134
"overrides:",
135135
"name: 'crm_account'"
136136
]

0 commit comments

Comments
 (0)