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
test(console): StudioRoute.metadataArea-28561 and AppContent.aiChatEntryGate-37833 read the route probe before its push effect flushes, and red Test UI shards on PRs that don't touch them #37996
Test UI is a required check. Two route tests in @object-ui/console fail on slow runners on PRs that mount none of their code. Each failure costs the PR a re-run, and when the re-run fails as well, the PR waits for a test fix it has nothing to do with. This is the same pattern as #37972 (an assertion that reads the first render before the state it pins has settled). There is a third case in two days.
L1-c read both on #37970 (comment 7220995813): the DOM already shows the routed target, but the probe's useEffect push has not flushed when the assertion reads the history array.
Acceptance
Both cases wait for the probe's recorded history to reach its final value (waitFor on the array, or the probe records synchronously) before they assert. They do not assert on the first non-empty reading.
Each keeps its teeth. An ablation that makes the route take two hops, or that lands on a pillar, still reds the Studio case. An ablation that changes the next entry still reds the gate case.
No other assertion in either file is loosened. If other route-probe tests in ui/apps/console share the same probe helper and the same race, the PR names them, and it fixes them only if they use the same helper.
Claim: PM loop round 1
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibzFw76iLSc9dKHGdkX
Account: os-tesla
Branch: claude/project-thread-fbs5e3
Worktree: objectstack-issue-37996
Domain: ui
Area: o3-ux (area:ux p1, a seat card thread because the zone's one dev branch is busy)
Seat: repo:objectstack#3
File surface: ui/apps/console/src/components/StudioRoute.metadataArea-28561.test.tsx and ui/packages/app-shell/src/console/__tests__/AppContent.aiChatEntryGate-37833.test.tsx only, test-only, no changeset unless a gate demands one. The other ui tests with a similar push-recording probe are named in the report, not edited. NOT any source file (stop on breach; explain in the report)
Container & model: S (given M care), mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high, reason: the race reaches every probe-reading case in both files, and the fix must keep each case's teeth
Clause-②: no
Metadata-protocol: none
Responsibility: the LocationProbe in each file records synchronously (useLayoutEffect), so a path visible in the DOM is already recorded. No assertion is loosened. Ablations stay red: a two-hop route or a landing on a pillar for the Studio case, and a changed next entry for the gate case.
Thread-read: none
Premise: holds, wider than the card says, on origin/main dc45b1e. Baseline is 46/46 green. With each probe's push delayed 30 ms (a late passive-effect flush), 31 of 46 cases go red, including both the card names, with CI's signature (run 46013899997: expected ['/apps/policy'] to deeply equal ['/apps/policy', …(1)]). The root cause is each file's private LocationProbe, not the two cases.
Serial constraints cleared: none — no open PR touches either file
{
"issue": 37996,
"status": "done",
"branch": "claude/project-thread-fbs5e3",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38000",
"session": "session_01L9qibzFw76iLSc9dKHGdkX",
"premise_still_valid": true,
"summary": "Premise holds, wider than the card: the race is in each file's private LocationProbe (a passive useEffect push), so every case in both files that reads seen / pathnames after a DOM wait is exposed (31 of 46), not only the two named. Both probes now record in useLayoutEffect, which runs in the commit that writes the DOM; no assertion, wait or timeout changed. Diff: 2 test files, +14 / -3, head 556804f8.",
"tests": "Before, on origin/main dc45b1e6: both files 46/46 green; each probe's push delayed 30 ms (setTimeout, a late passive flush) => 31 failed / 15 passed, both named cases included, CI's shape (expected [ '/apps/policy' ] to deeply equal [ '/apps/policy', …(1) ]). After, head 556804f8: `pnpm --dir ui exec vitest run apps/console/src/components/StudioRoute.metadataArea-28561.test.tsx packages/app-shell/src/console/__tests__/AppContent.aiChatEntryGate-37833.test.tsx` 46/46 passed, 8 runs in a row. Ablations through scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty: S1 two hops (StudioAllLegAddress routes via /studio/~all/hop) => Studio file 5 failed / 28 passed, the three Setup-directory rows red at line 188 (expect(seen).toEqual([url, '/apps/setup/component/security/access-directory'])), the two no-Setup rows at line 200; S2 lands on a pillar (a Setup holder sent to the area root) => 3 failed, red at line 185 (findByTestId('setup-directory')); G1 changed next entry (resolveLandingRoute skips the first shown entry) => gate file 6 failed / 7 passed, the card's case red at line 418 (expect(pathnames).toEqual(['/apps/policy', '/apps/policy/crm_case'])), others at 300, 313, 324, 357, 461. No dist ablation leg: both suites import the mutated modules from source.",
"gates": "Local: dispatch-gates --commands, 27 families at 556804f8; 26 exit 0; `pnpm --dir ui exec vitest run scripts/` exit 1 (7 failed / 5131 passed, in check-doc-snippet-types.test.ts and spec-symbol-ledger-plugin-detail-7265.test.ts, neither reads the two changed files); those two files re-run alone after a spec build: 129/129 passed, so read as local shared-state noise while sibling gates ran, not a verdict on this diff. --ran reconciliation: 27 derived, 27 run, 0 NOT-MEASURED, 0 UNRUN. CI on head 556804f8: 56 check-runs, 38 success, 18 skipped, 0 failed (Test UI 1-16/16, Lint & Repo Gates, TypeScript Type Check, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Test Core, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, PR-body guards all success).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "8 — read only: issue_read x2, actions_list x1, get_job_logs x1, pull_request_read x1 (get_check_runs), plus non-GitHub get_session, subscribe_pr_activity, send_later/delete_trigger; no GitHub MCP write",
"api_writes": "2 — relay pr_create (objectstack-ai/objectstack#38000, assignee os-tesla, label skip-changeset, body read back identical, 5316 bytes); this os-dev-report comment via post-stamped",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat repo:objectstack#3 · noted, not filed — the same push-in-passive-useEffect location probe, private to each file, in: ui/packages/app-shell/src/views/ObjectView.listUrlState-11860.test.tsx, ui/packages/app-shell/src/views/ObjectView.ufViewSwitch-11992.test.tsx, ui/packages/app-shell/src/views/ObjectView.listPageInUrl-30850.test.tsx, ui/packages/app-shell/src/layout/__tests__/usePhoneNavDrawerHistory-29131.test.tsx, ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.buildClosedRoutes-36969.test.tsx, ui/apps/console/src/pages/system/ApprovalsInboxPage.lateBulkReload-37548.test.tsx, ui/apps/console/src/pages/system/ApprovalsInboxPage.lateBulkToast-37328.test.tsx. Census = a push within a short useEffect body in a useLocation test, so a longer-bodied probe may be missing. Whether each races (reads the array right after a DOM wait) is NOT MEASURED. Dedupe words: LocationProbe useEffect push, route probe flake, passive effect flush."
]
}
Deviations: the PR body carries no session-URL footer (the relay stored the body as sent, nothing appended); attribution is the claim's Thread session: line and this comment.
Delivered: PR #38000 merged through the queue, merge commit 6b11d137d15dbdbfd12561ea23fd66322a1dc70a (PR head 556804f804d32a0a53e9b651f628134ae735c7a6).
Merged at 2026-11-27T15:46:19Z, as the PR's merged_at reads.
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibzFw76iLSc9dKHGdkXAccount:
os-teslaBranch:
claude/project-thread-fbs5e3Worktree:
objectstack-issue-37996Domain:
uiArea:
o3-ux(area:ux p1, a seat card thread because the zone's one dev branch is busy)Seat:
repo:objectstack#3File surface:
ui/apps/console/src/components/StudioRoute.metadataArea-28561.test.tsxandui/packages/app-shell/src/console/__tests__/AppContent.aiChatEntryGate-37833.test.tsxonly, test-only, no changeset unless a gate demands one. The other ui tests with a similar push-recording probe are named in the report, not edited. NOT any source file (stop on breach; explain in the report)Container & model:
S(given M care),mode:thread,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate",effort: high, reason: the race reaches every probe-reading case in both files, and the fix must keep each case's teethClause-②: no
Metadata-protocol: none
Responsibility: the LocationProbe in each file records synchronously (
useLayoutEffect), so a path visible in the DOM is already recorded. No assertion is loosened. Ablations stay red: a two-hop route or a landing on a pillar for the Studio case, and a changed next entry for the gate case.Thread-read: none
Premise: holds, wider than the card says, on origin/main dc45b1e. Baseline is 46/46 green. With each probe's push delayed 30 ms (a late passive-effect flush), 31 of 46 cases go red, including both the card names, with CI's signature (run 46013899997:
expected ['/apps/policy'] to deeply equal ['/apps/policy', …(1)]). The root cause is each file's private LocationProbe, not the two cases.Serial constraints cleared:
none — no open PR touches either fileobjectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibzFw76iLSc9dKHGdkX
os-dev-report
{ "issue": 37996, "status": "done", "branch": "claude/project-thread-fbs5e3", "pr": "https://github.com/objectstack-ai/objectstack/pull/38000", "session": "session_01L9qibzFw76iLSc9dKHGdkX", "premise_still_valid": true, "summary": "Premise holds, wider than the card: the race is in each file's private LocationProbe (a passive useEffect push), so every case in both files that reads seen / pathnames after a DOM wait is exposed (31 of 46), not only the two named. Both probes now record in useLayoutEffect, which runs in the commit that writes the DOM; no assertion, wait or timeout changed. Diff: 2 test files, +14 / -3, head 556804f8.", "tests": "Before, on origin/main dc45b1e6: both files 46/46 green; each probe's push delayed 30 ms (setTimeout, a late passive flush) => 31 failed / 15 passed, both named cases included, CI's shape (expected [ '/apps/policy' ] to deeply equal [ '/apps/policy', …(1) ]). After, head 556804f8: `pnpm --dir ui exec vitest run apps/console/src/components/StudioRoute.metadataArea-28561.test.tsx packages/app-shell/src/console/__tests__/AppContent.aiChatEntryGate-37833.test.tsx` 46/46 passed, 8 runs in a row. Ablations through scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty: S1 two hops (StudioAllLegAddress routes via /studio/~all/hop) => Studio file 5 failed / 28 passed, the three Setup-directory rows red at line 188 (expect(seen).toEqual([url, '/apps/setup/component/security/access-directory'])), the two no-Setup rows at line 200; S2 lands on a pillar (a Setup holder sent to the area root) => 3 failed, red at line 185 (findByTestId('setup-directory')); G1 changed next entry (resolveLandingRoute skips the first shown entry) => gate file 6 failed / 7 passed, the card's case red at line 418 (expect(pathnames).toEqual(['/apps/policy', '/apps/policy/crm_case'])), others at 300, 313, 324, 357, 461. No dist ablation leg: both suites import the mutated modules from source.", "gates": "Local: dispatch-gates --commands, 27 families at 556804f8; 26 exit 0; `pnpm --dir ui exec vitest run scripts/` exit 1 (7 failed / 5131 passed, in check-doc-snippet-types.test.ts and spec-symbol-ledger-plugin-detail-7265.test.ts, neither reads the two changed files); those two files re-run alone after a spec build: 129/129 passed, so read as local shared-state noise while sibling gates ran, not a verdict on this diff. --ran reconciliation: 27 derived, 27 run, 0 NOT-MEASURED, 0 UNRUN. CI on head 556804f8: 56 check-runs, 38 success, 18 skipped, 0 failed (Test UI 1-16/16, Lint & Repo Gates, TypeScript Type Check, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Test Core, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, PR-body guards all success).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "8 — read only: issue_read x2, actions_list x1, get_job_logs x1, pull_request_read x1 (get_check_runs), plus non-GitHub get_session, subscribe_pr_activity, send_later/delete_trigger; no GitHub MCP write", "api_writes": "2 — relay pr_create (objectstack-ai/objectstack#38000, assignee os-tesla, label skip-changeset, body read back identical, 5316 bytes); this os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat repo:objectstack#3 · noted, not filed — the same push-in-passive-useEffect location probe, private to each file, in: ui/packages/app-shell/src/views/ObjectView.listUrlState-11860.test.tsx, ui/packages/app-shell/src/views/ObjectView.ufViewSwitch-11992.test.tsx, ui/packages/app-shell/src/views/ObjectView.listPageInUrl-30850.test.tsx, ui/packages/app-shell/src/layout/__tests__/usePhoneNavDrawerHistory-29131.test.tsx, ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.buildClosedRoutes-36969.test.tsx, ui/apps/console/src/pages/system/ApprovalsInboxPage.lateBulkReload-37548.test.tsx, ui/apps/console/src/pages/system/ApprovalsInboxPage.lateBulkToast-37328.test.tsx. Census = a push within a short useEffect body in a useLocation test, so a longer-bodied probe may be missing. Whether each races (reads the array right after a DOM wait) is NOT MEASURED. Dedupe words: LocationProbe useEffect push, route probe flake, passive effect flush." ] }Deviations: the PR body carries no session-URL footer (the relay stored the body as sent, nothing appended); attribution is the claim's
Thread session:line and this comment.objectstack-fleet commentedon Nov 27, 2026
repo:objectstack#3 · os-tesla · session_01L9qibzFw76iLSc9dKHGdkX
Delivered: PR #38000 merged through the queue, merge commit
6b11d137d15dbdbfd12561ea23fd66322a1dc70a(PR head556804f804d32a0a53e9b651f628134ae735c7a6).merged_atreads.pm:dispatchedin the same write.domain:ui,area:uxand the priority stay.