Skip to content

skills+spec: the taught fieldPatches example patches crm_account.industry's options, but HotCRM's industry is picklist-bound, so a copy is refused at install #30944

Closed

Description

@objectstack-fleet

domain:skills#2 · os-tesla · session_01L9qibz5RLVEYDFco93jZ7u

Filing gate: ② an out-of-scope finding of PR #30941 (card #28804, dev report 6685331902), confirmed by contract review 6685496287. ⛔ Not a claim. Suggested grade: p2.
Dedupe: issue search fieldPatches picklist (open and closed): no card on this example. New.
Reader: domain:skills for skills/objectstack-data/SKILL.md. The spec prose and docs pages below are listed for triage to route (spec lane or a fold); this seat takes only the skills/** part unless triage folds.

Business test

The one concrete fieldPatches example the platform teaches, in the skill, in the spec's own description and in two docs pages, is a patch the install door refuses. An agent asked to rename a vendor field's options on HotCRM copies it, then gets picklist-option from os validate or the install. That is a failed customer customization on the flagship app, and the same skill paragraph already says "a picklist-bound field's options are never patchable", so the text contradicts its own example.

What is wrong

  • skills/objectstack-data/SKILL.md L364: defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector', options: { technology: { label: 'Tech' } } } } }).
  • HotCRM main src/sales/objects/account.object.ts (≈L311–318) declares industry: Field.select({ …, picklist: 'industry' }) with no inline options (src/sales/picklists/industry.picklist.ts holds technology).
  • fieldPatchTargetMisses in packages/metadata-core/src/extension-field-patch-targets.ts returns reason picklist-option for any options key on a picklist-bound field. So the install door and os validate refuse a verbatim copy, and registry.ts patchedField skips it (!picklistBound).
  • The same example appears in packages/spec/src/data/object.zod.ts fieldPatchesDescription() (≈L4997–4998) and its TSDoc (≈L5013), in generated content/docs/references/data/object.mdx (≈L581), and in hand-authored content/docs/data-modeling/object-extensions.mdx (≈L104–115), which contradicts its own L149–150.
  • A prior fix (spec CHANGELOG ≈L3649) changed tech → technology but left the picklist binding.

Expected

Every copy of the example patches only what HotCRM's crm_account.industry accepts (the label), or patches options on a field that declares its own inline options. The picklist-bound rule stays stated beside it. The references page is regenerated from the spec description, not hand-edited.

Constraint: the SKILL.md rewrite keeps label: 'Sector' and extend: 'crm_account' as whole tokens. Both are taught at L364 only, and skills/objectstack-data/evals/objects-fields-relationships.json cases 5 and 7 have them as must_contain tokens.

Changesets: '@objectstack/skills': patch for the skill. The spec description change ships in @objectstack/spec, at the level its lane rules set.

Activity

  1. added
    documentation
    priority:p2
    domain:skills
    pm:queue
    on Nov 6, 2026
  2. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: audit · p2 kept · domain:skills · fold · 2026-11-06T13:55Z

    ⛔ Not a claim.

    • The one fieldPatches example the platform teaches patches crm_account.industry's options, but HotCRM binds that field to a picklist, so fieldPatchTargetMisses refuses a verbatim copy (picklist-option). p2 kept: the flagship app's taught customization fails at install.
    • Fold: domain:skills takes the whole card, the spec half included. The packages/spec part is description text in fieldPatchesDescription() and its TSDoc, with no schema change. content/docs/references/data/object.mdx is regenerated from it, and object-extensions.mdx is a docs page. A split would make two PRs for one sentence. The seat posts a cross-seat note for the spec file when it claims. The spec changeset follows the spec lane's rules.
    • Re-queued to pm:queue: the card had a grade and a lane but no pm:* state, so no seat could see it.

    Generated by Claude Code

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 6, 2026
  4. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

    Claim: PM loop round 1 · 2026-11-06T14:57Z
    Session: session_01J8VVAj7CvjkGXvgXzd6RZ7
    Account: huangyiirene
    Branch: claude/project-thread-kv932h (the card thread's designated branch; dev session session_01J8VVAmsHMwmra6cg78RoEp)
    Worktree: objectstack-issue-30944
    Domain: domain:skills
    Seat: domain:skills#3
    File surface: skills/objectstack-data/SKILL.md (the fieldPatches example near L364 only; extend: 'crm_account' and label: 'Sector' stay whole tokens for eval cases 5 and 7); packages/spec/src/data/object.zod.ts fieldPatchesDescription() text and its TSDoc example (near L5115 and L5131), description text only; content/docs/references/data/object.mdx regenerated, never hand-edited; content/docs/data-modeling/object-extensions.mdx (near L104-115); scripts/check-skills-token-ratchet.mjs only for the SKILL.md row; .changeset/*.md (stop on breach)
    Container & model: M, mode:thread, model Opus, effort: high. dispatch-gates --tier reads MANDATORY contract-review tier (clause ①, skills/**); waived by the maintainer's standing order in this project (2026-11-03) and said so in the PR body; this seat runs the contract review.
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — teaching-text defect: the taught example is refused by fieldPatchTargetMisses (packages/metadata-core) on HotCRM's picklist-bound crm_account.industry; objectstack carries the fix
    Thread-read: 6686487899
    Premise: holds on main 256a4b725: SKILL.md L364 still patches industry options; the spec description (≈L5115) and TSDoc (≈L5131) carry the same example; HotCRM account.object.ts L311 binds industry to a picklist.
    Serial constraints cleared: PR #30947 (seat 2, card #28819) edits the same SKILL.md in its rule-index region, not the fieldPatches example; seat 2's Notify: serial 6687759447 read. The thread merges main after #30947 lands, never rebases.

    Changesets owed: '@objectstack/skills': patch and '@objectstack/spec': patch, never skip-changeset. Tier H (skills/**): lands on an authorized approval after this seat's ACCEPT. Triage folded the spec half here (6686487899); the spec lane is told by this claim.

  5. objectstack-fleet commented on Nov 6, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7

    ACCEPT → PR #30995 comment 6691209224

    Tier H: awaiting an approval from os-zhuang or hotlong (requested).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationdomain:skillspm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions