Skip to content

fix(fields): after a same-edit currency change, a pick's amounts stay and their notes follow the new currency - #37284

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-36412-currency-change-notes
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-36412-currency-change-notes

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Fixes #36412

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 用户可见变化:在报价、订单、发票里选产品带出价格后,如果在同一次编辑中改了币种,价格不会被改动或清空,下方会说明这笔价格是按哪个币种带入的、记录现在是哪个币种;没带入的价格提示会跟着换成新币种;改成与产品价格相同的币种时,提示保留、价格仍空,并提示重新选取即可带入。
  • 为什么做:这是「选产品不跨币种抄价格」那张卡里最后一项(「保留金额并提示」及其 B 方案),替多币种单据的使用者补上改币种后的说明。
  • 出错会怎样:只影响价格下方的提示文字,不写入、不清除任何金额;手动输入的金额不显示提示;可以直接撤回这一个合并。
  • 要你做什么:无。

What changes

The ruling item on this card (comment 7118795825, 「保留金额并提示」) and its branch B (comment 7158109013), on both hosts: the line-item grid (GridFieldWidget) and the record form (LookupField with the declared pairs). Scope is bounded by ADR-0144 D2: new records, records with no saved lines, lines staged in the same edit, and declared pairs on the record's own amounts. Items 1–4 landed in #36918. With this PR the card's last open item is done.

  • Point 1: a currency change in the same edit never changes or clears a filled amount. Measured first. This already holds on main (057cedfa9b6): nothing writes an amount when the code changes. The new pins were run against main's source files, and every amount assertion passed there; the only failures were the note lines that come after them (see Tests). Pinned either way, on both hosts. This PR adds no write.
  • Point 2: an amount a pick copied gets a note once the currencies differ. judgePickWrites now records each amount it copies as CopiedAutofill (target, source, value, under: the code the target was in at the write). The plan gains the optional copied, absent when there is none. Each host keeps these beside the withheld values of the same pick. When drawing, it shows "Unit Price was copied as $100.00, but the record is now in EUR. Enter Unit Price in EUR if it should change." only when all of these hold (copiedAutofillNow): the field still holds that pick, the target still holds the copied value, and the code the target is in now is known and differs from under. A currency change back ends the note.
  • Point 3: a withheld note already shown refreshes to the record's new currency. withheldAutofillNow judges each shown withheld item again with crossCurrencyRefusal, using the picked amount's own currency (its from) against the target's currency as it is now. The note follows the new code, and its reason too: a code cleared reads "no currency is chosen".
  • Point 4: a hand-typed amount gets no note. Only a pick records a copied amount, and the note needs the target to still hold the copied value. So an amount typed by hand, or typed over a copied one, says nothing.
  • Branch B. When the record's currency turns to the picked amount's own, the re-judgement copies nothing. The item takes the new reason nowSameCurrency, the note stays and the cell stays empty: "Unit Price was not filled when it was picked. The record is now in USD: pick again to fill $100.00." A pick again fills it (pinned as the control on the record form). When the target still holds an earlier value (held), the sentence says to clear the field, then pick again (lookup.autofillNowSameCurrencyHeld, round 3).
  • "Now" on each host is the same context the pick used, with no picked row. On the grid that is gridAutofillCurrency on the current line, with columnCurrencies (a header-following line) or columnFields (the line's own code). On the record form it is currencyFor on the live record, followed parent included. So a code written later in the edit is read exactly as a pick would read it.
  • i18n: three sentences, lookup.autofillNowSameCurrency, lookup.autofillNowSameCurrencyHeld and lookup.autofillCopiedUnder, in all 11 packs (zh-Hant generated by gen:zh-hant) and in FIELD_DEFAULTS.
  • One changeset, .changeset/36412-currency-change-notes.md: @object-ui/fields and @object-ui/i18n, both patch. The fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 changeset is left untouched. @object-ui/plugin-form changes in its test file only, which is not published.

Clause-② rework: route (a), copied optional

At the seat's rework the first declaration, Clause-②: no, did not hold. Route (a) is taken; no route (b), nothing here needs copied to be required. LookupAutofillPlan.copied is now optional (copied?: CopiedAutofill[]). judgePickWrites leaves it out when the pick copied no amount under a judged currency, and every in-package reader treats absent as none (LookupField's two noteWithheld calls, GridFieldWidget's pick, planLookupAutofill's pass-through). A plan built without copied is still a plan, so nothing is narrowed. The published @object-ui/fields surface widens:

  • new exports withheldAutofillNow, copiedAutofillNow, copiedAutofillMessage and the type CopiedAutofill;
  • the optional member LookupAutofillPlan.copied;
  • the WithheldAutofill.reason union gains nowSameCurrency, so code that switches over every reason gains one case.

The same declaration is in the changeset. Metadata-protocol: none stands: no spec key, value or metadata type changes. A pin asserts that a plan which copied no amount carries no copied.

Tests

Round 3 (the seat's S1, N1, N2 and N4), all under os-verify-lock:

  • Both pin files at dd0ebf7f96: Tests 71 passed (71). Two new pins hold the held branch B case on each host (grid: header USD over a line holding 80, then EUR; form: an overwrite: true pair over a typed 80 on a EUR quote, then USD). Each asserts the exact clear-then-pick-again sentence and that the earlier value stays. The grid branch B pin now ends with the N4 control: a pick again fills 100 and no note remains.
  • Ablation: the held arm in withheldAutofillMessage is deleted (ablation-replace --delete, restored to the HEAD blob 848e5fd1844c). Tests 2 failed, 9 passed: exactly the two held pins fail. The non-held branch B pins on both hosts stay green, so their wording is unchanged.
  • The three-package run at dd0ebf7f96 failed one test, all-locales-key-parity "placeholders match en in every pack": the first zh-Hans text of the new key named {{field}} three times against en's two, and zh-Hant was generated from it. Fixed in 315c0d8fef. At that head, packages/i18n/ gives Test Files 111 passed, Tests 2028 passed, 13 skipped. Only locale strings changed between the two heads; fields and plugin-form were green at dd0ebf7f96 (685 of 687 files passed, 1 skipped, and the one failure was that i18n test). type-check of the three packages exits 0 at 315c0d8fef.

Round 2 (the Clause-② rework), head a602513471, all under os-verify-lock: the same three-package run gives Test Files 686 passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861), VERDICT command-exit 0. type-check of the three packages exits 0. Ablations of the reworked lines, each restored to the HEAD blob e96dadd3fbba:

  • copied always present (return copiedAmounts.length > 0 ? { ...plan, copied: copiedAmounts } : plan; becomes return { ...plan, copied: copiedAmounts };): Tests 1 failed, 8 passed. The absent-means-none pin fails.
  • No copied note, re-run on the new head: Tests 3 failed, 6 passed. The copied note fails on both hosts, plus the pure pin.

Round 1 readings follow. Tests on head 482148532, all under os-verify-lock: pnpm --dir ui exec vitest run --maxWorkers=2 packages/fields/ packages/plugin-form/ packages/i18n/ gives Test Files 686 passed, 1 skipped (687), and Tests 9840 passed, 21 skipped (9861), VERDICT command-exit 0. type-check of @object-ui/fields, @object-ui/plugin-form and @object-ui/i18n exits 0, after the closure build. Both pin files are in the tsconfig.test.json program (--listFiles: 1 hit each).

New pins, the point 1 measurement, and ablations
  • ObjectForm.lookupAutofill-28245.test.tsx, new describe "a same-edit currency change keeps amounts and says so", 4 tests through ObjectForm. (1) A USD quote picks a $100 product. Changed to EUR, it keeps 100 and shows the copied note with its exact text. Control: before the change there is no note, and changing back to USD ends it. (2) A JPY quote's withheld note names GBP and no longer JPY after the code becomes GBP, and the price stays empty. (3) Branch B: a EUR quote's withheld note reads exactly "Unit Price was not filled when it was picked. The record is now in USD: pick again to fill $100.00." once the code becomes USD, and the price stays empty. Control: the pick again fills 100 and no note remains. (4) A typed 55 gets no note through a currency change, and neither does 55 typed over a copied 100.
  • GridField.lookupAutofill-28245.test.tsx, new describe of the same name, 5 tests. The same four cases through GridField, with the header currency handed in as columnCurrencies and changed by a rerender, for a product priced in EUR. One more is pure: withheldAutofillNow follows the currency now, nowSameCurrency applies when it matches, and with no currency known the item is returned unchanged; copiedAutofillNow names a differing code only while the target holds the copied value. The Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412 declared-pairs pin now also asserts copied (the price is recorded under the code the same pick wrote).
  • Point 1 measured on main's code. The five source files were restored to 057cedfa9b6 in the tree only, the -t ruling pins were run, and the files were restored with git checkout HEAD (git diff HEAD empty afterwards). Result: 7 failed, 2 passed. The two hand-typed pins passed. Both copied-amount pins failed on the note line after their amount assertion (ObjectForm line 745, GridField line 641): the amount kept its value through the currency change on main. The refresh and branch B pins failed on their note text, and the pure pin failed on the missing export. Point 1 has no implementing line to ablate: nothing writes an amount on a currency change, before or after this PR.
  • Ablations on the committed tree with scripts/ablation-replace.mjs (lookupAutofill.ts; vitest aliases @object-ui/* to src, so no dist sits between mutation and run), -t ruling, each restored to the HEAD blob 18535d11faef:
    • if (!now) return item; becomes return item; (no refresh): Tests 5 failed, 4 passed. Refresh and branch B on both hosts, plus the pure pin.
    • return to && to !== item.under ? to : undefined; becomes return undefined; (no copied note): Tests 3 failed, 6 passed. Copied note on both hosts, plus the pure pin.
    • if (!sameValue(current, item.value) || !now) return undefined; becomes if (!now) return undefined; (a typed-over amount keeps the note): Tests 3 failed, 6 passed. Hand-typed on both hosts, plus the pure pin.

Acceptance notes

  • Clause-②: yes (widening) (see the rework section above). The diff touches no packages/spec/** and no metadata. git grep finds LookupAutofillPlan only inside ui/packages/fields.
  • Branch B over a filled target (round 3, the seat's S1): a withheld value that carries held (a pick over a target that still holds an earlier value) now gets its own branch B sentence, lookup.autofillNowSameCurrencyHeld: "Unit Price was not filled when it was picked and still holds its earlier value. The record is now in USD: clear Unit Price, then pick again to fill $100.00." For a declared pair without overwrite, picking the same record again does not replace a value that record did not fill (the spec's overwrite rule), so the sentence says to clear the field first. Re-pick behaviour is unchanged.
  • A copied amount whose record's currency becomes unset or unreadable gets no note (no current code to name). Only a known, different code is named, as the ruling's example reads.
  • N9 (record-page editor re-renders): not measured. The new work per render is one re-judgement per shown note, and nothing runs when no pick left a note.

Verification

Gates

Read first, by risk: (1) judgeCopy, withheldAutofillNow and copiedAutofillNow in lookupAutofill.ts; (2) the note block at the end of LookupField.tsx (pickStands, currencyNow); (3) the per-row note block in GridFieldWidget.tsx (lineCurrencyNow).

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-form/src/ObjectForm.lookupAutofill-28245.test.tsx -t ruling passes 4 tests. In them, a USD quote picks a $100 product, changes its currency to EUR, keeps 100, and shows "Unit Price was copied as $100.00, but the record is now in EUR."

https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW

🤖 Generated with Claude Code


Generated by Claude Code

@github-actions github-actions Bot added size/l 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_01QSeKYnagJvGbCtNg2PhvgW

Final green head for the delta L1 and same-head contract review (2026-11-25T13:22Z): a602513471817e4928b183ace2358b14b4b7072d.

  • Checks at this head: 47 success, 15 skipped (all 15 expected per check-expected-skips, exit 0), 0 failed, 0 pending. mergeable_state: clean.
  • Size: 19 files, +511 / −36; not governed (0 of 19 paths hit the register); Fixes #36412. Metadata-protocol: none.
  • This round (Clause-② rework, route (a)): LookupAutofillPlan.copied is now optional (copied?: CopiedAutofill[]). judgePickWrites leaves it out when the pick copied no amount under a judged currency, and every in-package reader treats absent as none: LookupField's two noteWithheld calls, GridFieldWidget's pick, and planLookupAutofill's pass-through. A new pin asserts that a plan with no copied amount carries no copied key. Behaviour is unchanged from round 1.
  • Declaration: Clause-②: yes (widening), in both the changeset and the PR body. It names the new exports withheldAutofillNow, copiedAutofillNow, copiedAutofillMessage and the type CopiedAutofill, the optional LookupAutofillPlan.copied, and nowSameCurrency added to the WithheldAutofill.reason union.
  • Evidence: vitest over fields, plugin-form and i18n: 686 test files passed, 1 skipped. Type-check exit 0. Two ablations on the reworked lines went red (1 and 3 failures) and were restored to the HEAD blob. 41 of 41 derived gates ran and exited 0.
  • Overlap: overlap-check VERDICT clean (including against feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a602513471817e4928b183ace2358b14b4b7072d
Local-runs: probe — the dispatch asked for the pins to be re-run and each ruling point ablated: the two pin files at this head in a throwaway worktree (69 passed, 9 of them the ruling pins), ten ablations each restored to the head blob, and two read-only probes (a grid re-pick after branch B, and the held case under branch B)

Face: declaration (Clause-②: yes (widening) on the PR body and on .changeset/36412-currency-change-notes.md). record-recognisers.mjs --paths on the 19 paths decides no face, so the changeset's line decides it. No arm reads (narrowing), so the owed tier is TIER_DEFAULT, not CONTRACT_REVIEW_TIER. No path in the diff hits a governed surface or packages/spec/src/**.

① Derived judgments

  • @object-ui/fields reaches lookupAutofill.ts through export * from './widgets/lookupAutofill.js' in src/index.tsx, so everything that file exports is published. The new exports withheldAutofillNow, copiedAutofillNow, copiedAutofillMessage and the type CopiedAutofill widen the surface. Right.
  • LookupAutofillPlan.copied?: CopiedAutofill[] is optional, and judgePickWrites omits it when nothing was copied under a judged code. A plan built without it still type-checks. Every reader in the package defaults it: copied ?? [] twice in LookupField, copied = [] in GridFieldWidget, and a conditional spread in planLookupAutofill. The pure pin (not.toHaveProperty('copied')) holds this. It adds a member and requires nothing. Right.
  • WithheldAutofill.reason gains nowSameCurrency. Widening a union in output position can break a consumer that switches exhaustively, so I checked whether it narrows for consumers. It does not: (a) git grep at the head finds no consumer of WithheldAutofill or .reason outside ui/packages/fields. The one reader inside it, withheldAutofillMessage, is a ternary chain with a fallback, not an exhaustive switch, and it now handles the new arm. (b) Only the new withheldAutofillNow produces the arm. judgePickWrites, planDeclaredLookupAutofill and planLookupAutofill never return it, so an existing caller cannot see it at runtime. (c) The repo already treated this as additive: fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 added targetCurrencyUnread to this union and unread to AmountCurrency without a (narrowing) arm. (d) The changeset names the cost to a consumer that switches over every reason. So the declaration is yes (widening), not a narrowing. Right.
  • judgeCopy changes its return shape, but it is not exported. planLookupAutofill is not in the index's named GridField.js export list. Neither is on the surface. Right.
  • @object-ui/i18n gains lookup.autofillNowSameCurrency and lookup.autofillCopiedUnder in all 11 packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant). Each carries exactly {{field}}, {{amount}} and {{to}}. The English pair is mirrored in FIELD_DEFAULTS. This adds keys and removes none. Right.

② Semver level

  • @object-ui/fields patch and @object-ui/i18n patch, with Metadata-protocol: none. That is the level AGENTS.md sets for a widening outside the protocol, and no spec key, value or metadata type moves. @object-ui/plugin-form changes only in a test file, which is not published, so it correctly gets no entry. main is in Changesets pre mode (next); a patch entry is fine there.
  • The Clause-②: line is the same in the PR body and the changeset. The changeset's widening paragraph lists the same four exports, the optional member and the union arm that ① finds.

③ Boundary flags

  • open_questions: empty.
  • out_of_scope_findings, first entry (branch B over a filled target, "not filed"): answered below as S1.
  • out_of_scope_findings, second entry (a copied amount whose code becomes unset gets no note): answered. Point 2 of ruling 7118795825 names the record's current currency, and with none there is no code to name. This is acceptable as built, and the PR body says so.
  • SQL push-down: the diff adds no data read, no id materialisation and no join. Nothing to find.
  • Author: objectstack-fleet[bot], so there is no outside login to name.
  • S1 (should-fix) — For a withheld item that carries held, the branch B sentence tells the user to do something that does nothing. That item comes from a re-pick over a target an earlier pick filled. Once the record turns to the picked amount's currency, the note reads "…The record is now in EUR: pick again to fill €100.00. Unit Price still holds its earlier value." For a declared pair without overwrite, picking the same record again writes nothing, because declaredPickWrites skips a filled target that the previous record (now that same record) did not fill. The re-pick then clears the note, so the cell keeps the old amount and nothing explains why. I probed this read-only at this head: planDeclaredLookupAutofill with previous set to the picked record and the cell holding the earlier 50 returns {"patch":{},"withheld":[]}. The PR body and the dev report both record this case as "Noted, not filed". This PR adds the sentence, and it ships in 11 languages. Either of two fixes closes it: (a) in the held case, say to clear the field and then pick again, with a pin on both hosts; or (b) the seat files a follow-up card under Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412 that names the case, and the PR body cites it.

Implemented-by: claude/issue-36412-currency-change-notes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head a602513471817e4928b183ace2358b14b4b7072d · 2026-11-25T13:41Z

  • Scope. PR fix(fields): after a same-edit currency change, a pick's amounts stay and their notes follow the new currency #37284 (card Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412): ruling 7118795825 「保留金额并提示」, all four points, and branch B 7158109013, on the line-item grid (GridFieldWidget) and the record form (LookupField with declared pairs). I read the whole net diff against merge base 057cedfa9b6: 19 files. The same-head contract review is posted beside this one at TIER_DEFAULT: the declaration face, no (narrowing) arm, so the seat does not need to re-run it at CONTRACT_REVIEW_TIER.
  • Pins re-run at this head. Throwaway worktree, closure built with OS_SKIP_DTS=1. Both pin files: 69 passed. With -t ruling: 9 passed, 5 on the grid and 4 on the form.
  • Point 1 (no amount changed or cleared): holds on both hosts, and no write is added. The hosts gain only note state (noteWithheld and setWithheldFills carry copied) and render rows. There is no new onAutofill, applyPatch or onChange call, and withheldAutofillNow and copiedAutofillNow are pure. The pins assert the amount through each currency change and back: grid unit_price stays 100 (EUR→USD→EUR); form unit_price keeps 100 (USD→EUR→USD). A withheld cell stays empty, and a typed 70 or 55 is unchanged. Ablation: I injected a write that clears a pick-copied amount on a currency change (the option the ruling did not take). Grid run: 1 failed, at GridField…test.tsx:640 (expected null to be 100). Form run: 1 failed, at ObjectForm…test.tsx:744 (expected '' to contain '100').
  • Point 2 (a copied amount is noted under its copied-under code and the code now): implemented and pinned on both hosts. judgeCopy records under from the target's code after this pick's writes, and the hosts show the note only while the pick and the copied value both stand and the code now differs. Ablations, one host at a time with that host's copiedShown emptied: grid run 1 failed (grid copied test); form run 1 failed (form copied test). The other host stayed green each time.
  • Point 3 (a shown withheld note refreshes): implemented and pinned on both hosts. Each host maps the shown items through withheldAutofillNow with the code now: gridAutofillCurrency on the current line, and currencyFor({}) on the live record. Ablation, with the .map(withheldAutofillNow…) line removed one host at a time: grid run 2 failed (refresh and branch B); form run 2 failed (the same two).
  • Point 4 (a hand-typed amount gets no note): pinned on both hosts. A typed amount was never picked, so it has no copied entry. A value typed over a copied amount fails the sameValue guard. Ablation, with the sameValue clause dropped from copiedAutofillNow: 3 failed (the hand-typed test on both hosts, plus the pure pin).
  • Branch B (note stays, cell stays empty, re-pick fills): holds, with no auto-fill. withheldAutofillNow returns only a re-judged item, and nothing writes. Ablations: with the nowSameCurrency arm returning item unchanged, 3 failed (branch B on both hosts, plus the pure pin). Then an auto-fill of amount on nowSameCurrency, injected one host at a time: grid run 1 failed and form run 1 failed, each its own host's branch B test. The note disappears once the cell is filled, so the note-text assertion catches it before the empty-cell assertion. The form pins re-pick as a control. A read-only grid probe (the same pick again after the header turns to EUR) also fills 100 and clears the note.
  • Widening. copied is optional and absent means none (pinned), so a producer narrows nothing. The nowSameCurrency arm does not narrow for consumers either. No repo consumer outside ui/packages/fields reads WithheldAutofill or its reason. The one reader inside the package (withheldAutofillMessage) is a ternary with a fallback and handles the arm. Only the new withheldAutofillNow emits it, so existing callers never see it at runtime. fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 set the precedent by adding targetCurrencyUnread to the same union as additive. The changeset names the cost of an exhaustive switch. Clause-②: yes (widening) is right.
  • i18n. The two new lookup.* keys are in all 11 packs. Placeholders match in every pack ({{field}}, {{amount}}, {{to}}). The English text is in FIELD_DEFAULTS too. The translations read correctly; zh-Hans and zh-Hant say 「记录现已改为 / 記錄現已改為」.
  • Changeset, sentence by sentence. The title, the scope sentence (new record, no saved lines, staged lines), the three behaviour bullets and their quoted strings match en.ts and the pins. "The note goes away when the currency changes back or someone edits the amount" is true (copiedAutofillNow). "A currency change never fills a field by itself" is true (see the ablation above). The widening paragraph matches ①. Both packages are patch with Metadata-protocol: none, which is right; plugin-form changes only a test.
  • 维护者速读, sentence by sentence. 用户可见变化: correct apart from N2. 为什么做: correct; this is the card's last open item. 出错会怎样: correct; no amount is written or cleared, a hand-typed amount gets no note, and the PR reverts cleanly. 要你做什么:无: correct.
  • Check-runs at this head. 62 runs: 47 success, 15 skipped, 0 failed. The combined status has 0 statuses. I could not take my own expected-skips reading: check-expected-skips --pr 37284 exits 3 (NOT MEASURED), because this checkout's ci.yml is not main's tip. I rely on the zone's exit-0 reading in 7163698064, and the 15 skipped names are the usual ui-only set (Test Core and its planner, Build Core, the dogfood and queue legs, the opt-in harnesses).
  • K. landing-k --pr 37284 exits 3: the last green run (45619303836) ran no Test Core shard, so no Affected-set diff base was printed. As a stand-in, git rev-list --count --first-parent gives 15 from merge base 057cedfa9b6 to origin/main 875ae40f85b, and 12 from GitHub's recorded base 622f3985fe5. The zone takes the reading at landing.
  • merge-tree and overlap. I ran the bare shared-clone probe (no driver) with both commits fetched: merge-tree --write-tree of 875ae40f85b and the head exits 0, tree ce68670af94. fix(fields): the fill-in dialog judges option visibleWhen on the record the write would leave #37264 (merged as 0ad44a32827) touches RequiredFieldsDialog.tsx, requiredWhenPrompt.ts, its test and its changeset. It shares no file and no code path with this PR. Since the merge base, main changed only the 11 locale packs among this PR's files (9 lines in en.ts, none of them lookup.*), and they merge clean.
  • Size. 19 files, +511/−36, or 547 changed lines. The 538 in the dispatch and in the PR's Verification block is the round-1 figure. With fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 (+644/−70, 714 lines) the card totals 1,261, under 3,000.
  • S1 (should-fix) — For a withheld item that carries held (a re-pick over a target an earlier pick filled), the branch B sentence gives an instruction that does nothing. After the record turns to the picked amount's currency, the note says "…pick again to fill €100.00. Unit Price still holds its earlier value." For a declared pair without overwrite, picking that record again writes nothing (declaredPickWrites skips a filled target that the previous record did not fill). It also clears the note, so the old amount stays and nothing explains why. I probed this read-only at this head: the re-pick plan is {"patch":{},"withheld":[]}. This PR adds the sentence (in 11 languages). The PR records the case as "Noted, not filed". Either fix closes it: (a) in the held case, say to clear the field and then pick again, pinned on both hosts; or (b) file a follow-up card under Cross-currency pick follow-ups: no note on a re-pick over a filled cell, an unbounded opening wait, record forms outside the gate, and a code-plus-amount pick #36412 that names the case, and cite it in the PR body.
  • N1 — The PR body's Verification block still says "Size: 19 files, +502/-36 (538 changed lines) … card totals 1,252", beside the correct round-2 line (547 and 1,261). Drop the stale line.
  • N2 — 维护者速读 says 「改回与产品价格相同的币种时」. Branch B covers a record that changes to the picked price's currency. If the record had been in that currency at the pick, the price would have been copied, so 「改回」 misdescribes the usual case. Write 「改成」.
  • N3 — The copied note names the copied-under currency only through the formatted amount ("copied as $100.00"). The ruling's example ("copied as USD 100") and the Showcase EUR invoice: a picked product copies its home-currency price into the line as euros; the edit form's subtotal shows no currency symbol #36249 sentence ({{amount}} in {{from}}) also name the code. Intl symbol display does tell codes apart per locale (CA$, US$), so the note is not wrong. It is only less explicit than the voice the ruling cites.
  • N4 — The grid has no re-pick control after branch B; only the form pins "a pick again fills it". The read-only probe above passes on the grid, so this is a missing pin, not a defect.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for the delta L1 (2026-11-25T15:11Z): 315c0d8fef558f75b8bad25dcbe847cd3e7151a2.

  • Checks at this head: 46 success, 15 skipped (all 15 expected per check-expected-skips, exit 0), 0 failed. One run of PR-body guards is cancelled; it was superseded by the rerun the body edit started, which is success. mergeable_state: clean.
  • Size: 19 files, +582 / −38 (620 changed lines; with fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both #36918 the card totals 1,334). Not governed. Clause-②: yes (widening), unchanged.
  • This round (L1 REWORK 7164164510, fix (a) for S1): a withheld item that carries held now gets its own branch B sentence, lookup.autofillNowSameCurrencyHeld: "…still holds its earlier value. The record is now in USD: clear Unit Price, then pick again to fill $100.00." The key is in all 11 packs with en's placeholders, and in FIELD_DEFAULTS. The changeset names it. The empty-cell branch B sentence and re-pick behaviour are unchanged.
    • Pinned on both hosts: the grid (header USD over a line holding 80, then EUR) and the form (an overwrite: true pair over a typed 80 on a EUR quote, then USD). Ablation with the held arm deleted: 2 failed / 9 passed, exactly the two held pins; the non-held branch B pins stay green. Restored to the HEAD blob.
    • N4: the grid branch B pin now ends with a pick-again control that fills 100 and clears the note. N1: the stale 538 / 1,252 line is dropped. N2: 「改回」 → 「改成」. N3 skipped.
  • Evidence: both pin files 71 passed; packages/i18n/ 111 files passed (a zh-Hans placeholder count was fixed in this head); fields, plugin-form and i18n type-check exit 0; 41 of 41 derived gates exit 0.
  • Overlap: overlap-check VERDICT clean.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 315c0d8fef558f75b8bad25dcbe847cd3e7151a2 · 2026-11-25T15:25Z

  • Scope (delta). This delta follows the REWORK at a602513471817e4928b183ace2358b14b4b7072d (7164164510). Two commits sit on that head with no merge of main: dd0ebf7f966 (the held sentence) and 315c0d8fef5 (the zh-Hans and zh-Hant field count). The delta touches 16 files, +77/−8: lookupAutofill.ts, FIELD_DEFAULTS, the 11 packs, both pin files and the changeset. The net diff against merge base 057cedfa9b6 is 19 files, +582/−38 (620 lines), the same 19 paths as before. The same-head contract review is posted beside this one at TIER_DEFAULT.
  • S1: closed (option a). withheldAutofillMessage now returns lookup.autofillNowSameCurrencyHeld exactly when the item carries held and its reason is nowSameCurrency. An item without held under nowSameCurrency keeps the original "pick again" sentence. A held item under any other reason keeps the reason sentence plus autofillKept. I ran both directions of that condition at this head, in a throwaway worktree, restoring the head blob each time. With the held arm deleted, 2 of 71 tests failed: exactly the two held pins (grid and form). With the held sentence returned for every nowSameCurrency item, 2 of 71 failed: the two non-held branch B pins (grid and form). So both sides of the condition are pinned on both hosts. I also probed the S1 shape read-only (a declared pair without overwrite, where an earlier pick filled 50 and a EUR 100 pick was then withheld on a USD record). The item is {"reason":"differs","held":50}. After the record turns to EUR, the note is the new held sentence. A bare re-pick plans {"patch":{},"withheld":[]}, as before. Once the field is cleared, withheldStillStands reads false, so the note goes away, and the re-pick plans {"unit_price":100}. The sentence's instruction works.
  • i18n. lookup.autofillNowSameCurrencyHeld is in all 11 packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant) and in FIELD_DEFAULTS. Each pack carries {{field}} twice, and {{amount}} and {{to}} once each, the same as en. The second commit fixed zh-Hans (it had three {{field}}), and the pack parity test now passes per the PR body. The translations say the same thing as en: clear the field, then pick again. The only reader is withheldAutofillMessage.
  • N1: closed. The stale "538 … 1,252" line is gone. The size line reads 19 files, +582/-38 (620 lines), card total 1,334. The API agrees (additions 582, deletions 38), and 620 + 714 = 1,334.
  • N2: closed. 速读 now reads 「改成与产品价格相同的币种时」.
  • N4: closed. The grid branch B pin now ends with a pick again that fills 100, with neither note left.
  • N3: open, optional. The zone skipped it, which the prior round allowed.
  • Pins at this head. Throwaway worktree with the closure built under OS_SKIP_DTS=1. Both pin files: 71 passed. With -t ruling: 11, 6 grid and 5 form. The worktree is removed.
  • Changeset, the changed sentences. The new branch B sentence quotes the en text exactly ("…clear Unit Price, then pick again to fill $100.00."). The key list now names three lookup.* sentences, which is right. See N5 for the "because" clause.
  • Check-runs at this head. 62 runs: 46 success, 15 skipped, and 1 cancelled. The cancelled run is PR-body guards job 139289409281 (run 45638241145). The body edit started a new pull_request run, 45638310537 (attempt 1, not a re-run of the first). Its job 139289691588 is success and finished after the cancel, so the newest run under that name is green. I read the expected skips from a worktree pinned to origin/main d88c41e51d6: check-expected-skips --pr 37284 gives OK, 15 of 15 in main's roster, exit 0. It lists the cancelled run under "other conclusions". l1-face flags two items. The changeset flag is @object-ui/plugin-form, but its only change is a test file, which does not ship, as last round. The all-checks flag is the cancelled run (N7). The floor checks are success.
  • merge-tree and overlap. git merge-tree --write-tree origin/main (d88c41e51d6) with the head exits 0, tree 55f0f791a6f. Since the merge base, main changed only the 11 locale packs among this PR's paths, and none of those lines are lookup.*. In the PR's packages, main also touched RequiredFieldsDialog.tsx and requiredWhenPrompt.ts (fix(fields): the fill-in dialog judges option visibleWhen on the record the write would leave #37264) and released-keys-removed.mjs. No code path is shared.
  • K. landing-k --pr 37284 exits 3 (CAN'T ANSWER). The last green run ran no Test Core shard, so no Affected-set diff base was printed. As a stand-in, rev-list --count --first-parent gives 22 from merge base 057cedfa9b6 to origin/main d88c41e51d6, and 19 from GitHub's base 622f3985fe5. Both are 15 or more. The shared-budget leg also fires: this PR touches ui/packages/i18n/src/locales/en.ts, and main changed it after the merge base (875ae40f85b, ff049430cc7).
  • Declaration. The card's claim 7159504946 read Clause-②: no while the PR body and changeset read yes (widening). The seat edited that claim in place through the relay; only its Clause-②: line changed (read-back identical), and readClause2Line now returns declared / yes / widening.
  • S2: closed (the seat corrected the claim line, above).
  • N5 — The changeset gives a reason that is too general: "because picking the same record again does not replace a value that record did not fill". That holds only for a declared pair without overwrite. For an overwrite: true pair and for the grid's same-named copy, a bare re-pick replaces the held value. Probed at this head, both plan {"unit_price":100}. Those are also the two shapes the new pins drive (the form's cn_ow_quote and the grid line holding 80). The sentence's instruction (clear, then pick) works in every shape, so the note is right. Only the changeset's reason over-reaches. Optional: scope the clause to "a pair that does not overwrite", or drop it.
  • N6 — The PR body's "Two-minute check" says the form -t ruling run "passes 4 tests". At this head it passes 5 (Tests 5 passed | 28 skipped), because the held pin is new.
  • N7 — l1-face and pr-state count the cancelled PR-body guards run as failed, since filter=latest returns one run per check suite. If the landing helper refuses on that reading, a relay re-run of run 45638241145 (rerun-failed.mjs) replaces it. Reading by name, the newest run is already success.
    No must-fix, no should-fix.
  • Landing: the zone lands. K is 22 (stand-in, at least 15), and the en.ts shared-budget leg also fires, so it merges main first and waits for the re-run to go green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 315c0d8fef558f75b8bad25dcbe847cd3e7151a2
Local-runs: probe — the dispatch asked for the pins to be re-run and the S1 fix ablated: the two pin files at this head in a throwaway worktree (71 passed), two ablations of the held condition each restored to the head blob, and one read-only probe of the held case across pair shapes

Face: declaration (Clause-②: yes (widening) on the PR body and on .changeset/36412-currency-change-notes.md). Neither carries a (narrowing) arm. The 19 paths are the same as the prior record's and hit no governed surface and no packages/spec/src/**, so the owed tier stays TIER_DEFAULT. The declaration face carries no ④. This is a delta over the PASS at a602513471817e4928b183ace2358b14b4b7072d (7164139343). The delta is two commits, 16 files, +77/−8.

① Derived judgments

  • @object-ui/i18n gains lookup.autofillNowSameCurrencyHeld in all 11 packs. Each carries {{field}} twice, and {{amount}} and {{to}} once each, the same as en. The package exports its packs and TranslationKeys = typeof en, so the key is published, and TranslationKeys grows by one key. That adds and removes nothing. The repo has treated a new key as a widening (the 18.x console changesets) and a removed key as breaking. Right.
  • @object-ui/fields: no export, type or signature changes in the delta. withheldAutofillMessage returns a different sentence for one input: an item with held under nowSameCurrency. Both the arm and the held field reach nowSameCurrency only through this PR, which has not been released, so no released output changes. The English text is mirrored in FIELD_DEFAULTS. Right.
  • The new key keeps the declaration a widening. Clause-②: yes (widening) is still right, and the changeset's widening paragraph now lists the three lookup.* sentences.

② Semver level

  • @object-ui/fields patch and @object-ui/i18n patch, with Metadata-protocol: none, as before. A new key and a new sentence are a widening outside the protocol. @object-ui/plugin-form still changes only a test file and correctly has no entry.

③ Boundary flags

  • S1: closed.
  • N1: closed.
  • N2: closed.
  • N4: closed.
  • N3: open, optional, not taken.
  • open_questions: none in the round-3 report (7165900569).
  • The changeset's new "because" clause is true for a declared pair without overwrite. It is not true for an overwrite: true pair or the grid's same-named copy, where a bare re-pick replaces the value (probed). The instruction is still right in every shape. Graded N5 in the L1 beside this record. It is a prose fix and does not affect the contract.
  • The card's newest Claim: (7159504946) reads declared / no through readClause2Line, against the PR's yes (widening). This is answered in the L1 beside this record (S2). It is the seat's claim line, not this PR's diff or body, and it moves no head.
  • SQL push-down: the delta adds no data read, no id materialisation and no join. Nothing to find.
  • Author: objectstack-fleet[bot], so there is no outside login to name.

Implemented-by: claude/issue-36412-currency-change-notes
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 7f0f3fb7d55105c56c40f65ccc591c94aec5bd64 · 2026-11-25T15:49Z

  • Merge-only delta over the ACCEPT 7166841999 at 315c0d8f. Head 7f0f3fb7 is pr_update_branch's merge commit, with parents 315c0d8f and main d88c41e5.
  • The PR's own change is byte-identical. The diff from the old merge base 057cedfa to 315c0d8f and the diff from the new merge base d88c41e5 to 7f0f3fb7 carry the same changed lines: 19 files, +582/−38. The en.ts change on main merged in without conflict.
  • Check-runs at head: 45 success, 13 skipped, 0 failed, none cancelled. git merge-tree against current origin/main is clean.
  • The claim reads declared / yes / widening (7159504946). A same-head TIER_DEFAULT record reading PASS is posted beside this one.
  • No must-fix, no should-fix.
  • Landing: the zone readies and enqueues it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7f0f3fb7d55105c56c40f65ccc591c94aec5bd64
Local-runs: none
Scope: the declaration face of PR #37284 (Clause-②: yes (widening))

① Derived judgments

  • This is a merge-only delta over the PASS 7166864756 at 315c0d8f. Head 7f0f3fb7 merges main d88c41e5 into 315c0d8f. The PR's own changed lines are byte-identical across the merge: 19 files, +582/−38. Every judgment of that record stands.

② Semver level

  • Unchanged: Clause-②: yes (widening), Metadata-protocol: none, patch.

③ Boundary flags

  • None new. Check-runs at this head: 45 success, 13 skipped, 0 failed. git merge-tree against current origin/main is clean.

④ Design judgment

  • Holds as at 315c0d8f.

Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Landing (2026-11-25T15:52Z): head 7f0f3fb7d55105c56c40f65ccc591c94aec5bd64, on the merge-only L1 ACCEPT 7167361139 and the same-head contract review PASS 7167374282 (TIER_DEFAULT, Clause-②: yes (widening)). They follow the ACCEPT 7166841999 and the PASS 7166864756 at 315c0d8f.

Probe Reading
check-governed-merges.mjs --pr 37284 NOT governed: 0 of 19 paths hit the register
Check-runs at this head 45 success · 13 expected skip (check-expected-skips exit 0) · 0 failed · none cancelled
Landing K about 22 at 315c0d8f, and the en.ts shared-budget leg fired, so main was merged first (pr_update_branch, relay run 45645248947). The PR's own diff is byte-identical across the merge (19 files, +582/−38).

There is no narrowing arm, so no maintainer gate applies. The optional nits N3, N5 and N6 are not taken.

State change: ready for review, and auto-merge armed; the merge queue lands it. On MERGED, #36412 closes by Fixes #36412.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 15:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit e377918 Nov 25, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36412-currency-change-notes branch November 25, 2026 16:57
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…or Setup > Packages (objectstack-ai#37166)

Fixes objectstack-ai#36908
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 管理员和开发者打开 Studio
不再看到软件包卡片页:有上次用过的软件包就直接进它;没有的话,能打开设置软件包列表的人进那个列表,打不开的开发者进「全部元数据」;已安装应用「改了什么」挪到了设置里的软件包详情;「添加应用」菜单去掉了「用
AI 搭建」,「在 Studio 中新建」改名为「新建空白应用」,凡是开放了元数据编辑的环境都会出现。
- 这是 Studio 重构专题的「去掉 Studio 首页」一步:首页的入口大多已有去处,但软件包的「管理」和「全部软件包」要等 Studio
顶栏菜单那张卡(objectstack-ai#37139)补上,一步「新建应用」要等新建软件包对话框那张卡(objectstack-ai#37134);另有三个入口没能在真实环境走过,「添加应用」菜单这一轮的变化(去掉「用
AI 搭建」、改名「新建空白应用」)也没在真实环境走过,都只有自动测试覆盖。
-
维护者已裁定统一「已定制」的口径(objectstack-ai#37236),但设置里的软件包详情和本次更新说明里的一句话目前仍把标签页等排列调整算作「已定制」;改正由那张卡完成,本
PR 不妨碍它。
- 只有 Studio 权限、没有设置权限的开发者现在没有任何页面能新建软件包,因为新建入口只在设置里;这要等 Studio
顶栏菜单(objectstack-ai#37139)和新建软件包对话框(objectstack-ai#37134)两张卡落地。
- 如果出错,用户进 Studio 会落到软件包列表或「全部元数据」页,而不是首页;这次只改界面,不改数据,可以直接撤回。
  - 服务器没有报告用户权限时,这些「新建」入口按有权限处理,把人带到设置里的新建软件包;真正能否创建仍由服务器判断,席位建议保持这样。
- 本 PR 超过 3000 行(主要是删除旧首页和它的测试),请您按大 PR 流程审核后再合并。

## What changes

Epic objectstack-ai#36890 decision 9: the package-card page at bare `/studio`
(`BuilderLanding`) is removed. This PR finds a new home for every entry
it carried and deletes the page, the code only it used, and its tests.

Every Studio exit that names no package now makes one choice,
`studioEntryFallbackPath`: Setup → Packages
(`/apps/setup/component/developer/packages?face=admin`) for a principal
holding `setup.access` and `manage_platform_settings`, and
`/studio/~all/metadata` (the All metadata area) for one who may enter
Studio but not that page. The capability set is the one Studio's entry
gate read: app-shell now exports `StudioEntryPermissionsProvider` and
`useStudioEntryPermissions`, and the console's `RequireStudioAccess`
provides the set around the `/studio` subtree. Outside that provider the
set reads as holding nothing, so nobody is sent to a page they may not
open.

| Entry the home carried | Where it goes now |
|:---|:---|
| bare `/studio` | `StudioEntryRedirect` (in the lazy Studio chunk). It
opens the newest remembered package (the recent `package` entries
`StudioRoute` records) that `GET /api/v1/packages` still lists, else
`studioEntryFallbackPath`. If the list cannot be read, it opens the
newest remembered package, and Studio reports the failed read itself. |
| New package (`/studio?new=package`) | `SETUP_NEW_PACKAGE_PATH`: the
admin face with `?new=package`. It opens New Package on arrival and
drops the param with a replace. After create it lands in Studio on the
new package (objectstack-ai#36834). Callers: Home's no-agent chip, the `/ai`
no-assistant screen, the 「Add app」 menu and the no-apps screen, all
labelled 「New blank app」 / 「新建空白应用」 now (below); for an author who may
not open Setup → Packages each of them, like the bookmark, opens the All
metadata area instead (`useNewPackageDoorPath`, `newPackageDoorPath`).
An old `/studio?new=package` bookmark goes there for a holder of the
pair, and to the All metadata area for anyone else
(`studioNewPackageEntryPath`). One-step 新建应用 is objectstack-ai#37134. |
| `~all` / `~org` cards | Already in the left menu (objectstack-ai#36899). Nothing
more to do here. |
| Per-app "n customized, m switched off" and the "Customizations in this
environment" panel | `PackageCustomizationsPanel`, shown in a read-only
base's detail sheet on the admin face. It is not shown for an authored
package, a `.custom` pair or a kernel package. It has a summary line,
rows with tabs (adds Layouts), search, Show all, and 「Customize in
Studio」. **"Customized" now counts `counts.arrangements`.** This
delivers objectstack-ai#36833's requirement in the panel's new home; objectstack-ai#36833 was closed
as not planned (ruling 7125820739), so this PR does not close it. |
| Card Manage and the All packages link (development face) | Not this
card: the door is added by objectstack-ai#37139 (card note 7146329913). The
development face stays reachable by its address. |
| Recently viewed | Now Studio's entry itself: `/studio` opens the
newest remembered package. |
| 「包不存在」 → Studio home | The button follows `studioEntryFallbackPath`:
「Open the package list」 → Setup → Packages for a holder
(`engine.studio.notFound.packageList`), 「Open All metadata」 → the All
metadata area otherwise (new key `engine.studio.notFound.allMetadata`).
|
| `AppContent` fallbacks, `packagedActionsStudioPath` fallback with no
package named | `SETUP_PACKAGES_PATH`. |
| `studio:builder` (the `@objectstack/studio` app's 「应用构建」) | Forwards
to `/studio`. |
| 「Add app」 (sidebar app menu, and the no-apps screen's buttons) |
Maintainer rulings 7153161067 and 7153400210 on objectstack-ai#36908: 「Build with AI」
(to bare `/studio`) is removed, and `new-in-studio` is pushed for every
admitted viewer on a deployment that offers metadata authoring, whether
or not the build agent is served. It is relabelled under its existing
key `home.build.inStudio`: en "New blank app", zh-Hans 「新建空白应用」, zh-Hant
regenerated (「新建空白應用」), and the eight other packs translated anew, as
`check:i18n-drift` requires of an en change. Home's no-agent chip and
the `/ai` button read the same key; their inline `defaultValue` now
matches the en value (`check:i18n-keys`); the chip's condition and
target are unchanged. It stays inside `isAiStudioEnabled()`, because
with `features.aiStudio` false the runtime offers no metadata authoring;
a viewer `useMayAddApp` admits there gets the marketplace's two entries,
so the list is never empty for an admitted viewer. `SidebarAppMenu`
reads the list itself and draws neither 「Add app」 nor its separator for
an empty list. Home's 「Build an app」 chip and Home's 「Build with AI」
drawer button are untouched. |

Removed: `BuilderLanding.tsx`, its `BuilderLanding.*` test files,
`fetchInstalledPackageRow` (only the home's Manage called it) with its
pin, and the home's console frame in `StudioRoute` (header and command
palette). Two deleted suites still pinned code that stays, and those
halves moved (see Tests): the permission matrix's read-only hint copy,
and the three new-app door cases. `LandingCustomizationsPanel` and
`landingCustomizations-io` were renamed and rewritten as
`PackageCustomizationsPanel` and `packageCustomizationRows`.
`newAppDoor.ts`, `PackageFormDialog`'s `newApp` branch and the
`engine.studio.newApp.*` strings stay for objectstack-ai#37134; the branch keeps its
three cases, now mounted on `PackageFormDialog` itself.

**Strings.** The home's `engine.studio.landing.*` keys and
`engine.studio.landingHome` that ship in the released
`@object-ui/i18n@18.6.0` (71 in each of `en` and `zh`, measured against
the published tarball; 3 of them are still read by the Packages page)
stay, the other 68 no longer read. Removing a published key is a
narrowing, so this PR removes none. The four landing keys added after
18.6.0 and never released (`manage`, `manageTitle`, `allPackages`,
`allPackagesTitle`) are removed. `engine.packages.customizations.*`,
`engine.studio.notFound.packageList` and
`engine.studio.notFound.allMetadata` are added (38 keys per language).
The PR changes no existing value.

**Changesets.** `36908-remove-studio-home.md` (app-shell, console,
platform-objects) says what users see, in their words. The i18n note is
in its own `@object-ui/i18n`-only changeset,
`36908-studio-home-strings.md`. Both carry the two declaration lines.

Checklist: `studio-authoring.package-customization-counts-and-marks`
(rev 4) and `studio-authoring.org-scope-flows` (rev 5) are re-pointed.
The rev 4 note now says objectstack-ai#36833 was closed as not planned and this card
delivers its requirement; its `acceptance[2].verify` names
`PackageCustomizationsPanel.test.tsx` as the pin. Also re-pointed off
the removed home: `automation.setup-packaged-automation-board` (rev 15:
title, `steps[1]`, `acceptance[0]`; the packaged-actions bookmark with
no `?package=` opens Setup → Packages),
`studio-authoring.first-run-loop` (rev 16, `steps[1]`: 「Build an app」
opens the last package or Setup → Packages, the other chip reads 「New
blank app」), and the fixture lines of
`automation.packaged-flow-clone-contract` (rev 14),
`studio-authoring.held-edit-leave-guard` (rev 12) and
`ux-conventions.write-feedback` (rev 18), which made their scratch
package on the Studio landing.

Size at `54e4586e`: +2,306 / −5,217 across 101 files rename-aware
(+2,680 / −5,591 across 103 without renames), mostly deletions. Per
ruling 7145880574 on objectstack-ai#36890 this lands as one PR, reviewed by the
maintainer after L1.

**Overlaps** (overlap-check at `54e4586e`, against `origin/main`
`4fb03ebb`, exit 1 for objectstack-ai#37249 below): origin/main merges cleanly. This
round merged main six times: `cf77ecb9` (K 12) was clean, and `54e4586e`
(K 9, with objectstack-ai#37169) is resolved below. Resolved:
- objectstack-ai#37089 (landed as `886e9707`): conflicted in
`StudioDesignSurface.notFound-26708`; both sides added the same
`@object-ui/plugin-detail` import, main's comment kept. The same merge
brought objectstack-ai#37198's address-guard fixtures spelling the removed
`STUDIO_LANDING_PATH`; they are dropped here.
- objectstack-ai#37185 (landed as `ad604c10`): `PackageSwitcher.tsx` keeps this
branch's side (`fetchInstalledPackageRow` and `STUDIO_LANDING_PATH`,
which objectstack-ai#37185 moved onto the authenticated fetch, are deleted here); its
edits to the six test files this branch deletes were stub adaptations (a
`headers` field, a module-top import, the gate's fetch double) with no
subject left to pin. The new customizations read goes through
`packageCustomizations-io.ts`, already on the authenticated fetch;
`PackageCustomizationsPanel.test.tsx`'s stub now carries `headers: new
Headers()`.
- objectstack-ai#37204 (landed as `bd98dd12`): `StudioRoute.test.tsx` and
`StudioRoute.lazyBuilder-11798` keep this branch's removal of the
home-frame cases; `StudioRoute.metadataArea-28561` keeps this branch's
comment line and objectstack-ai#37204's `app-bar-product-home` test-id absence,
without the old-name check.

- objectstack-ai#37241 (landed as `fc216747`): `SidebarAppMenu.tsx` takes its
`AppMenuList` and keeps this branch's `offerAddApp` separator; its new
`SidebarDocsPortalMenu` gets the same rule (the 「Add app」 list read
there, nothing drawn for an empty list, `AddAppSubmenu entries={…}`),
pinned in its `SidebarAppMenu-36112` block (「New blank app」 and no
「Build with AI」 with the build agent served; a Studio-only author to
`~all`; the empty-list guard).
- objectstack-ai#37168 (landed as `1b91538b`): `PackageFormDialog.newAppStep-36748`
keeps this branch's host and adds objectstack-ai#37168's
`/studio/:packageId/metadata/*` route; `notFound-26708` keeps this
branch's provider and Setup / All metadata routes and adds objectstack-ai#37168's
metadata-area route (the removed home's `/studio` route stays out). Its
edits to the two `BuilderLanding.*` files this branch deletes were the
switched-off action's new address; that pin now lives at
`PackageCustomizationsPanel.test.tsx:188`, updated here to
`/studio/APP/metadata/object/opportunity?action=clone_opportunity`.

- objectstack-ai#37169 (landed as `4fb03ebb`; this PR is the second lander):
`BuilderLanding.orgScope-11553` stays deleted. objectstack-ai#37169 only moved the
removed home's ~org card to `/studio/~org/metadata/flow?source=runtime`,
and the org-scope entry is pinned by
`StudioDesignSurface.packageLessFlows-11553`, which objectstack-ai#37169 updated.
`notFound-26708` keeps this branch's `StudioEntryPermissionsProvider`
and Setup / All metadata routes, with objectstack-ai#37169's comment naming
`/automations` too. Nothing else conflicted. `AREA_DESIGNER_PAGE_TYPES`
and the removed `AreaHistoryRedirect` exemption came in untouched. The
18.6.0 studio key comparison was re-run against `4fb03ebb`: the branch
removes only the four never-released keys, adds 38 per language and
changes 0 values; all 71 released landing keys are present.

Still open; whichever lands second merges main and resolves:
- objectstack-ai#37249 (objectstack-ai#37227) conflicts in `HomePage.desktopNoApps-36732` and
`HomePage.noAgentsBuildChip-26614` (this branch's Studio-only chip
case). Beyond the text: its first case expects the no-apps doors
`[template, marketplace]` with the build agent served, and 「New blank
app」 now shows there too (ruling 7153400210), so the second lander keeps
`new-in-studio` first. Its HomePage filter of `build-with-ai` becomes a
no-op. It touches neither `home.build.inStudio`'s values nor the chip's
lines (measured by `git merge-tree` against its branch).
- objectstack-ai#37226, objectstack-ai#37215, objectstack-ai#37210, objectstack-ai#37165, objectstack-ai#37282 and objectstack-ai#37284 merge cleanly.

### Read first

1.
`ui/packages/app-shell/src/views/studio-design/StudioEntryRedirect.tsx`:
the whole `/studio` decision, and the two capability helpers. Risk:
where a non-administrator lands (the `studioEntryFallbackPath` pair),
now for the bookmark too.
2.
`ui/packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.tsx`
and the mount in `PackagesPage.tsx` (`PackageDetailSheet`). Risk: the
gate `!authoring && !writable && !isKernel &&
!isCustomizationPackage(id)`.
3. `ui/apps/console/src/components/StudioRoute.tsx` with
`studioEntryPermissions.ts`: the index route and the capability set the
entry gate provides to Studio (`StudioEntryPermissionsProvider`), which
the not-found exit reads.

### Two-minute verification

As the seeded admin with nothing remembered, open `/_console/studio`.
Expected: you land on Setup → Packages
(`…/developer/packages?face=admin`). Open the ObjectStack Showcase row:
its detail shows "Customizations in this environment" with a Customize
in Studio link.

## Tests

New pins:
- `StudioEntryRedirect.test.tsx` (12 cases): the newest remembered
package the list still names opens; a package the list no longer names
is skipped; nothing remembered leads to Setup → Packages, read without a
list request; a Studio-only principal lands on `~all`; a failed list
read opens the newest remembered package; the old new-package bookmark
is forwarded for an administrator (CONTROL) and sends a Studio-only
principal to `~all`, never to Setup; both helpers read the same
capability pair.
- `StudioDesignSurface.notFound-26708`: the not-found button opens Setup
→ Packages for an administrator (CONTROL), and for a Studio-only
principal it reads 「Open All metadata」 and opens `~all`, never Setup.
The harness provides the entry gate's set through
`StudioEntryPermissionsProvider`.
- `PermissionMatrixEditor.readOnlyHintCopy-12171.test.ts`: the half of
the deleted `BuilderLanding.environmentOverlayCopy-12171` that covered
`perm.readOnly.artifact.hint`, which `PermissionMatrixEditor` still
draws. No table names the organization axis; lit control that it names
the environment overlay in every table; lit control that `t()` serves
the value the extractor read, for every declared locale.
- `PackageFormDialog.newAppStep-36748.test.tsx`: the three
`BuilderLanding.newAppDoor-36748` cases, moved onto `PackageFormDialog`
with `newApp={newAppStep(client, locale)}`, mounted as the home mounted
it (create mode, Studio on the new package after save): the dialog
worded for an app in zh; package POST, app draft, app publish, then the
Studio header names the app and 「‹ Back to app」 opens it; a taken app
name refuses the confirm and writes nothing.
- `PackageCustomizationsPanel.test.tsx`: the rows and counts, including
the **objectstack-ai#36833 arrangement-only case**; the empty and failed states (never
"0"); row and switched-off-action links; tabs, search and Show all; zh
words; and the moved rows and labels io.
- In the `PackagesPage` administration-face harness, two describes: "the
new-package deep link" (3 cases) and "a read-only base's customizations
in its detail" (6 cases: a code package draws the section with
arrangements counted; an authored package does not; the development face
does not; a read-only `.custom` pair draws none and sends no
customizations request; a kernel package's detail, opened directly
because the admin face lists none, draws none and sends no request;
CONTROL, the same direct render of a code package draws it and reads
once).
- Unreported capability set on the doors:
`HomePage.noAgentsBuildChip-26614` renders Home inside the real
`MePermissionsProvider` with an authenticated answer that carries no
`systemPermissions`; the chip opens Setup's New Package (the fail-open).
CONTROL, the same provider with a reported set holding `manage_metadata`
alone: the chip opens `/studio/~all/metadata`.
- Studio-only author on the doors outside Studio: `SidebarAppMenu-36112`
(「New blank app」 links to `/studio/~all/metadata`) and
`HomePage.noAgentsBuildChip-26614` (the chip navigates there, never to
Setup); `StudioEntryRedirect.test` holds `newPackageDoorPath` to the
same two answers.
- `SidebarAppMenu-36112` (the shared harness, new top-level describe):
with build and ask, the legacy build id, ask only, other agents only, or
no agent served, 「Add app」 offers `new-in-studio` ("New blank app", to
New Package), the template and the marketplace, and never 「Build with
AI」; never empty for an admitted viewer with authoring but no
marketplace, or a marketplace but no authoring; CONTROL, with neither
the viewer is not admitted; guard, an admitted viewer handed no entries
gets no 「Add app」 and no separator. `HomePage.desktopNoApps-36732`: the
no-apps doors are `[new-in-studio, template, marketplace]` with the
build agent served.
- Converted, not deleted: the StudioRoute gate, lazy-module,
recent-visit and access-notice pins; `studio:builder` registration (now
a forward); `setupMetadataRedirect`; `studioAddress` and its guard (the
guard no longer names the deleted `STUDIO_LANDING_PATH`); the Home,
sidebar 「Add app」 and `/ai` deep-link hrefs; the vocabulary census;
`consoleTopBar.height-12639`; `AppContent.setupMetadataStudio-28578`.

<details><summary>Local runs at this round's heads</summary>

**Rework 2, objectstack-ai#37169's merge, head `54e4586e`** (after merging
`origin/main` `4fb03ebb`, K 9, and `pnpm --filter
'@object-ui/console^...' build`, lock VERDICT command-exit 0):
- vitest over app-shell `views/studio-design`, `console/home`,
`console/ai`, `console/__tests__`, `layout/`, `hooks/`, `PackagesPage*`
and `PackageFormDialog*`, plus console `components/`: Test Files 826
passed (826); Tests 6948 passed; lock VERDICT command-exit 0.
- type-check `@object-ui/app-shell` (src + `tsconfig.test.json`) and
`@object-ui/console`: exit 0. eslint on the two touched test files: exit
0.
- Exit 0: check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, `check-platform-checklist
--changed-from origin/main` (11 anchors, 0 lost), and under `ui/`
check:i18n-keys, check:i18n-drift, check:unreferenced-sources and the
three vi-mock gates.
- The full `check:platform-checklist` exits 1 on one finding, and
`origin/main` `4fb03ebb` fails the same way: `automation.json` anchors
`FlowItemMoreMenu.tsx#FlowItemMoreMenu`, which objectstack-ai#37169 removed. That is
main's to fix, not this PR's.

**Rework 2 (delta L1 S1, N4, N5), head `cf77ecb9`** (after merging
`origin/main` `4ed453dc`, K 12, clean, and `pnpm --filter
'@object-ui/app-shell^...' build`, lock VERDICT command-exit 0):
- vitest over `console/home`, `console/ai`, `RequireAiSurface`,
`AppContent.setupMetadataStudio-28578`, `setupMetadataRedirect.test`,
`PackageCustomizationsPanel.test`, `StudioEntryRedirect.test`,
`SidebarAppMenu-36112` and `hooks/`: Test Files 210 passed (210); Tests
1827 passed; lock VERDICT command-exit 0.
- Mutation through `scripts/ablation-replace.mjs`:
`useNewPackageDoorPath` made to fail closed
(`Array.isArray(systemPermissions) && hasCapabilities(…)`) →
`HomePage.noAgentsBuildChip-26614` 4 failed / 12: the new unreported
case, plus the three no-agent cases whose stub leaves
`systemPermissions` undefined; the reported-set control stayed green.
Restored to the HEAD blob, `git diff HEAD` empty.
- type-check `@object-ui/app-shell` (src + `tsconfig.test.json`): lock
VERDICT command-exit 0. eslint `--no-inline-config` on the 4 touched ui
files: exit 0.
- Exit 0: check:platform-checklist, `check-platform-checklist
--changed-from origin/main` (4 anchored files, 11 anchors, 0 lost),
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:issue-citations, and under `ui/`
check:i18n-keys, check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape. `git grep -n "Studio landing"
docs/qa/platform-checklist/areas`: history entries only, plus
`studio-authoring.json:35` and `:2290`, already stale on main (the
studio-home button).
- overlap-check: exit 1, only for objectstack-ai#37249 and objectstack-ai#37169 (objectstack-ai#37169 has since
landed; see Overlaps).

**Third part (seat answers to N1 and N3, then objectstack-ai#37241's and objectstack-ai#37168's
merges), final head `1c7f29cc`:**
- After merging main with objectstack-ai#37241 and objectstack-ai#37168 (`2ae0823f`) and rebuilding
(VERDICT command-exit 0): `views/studio-design`, `layout/`,
`console/docs`, `console/home`, `console/ai`, `console/__tests__`,
`hooks/`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, console `components/` and `pages/`,
`packages/i18n/src/__tests__`: Test Files 1162 passed (1162); Tests
10870 passed, 13 skipped; VERDICT command-exit 0. type-check
`@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/console`: VERDICT
command-exit 0. Exit 0 at this head: check:test-source-alias,
check:nul-bytes, check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
check:issue-citations, check-changeset-no-major, check-empty-changeset,
check-adr-0087-registration, `check-platform-checklist --changed-from
origin/main`, and under `ui/` check:i18n-keys, check:i18n-drift,
check:unreferenced-sources, check:phantom-deps,
check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape.
- After a fresh closure build (VERDICT command-exit 0): `layout/`,
`console/home`, `console/ai`, `RequireAiSurface`, `hooks/`,
`StudioEntryRedirect*`, `notFound-26708`, console `StudioRoute*`: Test
Files 376 passed (376); Tests 3153 passed; VERDICT command-exit 0.
- Mutation through `scripts/ablation-replace.mjs`:
`useNewPackageDoorPath` forced to the Setup path (`true ||
hasCapabilities(…)`) → 2 failed / 43, exactly the two Studio-only door
cases; restored to the HEAD blob, `git diff HEAD` empty.
- type-check `@object-ui/app-shell` and `@object-ui/console`: VERDICT
command-exit 0. eslint on the 7 touched files: 0 errors. Exit 0:
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, and under `ui/` check:i18n-keys,
check:i18n-drift, check:unreferenced-sources, check:phantom-deps,
check:vi-mock-specifiers, check:vi-mock-inherit,
check:vi-mock-override-shape.

**Second part of the round (the 「Add app」 rulings, then three main
merges), head `64e7071b`:**
- At `048a5a84` (rulings + first merge): `layout/`, `console/home`,
`console/ai`, `RequireAiSurface`, `hooks/`, `packages/i18n/src`,
`PackageCustomizationsPanel`, console `StudioRoute*`: Test Files 486
passed (486); Tests 5161 passed, 13 skipped; lock VERDICT command-exit
0.
- At `fe78cd2b` (after objectstack-ai#37185's merge), the overlap:
`views/studio-design`, `layout/`, `console/home`, `console/ai`,
`console/__tests__`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, `sameServerFetch*` (objectstack-ai#37185's ratchet),
`apps/console/src/components`, `packages/i18n/src`: Test Files 1 failed,
888 passed (889); Tests 2 failed, 8291 passed. The failures were two
cases of `layout/__tests__/designModeMenuSave-36363`, a file this branch
does not touch; run alone it read 47 passed (47), and it passed again in
the run below, so it was load in the big run.
- At `45e4a5eb` (after objectstack-ai#37204's merge and a rebuild):
`apps/console/src/components`, `layout/`, `console/home`, `console/ai`,
`RequireAiSurface`, `packages/i18n/src/__tests__`: Test Files 436 passed
(436); Tests 4837 passed, 13 skipped; lock VERDICT command-exit 0. (A
first attempt at this run hit a 590 s cap before its verdict and is not
counted.)
- Mutation checks through `scripts/ablation-replace.mjs` (blob moved,
restored to the HEAD blob, `git diff HEAD` empty): the hook's entry key
back to `build-with-ai` → `SidebarAppMenu-36112` 7 failed / 32; the
empty-list guard removed (`offerAddApp = mayAddApp`) → 1 failed / 32,
the guard case.
- CI on `45e4a5eb` failed `Type Check UI` at `check:i18n-keys`: Home's
chip kept `defaultValue: 'New in Studio'` against the new en value.
Fixed at `64e7071b` with the chip's default and the eight packs
(`check:i18n-drift`); locally at `64e7071b`, exit 0: `check:i18n-keys`,
`check:i18n-drift`, and the job's other static steps
(`check:phantom-deps`, `check:self-import`,
`check:unreferenced-sources`, `check:doc-example-readers`,
`check:side-effects-array`, `check:spec-symbols`,
`check:icon-record-names`, `check:designer-field-key-parity`,
`check:action-forward-parity`, `check:esm-specifiers`,
`check:handler-key-reads`, `check:metadata-write-doors`,
`check:control-bytes`, `check:shell-escape-residue`,
`check:vi-mock-specifiers`, `check:vi-mock-inherit`,
`check:vi-mock-override-shape`, `check:test-path-roots`,
`check:prompt-keys`), plus `check:keyed-text-bounds` and
`check:i18n-stale-fill`. Vitest over `packages/i18n/src`,
`console/home`, `console/ai`, `RequireAiSurface`,
`SidebarAppMenu-36112`: Test Files 213 passed (213), Tests 2745 passed,
13 skipped, lock VERDICT command-exit 0.
- type-check at `45e4a5eb` after `pnpm --filter '@object-ui/console^...'
build` (VERDICT command-exit 0): `@object-ui/i18n`,
`@object-ui/app-shell` (src + `tsconfig.test.json`),
`@object-ui/console` passed, VERDICT command-exit 0. eslint
`--no-inline-config` on this part's 6 ui files: 0 errors.
- Gates at `45e4a5eb`, all 0: check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
check:issue-citations, check-changeset-no-major, check-empty-changeset,
check-adr-0087-registration, `check-platform-checklist --changed-from
origin/main` (11 anchors, 0 lost). `pnpm --filter @object-ui/i18n
gen:zh-hant` after the merges: every target already current.
- 18.6.0 studio-namespace comparison at `fe78cd2b`, unchanged: 71/71
published landing keys present in `en` and `zh`; 35 missing, all already
missing on main; 0 values changed vs main, 4 never-released keys
removed, 38 added.

**First part of the round (L1 and contract-review fixes):**

- Targeted vitest at `4121473e` (after the first main merge, K 26), one
locked run over `apps/console/src`, `packages/i18n/src`,
`views/studio-design`, `metadata-admin/PackagesPage*`,
`PackageFormDialog*`, `PermissionMatrixEditor*`,
`console/__tests__/AppContent*`, `console/home/__tests__/HomePage*` and
`layout/`: Test Files 1 failed, 1050 passed (1051); Tests 1 failed,
10456 passed, 13 skipped. The failure was the moved new-app pin's own
harness (it navigated to the bare package path, which only the console
route table expands); fixed at `4121473e` by landing on the package's
Studio home as the removed home did, then 3 passed (3).
- After the second main merge (`df4a65cb`) and the guard fix
(`329ddefc`), the overlap re-run under the lock: `views/studio-design`,
`apps/console/src/components`, `PackagesPage*`, `PackageFormDialog*`,
`PermissionMatrixEditor*`, `packages/i18n/src`, `consoleTopBar*`,
`AppContent*`: Test Files 594 passed (594); Tests 6016 passed, 13
skipped; lock VERDICT command-exit 0.
- Mutation checks, each through `scripts/ablation-replace.mjs` (anchor 1
→ 0, blob verified moved, restored to the HEAD blob with `git diff HEAD`
empty), at `4121473e`:
- 「组织」 written into the zh `perm.readOnly.artifact.hint`:
`PermissionMatrixEditor.readOnlyHintCopy-12171` 1 failed / 3 ("no table
names the organization axis").
- `!isKernel` removed from the detail gate (`PackagesPage.tsx:1271`): 1
failed / 6, the kernel case only.
- `!isCustomizationPackage(id)` removed: 1 failed / 6, the `.custom`
pair case only.
- The bookmark forward reverted to `SETUP_NEW_PACKAGE_PATH`:
`StudioEntryRedirect.test` 1 failed / 11, the Studio-only bookmark case.
- The not-found exit reverted to `SETUP_PACKAGES_PATH`: `notFound-26708`
1 failed / 14, the Studio-only case.
No dist leg was needed: these tests import app-shell by relative path,
and the ui vitest config aliases `@object-ui/i18n` to its `src`.
- type-check at `329ddefc` after `pnpm --filter '@object-ui/console^...'
build` (lock VERDICT command-exit 0): `@object-ui/i18n`,
`@object-ui/app-shell` (src and `tsconfig.test.json`, which lists all
six new or changed test files) and `@object-ui/console` passed, lock
VERDICT command-exit 0.
- eslint `--no-inline-config` on this round's 11 changed ui files: 0
errors, 15 warnings.
- Gates at `329ddefc`, exit captured before any pipe, all 0:
check:test-source-alias, check:nul-bytes,
check:cross-package-test-inputs, check:i18n-stale-fill,
check:keyed-text-bounds, check:platform-checklist,
`check-platform-checklist --changed-from origin/main` (11 anchors, 0
lost). At `4121473e`, also 0: check:issue-citations,
check:doc-authoring, check:gitlink-declared, check-changeset-no-major,
check-empty-changeset, check-adr-0087-registration (2 non-breaking
changesets), check-closing-keyword-parity,
check:changeset-gate-self-tests, and the edited
`ui/scripts/check-eager-closure-budget.mjs`'s tests (6 files, 305
passed). `check:i18n`: PREREQUISITE NOT MET locally (the CLI build
closure is not built); it reads the platform translation bundles, which
this round does not touch; its evidence is CI. `dispatch-gates --ran`:
57 of 74 derived families not run locally, declared; their evidence is
this head's check-runs.
- **i18n against the published `@object-ui/i18n@18.6.0`** (`npm pack`,
read by AST, nothing evaluated), on the merged tree: all 71 published
`engine.studio.landing*` keys are present in `en` and `zh`; 35 published
keys are missing at this head and all 35 are already missing on
`origin/main`; against `origin/main` this PR changes 0 values, removes
exactly the four never-released keys, and adds 38 per language
(`engine.packages.customizations.*`,
`engine.studio.notFound.packageList`,
`engine.studio.notFound.allMetadata`).
</details>

## Acceptance notes

- The environment-wide list the home drew across all installed apps (one
list, a total, grouped by app) is now shown per app only, in each
read-only base's detail in Setup → Packages.
- "Customized" now has two meanings. The Setup detail counts tab,
field-group and action-layout arrangements with overrides and
extensions; the All metadata header still draws `customizationTotal`
(overrides + extensions, `customizationMarks.ts:96-97`, drawn at
`DirectoryPage.tsx:246-249`), and the same total gates the list filters
in `ResourceListPage` and `useListOrderedNames`. Not aligned here:
adding arrangements to that total would stop the header equalling the
sum of its per-type tiles and change which lists offer the customized
filter. Not aligned here (seat answer A): follow-up card filed: objectstack-ai#37236.
objectstack-ai#37236 has since been ruled B (7158100447): 「已定制」 stays overrides +
extensions, and the Setup detail's count changes there to match. Until
it lands, the Setup detail counts arrangements as described here.
- The new-package doors outside Studio (Home's no-agent chip, the `/ai`
screen's door, 「Add app」's 「New blank app」 and with it the no-apps
screen) make the same choice as Studio's entry, through
`useNewPackageDoorPath` (seat answer to N1): Setup's New Package for a
holder of `setup.access` + `manage_platform_settings`, the All metadata
area for an author who may enter Studio but not open that page. They sit
outside the entry gate's provider, where `useStudioEntryPermissions`
holds nothing, so they read the session's own
`usePermissions().hasCapabilities`, which fails open on an unreported
set as the doors' own authoring gate does (the Setup app still refuses a
non-holder). That is the doors' doctrine, judged A in contract review
7162083002 ④: the door is only a link, and the server still refuses a
package create without `manage_metadata` (`package-routes.ts:102-106`).
Pinned by the unreported-set case in `HomePage.noAgentsBuildChip-26614`
(the real `MePermissionsProvider`, no `systemPermissions`, the chip
opens Setup's New Package; control: a reported set without the pair
opens `/studio/~all/metadata`).
- A Studio-only author (`studio.access` + `manage_metadata`, without the
Setup pair) has no screen that creates a package at this head: 「New
blank app」 opens All metadata, which has no New Package, where on main
the same door opened the dialog inside Studio. The server still admits
the create. This follows ruling N1 (a), and waits for objectstack-ai#37134 / objectstack-ai#37139.
- Two console test files pinned only the home's frame and are deleted:
`StudioRoute.landingI18n.test.tsx` (its header crumb) and
`StudioRoute.searchPalette-11863.test.tsx` (⌘K on the home; ⌘K inside
Studio is objectstack-ai#36900). The other StudioRoute pins now stub the entry.
- Duplicate pins named for deleted tests (AGENTS.md, ruling 6120820653):
the new-package deep link is pinned in the `PackagesPage` admin harness;
the customization counts, rows and labels in
`PackageCustomizationsPanel.test.tsx`; the org-scope entry by
`StudioDesignSurface.packageLessFlows-11553` and the menu pins from
objectstack-ai#36899; the permission hint copy and the new-app step moved, above. The
home's own layout, ordering, Duplicate form, recent cards and Manage
pins have no remaining surface to pin.
- Possibly orphaned now that the frame is gone, not removed here:
`AppHeader` `variant="studio"` and `CommandPalette` `scope="studio"`
(objectstack-ai#36900 may reuse the scope).
- 「Build with AI」 is gone from the 「Add app」 menu and the no-apps screen
(ruling 7153161067). Home's 「Build an app」 chip still targets bare
`/studio`, and Home's own 「Build with AI」 drawer button is untouched;
objectstack-ai#37227 / objectstack-ai#37249 removes both from Home.
- The kept-unread released studio keys stay as they are this round (the
seat made dropping them optional under the 19.0.0 ruling);
`home.buildWithAI` is still read by Home and is untouched.
- Recents are read local-first, and the server copy arrives after first
render (`RecentItemsProvider`). On a device with no local copy,
`/studio` falls back before that copy arrives; "opens the package you
were last in" holds on a device that already has it.
- The 68 published landing keys are kept and unread.
`check-i18n-dead-keys` (report-only, not in CI) will list them as
candidates, and a later change can decide to retire them.
- `docs/qa/platform-checklist/FOLLOW-UPS.md` still names
`BuilderLanding` in a dated follow-up entry; it is a log and was left as
written.

## Verification

Walked on a live stack at `a21c7b6f` (the previous head). Server: `pnpm
-C examples/app-showcase exec objectstack dev --seed-admin -p 4710` (CLI
and showcase closure built in a worktree). Console: this branch's
`ui/apps/console` under Vite on 4711, proxied to it. Signed in as the
seeded admin and driven with Playwright; key screens confirmed by
screenshot.

| Entry | Observed |
|:---|:---|
| `/studio`, nothing remembered | →
`/apps/com.objectstack.setup/component/developer/packages?face=admin` |
| `/studio?new=package` (old bookmark) | → same page, `new=package`
dropped, New Package dialog open |
| `/apps/setup/component/automation/packaged-actions` (no package) | →
Setup → Packages (admin face) |
| `/studio/no_such_pkg_36908` | 「Package not found…」 with 「Open the
package list」 → Setup → Packages |
| ObjectStack Showcase (code) row → detail | "Customizations in this
environment", "No changes in this environment yet", Customize in Studio
→ `/studio/com.example.showcase/data` |
| `/studio` after visiting that package | → back into
`/studio/com.example.showcase/data…` (remembered) |
| Sidebar app menu → 「Add app」 | New in Studio (the label at `a21c7b6f`;
「New blank app」 now) → `…packages?face=admin&new=package`; clicked, it
lands there with the dialog open |
| `/ai` (no assistant on this stack) | 「New in Studio」 (the label at
`a21c7b6f`; 「New blank app」 now) → `…packages?face=admin&new=package` |
| New Package dialog → Create package | →
`/studio/com.default.walk-pkg-36908/data` |
| That authored package's detail | no customizations section (count 0);
Open in Studio present |
| `/studio/~all/metadata` | renders the All Metadata Types area |

Not walked live, each pinned by unit tests:
- Home's 「New blank app」 chip (「New in Studio」 at `a21c7b6f`): its
condition does not hold on this seeded stack
(`HomePage.noAgentsBuildChip-26614`, `HomePage.desktopNoApps-36732`).
- A non-administrator's landings (bare `/studio`, the old bookmark and
the not-found button for a Studio-only principal): no such principal is
seeded (`StudioEntryRedirect.test.tsx`,
`StudioDesignSurface.notFound-26708`); their target `~all` renders
above.
- `studio:builder`: the `@objectstack/studio` app does not load on a
stock boot (`registerStudioComponents.builderLazy-11798`).

This round's changes were not walked live: the Studio-only exits, the
moved pins and the changesets change no administrator-visible entry
above; the 「Add app」 menu's new contents (no 「Build with AI」, 「New blank
app」 always) and the relabel are pinned in `SidebarAppMenu-36112` and
`HomePage.desktopNoApps-36732`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYkEULEjF814KSPBLVC)_
<!-- signed: repo:objectstack#4 · os-justin ·
session_01QSeKYkkwuF6UuFtu85Yd5H -->

---------

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/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants