Repository navigation
fix(scenarios): travel_expense's verified build edits its lines inline again, and each build's provenance names the scorer it passed - #38009
Merged
Conversation
…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
Contributor
📓 Docs Drift CheckNothing 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): |
Contributor
Author
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 1e46a68 · card #37917 · area s2-eval · 2026-11-27T15:56ZL1 checklist (no review face on this file list: this record is the review of record)
Tier: S. Landing: ready and auto-merge in this stroke. |
This was referenced Nov 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
Fixes #37917
What changes
docs/qa/scenarios/builds/travel_expense.json: one field group added todemotravel_expense_claim.fieldGroups, betweenclaimandstatus:{ "key": "lines", "label": "Expense Lines", "collapse": "none", "relatedList": "demotravel_claim_line" }. Nothing else in the build moves;demotravel_claim_line.claimkeepsinlineEdit: "grid"andinlineTitle.travel_expense.provenance.json:sha256moved, with anamendedentry (from= the old sha256) saying what changed and why; a new top-levelscored={ "runner": "30a8047b", "on": "2026-11-27", "build": "141/141" }.order_to_cash.provenance.json: the samescoredkey (174/174at30a8047b); 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'sscoreInto) and requires every measured Build check to pass with no roll-up charge, and the provenance'sscoredto 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):scoreddescribed, 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; movescored).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
inlineEditon 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, andinlineEditonly 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.tsrecords-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
amendedentries (#36534, #37229), recorded the same way.verifiedstays the authoring run's reading (135/135 under that day's checks);scoredis the latest re-score.Small calls made in this thread (listed per the small-things rule): the key is named
scoredwithrunner(same 8-hex style as the top-levelrunner), 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_cashgetsscoredtoo so the test holds for every build.Verification
30a8047b(namespaced card,scoreCardArtifact+rollupSourceCharges):master-detail-inline-edit("0 edited inline"), 0 roll-up charges (matches the scenarios: the verified builds the ask rounds run on are committed fixtures beside their cards #34920 thread's reading).verified-builds.test.ts: 13/13 pass. With the old build put back it fails 2 (sha256 pin, and the new re-score test withreads Build 140/141 … master-detail-inline-edit (0 edited inline)).defineStackon the build before and after reports the same 4 issues (duplicate action keys from the compiled artifact form, present onmaintoo); the new field group adds none.@objectstack/scenarios:tsc --noEmitclean; vitest 1386 passed, 1 failed + 2 files failed, all pre-existing in this container:test/build/*need the package's own build,packages.test.tspinned-pnpm fails onmainhere too.Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (untouched)pnpm lintpasses. (eslint on the changed test file locally; fullpnpm lintleft to CI)main, one pull request.skip-changeset)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTfmRTz7mZ7LViQLam