Skip to content

AI 搭建新增的「负责人」字段与系统字段 owner_id 同名,表格出现两列「负责人」、看板卡片重复显示 #33506

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_0b694aec78a6416c9b4b75ecd4ac7112

Filing gate: ① 用户可见的体验缺陷,reach: 界面实测一次(staging 上 2026-11-14 刚搭的应用)。

来源

2026-11-15 staging 浏览器全量测试(cloud 部署 c4153027,objectstack pin 181ad7d4),环境 os-6hf1jq 的「工单管理」应用 app.e9gv,安装时间 2026-11-14T22:06Z(在该部署之后用 AI 搭建)。

现象

对象 e9gv_ticket 有两个字段都叫「负责人」:

  • 系统字段 owner_id(lookup → sys_user,label「负责人」)
  • AI 新建的 assignee(type user,label「负责人」)

结果:Studio 数据表格出现两列「负责人」;看板卡片既显示右上角负责人头像,又显示一行「负责人 JIANGUO Zhuang」;用户无法分辨「改负责人」到底改的是哪一个。

业务理由

工单、任务、项目这类最常被 AI 搭建的应用都会有「负责人/处理人」概念;与系统 owner 同名意味着权限归属(owner_id 驱动记录可见性)和业务指派各走一套,用户改了一个以为改了另一个。

修复方向

AI 搭建在新增字段时,若 label 与对象上已有字段(含系统字段 owner_id)重名,应复用系统字段,或改用不冲突的名字(如「处理人」),并在完整性检查里把同 label 字段作为错误报出。

验收

  1. 用 AI 搭建一个工单应用(提示里含「负责人」),生成的对象里没有两个同 label 的可见字段。
  2. 对象上出现同 label 字段时,构建校验给出可读的提示。

Reader

objectstack AI 构建车道(area:ai),改字段生成规则与完整性检查。

Dedupe

  • repo:objectstack-ai/objectstack 负责人 owner_id assignee label → 19 条(含 closed),均不涉及 AI 生成字段与系统字段重名。
  • repo:objectstack-ai/objectstack system field label collision owner → 243 条,前列为无关的 id 冲突与系统列卡片,没有同 label 字段的卡。

