You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ui: home field read-only with "converted at RATE on DATE"; live preview when a rate exists; Studio editor for homeAmount (multi-currency M3-2, epic #8345; the read-only display is released with M2) #27196
area:recordsBusiness objects, records, the views that show data, usable forms, searchdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3
Filing gate ③ (maintainer-directed). Ruling 6465431966 on #27119 (batch #421 item 2, Q1 = 乙-现在, maintainer 「同意立专题卡」 2026-10-28): the multi-currency epic resumes on #8345 in shape C′. Part of #8345. Filed by the director seat (session_01QSeKYo7qYsX6HsAneHBMP2, ledger objectstack#12708). ⛔ Not a claim. Workload row and precedents: 6464936321; design: 6464438764.
Ruling-ref: 6465431966
维护者速读
改了什么: 影子列只读显示并提示「按 X 汇率于 Y 日折算」;有汇率时表单实时预览 ≈ 本位币金额;Studio 字段编辑器加「本位币金额字段」下拉(只列 dynamic 模式存储型币种字段)。
Read-only rendering + tooltip from rateField / rateDate.
Preview: one rate read, cached; "awaiting rate" when none.
Studio editor.
Lane: ui · Size: M · Review: default. Clause-②: no · Metadata-protocol: none.
Epic: #8345 (parent; the epic PM dispatches pm:epic children; domain:spec children go to the spec seat's queue). Dedupe: #8345 thread, #27119 (ruled), the workload list 6464936321; no open card carries this slice.
Claim: PM loop round 1 · 2026-11-08T16:21Z
Session: session_01QsR2jQyTLkpKcX2UF8X3Ss (card thread, dev) · seat session_01QsR2jVEjiYrK7onirxUGyo
Account: zhuangjianguo
Branch: claude/project-thread-b809vx
Worktree: objectstack-issue-27196
Domain: domain:ui
Seat: domain:ui#3
File surface (provisional, the step-1 report confirms): ui/packages/fields/src/widgets/CurrencyField.tsx and its tests, the app-shell record form, the Studio inspectors CurrencyConfigField.tsx / ObjectFieldInspector.tsx, ui/packages/i18n/src/locales/*.ts if keys are added, root .changeset/; ⛔ no change to packages/spec/**, packages/objectql/** or the server
Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no (provisional: any new locale key makes it yes (widening) and owes a declaration review, settled at step 1)
Metadata-protocol: none
Responsibility: a record-mode amount's homeAmount home field (ADR-0144 D5) in objectstack has no ui reader: the form does not say which rate and date produced the stored home amount, no preview shows the conversion before save, and Studio has no editor for the three pointers | the platform path is the spec's HomeAmountSchema (field.zod.ts) and the engine's write-time projection (packages/objectql/src/home-amount-projection.ts) | finance users reconciling converted amounts, and Studio authors declaring homeAmount
Thread-read: 6723910106
Premise: holds in part. Both blockers are closed: #27191 (spec, homeAmount) and #27188 (ui record-mode currency). On origin/main6b83ec2de, nothing under ui/packages reads homeAmount. The card predates the spec in one respect: its title's rateField? is optional, but on main all three pointers are required. The spec and engine on main win, and step 1 names each difference.
Serial constraints cleared: the other domain:ui card in build on this seat is #31520 S2 (PR #31567, ui/scripts/ and the root walker only), on a disjoint surface
Scope: the card's three Task boxes (read-only display with the rate/date hint, a cached rate preview with an awaiting-rate state, the Studio homeAmount editor). Step-1 report first, before any code: the measured current rendering, the rate read and its refused-read state, the preview's arithmetic taken from the engine's rule and not copied, every new key, and a one-PR or sliced plan with a line budget. Slices say Part-of #27196; the last says Fixes #27196. Brief: /mnt/project-files/issue-27196/brief.md.
Step-1 report 6724108734 is read and accepted, with the rulings below. It was measured on origin/main6b83ec2de by card thread session_01QsR2jQyTLkpKcX2UF8X3Ss.
Two slices.
PR 1 covers Task 1 (the read-only home field with "Converted at RATE on DATE") and Task 3 (the Studio homeAmount editor). It says Part-of #27196 and builds now.
PR 2 covers Task 2 (the preview). It says Fixes #27196 and is Blocked-by: #31609.
⛔ No change to packages/spec/**, packages/objectql/** or the server.
Budget about 650 lines. If it passes 800, stop and report before going on.
Out of scope, kept as today: the auto-layout ObjectForm keeps dropping readonly fields (plugin-form/src/autoLayout.ts, filterSystemFields). Changing that would move every readonly field on every auto form. The home field reaches the record page and the authored-section form, which is where the hint goes. Say this in the PR body.
In scope, a live defect: re-picking currencyField in CurrencyConfigField (~L150) deletes an authored homeAmount. PR 1 keeps homeAmount on a pointer change, and still drops it when the mode moves away from record, as the spec requires. Pin both.
The Studio pickers follow the spec's judge, not a second statement of it. If object.zod.ts exports a predicate that refuseDishonestHomeAmount reads, import it. If none is exported, the candidate lists are hints, and the test oracle is the spec itself: every candidate combination the editor offers on the fixture object must parse through the object schema, and each excluded shape the report names must be refused by it. That covers a formula amount, a non-readonly target, a target with expression, a target already claimed, and a rate field with scale below 12. No refusal message is copied into the ui.
Locale keys.fields.currencyHome.convertedAt and fields.currencyHome.homeCurrency go in every locale pack (all-locales-key-parity) and FIELD_DEFAULTS. zh-Hant is generated with gen:zh-hant, not hand-written. The Studio designer.field.currency.* keys go in the studio namespace, en and zh only. node scripts/check-i18n-en-drift.mjs, run from ui/, must be green.
A refused read (403) shows "converted when you save", never "awaiting rate" and never a guessed amount. That shape must be measured live in PR 2, because it is NOT MEASURED in the report.
A parity test runs the engine's own cases through the ui path.
Clause-②: yes (widening)
Metadata-protocol: none
Clause-②: yes (widening): the new keys widen the published TranslationKeys of @object-ui/i18n. A TIER_DEFAULT declaration review by this seat is owed on PR 1 before landing.
Surface amended (PR 1). Adds ui/packages/plugin-form/src/ObjectForm.tsx, for the one withHomeAmountSource stamp at its authored-sections field build (generateField, ~L986).
Measured by the card thread: sectionFields.ts feeds only ModalForm and DrawerForm, so an inline ObjectForm with sections would keep drawing the home field as a disabled box with no hint.
The auto-layout readonly drop stays unchanged.
Pin the inline sectioned form beside the modal and drawer cases.
Why: Test UI (13/16) on 68f353ba reds "the undeclared reads are exactly the ledger". The census requires every key read on the form-field channel to be either declared on FormFieldSchema or in the ledger.
What the row records: the stamp is object-field metadata read off the object's field map, never authored on a form. That is the same class as the valueDomain and lookupAutofill rows, so it is ledgered and not declared.
ACCEPT → PR #31638 comment 6725657541 · 2026-11-08T18:57Z · head 0052b220 (PR 1: the home field's read face says the rate and document date it was converted at, on the record page and on sectioned forms; the Studio homeAmount editor, held to the spec as oracle; the re-pick defect fixed; 716 lines, not governed, Part-of #27196). Declaration review PASS 6725646288. Landing through the merge queue. The card stays pm:dispatched: PR 2 (the preview) is Blocked-by: #31609.
open, pm:dispatched kept: Part-of; PR 2 (the preview) is Blocked-by: #31609
Delivered (Tasks 1 and 3):
A home field declared through homeAmount draws its read face on the record page and on sectioned forms (modal, drawer and inline), with "Converted at RATE on DATE" taken from the record's stored rate and document date. An amount already in the home currency shows the rate-1 line instead.
Studio has a homeAmount editor with three pickers, held to the spec's own judge by oracle tests.
Re-picking the code field no longer deletes an authored homeAmount.
Not changed: the auto-layout ObjectForm still drops readonly fields.
Remaining: Task 2 (the live preview), Fixes #27196. Its rule moves in #31609, whose PR #31631 is Tier H and waits on a governed approver's merge.
Step 0: PR 2 (Task 2, the live preview) · 2026-11-08T22:12Z
⛔ Not a claim. Tree: origin/main9bf32864 (with #31631fe88ecda), branch claude/project-thread-b809vx restarted from main.
Clause-②: yes (widening). Five new locale keys in every pack (all-locales-key-parity) and FIELD_DEFAULTS, so TranslationKeys of @object-ui/i18n widens again. Placeholders are spelled in words here.
fields.currencyHome.preview: "≈ AMOUNT at RATE on DATE"
fields.currencyHome.awaitingRate: "No CURRENCY rate on or before DATE: saving is refused until one is added"
fields.currencyHome.awaitingDate: "Set the document date to see the home amount". This differs from the step-1 wording ("Pick FIELD …"): the amount widget does not hold its sibling's label, and getting it would need a new field-metadata stamp.
fields.currencyHome.rateUnreadable: "Converted to the home currency when you save" (a refused 403 read)
No new public export. The preview hook stays internal to @object-ui/fields.
Metadata-protocol: none.
Files beyond the step-1 item 7 list (asking before touching)
ui/packages/fields/package.json gains "@objectstack/formula": "workspace:^", the same spelling @object-ui/core and app-shell declare. pnpm-lock.yaml moves with it (one importer entry). Without it, check:undeclared-dep-imports refuses the import feat(formula): publish the home-amount conversion arithmetic #31631 made possible.
ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, only if the census records a new read on the form-field channel. The likely one is dataSource read off the currency widget's props. That would be a ledger row extension (an existing RUNTIME SLOT row gains a reader), not a declaration.
How it works
Rate read: dataSource.find('sys_exchange_rate', { $filter: { currency, effective_date: { $lte: DATE } }, $orderby: [{ field: 'effective_date', order: 'desc' }], $top: 1, $select: ['rate', 'effective_date'] }), the engine's own rateOn query. One read per adapter, currency and date, cached for the session.
Arithmetic: toScaledDecimal, divideToPlaces and formatScaledDecimal from @objectstack/formula, at CURRENCY_FRACTION_DIGITS[home] from @objectstack/spec/data.
Document date: documentDateOf(value, localization.timezone). A YYYY-MM-DD value is its own day, as in the engine.
dataSource reaches the currency widget through stripRegisteredFieldProps in components/src/renderers/form/form.tsx, as step-1 item 2 named. The SchemaRendererContext adapter is the fallback, the LookupField order.
403 read: classifyLoadError(...) === 'forbidden' shows rateUnreadable, never awaitingRate and never an amount. It will be measured live as a member on a dev server.
Clause-②: yes (widening). The five new fields.currencyHome.* keys go in every locale pack, with zh-Hant generated, and no public export is added. The seat owes a TIER_DEFAULT declaration review on the final head.
Surface widened by two files:
ui/packages/fields/package.json gains "@objectstack/formula": "workspace:^", and pnpm-lock.yaml moves with it.
It adds no new package to the graph: @object-ui/fields already depends on @object-ui/core, which depends on @objectstack/formula with the same specifier.
@objectstack/formula declares sideEffects: false.
The direct edge is what check:undeclared-dep-imports asks for. The PR states the @object-ui/fields bundle delta.
ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, only to add a reader to an existing row (for example dataSource on the RUNTIME SLOT row) if the census records a new read. Adding no new row means declaring nothing on FormFieldSchema.
Everything else in amendment 6724151062 stands, including the refused-read (403) state shown live.
ACCEPT → PR #31724 comment 6729193200 · 2026-11-09T00:16Z · head 57993ba6 (PR 2: the live "≈ home amount" line under an edited record-mode amount, with the engine's query and @objectstack/formula's arithmetic, a 403 rate read shown as "converted when you save"; 449 lines, not governed, Fixes #27196). Declaration review PASS 6729014477. Landing through the merge queue.
closed (completed) by Fixes #27196; pm:dispatched removed
Delivered:
The home field is read-only. On the record page and on sectioned forms, it says "Converted at RATE on DATE" from the record's stored values. This was PR 1, with Tasks 1 and 3.
The Studio homeAmount editor offers only pointers the spec accepts. PR 1 also fixed the defect where re-picking the code field deleted homeAmount.
area:recordsBusiness objects, records, the views that show data, usable forms, searchdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Oct 31, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: unblocked · back to the epic PM · 2026-10-31T04:01Z
⛔ Not a claim.
Blocked-by:targets are closed: spec(field):homeAmount: { field, rateDate, rateField? }on a record-mode amount — the stored home-currency projection declared by pointer (multi-currency M2-1, epic #8345; released with M2-2) #27191 at 2026-10-31T03:21Z and ui: record-mode currency —resolveFieldCurrencyreads the sibling code field's value; form pre-fills the organization currency; grid / drawer / dashboard / footer per-row display; Studio field editor (multi-currency M0-4, epic #8345) #27188 at 2026-10-29T13:34Z.pm:blockedis removed.pm:epicstays, and the epic PM dispatches it.Generated by Claude Code
objectstack-fleet commentedon Nov 8, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: released to the lane under #31502 A′ ·
pm:epic→pm:queue· 2026-11-08T16:18Z⛔ Not a claim.
pm:epic+Blocked-by:; rolling split; mandatory hand-over when an epic seat leaves; a cap on concurrent epics #31502 A′ point 2 says an orphaned epic moves now, and its children live in the lane queues.pm:epicremoved andpm:queueadded.domain:ui, p2 andpm:blockingstay. examples + QA: showcaseinvoicegoes multi-currency (code field, record amount, home field, document date), seeded rates, a rate-sync flow template, a platform-checklist item and a browser dogfood run (multi-currency M3-3, epic #8345) #27197 waits on this card.Parent: #8345. When this card closes, triage releases examples + QA: showcaseinvoicegoes multi-currency (code field, record amount, home field, document date), seeded rates, a rate-sync flow template, a platform-checklist item and a browser dogfood run (multi-currency M3-3, epic #8345) #27197.Generated by Claude Code
objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Claim: PM loop round 1 · 2026-11-08T16:21Z
Session:
session_01QsR2jQyTLkpKcX2UF8X3Ss(card thread, dev) · seatsession_01QsR2jVEjiYrK7onirxUGyoAccount:
zhuangjianguoBranch:
claude/project-thread-b809vxWorktree:
objectstack-issue-27196Domain:
domain:uiSeat:
domain:ui#3File surface (provisional, the step-1 report confirms):
ui/packages/fields/src/widgets/CurrencyField.tsxand its tests, the app-shell record form, the Studio inspectorsCurrencyConfigField.tsx/ObjectFieldInspector.tsx,ui/packages/i18n/src/locales/*.tsif keys are added, root.changeset/; ⛔ no change topackages/spec/**,packages/objectql/**or the serverContainer & model: M,
mode:thread,model: default tier(dispatch-gates --tier: no path-derived mandate),effort: highClause-②: no (provisional: any new locale key makes it
yes (widening)and owes a declaration review, settled at step 1)Metadata-protocol: none
Responsibility: a
record-mode amount'shomeAmounthome field (ADR-0144 D5) in objectstack has no ui reader: the form does not say which rate and date produced the stored home amount, no preview shows the conversion before save, and Studio has no editor for the three pointers | the platform path is the spec'sHomeAmountSchema(field.zod.ts) and the engine's write-time projection (packages/objectql/src/home-amount-projection.ts) | finance users reconciling converted amounts, and Studio authors declaringhomeAmountThread-read: 6723910106
Premise: holds in part. Both blockers are closed: #27191 (spec,
homeAmount) and #27188 (ui record-mode currency). Onorigin/main6b83ec2de, nothing underui/packagesreadshomeAmount. The card predates the spec in one respect: its title'srateField?is optional, but on main all three pointers are required. The spec and engine on main win, and step 1 names each difference.Serial constraints cleared: the other
domain:uicard in build on this seat is #31520 S2 (PR #31567,ui/scripts/and the root walker only), on a disjoint surfaceScope: the card's three Task boxes (read-only display with the rate/date hint, a cached rate preview with an awaiting-rate state, the Studio
homeAmounteditor). Step-1 report first, before any code: the measured current rendering, the rate read and its refused-read state, the preview's arithmetic taken from the engine's rule and not copied, every new key, and a one-PR or sliced plan with a line budget. Slices sayPart-of #27196; the last saysFixes #27196. Brief:/mnt/project-files/issue-27196/brief.md.2 remaining items
objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Claim amendment · 2026-11-08T16:39Z · claim 6723943475
Step-1 report 6724108734 is read and accepted, with the rulings below. It was measured on
origin/main6b83ec2deby card threadsession_01QsR2jQyTLkpKcX2UF8X3Ss.homeAmounteditor). It saysPart-of #27196and builds now.Fixes #27196and isBlocked-by: #31609.pm:dispatcheduntil PR 2 lands. examples + QA: showcaseinvoicegoes multi-currency (code field, record amount, home field, document date), seeded rates, a rate-sync flow template, a platform-checklist item and a browser dogfood run (multi-currency M3-3, epic #8345) #27197 waits on the whole card, and triage releases it when the card closes. PR 1 does not release it early.toScaledDecimal,divideToPlaces,formatScaledDecimal,documentDateOf) are exported by no package the ui can import. This seat filed formula: export the home-amount conversion arithmetic (scaled-decimal divide, rounding, document date) so the ui preview reuses the engine rule (blocks #27196 PR 2) #31609 (domain:server, p2): the four functions move to a published package both sides depend on (@objectstack/formulais proposed), with byte-identical behaviour. That is the report's option A. Options B (a dry-run route), C (a copy) and D (dropping the preview) are declined.ui/packages/i18n/src/currency.tsand itsindex.ts, the locale packs, andnamespaces/studio/{en,zh}.ts.ui/packages/fields/src/{currency.ts,index.tsx,widgets/CurrencyField.tsx,widgets/useFieldTranslation.ts}.ui/packages/plugin-form/src/sectionFields.tsandui/packages/plugin-detail/src/DetailSection.tsx.ui/packages/app-shell/src/views/metadata-admin/inspectors/{CurrencyConfigField.tsx,ObjectFieldInspector.tsx}..changeset/.packages/spec/**,packages/objectql/**or the server.ObjectFormkeeps droppingreadonlyfields (plugin-form/src/autoLayout.ts,filterSystemFields). Changing that would move every readonly field on every auto form. The home field reaches the record page and the authored-section form, which is where the hint goes. Say this in the PR body.currencyFieldinCurrencyConfigField(~L150) deletes an authoredhomeAmount. PR 1 keepshomeAmounton a pointer change, and still drops it when the mode moves away fromrecord, as the spec requires. Pin both.object.zod.tsexports a predicate thatrefuseDishonestHomeAmountreads, import it. If none is exported, the candidate lists are hints, and the test oracle is the spec itself: every candidate combination the editor offers on the fixture object must parse through the object schema, and each excluded shape the report names must be refused by it. That covers aformulaamount, a non-readonly target, a target withexpression, a target already claimed, and a rate field withscalebelow 12. No refusal message is copied into the ui.fields.currencyHome.convertedAtandfields.currencyHome.homeCurrencygo in every locale pack (all-locales-key-parity) andFIELD_DEFAULTS. zh-Hant is generated withgen:zh-hant, not hand-written. The Studiodesigner.field.currency.*keys go in the studio namespace, en and zh only.node scripts/check-i18n-en-drift.mjs, run fromui/, must be green.Clause-②: yes (widening)
Metadata-protocol: none
Clause-②: yes (widening): the new keys widen the publishedTranslationKeysof@object-ui/i18n. ATIER_DEFAULTdeclaration review by this seat is owed on PR 1 before landing.objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Claim amendment · 2026-11-08T16:49Z · claim 6723943475 (surface only; amendment 6724151062 stands)
ui/packages/plugin-form/src/ObjectForm.tsx, for the onewithHomeAmountSourcestamp at its authored-sectionsfield build (generateField, ~L986).sectionFields.tsfeeds onlyModalFormandDrawerForm, so an inlineObjectFormwith sections would keep drawing the home field as a disabled box with no hint.objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jQyTLkpKcX2UF8X3Ss
os-dev-report
{ "card": 27196, "pr": 31638, "pr_body_ref": "Part-of #27196", "slice": "PR 1 of 2 (Tasks 1 and 3); PR 2 (Task 2 preview) Fixes #27196, Blocked-by #31609, not started", "head": "68f353bae4e9ac4082d9aa91ac0bdf156bab698c", "merged_main": "69244406", "parallel_fix_scan": "none (no file touched here changed on main since the branch base)", "declarations": { "clause_2": "yes (widening)", "metadata_protocol": "none" }, "gates": { "derived": 39, "run": 39, "not_measured": 0, "unrun": 0, "all_exit_0": true, "list": [ { "cmd": "node scripts/check-adr-0087-registration.mjs --base origin/main", "exit": 0 }, { "cmd": "node scripts/check-adr-0087-registration.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-changeset-no-major.mjs --base origin/main", "exit": 0 }, { "cmd": "node scripts/check-closing-keyword-parity.mjs", "exit": 0 }, { "cmd": "node scripts/check-closing-keyword-parity.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-comment-mask-corpus.mjs", "exit": 0 }, { "cmd": "node scripts/check-empty-changeset.mjs --base origin/main", "exit": 0 }, { "cmd": "node scripts/check-empty-changeset.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-sdui-manifest.mjs", "exit": 0 }, { "cmd": "node scripts/check-sdui-manifest.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/ci/snapshot-next.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/pm/release-rehearsal-clone.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/release-pending-publish.mjs --self-test", "exit": 0 }, { "cmd": "pnpm --filter @objectstack/spec run check:duration-unit-keys", "exit": 0 }, { "cmd": "pnpm --filter @objectstack/spec run check:error-code-provenance", "exit": 0 }, { "cmd": "pnpm check:changeset-gate-self-tests", "exit": 0 }, { "cmd": "pnpm check:closed-ceremony-text", "exit": 0 }, { "cmd": "pnpm check:cross-package-test-inputs", "exit": 0 }, { "cmd": "pnpm check:dispatcher-error-vocabulary", "exit": 0 }, { "cmd": "pnpm check:driver-memory-census", "exit": 0 }, { "cmd": "pnpm check:engine-double-contract", "exit": 0 }, { "cmd": "pnpm check:gitlink-declared", "exit": 0 }, { "cmd": "pnpm check:merge-driver", "exit": 0 }, { "cmd": "pnpm check:nul-bytes", "exit": 0 }, { "cmd": "pnpm check:published-files", "exit": 0 }, { "cmd": "pnpm check:query-options-erasure", "exit": 0 }, { "cmd": "pnpm check:refd-timer-probe", "exit": 0 }, { "cmd": "pnpm check:registry-log-declared", "exit": 0 }, { "cmd": "pnpm check:rest-log-spy-declared", "exit": 0 }, { "cmd": "pnpm check:role-word", "exit": 0 }, { "cmd": "pnpm check:skill-identifier-liveness", "exit": 0 }, { "cmd": "pnpm check:test-source-alias", "exit": 0 }, { "cmd": "pnpm check:tier-file-adoption", "exit": 0 }, { "cmd": "pnpm check:undeclared-dep-imports", "exit": 0 }, { "cmd": "pnpm check:watch-hint-literal", "exit": 0 }, { "cmd": "pnpm check:where-matcher", "exit": 0 }, { "cmd": "pnpm --dir ui exec vitest run scripts/", "exit": 0 }, { "cmd": "pnpm check:type-check-coverage", "exit": 0 }, { "cmd": "pnpm check:type-check-debt", "exit": 0 } ] }, "body_gates": { "check-changeset-no-major --base origin/main": 0, "check-adr-0087-registration --base origin/main": 0, "check-closing-keyword-parity": 0, "check-partof-closing-keyword": 0 }, "suites": { "@object-ui/i18n": "99 files, 1804 passed, 13 skipped", "@object-ui/fields": "300 passed + 1 skipped files, 4548 passed, 7 skipped", "@object-ui/plugin-form": "226 files, 2465 passed, 1 skipped", "@object-ui/plugin-detail": "374 passed + 1 skipped files, 3355 passed, 18 skipped", "app-shell (narrowed: 54 files naming CurrencyConfigField or ObjectFieldInspector)": "54 files, 578 passed", "ui scripts/": "170 passed + 2 skipped files, 5002 passed, 2 skipped" }, "ablations": [ { "cut": "readHomeAmountSource returns undefined", "red": "9/22 display pins", "restored": "blob == HEAD" }, { "cut": "rate-field filter keeps only type number", "red": "2/13 Studio pins", "restored": "blob == HEAD" }, { "cut": "code-field re-pick drops homeAmount", "red": "1/13 Studio pins", "restored": "blob == HEAD" } ], "line_budget": { "target": 650, "stop": 800, "measured": "+700/-11 over 28 files (git diff --shortstat origin/main...HEAD)", "within_stop": true }, "files_changed": [ ".changeset/27196-home-amount-display.md", "ui/packages/app-shell/src/views/metadata-admin/inspectors/CurrencyConfigField.recordMode-27188.test.tsx", "ui/packages/app-shell/src/views/metadata-admin/inspectors/CurrencyConfigField.tsx", "ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx", "ui/packages/fields/src/__tests__/recordCurrency.faces-27188.test.tsx", "ui/packages/fields/src/index.tsx", "ui/packages/fields/src/widgets/CurrencyField.tsx", "ui/packages/fields/src/widgets/useFieldTranslation.ts", "ui/packages/i18n/src/currency.ts", "ui/packages/i18n/src/index.ts", "ui/packages/i18n/src/locales/ar.ts", "ui/packages/i18n/src/locales/de.ts", "ui/packages/i18n/src/locales/en.ts", "ui/packages/i18n/src/locales/es.ts", "ui/packages/i18n/src/locales/fr.ts", "ui/packages/i18n/src/locales/ja.ts", "ui/packages/i18n/src/locales/ko.ts", "ui/packages/i18n/src/locales/pt-BR.ts", "ui/packages/i18n/src/locales/ru.ts", "ui/packages/i18n/src/locales/zh-Hans.ts", "ui/packages/i18n/src/locales/zh-Hant.ts", "ui/packages/i18n/src/namespaces/studio/en.ts", "ui/packages/i18n/src/namespaces/studio/zh.ts", "ui/packages/plugin-detail/src/DetailSection.tsx", "ui/packages/plugin-detail/src/__tests__/DetailSection.homeAmount-27196.test.tsx", "ui/packages/plugin-form/src/ObjectForm.tsx", "ui/packages/plugin-form/src/__tests__/sectionFormHomeAmount-27196.test.tsx", "ui/packages/plugin-form/src/sectionFields.ts" ], "deviations": [ "line count 700 is over the 650 target and under the 800 stop; about 60 percent is tests", "app-shell suite narrowed to the 54 files naming CurrencyConfigField or ObjectFieldInspector; the rest of app-shell not run locally", "the CurrencyConfigField harness gained two module-top imports (formula, lint) that check:test-source-alias asked for once the file was edited", "the PR is not subscribed for activity from this thread: re-runs after open are the seat's" ], "not_measured": [ "live Console screenshot of the home field (pinned in jsdom only)", "preview refused-read 403 state (slice 2)" ], "security_findings": "none", "writes": { "api": 3, "detail": "step-1 comment, pr_create via relay, this report" }, "mcp_calls": { "reads": 6, "writes": 0 } }objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Claim amendment · 2026-11-08T18:25Z · claim 6723943475 (surface only; amendments 6724151062 and 6724257070 stand)
ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, for one RUNTIME-ONLY ledger row,homeAmountSource, read byentry@i18n/src/currency.ts.68f353bareds "the undeclared reads are exactly the ledger". The census requires every key read on the form-field channel to be either declared onFormFieldSchemaor in the ledger.valueDomainandlookupAutofillrows, so it is ledgered and not declared.objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
ACCEPT → PR #31638 comment 6725657541 · 2026-11-08T18:57Z · head
0052b220(PR 1: the home field's read face says the rate and document date it was converted at, on the record page and on sectioned forms; the StudiohomeAmounteditor, held to the spec as oracle; the re-pick defect fixed; 716 lines, not governed,Part-of #27196). Declaration review PASS 6725646288. Landing through the merge queue. The card stayspm:dispatched: PR 2 (the preview) isBlocked-by: #31609.objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Slice landed · PR 1 · 2026-11-08T19:21Z
2e33533e895bfcefccb3c797837e1fefd14ec538onmainpm:dispatchedkept:Part-of; PR 2 (the preview) isBlocked-by: #31609Delivered (Tasks 1 and 3):
homeAmountdraws its read face on the record page and on sectioned forms (modal, drawer and inline), with "Converted at RATE on DATE" taken from the record's stored rate and document date. An amount already in the home currency shows the rate-1 line instead.homeAmounteditor with three pickers, held to the spec's own judge by oracle tests.homeAmount.Not changed: the auto-layout
ObjectFormstill drops readonly fields.Remaining: Task 2 (the live preview),
Fixes #27196. Its rule moves in #31609, whose PR #31631 is Tier H and waits on a governed approver's merge.objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jQyTLkpKcX2UF8X3Ss
os-dev step-0 Clause-② call
Step 0: PR 2 (Task 2, the live preview) · 2026-11-08T22:12Z
⛔ Not a claim. Tree:
origin/main9bf32864(with #31631fe88ecda), branchclaude/project-thread-b809vxrestarted from main.Clause-②: yes (widening). Five new locale keys in every pack (
all-locales-key-parity) andFIELD_DEFAULTS, soTranslationKeysof@object-ui/i18nwidens again. Placeholders are spelled in words here.fields.currencyHome.preview: "≈ AMOUNT at RATE on DATE"fields.currencyHome.previewSame: "≈ AMOUNT (home currency)"fields.currencyHome.awaitingRate: "No CURRENCY rate on or before DATE: saving is refused until one is added"fields.currencyHome.awaitingDate: "Set the document date to see the home amount". This differs from the step-1 wording ("Pick FIELD …"): the amount widget does not hold its sibling's label, and getting it would need a new field-metadata stamp.fields.currencyHome.rateUnreadable: "Converted to the home currency when you save" (a refused 403 read)No new public export. The preview hook stays internal to
@object-ui/fields.Metadata-protocol: none.
Files beyond the step-1 item 7 list (asking before touching)
ui/packages/fields/package.jsongains"@objectstack/formula": "workspace:^", the same spelling@object-ui/coreandapp-shelldeclare.pnpm-lock.yamlmoves with it (one importer entry). Without it,check:undeclared-dep-importsrefuses the import feat(formula): publish the home-amount conversion arithmetic #31631 made possible.ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, only if the census records a new read on the form-field channel. The likely one isdataSourceread off the currency widget's props. That would be a ledger row extension (an existing RUNTIME SLOT row gains a reader), not a declaration.How it works
dataSource.find('sys_exchange_rate', { $filter: { currency, effective_date: { $lte: DATE } }, $orderby: [{ field: 'effective_date', order: 'desc' }], $top: 1, $select: ['rate', 'effective_date'] }), the engine's ownrateOnquery. One read per adapter, currency and date, cached for the session.toScaledDecimal,divideToPlacesandformatScaledDecimalfrom@objectstack/formula, atCURRENCY_FRACTION_DIGITS[home]from@objectstack/spec/data.documentDateOf(value, localization.timezone). AYYYY-MM-DDvalue is its own day, as in the engine.dataSourcereaches thecurrencywidget throughstripRegisteredFieldPropsincomponents/src/renderers/form/form.tsx, as step-1 item 2 named. TheSchemaRendererContextadapter is the fallback, the LookupField order.classifyLoadError(...) === 'forbidden'showsrateUnreadable, neverawaitingRateand never an amount. It will be measured live as a member on a dev server.Line budget about 350 lines, per step-1 item 7.
objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Claim amendment · PR 2 · 2026-11-08T22:13Z
Amends the claim 6723943475 and amendment 6724151062 for PR 2 (Task 2, the preview), after the dev's step-0 call 6727854849.
fe88ecda(2026-11-08T21:40Z). PR 2 carriesFixes #27196and noBlocked-by:.fields.currencyHome.*keys go in every locale pack, with zh-Hant generated, and no public export is added. The seat owes aTIER_DEFAULTdeclaration review on the final head.ui/packages/fields/package.jsongains"@objectstack/formula": "workspace:^", andpnpm-lock.yamlmoves with it.@object-ui/fieldsalready depends on@object-ui/core, which depends on@objectstack/formulawith the same specifier.@objectstack/formuladeclaressideEffects: false.check:undeclared-dep-importsasks for. The PR states the@object-ui/fieldsbundle delta.ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, only to add a reader to an existing row (for exampledataSourceon the RUNTIME SLOT row) if the census records a new read. Adding no new row means declaring nothing onFormFieldSchema.objectstack-fleet commentedon Nov 8, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jQyTLkpKcX2UF8X3Ss
os-dev-report
{ "card": 27196, "pr": 31724, "pr_body_ref": "Fixes #27196", "slice": "PR 2 of 2 (Task 2, the live preview); PR 1 #31638 merged 2e33533e", "head": "57993ba65a6d74dadc132374899bf4d3356da389", "measured_head": "78863476 (pre-merge; the merged main commits touch no PR file)", "parallel_fix_scan": "none (no PR file changed on main; no main commit names sys_exchange_rate under ui/)", "declarations": { "clause_2": "yes (widening)", "metadata_protocol": "none", "step0": 6727854849 }, "gates": { "derived": 59, "run": 59, "not_measured": 0, "unrun": 0, "all_exit_0": true, "notes": [ "check:query-options-erasure timed out at 300s in the loop, re-run alone exit 0 (5m22s)", "check:dual-build-cjs-loads exit 3 (unbuilt) until the platform build, re-run exit 0" ], "list": [ { "cmd": "node scripts/check-adr-0087-registration.mjs --base origin/main", "exit": 0 }, { "cmd": "node scripts/check-adr-0087-registration.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-changeset-no-major.mjs --base origin/main", "exit": 0 }, { "cmd": "node scripts/check-closing-keyword-parity.mjs", "exit": 0 }, { "cmd": "node scripts/check-closing-keyword-parity.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-comment-mask-corpus.mjs", "exit": 0 }, { "cmd": "node scripts/check-console-intercept-disarm.mjs", "exit": 0 }, { "cmd": "node scripts/check-console-intercept-disarm.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-dts-emitted.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-empty-changeset.mjs --base origin/main", "exit": 0 }, { "cmd": "node scripts/check-empty-changeset.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-osv-exemptions.mjs", "exit": 0 }, { "cmd": "node scripts/check-osv-exemptions.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/check-sdui-manifest.mjs", "exit": 0 }, { "cmd": "node scripts/check-sdui-manifest.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/ci/assert-turbo-remote-cache.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/ci/plan-test-core-shards.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/ci/prune-turbo-cache.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/ci/snapshot-next.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/osv-base-relative.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/pm/release-rehearsal-clone.mjs --self-test", "exit": 0 }, { "cmd": "node scripts/release-pending-publish.mjs --self-test", "exit": 0 }, { "cmd": "pnpm --filter @objectstack/spec run check:duration-unit-keys", "exit": 0 }, { "cmd": "pnpm --filter @objectstack/spec run check:llms-txt", "exit": 0 }, { "cmd": "pnpm check:changeset-fixed", "exit": 0 }, { "cmd": "pnpm check:changeset-gate-self-tests", "exit": 0 }, { "cmd": "pnpm check:closed-ceremony-text", "exit": 0 }, { "cmd": "pnpm check:cross-package-test-inputs", "exit": 0 }, { "cmd": "pnpm check:dispatcher-error-vocabulary", "exit": 0 }, { "cmd": "pnpm check:driver-memory-census", "exit": 0 }, { "cmd": "pnpm check:dts-closure", "exit": 0 }, { "cmd": "pnpm check:dual-build-cjs-loads", "exit": 0 }, { "cmd": "pnpm check:engine-double-contract", "exit": 0 }, { "cmd": "pnpm check:gitlink-declared", "exit": 0 }, { "cmd": "pnpm check:lean-entry-closure", "exit": 0 }, { "cmd": "pnpm check:manifest-repository-directory", "exit": 0 }, { "cmd": "pnpm check:merge-driver", "exit": 0 }, { "cmd": "pnpm check:nul-bytes", "exit": 0 }, { "cmd": "pnpm check:override-consistency", "exit": 0 }, { "cmd": "pnpm check:pnpm-flag-spellings", "exit": 0 }, { "cmd": "pnpm check:published-files", "exit": 0 }, { "cmd": "pnpm check:query-options-erasure", "exit": 0 }, { "cmd": "pnpm check:refd-timer-probe", "exit": 0 }, { "cmd": "pnpm check:registry-log-declared", "exit": 0 }, { "cmd": "pnpm check:rest-log-spy-declared", "exit": 0 }, { "cmd": "pnpm check:role-word", "exit": 0 }, { "cmd": "pnpm check:skill-identifier-liveness", "exit": 0 }, { "cmd": "pnpm check:sourcemap-no-sources-content", "exit": 0 }, { "cmd": "pnpm check:test-source-alias", "exit": 0 }, { "cmd": "pnpm check:tier-file-adoption", "exit": 0 }, { "cmd": "pnpm check:turbo-task-graph", "exit": 0 }, { "cmd": "pnpm check:undeclared-dep-imports", "exit": 0 }, { "cmd": "pnpm check:vendor-export-contract-resolve", "exit": 0 }, { "cmd": "pnpm check:watch-hint-literal", "exit": 0 }, { "cmd": "pnpm check:where-matcher", "exit": 0 }, { "cmd": "pnpm check:workspace-manifest-cycles", "exit": 0 }, { "cmd": "pnpm --dir ui exec vitest run scripts/", "exit": 0 }, { "cmd": "pnpm check:type-check-coverage", "exit": 0 }, { "cmd": "pnpm check:type-check-debt", "exit": 0 } ] }, "body_gates": { "check-changeset-no-major --base origin/main": 0, "check-adr-0087-registration --base origin/main": 0, "check-closing-keyword-parity": 0, "check-partof-closing-keyword": 0 }, "also_run": { "turbo type-check fields+i18n+plugin-form": "55 tasks green", "eslint touched files": "0 errors", "check-i18n-en-drift": 0, "form-field census": "34/34, no row change" }, "suites": { "@object-ui/i18n + ui/examples/schema-catalog": "144 files, 4241 passed, 13 skipped", "@object-ui/fields": "301 passed + 1 skipped files, 4556 passed, 7 skipped", "@object-ui/plugin-form": "226 files, 2466 passed, 1 skipped", "ui scripts/": "170 passed + 2 skipped files, 5027 passed, 2 skipped" }, "examples_census_grep": "only catalog-gallery-render.test.tsx names a touched path (useFieldTranslation.ts); green in the schema-catalog run", "ablations": [ { "cut": "rate cache removed", "red": "1/8 (once-per-currency-and-date pin)" }, { "cut": "403 branch removed", "red": "1/8 (refused pin)" }, { "cut": "home digits taken as 2", "red": "1/8 (engine parity pin)" }, { "cut": "HomeAmountPreview mount removed", "red": "7/14 incl. the ObjectForm pin" } ], "live": { "server": "pnpm dev:crm + built Console at /_console, scratch package com.example.fxprev", "engine_stored": { "amount_home": 71994.24, "amount_rate": 0.1389 }, "admin": { "read": "200, picked the 2026-01-01 row 0.1389", "line": "≈ CN¥71,994.24 at 0.1389 on Mar 15, 2026", "after_typing_20000": "≈ CN¥143,988.48 at 0.1389 on Mar 15, 2026, no second read" }, "member": { "read": "403 PERMISSION_DENIED", "adapter_error": { "httpStatus": 403, "code": "PERMISSION_DENIED" }, "classifyLoadError": "forbidden", "line": "Converted to the home currency when you save", "after_typing": "same line, no second read" }, "artifacts": "/mnt/project-files/issue-27196/live-pr2/" }, "bundle_delta": { "package": "@object-ui/fields dist/index.js", "raw": "349245 -> 352872 (+3627)", "gzip": "90342 -> 91356 (+1014)", "note": "@objectstack/formula external, already in the Console graph via @object-ui/core" }, "line_budget": { "target": 350, "measured": "+447/-2 over 19 files", "over_target_by": "about 100 lines; tests and 55 locale lines are most of it" }, "files_changed": [ ".changeset/27196-home-amount-preview.md", "pnpm-lock.yaml", "ui/packages/fields/package.json", "ui/packages/fields/src/__tests__/homeAmountPreview-27196.test.tsx", "ui/packages/fields/src/widgets/CurrencyField.tsx", "ui/packages/fields/src/widgets/homeAmountPreview.tsx", "ui/packages/fields/src/widgets/useFieldTranslation.ts", "ui/packages/i18n/src/locales/ar.ts", "ui/packages/i18n/src/locales/de.ts", "ui/packages/i18n/src/locales/en.ts", "ui/packages/i18n/src/locales/es.ts", "ui/packages/i18n/src/locales/fr.ts", "ui/packages/i18n/src/locales/ja.ts", "ui/packages/i18n/src/locales/ko.ts", "ui/packages/i18n/src/locales/pt-BR.ts", "ui/packages/i18n/src/locales/ru.ts", "ui/packages/i18n/src/locales/zh-Hans.ts", "ui/packages/i18n/src/locales/zh-Hant.ts", "ui/packages/plugin-form/src/__tests__/sectionFormHomeAmount-27196.test.tsx" ], "deviations": [ "components/src/renderers/form/form.tsx not touched although step-1 item 2 listed it: the form already hands registered widgets the SchemaRendererContext adapter, which the widget reads as its fallback (LookupField order); forwarding it again would add a line no pin can tell apart", "awaitingDate wording differs from step 1 ('Set the document date to see the home amount'): the amount widget does not hold its sibling's label (step-0 6727854849)", "census file untouched: the approved reader extension was not needed", "line count over the ~350 estimate (447)", "the live harness signs in by password (the Console's /auth/me/localization read is cookie-only; a localStorage bearer alone leaves the home currency unset and no line draws); the member's temporary password was changed through /auth/change-password", "worktree kept until landing for CI fixes (PR 1 needed one); removed after merge", "PR not subscribed for activity: re-runs are the seat's" ], "not_measured": [ "phone-width rendering of the line" ], "security_findings": "none", "writes": { "api": 3, "detail": "step-0 comment, pr_create via relay, this report" }, "mcp_calls": { "reads": 1, "writes": 0 } }objectstack-fleet commentedon Nov 9, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
ACCEPT → PR #31724 comment 6729193200 · 2026-11-09T00:16Z · head
57993ba6(PR 2: the live "≈ home amount" line under an edited record-mode amount, with the engine's query and@objectstack/formula's arithmetic, a 403 rate read shown as "converted when you save"; 449 lines, not governed,Fixes #27196). Declaration review PASS 6729014477. Landing through the merge queue.objectstack-fleet commentedon Nov 9, 2026
domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo
Landed · 2026-11-09T01:00Z
2e33533eonmain2a32bd45a83ebbcb83549e38a2ef9f74ccd64e16onmainFixes #27196;pm:dispatchedremovedDelivered:
homeAmounteditor offers only pointers the spec accepts. PR 1 also fixed the defect where re-picking the code field deletedhomeAmount.@objectstack/formula's (hoisted in formula: export the home-amount conversion arithmetic (scaled-decimal divide, rounding, document date) so the ui preview reuses the engine rule (blocks #27196 PR 2) #31609). A member who cannot read rates sees "converted when you save". This was PR 2, Task 2.Unblocks #27197 (
Blocked-by: #27192,#27196, both closed now). It is put back topm:queueindomain:devx.