Skip to content

fix(scenarios): credit master-detail inline edit by the master's field groups, not inlineEdit: true - #37135

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-37127-scorer-inline-edit-field-groups
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-37127-scorer-inline-edit-field-groups

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Fixes #37127
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改场景卡评分器;主从子表「在主记录表单内联编辑」这一项,改为只看主对象的字段分组是否放置了子表。
  • 为什么做:主从子表的内联由主对象字段分组决定(「一律只看分组」),评分器却仍按已退役的布尔开关给分,按正规方式内联的构建反被判不合格。
  • 出错会怎样:只影响场景评测分数,不影响任何运行中的应用;可直接回退本次改动。
  • 要你做什么:无。

What changes

records-forms.master-detail-inline-edit (packages/qa/scenarios/src/score/scenario-tags.ts) credits a master-detail child as edited inline ONLY when a field group of its MASTER (the FK's reference) names it in fieldGroups[].relatedList (by child object name or object.field) and the FK is one a group may place. This is the runtime's own test, with the same two spec predicates: objectui attachInlineSubforms (ui/packages/app-shell/src/providers/MetadataProvider.tsx, lines 773-774) inlines a child only when isGroupPlaceableRelationship(fk) && fieldGroupsPlaceRelationship(groupsOf(fk.reference), child, fk) (packages/spec/src/data/related-list-body-table.ts, lines 80 and 110). inlineEdit takes no part. The asserts sentence and packages/qa/scenarios/README.md (the tag table) say the same.

Deviation from the card

The card asks to credit a child also "when inlineEdit is 'grid' / 'form'". This PR does not. It follows the maintainer's field-group ruling on #35889 (record 7046311205, 「一律只看分组」), which outranks the card's wording: the runtime inlines nothing without a placing field group (MetadataProvider.tsx L773-775; inlineEdit only feeds resolveInlineMode, the form factor). A scorer that credited it would pass a build that inlines nothing. Decided by the PM (zone a4-A).

Tests

packages/qa/scenarios/test/score/scenario-tags.test.ts:

  • The rich fixture inlines the tasks the supported way: a project field group naming task, no inlineEdit on the FK.
  • The degradation table pins two failing shapes: no placing group, and a lone retired inlineEdit: true.
  • A describe pins: field-group placement credits, by child name and by object.field; a group on the CHILD, or a group naming an FK with relatedList: true, does not credit; inlineEdit: true alone does not credit; 'grid' and 'form' with no placing group do not credit; a placed child credits under either form factor.

Acceptance notes

Verification

Two-minute check: pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/score/ should pass, including the master-detail inline edit describe and both control cards.

Files to read first:

  1. packages/qa/scenarios/src/score/scenario-tags.ts, the tag's run. The risk is the master lookup: rawObject(f, field.reference) is matched by normalised name.
  2. packages/qa/scenarios/test/score/scenario-tags.test.ts, the rich fixture edit in richArtifact. Every other tag scores this fixture.

Readings: the dev reports on #37127 (round 1 and fix round 7146536492).


🤖 Generated with Claude Code

https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr

…d groups, not inlineEdit: true

The records-forms.master-detail-inline-edit tag credited the retired
inlineEdit: true and missed a child placed by a field group of its master.
It now asks the runtime's own placement test (isGroupPlaceableRelationship
plus fieldGroupsPlaceRelationship over the master's fieldGroups), and still
credits a declared 'grid' / 'form' form factor.

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

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 236c8044acb75d18b51d2a487a8624c0fc206594 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 0486513878dd49ad8d91b023a172aa22c46ae8e1 — the merge of head d578ff08407a12586cfb8ca3cca239e3cc574458 into base 236c8044acb75d18b51d2a487a8624c0fc206594, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0486513878dd49ad8d91b023a172aa22c46ae8e1 && git checkout 0486513878dd49ad8d91b023a172aa22c46ae8e1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 236c8044acb75d18b51d2a487a8624c0fc206594 d578ff08407a12586cfb8ca3cca239e3cc574458 && git checkout -B drift-repro 236c8044acb75d18b51d2a487a8624c0fc206594 && git merge --no-ff d578ff08407a12586cfb8ca3cca239e3cc574458

node scripts/docs-audit/affected-docs.mjs --json 236c8044acb75d18b51d2a487a8624c0fc206594

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

…, only a placing field group does

Follows the field-group ruling over the card's grid/form arm: the runtime
inlines nothing without a field group of the master placing the child.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

席位核对 — ACCEPT · L1 · head d578ff08407a12586cfb8ca3cca239e3cc574458 · 2026-11-24T23:15Z

Zone a4-A, card #37127. Read from the PR's diff, the runtime it mirrors and the check-runs, not from the dev reports.

  1. Shape. 4 files, +76 / −7: the tag records-forms.master-detail-inline-edit in packages/qa/scenarios/src/score/scenario-tags.ts (its run and asserts), its pins in test/score/scenario-tags.test.ts, the tag table row in packages/qa/scenarios/README.md, one @objectstack/scenarios patch changeset. Not governed (check-governed-merges: 0 of 4 paths hit the register).
  2. Against the runtime. The tag calls isGroupPlaceableRelationship(fk) && fieldGroupsPlaceRelationship(<master>.fieldGroups, <child object>, <fk name>) — the same predicates with the same argument shapes as objectui attachInlineSubforms (ui/packages/app-shell/src/providers/MetadataProvider.tsx L773-774), read on main 236c8044ac.
  3. Deviation from the card, decided by the PM. inlineEdit: 'grid' / 'form' with no placing group does NOT credit, against the card's "or when inlineEdit is grid/form": the field-group ruling on 主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889 (7046311205, 「一律只看分组」) and the runtime both say such a child is not inlined. Stated in the PR body.
  4. Serial. Landed 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 (merged 22:27Z): main was merged into this branch (pr_update_branch), and Test Core (which carries scenario-cards.test.ts, red before 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 corpus) is success on this head.
  5. Gates. Check-runs on this head: 53, all completed, none failed; every required context success.
  6. Landing. Not governed, under 3000 lines ⇒ the zone lands it. landing-k OK (K = 4 < 15).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr

Landing · head d578ff08407a12586cfb8ca3cca239e3cc574458 · 2026-11-24T23:15Z

Probe Reading
check-governed-merges --pr 37135 NOT governed — 0 of 4 paths hit the register; 83 changed lines
landing-k --pr 37135 OK — K = 4 on origin/main 1f3e9f68e7, hold at 15

State: L1 ACCEPT on this head (just above); 53 check-runs, none failed. Ready and auto-merge in this stroke. On MERGED, card #37127 closes by Fixes.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 23:16
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 0e792da Nov 24, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37127-scorer-inline-edit-field-groups branch November 24, 2026 23:41
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…e again, and each build's provenance names the scorer it passed (objectstack-ai#38009)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu4ADf6K3c79Bin3C2m4JZ5C)_

Fixes objectstack-ai#37917

## What changes

- `docs/qa/scenarios/builds/travel_expense.json`: one field group added
to `demotravel_expense_claim.fieldGroups`, between `claim` and `status`:
`{ "key": "lines", "label": "Expense Lines", "collapse": "none",
"relatedList": "demotravel_claim_line" }`. Nothing else in the build
moves; `demotravel_claim_line.claim` keeps `inlineEdit: "grid"` and
`inlineTitle`.
- `travel_expense.provenance.json`: `sha256` moved, with an `amended`
entry (`from` = the old sha256) saying what changed and why; a new
top-level `scored` = `{ "runner": "30a8047b", "on": "2026-11-27",
"build": "141/141" }`.
- `order_to_cash.provenance.json`: the same `scored` key (`174/174` at
`30a8047b`); the build is untouched.
- `packages/qa/scenarios/test/verified-builds.test.ts`: per build, one
more test. It scores the build against the namespaced card with this
tree's scorer (`scoreCardArtifact` + `rollupSourceCharges`, the runner's
`scoreInto`) and requires every measured Build check to pass with no
roll-up charge, and the provenance's `scored` to name a runner sha, a
date and an all-pass reading. A scorer change that refuses a committed
build now fails in the PR that makes it, and the message says what to
do.
- `docs/qa/scenarios/README.md` (Verified builds): `scored` described,
and what a scorer change that fails a verified build does (re-score in
the same PR; amend when the platform moved under the build, else
rebuild; move `scored`).

## Why

Which side is right: **the scorer**. The card asks for the lines "edited
inline on the claim's form". The build was authored on 2026-11-18, when
`inlineEdit` on a master-detail FK inlined the child in the master's
form by itself. Since the maintainer's objectstack-ai#35889 ruling (ADR-0035, amended
2026-11-20: 「主从子表我认为不应该自动申明放在概览中,除非我通过 fieldGroup 强制指定」) the form
inlines a child only where a field group of the MASTER names it, and
`inlineEdit` only picks the form factor (`attachInlineSubforms`,
`ui/packages/app-shell/src/providers/MetadataProvider.tsx`). The build
names no such group, so on today's runtime the claim's form does not
edit its lines inline. objectstack-ai#37135 moved the check to that same test
(`scenario-tags.ts` `records-forms.master-detail-inline-edit`), so its
"0 edited inline" is a true reading. No card expectation is in question,
so no product call is needed.

Re-verify by amendment, not by a new build: Sales paused new eval rounds
(11:36Z), and the gap is one key the platform's own ruling moved under
the build. That is the same kind of hand edit as the two earlier
`amended` entries (objectstack-ai#36534, objectstack-ai#37229), recorded the same way. `verified`
stays the authoring run's reading (135/135 under that day's checks);
`scored` is the latest re-score.

Small calls made in this thread (listed per the small-things rule): the
key is named `scored` with `runner` (same 8-hex style as the top-level
`runner`), not a per-file scorer hash; the test pins "all measured
checks pass", not the exact count, so a scorer PR that only adds a
passing check does not have to touch provenance; `order_to_cash` gets
`scored` too so the test holds for every build.

## Verification

- Re-score at `30a8047b` (namespaced card, `scoreCardArtifact` +
`rollupSourceCharges`):
- travel_expense, before: Build 140/141, failing only
`master-detail-inline-edit` ("0 edited inline"), 0 roll-up charges
(matches the objectstack-ai#34920 thread's reading).
  - travel_expense, after: Build 141/141, 0 charges.
  - order_to_cash: Build 174/174, 0 charges.
- `verified-builds.test.ts`: 13/13 pass. With the old build put back it
fails 2 (sha256 pin, and the new re-score test with `reads Build 140/141
… master-detail-inline-edit (0 edited inline)`).
- `defineStack` on the build before and after reports the same 4 issues
(duplicate action keys from the compiled artifact form, present on
`main` too); the new field group adds none.
- `@objectstack/scenarios`: `tsc --noEmit` clean; vitest 1386 passed, 1
failed + 2 files failed, all pre-existing in this container:
`test/build/*` need the package's own build, `packages.test.ts`
pinned-pnpm fails on `main` here too.
- No eval round run.

Clause-②: no
Metadata-protocol: none

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(untouched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (eslint on the changed
test file locally; full `pnpm lint` left to CI)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (nothing
publishes: test, docs and fixtures only; `skip-changeset`)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgTfmRTz7mZ7LViQLam

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 size/s tests 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.

Scenario scorer: records-forms.master-detail-inline-edit still credits the retired inlineEdit: true (follow-up of #35926)

2 participants