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
Standalone form: a lookupAutofill field still copies an amount across currencies (the guard from #36918 applies only on record forms) #36923
Filing gate: ① a data-correctness defect, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7127028135). Source: an out-of-scope finding from PR #36918, which fixes #36412's cross-currency lookup autofill on the record-form paths.
What happens
A form node rendered on its own (the @object-ui/components form renderer, outside a record form) with a field that declares lookupAutofill still copies a currency amount from the picked record when the two sides use different currencies. PR #36918 stamps the currency guard on the record-form paths. A standalone form node has nothing that stamps it, so the guard never applies there. The person sees an amount in the wrong currency, filled in without a note, and can save it.
reach: not measured. It reaches authored pages that put a bare form node with lookupAutofill on a currency field. The dev counts them first (examples, showcase, HotCRM) and records the count in the PR.
Expected
A standalone form node applies the same cross-currency guard as a record form when it can know the field's currency. If it cannot, the field's described contract says where the guard holds.
Acceptance
Option A (the dev's recommendation): when the form node has objectName, it stamps the guard from that object's schema, the same way the record-form paths do. A test pins a cross-currency pick on a standalone form node that copies no amount.
Dedupe: open issues for lookupAutofill return #36412 (the record-form follow-ups that #36918 fixes) and #36349 (skills text). Neither covers the standalone form node.
Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S.
Rationale: a wrong-currency amount filled in silently is a data defect, but its reach is unmeasured and limited to authored pages that use a bare form node with lookupAutofill. It is not a core path every user hits every time, so the UX rule gives p2. Seat 3 takes it, as its request said.
Claim: PM loop round 1 · area a4-U · 2026-11-24T16:16Z
Session: session_01QSeKYmRepQK9DkZeU7F53D
Account: os-justin
Branch: claude/issue-36923-standalone-form-currency-guard
Worktree: objectstack-issue-36923
Domain: domain:ui
Seat: repo:objectstack#4
Area: a4-U
File surface: ui/packages/components/src/renderers/form/** (the standalone form node: stamp the lookupAutofill target definitions from the object schema when the node has objectName), possibly ui/packages/fields/src/widgets/lookupAutofill.ts (reuse of withLookupAutofillTargets, no new contract), a new test file named for this card, one patch changeset. Option B only for the no-objectName arm, and then the FieldSchema.lookupAutofill describe in packages/spec/src/data/field.zod.ts plus its regenerated artifacts (stop on breach of anything else; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier at a73edb3: no path-derived mandate), effort: high (reason: S but not mechanical — the option A/B judgment is in the design, so M treatment per execution-duties.md)
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own code (ui/packages/components standalone form renderer, objectstack) carries the defect | the platform path that already covers it is the record-form stamp in ui/packages/plugin-form/src/recordFormStamp.ts (withLookupAutofillTargets), which the standalone node never calls | anyone whose authored page puts a bare form node with lookupAutofill on a currency field; today's count is unmeasured — the dev counts examples, showcase and HotCRM and records it in the PR
Thread-read: 7127070612
Premise: holds — at origin/maina73edb3withLookupAutofillTargets is applied only by ui/packages/plugin-form/src/recordFormStamp.ts:60; ui/packages/components/src/renderers/form/form.tsx never applies it, so readLookupAutofillTargets in ui/packages/fields/src/widgets/LookupField.tsx:1241 reads undefined there and no currency context forms
Serial constraints cleared: none — no open PR touches form.tsx, lookupAutofill.ts, LookupField.tsx, recordFormStamp.ts or fieldWriteGate.ts (47 open PR file lists read now); the predecessor PR #36918 merged at 4f19091
Pre-claim lane: ui/** — this seat's whole-repo lane, file roots as above; packages/spec/src/data/field.zod.ts only on option B's arm, kept in lane under the stay-in-lane rule
Pre-claim deps: no Blocked-by:; the card's source PR #36918 is merged (4f19091, 2026-11-24T09:32Z)
Prior rulings read: lookupautofill,crosscurrency,withlookupautofilltargets → 0 hits in ADRs/AGENTS.md; thread: none; surface: 82 ruling-shaped lines under the form tree, one on this subject — ui/packages/fields/src/widgets/lookupAutofill.ts:152 citing ruling 7075336705 on #36249: 「B 币种不同就不填并说明」, ruled text: "when a pick would copy a money value whose currency differs from the currency of the field it fills, the value is not copied. The cell stays empty and the form says why." This card extends that ruling to the standalone form node; it decides nothing new. Repo: objectstack-ai/objectstack
Ruling-ref: 7075336705 on #36249 「B 币种不同就不填并说明」
{
"issue": 36923,
"status": "needs_decision",
"branch": "claude/issue-36923-standalone-form-currency-guard",
"pr": null,
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "Premise holds by reading at objectstack 9c57bd28 (origin/main when the worktree was cut): the standalone form renderer (ui/packages/components/src/renderers/form/form.tsx) hands every lookup an onAutofill writer and its field meta as `field.field || field`, never stamps the lookupAutofill target definitions, so LookupField's readLookupAutofillTargets answers undefined, currencyFor answers no context, and every pair copies unguarded with no note. Option A as scoped cannot be built without one of the dispatch's stop conditions: @object-ui/fields depends on @object-ui/components (ui/packages/fields/package.json line 33), so components importing withLookupAutofillTargets from fields is a dependency cycle; every non-cycle route needs a new public export (hoisting the stamp and its helper down a layer, or a new context or widget prop). No code written, no PR. Two more measured facts shape the decision: the object's own FieldSchema.lookupAutofill never reaches a bare form node (it draws the authored field config; the key gets there only when someone writes it on the form field itself, which is a loose face where the form-field census marks lookupAutofill RUNTIME-ONLY), and the record form already passes objectName into its inner form node (ObjectForm.tsx lines 1861 and 2020), so a stamp in form.tsx keyed on objectName would also run on every record form. Reach measured: 0 (see out_of_scope_findings and open_questions).",
"tests": "NOT MEASURED: no code written. The premise is a source reading at 9c57bd28, not a runtime repro. Readings: grep -rn withLookupAutofillTargets ui/packages finds only plugin-form/src/recordFormStamp.ts:60 (via stampRecordFormFields, fieldWriteGate.ts:387); form.tsx:4269 passes field: withUsedCurrencyCodes(field.field || field, ...) and form.tsx:4350 passes onAutofill to lookup and master_detail; LookupField.tsx:1241 reads targets only when stamped, and currencyFor returns undefined without them; lookupAutofill.ts judgeCopy returns undefined (copy) when ctx is undefined.",
"gates": "NOT MEASURED: no diff, so the dispatch gate list was not run. node scripts/pm/overlap-check.mjs --branch=claude/issue-36923-standalone-form-currency-guard -> 'VERDICT clean exit 0' (0 files changed, merges cleanly with origin/main 8e4ac50d43). No PR, so there are no CI check-runs.",
"dogfood_battery": "n/a: no PR, no `!` in a title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1 report comment: POST issues/36923/comments via post-stamped.mjs. Plus 1 git push of the empty branch, which is not a REST write. No pr_create.",
"open_questions": [
{
"question": "How does a standalone form node apply the cross-currency guard (ruling 7075336705 on #36249) when @object-ui/components cannot import the stamp from @object-ui/fields?",
"options": [
"A1: Move withLookupAutofillTargets, readLookupAutofillTargets, LOOKUP_AUTOFILL_TARGETS_KEY, withFollowedParentObject and FOLLOWED_PARENT_OBJECT_KEY down into @object-ui/components. This follows the FullscreenEditor and CharacterCount hoists, which form.tsx documents in the same direction. Fields re-exports all five, so its own surface stays byte-identical. Form.tsx reads dataSource.getObjectSchema(objectName) when objectName is set and some field declares lookupAutofill, then stamps next to withUsedCurrencyCodes and skips a field that already carries the record form's stamp. Cost: five new public exports on components; one extra schema read per such form; a guard against stamping record forms twice; edits to fields/src/currency.ts, which is outside the fence. Effort S to M. Ruled text holds: same-currency picks copy as today. Without objectName the pick still copies unguarded.",
"A2: The same move, but into @object-ui/i18n, which already owns resolveFieldCurrency, recordCurrencyPath and recordCurrencyField. The costs match A1. The stamp is field-metadata shaping, not translation, so this owner is a looser fit.",
"A3: Components publishes a context (or a new widget prop) that carries the form's objectName or field map, and LookupField stamps its own targets inside fields. Cost: a new public context or a new key in the widget prop contract, and the stamp gains a second caller inside the widget. This is the widest contract change of the three A routes.",
"B: Narrow the FieldSchema.lookupAutofill describe. Measured as moot: the describe already says 'Read wherever this field is picked: the record form, and a line-item grid column over it', and the object's declaration never reaches a bare form node, so narrowing it would describe a path that key does not take. It fixes nothing.",
"D: Fix nothing in code and close the card as unreached. Record the fact in the form-field census entry or the ui type comment: on a bare form node, an authored lookupAutofill fills without the currency guard. Cost: the unguarded path stays open, with no measured producer today."
],
"recommendation": "A1, with the trade-off stated. Axis 1, business need: against A. Measured reach is 0. examples/ (app-crm, app-showcase, app-todo, app-multi-package, embed-objectql) has 0 lookupAutofill of any kind. ui/examples has 0 authored. HotCRM REST code search finds 4 files, all object field declarations (payment, invoice, billing_milestone) plus a test, which record forms read and already guard, and 0 type: 'form' hits; code search is an index, not a checkout. No in-repo host stashes object field defs into a bare form node. Axis 2, long-term: A1 keeps one implementation of the stamp, since it is moved and not copied, but adds a second stamping host. The record-form step must stay the owner (its header: 'Only this step writes the key'). Axis 3, AI errors: the trap is an AI writing lookupAutofill on a bare form field, a loose face where the census marks the key RUNTIME-ONLY, and getting an unguarded money copy. A1 closes it only when objectName is set, and B does not close it at all. Axis 4, startup scope: favours D, since this is a new read plus 5 moved exports for 0 measured users. The axes conflict, so the maintainer decides. A1 is the only route that carries ruling 7075336705 to the node the card names without contradicting its sentence 'A pick between two amounts in the same currency behaves as it does today'. A route that makes bare form nodes stop filling altogether would contradict that sentence, so it is not offered."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: c · reach: no named real producer measured (0 in examples, showcase, ui/examples; HotCRM code search 0 form nodes) · evidence: ui/packages/types/src/zod/form.zod.ts:1097 FormFieldSchema is z.looseObject, and the form-field channel census (ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx:351) lists lookupAutofill as RUNTIME-ONLY, an object fact and not a form fact. Yet an authored lookupAutofill on a bare form field reaches LookupField through `field.field || field` (form.tsx:4269) together with an onAutofill writer (form.tsx:4350), and it fills. Without reach this is not filed, and it is the same family as this card's decision · dedupe words: lookupAutofill form field loose face, standalone form autofill, RUNTIME-ONLY lookupAutofill",
"carrier: none · noted, not filed: the dispatch's gate list assumed edits in ui/packages/components; no diff exists"
]
}
Release: claim 7137402452 (zone a4-U, session_01QSeKYmRepQK9DkZeU7F53D) · 2026-11-24T16:33Z · pm:dispatched → needs-user-decision, assignee cleared
Resume-from: none — claude/issue-36923-standalone-form-currency-guard holds no commit beyond origin/main9c57bd2 (empty branch left for a resume)
Provenance: the seat session session_01QSeKYpEsWWE9Y5YtSsDgqZ (seat repo:objectstack#4), message to this zone at 2026-11-24T16:33Z: 「授权你做标签转换与释放——一笔 pm:dispatched → needs-user-decision,摘 assignee,附 Release 评论」. The option analysis and the request for a ruling are the seat's; it records the ruling on this card.
Why: the dev's report 7137667813 returned needs_decision at a dispatch stop condition, with no code and no PR.
ui/packages/fields/package.json:33 depends on @object-ui/components, and ui/packages/components/package.json does not depend on @object-ui/fields. So option A as carded (the standalone renderer in components calling withLookupAutofillTargets from fields) is a dependency cycle; every route that avoids the cycle adds a public export.
lookupAutofill has 0 hits under examples/ and ui/examples/ (tests and changelogs excluded).
Ruled · 2026-11-24T16:39Z · lookupAutofill on a standalone form — refused, not executed
The maintainer's words, in seat repo:objectstack#4's session, 2026-11-24, verbatim: 「同意 拒收(推荐)」 — the answer to the seat's presentation of the dev's needs_decision (report 7137667813), analysed at fable tier on the four axes, recommendation "refuse".
Governing text: packages/spec/src/data/field.zod.ts:2647 (lookupAutofill is declared for record forms and grid columns only); the form-field census marks a hand-written lookupAutofill on a form field RUNTIME-ONLY (ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx:351-355); the #36249 ruling (currency guard) as implemented by #36918 in ui/packages/plugin-form/src/recordFormStamp.ts.
Premise the ruling rests on (falsifiable; the dev measures it first): the field widget can tell whether it renders inside a record form (the stamp recordFormStamp.ts writes, or an equivalent existing signal) without a new public export from @object-ui/components or @object-ui/fields and without a dependency cycle. Note: a record form does not stamp when the target field is outside its field table (ui/packages/fields/src/lookupAutofill.ts:395-405), so "no stamp" alone is not the test.
⛔ If the premise does not hold, stop and report a fork — no fallback to A1 (moving five exports), A3 (a new context or prop) or D (documenting only) without a new ruling.
The refusal is visible, not silent: the author or an AI sees the field copy nothing; the census row and the lookupAutofill describe say record forms and grid columns only, and a dev-mode warning names the field where the runtime meets the key on a standalone form (if one can be emitted within the premise).
Not taken: A1/A2/A3 (extend the guard to standalone forms — new public surface, and it covers only forms that name their object), B (describe text only — already says record forms), D (record the gap and change nothing — leaves a silent wrong-currency copy open).
Card back to pm:queue for zone a4-U (seat repo:objectstack#4), to be dispatched to this ruling.
Claim: PM loop round 2 · area a4-U · 2026-11-24T17:50Z · to the ruling 7138010812
Session: session_01QSeKYmRepQK9DkZeU7F53D
Account: os-justin
Branch: claude/issue-36923-standalone-form-lookupautofill-refused
Worktree: objectstack-issue-36923
Domain: domain:ui
Seat: repo:objectstack#4
Area: a4-U
File surface: ui/** only — the lookup field widget's autofill path (ui/packages/fields/src/widgets/LookupField.tsx / lookupAutofill.ts) or the standalone form renderer (ui/packages/components/src/renderers/form/form.tsx), whichever measures as the seam; the form-field census row (ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx); a new test file named for this card; one patch changeset. ⛔ No packages/spec/** edit (the FieldSchema.lookupAutofill describe, packages/spec/src/data/field.zod.ts:2647, already reads "the record form, and a line-item grid column"); ⛔ no new public export from @object-ui/components or @object-ui/fields; a route that needs either is reported as a fork (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier at a68b475: no path-derived mandate), effort: high (reason: S but not mechanical — the ruling's premise is measured first and the record-form discriminator is a design judgment, M treatment)
Clause-②: no
Metadata-protocol: none
Declaration reason (seat repo:objectstack#4 to this zone, 2026-11-24T16:42Z): a lookupAutofill written on a form field is in no declared accept set — FormFieldSchema is a loose object and the form-field census marks the key RUNTIME-ONLY — so what an author may write is unchanged; not executing a key that was never declared there is not a protocol narrowing. This card does not touch packages/spec, so no contract-review-tier L2 is owed; L1 as usual.
Responsibility: the platform's own code (ui/packages/components standalone form / ui/packages/fields lookup widget, objectstack) | the platform path that covers the capability is the record form (ui/packages/plugin-form/src/recordFormStamp.ts) and the grid column; the ruling keeps it there | an author or AI who writes lookupAutofill by hand on a bare form node's field; measured reach 0 in examples/ and ui/examples (dev report 7137667813)
Thread-read: 7138010812
Premise: holds — the dev's first run (report 7137667813) found the standalone renderer hands every lookup an onAutofill writer and copies unguarded; the ruling's own premise (the widget can tell a record form apart without a new export or a cycle) is measured first by the dev, and a failure is reported as a fork
Ruling-ref: 7138010812 on this card — the maintainer, verbatim: 「同意 拒收(推荐)」
Serial constraints cleared: no open PR touches LookupField.tsx, lookupAutofill.ts, form.tsx or the census test (re-read at dispatch by overlap-check before the first push); the previous empty branch claude/issue-36923-standalone-form-currency-guard holds no commit and is not reused
Pre-claim lane: ui/** — this seat's whole-repo lane
Pre-claim deps: no Blocked-by:; ruling recorded
Prior rulings read: 7138010812 (this card, ruled refuse) and 7075336705 on #36249 (currency guard, kept on record forms and grid columns by the ruling). Repo: objectstack-ai/objectstack
{
"issue": 36923,
"status": "done",
"branch": "claude/issue-36923-standalone-form-lookupautofill-refused",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37090",
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "Implemented ruling 7138010812 (refuse). The ruling's premise holds, measured at objectstack 6c1dfb34 (base 8aecf6d7). Discriminator: the record form's own stamp, LOOKUP_AUTOFILL_TARGETS_KEY written by withLookupAutofillTargets. stampRecordFormFields applies it inside gateFormFields, the one step every record-form layout draws through (ObjectForm simple and sectioned arms, Tabbed, Wizard, Modal, Drawer, and MasterDetailForm and EmbeddableForm through ObjectForm). The standalone renderer form.tsx never calls it. Two existing signals were measured and rejected. RECORD_BEING_EDITED is stamped only when lookupFilters read { $record }. The targets stamp was written only when the field map named a target. So I made the targets stamp complete without any new export: a lookup that declares pairs is now always stamped, with an empty map when no target resolves (schema still loading, no metadata source, target not in the map), and an empty map carries no currency context, so those picks copy exactly as before. The stamp is also made issued-only: a module-private WeakSet, the withRecordBeingEdited pattern, means a hand-written lookupAutofillTargets on a loose form field is no stamp. Sound because every record-form lookup with pairs passes through that one step, and no standalone-form field can carry an issued stamp. Where the refusal lives: the widget, LookupField.tsx. autofillPairs is set only when readLookupAutofillTargets answers, which covers both the pick fill and the opening fill. The renderer route was rejected: form.tsx in components cannot import from fields (dependency cycle), and ObjectForm also draws through form.tsx with objectName set. Dev-mode warning: emitted once per field name through a module-level Set. It names the field and says where the key is honoured. It is gated on globalThis.process.env.NODE_ENV !== 'production', the existing convention in lookupRecordReference.ts warnLeftOut, so no new mechanism. Grid columns are untouched: GridField hands LookupField onSelectRecord, which nulls declaredPairs before the stamp is read, and it plans with planLookupAutofill. Census row text updated; spec describe unchanged (it already says record form and grid column). Reach is 0 non-test lookupAutofill under examples/ and ui/examples/ at 6c1dfb34.",
"tests": "New ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx at 6c1dfb34: Test Files 1 passed, Tests 8 passed (8). Pins: bare form pick copies nothing and warns once naming the field across two picks; production build copies nothing and warns nothing; forged lookupAutofillTargets no opt-in; stamp unit pins (empty stamp with null/undefined/no-target map, no stamp without pairs, data key reads undefined); ObjectForm USD fills price 100 and description, no note, no warning; ObjectForm EUR fills description, withholds price with note; GridField cell pick fills unit_price 100. Package runs: vitest packages/fields/ + new file at 6c1dfb34: 330 files passed, 1 skipped; 5024 tests passed, 7 skipped (lock VERDICT command-exit 0). vitest packages/plugin-form/ examples/schema-catalog/ at 3cd52cd3, where the delta to 6c1dfb34 is one added case in the new test file, rerun alone 8/8: 291 files passed; 5226 passed, 1 skipped (VERDICT command-exit 0). Ablations via scripts/ablation-replace.mjs (vitest resolves @object-ui/* to src through the ui alias map, so there is no dist leg; on-disk landing proven by anchor 1->0 and a blob change; each restore proven by blob == HEAD and an empty git diff HEAD), on the 7-case file: (1) widget gate removed -> 2 failed/5 passed, both standalone pins with expected '100' to be ''; (2) issued check removed -> 2 failed (forged pin expected '100' to be '', data-key unit expected {} to be undefined); (3) empty stamp reverted -> 1 failed (expected undefined to deeply equal {}).",
"gates": "Local, at 6c1dfb34: dispatch-gates --commands derived 38 families; all 38 ran with exit 0, the exit code captured before any pipe. check:type-check-debt first returned exit 3 (PREREQUISITE NOT MET: lock queue-timeout, NOT MEASURED) and was rerun under the lock: exit 0, 0 entries re-measured, none above. That run also included pnpm --dir ui exec vitest run scripts/ (172 files passed, 2 skipped; 5130 tests passed), after the seven @objectstack builds run exactly as Test UI runs them (turbo 42/42, VERDICT command-exit 0). dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). turbo run type-check on @object-ui/fields, @object-ui/plugin-form and @object-ui/example-schema-catalog: 71/71 successful (VERDICT command-exit 0). overlap-check: VERDICT clean exit 0 (merges cleanly; 0 PR heads overlap). A stale-tree note from dispatch-gates: origin/main moved during the run; the stale files are scripts/pm/* tools, none of them a family on this card's list. CI on PR #37090 at 6c1dfb34, read at the report: Check Changeset, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release/engine, scoped lanes) and Type Check (workspace, source gates, consumer gates, debt ledger) are all in_progress. The UI jobs had not reported yet, so CI convergence is the PM's.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3: 1 pr_create via the relay (POST pulls + POST issues/37090/assignees, read back identical); 1 report comment via post-stamped.mjs (POST issues/36923/comments). git pushes (branch probe + 6 commits) are not REST writes.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: readLookupAutofillTargets is a public export (fields re-exports lookupAutofill.js with export *); its answer is now issued-only. Its only in-tree reader is LookupField. Recorded in the PR's Acceptance notes."
],
"deviations": [
"File surface: ui/packages/plugin-form/src/recordFormStamp.ts got a header-only comment edit. The change made its sentence 'its lookup copies as it always did' false, so it had to be corrected; the claim listed widget/renderer/census/test/changeset.",
"overlap-check did not run before the first three pushes (empty branch probe, WIP, test commit); it ran before every later push, VERDICT clean exit 0 each time.",
"Ablations were run before the production-build case was added (7-case file); the final file has 8 cases."
],
"files_changed": [
".changeset/36923-standalone-form-lookupautofill-refused.md",
"ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx",
"ui/packages/fields/src/widgets/LookupField.tsx",
"ui/packages/fields/src/widgets/lookupAutofill.ts",
"ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx",
"ui/packages/plugin-form/src/recordFormStamp.ts"
],
"line_budget": "426 changed lines (+407 / -19) over 6 files, under the 3000 human-merge threshold; no skills/** touched"
}
Cause: at 6c1dfb3, LookupField's dev-mode warning read name off the field meta (fieldMeta?.name). RELATIONAL_META_READ_SET does not classify that read for lookup-editor, so relationalMetaCopySet.derivation.test.ts turned Test UI (2/16) red.
Fix (preference 1): the warning now takes the field name from the props or the form entry (props.name || lookupField?.name), the same read the trigger's test id already makes. No table row was added, so the file surface did not widen to the table file, and the derivation test is unchanged.
Narrowing declaration (seat ruling): the changeset now carries Clause-②: no (narrowing), Metadata-protocol: none, a BREAKING banner for readLookupAutofillTargets with FROM, TO and the fix, and the disposition not-required (no-migration-prescription).
Dogfood battery, pinned to head 41cd6da. This is the CI command run as os-dev.md requires: closure built with pnpm --filter '@objectstack/dogfood^...' build (lock VERDICT command-exit 0), then pnpm --filter @objectstack/dogfood test under the lock with no shard and no path.
Lock: VERDICT command-exit 0.
Test Files: 487 passed, 3 skipped (490).
Tests: 4128 passed, 68 skipped (4196).
Failures: none.
The battery has no lookupAutofill case (0 hits under packages/qa/dogfood), so the record-form path is pinned by UI tests at 41cd6da. lookupAutofillStandaloneForm-36923.test.tsx plus the derivation test gave 2 files and 22 tests passed. They cover three things: a record form pick fills (USD quote: price 100 and the description); a cross-currency pick is withheld with its note (EUR quote); and a standalone form pick copies nothing.
check:adr-0087-registration --base origin/main: exit 0. It reads the changeset as [BREAKING+clause-②-narrowing] not-required (no-migration-prescription).
dispatch-gates --commands: 38 families derived, 38 run, all exit 0. check:type-check-debt first missed the lock and was rerun under it: exit 0. --ran reconciles 38 derived, 38 run, 0 NOT-MEASURED.
vitest packages/plugin-grid/: 311 files and 2766 tests passed.
overlap-check: VERDICT clean exit 0.
CI at 41cd6da: every check-run is success or skipped, including Test UI (2/16), Check Changeset, Lint UI, Type Check UI, Build & E2E UI, Live E2E UI, the Dogfood Regression Gate and the Governed Surface Queue Guard.
PR body. The body still reads Clause-②: no. os-dev.md bars a dev from PATCHing a PR body ("PR 正文子代理只在 pr_create 写、⛔ 不 PATCH 由席代写"), and that conflicts with the dispatch's issue_patch instruction. I followed os-dev.md, and the corrected body is with the PM for the seat to write.
{
"issue": 36923,
"status": "done",
"branch": "claude/issue-36923-standalone-form-lookupautofill-refused",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37090",
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "Fix round 2 is done at head 47d5f695. origin/main was merged in at 952484e2: 37 commits, clean. The scoped re-checks after the merge passed: the seven @objectstack builds, spec check:generated (spec moved on main), and type-check and tests for fields, plugin-form, plugin-grid and the schema catalog. S1: FieldWidgetProps.onAutofill (widgets/types.ts) now says a lookup fills only when the record form stamped the field (withLookupAutofillTargets). The changeset carries a second BREAKING banner naming LookupField with onAutofill, with FROM, TO and the fix. The lookupAutofill note in plugin-grid's relationalMetaKeys.ts says the same. S2: the marker stays not-required (no-migration-prescription). Its reason now says the body carries a code-level prescription, so the gate admits the marker on a detector miss, that no fact-based category covers a behaviour-narrowed runtime function, and that the gap is #37136. The ablations were re-run at 47d5f695; each went red and each was restored. N3: the TO line now says the map is frozen and the return is a copy. N4, measured: the console's Vite 8.3.5 with the console's define block rewrites globalThis.process?.env?.NODE_ENV the same way it rewrites process.env.NODE_ENV in an app build (production folds to the production branch, development to the development branch), so the spelling stays. N1 and N2 are in the corrected PR body file. The PR body was not patched.",
"tests": "At 47d5f695: vitest packages/fields/ gave 329 files passed, 1 skipped, and 5016 tests passed, 7 skipped. packages/plugin-form/ plus examples/schema-catalog/ gave 291 files passed and 5227 tests passed, 1 skipped; that run includes lookupAutofillStandaloneForm-36923, ObjectForm.lookupAutofill-28245 and the census. packages/plugin-grid/ gave 312 files and 2769 tests passed, including relationalMetaCopySet.derivation. pnpm --dir ui exec vitest run scripts/ gave 172 files passed, 2 skipped. Every run ended with lock VERDICT command-exit 0. The ablations at 47d5f695 ran through scripts/ablation-replace.mjs under the lock. Each landing was proven on disk (anchor 1 to 0, blob changed) and each restore was proven by the blob equalling HEAD and an empty git diff HEAD; the tree was clean after all three. (1) With the widget gate removed, 3 failed and 5 passed. The standalone pins failed with expected '100' to be '' twice and expected 'A widget' to be ''. (2) With the issued check removed, 2 failed and 6 passed: expected '100' to be '', and expected {} to be undefined. (3) With the empty stamp reverted, 1 failed and 7 passed: expected undefined to deeply equal {}.",
"gates": "At 47d5f695, local results. dispatch-gates --commands derived 38 families. All 38 ran with exit 0, the exit captured before any pipe. pnpm check:type-check-debt first returned exit 3 (lock queue-timeout); rerun under the lock it returned exit 0, with 0 entries above. --ran reconciles 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, a derived zero. Changeset gates: node scripts/check-adr-0087-registration.mjs --base origin/main exit 0, judged [BREAKING+clause-②-narrowing] not-required (no-migration-prescription); check-empty-changeset exit 0; check-changeset-no-major exit 0. pnpm --filter @objectstack/spec check:generated exit 0. turbo type-check on fields, plugin-form, plugin-grid and example-schema-catalog: 72/72 successful. overlap-check: VERDICT clean exit 0. CI check-runs on PR #37090 at 47d5f695: 44 success, 13 skipped, 0 failed.",
"dogfood_battery": "47d5f6956ca2a1dcf113d75cc3e2d90bd02ced69 · os-verify-lock VERDICT command-exit 0 · closure pnpm --filter '@objectstack/dogfood^...' build exit 0, then pnpm --filter @objectstack/dogfood test, no shard, no path · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · failures: none",
"mcp_calls": "0",
"api_writes": "This round: 1, this report comment via post-stamped.mjs (POST issues/36923/comments). No push was needed after the restart, because 47d5f695 was already on the remote. No PR body PATCH: the corrected body is at /tmp/claude-0/-home-user-objectstack/3770802b-8f07-5678-a21c-154e8b51c229/scratchpad/issue-36923/pr-body3.md for the zone to write.",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": [
"carrier: #37136 · the ADR-0087 disposition vocabulary has no category for a behaviour-narrowed runtime function; filed by the zone"
],
"deviations": [
"The container restarted mid-round. The gate families resumed from the first unfinished command, and the locked steps were re-run in full; all readings above are at 47d5f695.",
"The first round-2 background chain hit the 30-minute background limit during the UI suites. That run produced no verdict, and the suites were re-run per package under a longer budget."
],
"files_changed": [
".changeset/36923-standalone-form-lookupautofill-refused.md",
"ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx",
"ui/packages/fields/src/widgets/LookupField.tsx",
"ui/packages/fields/src/widgets/lookupAutofill.ts",
"ui/packages/fields/src/widgets/types.ts",
"ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx",
"ui/packages/plugin-form/src/recordFormStamp.ts",
"ui/packages/plugin-grid/src/relationalMetaKeys.ts"
],
"line_budget": "448 changed lines (+427 / -21) over 8 files vs origin/main, under the 3000-line human-merge threshold; no skills/** touched"
}
Delivered · area a4-U · 2026-11-25T03:56Z · PR #37090 merged as 15d27661 (L1 ACCEPT 7152015485, contract review PASS 7151704341, maintainer-approved as a declared narrowing)
Per the maintainer's ruling 「同意 拒收(推荐)」 (7138010812), a lookup's lookupAutofill now fills nothing on a host that hands onAutofill without the record form's stamp, such as a standalone form node. That covers both a pick and the opening fill. The record form and the line-item grid fill as before, with the cross-currency rule intact.
A development build warns once per field. The changeset's BREAKING banner gives the fix: stamp through withLookupAutofillTargets(field, objectFields), or declare the key on the object field and draw the record form.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p2· Bug ·pm:queue· size S.Rationale: a wrong-currency amount filled in silently is a data defect, but its reach is unmeasured and limited to authored pages that use a bare form node with
lookupAutofill. It is not a core path every user hits every time, so the UX rule gives p2. Seat 3 takes it, as its request said.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 1 · area a4-U · 2026-11-24T16:16Z
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-36923-standalone-form-currency-guardWorktree:
objectstack-issue-36923Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-U
File surface:
ui/packages/components/src/renderers/form/**(the standalone form node: stamp thelookupAutofilltarget definitions from the object schema when the node hasobjectName), possiblyui/packages/fields/src/widgets/lookupAutofill.ts(reuse ofwithLookupAutofillTargets, no new contract), a new test file named for this card, onepatchchangeset. Option B only for the no-objectNamearm, and then theFieldSchema.lookupAutofilldescribe inpackages/spec/src/data/field.zod.tsplus its regenerated artifacts (stop on breach of anything else; explain in the report)Container & model: S, mode:subagent, model: default (dispatch-gates --tier at a73edb3: no path-derived mandate), effort: high (reason: S but not mechanical — the option A/B judgment is in the design, so M treatment per execution-duties.md)
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own code (
ui/packages/componentsstandalone form renderer, objectstack) carries the defect | the platform path that already covers it is the record-form stamp inui/packages/plugin-form/src/recordFormStamp.ts(withLookupAutofillTargets), which the standalone node never calls | anyone whose authored page puts a bare form node withlookupAutofillon a currency field; today's count is unmeasured — the dev counts examples, showcase and HotCRM and records it in the PRThread-read: 7127070612
Premise: holds — at
origin/maina73edb3withLookupAutofillTargetsis applied only byui/packages/plugin-form/src/recordFormStamp.ts:60;ui/packages/components/src/renderers/form/form.tsxnever applies it, soreadLookupAutofillTargetsinui/packages/fields/src/widgets/LookupField.tsx:1241readsundefinedthere and no currency context formsSerial constraints cleared: none — no open PR touches
form.tsx,lookupAutofill.ts,LookupField.tsx,recordFormStamp.tsorfieldWriteGate.ts(47 open PR file lists read now); the predecessor PR #36918 merged at 4f19091Pre-claim lane:
ui/**— this seat's whole-repo lane, file roots as above;packages/spec/src/data/field.zod.tsonly on option B's arm, kept in lane under the stay-in-lane rulePre-claim deps: no
Blocked-by:; the card's source PR #36918 is merged (4f19091, 2026-11-24T09:32Z)Prior rulings read: lookupautofill,crosscurrency,withlookupautofilltargets → 0 hits in ADRs/AGENTS.md; thread: none; surface: 82 ruling-shaped lines under the form tree, one on this subject —
ui/packages/fields/src/widgets/lookupAutofill.ts:152citing ruling 7075336705 on #36249: 「B 币种不同就不填并说明」, ruled text: "when a pick would copy a money value whose currency differs from the currency of the field it fills, the value is not copied. The cell stays empty and the form says why." This card extends that ruling to the standalone form node; it decides nothing new. Repo: objectstack-ai/objectstackRuling-ref: 7075336705 on #36249 「B 币种不同就不填并说明」
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36923, "status": "needs_decision", "branch": "claude/issue-36923-standalone-form-currency-guard", "pr": null, "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "Premise holds by reading at objectstack 9c57bd28 (origin/main when the worktree was cut): the standalone form renderer (ui/packages/components/src/renderers/form/form.tsx) hands every lookup an onAutofill writer and its field meta as `field.field || field`, never stamps the lookupAutofill target definitions, so LookupField's readLookupAutofillTargets answers undefined, currencyFor answers no context, and every pair copies unguarded with no note. Option A as scoped cannot be built without one of the dispatch's stop conditions: @object-ui/fields depends on @object-ui/components (ui/packages/fields/package.json line 33), so components importing withLookupAutofillTargets from fields is a dependency cycle; every non-cycle route needs a new public export (hoisting the stamp and its helper down a layer, or a new context or widget prop). No code written, no PR. Two more measured facts shape the decision: the object's own FieldSchema.lookupAutofill never reaches a bare form node (it draws the authored field config; the key gets there only when someone writes it on the form field itself, which is a loose face where the form-field census marks lookupAutofill RUNTIME-ONLY), and the record form already passes objectName into its inner form node (ObjectForm.tsx lines 1861 and 2020), so a stamp in form.tsx keyed on objectName would also run on every record form. Reach measured: 0 (see out_of_scope_findings and open_questions).", "tests": "NOT MEASURED: no code written. The premise is a source reading at 9c57bd28, not a runtime repro. Readings: grep -rn withLookupAutofillTargets ui/packages finds only plugin-form/src/recordFormStamp.ts:60 (via stampRecordFormFields, fieldWriteGate.ts:387); form.tsx:4269 passes field: withUsedCurrencyCodes(field.field || field, ...) and form.tsx:4350 passes onAutofill to lookup and master_detail; LookupField.tsx:1241 reads targets only when stamped, and currencyFor returns undefined without them; lookupAutofill.ts judgeCopy returns undefined (copy) when ctx is undefined.", "gates": "NOT MEASURED: no diff, so the dispatch gate list was not run. node scripts/pm/overlap-check.mjs --branch=claude/issue-36923-standalone-form-currency-guard -> 'VERDICT clean exit 0' (0 files changed, merges cleanly with origin/main 8e4ac50d43). No PR, so there are no CI check-runs.", "dogfood_battery": "n/a: no PR, no `!` in a title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 report comment: POST issues/36923/comments via post-stamped.mjs. Plus 1 git push of the empty branch, which is not a REST write. No pr_create.", "open_questions": [ { "question": "How does a standalone form node apply the cross-currency guard (ruling 7075336705 on #36249) when @object-ui/components cannot import the stamp from @object-ui/fields?", "options": [ "A1: Move withLookupAutofillTargets, readLookupAutofillTargets, LOOKUP_AUTOFILL_TARGETS_KEY, withFollowedParentObject and FOLLOWED_PARENT_OBJECT_KEY down into @object-ui/components. This follows the FullscreenEditor and CharacterCount hoists, which form.tsx documents in the same direction. Fields re-exports all five, so its own surface stays byte-identical. Form.tsx reads dataSource.getObjectSchema(objectName) when objectName is set and some field declares lookupAutofill, then stamps next to withUsedCurrencyCodes and skips a field that already carries the record form's stamp. Cost: five new public exports on components; one extra schema read per such form; a guard against stamping record forms twice; edits to fields/src/currency.ts, which is outside the fence. Effort S to M. Ruled text holds: same-currency picks copy as today. Without objectName the pick still copies unguarded.", "A2: The same move, but into @object-ui/i18n, which already owns resolveFieldCurrency, recordCurrencyPath and recordCurrencyField. The costs match A1. The stamp is field-metadata shaping, not translation, so this owner is a looser fit.", "A3: Components publishes a context (or a new widget prop) that carries the form's objectName or field map, and LookupField stamps its own targets inside fields. Cost: a new public context or a new key in the widget prop contract, and the stamp gains a second caller inside the widget. This is the widest contract change of the three A routes.", "B: Narrow the FieldSchema.lookupAutofill describe. Measured as moot: the describe already says 'Read wherever this field is picked: the record form, and a line-item grid column over it', and the object's declaration never reaches a bare form node, so narrowing it would describe a path that key does not take. It fixes nothing.", "D: Fix nothing in code and close the card as unreached. Record the fact in the form-field census entry or the ui type comment: on a bare form node, an authored lookupAutofill fills without the currency guard. Cost: the unguarded path stays open, with no measured producer today." ], "recommendation": "A1, with the trade-off stated. Axis 1, business need: against A. Measured reach is 0. examples/ (app-crm, app-showcase, app-todo, app-multi-package, embed-objectql) has 0 lookupAutofill of any kind. ui/examples has 0 authored. HotCRM REST code search finds 4 files, all object field declarations (payment, invoice, billing_milestone) plus a test, which record forms read and already guard, and 0 type: 'form' hits; code search is an index, not a checkout. No in-repo host stashes object field defs into a bare form node. Axis 2, long-term: A1 keeps one implementation of the stamp, since it is moved and not copied, but adds a second stamping host. The record-form step must stay the owner (its header: 'Only this step writes the key'). Axis 3, AI errors: the trap is an AI writing lookupAutofill on a bare form field, a loose face where the census marks the key RUNTIME-ONLY, and getting an unguarded money copy. A1 closes it only when objectName is set, and B does not close it at all. Axis 4, startup scope: favours D, since this is a new read plus 5 moved exports for 0 measured users. The axes conflict, so the maintainer decides. A1 is the only route that carries ruling 7075336705 to the node the card names without contradicting its sentence 'A pick between two amounts in the same currency behaves as it does today'. A route that makes bare form nodes stop filling altogether would contradict that sentence, so it is not offered." } ], "security_findings": "none", "out_of_scope_findings": [ "class: c · reach: no named real producer measured (0 in examples, showcase, ui/examples; HotCRM code search 0 form nodes) · evidence: ui/packages/types/src/zod/form.zod.ts:1097 FormFieldSchema is z.looseObject, and the form-field channel census (ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx:351) lists lookupAutofill as RUNTIME-ONLY, an object fact and not a form fact. Yet an authored lookupAutofill on a bare form field reaches LookupField through `field.field || field` (form.tsx:4269) together with an onAutofill writer (form.tsx:4350), and it fills. Without reach this is not filed, and it is the same family as this card's decision · dedupe words: lookupAutofill form field loose face, standalone form autofill, RUNTIME-ONLY lookupAutofill", "carrier: none · noted, not filed: the dispatch's gate list assumed edits in ui/packages/components; no diff exists" ] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Release: claim 7137402452 (zone a4-U,
session_01QSeKYmRepQK9DkZeU7F53D) · 2026-11-24T16:33Z ·pm:dispatched→needs-user-decision, assignee clearedResume-from: none —
claude/issue-36923-standalone-form-currency-guardholds no commit beyondorigin/main9c57bd2 (empty branch left for a resume)Provenance: the seat session
session_01QSeKYpEsWWE9Y5YtSsDgqZ(seat repo:objectstack#4), message to this zone at 2026-11-24T16:33Z: 「授权你做标签转换与释放——一笔pm:dispatched→needs-user-decision,摘 assignee,附 Release 评论」. The option analysis and the request for a ruling are the seat's; it records the ruling on this card.needs_decisionat a dispatch stop condition, with no code and no PR.origin/main8e4ac50:ui/packages/fields/package.json:33depends on@object-ui/components, andui/packages/components/package.jsondoes not depend on@object-ui/fields. So option A as carded (the standalone renderer incomponentscallingwithLookupAutofillTargetsfromfields) is a dependency cycle; every route that avoids the cycle adds a public export.lookupAutofillhas 0 hits underexamples/andui/examples/(tests and changelogs excluded).objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Ruled · 2026-11-24T16:39Z ·
lookupAutofillon a standalone form — refused, not executedThe maintainer's words, in seat repo:objectstack#4's session, 2026-11-24, verbatim: 「同意 拒收(推荐)」 — the answer to the seat's presentation of the dev's
needs_decision(report 7137667813), analysed at fable tier on the four axes, recommendation "refuse".Governing text:
packages/spec/src/data/field.zod.ts:2647(lookupAutofillis declared for record forms and grid columns only); the form-field census marks a hand-writtenlookupAutofillon a form field RUNTIME-ONLY (ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx:351-355); the #36249 ruling (currency guard) as implemented by #36918 inui/packages/plugin-form/src/recordFormStamp.ts.lookupAutofillwritten by hand on a field of a standaloneformnode is not executed: picking a record copies nothing into other fields. Record forms and grid columns keep the behaviour 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 shipped, currency guard included. The capability stays an object fact, served where the object is read.recordFormStamp.tswrites, or an equivalent existing signal) without a new public export from@object-ui/componentsor@object-ui/fieldsand without a dependency cycle. Note: a record form does not stamp when the target field is outside its field table (ui/packages/fields/src/lookupAutofill.ts:395-405), so "no stamp" alone is not the test.lookupAutofilldescribe say record forms and grid columns only, and a dev-mode warning names the field where the runtime meets the key on a standalone form (if one can be emitted within the premise).Card back to
pm:queuefor zone a4-U (seat repo:objectstack#4), to be dispatched to this ruling.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 2 · area a4-U · 2026-11-24T17:50Z · to the ruling 7138010812
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-36923-standalone-form-lookupautofill-refusedWorktree:
objectstack-issue-36923Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-U
File surface:
ui/**only — the lookup field widget's autofill path (ui/packages/fields/src/widgets/LookupField.tsx/lookupAutofill.ts) or the standalone form renderer (ui/packages/components/src/renderers/form/form.tsx), whichever measures as the seam; the form-field census row (ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx); a new test file named for this card; onepatchchangeset. ⛔ Nopackages/spec/**edit (theFieldSchema.lookupAutofilldescribe,packages/spec/src/data/field.zod.ts:2647, already reads "the record form, and a line-item grid column"); ⛔ no new public export from@object-ui/componentsor@object-ui/fields; a route that needs either is reported as a fork (stop on breach; explain in the report)Container & model: S, mode:subagent, model: default (dispatch-gates --tier at a68b475: no path-derived mandate), effort: high (reason: S but not mechanical — the ruling's premise is measured first and the record-form discriminator is a design judgment, M treatment)
Clause-②: no
Metadata-protocol: none
Declaration reason (seat repo:objectstack#4 to this zone, 2026-11-24T16:42Z): a
lookupAutofillwritten on a form field is in no declared accept set —FormFieldSchemais a loose object and the form-field census marks the key RUNTIME-ONLY — so what an author may write is unchanged; not executing a key that was never declared there is not a protocol narrowing. This card does not touchpackages/spec, so no contract-review-tier L2 is owed; L1 as usual.Responsibility: the platform's own code (
ui/packages/componentsstandalone form /ui/packages/fieldslookup widget, objectstack) | the platform path that covers the capability is the record form (ui/packages/plugin-form/src/recordFormStamp.ts) and the grid column; the ruling keeps it there | an author or AI who writeslookupAutofillby hand on a bare form node's field; measured reach 0 inexamples/andui/examples(dev report 7137667813)Thread-read: 7138010812
Premise: holds — the dev's first run (report 7137667813) found the standalone renderer hands every lookup an
onAutofillwriter and copies unguarded; the ruling's own premise (the widget can tell a record form apart without a new export or a cycle) is measured first by the dev, and a failure is reported as a forkRuling-ref: 7138010812 on this card — the maintainer, verbatim: 「同意 拒收(推荐)」
Serial constraints cleared: no open PR touches
LookupField.tsx,lookupAutofill.ts,form.tsxor the census test (re-read at dispatch by overlap-check before the first push); the previous empty branchclaude/issue-36923-standalone-form-currency-guardholds no commit and is not reusedPre-claim lane:
ui/**— this seat's whole-repo lanePre-claim deps: no
Blocked-by:; ruling recordedPrior rulings read: 7138010812 (this card, ruled refuse) and 7075336705 on #36249 (currency guard, kept on record forms and grid columns by the ruling). Repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36923, "status": "done", "branch": "claude/issue-36923-standalone-form-lookupautofill-refused", "pr": "https://github.com/objectstack-ai/objectstack/pull/37090", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "Implemented ruling 7138010812 (refuse). The ruling's premise holds, measured at objectstack 6c1dfb34 (base 8aecf6d7). Discriminator: the record form's own stamp, LOOKUP_AUTOFILL_TARGETS_KEY written by withLookupAutofillTargets. stampRecordFormFields applies it inside gateFormFields, the one step every record-form layout draws through (ObjectForm simple and sectioned arms, Tabbed, Wizard, Modal, Drawer, and MasterDetailForm and EmbeddableForm through ObjectForm). The standalone renderer form.tsx never calls it. Two existing signals were measured and rejected. RECORD_BEING_EDITED is stamped only when lookupFilters read { $record }. The targets stamp was written only when the field map named a target. So I made the targets stamp complete without any new export: a lookup that declares pairs is now always stamped, with an empty map when no target resolves (schema still loading, no metadata source, target not in the map), and an empty map carries no currency context, so those picks copy exactly as before. The stamp is also made issued-only: a module-private WeakSet, the withRecordBeingEdited pattern, means a hand-written lookupAutofillTargets on a loose form field is no stamp. Sound because every record-form lookup with pairs passes through that one step, and no standalone-form field can carry an issued stamp. Where the refusal lives: the widget, LookupField.tsx. autofillPairs is set only when readLookupAutofillTargets answers, which covers both the pick fill and the opening fill. The renderer route was rejected: form.tsx in components cannot import from fields (dependency cycle), and ObjectForm also draws through form.tsx with objectName set. Dev-mode warning: emitted once per field name through a module-level Set. It names the field and says where the key is honoured. It is gated on globalThis.process.env.NODE_ENV !== 'production', the existing convention in lookupRecordReference.ts warnLeftOut, so no new mechanism. Grid columns are untouched: GridField hands LookupField onSelectRecord, which nulls declaredPairs before the stamp is read, and it plans with planLookupAutofill. Census row text updated; spec describe unchanged (it already says record form and grid column). Reach is 0 non-test lookupAutofill under examples/ and ui/examples/ at 6c1dfb34.", "tests": "New ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx at 6c1dfb34: Test Files 1 passed, Tests 8 passed (8). Pins: bare form pick copies nothing and warns once naming the field across two picks; production build copies nothing and warns nothing; forged lookupAutofillTargets no opt-in; stamp unit pins (empty stamp with null/undefined/no-target map, no stamp without pairs, data key reads undefined); ObjectForm USD fills price 100 and description, no note, no warning; ObjectForm EUR fills description, withholds price with note; GridField cell pick fills unit_price 100. Package runs: vitest packages/fields/ + new file at 6c1dfb34: 330 files passed, 1 skipped; 5024 tests passed, 7 skipped (lock VERDICT command-exit 0). vitest packages/plugin-form/ examples/schema-catalog/ at 3cd52cd3, where the delta to 6c1dfb34 is one added case in the new test file, rerun alone 8/8: 291 files passed; 5226 passed, 1 skipped (VERDICT command-exit 0). Ablations via scripts/ablation-replace.mjs (vitest resolves @object-ui/* to src through the ui alias map, so there is no dist leg; on-disk landing proven by anchor 1->0 and a blob change; each restore proven by blob == HEAD and an empty git diff HEAD), on the 7-case file: (1) widget gate removed -> 2 failed/5 passed, both standalone pins with expected '100' to be ''; (2) issued check removed -> 2 failed (forged pin expected '100' to be '', data-key unit expected {} to be undefined); (3) empty stamp reverted -> 1 failed (expected undefined to deeply equal {}).", "gates": "Local, at 6c1dfb34: dispatch-gates --commands derived 38 families; all 38 ran with exit 0, the exit code captured before any pipe. check:type-check-debt first returned exit 3 (PREREQUISITE NOT MET: lock queue-timeout, NOT MEASURED) and was rerun under the lock: exit 0, 0 entries re-measured, none above. That run also included pnpm --dir ui exec vitest run scripts/ (172 files passed, 2 skipped; 5130 tests passed), after the seven @objectstack builds run exactly as Test UI runs them (turbo 42/42, VERDICT command-exit 0). dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). turbo run type-check on @object-ui/fields, @object-ui/plugin-form and @object-ui/example-schema-catalog: 71/71 successful (VERDICT command-exit 0). overlap-check: VERDICT clean exit 0 (merges cleanly; 0 PR heads overlap). A stale-tree note from dispatch-gates: origin/main moved during the run; the stale files are scripts/pm/* tools, none of them a family on this card's list. CI on PR #37090 at 6c1dfb34, read at the report: Check Changeset, Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release/engine, scoped lanes) and Type Check (workspace, source gates, consumer gates, debt ledger) are all in_progress. The UI jobs had not reported yet, so CI convergence is the PM's.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: 1 pr_create via the relay (POST pulls + POST issues/37090/assignees, read back identical); 1 report comment via post-stamped.mjs (POST issues/36923/comments). git pushes (branch probe + 6 commits) are not REST writes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: readLookupAutofillTargets is a public export (fields re-exports lookupAutofill.js with export *); its answer is now issued-only. Its only in-tree reader is LookupField. Recorded in the PR's Acceptance notes." ], "deviations": [ "File surface: ui/packages/plugin-form/src/recordFormStamp.ts got a header-only comment edit. The change made its sentence 'its lookup copies as it always did' false, so it had to be corrected; the claim listed widget/renderer/census/test/changeset.", "overlap-check did not run before the first three pushes (empty branch probe, WIP, test commit); it ran before every later push, VERDICT clean exit 0 each time.", "Ablations were run before the production-build case was added (7-case file); the final file has 8 cases." ], "files_changed": [ ".changeset/36923-standalone-form-lookupautofill-refused.md", "ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx", "ui/packages/fields/src/widgets/LookupField.tsx", "ui/packages/fields/src/widgets/lookupAutofill.ts", "ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx", "ui/packages/plugin-form/src/recordFormStamp.ts" ], "line_budget": "426 changed lines (+407 / -19) over 6 files, under the 3000 human-merge threshold; no skills/** touched" }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report addendum · fix round 1 + narrowing declaration · PR #37090 · head 41cd6da
Delta (fix round 1).
nameoff the field meta (fieldMeta?.name).RELATIONAL_META_READ_SETdoes not classify that read forlookup-editor, sorelationalMetaCopySet.derivation.test.tsturnedTest UI (2/16)red.props.name || lookupField?.name), the same read the trigger's test id already makes. No table row was added, so the file surface did not widen to the table file, and the derivation test is unchanged.Clause-②: no (narrowing),Metadata-protocol: none, a BREAKING banner forreadLookupAutofillTargetswith FROM, TO and the fix, and the dispositionnot-required (no-migration-prescription).Dogfood battery, pinned to head 41cd6da. This is the CI command run as os-dev.md requires: closure built with
pnpm --filter '@objectstack/dogfood^...' build(lock VERDICT command-exit 0), thenpnpm --filter @objectstack/dogfood testunder the lock with no shard and no path.lookupAutofillcase (0 hits under packages/qa/dogfood), so the record-form path is pinned by UI tests at 41cd6da.lookupAutofillStandaloneForm-36923.test.tsxplus the derivation test gave 2 files and 22 tests passed. They cover three things: a record form pick fills (USD quote: price 100 and the description); a cross-currency pick is withheld with its note (EUR quote); and a standalone form pick copies nothing.Gates at 41cd6da.
check:adr-0087-registration --base origin/main: exit 0. It reads the changeset as[BREAKING+clause-②-narrowing] not-required (no-migration-prescription).check-empty-changeset --base origin/main: exit 0.check-changeset-no-major --base origin/main: exit 0.check-adr-0087-registration --self-test: exit 0.dispatch-gates --commands: 38 families derived, 38 run, all exit 0.check:type-check-debtfirst missed the lock and was rerun under it: exit 0.--ranreconciles 38 derived, 38 run, 0 NOT-MEASURED.pnpm --dir ui exec vitest run scripts/: 172 files passed, 2 skipped.vitest packages/plugin-grid/: 311 files and 2766 tests passed.Test UI (2/16), Check Changeset, Lint UI, Type Check UI, Build & E2E UI, Live E2E UI, the Dogfood Regression Gate and the Governed Surface Queue Guard.PR body. The body still reads
Clause-②: no. os-dev.md bars a dev from PATCHing a PR body ("PR 正文子代理只在 pr_create 写、⛔ 不 PATCH 由席代写"), and that conflicts with the dispatch'sissue_patchinstruction. I followed os-dev.md, and the corrected body is with the PM for the seat to write.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36923, "status": "done", "branch": "claude/issue-36923-standalone-form-lookupautofill-refused", "pr": "https://github.com/objectstack-ai/objectstack/pull/37090", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "Fix round 2 is done at head 47d5f695. origin/main was merged in at 952484e2: 37 commits, clean. The scoped re-checks after the merge passed: the seven @objectstack builds, spec check:generated (spec moved on main), and type-check and tests for fields, plugin-form, plugin-grid and the schema catalog. S1: FieldWidgetProps.onAutofill (widgets/types.ts) now says a lookup fills only when the record form stamped the field (withLookupAutofillTargets). The changeset carries a second BREAKING banner naming LookupField with onAutofill, with FROM, TO and the fix. The lookupAutofill note in plugin-grid's relationalMetaKeys.ts says the same. S2: the marker stays not-required (no-migration-prescription). Its reason now says the body carries a code-level prescription, so the gate admits the marker on a detector miss, that no fact-based category covers a behaviour-narrowed runtime function, and that the gap is #37136. The ablations were re-run at 47d5f695; each went red and each was restored. N3: the TO line now says the map is frozen and the return is a copy. N4, measured: the console's Vite 8.3.5 with the console's define block rewrites globalThis.process?.env?.NODE_ENV the same way it rewrites process.env.NODE_ENV in an app build (production folds to the production branch, development to the development branch), so the spelling stays. N1 and N2 are in the corrected PR body file. The PR body was not patched.", "tests": "At 47d5f695: vitest packages/fields/ gave 329 files passed, 1 skipped, and 5016 tests passed, 7 skipped. packages/plugin-form/ plus examples/schema-catalog/ gave 291 files passed and 5227 tests passed, 1 skipped; that run includes lookupAutofillStandaloneForm-36923, ObjectForm.lookupAutofill-28245 and the census. packages/plugin-grid/ gave 312 files and 2769 tests passed, including relationalMetaCopySet.derivation. pnpm --dir ui exec vitest run scripts/ gave 172 files passed, 2 skipped. Every run ended with lock VERDICT command-exit 0. The ablations at 47d5f695 ran through scripts/ablation-replace.mjs under the lock. Each landing was proven on disk (anchor 1 to 0, blob changed) and each restore was proven by the blob equalling HEAD and an empty git diff HEAD; the tree was clean after all three. (1) With the widget gate removed, 3 failed and 5 passed. The standalone pins failed with expected '100' to be '' twice and expected 'A widget' to be ''. (2) With the issued check removed, 2 failed and 6 passed: expected '100' to be '', and expected {} to be undefined. (3) With the empty stamp reverted, 1 failed and 7 passed: expected undefined to deeply equal {}.", "gates": "At 47d5f695, local results. dispatch-gates --commands derived 38 families. All 38 ran with exit 0, the exit captured before any pipe. pnpm check:type-check-debt first returned exit 3 (lock queue-timeout); rerun under the lock it returned exit 0, with 0 entries above. --ran reconciles 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, a derived zero. Changeset gates: node scripts/check-adr-0087-registration.mjs --base origin/main exit 0, judged [BREAKING+clause-②-narrowing] not-required (no-migration-prescription); check-empty-changeset exit 0; check-changeset-no-major exit 0. pnpm --filter @objectstack/spec check:generated exit 0. turbo type-check on fields, plugin-form, plugin-grid and example-schema-catalog: 72/72 successful. overlap-check: VERDICT clean exit 0. CI check-runs on PR #37090 at 47d5f695: 44 success, 13 skipped, 0 failed.", "dogfood_battery": "47d5f6956ca2a1dcf113d75cc3e2d90bd02ced69 · os-verify-lock VERDICT command-exit 0 · closure pnpm --filter '@objectstack/dogfood^...' build exit 0, then pnpm --filter @objectstack/dogfood test, no shard, no path · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · failures: none", "mcp_calls": "0", "api_writes": "This round: 1, this report comment via post-stamped.mjs (POST issues/36923/comments). No push was needed after the restart, because 47d5f695 was already on the remote. No PR body PATCH: the corrected body is at /tmp/claude-0/-home-user-objectstack/3770802b-8f07-5678-a21c-154e8b51c229/scratchpad/issue-36923/pr-body3.md for the zone to write.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "carrier: #37136 · the ADR-0087 disposition vocabulary has no category for a behaviour-narrowed runtime function; filed by the zone" ], "deviations": [ "The container restarted mid-round. The gate families resumed from the first unfinished command, and the locked steps were re-run in full; all readings above are at 47d5f695.", "The first round-2 background chain hit the 30-minute background limit during the UI suites. That run produced no verdict, and the suites were re-run per package under a longer budget." ], "files_changed": [ ".changeset/36923-standalone-form-lookupautofill-refused.md", "ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx", "ui/packages/fields/src/widgets/LookupField.tsx", "ui/packages/fields/src/widgets/lookupAutofill.ts", "ui/packages/fields/src/widgets/types.ts", "ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx", "ui/packages/plugin-form/src/recordFormStamp.ts", "ui/packages/plugin-grid/src/relationalMetaKeys.ts" ], "line_budget": "448 changed lines (+427 / -21) over 8 files vs origin/main, under the 3000-line human-merge threshold; no skills/** touched" }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Delivered · area a4-U · 2026-11-25T03:56Z · PR #37090 merged as
15d27661(L1 ACCEPT 7152015485, contract review PASS 7151704341, maintainer-approved as a declared narrowing)lookupAutofillnow fills nothing on a host that handsonAutofillwithout the record form's stamp, such as a standalone form node. That covers both a pick and the opening fill. The record form and the line-item grid fill as before, with the cross-currency rule intact.withLookupAutofillTargets(field, objectFields), or declare the key on the object field and draw the record form.pm:dispatchedremoved with the close;domain:ui,area:uxstay.