Skip to content

docs(skills): line items in the parent's form are taught as a parent field group naming the child - #36250

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-36224-inline-edit-form-group
Nov 22, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-36224-inline-edit-form-group

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #36224
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:照着技能搭「主表带明细」(发票带发票行、报价单带报价行)的作者和 AI,以前学到的是在明细的关联字段上打一个开关,结果新建表单里并没有明细;现在技能教的是在主表上加一个指向明细的分组,表单里才能直接录明细。应用的使用者无感,变的是技能教的内容。
  • 为什么做:属于「对外发布的技能包教的内容要和运行时一致」这条线,替按技能生成应用的作者解决「发票、报价单的新建表单里录不了明细」的问题。
  • 出错会怎样:只改技能文字、示例和评测用例,不动运行时;写错的话作者拿到的仍是一段不对的教法,直接回退这个合并即可。
  • 要你做什么:这是受治理的技能文字改动(Tier H),复核记录判定它涉及权限相关的字样,不走低风险臂,需要你本人审阅批准后才能合并。L1 ACCEPT 7073837543,契约 PASS 7073893301(head c8770a8)。

What changes

State at head c8770a8f (two commits). The rule taught is the one the spec publishes on fieldGroups[].relatedList (packages/spec/src/data/object.zod.ts) and on inlineEdit (packages/spec/src/data/field.zod.ts): the parent's entry form inlines a child where a field group of the parent names it, inlineEdit only picks how the rows are edited, and a child no group names is not inlined, whatever inlineEdit says.

Three published texts, each with one minimal example and the "without it, nothing changes" line:

  • skills/objectstack-data/rules/relationships.md, Inline Editing. The opening paragraph taught inlineEdit: true on the child's FK as what makes the parent's form render the grid. It now says the form enters a child's rows where a field group of the parent names that child, that the group draws the table at its place in the record's details and in the entry form (below the form's fields when its sections name no field group), and that without the group the child is a tab and the form has no lines. The example is the parent's fieldGroups entry beside the child FK. The "set inlineEdit only for line items" paragraph is now "name only true line-item children; leave associations as tabs". The form-factor ladder stays where it was; its lead sentence reads "inlineEdit only picks how a placed child's rows are entered". The 'grid' example's parent comment points at the group.
  • skills/objectstack-ui/rules/list-views.md, Master-Detail Forms. Item 1 was "Relationship inlineEdit (default, zero UI config)". It is now "A parent field group naming the child (zero view config)", with the fieldGroups entry inline, the nothing-changes line, and the pointer to the data rule for the ladder. Item 2 (subforms) says "or inline a child no group names".
  • skills/objectstack-ui/SKILL.md, trap 2. The trap title was "inlineEdit on the child's master_detail field". It is now "a parent field group naming the child", with the entry inline and the nothing-changes line; the "Add line" and 'bulk' clauses are kept.

Evals (skills/**/evals, not ratcheted):

  • skills/objectstack-data/evals/objects-fields-relationships.json, case 2 ("Model invoices with line items…"): it required inlineEdit in the answer and its expected_output named "inlineEdit on that relationship". Both are removed; nothing about form entry is asserted there, because the prompt does not ask for it.
  • Same file, new case 25 (「新建报价单时要在表单里直接录明细」, objects named in the prompt): must_contain is fieldGroups and relatedList: 'quote_line'; must_not_contain is definePage.
  • skills/objectstack-ui/evals/views-apps-actions-pages.json, case 6 (invoice entry as a stepped form): its expected_output carried the same stale sentence as list-views.md item 1 and its must_contain held inlineEdit. The sentence now names the parent field group and the token is relatedList. This file is one more than the claim's file surface names; see Acceptance notes.

Changeset .changeset/36224-inline-edit-form-group.md: @objectstack/skills patch.

Tests

All readings at head c8770a8f, tree objectstack-ai/objectstack, merge base a5a5312f.

Token ratchet, size and line budget
  • node scripts/check-skills-token-ratchet.mjs: exit 0, no ceiling row moved, the script is untouched.
  • rules/relationships.md: 4198 to 4156 tokens (ceiling 4203; headroom 5 to 47); 16790 to 16623 bytes; 408 to 402 lines.
  • rules/list-views.md: 4448 to 4447 tokens (ceiling 4448; headroom 0 to 1); 17790 to 17788 bytes; 414 to 413 lines.
  • objectstack-ui/SKILL.md: 2167 to 2210 tokens (ceiling 2272; headroom 105 to 62); 8687 to 8860 bytes; 161 to 163 lines. This file grows by 43 tokens inside its existing headroom: its only stale text was the trap's title clause, and the example plus the nothing-changes line are longer than that clause.
  • Ratcheted authored total: 197486 before, 197486 after. Eval fixtures (measured, not ratcheted): 76731 to 77052. Bundle total: 288824 to 289145.
  • Every SKILL.md summed: 4947 lines before, 4949 after. Every markdown file under skills/: 18654 before, 18649 after.
  • PR net added lines (git diff --numstat against the merge base, changeset included): 68 added, 49 deleted, net +19 (budget 30). The three markdown files together: 40 added, 45 deleted, net -5 (budget +6).
Gates run locally
  • Derived list (node scripts/pm/dispatch-gates.mjs --commands, 50 commands), run under scripts/pm/os-verify-lock.sh, each exit code captured before any pipe: 46 exit 0, 4 exit 3.
  • node scripts/pm/dispatch-gates.mjs --ran: 50 derived, 46 run, 4 NOT-MEASURED, 0 UNRUN, exit 0. The four are check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure and check:sourcemap-no-sources-content: each answered PREREQUISITE NOT MET (they read a whole-workspace build), none reads a file of this diff, and they are left to CI.
  • check:doc-formula-expressions first answered exit 3 on an unbuilt tree; after turbo run build of @objectstack/formula and @objectstack/lint it ran: lock verdict command-exit 0.
  • Among the 46: the ratchet and its --self-test, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check:skill-docs, check:skill-served-sections, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:nul-bytes, check:pm-skill-id-lint, check:doc-authoring, check:role-word, check:published-files, check-closing-keyword-parity.
  • node scripts/pm/overlap-check.mjs --branch=claude/issue-36224-inline-edit-form-group: VERDICT clean exit 0 against origin/main and the heads of PRs 36222, 36158 and 35129 (the three that share a file with this one).
  • Not derived, tried once: check:skill-examples answered exit 3 (its client SDK surface needs a build); NOT MEASURED locally, CI's.
Skill-evals test file and catalog read
  • pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts after building the package's dependency closure: Test Files 1 passed (1), Tests 38 passed (38), lock verdict command-exit 0. A first run on the unbuilt tree failed to load (@objectstack/types had no entry) and measured nothing.
  • pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-ui --dry-run (no model call): exit 0, objectstack-data: 67 case(s), objectstack-ui: 44 case(s), no refusal.
  • Cases 2, 25 and 6: every must_contain token is in the case's own expected_output; 0 must_not_contain hits in either file.
  • No eval round was run (a round is the eval seat's). Case 2 and case 6 changed a token list, so earlier records of them are set apart on a regrade.

No ablation: the diff changes prose, examples and eval fixtures, no tested behaviour.

Acceptance notes

  • Premise measured at a5a5312f: the three places still taught the old rule (relationships.md 249-283, list-views.md 370-378, objectstack-ui/SKILL.md 48-52). Ratchet readings matched the dispatch: 4198/4203, 4448/4448, 2167/2272.
  • In-place fix outside the claimed file surface: skills/objectstack-ui/evals/views-apps-actions-pages.json case 6. Same defect (the same sentence, as an eval's expected answer), no other open PR head changes that file (overlap check above), same gate families. Left alone, the eval would grade the corrected text against the old answer.
  • Data case 2 asserts nothing about form entry now. Whether a line-item model should get the placing group when the request does not ask for form entry is not said by the spec's descriptions, so neither the text nor that case teaches it.
  • objectstack-ui/SKILL.md is not paid in full inside the file (43 tokens, see Tests); the ratcheted total across the catalog is unchanged.
  • Same family, not fixed here (reported to the seat, not filed):
    • skills/objectstack-data/references/lint-rules.md, three rows describe the inline-entry lint rules by inlineEdit. Measured on the built @objectstack/lint at this head: an invoice_line child with inlineEdit: true and no parent group still gets relationship/line-items-inline-edit, and one with no inlineEdit whose parent group names it gets none. The table says the opposite trigger. That file has 0 tokens of headroom.
    • skills/objectstack-data/rules/field-types.md, the repeater row points at "a child object (master_detail, inlineEdit: 'grid')" for a typed list, with no group.
  • Covered by PR 36222 (the tab and field-group text of the record page), not touched here: the "Detail-page related lists" part of relationships.md, rules/record-page.md and evals/record-page.json.
  • main moved two commits after the branch point (to c30ce97c); neither touches skills/** or the ratchet, so the branch was not merged forward.

Verification

Read first, by risk:

  1. skills/objectstack-data/rules/relationships.md, the first paragraph and example under "Inline Editing (Master-Detail Entry)": it carries the rule and the wording must not claim more than the spec's description.
  2. skills/objectstack-ui/rules/list-views.md, item 1 under "Master-Detail Forms": the file sits 1 token under its ceiling.
  3. skills/objectstack-data/evals/objects-fields-relationships.json, cases 2 and 25 token lists.

Two-minute check: node scripts/check-skills-token-ratchet.mjs exits 0 and prints rules/relationships.md is 4156 tokens (ceiling 4203; headroom 47), rules/list-views.md is 4447 tokens (ceiling 4448; headroom 1) and objectstack-ui/SKILL.md is 2210 tokens (ceiling 2272; headroom 62).


Generated by Claude Code

…p naming the child

The data and ui skills taught that `inlineEdit: true` on the child's
master_detail field puts the child grid in the parent's form. A parent
field group naming the child (`fieldGroups[].relatedList`) does that;
`inlineEdit` only picks how the rows are edited. Three texts, two eval
cases corrected, one eval case added, changeset.

Claude-Session: https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797

Final green head · area a4-I · 2026-11-22T03:49Z
Head: c8770a8ff8b13ec8a2516beaf245e4abc0ddf4ee — 28 check-runs success, 16 expected skips, 0 failed, 0 pending; mergeable_state clean (pr-state.mjs).
Next: L1-b reads this head; then the area's Fable contract review (rules face, skills/**). Tier H low-risk arm: the seat lands after PASS.
Deviations the dev declared (report 7073583808): a second eval file (objectstack-ui/evals/views-apps-actions-pages.json case 6, the same stale sentence) beyond the claim's surface; objectstack-ui/SKILL.md grows 43 tokens inside its headroom (2167 → 2210 of 2272), not paid in-file. Out-of-scope lint-rules.md rows are now #36252.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-22T03:52Z

席位核对 — ACCEPT · head c8770a8

  • Shape: l1-face.mjs --pr 36250 is clean at c8770a8: open, draft, base main.
    • The first line is Fixes #36224, and the PR delivers the card's whole Done-when: the three places, the eval case, and bytes paid by stale text in the same files.
    • No closing keyword binds any other card.
    • The declarations are Clause-②: no · Metadata-protocol: none, and there is no !, so Skills-docs and dogfood are not owed.
    • The changeset is patch on @objectstack/skills.
  • Every rule the new text teaches, checked against the code:
    • A parent field group naming the child is what inlines it in the parent's form.
    • Without the group the form has no lines, and a plain master_detail child is a tab. This matches the spec's fieldGroups[].relatedList and field relatedList descriptions in packages/spec/src/data/object.zod.ts and field.zod.ts.
    • "Below the form's fields when its sections name no field group" matches the spec's 主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889 sentence.
    • "Such a group holds no fields" is true: a fields list or a member field on a relatedList group is refused at parse.
    • The child FK "declaring no relatedList" is right for the example, a plain master_detail that a group may place.
    • subforms "or inline a child no group names" is true: form subforms inlines a child collection by childObject, and an explicit entry overrides the derived one.
    • The enable.apiMethods → 'bulk' / 405 OBJECT_API_METHOD_NOT_ALLOWED sentences are kept, not restated.
  • Evals:
    • objectstack-data case 2 drops inlineEdit from its expected answer and its must_contain, because the prompt never asks for form entry.
    • objectstack-ui case 6 swaps inlineEdit for relatedList in must_contain and states the group.
    • The new data case 25 is the card's 「新建报价单时在表单里直接录明细」. It asserts fieldGroups and relatedList: 'quote_line', and refuses definePage.
  • Changeset, read sentence by sentence: it names the three files and sections, the rule, the example group, "inlineEdit only picks how those rows are edited", "without the group the child is a tab", and the eval changes. All of these match the diff.
  • Gates: 28 success, 16 expected skip, 0 unexpected skip, 0 failed and 0 pending. Lint & Repo Gates, which carries the skills byte ratchets, and TypeScript Type Check are both success.
  • Landing: this is skills/** wording on the low-risk Tier H arm. The area's Fable contract review must PASS on this head, and then the seat lands it. The area does not.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797

Contract-review-claim: session_01FEkQ5kDGa1ViantgrfH797 · head c8770a8 · 2026-11-22T03:52Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c8770a8ff8b13ec8a2516beaf245e4abc0ddf4ee
Local-runs: none
Scope: skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/relationships.md, skills/objectstack-ui/SKILL.md, skills/objectstack-ui/evals/views-apps-actions-pages.json, skills/objectstack-ui/rules/list-views.md + none
Security-touching: yes
Rule-change-verified: none

Inputs read: card #36224 (body and its 3 comments: triage, claim, os-dev-report), PR #36250 (body, 6 files, net diff against main at the head above, merge base a5a5312f), and the 44 check-runs on the head. Code on origin/main (c30ce97c) was read, not reviewed. The diff has no implementing file: it is five skill files and a changeset, so + none. The changeset is the lane seat's.

① Derived judgments

  • No accept-set change and no published-schema change: nothing under packages/** or ui/** is in the diff. Right.
  • Published surface that does change: the text of @objectstack/skills (three prose files). The rule now taught is the one main publishes. Right (see ④).
  • Eval assertion sets:
    • data case 2: inlineEdit leaves must_contain and the expected answer. This loosens the case; the prompt asks for a model, not for form entry, and the spec does not say a line-item model gets the placing group unasked. Right.
    • data case 25 (new, id unique, 1 to 25 in sequence): must_contain fieldGroups and relatedList: 'quote_line', must_not_contain definePage. Both required tokens are in its own expected answer; definePage is a real export (packages/spec/src/index.ts:219). Right.
    • ui case 6: inlineEdit becomes relatedList in must_contain; master_detail stays and is still in the expected answer. Right.
  • Token ratchet: scripts/check-skills-token-ratchet.mjs is not in the diff, so no ceiling row moved. The gate verdict is the check-run Lint · repo & tooling gates: success. I did not re-run it.
  • Check-runs on the head: 44, every one success or skipped, none failed or pending. Check Changeset, Lint · docs & code guards, Lint · PM dispatch-gates, PR-body guards, Governed Surface Queue Guard, Test Core: success.

② Semver level

.changeset/36224-inline-edit-form-group.md declares @objectstack/skills: patch. The diff publishes corrected skill wording and eval fixtures only, so patch is the right level. Clause-②: no on the PR body and the changeset is right: no schema, no accept-set, no narrowing. Metadata-protocol: none is right.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation, second eval file (skills/objectstack-ui/evals/views-apps-actions-pages.json, case 6) beyond the claim's file surface: accepted. It held the same stale sentence as list-views.md item 1; left alone it would grade the corrected text against the old answer. It is a hits path and is reviewed in ④.
  • Deviation, objectstack-ui/SKILL.md grows inside its headroom (the report says 43 tokens) and is not paid for inside that file: the card's test is "ratchet ceilings unchanged", which holds. Accepted; the seat should know the file's headroom is now smaller for PR chore: version packages #35129, which shares it.
  • Deviation, data case 2 asserts nothing about form entry: accepted, as ① says.
  • Deviations on the PR assignee, commit trailers and PR body line 1: process, not contract. The seat's to accept.
  • Out-of-scope finding, skills/objectstack-data/references/lint-rules.md: confirmed against main. Rows 15, 16 and 18 describe the triggers of relationship/line-items-inline-edit, relationship/inline-edit-needs-bulk and relationship/association-inline-edit by inlineEdit, while packages/lint/src/data-model-rules.ts (R5, R6, lintInlineEditBulk) reads the parent's field group. Same defect family, still taught wrong after this PR. Escalated to the seat: it needs its own card.
  • Out-of-scope finding, skills/objectstack-data/rules/field-types.md:123 (repeater row points at master_detail, inlineEdit: 'grid' with no group): confirmed on main. Escalated to the seat with the one above.
  • Out-of-scope note, the "Detail-page related lists" part of relationships.md: see the first nit in ④.
  • SQL push-down: not applicable. The diff holds no query, no id materialisation and no join.
  • Security-touching: yes is meant, on the literal test, and the grounds are narrow. Two changed hunks carry sharing text: the relationships.md example drops its child-object wrapper, and with it the line sharingModel: 'controlled_by_parent'; and the rewritten line of data eval case 2 carries sharingModel: 'controlled_by_parent' and ownerMayEdit (those words are unchanged). No hunk adds or alters a permission, sharing or authentication rule, and the file still teaches controlled_by_parent at its lines 14, 59 and 73 to 94.

④ Design judgment

Read against main: packages/spec/src/data/object.zod.ts (ObjectFieldGroupSchema, relatedList jsdoc and describe, lines 1487 to 1518), packages/spec/src/data/field.zod.ts (inlineEdit, lines 2300 to 2329; relatedList, 2332 to 2385), packages/spec/src/data/related-list-body-table.ts, the first consumer ui/packages/app-shell/src/providers/MetadataProvider.tsx (attachInlineSubforms), ui/packages/plugin-form/src/formSlots.ts, packages/lint/src/data-model-rules.ts, and packages/spec/src/ui/view.zod.ts (subforms).

skills/objectstack-data/rules/relationships.md holds.

  • "The form enters a child's rows where a field group of the parent names that child": attachInlineSubforms inlines a child only when isGroupPlaceableRelationship(d) and fieldGroupsPlaceRelationship(...) are both true. Agrees.
  • "at its place in the record's details and in the parent's entry form (below the form's fields when its sections name no field group)": the spec's own sentence, and placeFormSlots places nothing when no section names a declared group. Agrees.
  • "Without the group nothing changes: the child is a tab and the form has no lines, whatever inlineEdit says": the spec says "a child no group names is not inlined, whatever this says" and "a tab by default". Agrees for the case the example shows (a master_detail FK declaring no relatedList).
  • The example: key and label are the two required keys of a field group; the child comment "declaring no relatedList" is exactly the placeable case (relatedList: true on the FK would have the group refused). inlineTitle, inlineColumns and inlineAmountField are still read by attachInlineSubforms. Agrees.
  • "inlineEdit only picks how a placed child's rows are entered", true or omitted picks by shape: resolveInlineMode is handed 'grid' or 'form' only, else the child's shape decides. Agrees.
  • "Name only true line-item children; leave associations as tabs": the spec's sentence, and lint R5 and R6 enforce that direction, with the same group shape as the suggested fix. Agrees.

skills/objectstack-ui/rules/list-views.md holds. Item 1 states the same rule with the same group entry; "modal, drawer, full-page" are the three hosts that read subforms (ModalForm, DrawerForm, ObjectForm). Item 2, "or inline a child no group names": an explicit form.subforms entry is kept whether or not a group derives one (attachInlineSubforms returns the object untouched when nothing is derived, and ObjectForm routes on subforms alone), so the exception is real and item 1's "nothing changes" line is about the zero-config path.

skills/objectstack-ui/SKILL.md trap 2 holds: same rule, same entry, the "Add line" and 'bulk' clauses kept and still true (lintInlineEditBulk reads the group).

skills/objectstack-data/evals/objects-fields-relationships.json holds. Case 25 answers the card's eval prompt (「新建报价单时在表单里直接录明细」) with the group on the parent, and each sentence of its expected answer is one the spec or attachInlineSubforms supports: the group holds no fields, quote and lines save in one transaction, the record page draws the same table, inlineEdit only picks the form factor, 'bulk' is needed when enable.apiMethods is declared.

skills/objectstack-ui/evals/views-apps-actions-pages.json holds. Case 6 now names the parent group. Whether a named wizard form view receives the derived subforms is the same code path as before this PR (attachInlineSubforms writes form and formViews.default), so the case is no weaker than it was.

Tried to break it: a lookup child (a group naming a plain lookup is refused with a remedy, and the text and examples speak of master_detail only); a FK with relatedList: true (the example says "declaring no relatedList"); a form whose sections name no group (covered by the parenthesis); an explicit subforms entry with no group (item 2). None breaks the taught rule.

No must-fix, no should-fix.

Nits (none affects correctness of this change; each is left as an accepted deviation or a follow-up, not fixed on this head):

Implemented-by: claude/issue-36224-inline-edit-form-group
Reviewed-by: subagent-of-session_01FEkQ5kDGa1ViantgrfH797 (fable contract reviewer)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

席位核对

Awaiting the maintainer's merge (Tier H) · 2026-11-22T04:02Z · head c8770a8ff8b13ec8a2516beaf245e4abc0ddf4ee

  • check-governed-merges: GOVERNED, 5 of 6 paths on the register (published skills text), 117 lines. Tier H, so the maintainer's hand or an authorized APPROVED review decides.
  • The low-risk skills arm does not apply. The contract record reads Security-touching: yes, because the changed hunks carry sharingModel / ownerMayEdit wording (the example dropped a controlled_by_parent line, and eval case 2 rewrote a line that already held both words). No permission or sharing rule is changed.
  • Records at this head:
    • L1 ACCEPT 7073837543 (L1-b).
    • Contract PASS 7073893301 (CONTRACT_REVIEW_TIER; no open must-fix or should-fix).
  • Same-family residue (skills/objectstack-data/references/lint-rules.md trigger rows; skills/objectstack-data/rules/field-types.md:123 repeater row) is carried by Skill text: lint-rules.md still says line-items-inline-edit and two sibling rules trigger on inlineEdit; the lint now reads the parent object's field groups #36252.
  • CI: 28 success, 16 expected skip, 0 failed.
  • Requested reviewers: os-zhuang and hotlong. The PR stays a draft until a governed approver APPROVES; no seat readies it, enqueues it or arms auto-merge before then.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 22, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 22, 2026 05:02
@os-zhuang
os-zhuang enabled auto-merge November 22, 2026 05:02
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 99fbaa6 Nov 22, 2026
53 of 54 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36224-inline-edit-form-group branch November 22, 2026 05:45
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…ld group, not inlineEdit (objectstack-ai#36280)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_
Fixes objectstack-ai#36252
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:照着数据技能里的「检查规则表」写应用的作者和
AI,以前读到的是「明细子表没开行内编辑就会被提示」,而检查实际看的是「主表有没有用字段分组把明细放进表单」;现在这三条规则,以及字段类型表里「可重复项」那一行,都按实际判断来写。
- 为什么做:属于「对外发布的技能包教的内容要和运行时一致」这条线,替按技能生成应用的作者和 AI
解决「去调一个已经不起作用的开关、却猜不到检查什么时候报」的问题。
- 出错会怎样:只改技能文字和一条变更说明,不动检查本身;写错的话作者读到的仍是一段不准的说明,直接回退这个 PR 即可。
- 要你做什么:无。

## What changes

State at head `a5ea2daa9` (one commit on `origin/main` `c30ce97cd`).
Text only, in the published catalog; the rule ids and the lint are
unchanged.

`skills/objectstack-data/references/lint-rules.md`, the three "Catches"
cells:

- `relationship/line-items-inline-edit`: was "a `*_line`/`*_item`
master_detail child without `inlineEdit`"; now "a `*_line`/`*_item`
master_detail child placed by no parent field group
(`fieldGroups[].relatedList`)".
- `relationship/inline-edit-needs-bulk`: was "`inlineEdit` while the
parent's or child's `enable.apiMethods` omits `'bulk'`"; now "a child a
group places while the parent's or child's `enable.apiMethods` omits
`'bulk'`".
- `relationship/association-inline-edit`: was "an association
(comment/audit/activity) marked `inlineEdit` (clutters the parent form —
use a detail-page related list)"; now "an association
(comment/audit/activity) a group places (leave it a tab)".

`skills/objectstack-data/rules/field-types.md`, seat-added scope (seat
comment 7073941454 on PR objectstack-ai#36250), the `repeater` row: "a typed list is a
child object (`master_detail`, `inlineEdit: 'grid'`)" becomes "a typed
list is a `master_detail` child a parent `fieldGroups[].relatedList`
names". Three punctuation trims in the same section pay for it (the
section's intro line and the `composite` and `repeater` rows: an em dash
becomes a comma or a colon, two spaced slashes close up); no teaching is
removed.

Changeset `.changeset/36252-lint-rules-field-group.md`:
`@objectstack/skills` patch.

This agrees with the rule that PR objectstack-ai#36250 teaches in
`rules/relationships.md`: a parent field group naming the child places
it in the record details and the entry form, and `inlineEdit` only picks
how the rows are edited.

<details><summary>Each claim against the lint source (origin/main
c30ce97)</summary>

- None of the three rules reads `inlineEdit`. In
`packages/lint/src/data-model-rules.ts` the word occurs only in comments
and in one unrelated `fix` string (see Acceptance notes).
- R5, `relationship/line-items-inline-edit` (severity `suggestion`):
fires on a `master_detail` field of an object whose name matches
`LINE_ITEM_RE` when `isGroupPlaceableRelationship(def)` holds and
`formInlines(...)` is false. `formInlines` is
`isGroupPlaceableRelationship(def)` and
`fieldGroupsPlaceRelationship(parent.fieldGroups, child, field)`, which
reads each parent group's `relatedList` (a bare child name, or
`object.field`). Its `fix` line adds a `relatedList` group to the
parent's `fieldGroups`.
- `lintInlineEditBulk`, `relationship/inline-edit-needs-bulk` (severity
`warning`): for every group-placeable relationship that a parent field
group places, it warns once per object, parent or child, whose declared
`enable.apiMethods` does not allow `bulk`.
- R6, `relationship/association-inline-edit` (severity `warning`): fires
on a relationship of an association-named object when `formInlines(...)`
is true, i.e. a parent field group places it. Its message says to leave
it a tab of the record page; its `fix` removes the group.
- `repeater` row: the spec's own route sentence for a typed list
(`EMBEDDED_JSON_TYPED_LIST` in
`packages/spec/src/data/authoring-key-lint.ts`) reads: a child object
whose `master_detail` field points back at this object; a field group on
this object whose `relatedList` names that child edits its rows as an
inline grid on this object's form.

</details>

## Evals

No eval case pins the old wording, so none is changed. Searched
`skills/*/evals/*.json` for the three rule ids, for the old cell
wording, and for `repeater` and "typed list": zero hits. Three cases
mention `inlineEdit` for other reasons (objectstack-data case 2 and
objectstack-ui views case 6, both rewritten by PR objectstack-ai#36250; objectstack-ui
record-page case 1, see Acceptance notes). No eval round was run (a
round is the eval seat's).

## Tests

All readings at head `a5ea2daa9`.

<details><summary>Token ratchet, size and line budget</summary>

- `skills/objectstack-data/references/lint-rules.md`: 49 lines and 3735
bytes before, 49 lines and 3736 bytes after; 934 tokens before and after
(ceiling 934, headroom 0).
- `skills/objectstack-data/rules/field-types.md`: 267 lines and 14163
bytes before, 267 lines and 14162 bytes after; 3541 tokens before and
after (ceiling 3541, headroom 0).
- Whole package: every `SKILL.md` summed is 4947 lines before and after
(none is touched); the ratchet's bundle total is 288824 tokens after,
and the same before by the per-file identity above (both files keep
their token count; the before total was not run separately).
- `node scripts/check-skills-token-ratchet.mjs`: exit 0, "60 authored
bundle file(s) within their ceilings". No ceiling row is moved.
- Diff: 3 files, +16 / -6; net added lines 10 (changeset 10, skills 0),
inside the card's budget of 12.

</details>

<details><summary>Derived gates and the skill-evals test</summary>

- `node scripts/pm/dispatch-gates.mjs --commands`: 48 commands. All 48
ran under `os-verify-lock.sh`; 43 answered exit 0 on the first pass, and
5 answered exit 3 (PREREQUISITE NOT MET, nothing built yet):
`check:doc-formula-expressions`, `check:dts-closure`,
`check:dual-build-cjs-loads`, `check:lean-entry-closure`,
`check:sourcemap-no-sources-content`. After `pnpm build` (120 tasks
successful) the same five commands answered exit 0.
- `--ran` reconciliation: "48 derived famil(ies) accounted for, 48 run,
0 NOT-MEASURED", exit 0.
- `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2
test/skill-evals/skill-evals.test.ts`: Test Files 1 passed (1), Tests 38
passed (38); lock line `VERDICT command-exit 0`.
- `node scripts/pm/overlap-check.mjs
--branch=claude/issue-36252-lint-rules-field-group`: `VERDICT clean exit
0`; PR objectstack-ai#36158 shares `rules/field-types.md` and merges cleanly with this
branch.
- No ablation: the diff changes no behaviour a test pins.

</details>

## Acceptance notes

- Precision limit, declared: the `line-items-inline-edit` cell does not
spell the rule's one precondition, that the FK is one a group may place.
A line-item FK that itself declares `relatedList: true` or `false` is
never flagged, because a group naming it would be refused. The cell
stays at the table's summary level, like its `*_line`/`*_item` shorthand
for the ten suffixes the lint matches.
- The `line-items-inline-edit` cell uses the file's one byte of headroom
(3735 to 3736 bytes, 934 tokens either way). The `field-types.md` edit
is one byte smaller than before, so PR objectstack-ai#36158's measured row for that
file cannot be pushed up by this change.
- Out of scope, not changed here (lint source):
`packages/lint/src/data-model-rules.ts`, the `fix` line of
`field/embedded-sub-fields`, still says to make the typed list a child
object and that `inlineEdit: 'grid'` edits it inline. The spec's route
sentence and that rule's explanation text already name the parent field
group. Read, not run.
- Out of scope, not changed here (skills, same family):
`skills/objectstack-data/rules/relationships.md` § Detail-page related
lists and `skills/objectstack-ui/rules/record-page.md` item 2 still
teach that a `master_detail` child with no `relatedList` is a body table
by default, and objectstack-ui eval `record-page.json` case 1 expects
that answer. `packages/spec/src/data/related-list-body-table.ts` says it
is a tab by default and a body table only when a parent field group
names it. Read against the spec source, not run.

## Verification

Read first, by risk:

1. `skills/objectstack-data/references/lint-rules.md`, the three changed
rows (the published claim about when each rule fires).
2. `skills/objectstack-data/rules/field-types.md`, the `repeater` row
and the two byte-paying lines beside it.
3. `.changeset/36252-lint-rules-field-group.md`.

Two-minute check: `node scripts/check-skills-token-ratchet.mjs` exits 0
and prints `lint-rules.md 934 / 934 (+0)` and `field-types.md 3541 /
3541 (+0)`; then `grep -c "inlineEdit"
skills/objectstack-data/references/lint-rules.md` prints `0` (it printed
`3` on `origin/main` `c30ce97cd`; the rule ids are spelled `inline-edit`
and are unchanged).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants