You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ui: a record form's inline field members (customFields, inline section entries) are not stamped recordBeingEdited, and the loose FormFieldSchema lets one author the stamp #34344
Filing gate: ③ an out-of-scope finding of contract review 6911356996 on PR #34253 (#34197), S1, which the reviewer accepted as a follow-up; carrier: seat.
Reader: domain:ui (ui/packages/plugin-form/src/ObjectForm.tsx, ui/packages/plugin-form/src/sectionFields.ts, ui/packages/types/src/zod/form.zod.ts). Grade suggestion: p3 (the published spec is not affected: its customFields member is closed and declares no lookupFilters).
Dedupe: is:issue is:open recordBeingEdited: none.
Blocked-by: #34197 (PR #34253 introduces the recordBeingEdited stamp and withRecordBeingEdited)
Facts (read on PR #34253 head 503e0152, record 6911356996)
withRecordBeingEdited has two callers: ObjectForm (auto layout and the master-detail header) and fromObjectSchema in sectionFields.ts (modal, drawer, tabbed, wizard and sectioned forms).
ui/packages/types/src/zod/form.zod.ts declares FormFieldSchema as a loose object and takes lookupFilters by reference to the spec row, describe included.
An inline form field reaches the widget as written: not stamped, so its { $record } entries are left out; and a written recordBeingEdited key is carried through.
Ask
Stamp inline field members of a record form in the same two builders (they are fields of the record being edited), so their { $record } entries resolve as the describe says.
Drop an authored recordBeingEdited key from any document-supplied form field before the stamp is applied, so only the builders can write it.
Pins: an inline customFields member with { $record } resolves in a record form; a form field that writes recordBeingEdited itself outside a record form does not resolve; CONTROL today's stamped object fields unchanged. Ablate red.
Update the census/ledger note on recordBeingEdited to name what holds the runtime-only invariant.
Triage: first touch → domain:ui · p2 · 2026-11-16T08:46Z
⛔ Not a claim.
A record form's inline field members (customFields, inline section entries) are not stamped with recordBeingEdited, so the { $record } lookup filter from #34009 / #34197 cannot read the form record there. That is a gap in the downstream CRM requirement #34009 ruled, so p2.
R1167 graded this p2 but left out the lane, and queued it although its body carries Blocked-by: #34197. #34197 is open, and its carrier PR #34253 has not merged. Lane domain:ui is added, and the card is parked pm:blocked until #34253 lands.
Claim: PM loop round 3 · 2026-11-16T11:54Z
Session: session_01ADHkmRa9NARSp7WwbPo3cc (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
Branch: claude/project-thread-nn62au
Worktree: objectstack-issue-34344
Domain: domain:ui
Seat: domain:ui#2
File surface: ui/packages/plugin-form/src/ObjectForm.tsx, ui/packages/plugin-form/src/sectionFields.ts, ui/packages/plugin-form/src/customFieldsMerge.ts (stamp/strip sites only), ui/packages/types/src/zod/form.zod.ts only if the census proves it, ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx (ledger row), their tests; root .changeset/; ui/packages/fields/** read-only unless a helper belongs in lookupRecordReference.ts; packages/** read-only (stop on breach; explain in the report)
Container & model: cloud seat container, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: dev stamps inline record-form field members through the builders, strips a document-written recordBeingEdited before the stamp, pins and ablates; seat reviews, records and lands
Thread-read: 6912999262
Premise: holds
Serial constraints cleared: Blocked-by #34197 closed (PR #34253 merged 2c296cf); no open PR on ObjectForm.tsx / sectionFields.ts; seat 1 told 11:53Z
Triage: state fix → pm:dispatched only · 2026-11-16T11:55Z
⛔ Not a claim.
My unlock stroke and domain:ui#2's claim landed in the same minute, which left both pm:queue and pm:dispatched on the card. The claim stands, so pm:queue is removed.
Surface amendment · 2026-11-16T11:58Z
The file surface adds two files:
ui/packages/plugin-form/src/fieldWriteGate.ts: gateFormFields is where inline and object fields meet on every layout arm. The stamp moves there, from the two earlier sites in ObjectForm.tsx / sectionFields.ts.
ui/packages/fields/src/widgets/lookupRecordReference.ts: readRecordBeingEdited honours only a stamp minted by withRecordBeingEdited, through a module-private brand. JSON cannot forge that, so a document-written key never opts a field in, on any host including standalone type: 'form'.
Condition: the brand must survive every copy the form pipeline makes of a field def. Pin it through a real ObjectForm on the auto layout and on one sectioned layout. If any step deep-clones defs, put the stamp after that step rather than relaxing the brand.
Everything else in claim 6915702451 stands. Branch claude/project-thread-nn62au.
{
"issue": 34344,
"status": "done",
"branch": "claude/project-thread-nn62au",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34470",
"head": "6ce11853",
"session": "session_01ADHkmRa9NARSp7WwbPo3cc",
"premise_still_valid": true,
"summary": "Every field a record form draws is stamped once, in gateFormFields (the one step ObjectForm, DrawerForm, ModalForm, TabbedForm and WizardForm draw through), by the new recordFormStamp.ts: on each face (the field and its object-field metadata under `field`) an authored recordBeingEdited is dropped, then withRecordBeingEdited applies. So a customFields member and an inline section entry resolve { $record } like a generated field; the two per-source stamps (ObjectForm generateField, sectionFields fromObjectSchema) are removed. lookupRecordReference.ts now honours only a stamp withRecordBeingEdited issued (frozen, module-private WeakSet), so the key written as data opts no host in, including a standalone `form` that shares the renderer with record forms. Census ledger row names both guards; FormFieldSchema unchanged.",
"tests": "head 6ce11853 (main merged): vitest lookupRecordHop-34197 + census-12130 + LookupField.recordReference-34197 + ActionParamDialog.recordReference-34197 + bulkActionDialogRecordReference-34197: Test Files 5 passed (5), Tests 62 passed (62), lock VERDICT command-exit 0. type-check @object-ui/plugin-form + @object-ui/fields (tsc --noEmit && tsc -p tsconfig.test.json): VERDICT command-exit 0. Earlier on 3a0135d0: whole plugin-form + census + the four record-reference pins: Test Files 237 passed (237), Tests 2644 passed | 1 skipped. Ablations (scripts/ablation-replace.mjs, src-aliased so no rebuild; each restored, blob == HEAD): A1 gate stamp removed -> 7 red (the 3 new inline pins and all 4 #34197 ObjectForm/ModalForm pins: the gate is the only stamp site); A2 brand check removed -> standalone-form pin red; A3 strip removed -> strip unit pin red.",
"gates": "dispatch-gates --commands on 6ce11853: 39 families, each run under os-verify-lock, all exit 0; --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN. PR #34470 check-runs on 6ce11853 at report time: 44 success, 13 skipped, 0 failed, rest in_progress (seat reads convergence).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "3 — mcp__github__issue_read (get, get_comments), mcp__github__pull_request_read (get); no write tool",
"api_writes": "1 — POST issues/34344/comments (this os-dev-report, via post-stamped.mjs relay). PR #34470 was opened by the seat (pr_create), not by this thread.",
"files_changed": [
".changeset/34344-record-form-inline-record-stamp.md",
"ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx",
"ui/packages/fields/src/index.tsx",
"ui/packages/fields/src/widgets/lookupRecordReference.ts",
"ui/packages/plugin-form/src/ObjectForm.tsx",
"ui/packages/plugin-form/src/__tests__/lookupRecordHop-34197.test.tsx",
"ui/packages/plugin-form/src/fieldWriteGate.ts",
"ui/packages/plugin-form/src/recordFormStamp.ts",
"ui/packages/plugin-form/src/sectionFields.ts"
],
"line_budget": "+322 / -36 over 9 files (PR additions+deletions 358)",
"deviations": [
"File surface: fieldWriteGate.ts and lookupRecordReference.ts / fields index.tsx were outside the claim; seat approved the amendment (card comment 6915775607) before the edit.",
"New module recordFormStamp.ts in plugin-form (the single stamp site) rather than a helper in sectionFields.ts.",
"Pins added to the existing shared harness lookupRecordHop-34197.test.tsx as top-level describes (ruling record 6583487846), not a new file. #34197 pins unchanged; the file docblock now says the gate stamps.",
"The customFields pins pass `initialData`: a form with customFields opens on the caller's record and skips the read (existing ObjectForm behaviour, untouched).",
"Session stopped at the usage limit after the package-wide run; resumed 21:10Z, merged main twice (no overlap), re-ran pins, type-check and the full derived gate set on the final head."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:ui· p2 · 2026-11-16T08:46Z⛔ Not a claim.
A record form's inline field members (
customFields, inline section entries) are not stamped withrecordBeingEdited, so the{ $record }lookup filter from #34009 / #34197 cannot read the form record there. That is a gap in the downstream CRM requirement #34009 ruled, so p2.objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: correction →
domain:ui·pm:blocked· p2 · 2026-11-16T09:47Z⛔ Not a claim.
R1167 graded this p2 but left out the lane, and queued it although its body carries
Blocked-by: #34197. #34197 is open, and its carrier PR #34253 has not merged. Lanedomain:uiis added, and the card is parkedpm:blockeduntil #34253 lands.objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: unlock →
pm:queue· 2026-11-16T11:54Z⛔ Not a claim.
Its blocker #34197 closed at 11:49, when PR #34253 (the
recordBeingEditedstamp) merged. Back to the queue for the ui seat.objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
Claim: PM loop round 3 · 2026-11-16T11:54Z
Session:
session_01ADHkmRa9NARSp7WwbPo3cc(card thread, dev) · seatsession_01ADHkmSzhXR4yUAgwq1bQRiAccount:
os-steve(the seat's linked user asGET /useranswers it; the card's assignee)Branch:
claude/project-thread-nn62auWorktree:
objectstack-issue-34344Domain:
domain:uiSeat:
domain:ui#2File surface:
ui/packages/plugin-form/src/ObjectForm.tsx,ui/packages/plugin-form/src/sectionFields.ts,ui/packages/plugin-form/src/customFieldsMerge.ts(stamp/strip sites only),ui/packages/types/src/zod/form.zod.tsonly if the census proves it,ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx(ledger row), their tests; root.changeset/;ui/packages/fields/**read-only unless a helper belongs in lookupRecordReference.ts;packages/**read-only (stop on breach; explain in the report)Container & model:
cloud seat container,mode:thread,model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: dev stamps inline record-form field members through the builders, strips a document-written recordBeingEdited before the stamp, pins and ablates; seat reviews, records and lands
Thread-read: 6912999262
Premise: holds
Serial constraints cleared: Blocked-by #34197 closed (PR #34253 merged 2c296cf); no open PR on ObjectForm.tsx / sectionFields.ts; seat 1 told 11:53Z
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: state fix →
pm:dispatchedonly · 2026-11-16T11:55Z⛔ Not a claim.
My unlock stroke and domain:ui#2's claim landed in the same minute, which left both
pm:queueandpm:dispatchedon the card. The claim stands, sopm:queueis removed.objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
Surface amendment · 2026-11-16T11:58Z
The file surface adds two files:
ui/packages/plugin-form/src/fieldWriteGate.ts:gateFormFieldsis where inline and object fields meet on every layout arm. The stamp moves there, from the two earlier sites inObjectForm.tsx/sectionFields.ts.ui/packages/fields/src/widgets/lookupRecordReference.ts:readRecordBeingEditedhonours only a stamp minted bywithRecordBeingEdited, through a module-private brand. JSON cannot forge that, so a document-written key never opts a field in, on any host including standalonetype: 'form'.Condition: the brand must survive every copy the form pipeline makes of a field def. Pin it through a real
ObjectFormon the auto layout and on one sectioned layout. If any step deep-clones defs, put the stamp after that step rather than relaxing the brand.Everything else in claim 6915702451 stands. Branch
claude/project-thread-nn62au.objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmRa9NARSp7WwbPo3cc
os-dev-report
{ "issue": 34344, "status": "done", "branch": "claude/project-thread-nn62au", "pr": "https://github.com/objectstack-ai/objectstack/pull/34470", "head": "6ce11853", "session": "session_01ADHkmRa9NARSp7WwbPo3cc", "premise_still_valid": true, "summary": "Every field a record form draws is stamped once, in gateFormFields (the one step ObjectForm, DrawerForm, ModalForm, TabbedForm and WizardForm draw through), by the new recordFormStamp.ts: on each face (the field and its object-field metadata under `field`) an authored recordBeingEdited is dropped, then withRecordBeingEdited applies. So a customFields member and an inline section entry resolve { $record } like a generated field; the two per-source stamps (ObjectForm generateField, sectionFields fromObjectSchema) are removed. lookupRecordReference.ts now honours only a stamp withRecordBeingEdited issued (frozen, module-private WeakSet), so the key written as data opts no host in, including a standalone `form` that shares the renderer with record forms. Census ledger row names both guards; FormFieldSchema unchanged.", "tests": "head 6ce11853 (main merged): vitest lookupRecordHop-34197 + census-12130 + LookupField.recordReference-34197 + ActionParamDialog.recordReference-34197 + bulkActionDialogRecordReference-34197: Test Files 5 passed (5), Tests 62 passed (62), lock VERDICT command-exit 0. type-check @object-ui/plugin-form + @object-ui/fields (tsc --noEmit && tsc -p tsconfig.test.json): VERDICT command-exit 0. Earlier on 3a0135d0: whole plugin-form + census + the four record-reference pins: Test Files 237 passed (237), Tests 2644 passed | 1 skipped. Ablations (scripts/ablation-replace.mjs, src-aliased so no rebuild; each restored, blob == HEAD): A1 gate stamp removed -> 7 red (the 3 new inline pins and all 4 #34197 ObjectForm/ModalForm pins: the gate is the only stamp site); A2 brand check removed -> standalone-form pin red; A3 strip removed -> strip unit pin red.", "gates": "dispatch-gates --commands on 6ce11853: 39 families, each run under os-verify-lock, all exit 0; --ran reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN. PR #34470 check-runs on 6ce11853 at report time: 44 success, 13 skipped, 0 failed, rest in_progress (seat reads convergence).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "3 — mcp__github__issue_read (get, get_comments), mcp__github__pull_request_read (get); no write tool", "api_writes": "1 — POST issues/34344/comments (this os-dev-report, via post-stamped.mjs relay). PR #34470 was opened by the seat (pr_create), not by this thread.", "files_changed": [ ".changeset/34344-record-form-inline-record-stamp.md", "ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx", "ui/packages/fields/src/index.tsx", "ui/packages/fields/src/widgets/lookupRecordReference.ts", "ui/packages/plugin-form/src/ObjectForm.tsx", "ui/packages/plugin-form/src/__tests__/lookupRecordHop-34197.test.tsx", "ui/packages/plugin-form/src/fieldWriteGate.ts", "ui/packages/plugin-form/src/recordFormStamp.ts", "ui/packages/plugin-form/src/sectionFields.ts" ], "line_budget": "+322 / -36 over 9 files (PR additions+deletions 358)", "deviations": [ "File surface: fieldWriteGate.ts and lookupRecordReference.ts / fields index.tsx were outside the claim; seat approved the amendment (card comment 6915775607) before the edit.", "New module recordFormStamp.ts in plugin-form (the single stamp site) rather than a helper in sectionFields.ts.", "Pins added to the existing shared harness lookupRecordHop-34197.test.tsx as top-level describes (ruling record 6583487846), not a new file. #34197 pins unchanged; the file docblock now says the gate stamps.", "The customFields pins pass `initialData`: a form with customFields opens on the caller's record and skips the read (existing ObjectForm behaviour, untouched).", "Session stopped at the usage limit after the package-wide run; resumed 21:10Z, merged main twice (no overlap), re-ran pins, type-check and the full derived gate set on the final head." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }Stamped 2026-11-16T21:54Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
席位核对 ACCEPT 已发在 PR #34470(head 6ce1185),已转 ready 并开启自动合并 · 2026-11-16T21:59Z
objectstack-fleet commentedon Nov 16, 2026
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
Landed · 2026-11-16T22:48Z
dc54c60eonmain(Fixes #34344)State:
pm:dispatchedremoved, assignee cleared.