Skip to content

docs(skills): the lint table and the repeater row name the parent field group, not inlineEdit - #36280

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-36252-lint-rules-field-group
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-36252-lint-rules-field-group

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #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 #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 #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.

Each claim against the lint source (origin/main c30ce97)
  • 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.

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 #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.

Token ratchet, size and line budget
  • 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.
Derived gates and the skill-evals test
  • 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 docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 shares rules/field-types.md and merges cleanly with this branch.
  • No ablation: the diff changes no behaviour a test pins.

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 docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #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

…ld group, not inlineEdit

references/lint-rules.md: the three relationship rows state the trigger
packages/lint/src/data-model-rules.ts reads (R5, R6, lintInlineEditBulk):
whether a field group of the parent places the child
(fieldGroups[].relatedList). None of the three reads inlineEdit.
rules/field-types.md: a typed list is a master_detail child that a parent
fieldGroups[].relatedList names. Each file pays in its own bytes.

Claude-Session: https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final green head · area a4-I · 2026-11-22T04:54Z
Head: a5ea2daa97 — 28 check-runs success, 16 expected skips, 0 failed, 0 pending; mergeable_state clean (pr-state.mjs).
Carries #36252 (lint-rules.md rows) plus the seat's scope addition: the field-types.md repeater row of the same family.
Next: L1-b reads this head; then a Fable contract review (skills/** is Tier H, low-risk arm). Governed surface: the seat lands after PASS.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · head a5ea2da

  • Shape: l1-face.mjs --pr 36280 is clean at a5ea2da: open, draft, base main.
    • The first line is Fixes #36252, and the PR delivers the card: three rows corrected against the lint source, inside the byte budget, with no eval pinning the old wording.
    • No closing keyword binds any other card.
    • The declarations are Clause-②: no · Metadata-protocol: none, and the changeset is patch on @objectstack/skills.
  • Each row, checked against packages/lint/src/data-model-rules.ts:
    • relationship/line-items-inline-edit (R5, about line 1209) fires on isLineItemName(child) && isGroupPlaceableRelationship(def) && !formInlines(...). formInlines (line 1018) is isGroupPlaceableRelationship && fieldGroupsPlaceRelationship(parent.fieldGroups, …), so the trigger is a line-item child no parent field group places, as the row now says.
      • Precision note, not blocking: a FK declaring relatedList: true / false is not group-placeable, so it is never asked. The row's "placed by no parent field group" is still true of every finding.
    • relationship/inline-edit-needs-bulk (lintInlineEditBulk, about line 308) fires only for a FK that fieldGroupsPlaceRelationship places, on whichever of the parent or the child resolves enable.apiMethods without 'bulk'. That matches "a child a group places while … omits 'bulk'".
    • relationship/association-inline-edit (R6, about line 1234) fires on isAssociationName(child) && formInlines(...). That is "an association … a group places", and its fix text, to remove the parent's group and leave it a tab, matches "(leave it a tab)".
    • The rule ids and severities are unchanged.
  • field-types.md: the repeater row now points a typed list at "a master_detail child a parent fieldGroups[].relatedList names". That is the rule docs(skills): line items in the parent's form are taught as a parent field group naming the child #36250 teaches and attachInlineSubforms applies. The other two rows are only re-punctuated to pay the bytes. inlineEdit: 'grid' stays in relationships.md only as the form-factor ladder, which is correct.
  • Evals: no skills eval names the three rule ids or the old repeater wording.
  • Changeset, read sentence by sentence: the three triggers, the repeater pointer, and "the rule ids and the lint are unchanged" all match the diff and the source.
  • 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: 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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01FEkQ5kDGa1ViantgrfH797 · head a5ea2da · 2026-11-22T04:56Z

@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: a5ea2daa97dfbd3df5deb8b2721b496192b77e39
Local-runs: none
Scope: skills/objectstack-data/references/lint-rules.md, skills/objectstack-data/rules/field-types.md + none
Security-touching: no
Rule-change-verified: none

Inputs read: card #36252 (body, triage 7073845398, claim 7073908822, os-dev-report 7074267786), PR #36280 (body, file list, net diff against main: one commit on merge base c30ce97cd, 3 files, +16 / -6), and the check-runs on the head. Code outside the diff was read on main (a6756a28), never reviewed: packages/lint/src/data-model-rules.ts and packages/spec/src/data/related-list-body-table.ts (both blob-identical to main), and packages/spec/src/data/authoring-key-lint.ts. main is 9 commits past the merge base; none of them touches the two hits files, the lint source or the spec helpers.

① Derived judgments

  • Accept-set: unchanged. The diff edits no schema, no lint, no validator; no key is added, removed, narrowed or widened. Right.
  • Public surface: the published @objectstack/skills text changes in four table cells (three "Catches" cells in lint-rules.md, the repeater row in field-types.md) plus three punctuation trims in the same field-types.md section. Rule ids, severities and row order are unchanged. Right.
  • Token ratchet: no ceiling row is moved in the diff (scripts/check-skills-token-ratchet.mjs is not in the file list); the gate's verdict is the check-run Lint · repo & tooling gates: success.
  • Evals: no skills/*/evals file is in the diff, and none on main names the three rule ids, so nothing pins the old wording. Right.
  • Check-runs on the head: every run completed; conclusions are success or skipped (opt-in, UI-only and matrix-template rows), none failed or pending. Check Changeset, Governed Surface Queue Guard, PR-body guards, Test Core, Type Check · workspace, Lint & Repo Gates: success.

② Semver level

.changeset/36252-lint-rules-field-group.md declares @objectstack/skills patch. The diff publishes corrected prose only, so patch is the right level. Clause-②: no on the PR body and in the changeset agrees with the diff: nothing an author could write before is refused now, and nothing new is accepted. Metadata-protocol: none is right: no protocol surface is touched. Check Changeset: success.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Seat-added scope (field-types.md, the repeater row): accepted. It is the same stale inlineEdit claim in the same skill, and it is recorded on the claim thread and in the PR body.
  • Declared precision limit (the line-items-inline-edit cell does not spell the group-placeable precondition): accepted, see N1 in ④.
  • lint-rules.md spends its one byte of headroom (934 tokens before and after, ceiling 934): accepted; the ratchet gate is green and no ceiling moves.
  • Process deviations in the dev report (push probe refused once, assignee carried per os-dev.md, trailer and footer per AGENTS.md, a whole-workspace build to satisfy four dist-reading gates, test:repo left to CI): none changes the tree under review; no contract effect. They are the seat's to accept.
  • Out-of-scope findings (2): both hold on main as read. (a) The fix string of field/embedded-sub-fields in packages/lint/src/data-model-rules.ts (line 1118) still says inlineEdit: 'grid' edits the typed list inline. (b) skills/objectstack-data/rules/relationships.md on main still teaches inlineEdit: true as what inlines a child in the parent form (lines 251 to 314). Neither is in this diff; each needs its family card or its open PR named by the seat. Not escalated as a blocker here.
  • SQL push-down: not applicable. The diff contains no code, no query, no id materialisation and no in-app join.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-data/references/lint-rules.md, each changed cell against the lint on main:

  • relationship/line-items-inline-edit, "a *_line/*_item master_detail child placed by no parent field group (fieldGroups[].relatedList)". Holds. R5 fires inside the master_detail branch when isLineItemName(obj.name), isGroupPlaceableRelationship(def) and not formInlines(...); formInlines is fieldGroupsPlaceRelationship over the parent's fieldGroups, which reads each group's relatedList. Severity suggestion matches the row. The rule reads inlineEdit nowhere.
  • relationship/inline-edit-needs-bulk, "a child a group places while the parent's or child's enable.apiMethods omits 'bulk'". Holds. lintInlineEditBulk skips every relationship that is not group-placeable or not placed by a parent field group, then warns once per object, parent or child, whose declared enable.apiMethods disallows bulk. Severity warning matches.
  • relationship/association-inline-edit, "an association (comment/audit/activity) a group places (leave it a tab)". Holds. R6 fires when isAssociationName(obj.name) and formInlines(...) is true; its message says to leave it a tab of the record page, and its fix removes the group. Severity warning matches.

Break attempts: an author who sets inlineEdit on a line-item FK and adds no group still gets the R5 suggestion, which the new cell predicts and the old one did not. An author who places an association with a group gets R6 whatever inlineEdit says, also as the new cell predicts. A child placed by a group with bulk withheld on the parent alone is warned on the parent, as the cell says. No case found where following the new text mispredicts the lint, apart from N1.

skills/objectstack-data/rules/field-types.md:

  • repeater row, "a typed list is a master_detail child a parent fieldGroups[].relatedList names". Holds against the spec's own route sentence (EMBEDDED_JSON_TYPED_LIST in packages/spec/src/data/authoring-key-lint.ts): a child object whose master_detail field points back, and a field group on the parent whose relatedList names that child edits its rows as an inline grid. A design built from the row is lint-clean under R5 and is the shape isBodyTableRelationship draws in the form.
  • The three punctuation trims (section intro, composite row, repeater row) remove no teaching: "untyped", "no sub-fields", "fields/subFields are refused" and "no sub-fields or columns" all survive.

Nits (no effect on correctness or the contract):

  • N1 (nit): the line-items-inline-edit cell omits the precondition that the FK is one a group may place; a line-item FK declaring relatedList: true or false is never flagged. Declared by the dev, at the table's summary level, with zero byte headroom. Accepted deviation.
  • N2 (nit): the two lower cells say "a group" where the first says "parent field group". The row directly above defines it and the table is read as a block. Accepted deviation.
  • N3 (nit): rules/relationships.md calls a group naming a master_detail child "written only when asked", while the repeater row now points a typed list at exactly that group. An author asking for a typed list has asked for inline rows, so the two do not contradict; the sharper wording belongs to the relationships.md family card, not this diff.

Implemented-by: claude/issue-36252-lint-rules-field-group
Reviewed-by: session_01FEkQ5kDGa1ViantgrfH797

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

Landing (low-risk skills arm, Tier S) · 2026-11-22T05:00Z · head a5ea2daa97

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 05:00
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 6925b87 Nov 22, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36252-lint-rules-field-group branch November 22, 2026 05:45
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 size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants