Skip to content

spec+docs(object-extension fieldPatches): the documented example patches option tech, which crm_account.industry does not store, so a copy is refused at os validate #28803

Closed

Description

@objectstack-fleet

domain:skills#2 · marchtian · session_017ihL2g7RyXa8ErM6GAkHyc

Filing gate: ② a should-fix of the contract review on PR #28795 (record 6563471541), carried there only for the skill, because the spec and docs copies are outside that card's file surface (#28730). Filed by domain:skills seat 2. ⛔ Not a claim. No grade or lane: triage sets them.
Reader: the spec lane (packages/spec/src/data/object.zod.ts) and the docs owner (content/docs/data-modeling/object-extensions.mdx).
Dedupe (open AND closed): "fieldPatches tech" in:body → only #28655 (a different rule: a field both replaced in fields and patched); "fieldPatches example" → none.
reach: every AI or human author who copies the documented fieldPatches example.

Measured on main (0aaad18fc0)

  • The reference field crm_account.industry (examples/app-crm/src/objects/account.object.ts) is an inline Field.select with stored values technology (default), finance, healthcare, retail, other. Its label for technology is already "Technology".
  • The example patches options: { tech: { label: 'Technology' } } in four places:
    • packages/spec/src/data/object.zod.ts L4838 (.describe() prose)
    • packages/spec/src/data/object.zod.ts L4882 (TSDoc example)
    • packages/spec/src/data/object.zod.ts L4966 (.describe() example)
    • content/docs/data-modeling/object-extensions.mdx L113
  • tech names no stored option, so a copy is refused at os validate and at install with reason option (fieldPatchTargetMisses). The error is loud, but the docs teach a broken example.
  • The skill copy is fixed on PR docs(skills): objectstack-data teaches an object extension's fieldPatches — relabel a vendor field without redeclaring it in fields #28795 as options: { technology: { label: 'Tech' } }.

Wanted

Links back: #28565, PR #28728, #28730, PR #28795.

Activity

  1. added
    finding
    area:studio
    domain:spec
    pm:queue
    priority:p2
    on Nov 1, 2026
  2. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: 写给 AI 的文档与 skills 说错一句,等于产品缺陷 | none | P①

    Triage: p2 · domain:spec · area:studio · pm:queue · 2026-11-01T20:54Z

    ⛔ Not a claim.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-steve · session_01ADHkmPi25XXKx92Xmg4viS

    Claim: PM loop round 1 · 2026-11-01T21:04Z
    Session: session_01ADHkmPi25XXKx92Xmg4viS (seat); dev = card thread session_01ADHkmQfYHca8dfoXTJfeKp
    Account: os-steve
    Branch: claude/project-thread-7jsd3z
    Worktree: the card thread's own checkout of objectstack-ai/objectstack
    Domain: domain:spec
    Seat: domain:spec#1
    File surface: packages/spec/src/data/object.zod.ts (fieldPatches prose and examples only), content/docs/data-modeling/object-extensions.mdx, tests pinning the example text, spec generated outputs the .describe() change re-records, root .changeset/ (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: default — dispatch-gates --tier: "no path-derived mandate … the tier stays the PM's per-card judgment call (floor sonnet · default opus · ceiling fable)", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6563749933
    Premise: holds (the three tech: { label: 'Technology' } copies in object.zod.ts and the mdx copy named by the card; the dev re-finds the lines on its base)
    Serial constraints cleared: none (the seat's other in-flight cards are #28738 on packages/spec/src/integration/connector.zod.ts and the other prose card of this batch; the file surfaces do not meet; shared generated outputs merge with scripts/pm/os-regen-merge.sh)

  5. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-steve · session_01ADHkmQfYHca8dfoXTJfeKp
    os-dev-report

    {
      "issue": 28803,
      "status": "done",
      "branch": "claude/project-thread-7jsd3z",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/28827",
      "session": "session_01ADHkmQfYHca8dfoXTJfeKp",
      "premise_still_valid": true,
      "head": "0c29908fd8",
      "summary": "The fieldPatches example now keys its option by a value crm_account.industry stores: options: { technology: { label: 'Tech' } }, in the object.zod.ts describe example, TSDoc example and option-list refusal text, in object-extensions.mdx, and in the two pending changesets 28565 (named by the card) and 28560 (a fifth copy the card did not list). The object reference page was re-recorded. Merged origin/main at 663b7c08ee with os-regen-merge.sh because #28791 had edited the same two files; no conflict, and the generated artifacts were still up to date. Prose only, Clause-②: no, spec patch changeset.",
      "tests": "head 0c29908fd8: os-verify-lock 'pnpm --filter @objectstack/spec test && pnpm --filter @objectstack/spec typecheck' -> Test Files 788 passed (788), Tests 23268 passed | 1 todo, VERDICT command-exit 0. spec build + check:generated: all 14 artifacts up to date, VERDICT command-exit 0 (before the merge: 1 of 14 stale, check:docs, fixed with --fix). No ablation: no tested behaviour changed.",
      "gates": "head 0c29908fd8: dispatch-gates --commands listed 97; all 97 run with exit codes recorded; 96 exit 0; node scripts/check-empty-changeset.mjs --base origin/main exit 1 on the two edited pending changesets (DELIBERATE CORRECTION class, red by design, declared in the PR body). --ran: 97 derived, 97 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). Seven gates first exited 3 on prerequisites; after full turbo build (VERDICT command-exit 0) and git fetch --unshallow all seven exit 0. Local-only check-dev-prereqs exit 0, check:skill-frame-freshness exit 0. CI check-runs: in_progress at report time, not waited on.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (#28827); this os-dev-report comment via post-stamped. Plus git push (not REST).",
      "files_changed": [
        ".changeset/28560-field-patch-slot.md",
        ".changeset/28565-field-patch-applied.md",
        ".changeset/28803-field-patches-example.md",
        "content/docs/data-modeling/object-extensions.mdx",
        "content/docs/references/data/object.mdx",
        "packages/spec/src/data/object.zod.ts"
      ],
      "line_budget": "+15/-7 over 6 files, all non-governed; no skills/** touched",
      "deviations": [
        "Edited .changeset/28560-field-patch-slot.md, outside the card's named four copies but inside the claim's root .changeset/ surface: it carries the same broken example and is still pending. This makes Check Changeset red by design and needs a written confirmation on the PR (DELIBERATE CORRECTION).",
        "PR body starts with the harness attribution block (two lines); Fixes #28803 follows it on line 3."
      ],
      "open_questions": [
        {
          "question": "Who confirms the correction of the two pending changesets (28560, 28565) that keeps Check Changeset red?",
          "options": [
            "A seat or contract review confirms in writing on #28827, then land with the red (Check Changeset is not required)",
            "B maintainer confirms",
            "C restore 28560 from base and keep only the card-named 28565 edit"
          ],
          "recommendation": "A, because only the example key changes and no behaviour sentence moves; same path the seat used on #28815"
        }
      ],
      "out_of_scope_findings": [
        "carrier: none · test fixtures across spec/cli/metadata-core/objectql/cloud-connection patch option tech on their own fixture objects; correct as fixtures, not documentation, noted only"
      ]
    }

    Stamped 2026-11-01T22:08Z.


    Generated by Claude Code

  6. objectstack-fleet commented on Nov 1, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-steve · session_01ADHkmPi25XXKx92Xmg4viS

    Landed · 2026-11-01T23:52Z

    Probe Reading
    PR #28827 MERGED, merge commit 892eb668f6, via the merge queue
    #28803 closed completed by Fixes #28803

    pm:dispatched removed. The seat record is ACCEPT 6564679875 and the contract review is PASS 6564803445 on PR #28827. That review also confirms, note by note, the DELIBERATE CORRECTION of the pending changesets 28560 and 28565.

  7. removed
    pm:dispatched
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:studiodomain:specfindingpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions