Repository navigation
docs(skills): line items in the parent's form are taught as a parent field group naming the child - #36250
Conversation
…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>
Claude-Session: https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Final green head · area a4-I · 2026-11-22T03:49Z |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd 席位核对 — ACCEPT · head c8770a8
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Contract-review-claim: session_01FEkQ5kDGa1ViantgrfH797 · head c8770a8 · 2026-11-22T03:52Z |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Contract reviewServed-tier: Inputs read: card #36224 (body and its 3 comments: triage, claim, os-dev-report), PR #36250 (body, 6 files, net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentRead against
Tried to break it: a 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: VERDICT: PASS |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv 席位核对Awaiting the maintainer's merge (Tier H) · 2026-11-22T04:02Z · head
|
…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>
Requested by Leehom · project thread
Fixes #36224
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
State at head
c8770a8f(two commits). The rule taught is the one the spec publishes onfieldGroups[].relatedList(packages/spec/src/data/object.zod.ts) and oninlineEdit(packages/spec/src/data/field.zod.ts): the parent's entry form inlines a child where a field group of the parent names it,inlineEditonly picks how the rows are edited, and a child no group names is not inlined, whateverinlineEditsays.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 taughtinlineEdit: trueon 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'sfieldGroupsentry beside the child FK. The "setinlineEditonly 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 "inlineEditonly 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 "RelationshipinlineEdit(default, zero UI config)". It is now "A parent field group naming the child (zero view config)", with thefieldGroupsentry 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 "inlineEditon the child'smaster_detailfield". 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 requiredinlineEditin the answer and itsexpected_outputnamed "inlineEditon that relationship". Both are removed; nothing about form entry is asserted there, because the prompt does not ask for it.must_containisfieldGroupsandrelatedList: 'quote_line';must_not_containisdefinePage.skills/objectstack-ui/evals/views-apps-actions-pages.json, case 6 (invoice entry as a stepped form): itsexpected_outputcarried the same stale sentence aslist-views.mditem 1 and itsmust_containheldinlineEdit. The sentence now names the parent field group and the token isrelatedList. This file is one more than the claim's file surface names; see Acceptance notes.Changeset
.changeset/36224-inline-edit-form-group.md:@objectstack/skillspatch.Tests
All readings at head
c8770a8f, treeobjectstack-ai/objectstack, merge basea5a5312f.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.SKILL.mdsummed: 4947 lines before, 4949 after. Every markdown file underskills/: 18654 before, 18649 after.git diff --numstatagainst 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
node scripts/pm/dispatch-gates.mjs --commands, 50 commands), run underscripts/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 arecheck:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closureandcheck: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-expressionsfirst answered exit 3 on an unbuilt tree; afterturbo run buildof@objectstack/formulaand@objectstack/lintit ran: lock verdictcommand-exit 0.--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 0againstorigin/mainand the heads of PRs 36222, 36158 and 35129 (the three that share a file with this one).check:skill-examplesanswered 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.tsafter building the package's dependency closure:Test Files 1 passed (1),Tests 38 passed (38), lock verdictcommand-exit 0. A first run on the unbuilt tree failed to load (@objectstack/typeshad 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.must_containtoken is in the case's ownexpected_output; 0must_not_containhits in either file.No ablation: the diff changes prose, examples and eval fixtures, no tested behaviour.
Acceptance notes
a5a5312f: the three places still taught the old rule (relationships.md249-283,list-views.md370-378,objectstack-ui/SKILL.md48-52). Ratchet readings matched the dispatch: 4198/4203, 4448/4448, 2167/2272.skills/objectstack-ui/evals/views-apps-actions-pages.jsoncase 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.objectstack-ui/SKILL.mdis not paid in full inside the file (43 tokens, see Tests); the ratcheted total across the catalog is unchanged.skills/objectstack-data/references/lint-rules.md, three rows describe the inline-entry lint rules byinlineEdit. Measured on the built@objectstack/lintat this head: aninvoice_linechild withinlineEdit: trueand no parent group still getsrelationship/line-items-inline-edit, and one with noinlineEditwhose 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, therepeaterrow points at "a child object (master_detail,inlineEdit: 'grid')" for a typed list, with no group.relationships.md,rules/record-page.mdandevals/record-page.json.mainmoved two commits after the branch point (toc30ce97c); neither touchesskills/**or the ratchet, so the branch was not merged forward.Verification
Read first, by risk:
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.skills/objectstack-ui/rules/list-views.md, item 1 under "Master-Detail Forms": the file sits 1 token under its ceiling.skills/objectstack-data/evals/objects-fields-relationships.json, cases 2 and 25 token lists.Two-minute check:
node scripts/check-skills-token-ratchet.mjsexits 0 and printsrules/relationships.md is 4156 tokens (ceiling 4203; headroom 47),rules/list-views.md is 4447 tokens (ceiling 4448; headroom 1)andobjectstack-ui/SKILL.md is 2210 tokens (ceiling 2272; headroom 62).Generated by Claude Code