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
Related-tab New, two dependsOn levels deep: the form's dependent-lookup clear wipes the seeded parent pair, so the child saves unlinked #37289
Found by the seat L1 on PR #37283 (#37246), 7162744164, S2(a). This is #37246's symptom one dependsOn level up. Main shows it too: #37283 does not cause it, and does not fix it.
First touch 2026-11-25T13:33Z. Bug, confirmed as filed: area:ux · domain:ui · p2 · S–M, pm:blocked on #37246 (PR #37283). It has no parent topic, so it goes to repo:objectstack#6 on unlock. Line form below, so the unlock scan reads it.
Claim: PM loop round 3 · 2026-11-25T16:36Z
Session: session_012MmDsSBHy5paNUz6zke9Re
Account: os-lizheng
Branch: claude/issue-37289-depth2-dependson-seed-clear
Worktree: objectstack-issue-37289
Domain: domain:ui
Seat: repo:objectstack#6
File surface: ui/packages/components/src/renderers/form/form.tsx (the dependent-lookup clear keyed on dependentLookupsKey, ~3269–3300, and the opening autofill it reacts to), a pin in a new file under ui/packages/components/src/renderers/form/__tests__/ named after the card, one patch changeset (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default tier — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: platform code in objectstack (form.tsx's dependent-lookup clear reads the opening lookupAutofill write as a user edit and clears the seeded relationship pair) | PR #37283 seeds the dependsOn pair on the related-tab New, but only one level deep | every user pressing New on a related tab whose child relationship lookup is two dependsOn levels deep; the child saves unlinked, silently
Thread-read: 7167123244
Premise: holds by the card's probe at #37283's head 0b356e4 (seat 4's L1 7162744164: seed {order:'o1', account:'a1'} posts order:null, account:null); the clear is still on origin/main 829a45e at form.tsx:3271 (dependentLookupsKey); the dev reproduces it on main before any code
Pre-claim lane: ui/packages/components/** — repo:objectstack lane (domain:ui file ownership); routed to this seat by triage 7167123244
Pre-claim deps: Blocked-by: #37246 closed (PR #37283 merged)
Prior rulings read: related-tab,dependson,levels,deep,form,dependent-lookup,clear,wipes,seeded,parent,pair,child (+2) → 99 hits; ADR-0035 Decision §3, ADR-0035 Decision §4, ADR-0035 Decision §6, ADR-0050 Decision §3, ADR-0155 D1, ADR-0035 Decision §2, ADR-0035 Decision §5, ADR-0071 Decision §1 (term-generic pointers); thread: none
Fold-or-serial: not folded with #37290 (different producer: ObjectDataPage.tsx's "View all" New, not the form's clear; fold gate ① fails); #37290 waits behind PR #37319 (in the merge queue, same file)
Serial constraints cleared: none — no open PR touches ui/packages/components/src/renderers/form/form.tsx (open-PR file census this round)
{
"issue": 37289,
"status": "done",
"branch": "claude/issue-37289-depth2-dependson-seed-clear",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37332",
"session": "session_012MmDsSBHy5paNUz6zke9Re",
"premise_still_valid": true,
"summary": "Reproduced on origin/main 829a45e96 before any code: the pin (seed {order:'o1', account:'a1'}, account dependsOn region + opening fill of region from account) failed with 'expected null to be a1'. A throwaway ObjectForm probe with the real LookupField under the ablation posted order and account absent and region r1, which is the card's reading. Fix in ui/packages/components/src/renderers/form/form.tsx: the onAutofill writer now writes an opening fill (options.opening, objectstack#35050) inside a new window, openingFillInFlightRef. The dependent-lookup clear re-bases and acts on nothing inside that window, the same way it handles the resetInFlightRef reset window. The seam is the existing opening flag, which the form already uses to keep the fill out of the dirty state. The ref carries it into the subscription, in the reset window's shape. Rejected: RHF dirty state, which clears also write and which a revert-to-baseline unsets; and resetInFlightRef, which would also silence the onChange and form_change channels for the fill, a contract question that ref's own comment leaves open. Dispatch conflict, resolved toward AGENTS.md: the order asked for a pin in a new file, but AGENTS.md (ruling record 6583487846) puts a new pin for a component that already has a shared harness file into that file as a top-level describe. The pin is in form-dependent-lookup-clear-11631.test.tsx, the rule's harness, as a new describe, and the probe there gained an opening and pick onAutofill stand-in. No assignee written; Clause-② no, Metadata-protocol none, no export added.",
"tests": "Red leg: pnpm --dir ui exec vitest run packages/components/src/renderers/form/__tests__/form-dependent-lookup-clear-11631.test.tsx at 0a90be94d (unfixed renderer, lock VERDICT command-exit 1), 'x the seeded pair survives the fill the seeded account makes of its region ... expected null to be a1', Tests 1 failed | 17 passed (18). Green: 11631 harness + form-create-only-autofill-32770 + plugin-form ObjectForm.lookupAutofill-28245 at the fix gave 3 files, 51 passed (51). The whole packages/components/src/renderers/form/ directory + 28245 at c6953952b: Test Files 89 passed (89), Tests 658 passed | 17 skipped (675), VERDICT command-exit 0. The 11631 harness at de83bea3f (final head): Tests 18 passed (18), VERDICT command-exit 0. Ablation (the fix commit was committed first) went through scripts/ablation-replace.mjs on the clear's guard line (anchor 1 -> 0, blob 00f6a5df323d -> ed9a1f48f4f3). It gave Tests 1 failed | 18 passed (19); the throwaway real-LookupField probe posted {order:ABSENT, account:ABSENT, region:r1}, against {order:o1, account:a1, region:r1} with the fix. Every control stayed green. Restore: blob after restore 00f6a5df323d equals blob at HEAD, git diff HEAD empty. The probe file was deleted. No dist rebuild leg was needed: the subject is resolved from ui source; the harness imports the renderers relatively.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack, 38 families, ran at c6953952b with exit captured before any pipe. 37 exited 0. check:test-source-alias exited 1 (the edited harness reached a dynamic @object-ui/react-runtime import inside a case clock); de83bea3f adds the prescribed module-top import, and a rerun at de83bea3f exited 0. --ran reconciliation: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. overlap-check: VERDICT clean exit 0 against origin/main dbc1765a2 and 0 PR heads before the final push. NOT MEASURED: pnpm --filter @object-ui/components type-check, reason: PREREQUISITE NOT MET. It reported TS2307 for the unbuilt @object-ui/* workspace declarations (418 errors, 275 of them TS2307), and none falls on a line this diff adds; CI Type Check UI carries it. CI check-runs on #37332: in_progress at report time, not awaited per os-dev.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — git push of claude/issue-37289-depth2-dependson-seed-clear (empty branch probe plus 4 commits), relay pr_create (POST pulls, then POST issues/37332/assignees), relay comment os-dev-report on issue 37289",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Delivered · 2026-11-25T18:35Z · PR #37332 merged; the card closed through Fixes. A create form's opening autofill (options.opening) is now written inside openingFillInFlightRef, so the dependent-lookup clear re-bases instead of acting. A related tab's New two dependsOn levels deep keeps its seeded parent pair, and a user's own edit of the upstream field still clears its dependents (CONTROL pinned in form-dependent-lookup-clear-11631.test.tsx). pm:dispatched removed; nothing remains on this card.
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T13:33Z. Bug, confirmed as filed: area:ux · domain:ui · p2 · S–M,
pm:blockedon #37246 (PR #37283). It has no parent topic, so it goes to repo:objectstack#6 on unlock. Line form below, so the unlock scan reads it.Blocked-by: #37246
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T15:36Z
pm:blocked→pm:queue. Its blocker console: a related tab's New drops the parent it prefills when the child's relationship lookup declares dependsOn, and saves the child unlinked #37246 closed as completed (PR fix(console): a related tab's New keeps the parent it prefills when the child's relationship lookup declares dependsOn #37283 merged).objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#6 · os-lizheng · session_012MmDsSBHy5paNUz6zke9Re
Claim: PM loop round 3 · 2026-11-25T16:36Z
Session:
session_012MmDsSBHy5paNUz6zke9ReAccount:
os-lizhengBranch:
claude/issue-37289-depth2-dependson-seed-clearWorktree:
objectstack-issue-37289Domain:
domain:uiSeat:
repo:objectstack#6File surface:
ui/packages/components/src/renderers/form/form.tsx(the dependent-lookup clear keyed ondependentLookupsKey, ~3269–3300, and the opening autofill it reacts to), a pin in a new file underui/packages/components/src/renderers/form/__tests__/named after the card, onepatchchangeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default tier — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate",effort: highClause-②: no
Metadata-protocol: none
Responsibility:
platform code in objectstack (form.tsx's dependent-lookup clear reads the opening lookupAutofill write as a user edit and clears the seeded relationship pair) | PR #37283 seeds the dependsOn pair on the related-tab New, but only one level deep | every user pressing New on a related tab whose child relationship lookup is two dependsOn levels deep; the child saves unlinked, silentlyThread-read: 7167123244
Premise: holds by the card's probe at #37283's head 0b356e4 (seat 4's L1 7162744164: seed
{order:'o1', account:'a1'}postsorder:null, account:null); the clear is still on origin/main 829a45e atform.tsx:3271(dependentLookupsKey); the dev reproduces it on main before any codePre-claim lane:
ui/packages/components/**— repo:objectstack lane (domain:ui file ownership); routed to this seat by triage 7167123244Pre-claim deps:
Blocked-by: #37246closed (PR #37283 merged)Prior rulings read: related-tab,dependson,levels,deep,form,dependent-lookup,clear,wipes,seeded,parent,pair,child (+2) → 99 hits; ADR-0035 Decision §3, ADR-0035 Decision §4, ADR-0035 Decision §6, ADR-0050 Decision §3, ADR-0155 D1, ADR-0035 Decision §2, ADR-0035 Decision §5, ADR-0071 Decision §1 (term-generic pointers); thread: none
Fold-or-serial: not folded with #37290 (different producer:
ObjectDataPage.tsx's "View all" New, not the form's clear; fold gate ① fails); #37290 waits behind PR #37319 (in the merge queue, same file)Serial constraints cleared: none — no open PR touches
ui/packages/components/src/renderers/form/form.tsx(open-PR file census this round)objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#6 · os-lizheng · session_012MmDsSBHy5paNUz6zke9Re
os-dev-report
{ "issue": 37289, "status": "done", "branch": "claude/issue-37289-depth2-dependson-seed-clear", "pr": "https://github.com/objectstack-ai/objectstack/pull/37332", "session": "session_012MmDsSBHy5paNUz6zke9Re", "premise_still_valid": true, "summary": "Reproduced on origin/main 829a45e96 before any code: the pin (seed {order:'o1', account:'a1'}, account dependsOn region + opening fill of region from account) failed with 'expected null to be a1'. A throwaway ObjectForm probe with the real LookupField under the ablation posted order and account absent and region r1, which is the card's reading. Fix in ui/packages/components/src/renderers/form/form.tsx: the onAutofill writer now writes an opening fill (options.opening, objectstack#35050) inside a new window, openingFillInFlightRef. The dependent-lookup clear re-bases and acts on nothing inside that window, the same way it handles the resetInFlightRef reset window. The seam is the existing opening flag, which the form already uses to keep the fill out of the dirty state. The ref carries it into the subscription, in the reset window's shape. Rejected: RHF dirty state, which clears also write and which a revert-to-baseline unsets; and resetInFlightRef, which would also silence the onChange and form_change channels for the fill, a contract question that ref's own comment leaves open. Dispatch conflict, resolved toward AGENTS.md: the order asked for a pin in a new file, but AGENTS.md (ruling record 6583487846) puts a new pin for a component that already has a shared harness file into that file as a top-level describe. The pin is in form-dependent-lookup-clear-11631.test.tsx, the rule's harness, as a new describe, and the probe there gained an opening and pick onAutofill stand-in. No assignee written; Clause-② no, Metadata-protocol none, no export added.", "tests": "Red leg: pnpm --dir ui exec vitest run packages/components/src/renderers/form/__tests__/form-dependent-lookup-clear-11631.test.tsx at 0a90be94d (unfixed renderer, lock VERDICT command-exit 1), 'x the seeded pair survives the fill the seeded account makes of its region ... expected null to be a1', Tests 1 failed | 17 passed (18). Green: 11631 harness + form-create-only-autofill-32770 + plugin-form ObjectForm.lookupAutofill-28245 at the fix gave 3 files, 51 passed (51). The whole packages/components/src/renderers/form/ directory + 28245 at c6953952b: Test Files 89 passed (89), Tests 658 passed | 17 skipped (675), VERDICT command-exit 0. The 11631 harness at de83bea3f (final head): Tests 18 passed (18), VERDICT command-exit 0. Ablation (the fix commit was committed first) went through scripts/ablation-replace.mjs on the clear's guard line (anchor 1 -> 0, blob 00f6a5df323d -> ed9a1f48f4f3). It gave Tests 1 failed | 18 passed (19); the throwaway real-LookupField probe posted {order:ABSENT, account:ABSENT, region:r1}, against {order:o1, account:a1, region:r1} with the fix. Every control stayed green. Restore: blob after restore 00f6a5df323d equals blob at HEAD, git diff HEAD empty. The probe file was deleted. No dist rebuild leg was needed: the subject is resolved from ui source; the harness imports the renderers relatively.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack, 38 families, ran at c6953952b with exit captured before any pipe. 37 exited 0. check:test-source-alias exited 1 (the edited harness reached a dynamic @object-ui/react-runtime import inside a case clock); de83bea3f adds the prescribed module-top import, and a rerun at de83bea3f exited 0. --ran reconciliation: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. overlap-check: VERDICT clean exit 0 against origin/main dbc1765a2 and 0 PR heads before the final push. NOT MEASURED: pnpm --filter @object-ui/components type-check, reason: PREREQUISITE NOT MET. It reported TS2307 for the unbuilt @object-ui/* workspace declarations (418 errors, 275 of them TS2307), and none falls on a line this diff adds; CI Type Check UI carries it. CI check-runs on #37332: in_progress at report time, not awaited per os-dev.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push of claude/issue-37289-depth2-dependson-seed-clear (empty branch probe plus 4 commits), relay pr_create (POST pulls, then POST issues/37332/assignees), relay comment os-dev-report on issue 37289", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#6 · os-lizheng · session_012MmDsSBHy5paNUz6zke9Re
Delivered · 2026-11-25T18:35Z · PR #37332 merged; the card closed through
Fixes. A create form's opening autofill (options.opening) is now written insideopeningFillInFlightRef, so the dependent-lookup clear re-bases instead of acting. A related tab's New twodependsOnlevels deep keeps its seeded parent pair, and a user's own edit of the upstream field still clears its dependents (CONTROL pinned inform-dependent-lookup-clear-11631.test.tsx).pm:dispatchedremoved; nothing remains on this card.