Skip to content

fix(scenarios): travel_expense's verified build edits its lines inline again, and each build's provenance names the scorer it passed - #38009

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-qzoqbf
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-qzoqbf

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #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 #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. #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 (#36534, #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):
  • 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

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (untouched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint on the changed test file locally; full pnpm lint left to CI)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 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)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTfmRTz7mZ7LViQLam

…e again, and each build's provenance names the scorer it passed

The 2026-11-18 build relied on `inlineEdit: "grid"` alone to inline the
claim lines in the claim's form. Since the #35889 ruling the form inlines a
child only where a field group of the master names it, and the scorer
followed (#37135), so the build read Build 140/141. A field group placing
`demotravel_claim_line` on `demotravel_expense_claim` restores what the card
asks for: 141/141, no roll-up charge.

Each provenance now carries `scored` (runner, date, Build reading), and
verified-builds.test.ts re-scores every committed build against the tree's
scorer, so a scorer change that refuses one fails in the PR that makes it.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTfmRTz7mZ7LViQLam
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 27, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 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 30a8047bad6e264762dd41ded7f1290c1224afc6 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 1e46a68 · card #37917 · area s2-eval · 2026-11-27T15:56Z

L1 checklist (no review face on this file list: this record is the review of record)

  • Shape and checks. 35 success, 21 expected skip, 0 failed on the head (Test Core 10/10, Check Changeset success). 75 changed lines: two committed builds' provenance, one build, the scenarios README, and a test; not governed. skip-changeset is right: the package change is a test, outside the published files[].
  • Which side is right: the scorer. The card asks for claim 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 by itself; since the 主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889 ruling (ADR-0035 as amended 2026-11-20) a child is inlined only where a field group of the master names it, and fix(scenarios): credit master-detail inline edit by the master's field groups, not inlineEdit: true #37135's check reads that. So on today's tree the unamended build does not do what the card asks, and the check's "0 edited inline" is true. No product call is made here: the runtime rule was ruled, and the card is unchanged.
  • The fix. One field group lines (relatedList: "demotravel_claim_line") on the claim, nothing else; the provenance records it as an amended entry with the sha256 it replaced, and the new scored block names the runner, date and Build reading (141/141, was 140/141); verified keeps the authoring run's 135/135. order_to_cash gets its scored (174/174) too. The README says when a scorer change re-scores a build and who moves scored.
  • The new pin. verified-builds.test.ts scores every committed build against its namespaced card with this tree's scorer and requires every Build check to pass with no roll-up charge, so the next scorer change that refuses a build fails in its own PR.
  • Effect on rounds. The ask-day round installs this build with --template; ask turns do not score Build, and no new round is run (rounds paused 11-27). A later ask round on the amended build differs from the ask skill: iterate the objectstack-ask skill and the MCP tool descriptions against the travel_expense ask round until it meets a fixed target #34996 rounds by this one field group, which the provenance names.
  • Declarations. Clause-②: no, Metadata-protocol: none. Fixes #37917 is right: both items are done.

Tier: S. Landing: ready and auto-merge in this stroke.

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 skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scenarios: travel_expense's committed verified build now fails master-detail-inline-edit ("0 edited inline") under today's scorer

2 participants