Repository navigation
docs(skills): a long form stays simple, and inlineEdit names the bulk its save needs; os lint warns when it is withheld - #34600
Conversation
…tead of tabbed The Form Views table capped `simple` at 15 fields and sent objects with many field groups to `tabbed`, which hides a missed required field on another tab and overflows the tab strip on a phone. `simple` is now the default at any field count, `tabbed` names its cost, and one paragraph says how a long form stays `simple`: collapse the rarely filled groups, raise `columns`, size the dialog with `modalSize`. Two restatements in the file pay part of it; the token row moves by the measured remainder. One eval case pins the choice. Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3 Co-authored-by: Claude <noreply@anthropic.com>
…hhold bulk is warned about, and the skills name the precondition The parent's form saves an inlineEdit child's rows with the parent in one cross-object /api/v1/batch, which gates every op as bulk on the op's own object. A parent or child declaring enable.apiMethods without 'bulk' therefore gets a form that fills and then 405s on save, and neither skill said so. objectstack-ui Master-Detail Forms and objectstack-data Inline Editing now state the precondition. os lint gains relationship/inline-edit-needs-bulk, a warning beside relationship/line-items-inline-edit that judges the declared list through the spec's own resolver and names the object and value to add. Touched skill files pay by cutting restatement; ratchet rows follow. Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 3 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 8e52f97ee3443f8d57ddaf9118152eceb7d351bb && git checkout 8e52f97ee3443f8d57ddaf9118152eceb7d351bb
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 082f9c2945260fd9b29951caff1c49f6dccab4ea ef4b6bc350174e99a16427d1745754bdfa14a548 && git checkout -B drift-repro 082f9c2945260fd9b29951caff1c49f6dccab4ea && git merge --no-ff ef4b6bc350174e99a16427d1745754bdfa14a548
node scripts/docs-audit/affected-docs.mjs --json 082f9c2945260fd9b29951caff1c49f6dccab4ea
|
…n all three commands The warning forecasts a 405 at save time, not a style nudge, so it moves out of the os lint-only best-practice sweep into AUTHORING_RULES as an advisory rule: os lint, os validate and os build (and objectstack dev, which runs the registry) all report it, once. It stays a warning and never fails a build. The rule is the exported lintInlineEditBulk with its rule-id constant, and its finding names the object in the where slot. Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3 Co-authored-by: Claude <noreply@anthropic.com>
…e commands Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3 Final head for L1 (first review) —
|
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 2da6508 · 2026-11-17T04:12Z |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Inputs read: cards #34567 and #34566 (bodies and all five comments each), PR #34600 (body, file list, comments), the net diff against merge base
① Derived judgments
② Semver levelClause-②: no — confirmed. The diff refuses nothing and widens nothing an author can write;
③ Boundary flags
④ Design judgment
S1 (should-fix) — the case's Nits (no effect on correctness or the contract):
One graded finding is open on this head, S1; its fix earns a delta review. Implemented-by: VERDICT: PASS |
…e route Claude-Session: https://claude.ai/code/session_01ADHkmSMwg7iTEBBE4qY9Y3 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmS6aD6wyUggsi2rWNK 席位核对L1 first review — ACCEPT · head Read on GitHub and on a local worktree at this head, not off the report: Checklist
Spot readings at this head (own runs)
Deviations accepted
Contract review: owed. Landing tier: |
|
repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3 Final head for L1 (delta) —
|
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head ef4b6bc · 2026-11-17T04:59Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmS6aD6wyUggsi2rWNK 席位核对L1 delta — ACCEPT · head Delta only: Delta
Own readings at this head
Deviations accepted: none new. D1 (only the Contract review: a delta L2 on this head is owed. The record 6938207311 is a PASS on Landing tier: |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Delta review on top of record 6938207311 (PASS at What moved between the heads, read from the git objects: one commit ( The Check-runs on this head: 72, all completed; 60 ① Derived judgments
② Semver levelClause-②: no, and ③ Boundary flags
④ Design judgment
S1: closed N6 (nit) — with The remaining files in Scope ( No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-17T05:03Z · Head-sha: ef4b6bc 维护者速读
席位意见:同意合并。两张卡都有 HotCRM 实测拉动;技能改的是默认推荐,规则只是警告,不收窄任何已能通过的元数据。 席位核对
|
Requested by Steve · project thread
Fixes #34567
Fixes #34566
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-ui技能的表单类型表改为默认simple(分组堆叠、一页滚动),不再把字段多的对象引向tabbed,并补一段折叠分组、columns、modalSize的选用;两份技能写明inlineEdit的保存要求父子对象都允许bulk;新增编写期规则relationship/inline-edit-needs-bulk(警告),登记在AUTHORING_RULES,os lint、os validate(含objectstack dev)、os build三个命令都报。packages/lint/src/data-model-rules.ts的lintInlineEditBulk与packages/lint/src/authoring-rules.ts里它的登记项,skills/objectstack-ui/SKILL.mdForm Views 一节,scripts/check-skills-token-ratchet.mjs三行上限的注释算式。pnpm --filter @objectstack/cli exec vitest run --project unit test/data-model-rules.test.ts -t inline-edit-needs-bulk,应见 8 个用例全绿(含经注册表跑三个命令的一例)。What changes
#34567 (form layout).
skills/objectstack-ui/SKILL.md§ Form Views:simpleis "stacked sections on one scrolling page — the default, at any field count" (the "≤ 15 fields" cap is gone);tabbedis "only for sections read apart", and the row names its cost: a required field on another tab is flagged only on its tab, and the tab strip overflows on a phone.simpleand collapses what is rarely filled —collapse: 'collapsed'on the object'sfieldGroupsentry, orcollapsed: trueon a form section that lists its ownfields;columns(form or section) is a per-row ceiling a narrow screen lowers, unset a section draws two, so3for a wide data-entry form;modalSize(smtofull) sizes the New / Edit dialog, unset the field count pickslgorxl.origin/main1e4656d:FormViewSchema.typedefault'simple'andmodalSizeenum (packages/spec/src/ui/view.zod.ts);FormSectionSchema.collapsed(refused besidegroup, so the paragraph names the object'sfieldGroups[].collapsefor grouped sections) andcolumns1–4 as a ceiling; the renderer's undeclared section densityUNDECLARED_SECTION_COLUMNS = 2(ui/packages/plugin-form/src/autoLayout.ts) and the dialog's undeclared size, bounded tolg/xl(ui/packages/plugin-form/src/ModalForm.tsx). ADR-0050 rulessimplethe default layout and says nothing about when to picktabbed; the tabbed costs are the card's HotCRM staging measurement.skills/objectstack-ui/evals/views-apps-actions-pages.json: a 42-fieldopportunityform opened in the New dialog;must_containtype: 'simple',modalSize;must_not_containtype: 'tabbed'(absent from its ownexpected_output). Either collapse route passes:collapsed: trueon a section orcollapse: 'collapsed'on the object'sfieldGroups, asexpected_outputand the skill paragraph both allow.#34566 (
inlineEditneedsbulk). The parent's form saves aninlineEditchild's rows with the parent in one cross-object/api/v1/batch(ADR-0035), and that route gates EVERY op asbulkplus its write on the op's own object (packages/rest/src/batch-routes.ts, the per-opapiAccessDenialFromEnable(obj.enable, op.object, 'bulk', { bulkChild: op.action })loop). An undeclaredapiMethodsis unrestricted (resolveEffectiveApiMethodsinpackages/spec/src/data/api-derivation.ts), so only a declared list without'bulk'refuses.skills/objectstack-ui/SKILL.mdMaster-Detail Forms item 1 andskills/objectstack-data/rules/relationships.md§ Inline Editing: "A parent or child declaringenable.apiMethodsmust list'bulk', or that save is refused405 OBJECT_API_METHOD_NOT_ALLOWED."packages/lint/src/data-model-rules.ts(spec-lane path, carried with this card's implementation half):lintInlineEditBulk(objects), rule idrelationship/inline-edit-needs-bulk(RELATIONSHIP_INLINE_EDIT_NEEDS_BULK),warning. It fires on a relationship field withinlineEdittrue/'grid'/'form'whose parent or own object declaresenable.apiMethodsthat the spec's ownisApiOperationAllowed(resolveEffectiveApiMethods(enable), 'bulk')refuses ([]included), once per object, atobjects[N].enable.apiMethods, fix lineadd 'bulk' to OBJECT.enable.apiMethods. It is a standalone function, not a branch oflintDataModel(which staysos lint-only underDIRECT_CALL_RATCHET).packages/lint/src/authoring-rules.ts: oneAUTHORING_RULESentry —tier: 'advisory',input: 'parsed',commands: ALL,surfaces: CLI_ONLYwith the existingRUNTIME_OBJECT_ADVISORY_VOLUMEreason — soos lint,os validate(andobjectstack dev) andos buildall report the warning through the registry. Advisory: it never fails a build, and the registry wiring test confirms the function emits no'error'.packages/lint/src/index.tsexports the function and its id.skills/objectstack-data/references/lint-rules.md: one table row for it.content/docs/(deployment/cli.mdx,deployment/validating-metadata.mdx,getting-started/build-with-claude-code.mdx,ui/react-pages.mdx) now printRunning author-time rules (69)...: the new registry entry raises the countos validateandos buildprint, andcheck:docs-transcript-driftderives it.describeinpackages/cli/test/data-model-rules.test.ts(the existing shared harness file for the data-model rules): one case through the registry — for each oflint,validate,build,authoringRulesFor(command)listslintInlineEditBulkandrunAuthoringRules(command, …)returns exactly onewarningatobjects[0].enable.apiMethodswith its fix line, andlintDataModelno longer reports the id — then the parent arm for each oftrue/'grid'/'form'(severity, path, fix, message namesOBJECT_API_METHOD_NOT_ALLOWED), the child arm,[]as deny-all, one finding per parent with two inline children, and silence forbulklisted /apiMethodsundeclared /inlineEditabsent orfalse.Ratchet (
scripts/check-skills-token-ratchet.mjs). Restatement is cut first, each cut keeping a home:objectstack-ui/SKILL.md: the derived-FK / roll-up paragraph under Master-Detail Forms (-223 bytes; the line-item paragraph's "every behaviour is derived from the DATA MODEL" and objectstack-datarules/relationships.md§ Roll-up Summaries) and the "row-by-row" sentence under Field Conditional Rules (-97; objectstack-data SKILL.md § Conditional Field Rules, linked on the line above). Remainder raised in two pins, one per card: 3833 → 3888 → 3921 tokens (15329 → 15549 → 15684 priced bytes), zero headroom, under the standing ruling, verbatim and untranslated: 「A:先削重复,余额按实测提高」 (ruling record 6513306068).objectstack-data/rules/relationships.md: the precondition (+129 bytes) is paid in the file — thesubformssentence folded into the objectstack-ui pointer, the related-list example's "write side" comment, "(no UI config)" — 16925 → 16916 bytes, row 4232 → 4229.objectstack-data/references/lint-rules.md: the closing "target a lint-clean model" paragraph restated the table's rows one by one and is cut; 3829 → 3735 bytes, row 970 → 934.Skills readings (lines, merge base
origin/main8dd8192 → this head):skills/objectstack-ui/SKILL.mdskills/objectstack-data/rules/relationships.mdskills/objectstack-data/references/lint-rules.mdskills/objectstack-ui/evals/views-apps-actions-pages.json(eval fixture)skills/*/SKILL.mdskills/treeTokens:
objectstack-ui/SKILL.md3833 → 3921,relationships.md4232 → 4229,lint-rules.md958 → 934.Changeset
.changeset/34567-form-layout-inline-edit-bulk.md:@objectstack/skillspatch,@objectstack/lintpatch (Metadata-protocol: nonetakespatch), both declaration lines at line start.Tests
All readings at head
2da6508c15(branch merged withorigin/main8dd8192; the merge touched nopackages/lintorpackages/cli/testpath) unless marked.ef4b6bc350changes only eval case 19'smust_contain(a fixture no test or gate executes); the gate round and overlap-check below are atef4b6bc350.pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2 test/data-model-rules.test.ts— Test Files 1 passed, Tests 64 passed (56 before, +8 new).pnpm --filter @objectstack/lint test— Test Files 214 passed, Tests 9091 passed, at09c5d36610(the registry commit), includingauthoring-rule-wiring.test.ts.09c5d36610.pnpm --filter @objectstack/lint run typecheckexit 0;pnpm --filter @objectstack/cli run typecheckexit 0, at09c5d36610.node scripts/check-skills-token-ratchet.mjsexit 0 at2da6508c15.Ablation (rerun on the registry rule)
node scripts/ablation-replace.mjs --file packages/lint/src/data-model-rules.tsreplaced the rule's verdict lineif (isApiOperationAllowed(resolveEffectiveApiMethods(objects[j]?.enable), 'bulk')) continue;with an always-continue twin carrying the markerABLATED_34566(anchor 1 → 0, blob0d6fd144419e→9c758edbcf1b), rebuilt@objectstack/lint, andnode scripts/ablation-dist-preflight.mjs @objectstack/lint ABLATED_34566found the marker indist/. The run-t inline-edit-needs-bulk: Tests 7 failed, 1 passed — every hit case red, the registry case included; the silence case green. Restored: blob == HEAD (0d6fd144419e),git diff HEADempty; rebuilt, preflight--absentpassed, Tests 64 passed. Log: project shareobjectstack-seat2/34566-ablation-r2.log. Run at09c5d36610; later commits on the branch touch only the changeset, fourcontent/docs/transcript lines and the merge fromorigin/main.Derived gate round at `ef4b6bc350` — 123 derived, 123 run, 123 exit 0; `dispatch-gates --ran` 0 NOT-MEASURED
Every family read exit 0 on its first pass at this head; no rerun.
Acceptance notes
apiMethodswithoutbulkis refused the same way. Both the skill sentence and the rule cover parent and child, and the rule coverslookupchildren withinlineEditas well asmaster_detailones (the relationship section teaches both).AUTHORING_RULESwithcommands: ALL, not insidelintDataModel(whichDIRECT_CALL_RATCHETkeepsos lint-only), soos lint,os validate/objectstack devandos buildprint it. It stays advisory: a warning on every command, never a failed build.references/lint-rules.mdkeeps itsos lintframing, which remains true; widening that intro would cost tokens the file no longer has.bulkgate widens what REST accepts; ADR-0035 and ADR-0103 D3/D5 carry no ruling that the form save must be ungated, so the card's first road stands.inlineEdit: true, so a relationship declaring 'grid' or 'form' is told to add inlineEdit, and an association declaring 'grid' or 'form' is never warned #34636 (finding, awaiting triage).relationship/line-items-inline-edittestsdef.inlineEdit !== trueand the association check tests=== true, so both miss'grid'and'form': a*_linechild that already declaresinlineEdit: 'grid'or'form'still gets the "consider inlineEdit: true" suggestion. Not changed here.2da6508c15), dispositions. S1 fixed inef4b6bc350: eval case 19'smust_containno longer requires the literalcollapsed: true, so an answer that collapses through the object'sfieldGroups(collapse: 'collapsed', which its ownexpected_outputand the skill sanction) is not failed;must_not_containtype: 'tabbed'andmust_containmodalSizecarry the case, andexpected_outputis unchanged. N5 (literaltype: 'simple') left as is, matching case 1's convention. N1 (a child reached only throughsubformsor a pagedetailsblock, withoutinlineEdit, needsbulkthe same way) and N3 (theRUNTIME_OBJECT_ADVISORY_VOLUMEsurface reason keeps the warning off the runtime door) are follow-up candidates, not changed here. N2 (lint-rules.mdkeeps itsos lintframing) is the accepted deviation above. N4 (keeping a required field out of a collapsed section) left as is.describe, so it is inpackages/cli/test/data-model-rules.test.ts.Verification
node scripts/pm/overlap-check.mjs --branch=HEAD --exclude-pr=34600atef4b6bc350againstorigin/main082f9c2:VERDICT clean exit 0— merges cleanly withorigin/mainand with chore: version packages #33849 (sharesskills/objectstack-ui/SKILL.md). Earlier rounds atd67719d4,4e35eed78dand2da6508c15were clean too.skills/objectstack-ui/SKILL.md,skills/objectstack-ui/evals/views-apps-actions-pages.json,skills/objectstack-data/rules/relationships.md,skills/objectstack-data/references/lint-rules.md, three rows ofscripts/check-skills-token-ratchet.mjs, one root changeset, the fourcontent/docs/transcript lines, andpackages/lint/src/data-model-rules.ts,packages/lint/src/authoring-rules.ts,packages/lint/src/index.tswith the test inpackages/cli/test/data-model-rules.test.ts(spec-lane paths, carried with this card's implementation half).skills/**is a governed surface. This PR stays draft and lands only after aGOVERNED_APPROVERSapproval; contract review is routed by the seat.Generated by Claude Code