Activity

  1. added
    bug
    area:ai
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:skills (lead) · p2 · pm:queue · 2026-11-14T23:47Z

    ⛔ Not a claim.

    AI build adds a user field labelled 「负责人」 next to the system owner_id with the same label. Users then cannot tell which one they are changing, and only owner_id drives record visibility. That is a real user surface (staging AI build), and a wrong edit leaves access different from what the user meant, so p2.

    • Authoring rule (skills, the lead): when a request names an owner or assignee, reuse owner_id, or pick a label that does not collide.
    • Build check: report two visible fields with the same label as an error. This belongs to the build validation lane (spec/server). Split it out if the skills seat prefers not to carry it.
  3. added
    domain:skills
    pm:queue
    priority:p2
    on Nov 14, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    Claim: PM loop round 4
    Session: session_01FEkQ5pjSPT7ui2EUcunaVb
    Account: os-project-manager
    Branch: claude/project-thread-8pbyhe
    Worktree: objectstack-issue-33506
    Domain: domain:skills
    Seat: domain:skills#1
    File surface: skills/** (one owner file for the rule, at most two cross-references, one eval) and .changeset/** (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: opus (default; dispatch-gates --tier on the real diff decides), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — authoring-rule gap, not a code defect
    Thread-read: none
    Premise: holds (staging observation on the card; the dev re-measures the default system fields and the owner_id teaching sites on main)
    Serial constraints: the build check is split to #33545 and is not part of this claim
    Order: /mnt/project-files/pm-orders/skills/order-33506.md (project file). Graded p2 by triage (6886116954). Ruling-ref: the seat's standing order 「开一个 skills 车道,派发 p1 p2」 (2026-11-14T14:46:29Z). Claimed 2026-11-15T00:08Z.

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

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5ocBJgBm6Bz2yqoibS
    os-dev-report
    {
    "issue": 33506,
    "status": "done",
    "branch": "claude/project-thread-8pbyhe",
    "pr": "#33555",
    "session": "session_01FEkQ5ocBJgBm6Bz2yqoibS",
    "premise_still_valid": true,
    "summary": "objectstack-data SKILL.md Record owner row now teaches that a request's owner, assignee, 负责人 or 处理人 is the injected owner_id, and that a handler named apart from the owner is a user field granting no access, labelled so no other visible field (injected owner_id Owner/负责人, created_by 创建人, updated_by 更新人, created_at 创建时间, updated_at 更新时间 included) shares it. Premise holds and is sharper than the card: the Quick-Start Template support_case (references/examples-objects.md) itself declared assigned_to: { type: user } beside owner_id, the exact shape staging produced; it is now a comment pointing at owner_id. field-types.md user row example reads reviewer instead of assignee. Eval 18 (ticket app with a 负责人) added. No duplicate-label build check exists on main (git grep over lint/spec/objectql/cli src: no hit); that work is #33545, untouched.",
    "tests": "No package code touched, so no unit suites owed. The edited os:check block: pnpm --filter @objectstack/spec run check:skill-examples exit 0 (after turbo build of lint... and client-react... under the lock, VERDICT command-exit 0). Eval JSON parses (python json.load). No ablation: docs-only diff.",
    "gates": "Local, head 0249dda: 47 derived families from dispatch-gates --commands --repo objectstack-ai/objectstack; 46 exit 0, check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (reads every package dist; no package touched) = NOT MEASURED, CI runs it. --ran reconciliation: 47 accounted, 46 run, 1 NOT-MEASURED derived; check:skill-examples recorded outside the derivation. Ratchets: check-skills-token-ratchet exit 0 (objectstack-data/SKILL.md 6665/6665), check:pm-skill-id-lint exit 0. Tier: dispatch-gates --tier MANDATORY claude-fable-5-2 (skills/, no one-line exit). check-governed-merges --branch: GOVERNED, Tier H, 44 changed lines. CI check-runs: in_progress at report time. Full list: project file pm-orders/skills/33506-gates-ran.txt.",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "line_budget": "SKILL.md 477 to 475 lines, 6606 to 6665 tokens (ceiling 6665, none raised): new text about 82 tokens, 59 existing headroom, 23 paid in-file by deleting the (maintainer ruling 2026-08-13), (ADR-0113), (ADR-0061) asides, the heading-restating line Toggle system behaviours per object:, and shortening the new sentence; no eval expects the deleted text. examples-objects.md 1723 to 1724 (1728). field-types.md 3208 to 3208 (3208). All SKILL.md 4603 to 4601 lines, 59006 to 59065 tokens.",
    "files_changed": [
    ".changeset/33506-skills-owner-id-for-assignee.md",
    "skills/objectstack-data/SKILL.md",
    "skills/objectstack-data/evals/README.md",
    "skills/objectstack-data/evals/objects-fields-relationships.json",
    "skills/objectstack-data/references/examples-objects.md",
    "skills/objectstack-data/rules/field-types.md"
    ],
    "deviations": [
    "Claim Container & model line says model: opus; dispatch-gates --tier on the real diff answers MANDATORY claude-fable-5-2 for skills/
    . This thread ran at the configured session model; the seat owns the tier-of-record review.",
    "Eval README phrase edited beside the one eval (same eval surface).",
    "os-dev.md rule 2 says pr_create carries the claim Account as assignee; standing lines say send no assignees. Followed the standing lines (no assignees)."
    ],
    "mcp_calls": "0 — no MCP GitHub calls",
    "api_writes": "2 — relay pr_create (repository_dispatch, run 43657791225, PR #33555, read-back identical 9302 bytes); this os-dev-report comment via post-stamped. Plus git push (not a REST write).",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "class: c · reach: the card's staging observation (AI-built ticket app shows two 负责人 columns; the ui skill is what an AI reads for views) · evidence: skills/objectstack-ui/rules/list-views.md lines 53, 60, 101, 321 teach assigned_to as the grid owner column, including { field: assigned_to, label: Owner } and a mine filter assigned_to = current_user_id; rules/actions.md:44 a param on assigned_to; evals/views-apps-actions-pages.json eval 1 answers a prompt owner column with assigned_to (eval 12 the same filter) · dedupe words: assigned_to owner_id list-views skills ui Owner label · carrier: seat to file (outside this order two-cross-reference surface)"
    ]
    }


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    ACCEPT → PR #33555 comment 6886765617 · contract review PASS 6886756656 · held for the maintainer (Tier H; reviewers requested) · 2026-11-15T00:42Z

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5ocBJgBm6Bz2yqoibS

    #33555 round 2: merge of origin/main, head a2d3008

    • Merge 4fccfc87 of origin/main 7f0e38a2. One textual conflict: skills/objectstack-data/evals/objects-fields-relationships.json, where main (docs(skills): objectstack-data evals 11, 12 and 14 spell their own must_contain literals #33586) added its own eval 18 (invoice_line currency path). Resolved by keeping main's file whole and appending this PR's eval unchanged as id 19. rules/field-types.md auto-merged: main's docs(skills): a stored computed field reads only its own row; name the cross-record and volatile-input warnings #33589 lines are intact, and the diff against main is still only (assignee, watchers) to (reviewer, watchers) on the user row.
    • Ratchet re-paid, a2d3008d. Main's aiReadable row (docs(skills): the object enable table names aiReadable #33458) spent the 59-token headroom this branch had used, so SKILL.md measured 6724 / 6665 after the merge. Paid in the same file by deleting restatement only: the ADR-0120 and ADR-0146 D10 asides, the ObjectExtensionSchema and PermissionSetSchema.objects.* schema pointers (references/_index.md already points at object.zod.ts and permission.zod.ts), the internal constant name BASE_FIELD_DISPLAY_WHITELIST, and "See rules/validation.md for all types and examples." (the Quick Reference list links it). No eval expects any of them. Now 6657 / 6665; no ceiling moved. examples-objects.md 1724 / 1728, field-types.md 3206 / 3208. The changeset's payment sentence is updated to match.
    • Gates on a2d3008d: the same 47 derived families as round 1 (the derivation did not change), 46 exit 0, check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (NOT MEASURED, no package touched; CI runs it). --ran: 47 accounted, 46 run, 1 NOT-MEASURED. check:skill-examples exit 0 outside the derivation. Closure rebuilt under the lock, VERDICT command-exit 0.
    • PR body is stale on two points for the seat to rewrite: "eval 18" is now eval 19, and the Verification table's SKILL.md row is now 6606 to 6657 (ceiling 6665), with the payment list above.

    Generated by Claude Code

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

    ACCEPT → PR #33555 comment 6889866594 · contract review PASS 6889767336 · held for the maintainer (Tier H; reviewers requested) · 2026-11-15T05:40Z

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

Metadata

Metadata

Labels

area:aibugdomain:skillspm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions