Skip to content

docs(skills): stop teaching a boolean inlineEdit on a master-detail relationship - #37170

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-37042-skills-inline-edit-boolean
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-37042-skills-inline-edit-boolean

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Fixes #37042

Clause-②: no
Metadata-protocol: none

维护者速读

What changes

Opened by the seat on the maintainer's authorization in seat repo:objectstack#4's session (「#37093:开 PR 放行。你应该使用 pm-dispatch 技能审核和落地pr,该放行的都放行」; 「#37042:放行」); the developer's own pr_create in zone a4-A's session was refused by a permission check. Branch claude/issue-37042-skills-inline-edit-boolean @ bc01139be8, implemented by zone a4-A's dispatch.

  • skills/objectstack-data/rules/relationships.md, "Inline-edit form factor": the inlineEdit: true // auto (default) line is removed; the smart default is described as what an omitted key gets, noting that a boolean is refused.
  • skills/objectstack-data/evals/objects-fields-relationships.json case 25: the expected answer no longer offers true.
  • skills/objectstack-ui/rules/list-views.md, Master-Detail Forms: the pointer to that section no longer lists true beside 'grid' and 'form' (added in the fix round for contract-review finding M1).
  • One @objectstack/skills patch changeset naming both skills.

Since PR #36802 merged, the spec parse refuses true / false on a relationship field's inlineEdit; only 'grid' and 'form' are accepted, and an omitted key picks the form factor from the child's shape. Release-coupled: this lands before the release that ships #36802.

Token readings: relationships.md 4199 → 4192 (ceiling 4203); list-views.md 4444 → 4442 (ceiling 4448); no ceiling moved, the ratchet script is not in the diff. Merges cleanly with the open PR #36158. A sweep of every inlineEdit under skills/** finds no other relationship-field boolean; objectstack-ui/references/react-blocks.md line 76 is the view-level key, untouched.

Review history

  • Contract review 7149242271 at 1787e54e67: FAIL on M1 (the list-views.md pointer still listed true).
  • Fix round at bc01139be8; delta review 7149350343: PASS, M1: closed, Security-touching: no.

Tests

No package source changes. The contract review and L1 read the gate check-runs on this head.


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr

@github-actions github-actions Bot added size/s 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 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1787e54e679823317ae0d4d3a6fef44ef49f217c
Local-runs: none
Scope: skills/objectstack-data/rules/relationships.md, skills/objectstack-data/evals/objects-fields-relationships.json + none
Security-touching: no
Rule-change-verified: none

PR #37170 (card #37042), net diff against main 709d2c1e6a (merge-base 236c8044ac): 3 files, +12 −3. Read: the card body and its 3 comments (triage 7139494609, claim 7146635627, dev report 7146840191), the PR body, file list and diff, the check-runs on the head, and the cited code on main by git show (no checkout, no build, no run).

① Derived judgments

  • Accept set — none moves. The diff touches no schema, parser or code. What moves is the accept set the data skill TEACHES for a relationship field's inlineEdit: from true / 'grid' / 'form' / omitted to 'grid' / 'form' / omitted. Right: packages/spec/src/data/field.zod.ts:2399 on main is z.enum(['grid', 'form'], …).optional(), and a boolean input meets INLINE_EDIT_BOOLEAN_RETIRED (field.zod.ts:1673).
  • "Omitted … smart default" — right. resolveInlineMode (ui/packages/plugin-form/src/deriveMasterDetail.ts:512-528) returns an explicit 'grid' / 'form' and otherwise picks from the child's shape; the schema's own describe reads "Absent = auto-pick grid/form by child shape … A boolean is refused".
  • Public surface. Two shipped text files of @objectstack/skills (the package ships the skills/** tree). No export, type, key or default changes.
  • Eval case 25. Only the parenthetical of expected_output changes; must_contain (fieldGroups, relatedList: 'quote_line') and must_not_contain (definePage) are untouched and the new expected output still satisfies them. Right.
  • Wrong — the taught accept set is not uniform across the package at this head: one more skills/** sentence still lists true as a value of the same key. See M1.
  • Gate verdicts (check-runs on the head, 41 at the time of reading): 17 success, 16 skipped, 0 failed, 8 still in progress — Test Core (1/10), Test Core (2/10), Type Check · workspace, Type Check · debt ledger, Type Check · consumer gates, Lint · CI, release & engine gates, Lint · docs & code guards, Lint · repo & tooling gates. Green among those that concern this diff: Check Changeset, Governed Surface Queue Guard, PR-body guards, Lint · PM dispatch-gates, Check PR Size. This record asserts nothing about the 8 unfinished runs; the skill gates (token ratchet, links, served sections) sit in the unfinished lint jobs.

② Semver level

  • .changeset/37042-skills-inline-edit-boolean.md declares '@objectstack/skills': patch. Matches: the diff publishes corrected skill wording and one eval expectation, nothing an author can newly write or no longer write.
  • Clause-②: no — right, on the PR body and the changeset body alike. The diff widens no accept set and no public surface; it carries no arm, correctly: the narrowing is feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement #36802's own (Clause-②: no (narrowing) on .changeset/35926-field-inline-edit-boolean-retired.md), this PR only pulls the prose back to it.
  • Metadata-protocol: none — right: what a metadata author can write is unchanged by this diff.
  • Release coupling holds as stated: @objectstack/skills sits in the fixed group with @objectstack/spec (.changeset/config.json), packages are at 18.6.0 on main, and the pending 35926 changeset (spec minor) makes the next release 18.7.0 — the version INLINE_EDIT_BOOLEAN_RETIRED and this changeset both name.

③ Boundary flags

Dev report 7146840191, deviations:

  • Classifier refused the pr_create stroke; not re-sent. The PR exists, opened by the seat per its body. Nothing in the tree depends on it; PR-body guards is green.
  • Worktree kept. Housekeeping, the seat's; no contract effect.
  • The sentence gained "(a boolean is refused)" beyond the pure deletion. Accepted, and needed: it is true on main (see ①), and without it a reader who learned true from the previous release is not told the value stopped parsing.
  • Signature line first, closing line second in the PR body. Guard green; no contract effect.

open_questions: empty — nothing to answer.

out_of_scope_findings: [] and the report's proof (git grep -n "inlineEdit: true" -- skills prints nothing): not accepted as the answer to the claim's own surface clause ("any other skills/** site found teaching a boolean inlineEdit on a relationship field"). The grep matches only the key-colon-value spelling; the remaining site spells the value without the key. See M1.

SQL push-down (Prime Directive 5): no code, no query, no id materialisation in the diff — nothing to flag.

Security: no changed word teaches permission, sharing, credential, token or authentication behaviour — the change is the removal of true from a form-factor value list. Disclosed for the adopting seat: the eval's expected_output is one JSON line, so the changed line also carries, byte-identical on both sides, the sentence "If either object declares enable.apiMethods, it must list 'bulk'" (an API-operation whitelist requirement). The diff neither adds nor alters it; I read it as not taught by this change.

Observed, the seat's to reconcile, no effect on the tree: the PR body's stamp and trailer name session_01QSeKYpEsWWE9Y5YtSsDgqZ; the claim on the card names session_01QSeKYo86w1wqy2z2fMrryr.

④ Design judgment

skills/objectstack-data/rules/relationships.md — holds against the spec it teaches.

  • "Omitted (a boolean is refused) — smart default" is true (①) and reads one way: leave the key out to get the smart default; a boolean is not an alternative. The fence now lists exactly the two values the enum accepts.
  • The field-group rule (ruling 7046311205, 「一律只看分组」) is still taught right above and is not weakened: the section opens with "a field group of the parent names that child (relatedList) … Without the group nothing changes: the child is a tab and the form has no lines", and the edited block is introduced by "inlineEdit only picks how a placed child's rows are entered". Nothing in the edited block reads as if inlineEdit alone inlines; the later example (Field.masterDetail('invoice', { inlineEdit: 'grid' })) sits under "Parent (a field group names invoice_line, as above)".
  • "more than ~8 editable fields" agrees with SMART_FORM_FIELD_THRESHOLD = 8 (names.length greater than 8).

skills/objectstack-data/evals/objects-fields-relationships.json, case 25 — holds against the prompt (enter quote_line rows in the quote create form, saved together) and the edited rule: the answer is still the parent field group, "whatever inlineEdit on quote_line.quote says", and the parenthetical now offers only 'grid' / 'form' with absent picking by shape. Assertions unchanged and satisfied.

M1 (must-fix) — a third skills/** site still teaches true as a value of the relationship field's inlineEdit, and this head leaves it in the package the PR closes the card on. skills/objectstack-ui/rules/list-views.md:389-390 (identical on the head and on main), section "Master-Detail Forms (parent + child line items)", verbatim: "inlineEdit only picks how rows are edited, the true / 'grid' / 'form' ladder: objectstack-data → Relationships → Inline Editing."

This is the relationship-field key (the sentence follows the field-group rule and points at the very section this PR edits), not the view-level inlineEdit. Breaking the design from there: an agent asked for an entry form with line items loads objectstack-ui — its SKILL.md trap 2 links to exactly this section — reads true as the first rung, writes inlineEdit: true on the master_detail field, and 18.7.0 refuses the parse. That is the failure the card exists to prevent ("the published skill teaches a value the published parse refuses"), in the same published package, while the body says Fixes #37042. After this diff the two skills also contradict each other: the pointer promises a three-rung ladder at a target that now says a boolean is refused. The card named two sites; the claim's surface clause foresaw a third; the dev's grep was too narrow to find it (③).

Fix, on this branch: rewrite that clause to the two values plus omission (for instance "'grid' / 'form', or left out"), keep the pointer; let the changeset body name the UI skill as well (it says "the data skill"); list-views.md must stay within its token ceiling (the rewrite need not grow it). The fix moves the head and adds a hits path, so it earns a delta review; that record closes this finding by id.

Searched at the head for any further site: every inlineEdit occurrence under skills/** (11 lines in 7 files) plus ladder, auto (default), smart default and boolean wording near "inline". The others are clean: objectstack-ui/SKILL.md:51, objectstack-ui/evals/record-page.json case 1 and objectstack-ui/evals/views-apps-actions-pages.json case 6 name the key without a value; objectstack-ui/references/react-blocks.md:76 is the VIEW-level inlineEdit (boolean, in-list editing) — a different live key, correctly left alone.

Nits: none.

Not a finding on this diff, pre-existing on main and outside the changed words — a follow-up card candidate: the smart-default sentence lists file and image among the types that tip to form, while resolveInlineMode keeps a lone file / image / avatar in the grid and tips only at two or more (RICH_FIELD_FORM_THRESHOLD = 2); only the form-only types (textarea, richtext, html, markdown, json, location, address) tip on one.

Implemented-by: claude/issue-37042-skills-inline-edit-boolean
Reviewed-by: session_01QSeKYo86w1wqy2z2fMrryr

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Contract review

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

Delta review of PR #37170 (card #37042) over record 7149242271, which judged 1787e54e67 FAIL on M1. This head adds one commit, bc01139be8 (parent 1787e54e67): skills/objectstack-ui/rules/list-views.md +1 −1, and the changeset's title and last sentence. Net diff against main 6cfd04d9e2 (merge-base 236c8044ac): 4 files, +13 −4. Read: the card's 4 comments (the fix-round dev report 7149301132 is new), the PR body and its one comment, the fix commit's diff, the check-runs on this head, and the cited code on main by git show. main has not moved on skills/objectstack-data/**, skills/objectstack-ui/**, packages/spec/src/data/field.zod.ts or ui/packages/plugin-form/src/deriveMasterDetail.ts since the merge-base, so every judgment of record 7149242271 on the two data-skill files stands unchanged; they are byte-identical on this head.

① Derived judgments

  • Accept set — none moves, as before: no schema, parser or code in the diff. The taught accept set for a relationship field's inlineEdit is now uniform across the package at 'grid' / 'form' / omitted. Right: field.zod.ts:2399 on main is still z.enum(['grid', 'form'], …).optional().
  • Public surface. Three shipped text files of @objectstack/skills; no export, type, key or default changes.
  • Token ceilings, read off the blobs at this head (sizes only, no gate run): list-views.md 17767 bytes, 4442 tokens against its ceiling 4448; relationships.md 16765 bytes, 4192 against 4203. Neither ceiling is edited.
  • Gate verdicts (check-runs on this head, 39 at the time of reading): 6 success, 16 skipped, 0 failed, 17 still in progress. Success: Governed Surface Queue Guard, PR-body guards, Check PR Size, Auto Label, filter, Lint · scoped · query-options erasure. In progress: Check Changeset, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · ESLint, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Build Core, Plan Test Core shards, Test UI, Dogfood Regression Gate, Live E2E UI. This record asserts nothing about the 17 unfinished runs: its verdict is the contract judgment, and landing still waits for every check green on this head. A red one among them is outside what this record covers.

② Semver level

③ Boundary flags

Dev report 7149301132:

  • deviations — the pointer says "Relationships → Inline Editing" while the target heading is "Inline-edit form factor"; kept, noted only. Answered: not a finding. The pointer's shape is skill → rule file → section, and "Inline Editing" names the H2 ## Inline Editing (Master-Detail Entry) at relationships.md:253, which is also that file's own table-of-contents entry. "Inline-edit form factor" is the H4 at line 283 inside that H2, so a reader following the pointer lands in the section that contains it. The same pointer is used a second time at list-views.md:399 for the grid behaviours, which sit under the same H2. The text predates this PR and the fix commit rightly left it alone.
  • open_questions: empty — nothing to answer.
  • The report's sweep agrees line for line with my own search at this head (below).

SQL push-down (Prime Directive 5): no code, no query, no id materialisation — nothing to flag.

Security, re-judged across the widened scope: no changed word teaches permission, sharing, credential, token or authentication behaviour. The fix commit's one changed line in list-views.md reads "edited, 'grid' / 'form' or left out:" — a form-factor value list. The sentence about enable.apiMethods listing 'bulk' and the 405 refusal sits two lines above as unchanged context of that hunk, on neither side of the change; the same sentence on the eval's JSON line is byte-identical on both sides, as disclosed in record 7149242271. Same reading as before: not taught by this change.

Observed, the seat's to reconcile, no effect on the tree: the PR body was not edited in the fix round — it still names 1787e54e67, lists only the data-skill changes, and its stamp and trailer still name session_01QSeKYpEsWWE9Y5YtSsDgqZ where the card's claim names session_01QSeKYo86w1wqy2z2fMrryr.

④ Design judgment

M1: closed

skills/objectstack-ui/rules/list-views.md (new hits path) — holds against the spec it teaches and the scenario it serves. The clause now reads "inlineEdit only picks how rows are edited, 'grid' / 'form' or left out: objectstack-data → Relationships → Inline Editing." That is exactly what the enum accepts plus omission; true is gone and no boolean is offered. The clause still follows the field-group rule in the same list item ("Without the group nothing changes: the child is a tab and the form has no lines"), so it does not read as if inlineEdit alone inlines. It does not say what leaving the key out does or that a boolean is refused; the section it points at says both, which is what a pointer is for. Re-running the break from the first record: an agent entering through objectstack-ui/SKILL.md trap 2 now finds two values and "left out", and nothing that parses as an instruction to write true. The two skills no longer contradict each other.

skills/objectstack-data/rules/relationships.md and skills/objectstack-data/evals/objects-fields-relationships.json — unchanged since 1787e54e67; the judgments of record 7149242271 stand (rule text true against field.zod.ts and resolveInlineMode, field-group rule intact above it, eval case 25's expected output and assertions hold).

Searched again at this head: every inlineEdit occurrence under skills/** (11 lines in 7 files), plus ladder, auto (default) and boolean wording near the key in the data, UI and objectui skills. No site teaches a boolean on a relationship field. The one boolean left, objectstack-ui/references/react-blocks.md:76, is the view-level inlineEdit — a different live key, correctly untouched.

No must-fix, no should-fix.

Nits: none.

Carried over, still not a finding on this diff (pre-existing on main, outside the changed words, a follow-up card candidate): the smart-default sentence in relationships.md lists file and image among the types that tip to form, while resolveInlineMode keeps a lone file / image / avatar in the grid and tips only at two or more.

Implemented-by: claude/issue-37042-skills-inline-edit-boolean
Reviewed-by: session_01QSeKYo86w1wqy2z2fMrryr

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

席位核对 — ACCEPT · L1 · head bc01139be89abd3447b636d91d10f6b91e68438b · 2026-11-25T01:32Z

Zone a4-A, card #37042 (release-coupled with #36802). Read from the PR's diff and check-runs, not from the dev reports.

  1. Shape. 4 files, +13 / −4: skills/objectstack-data/rules/relationships.md (the inlineEdit: true // auto (default) line gone; the smart default is what an omitted key gets, "a boolean is refused"), eval case 25 in skills/objectstack-data/evals/objects-fields-relationships.json (no true), skills/objectstack-ui/rules/list-views.md (the pointer lists 'grid' / 'form' or left out), one @objectstack/skills patch changeset naming both skills. Tokens: relationships.md 4199 → 4192 (ceiling 4203), list-views.md 4444 → 4442 (ceiling 4448); no ceiling moved, the ratchet script not in the diff.
  2. Premise, measured. On main after feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement #36802, FieldSchema.inlineEdit is z.enum(['grid', 'form']).optional() and a boolean meets INLINE_EDIT_BOOLEAN_RETIRED; the three sites taught true.
  3. Gates. Check-runs on this head: all completed; Test Core, TypeScript Type Check, Lint & Repo Gates aggregates success; none failed (one Check Changeset run cancelled by a later body edit, its successor success).
  4. Contract review. Full 7149242271 at 1787e54e67: FAIL on M1 (the list-views.md pointer). Delta PASS 7149350343 on this head: M1: closed, no must-fix, no should-fix, Security-touching: no.
  5. Body. Refreshed by the zone: the prose "(Fixes Retire inlineEdit: true on master-detail relationships: after #35889 a parent field group decides, so the key means the same as absent #35926)" removed (it made the tier reader see a second card); the PR closes skills: stop teaching inlineEdit: true on master-detail relationships (follow-up of #35926) #37042 only. The seat agreed.
  6. Landing. Tier S on the low-risk skills arm (single card, no security label, record on this head Security-touching: no); landing-k OK (K = 1). The zone lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Landing · head bc01139be89abd3447b636d91d10f6b91e68438b · 2026-11-25T01:32Z

Probe Reading
check-governed-merges --pr 37170 Tier S — low-risk skills arm; record on this head (delta 7149350343) reads Security-touching: no
landing-k --pr 37170 OK — K = 1 on origin/main 95734fef75, hold at 15

State: L1 ACCEPT on this head (just above); every check-run green or expected skip. Ready and auto-merge in this stroke. On MERGED, card #37042 closes by Fixes; release-coupled with #36802, so it is in before that release.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 01:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit a10345a Nov 25, 2026
52 of 53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37042-skills-inline-edit-boolean branch November 25, 2026 01:52
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

Development

Successfully merging this pull request may close these issues.

skills: stop teaching inlineEdit: true on master-detail relationships (follow-up of #35926)

2 participants