Skip to content

照技能声明 inlineEdit 得到一张存不了的表单:父对象的 apiMethods 没有 bulk 时,带行保存被 405 拒绝,技能没写这个前提,编写期也没有任何提示 #34566

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:① 已复现的产品缺陷(出货技能照做得到错误结果,北极星第 4 条)。
reach: 界面实测一次错误结果,且有具名真实生产者:hotcrm origin/main 2257cdd2 的 crm_project_budget(objectstack-ai/hotcrm 已另立卡修它自己的配置)。

已实测

hotcrm origin/main 2257cdd2,@objectstack/* 18.5.0,objectstack dev 本地实例:

  1. 子对象主从字段声明 inlineEdit: 'grid'(crm_project_budget_line.crm_project_budget),父对象 enable.apiMethods: ['get','list','create','update','delete']。
  2. 新建父记录并在内嵌表格里加一行,点 Create。
  3. 结果:POST /api/v1/batch -> 405 [OBJECT_API_METHOD_NOT_ALLOWED],界面报 API operation 'bulk' is not allowed on object 'crm_project_budget'。
  4. 对照:同一实例给 crm_quote 声明同样的 inlineEdit: 'grid',并在 apiMethods 里加上 'bulk',带一行的报价单一次保存成功。

objectstack dev 的编译阶段对第 1 步的组合没有任何输出:68 条编写期规则跑完,14 条警告全是审批人和 capability 的,没有一条提到 bulk 或 inlineEdit。

机制

  • skills/objectstack-ui/SKILL.md「Master-Detail Forms」第 1 条:inlineEdit 是「default, zero UI config」,父表单「saves parent + children in one atomic /api/v1/batch」,「No view metadata needed」。
  • skills/objectstack-data 的 lint 规则 relationship/line-items-inline-edit 还会主动建议给 *_line / *_item 子对象加 inlineEdit。
  • 两处都没写:这次 batch 受父对象 apiMethods 里的 bulk 把门。在 skills/objectstack-ui/SKILL.md 和 skills/objectstack-data/rules/relationships.md 里搜 bulk,没有一处讲这个前提。
  • 所以作者(人或 AI)照技能做完,得到一张能填、存不了的表单,要到运行时点保存才知道。

修复方向(由动手的席位定,列出两条都成立的路)

  • 文本加规则:技能在 inlineEdit 那一节写明父对象要允许 bulk;并加一条编写期规则,inlineEdit 的父对象显式声明了不含 bulk 的 apiMethods 时报出来,处方点名要加的值。
  • 或者改把门:表单自己的原子保存不该被 bulk 这个开关拦住。这条改的是 REST 接受行为,属协议增项,要走契约复审。

验收

  1. 一个只照技能写的主从对象(子字段 inlineEdit,父对象 apiMethods 不含 bulk):要么编译时得到点名处方的提示,要么带行保存直接成功。
  2. 技能文本里能读到这个前提(如果走第一条路)。

Reader: domain:skills 席位,改 skills/objectstack-ui/SKILL.md 的 Master-Detail Forms 一节与 skills/objectstack-data/rules/relationships.md 的 Inline Editing 一节;编写期规则归同一张卡的实施 PR。走第二条路时转 domain:rest。

Dedupe: repo:objectstack-ai/objectstack inlineEdit apiMethods bulk → 1(#6015,分诊席位贴,无关);repo:objectstack-ai/objectstack "API operation 'bulk' is not allowed" → 11(含 closed),最近的是 #15416 / #16511(已关,改的是这条错误消息点名哪个条件),都不涉及 inlineEdit 需要 bulk 这个前提。

Activity

  1. added
    finding
    domain:skills
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:skills · p1 · theme: MCP (authoring) / zh-CN (HotCRM) · 2026-11-17T01:44Z

    ⛔ Not a claim.

    Following the shipped skill's inlineEdit guidance gives a form that cannot save. When the parent's apiMethods lacks bulk, saving with rows is refused with a 405, and nothing warns at authoring time. Reproduced on HotCRM crm_project_budget (18.5.0). An AI author who follows the skill ships a broken form to a customer, so p1 in the MCP and zh-CN themes. The fix is the skill text, plus an authoring-time lint if the claimant judges it in scope (a server half can split off).

  3. added
    bug
    pm:queue
    priority:p1
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

    Claim: PM loop round 1 · 2026-11-17T01:52Z
    Session: session_01ADHkmSXPDB46NVRepWVrL3 (area o2-S session); the #34567 card thread is the dev
    Account: os-steve
    Branch: pending — the shared fold branch named by its chain head #34567
    Worktree: objectstack-issue-34567
    Domain: domain:skills
    Seat: repo:objectstack#2
    File surface: skills/objectstack-ui/SKILL.md (Master-Detail Forms item 1: the parent's apiMethods must admit bulk when it declares apiMethods), skills/objectstack-data/rules/relationships.md (Inline Editing section, same precondition), the authoring rule next to relationship/line-items-inline-edit in packages/lint/src/data-model-rules.ts with its test in a new card-named file under packages/cli/test/ and its row in skills/objectstack-data/references/lint-rules.md, the ratchet row(s) for the touched skill files, one root .changeset/ file (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: TIER_DEFAULT — --tier reads MANDATORY CONTRACT_REVIEW_TIER for skills/**; exit taken: the proactive low-headroom downgrade (maintainer 2026-11-15 21:53Z 「fable 不多了,后续契约复审找review 席位」); compensating control: the at-tier L2 review through the review seat, effort: high
    Clause-②: no — the new authoring rule warns and refuses nothing
    Metadata-protocol: none
    Responsibility: the shipped skill teaches inlineEdit as zero-config and the authoring lint even recommends it, while the save it describes is gated by the parent's bulk; neither names that precondition
    Thread-read: 6935285655
    Premise: holds at origin/main 1e4656d — skills/objectstack-ui/SKILL.md line 68–72 and skills/objectstack-data/rules/relationships.md § Inline Editing never mention bulk; bulk is an apiMethods member (packages/spec/src/data/object.zod.ts).
    Serial constraints cleared: folded member of the #34567 chain; the serial check is on that claim (no open PR on skills/objectstack-ui/**, skills/objectstack-data/rules/relationships.md, packages/lint/src/data-model-rules.ts).
    Fold: member of the #34567 chain (fold gates answered there); its own commit and its own Fixes line in the one PR.
    Route: the card's first road (state the precondition and warn at authoring time). The second road (stop gating the form's own atomic save on bulk) widens what the REST gate accepts; it is not taken here, and the dev stops and reports if ADR-0035 or ADR-0103 rules that the form save must not be gated.
    Pre-claim lane: domain:skills for the text; the authoring rule is the card's own implementation half (packages/lint), carried under the repo-wide seat's lease.
    Pre-claim deps: no Blocked-by:; overlap as on the chain head.
    Prior rulings read: check-prior-rulings.mjs --card 34566 → 10 hits; ADR-0035 Decision §2/§3/§6, ADR-0058 D4, ADR-0070 D5, ADR-0098 Decision §7, ADR-0103 D3/D5, ADR-0148 D6; thread: none. The dev reads ADR-0035 and ADR-0103 D3/D5 before writing the rule (see Route).
    Lease: lease:o2-S.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

    Claim: PM loop round 1 · branch named · 2026-11-17T01:55Z
    Follow-up to claim 6935429376 (same seat, same claim).
    Thread session: session_01ADHkmSMwg7iTEBBE4qY9Y3
    Account: os-steve
    Branch: claude/project-thread-6lyn9b
    Seat: repo:objectstack#2

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSMwg7iTEBBE4qY9Y3
    os-dev-report

    {
      "issue": 34566,
      "issues_folded": [
        34567,
        34566
      ],
      "status": "done",
      "branch": "claude/project-thread-6lyn9b",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34600",
      "head": "4e35eed78dc6f3bf345007fd4e0018807d36dadf",
      "session": "session_01ADHkmSMwg7iTEBBE4qY9Y3",
      "premise_still_valid": true,
      "summary": "objectstack-ui Form Views makes `simple` the default at any field count, narrows `tabbed` with its cost, and adds one paragraph on collapsed groups, `columns` and `modalSize`, with eval case 19. Both skills state that a parent or child declaring `enable.apiMethods` must list `'bulk'` for the inlineEdit batch save, and `os lint` gains the warning `relationship/inline-edit-needs-bulk` beside `relationship/line-items-inline-edit`. Restatement was cut first; the objectstack-ui token row rises by the measured remainder (3833 -> 3888 -> 3921), the two objectstack-data rows follow their measurements down.",
      "tests": "head 4e35eed78d: cli data-model-rules.test.ts 63/63 (+7 new). d67719d4: @objectstack/lint test 214 files / 9091 tests pass; lint and cli typecheck exit 0. Ablation: rule verdict line mutated (marker ABLATED_34566 in dist), 6 hit cases red / 1 silence case green; restored blob == HEAD, rebuilt, --absent preflight, 63/63 green.",
      "gates": "98 derived (dispatch-gates --commands at 4e35eed78d), 98 run, all exit 0; --ran: 0 NOT-MEASURED, 0 UNRUN. check-skills-token-ratchet exit 0, --self-test 104 pass. overlap-check clean (exit 0) before first push and before PR. PR check-runs: in_progress at hand-back.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "skills/objectstack-ui/SKILL.md 302 -> 304 lines (+2; order budget at most +10), tokens 3833 -> 3921; relationships.md 414 -> 414 lines, tokens 4232 -> 4229; lint-rules.md 52 -> 49 lines, tokens 958 -> 934; all SKILL.md 4599 -> 4601; skills/ tree 20882 -> 20891",
      "files_changed": [
        ".changeset/34567-form-layout-inline-edit-bulk.md",
        "packages/cli/test/data-model-rules.test.ts",
        "packages/lint/src/data-model-rules.ts",
        "scripts/check-skills-token-ratchet.mjs",
        "skills/objectstack-data/references/lint-rules.md",
        "skills/objectstack-data/rules/relationships.md",
        "skills/objectstack-ui/SKILL.md",
        "skills/objectstack-ui/evals/views-apps-actions-pages.json"
      ],
      "deviations": [
        "Test placed as a top-level describe in packages/cli/test/data-model-rules.test.ts, not a new card-named file: AGENTS.md ruling record 6583487846 (shared harness file) outranks the dispatch order.",
        "Precondition and rule cover the CHILD object too, and lookup children with inlineEdit: the batch route judges bulk on every op's own object (packages/rest/src/batch-routes.ts).",
        "Ratchet rows for relationships.md (4232 -> 4229) and lint-rules.md (970 -> 934) lowered to their measurements."
      ],
      "mcp_calls": "5 — issue_read x4, pull_request_read x1 (reads only)",
      "api_writes": "3 — fleet relay pr_create (#34600); os-dev-report comment on #34567 and on #34566",
      "open_questions": [
        {
          "question": "Needs contract review (Tier H, skills/**) at head 4e35eed78d; routed by the seat.",
          "options": [
            "A route to the L2 review seat",
            "B hold"
          ],
          "recommendation": "A"
        },
        {
          "question": "Reach is `os lint` only: lintDataModel is lint-only by DIRECT_CALL_RATCHET, so `objectstack dev` / `os build` stay silent (the card's acceptance names compile time).",
          "options": [
            "A accept os lint reach",
            "B file a card to register the rule on all three commands"
          ],
          "recommendation": "A, the delta places the rule in data-model-rules.ts; B is a product decision"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — relationship/line-items-inline-edit tests `inlineEdit !== true`, so a *_line child already declaring inlineEdit 'grid' or 'form' still gets the 'consider inlineEdit: true' suggestion (suggestion-level misfire)"
      ]
    }

    Stamped 2026-11-17T03:00Z.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSMwg7iTEBBE4qY9Y3
    os-dev-report

    {
      "issue": 34566,
      "issues_folded": [
        34567,
        34566
      ],
      "status": "done",
      "branch": "claude/project-thread-6lyn9b",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34600",
      "head": "2da6508c15d60e314f3a3611c04ed970665f4f0e",
      "session": "session_01ADHkmSMwg7iTEBBE4qY9Y3",
      "premise_still_valid": true,
      "summary": "objectstack-ui Form Views makes `simple` the default at any field count, narrows `tabbed` with its cost, and adds one paragraph on collapsed groups, `columns` and `modalSize`, with eval case 19. Both skills state that a parent or child declaring `enable.apiMethods` must list `'bulk'` for the inlineEdit batch save. The warning `relationship/inline-edit-needs-bulk` is a standalone rule `lintInlineEditBulk` registered in AUTHORING_RULES (advisory, commands ALL), so `os lint`, `os validate` / `objectstack dev` and `os build` all report it and none fails on it; it is no longer inside lintDataModel. Restatement was cut first; the objectstack-ui token row rises by the measured remainder (3833 -> 3888 -> 3921), the two objectstack-data rows follow their measurements down.",
      "tests": "cli data-model-rules.test.ts 64/64 (+8 new, one through runAuthoringRules on lint/validate/build) at 2da6508c15. At 09c5d36610: @objectstack/lint test 214 files / 9091 tests pass (authoring-rule-wiring included); 11 registry-reading cli test files 262 tests pass; lint and cli typecheck exit 0. Ablation rerun on the registry rule: verdict line mutated (marker ABLATED_34566 in dist), 7 hit cases red (registry case included) / 1 silence case green; restored blob == HEAD 0d6fd144419e, rebuilt, --absent preflight, 64/64 green.",
      "gates": "123 derived (dispatch-gates --commands at 2da6508c15, docs transcripts included), 123 run, all exit 0 in the final record; first pass had spec check:docs exit 1 (stale json-schema prerequisite) and spec check:skill-examples exit 3, both rerun exit 0. --ran: 0 NOT-MEASURED. First pass also caught check:docs-transcript-drift exit 1 (author-time rules 68 -> 69), fixed in 2da6508c15. overlap-check clean (exit 0) at 2da6508c15.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "skills/objectstack-ui/SKILL.md 302 -> 304 lines (+2; order budget at most +10), tokens 3833 -> 3921; relationships.md 414 -> 414 lines, tokens 4232 -> 4229; lint-rules.md 52 -> 49 lines, tokens 958 -> 934; all SKILL.md 4605 -> 4607 and skills/ tree 20936 -> 20945 (merge base 8dd8192cbf)",
      "files_changed": [
        ".changeset/34567-form-layout-inline-edit-bulk.md",
        "content/docs/deployment/cli.mdx",
        "content/docs/deployment/validating-metadata.mdx",
        "content/docs/getting-started/build-with-claude-code.mdx",
        "content/docs/ui/react-pages.mdx",
        "packages/cli/test/data-model-rules.test.ts",
        "packages/lint/src/authoring-rules.ts",
        "packages/lint/src/data-model-rules.ts",
        "packages/lint/src/index.ts",
        "scripts/check-skills-token-ratchet.mjs",
        "skills/objectstack-data/references/lint-rules.md",
        "skills/objectstack-data/rules/relationships.md",
        "skills/objectstack-ui/SKILL.md",
        "skills/objectstack-ui/evals/views-apps-actions-pages.json"
      ],
      "deviations": [
        "Test placed as a top-level describe in packages/cli/test/data-model-rules.test.ts, not a new card-named file: AGENTS.md ruling record 6583487846 (shared harness file) outranks the dispatch order; accepted by o2-S.",
        "Precondition and rule cover the CHILD object too, and lookup children with inlineEdit: the batch route judges bulk on every op's own object (packages/rest/src/batch-routes.ts); accepted by o2-S.",
        "Ratchet rows for relationships.md (4232 -> 4229) and lint-rules.md (970 -> 934) lowered to their measurements; objectstack-ui row 3888 -> 3921; accepted by o2-S.",
        "Rule moved from lintDataModel to its own AUTHORING_RULES entry (o2-S round 2) so all three commands report it; references/lint-rules.md keeps its os lint framing, still true, rather than spend tokens the file no longer has."
      ],
      "mcp_calls": "5 — issue_read x4, pull_request_read x1 (reads only); none this round",
      "api_writes": "round 2: os-dev-report comment on #34567 and on #34566 (this); PR body update left to the seat (draft at project share objectstack-seat2/34600-body-r2.md)",
      "open_questions": [
        {
          "question": "Needs contract review (Tier H, skills/**) at head 2da6508c15; routed by the seat.",
          "options": [
            "A route to the L2 review seat",
            "B hold"
          ],
          "recommendation": "A"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — relationship/line-items-inline-edit tests `inlineEdit !== true`, so a *_line child already declaring inlineEdit 'grid' or 'form' still gets the 'consider inlineEdit: true' suggestion (suggestion-level misfire)"
      ]
    }

    Stamped 2026-11-17T04:02Z.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

bugdomain:skillsfindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions