Skip to content

fix(fields): a lookupAutofill written on a standalone form node's field is not run - #37090

Merged
os-zhuang merged 11 commits into
mainfrom
claude/issue-36923-standalone-form-lookupautofill-refused
Nov 25, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/issue-36923-standalone-form-lookupautofill-refused

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #36923

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — every page that teaches lookupAutofill teaches it as a key on the object's lookup field, read by the record form and the line-item grid, and none teaches it on a standalone form node, so nothing it says became false (git grep -i lookupAutofill over skills/ and content/docs/ at 47d5f69: skills/objectstack-data/rules/field-types.md and relationships.md, skills/objectstack-ui/rules/actions.md and one eval in views-apps-actions-pages.json; content/docs/data-modeling/fields.mdx, the generated references, and two release pages)
Ruling-ref: 7138010812 on #36923, the maintainer, verbatim: 「同意 拒收(推荐)」

维护者速读

  • 用户能看到什么变化:在独立表单(不属于某个对象的记录表单)里,查找字段上手写的自动带值不再执行,选中记录后其它字段保持不变;记录表单和明细行表格照旧带值,币种保护不变。
  • 为什么做:独立表单上的自动带值没有币种保护,可能把一种货币的金额静默填进另一种货币的字段;按你的裁决改为拒收。
  • 出错会怎样:如果判断错了,记录表单里的自动带值会失效(测试已钉住它仍然生效);改动只在界面层,撤回本次合并即可恢复。
  • 要你做什么:批准合并(本次声明为收窄改动,需维护者批准)

What changes

Per the ruling on #36923 (comment 7138010812): a lookupAutofill written by hand on a field of a standalone form node is not run. The pick still sets the lookup, but it copies nothing into other fields. Record forms and line-item grid columns keep the behaviour #36918 shipped, the cross-currency rule included.

  • How the widget tells a record form apart. LookupField runs the declared pairs only on a lookup that carries the record form's stamp (withLookupAutofillTargets, applied by stampRecordFormFields in gateFormFields, the one step every record-form layout draws its fields through). No new public export, prop or context, and no new dependency edge.
  • The stamp is now complete. Before, the record form stamped a lookup only when its field map named at least one target, so a missing stamp did not prove the host was not a record form. Now every lookup that declares pairs gets the stamp. The map is empty when the field map names none of the targets: the schema has not loaded, the form has no metadata source, or the target is not an object field. An empty map judges no currency, so those picks copy exactly as before.
  • Only an issued stamp counts. The stamp map is registered in a module-private WeakSet when it is issued, which is the pattern withRecordBeingEdited already uses. A lookupAutofillTargets key written as data on a loose form field is not a stamp.
  • The refusal is visible. A development build (the guard globalThis.process?.env?.NODE_ENV !== 'production', the spelling lookupRecordReference.ts already ships) warns once per field, names the field, and says where the key is honoured.
  • Census and describe. The form-field census row for lookupAutofill now says the key is honoured only in record forms and grid columns. The spec describe (FieldSchema.lookupAutofill, "Read wherever this field is picked: the record form, and a line-item grid column over it") already says this, so packages/spec is not touched.
  • Reach. lookupAutofill has 0 non-test hits under examples/ and ui/examples/ at 6c1dfb3. The first dev report on the card measured HotCRM: 0 type: 'form' nodes.

Breaking: two published surfaces narrow

The seat ruled on 2026-11-24 that this is a narrowing. The changeset carries two BREAKING banners and the ADR-0087 disposition not-required (no-migration-prescription).

The widest one is the lookup / master_detail widget (LookupField) handed onAutofill.

  • FROM: a single-value pick, and the opening fill of a create form that opened with the lookup set, filled the declared targets whenever the host handed onAutofill (and no onSelectRecord) and the field carried lookupAutofill pairs.
  • TO: it also needs the stamp withLookupAutofillTargets issues, which the record form applies to every field it draws. A host that hands onAutofill without that stamp sets the lookup and fills nothing, on a pick and on the opening fill alike. A standalone form node is one such host.
  • Fix: stamp the field through withLookupAutofillTargets(field, objectFields) before handing it to the widget, passing the object's field map as the record form does. With no map the stamp names no target, so the pick copies without the cross-currency rule, which is the copy this change stops. Or declare lookupAutofill on the object field and draw the object's record form.
  • The published prop doc FieldWidgetProps.onAutofill (widgets/types.ts) now names the stamp. The same sentence in plugin-grid's relationalMetaKeys.ts lookupAutofill note is corrected too.

readLookupAutofillTargets is a published export of @object-ui/fields (re-exported through export *). It no longer returns a target map it used to return.

  • FROM: readLookupAutofillTargets(field) returned any non-array object found under the field's lookupAutofillTargets key.
  • TO: it returns only the map withLookupAutofillTargets stamped, which is what the record form does. A same-name key written by hand reads undefined. withLookupAutofillTargets now also stamps a lookup whose pairs name no field of the map it is given, with an empty map. The map is frozen, and a field with pairs always comes back as a copy.
  • Fix: stamp the field through withLookupAutofillTargets, as the record form does. If you need the raw value, read field.lookupAutofillTargets directly.

What the marker rests on. The changeset body carries a code-level prescription: the FROM, TO and Fix lines, written without an arrow. So the gate admits no-migration-prescription on a detector miss, not on a checked fact. No fact-based category covers a runtime function whose behaviour narrows: runtime-interface-only reads exported types, and runtime-export-retired reads an export that is gone. The vocabulary gap is #37136. The marker's own reason says this.

Fix round 1

CI Test UI (2/16) was red at 6c1dfb3 because of this PR. relationalMetaCopySet.derivation.test.ts found that LookupField's dev warning read name off the field meta, a read that RELATIONAL_META_READ_SET does not classify for lookup-editor. The warning now takes the field name from the props or the form entry (props.name || lookupField?.name), which is the same read the trigger's test id already makes. So the table needs no new row and the derivation test is unchanged.

Fix round 2

Tests

New file ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx, 8 cases:

  • bare form node: a pick copies nothing, and the dev warning fires once, naming the field, across two picks; a production build copies nothing and warns nothing; a hand-written lookupAutofillTargets does not opt the field in;
  • stamp unit pins: stamped with no field map or with a map that names no target; a field without pairs is not stamped; the key written as data reads as no stamp;
  • record form (ObjectForm): a USD quote fills the price and description with no note and no warning; a EUR quote fills the description and withholds the price with the note;
  • grid column (GridField, planLookupAutofill path): a cell pick fills the declared target.
Ablations at 47d5f69 (vitest resolves @object-ui/* to src through the ui alias map, so no dist leg)

Each was run through node scripts/ablation-replace.mjs under the verify lock. The mutation is verified on disk (anchor count 1 to 0, blob changed) and the restore is verified (blob equal to HEAD, git diff HEAD empty). After all three, git diff HEAD is empty.

  1. LookupField gate removed (autofillPairs = declaredPairs): 3 failed, 5 passed. The three standalone pins fail with expected '100' to be '' (twice) and expected 'A widget' to be ''. The record-form, grid and unit pins stay green. Blob 1b68e764, restored to 01485cad.
  2. Issued check removed from readLookupAutofillTargets: 2 failed, 6 passed. The forged-stamp pin fails with expected '100' to be '', and the data-key unit pin fails with expected {} to be undefined. Restored to 83b9b5ba.
  3. Empty-stamp change reverted (no stamp without a target): 1 failed, 7 passed. The stamp unit pin fails with expected undefined to deeply equal {}. Restored to 83b9b5ba.

Acceptance notes

  • The record form now stamps an empty lookupAutofillTargets on a lookup whose pairs name no field of the map. It used to leave such a lookup unstamped. The empty map carries no currency context, so the copy and the opening-fill timing are unchanged there.
  • readLookupAutofillTargets (exported) now answers only for a stamp withLookupAutofillTargets issued. Its only in-tree reader is LookupField.
  • withLookupAutofillTargets now freezes the map it stamps, and a field with pairs always comes back as a copy, even with no target. No in-tree caller writes to the map or compares the return to its argument.
  • The stamp rests on module identity, through a module-private WeakSet. If a page ever loads two instances of @object-ui/fields (it ships both dist/index.js and dist/index.cjs), a stamp issued by one is no stamp to the LookupField of the other. Record-form autofill would then stop, with only the development warning to say so. withRecordBeingEdited already carries the same exposure on main, so this is a recorded cost, not a new class.
  • The production guard was measured. The console's Vite (8.3.5), with the console's define block ('process.env': {}, process.platform, process.version), was run on a probe entry. An app build rewrites globalThis.process?.env?.NODE_ENV the same way it rewrites process.env.NODE_ENV: --mode production folds both to the production branch, and --mode development folds both to the development branch. So the warning is dead code in the console's production bundle, and the spelling stays as lookupRecordReference.ts ships it. A library-mode build rewrites neither spelling, which leaves both to the consuming app's bundler.
  • The recordFormStamp.ts header said a standalone node's lookup "copies as it always did". That comment was made false by this change, so it is corrected.

Verification

Read first, by risk:

  1. ui/packages/fields/src/widgets/LookupField.tsx, the declaredPairs / autofillTargets / currencyTargets hunk: the gate, plus the currency context kept off for an empty stamp.
  2. ui/packages/fields/src/widgets/lookupAutofill.ts, withLookupAutofillTargets / readLookupAutofillTargets: always stamp, issued-only read.
  3. ui/packages/plugin-form/src/recordFormStamp.ts: header only.

Two-minute check: cd ui && pnpm exec vitest run packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx. Expected result: 8 passed.

Local readings at 47d5f69
  • Gate families: dispatch-gates --commands derived 38, and all 38 exit 0. check:type-check-debt was rerun under the verify lock, exit 0, after its first run missed the lock. --ran reconciles them: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN.
  • Changeset gates: check:adr-0087-registration exit 0 ([BREAKING+clause-②-narrowing] not-required (no-migration-prescription)), check-empty-changeset exit 0, check-changeset-no-major exit 0.
  • @objectstack/spec check:generated (spec moved on main): exit 0. The seven @objectstack builds, run as Test UI runs them: exit 0.
  • turbo run type-check on @object-ui/fields, @object-ui/plugin-form, @object-ui/plugin-grid and @object-ui/example-schema-catalog: 72/72 successful.
  • vitest results:
    • packages/fields/: 329 files passed, 1 skipped; 5016 tests passed, 7 skipped.
    • packages/plugin-form/ examples/schema-catalog/: 291 files passed; 5227 tests passed, 1 skipped.
    • packages/plugin-grid/: 312 files and 2769 tests passed.
    • pnpm --dir ui exec vitest run scripts/: 172 files passed, 2 skipped.
  • Dogfood battery: pnpm --filter @objectstack/dogfood test under the lock, after its closure build, gave VERDICT command-exit 0. Test Files: 487 passed, 3 skipped. Tests: 4128 passed, 68 skipped. No failures.
  • overlap-check: VERDICT clean exit 0.
  • CI at 47d5f69: 44 success, 13 skipped, 0 failed.

Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Final head for L1 and the narrowing-face L2 · area a4-U · 2026-11-24T22:13Z
Head-sha: 41cd6dada272abba9af6448c2ad1586b0667add0

  • Fix round 1 (CI red Test UI (2/16) at 6c1dfb3, RELATIONAL_META_READ_SET derivation): the dev warning now takes the field name from the props or the form entry (props.name || lookupField?.name), the read the trigger's test id already makes; no table row added, the derivation test unchanged.
  • Declaration per the seat's ruling (record to this zone, 2026-11-24T19:48Z): readLookupAutofillTargets (published via @object-ui/fields' export *) now answers only for an issued stamp, a narrowing. PR body (written by this zone through the relay, read back identical) and changeset carry Clause-②: no (narrowing) and Metadata-protocol: none line-initial; the changeset carries the BREAKING banner (FROM → TO, fix) and one ADR-0087 marker, not-required (no-migration-prescription) (check:adr-0087-registration exit 0; runtime-interface-only covers types only, registered needs a packages/spec ledger entry outside this card's fence — the dev's reasoning, for the L2 to weigh).
  • Dogfood: the full battery pinned to this head is green, card comment 7145912427 (490 files, 0 failures). The battery has no lookupAutofill case; the record-form, standalone and grid paths are pinned by the UI tests at the same head.
  • For the seat: the PR title has no ! although the change is declared (narrowing); no gate asks for one.
  • Owed before landing: L1 and the narrowing-face contract-review-tier L2, both by the seat session, on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 41cd6dada272abba9af6448c2ad1586b0667add0
Local-runs: none
Scope: .changeset/36923-standalone-form-lookupautofill-refused.md, ui/packages/fields/src/widgets/LookupField.tsx, ui/packages/fields/src/widgets/lookupAutofill.ts, ui/packages/plugin-form/src/recordFormStamp.ts, ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx, ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx + read, not reviewed: ui/packages/components/src/renderers/form/form.tsx, ui/packages/plugin-form/src/fieldWriteGate.ts and the five layout files that call gateFormFields, ui/packages/fields/src/widgets/types.ts, ui/packages/fields/src/widgets/lookupRecordReference.ts, ui/packages/fields/src/resolveActionParams.ts, ui/apps/console/src/components/FormPage.tsx, packages/spec/src/data/field.zod.ts, docs/adr/0087-metadata-protocol-upgrade-contract.md, scripts/check-adr-0087-registration.mjs, skills/objectstack-data/rules/field-types.md, skills/objectstack-ui/rules/actions.md, content/docs/data-modeling/fields.mdx

Inputs read: card #36923 (body and all 8 comments, ruling 7138010812, addendum 7145912427), PR #37090 (body, its one comment, 6 files, net diff 8aecf6d7..41cd6dad), the 61 check-runs on the head (0 failed; every one is success or skipped; Check Changeset succeeded twice, the second run after the body edit at 22:15Z).

① Derived judgments

Every surface whose accept set, behaviour or type moves, and whether the PR names it:

  • readLookupAutofillTargets (@object-ui/fields, through export * from './widgets/lookupAutofill.js', index.tsx:5534). Narrows: it answered for any non-array object under lookupAutofillTargets; it now answers only for a map in the module-private ISSUED_TARGET_STAMPS. Type signature unchanged. Named right (banner, FROM, TO, fix).
  • withLookupAutofillTargets (same export). Changes in the other direction: a field with pairs is now always returned as a stamped copy, with an empty map when fields is null or names no target; before it returned def itself. Named right in the TO line. Not named: the map is now Object.freezed, and the return is no longer identical to def in the no-target case. See N3.
  • LOOKUP_AUTOFILL_TARGETS_KEY. Value unchanged. A value under it is now data unless issued. Named right.
  • LookupField, and so the registered lookup and master_detail widgets, and the published prop contract FieldWidgetProps.onAutofill (widgets/types.ts:283-295). This is the widest narrowing in the PR and it is beyond readLookupAutofillTargets: a pick used to fill whenever the host handed onAutofill and the field carried pairs; it now also needs an issued stamp. It reaches every host of the widget that is not one of the five gateFormFields callers, not only the form node. The changeset's prose names the standalone form node; the banner names the helper only; the prop's own JSDoc is unchanged. Named in part. See S1.
  • The form renderer of @object-ui/components. No code change and no changeset entry for that package, which is right: nothing in it publishes differently. Its observable behaviour narrows through the widget (field.field || field at form.tsx:4269 still hands the authored key down, onAutofill at form.tsx:4350 is still handed). Named right in the prose.
  • stampRecordFormFields and gateFormFields (@object-ui/plugin-form). Not in the package index; internal. Behaviour follows withLookupAutofillTargets. recordFormStamp.ts is a header-comment edit only. No changeset entry owed for plugin-form.
  • Accept sets: none moves. FormFieldSchema stays a loose object and still accepts the key; packages/spec is untouched and FieldSchema.lookupAutofill's describe (field.zod.ts:2647) already reads "the record form, and a line-item grid column over it".
  • New observable output: one console.warn per field name. Named right.
  • The census row text is accurate against the code.

S1 (should-fix) — the widget-level narrowing is not stated where a host author reads it. FieldWidgetProps.onAutofill (ui/packages/fields/src/widgets/types.ts:283-289, published) still gives the whole condition as "a single-value pick whose host owns no onSelectRecord" and "A lookup reached without it fills nothing". After this head a lookup reached with it, and without an issued stamp, also fills nothing. The BREAKING banner lists readLookupAutofillTargets alone, although a host that renders the widget with onAutofill is broken without ever calling that helper. Asked: one sentence on the prop's JSDoc naming the stamp, and one banner line naming LookupField with onAutofill as the narrowed surface. The fix line the banner already carries (stamp through withLookupAutofillTargets) is the right fix for that reader. ui/packages/plugin-grid/src/relationalMetaKeys.ts:386 carries the same now-incomplete sentence; it is outside the diff and is named here for the same edit.

② Semver level

  • Level patch on @object-ui/fields: right. AGENTS.md, Post-Task Checklist step 3: a non-protocol change, widening or breaking, ships patch and keeps its BREAKING banner and ADR-0087 disposition. Only fields publishes a code change; plugin-form moves a comment and a test, the catalog example is a test.
  • Clause-②: no (narrowing): right. A published export and a published widget behaviour answer for less than before. Present line-initial in both the PR body and the changeset.
  • Metadata-protocol: none: right. No key, accepted value or type is added, removed or refused at any validator, and the declared meaning of lookupAutofill (object field; record form and grid column) is unchanged. What stops is undeclared execution at a site the describe never named. The letter of semantic ("a changed meaning") was weighed: the key was reachable on a form node only through the renderer's field.field || field fallback, never through a declaration, and ruling 7138010812 treats it as undeclared there. Measured reach is 0.
  • BREAKING banner with FROM, TO and the fix: present and accurate for the helper. Its coverage gap is S1.
  • ADR-0087 disposition. Exactly one marker, not-required (no-migration-prescription). Read against CATEGORIES and the ADR's vocabulary paragraph (docs/adr/0087-…md:758-786):
    • runtime-interface-only: closed on the facts. The resolver reads export interface|type|class|enum only (check-adr-0087-registration.mjs:2937); readLookupAutofillTargets is a function. The dev's reading is correct.
    • runtime-export-retired: closed. The export is present at HEAD.
    • type-surface-only: closed. Nothing narrows off any; the declared type is unchanged.
    • unpublished, already-registered: closed. The package publishes; no ledger id covers this.
    • registered: not the right answer here. It needs an id new in this diff under packages/spec/src/migrations/entries/semantic/. The ledger describes the declared protocol, and with Metadata-protocol: none standing there is no declared surface for an entry to name. The dev's second reason (outside the card's fence) is a fence argument, not the deciding one; the deciding one is that the kind is none.
    • no-migration-prescription: the right marker of the closed set, and the gate admits it because the kind is none (the outright refusal is keyed on narrowed). It is admitted on a detector miss, not on a fact: the category's own rule is that a body carrying a migration prescription cannot hold it, and this body carries FROM, TO and two Fix: sentences, written without an arrow or a framed table. That is the shape ADR-0087 records for changeset 15205 (…md:1076-1086) before D9 gave it a category. A behaviour narrowing of a published runtime function has no fact-based category today. See S2.
  • Skills-docs: none: right in substance. git grep -i lookupAutofill over skills/** at the head: skills/objectstack-data/rules/field-types.md:92-104 ("in the form and the line-item grid", taught as an object-field key), skills/objectstack-ui/rules/actions.md:214 ("fills only the form and the grid"), and one eval pair in skills/objectstack-ui/evals/views-apps-actions-pages.json:176-177. None teaches the key on a standalone form node. ui/skills/ does not exist at the head. content/docs/data-modeling/fields.mdx:282 already says "in the record form, and in a line-item grid column". See N2 for the reason text.

S2 (should-fix) — the marker's justification does not say what it rests on. It argues "the consumer is code calling it, not metadata an upgrade could rewrite", which is true, and stays silent on the body's own FROM, TO and Fix: lines, which are the thing the category's rule refuses. Asked: one sentence in the marker's why stating that the body carries a code-level prescription, that no fact-based category addresses a behaviour-narrowed runtime function (runtime-interface-only reads types, runtime-export-retired reads an absent export), and a follow-up card for that vocabulary gap, as 15205's marker did. The marker itself stays.

③ Boundary flags

  • Dev flag, "the PR title has no !; no gate asks for one": confirmed, and it is not owed. The landing dogfood gate and l1-face read the title's ! or the (narrowing) arm as alternatives; check:adr-0087-registration reads the changeset, where the banner and the arm declare the break. Adding ! would make the squash subject agree with the banner and is the seat's choice; nothing here depends on it.
  • Dev flag, the PR body still read Clause-②: no: closed. The body at this head reads Clause-②: no (narrowing), Metadata-protocol: none, Skills-docs: none — ….
  • Deviation, recordFormStamp.ts outside the claimed file surface: accepted. Comment-only, and the old sentence ("its lookup copies as it always did") would be false at this head.
  • Deviation, overlap-check missed before the first three pushes: process only; git merge-tree origin/main 41cd6dad is clean now and no file of the diff moved on main since the merge base.
  • Deviation, ablations ran on the 7-case file at 6c1dfb3: stands as stated; the LookupField hunk changed once after that (ac3310d1, the warning's name source only). Passed to L1.
  • Fence of the claim (no new public export from components or fields, no packages/spec edit): held. ISSUED_TARGET_STAMPS and warnAutofillRefused are module-private.
  • Out-of-scope finding (the export now answers issued-only): closed by the narrowing declaration.
  • open_questions: none in the newest report.
  • SQL push-down: not applicable. The diff holds no query, no id materialisation and no join.
  • Escalated to L1, not judged here: the newest payload-bearing os-dev-report (7142196236) still reads dogfood_battery: n/a. The addendum 7145912427 opens "os-dev-report addendum …", which OS_DEV_REPORT_MARKER does not match, so the landing gate will not read the battery it reports.

④ Design judgment

Against the ruling (7138010812) and the code:

  • Refuse, not execute: held. declaredPairs keeps the old condition; autofillPairs is declaredPairs only when readLookupAutofillTargets(fieldMeta) answers, and both consumers (the pick fill at LookupField.tsx:1329, the opening fill at :1361) read autofillPairs. The lookup's own value is still set.
  • The refusal sits in the widget, as the ruling's premise required: form.tsx cannot import from fields (fields/package.json:33 depends on components), and no new export, prop or context was added.
  • Fires only on standalone forms: in this repository, yes. onAutofill has one producer, form.tsx; the form node is built by ObjectForm (both arms), ModalForm, DrawerForm, TabbedForm and WizardForm, and each passes gateFormFields output. FormPage draws its own widgets and hands no onAutofill, so it filled nothing before and warns nothing now. GridField hands onSelectRecord, which empties declaredPairs before the stamp is read. Outside the repository it fires on any host of the widget that does not stamp; that is S1.
  • The ruling's caveat ("no stamp alone is not the test") is met by making the stamp complete: withLookupAutofillTargets returns early only when the field declares no pairs, so restamp stamps the entry and its inner field whenever either carries pairs, with an empty map when objectFields is absent or names no target. Pinned for null, undefined, a map without the targets, and stampRecordFormFields([lookup], undefined).
  • Stamp read: sound. Identity in a module-private WeakSet, the pattern withRecordBeingEdited already uses on main (lookupRecordReference.ts:73,178). The stamp survives the path: restamp, applyFieldPermissions, the layout spreads, withUsedCurrencyCodes are shallow; no structuredClone, JSON round-trip or deep clone sits in plugin-form, the form renderer or SchemaRenderer. Nothing parsed from a document can be a member, and the forged-key case is pinned.
  • A legitimate author-written autofill wrongly refused: none found inside the repository. Pairs written on a record form's customFields member or section entry pass through the gate and are stamped. ObjectForm.lookupAutofill-28245.test.tsx:633-637 asserts the fill in the sectioned, drawer, modal, tabbed and wizard layouts and Test UI is green at this head, so a lost stamp in any of them would now show as an empty target.
  • Empty stamp and the currency rule: currencyTargets is undefined for an empty map, so autofillCurrency, currencyFor and the opening-fill wait behave exactly as an unstamped lookup did. No new unguarded copy is opened and none is closed inside a record form.
  • Does it take a declared capability away, or make the spec's own refusal real: the second. The describe on main names the record form and the grid column; the standalone form node was never named, and the cross-currency rule the describe states could not hold there.

Attempts to break it, and what each found:

  • Forged lookupAutofillTargets on a loose field: refused, pinned.
  • Malformed or empty lookupAutofill: declaredPairs?.length is falsy, no fill and no warning, as before.
  • multiple lookups and grid cells: unchanged, no warning.
  • A record form with the schema still loading or no metadata source: empty stamp, copies as before.
  • Warning repeated per render or per pick: no, a module Set keyed by field name; pinned across two picks. Two forms sharing a field name warn once between them.
  • Two copies of @object-ui/fields in one page: see N1.
  • Production leak of the warning: see N4.

N1 (nit) — the whole feature now rests on module identity. @object-ui/fields ships both dist/index.js and dist/index.cjs; if a page ever loads two instances, a stamp issued through one is no stamp to the LookupField of the other, and record-form autofill stops with only the development warning to say so. Before this head the stamp was plain data and could not fail that way. withRecordBeingEdited already carries the same exposure on main, so this is a recorded cost, not a new class.

N2 (nit) — the Skills-docs: reason greps the helper names (readLookupAutofillTargets, lookupAutofillTargets). The author-facing change is lookupAutofill on a form node, and the grep that shows the line true is the one in ② above. The skills' "the form" is looser than the docs' "the record form"; that wording is #36349's subject.

N3 (nit) — the stamped map is now frozen and the no-target return is a copy. Neither is in the TO line. No in-tree caller writes to the map or compares the return to its argument.

N4 (nit) — the production guard is globalThis.process?.env?.NODE_ENV === 'production'. The new test proves it under Node, where process exists. In a browser bundle with no process global, whose bundler does not rewrite that exact spelling, the comparison is false and the warning prints in production: one line per field name, carrying the field name only. Whether the console's Vite build rewrites it was not measured (read-only review). The spelling is the one lookupRecordReference.ts:246 already ships; the same package documents the bundler-replaced process.env.NODE_ENV idiom at resolveActionParams.ts:65-74.

Implemented-by: claude/issue-36923-standalone-form-lookupautofill-refused
Reviewed-by: fresh subagent of session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — REWORK · L1 · head 41cd6dada272abba9af6448c2ad1586b0667add0 · 2026-11-24T22:23Z

Requested by zone a4-U (7145974619) for card #36923. Beside the narrowing-face contract review at this head (CONTRACT_REVIEW_TIER): PASS with two should-fix — both are this round's REWORK.

Holds: the refusal sits in the widget and, in this repo, fires only on standalone forms — onAutofill has one producer and all five gateFormFields layouts stamp, with an empty map when no target resolves; a forged key is refused and no legitimate record-form autofill was found refused (ruling 7138010812). patch, Clause-②: no (narrowing), Metadata-protocol: none, Skills-docs: none are right (no skill teaches the key on a standalone form). A title ! is not owed by any gate; leave the title. Check-runs: all success or expected skip. merge-tree clean.

S1 (should-fix) — the widest narrowing is LookupField + onAutofill (the lookup and master_detail widgets), not only readLookupAutofillTargets: a host that renders the widget without stamping now loses autofill. The published prop JSDoc (ui/packages/fields/src/widgets/types.ts ~283-289) and the BREAKING banner must name it, with its FROM → TO and fix.
S2 (should-fix) — not-required (no-migration-prescription) is the right marker of the closed set, but it is admitted on a detector miss (the body's FROM / TO / Fix: lines carry no arrow): the marker's why says so, and the zone files a follow-up card for the registration vocabulary's gap.

Landing items (not graded, owed before --land):

  • Dogfood report. The battery run pinned to this head (7145912427, 487 files, 0 failures) opens "os-dev-report addendum", which the landing gate's report marker does not read; the newest readable report (7142196236) says dogfood_battery: n/a. A payload-bearing os-dev report naming the final head is owed.
  • Ablations ran at 6c1dfb34, two commits back — re-run on the final head.
  • K = 34: merge main in this round.

Nits: two instances of @object-ui/fields in one page would break the WeakSet stamp — note it; the globalThis.process?.env?.NODE_ENV guard is proven only under Node, so the dev warning may print in a browser production bundle — measure or guard with the bundler's flag; the PR's Skills-docs reason greps the helper names rather than lookupAutofill — reword.

Delta contract review and delta L1 on the new head.

… names the widget narrowing and what its marker rests on

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Final head for delta L1 + L2 (round 2) · area a4-U · 2026-11-25T02:21Z
Head-sha: 47d5f6956ca2a1dcf113d75cc3e2d90bd02ced69

  • Main merged in (952484e2, 37 commits, clean). Scoped re-checks after the merge are green: the seven @objectstack builds, spec check:generated, and type-check plus tests for fields, plugin-form, plugin-grid and the schema catalog.
  • S1: the FieldWidgetProps.onAutofill JSDoc (ui/packages/fields/src/widgets/types.ts) now says a lookup fills only when the record form stamped the field (withLookupAutofillTargets), and a host that hands onAutofill without the stamp, such as a standalone form node, fills nothing. The changeset gains a BREAKING banner for LookupField with onAutofill (FROM, TO, and the fix). The same sentence in plugin-grid/src/relationalMetaKeys.ts is corrected.
  • S2: the ADR-0087 marker stays not-required (no-migration-prescription). Its reason now names the code-level prescription the body carries, says no fact-based category covers a behaviour-narrowed runtime function, and cites ADR-0087 disposition vocabulary: no fact-based category for a breaking behaviour narrowing of a published runtime function (it rides no-migration-prescription on a detector miss) #37136 for that vocabulary gap.
  • Ablations at this head: widget gate removed, 3 red; issued check removed, 2 red; empty stamp reverted, 1 red. Each was restored to blob == HEAD, and the tree was clean after.
  • Dogfood os-dev-report on this head: 7150529599 on Standalone form: a lookupAutofill field still copies an amount across currencies (the guard from #36918 applies only on record forms) #36923. The full battery is green: 487 files passed, 3 skipped; 4128 tests passed, 68 skipped; no failures.
  • Nits:
    • N1 is an Acceptance note.
    • N2: the Skills-docs reason is reworded around a git grep -i lookupAutofill over skills/ and content/docs/; every hit teaches the key on the object's lookup field.
    • N3: the changeset TO line says the map is frozen and the return is a copy.
    • N4 is measured: the console's Vite build folds globalThis.process?.env?.NODE_ENV like process.env.NODE_ENV, so the spelling is kept.
  • PR body rewritten from the dev's corrected file; the read-back is identical and the signed trailer is the last line.
  • Readings: fields 5016 tests passed; plugin-form plus schema-catalog 5227 tests passed; plugin-grid 2769 tests passed. 38 derived gate families ran, all exit 0, none NOT MEASURED.
  • Check-runs at this head: 46 success, 15 skipped, 0 failing or running.
  • Handed to the seat session for delta L1 and L2. This zone does not ready or queue the PR before both are on record for this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 47d5f6956ca2a1dcf113d75cc3e2d90bd02ced69
Local-runs: none
Scope: .changeset/36923-standalone-form-lookupautofill-refused.md, 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/recordFormStamp.ts, ui/packages/plugin-form/src/__tests__/lookupAutofillStandaloneForm-36923.test.tsx, ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, ui/packages/plugin-grid/src/relationalMetaKeys.ts + read, not reviewed: ui/packages/components/src/renderers/form/form.tsx, ui/packages/fields/src/index.tsx, ui/packages/fields/src/widgets/RegistryRefField.tsx, docs/adr/0087-metadata-protocol-upgrade-contract.md

Delta review of the record at 41cd6dada272abba9af6448c2ad1586b0667add0 (PASS, S1 and S2 open). Inputs read: that record and the seat's L1 REWORK, the zone's finalized-head comment 7150635783, the PR body at this head, card #37136 (body, its one comment, timeline), the diffs 41cd6dad..47d5f695, 952484e2..47d5f695 and 8aecf6d7..236c8044, the files at this head, and the 61 check-runs on it (46 success, 15 skipped, 0 failed or running; Check Changeset success twice).

What the delta is: one merge commit 952484e2 (parents 41cd6dad and 236c8044, 37 commits of main) and one commit 47d5f695 touching three files (+14 −4): the changeset, widgets/types.ts, plugin-grid/src/relationalMetaKeys.ts.

The merge: its tree 71dc8d5e equals git merge-tree --write-tree 41cd6dad 236c8044, so there is no hand resolution to read. The PR's net diff is byte-identical on both sides of the merge (8aecf6d7..41cd6dad against 236c8044..952484e2, index lines apart). Main touched none of the PR's files in those 37 commits. In the packages the PR reads, main moved fields/src/index.tsx (a new export resolveFormulaValueType and its use in FormulaCellRenderer), fields/src/formulaValueType.ts, plugin-grid/src/ObjectGrid.tsx and one test; none of them reads or hands onAutofill, lookupAutofill or the stamp. export * from './widgets/lookupAutofill.js' is still there (index.tsx:5539).

① Derived judgments

S1: closed. Read at this head:

  • FieldWidgetProps.onAutofill (widgets/types.ts:289-293) now reads "A lookup reached with it fills only when the record form stamped the field (withLookupAutofillTargets, applied to every field the record form draws): a host that hands onAutofill without that stamp, such as a standalone form node, fills nothing either." That is the sentence asked for, and it is true to LookupField.tsx:1252-1255. The prop's type (:299) is unchanged.
  • The changeset has a second BREAKING banner, placed first, naming @object-ui/fields, the lookup and master_detail widgets, and LookupField handed onAutofill, with FROM, TO and Fix.
  • plugin-grid/src/relationalMetaKeys.ts:386 now says the key is read "only when its host hands it an onAutofill writer and the record form stamped the field". The entry's verdict and readers are unchanged; only the note string moved.

The banner against the code:

  • FROM ("a single-value pick filled the declared targets whenever the host handed onAutofill (and no onSelectRecord) and the field carried lookupAutofill pairs"): true. It is the declaredPairs condition, !multiple && !onSelectRecord && props.onAutofill, which was the whole gate before this PR.
  • TO ("it also needs the stamp withLookupAutofillTargets issues, which the record form applies to every field it draws … sets the lookup and fills nothing, and a development build warns once per field"): true. autofillPairs is declaredPairs only when readLookupAutofillTargets(fieldMeta) answers (:1254-1255); both fills read autofillPairs (:1329, :1361); the warning is keyed by field name and returns early when NODE_ENV is production (:80-81, :1256-1260).
  • Fix, first arm ("stamp the field through withLookupAutofillTargets before handing it to the widget"): true. The function is exported, and it issues a stamp for any field with pairs whatever fields is (lookupAutofill.ts:415-433). A host that stamps with no field map gets an empty map, so its picks copy with no currency judged. That is the same state a record form is in while its schema loads; the banner does not say it, and a host taking this arm should know it. See N5.
  • Fix, second arm (declare on the object field, draw the record form): true.
  • The other banner's added sentence ("The map it stamps is frozen, and a field with pairs always comes back as a copy"): true (Object.freeze(targets), { ...def, … }). This closes N3.

Whether the delta or the merge moved anything further:

  • Accept sets: none. No schema file is in the PR, before or after the merge. packages/spec is untouched by the PR.
  • Published types and exports: none added, removed or retyped by the delta. types.ts is a comment hunk only. The PR still adds no export; ISSUED_TARGET_STAMPS and warnAutofillRefused stay module-private.
  • api-surface baselines: the only ones in the tree are packages/spec/api-surface*; the PR touches none and owes none, since nothing in packages/spec moves. No baseline exists for @object-ui/fields.
  • Behaviour: the delta holds no executable change. The one non-comment hunk is the note string in relationalMetaKeys.ts, a description no code branches on.
  • Producers of onAutofill at this head: form.tsx only (:1402-1449, :4350). RegistryRefField consumes the same prop as its own sibling writer and does not read lookupAutofill or the stamp, so the narrowing does not reach it. Main added no new producer.

② Semver level

Unchanged and still right: '@object-ui/fields': patch, Clause-②: no (narrowing), Metadata-protocol: none, present line-initial in the changeset and the PR body. Exactly one ADR-0087 marker.

plugin-grid gets no changeset entry for the note string. None is owed: the table is not in the package index and the string decides nothing at runtime.

S2: closed. The marker is still not-required (no-migration-prescription). Its why now says each thing asked: "This body does carry a code-level prescription (the FROM, TO and Fix lines below, written without an arrow), so the gate admits this marker on a detector miss, not on a checked fact: no fact-based category covers a runtime function whose behaviour narrows (runtime-interface-only reads exported types, runtime-export-retired reads an export that is gone). The vocabulary gap is #37136." It also widens "what narrows" from the helper alone to the helper and LookupField handed onAutofill, which matches S1.

#37136 is the follow-up card for that gap: "ADR-0087 disposition vocabulary: no fact-based category for a breaking behaviour narrowing of a published runtime function", filed by the zone, sourced to S2, with the five closed categories walked and PR #37090 as the measured case. One fact the zone's comment does not carry: triage closed it as not planned four minutes after it was filed (2026-11-24T22:29Z, p3 first-touch standard: no user-visible defect, too large for the weekly sweep; "the next ADR-0087 amendment can take it as one row"). The marker's sentence stays true, since the card is the record of the gap. S2 asked for the card and the wording, and both exist; whether the gap is worked is triage's call and is not reopened here. Passed to L1 as a fact, not a finding.

Skills-docs: none: the reason is reworded around git grep -i lookupAutofill over skills/ and content/docs/. This closes N2.

③ Boundary flags

  • Fence of the claim: held through the delta. No new export from components or fields, no packages/spec edit.
  • relationalMetaKeys.ts is a new file in the PR's surface, in a third package. It was named by S1 for this edit, and the edit is the one sentence.
  • The landing items the L1 named (a payload-bearing dogfood report on the final head, ablations on the final head, main merged in) are reported done by the zone in 7150635783 and the PR body. They are L1's to check; not judged here.
  • K at this head is 27 (first-parent commits on origin/main past the merge base 236c8044). Size: 427 additions, 21 deletions, 8 files.
  • N1: closed, recorded as an Acceptance note in the PR body.
  • N4: closed as a measured statement. The PR body reports the console's Vite build folding globalThis.process?.env?.NODE_ENV to the same branch as process.env.NODE_ENV in both modes, and says a library-mode build rewrites neither. That measurement is the zone's; this review did not run it.

④ Design judgment

The design is the one the prior record judged; no line of it moved. The widget gate, the issued-only read and the always-stamp are the same blobs after the merge as before it, apart from the comment hunk in types.ts.

N5 (nit) — two things the new banner leaves unsaid. It speaks of a pick only, while the same gate also stops the opening fill of a create form's opening value on an unstamped host (LookupField.tsx:1361); the prop JSDoc's wording ("fills only when …") covers both. And its first Fix arm, taken with no field map, restores the copy without the cross-currency rule, which is the behaviour the card set out to stop on standalone forms. A host author who stamps should pass the object's field map; one clause would say so.

No must-fix, no should-fix.

Implemented-by: claude/issue-36923-standalone-form-lookupautofill-refused
Reviewed-by: fresh subagent of session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 47d5f6956ca2a1dcf113d75cc3e2d90bd02ced69 · 2026-11-25T02:29Z

Delta L1 for card #36923 over the REWORK at 41cd6dad, requested by zone a4-U (7150635783), beside the delta contract review at this head (7150702448, CONTRACT_REVIEW_TIER): PASS.

  • S1: closed. The published onAutofill JSDoc says a lookup fills nothing without an issued stamp; the changeset's BREAKING banner names LookupField with onAutofill (FROM, TO, fix), true to LookupField.tsx:1252-1255 and lookupAutofill.ts:415-443; relationalMetaKeys.ts carries the same sentence.
  • S2: closed. The ADR-0087 marker stays not-required (no-migration-prescription), and its why now says what it rests on and cites ADR-0087 disposition vocabulary: no fact-based category for a breaking behaviour narrowing of a published runtime function (it rides no-migration-prescription on a detector miss) #37136 for the vocabulary gap. Fact, not graded: triage closed ADR-0087 disposition vocabulary: no fact-based category for a breaking behaviour narrowing of a published runtime function (it rides no-migration-prescription on a detector miss) #37136 as not planned (p3) at 2026-11-24T22:29Z; the citation stands as the record of the gap.
  • Merge 952484e2: tree equals git merge-tree --write-tree of its parents; the PR's net diff is byte-identical across it. The delta commit is prose only; no accept-set, export, type or api-surface movement.
  • Before hand-off (one push with the merge below):
    • N5 — the BREAKING banner covers only the pick, but the same gate also stops a create form's opening fill on an unstamped host (LookupField.tsx:1361). Its first Fix arm says to stamp through withLookupAutofillTargets, and taken without the object's field map it brings back the copy without the cross-currency rule, which is the behaviour this card stops. Add one clause for each: "and the opening fill" and "pass the object's field map".
    • The 维护者速读 in the PR body says 「要你做什么:无」; it is a declared narrowing, so the maintainer approves it. The seat's hand-off comment carries the ask.
  • Gates. Check-runs at this head: 46 success, 15 skipped, 0 failed. Clause-②: no (narrowing), Metadata-protocol: none, Skills-docs: none — … hold. Dogfood report 7150529599 at this head: 4,128 passed, 0 failed.
  • Landing K: 27 since the merge base: merge main in the same push as N5.
  • Hand-off. A declared narrowing goes to the maintainer. After the N5 push the seat reads the delta and hands it off; it does not self-land. Size 448 lines.

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8ecc178efad9285bf94a0d91f43fd1e57b8a1444
Local-runs: none
Scope: .changeset/36923-standalone-form-lookupautofill-refused.md + read, not reviewed: ui/packages/fields/src/widgets/LookupField.tsx, ui/packages/fields/src/widgets/lookupAutofill.ts, ui/packages/plugin-form/src/recordFormStamp.ts

Delta review of the record at 47d5f6956ca2a1dcf113d75cc3e2d90bd02ced69 (PASS, N5 open). Inputs read: that record, the diffs 47d5f695..40fab472, 236c8044..47d5f695, 753aae6d..8ecc178e and 236c8044..753aae6d, the three files above at this head, the PR body at this head, and the check-runs on it.

What the delta is: one commit 40fab472 touching the changeset only (+3 −3, the FROM, TO and Fix lines of the LookupField banner), and one merge commit 8ecc178e (parents 40fab472 and 753aae6d, 28 first-parent commits of main).

The merge: its tree 277230ed equals git merge-tree --write-tree 40fab472 753aae6d, so there is no hand resolution to read. The seat's measurement is confirmed.

The PR's net diff: unchanged except for the changeset. The seven other files hold the same blob at 47d5f695 and at this head, and main touched none of the eight between 236c8044 and 753aae6d, so 753aae6d..8ecc178e over them is 236c8044..47d5f695 over them. Size is still 427 additions, 21 deletions, 8 files. In those 28 commits main moved nothing under ui/packages/fields, ui/packages/plugin-form or ui/packages/components/src/renderers/form, and no file anywhere gained or lost a line naming onAutofill or lookupAutofill, so there is no new producer or reader of the narrowed surface.

① Derived judgments

N5: closed. The banner at this head, sentence by sentence:

  • FROM now reads "a single-value pick, and the opening fill of a create form that opened with the lookup set, filled the declared targets whenever the host handed onAutofill (and no onSelectRecord) and the field carried lookupAutofill pairs." True of the base: at 753aae6d both the pick (fillDeclaredTargets) and the opening-fill effect read one autofillPairs, whose whole condition was !multiple && !onSelectRecord && props.onAutofill.
  • TO now reads "sets the lookup and fills nothing, on a pick and on the opening fill alike, and a development build warns once per field." True. autofillPairs is declaredPairs only when readLookupAutofillTargets(fieldMeta) answers (LookupField.tsx:1254-1255); the pick returns on it at :1329 and the opening-fill effect at :1361. The warning is unchanged (:80-81, :1256-1261).
  • Fix now reads "stamp the field through withLookupAutofillTargets(field, objectFields) before handing it to the widget, passing the object's field map as the record form does." True. The signature is (def, fields, labels?) (lookupAutofill.ts:415-419), and the record form calls it with the object's field map (recordFormStamp.ts:64).
  • "With no map the stamp names no target, so the pick copies without the cross-currency rule, which is the copy this change stops." True. With fields absent every pair is skipped and the frozen empty map is still issued (lookupAutofill.ts:422-432); an empty stamp gives currencyTargets undefined (LookupField.tsx:1277), currencyFor then returns no context (:1296), and judgeCopy withholds nothing without one. The sentence says "the pick"; the opening fill goes through the same currencyFor, so it is the same there. Not a finding.
  • The second arm ("Or declare lookupAutofill on the object field and draw the object's record form") is the prior arm, unmoved.

Both things N5 named are now said: the opening fill, and the field map the stamp needs with what happens without one. The PR body's "Breaking" section carries the same three lines.

Whether the delta moved anything further:

  • Accept sets, published types, exports, api-surface baselines, behaviour: none. The delta's only authored hunk is prose in the changeset.
  • The other banner (readLookupAutofillTargets), the front matter and the ADR-0087 marker are byte-unchanged.

② Semver level

Unchanged and still right: '@object-ui/fields': patch, Clause-②: no (narrowing), Metadata-protocol: none, present line-initial in the changeset and the PR body. Exactly one ADR-0087 marker, not-required (no-migration-prescription), with the reason the prior record read.

③ Boundary flags

  • Fence of the claim: held. No file outside the changeset is authored by the delta.
  • The 维护者速读 asks for the maintainer's approval: 「要你做什么:批准合并(本次声明为收窄改动,需维护者批准)」. That is what a declared narrowing owes.
  • K at this head is 4 (first-parent commits on origin/main 893eac8b past the merge base 753aae6d). None of the four touches a file of the PR.
  • Check-runs at this head when read: 10 success, 15 skipped, 18 in progress, 0 failed. The head is not green yet; that is L1's to wait on.
  • The PR body's "Local readings", "Ablations" and "CI" lines are dated to 47d5f695. No executable line has moved since, so they describe the same code; whether they need re-running after the merge is L1's to judge.

④ Design judgment

The design is the one the first record judged; no line of it moved in this delta.

No must-fix, no should-fix.

Implemented-by: claude/issue-36923-standalone-form-lookupautofill-refused
Reviewed-by: fresh subagent of session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Final head for hand-off (round 3) · area a4-U · 2026-11-25T03:30Z
Head-sha: 8ecc178efad9285bf94a0d91f43fd1e57b8a1444

  • N5 (from ACCEPT 7150803613), one changeset commit 40fab472:
    • The LookupField BREAKING banner's FROM and TO now name the opening fill of a create form beside the pick.
    • Its first Fix arm says to pass the object's field map to withLookupAutofillTargets(field, objectFields), and what happens without it.
    • The delta contract review 7151704341 reads every sentence true to the code.
  • Merge of origin/main (28 commits), clean. The PR's seven code files hold the same blobs as at 47d5f695.
  • PR body: the 维护者速读 「要你做什么」 line now asks the maintainer to approve the merge, as a declared narrowing. The body's Breaking lines mirror N5. Read-back identical; the signed trailer is last.
  • Readings at this head, from the dev:
    • the seven @objectstack builds exit 0;
    • spec check:generated exit 0;
    • type-check for fields, plugin-form, plugin-grid and schema-catalog: 72/72;
    • plugin-grid plus the two lookup-autofill suites: 2819 tests passed;
    • the ADR-0087, empty-changeset and no-major changeset gates exit 0;
    • overlap-check clean.
  • Dogfood battery: report 7150529599 at 47d5f695 (4128 passed, 0 failed). It was not re-run for this round, which is a changeset-only commit plus a base merge. The packages the battery covers took no change from this PR.
  • Check-runs at this head: 46 success, 15 skipped, 0 failed or pending.
  • Handed to the seat session to read the delta and hand off to the maintainer. A declared narrowing: this zone does not ready, queue or land it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 8ecc178efad9285bf94a0d91f43fd1e57b8a1444 · 2026-11-25T03:32Z

This is the delta L1 for card #36923 over the seat's ACCEPT 7150803613 at 47d5f695. Zone a4-U requested it in 7151990501. The delta contract review at this head is 7151704341 (CONTRACT_REVIEW_TIER): PASS, N5 closed, no open item.

  • Delta shape.
    • Commit 40fab47240b changes only .changeset/36923-standalone-form-lookupautofill-refused.md (+3 −3).
    • Merge 8ecc178e brings in origin/main. Its tree equals git merge-tree --write-tree 40fab472 753aae6d, so it is a clean auto-merge.
    • The other 7 files hold the same blobs as at 47d5f695, and main touched none of the PR's 8 files.
  • N5: closed.
    • The BREAKING banner now names both the pick and a create form's opening fill.
    • Its Fix arm says to pass the object's field map, and says that without one the copy skips the cross-currency rule.
    • Each sentence matches lookupAutofill.ts and LookupField.tsx at this head.
  • 维护者速读: corrected. 「要你做什么」 now asks for approval, because this is a declared narrowing.
  • Gates. Check-runs at this head: 46 success, 15 expected skip, 0 failed, 0 pending. mergeable clean.
    • The dogfood report 7150529599 is pinned at 47d5f695. Since then only the changeset text and a clean base merge have changed, so its reading stands.
  • Landing. K = 4. This is a declared narrowing (Clause-②: no (narrowing)), so it goes to the maintainer for an authorized approval, and the seat lands it after that approval.

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:在独立表单(不属于某个对象的记录表单)里,查找字段上手写的「自动带值」不再执行,选中记录或新建时预填,其它字段都保持不变。记录表单和明细行表格照旧带值,币种保护不变。
  • 为什么做:独立表单上的自动带值没有币种保护,可能把一种货币的金额悄悄填进另一种货币的字段。按你在 Standalone form: a lookupAutofill field still copies an amount across currencies (the guard from #36918 applies only on record forms) #36923 的裁决,改为不执行。
  • 出错会怎样:如果判断错了,受影响的是记录表单里的自动带值,测试已钉住它仍然生效。改动只在界面层,撤回本次合并即可恢复。自己在页面里直接用查找字段的开发者,升级后要按发版说明加一步,否则不再自动带值。
  • 要你做什么:批准合并。这是声明的收窄改动(448 行),按规则需要你批准。契约审核复审 PASS:记录 7151704341,Head-sha 8ecc178efad9285bf94a0d91f43fd1e57b8a1444。席位核对 ACCEPT 在上方。0 个失败检查。

Hand-off · 2026-11-25T03:33Z · @os-zhuang — PR #37090 (card #36923) is ready for your approval. It is a declared narrowing (Clause-②: no (narrowing)) of the published lookup autofill path on standalone forms. Seat ACCEPT is above at this head. The contract review PASS is 7151704341, Head-sha 8ecc178efad9285bf94a0d91f43fd1e57b8a1444. 0 failed check-runs. After your approval the seat lands it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 25, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 25, 2026 03:34
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 15d2766 Nov 25, 2026
67 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-36923-standalone-form-lookupautofill-refused branch November 25, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standalone form: a lookupAutofill field still copies an amount across currencies (the guard from #36918 applies only on record forms)

3 participants