Skip to content

Bug: deep-scroll focus test loses row 1310 under load (flows-grid D1/D2) #93

Closed

Description

@DavidVFitzGerald

Summary and impact

There is an intermittent unit-test failure in apps/frontend/src/services/mock/flows-grid.test.tsx, in the test "keeps the same flows in view and focused when processes are removed or added while deep (QA D1, D2)" (about line 253). The issue originally gave the path as features/flows-grid/, which was wrong.

Under load, act(() => at(1310, -1)!.focus()) throws a TypeError because at() returns null. This happens right after the test's own waitFor found [role=rowheader][data-row="1310"]:not([aria-busy]). Because of it, #76 AC4 (the two-suite load gate) cannot pass reliably: 2 of 5 pairs failed at decb56a.

Delivery phase

Phase 1, frontend with mocks (F4 flows grid). The fix is delivered in PR #94 on fix/76-87-unit-headroom, together with #76 and #87.

Steps to reproduce

  1. Check out fix/76-87-unit-headroom (7e4e1c2, code decb56a) or main f5769bb. The race exists on both.
  2. Run two concurrent full npx vitest run processes in the container (the [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 AC4 pairing), or run two concurrent loops of npx vitest run src/services/mock/flows-grid.test.tsx -t 'QA D1, D2' at host load 3.5–4.
  3. Results so far: 2 of 10 suite runs failed at decb56a, and 2 of 50 targeted runs failed with the Intermittent mixed-sign grid row/cell height assertion in frontend CI #87 fix reverted.

Deterministic signal: the Engineer's MutationObserver probe (comment) saw the following in 3 of 3 runs at both SHAs:

  • row 1310's header loads;
  • then a commit unmounts it, with rows 1282–1305 mounted at scrollTop 68,315;
  • then the row comes back.

Expected behavior and authority

  • §6.4 and §9.1: virtualize rows and avoid scroll-jump when rows arrive asynchronously.
  • [Task] F4 — Virtualize comparison rows and columns with sticky alignment #23 QA D1/D2: removing or adding processes while scrolled deep keeps the same flows in view and focused.
  • §9.2: tests are reliable and meaningful, and no knowingly failing critical scenario is allowed.
  • The test focuses row 1310 deterministically and passes regardless of host load.

Actual behavior

at(1310, -1) returns null between the waitFor resolving and the focus call. A transient commit mounts a row window that lies above the viewport.

Lead (unproven; the PM inferred it from the code and probe numbers):

  1. In ComparisonGrid.tsx, a microtask runs after the layout effect. It calls resizeItem with the taller summary heights for the rows above, then calls pin().
  2. pin() calls element.scrollTo by the anchor's delta: 68,315 − 67,620 = 695 px.
  3. The virtualizer's cached scroll offset only updates when the scroll event arrives. The jsdom stub in flows-grid-harness.ts dispatches that event in a setTimeout, mirroring browsers, which dispatch it asynchronously.
  4. Until then, a commit computes the range from the new sizes but the stale offset 67,620. That gives visible rows of about 1288–1299, plus overscan, so 1282–1305 are mounted, all above the real viewport.

Whether a browser can paint that state decides the classification.

Environment and version

Containerised Vitest/jsdom, run through the ./dev workspace. First seen at decb56a; also present at main f5769bb. Peak 1-minute load was about 9.6 during the two-suite runs.

Context and dependencies

Acceptance criteria

  • AC1 Cause. Identify the commit that unmounts row 1310, and its trigger, with evidence: the order of resizeItem, pin/scrollTo, the scroll event and the virtualizer offset/range. Use temporary, uncommitted probes:
    • jsdom: the existing MutationObserver probe, 10 runs.
    • Browser: sample every rAF frame in Chromium and Firefox, at least 300 frames per project. Cover at least 10 deep jumps on the large mock workload while summaries arrive and rows above resize.
    • In each frame, check two things: (a) every row that intersects [scrollTop, scrollTop + clientHeight] in the virtualizer layout is mounted; (b) every loaded row recorded as an anchor that is inside the viewport stays mounted.
    • Record the counts.
  • AC2 Classification.
    • (B) Product defect if any browser frame fails (a) or (b), or if AC1 shows that the grid itself commits a window that misses the viewport through a sequence real browsers also follow (not only an artifact of the jsdom stub). Then fix the product in ComparisonGrid.tsx, useFlowGrid.ts or FlowsGrid.tsx.
    • (A) Test synchronization race only if the browser probe shows 0 failing frames in both projects and AC1 shows the transient state comes only from test or jsdom timing. Then fix the test so it synchronizes on an observable settled state, not on fixed delays.
    • Record the classification and the reasoning.
  • AC3 Regression (B only). Add a deterministic unit test. In every mutation batch after the deep jump, it asserts that the rows intersecting the viewport, and the loaded anchor row, are mounted. Show that it fails before the fix in at least 3 of 3 runs (scratch copy with only the product files restored) and passes in 3 of 3 runs after the fix.
  • AC4 Meaning kept.
    • The D1/D2 test still requires the same assertions: same anchor flow first visible, focused flow in view and focused with tabindex=0, previous comparison shown while busy, column counts, and the re-add phase.
    • No retries, skip/todo, relaxed or removed assertions, or fixed sleeps.
    • No waitFor timeout, test limit or other budget is raised; the D1/D2 waits stay 10000 and the test stays 20000.
    • The harness scrollTo stub keeps its asynchronous scroll dispatch.
    • For (B): [Task] F4 — Virtualize comparison rows and columns with sticky alignment #23 D2–D4 anchoring (pin/record) and Intermittent mixed-sign grid row/cell height assertion in frontend CI #87's one height per row per commit are kept, and no flushSync is added inside a lifecycle method. The anchoring, columns, hold and mixed-sign tests pass unchanged.
  • AC5 Stability. At the final code, the D1/D2 test has 0 failures in 100 runs: two concurrent loops of 50 runs of -t 'QA D1, D2'. The host 1-minute load must be ≥ 3 at the start, and start, peak and end loads are recorded. For (B), the AC1 jsdom probe shows 0 unmount batches in 10 of 10 runs, and the browser probe shows 0 failing frames in both projects.
  • AC6 [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 AC4 re-run (by QA). At the final SHA, run at least 3 two-suite pairs with the [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 method: quiet-host start at 1-minute load ≤ 2.0, and no other suite running. Every pair must pass with 0 failures.
  • AC7 Evidence.
  • AC8 Gates. In the container: npm ci (lockfile unchanged), format:check, lint, typecheck, build and @smoke pass. If any product file changed, full e2e passes in both projects. Hosted quality is green on the PR.
  • AC9 ADR. If the fix deviates from the PRD or specification (for example, changing anchoring or virtualization semantics in §6.4/§9.1), add an ADR under docs/adr/ and update both current documents in the same PR. A fix within the current contracts needs none.

Regression and verification plan

Run everything in containers, in the existing lca-diff-headroom project on port 5221 (QA uses lca-diff-headroom-qa on port 5229). Probes and instrumentation are scratch-only and never committed.

COMPOSE_PROJECT_NAME=lca-diff-headroom FRONTEND_PORT=5221 ./dev up
docker compose -p lca-diff-headroom exec -T workspace bash -lc 'cd apps/frontend && npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typecheck && npm run build'
# AC5: two concurrent loops, load >= 3 (cat /proc/loadavg before, during, after)
docker compose -p lca-diff-headroom exec -T workspace bash -lc 'cd apps/frontend && for i in $(seq 50); do npx vitest run src/services/mock/flows-grid.test.tsx -t "QA D1, D2" || echo FAIL $i; done' &   # x2
# AC3 (B): the new regression test, pre-fix scratch copy vs final, 3x each
# AC6: two `npx vitest run` at once, >= 3 pairs, quiet-host gate (QA)
docker compose -p lca-diff-headroom exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --grep @smoke && npm run test:e2e'

Out of scope and follow-ups

Activity

  1. added
    bug
    on Nov 16, 2026
  2. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator state: draft. Found during the #76/#87 AC4 concurrent pair at decb56a. The #76/#87 Engineer is checking deterministically whether that PR caused this. If it did, the fix lands in that PR. Otherwise this issue goes to PM grooming once #76/#87 merges.

    🤖 Generated with Claude Code

  3. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering (from #76/#87, branch fix/76-87-unit-headroom): a deterministic probe shows this race already exists on main. It was not introduced by the #76/#87 PR.

    Observed failure. It happened once, in one of the two concurrent AC4 suites at decb56a, start load 1.79, peak 9.6. flows-grid.test.tsx:253 threw act(() => at(1310, -1)!.focus()): TypeError, at() returned null. That was right after the test's waitFor had found [role="rowheader"][data-row="1310"]:not([aria-busy]). It has failed once in about 30 full-suite runs in that session. The next pair at decb56a passed 411 + 411.

    Probe. A temporary probe, not committed. It runs the D1/D2 setup: render(30), selectAll, scrollTo(1300 × 52 + 20), then the same waitFor. A MutationObserver records every batch in which row 1310's header is unmounted after it has been seen loaded, and whether waitFor had resolved yet. 3 runs per SHA, quiet host.

    SHA Row 1310 unmounted after loading When Mounted rows then Mutation batches in that state per run
    af5317d (base) 3 of 3 runs before waitFor resolved 1282–1305 (scrollTop 68,315) 1, 1, 1
    decb56a (PR) 3 of 3 runs before waitFor resolved 1282–1305 (scrollTop 68,315) 1, 2, 2

    Reading.

    Ruled out. My earlier lead was that the rows-1300+ summaries land in the gap. A forced-gap probe (wait 500 ms after waitFor, then look up row 1310) found the summaries already in at that point and row 1310 still mounted at both SHAs. So that lead is not the cause.

    Not determined. Why the window briefly shifts to 1282–1305, for example an intermediate scroll offset or measurement during paging. That is for #93's investigation.

    🤖 Generated with Claude Code

  4. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator state: grooming.

    🤖 Generated with Claude Code

  5. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: READY (delivered in PR #94 with #76 and #87)

    Decisions

    1. Classify before fixing (AC1, AC2).

      • (B) Product defect if any rAF frame in Chromium or Firefox (at least 300 per project, at least 10 deep jumps while summaries arrive) unmounts a row that intersects the viewport, or a loaded anchor row inside it. It is also (B) if the cause is a sequence that real browsers follow too. Fix it in ComparisonGrid.tsx, useFlowGrid.ts or FlowsGrid.tsx, and add a deterministic regression test (AC3) that fails before the fix in 3 of 3 runs.
      • (A) Test synchronization race only with 0 failing frames in both projects and evidence that the transient state comes only from test or jsdom timing. Fix the test's synchronization on an observable settled state. It must still require the same flows in view and focused.
    2. Lead, unproven. The commit computes the window from the new heights but a stale scroll offset:

      • The resize microtask runs resizeItem and then pin(), and pin() calls scrollTo by +695 px.
      • The virtualizer's offset updates only on the scroll event, which the stub dispatches asynchronously.
      • So visible rows of about 1288–1299, plus overscan, giving 1282–1305, are mounted above scrollTop 68,315.
      • The probes decide; this lead does not.
    3. Not allowed:

      • retries, skip/todo, fixed sleeps, or relaxed or removed assertions;
      • raising any waitFor timeout, test limit or budget (D1/D2 stays 10000/20000);
      • making the harness scrollTo stub's scroll dispatch synchronous;
      • flushSync inside a lifecycle method.

      [Task] F4 — Virtualize comparison rows and columns with sticky alignment #23 D2–D4 anchoring and Intermittent mixed-sign grid row/cell height assertion in frontend CI #87's one height per commit must be kept.

    4. Stability (AC5): the D1/D2 test has 0 failures in 100 runs, from two concurrent loops of 50 runs each, with 1-minute load ≥ 3 and the loads recorded. For (B), the jsdom and browser probes also show 0 failing batches or frames after the fix. This replaces the draft "50 isolated runs" criterion.

    5. [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 AC4 re-run by QA (AC6):

    6. Evidence (AC7):

    7. Gates (AC8): npm ci, format:check, lint, typecheck, build and @smoke pass. If a product file changed, full e2e passes in both projects. Hosted quality is green.

    8. ADR (AC9): if the root cause is a product defect whose fix deviates from §6.4/§9.1 or the PRD (for example, changed anchoring or virtualization semantics), an ADR is required, with both current documents updated in the same PR. A fix within the current contracts needs none.

    9. Bound: if the fix needs anchoring redesign beyond the three grid files, or cannot keep [Task] F4 — Virtualize comparison rows and columns with sticky alignment #23 D2–D4 and Intermittent mixed-sign grid row/cell height assertion in frontend CI #87, the Engineer stops and reports BLOCKED for re-grooming.

    Hand-off: Software Engineer on PR #94, then QA at the final SHA for #93 AC1–AC9 and the #76 AC4 re-run.

    🤖 Generated with Claude Code

  6. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA

    AC Status Evidence
    AC1 Cause done Trace order: resize (100 summary heights) → pin scrollTo +695 (67,620 → 68,315) → render with virtualizer offset still 67,620, mounting rows 1282–1305 above the view → row 1310 unmounted → scroll event (offset 68,315) → the window comes back. jsdom showed this in 10 of 10 runs (1–2 batches each). Browser, 3 runs per project, 480 rAF frames per run over 12 deep jumps: 0 failing frames for (a) and (b) in both projects; failing commits (a) were Chromium 1, 0, 1 and Firefox 0, 1, 0, each right after resize > pin > render.
    AC2 Classification B, product defect Both browsers committed the window that misses the viewport through the same sequence: scrollTo, then a render before the asynchronous scroll event. This is not only a jsdom-stub artifact.
    AC3 Regression done New test flows-grid.test.tsx › "keeps the rows in view mounted in every commit while rows above resize after a deep jump (#93)". Scratch copy with only ComparisonGrid.tsx from decb56a: 3 of 3 failed (top 68315: covered to 68607). With the fix: 3 of 3 passed.
    AC4 Meaning kept done D1/D2 test unchanged: same assertions, waits 10000, limit 20000. The harness scrollTo still dispatches its scroll event in a setTimeout. record, the pins and pin's delta are unchanged, and so is #87. No flushSync in a lifecycle method; the suite logs the same 125 pre-existing warnings from the same 5 non-grid files as before the fix. The anchoring, columns, hold and mixed-sign tests are unchanged and pass.
    AC5 Stability done Two concurrent loops of 50 runs: 100 of 100 passed. 1-min load: 3.02 at start, 4.08 at peak, 3.42 at end. After the fix: jsdom probe 0 of 10 runs; browser probe 0 failing frames and 0 failing batches, 3 runs per project.
    AC6 #76 AC4 (QA) my pre-run 4 of 4 pairs passed (412 + 412), with start loads 0.49, 1.87, 1.77 and 1.73, peaks 7.4–8.8, and no attempt aborted or failed. Highest: QA D4 34.9 %, harness settled 36.2 %, anchoring :183 66.4 %. Nothing above 90 %. In pair 1 my timing setup missed per-test durations; its waits were recorded. #76 AC3 at 9374bde: 3 quiet runs, 0 failures, highest 29.3 % / 31.9 % / 31.2 %.
    AC7 Evidence done #93 section added. The residual risk now records :183 at 92.3 % (QA pair 3 B, decb56a), my wrong "nothing above 90 %" is corrected, and the new maxima are listed. The PR body is updated.
    AC8 Gates done In the container: npm ci (lockfile unchanged), format:check, lint, typecheck, build; @smoke 14 passed; full e2e in both projects 68 passed. Hosted runs at 41de025 are green: Frontend 43801419338 (quality), Backend 43801419363, ETL 43801419357.
    AC9 ADR not needed The change stays within the §6.4/§9.1 contracts and removes a transient wrong window.

    The fix (ComparisonGrid.tsx only)

    After pin() scrolls:

    • it updates the pins;
    • it sets rowWindow.scrollOffset = element.scrollTop;
    • it re-renders before paint: flushSync from the resize microtask, where resizeItem already notifies synchronously, and a normal update from the layout effect.

    Two drafts failed the browser probe, so the final order matters:

    • A non-synchronous render. The scroll event becomes a no-op for the virtualizer, so 7–8 frames per run were painted with gaps.
    • Rendering before the pins were updated. The nested pin moved the view twice, giving 5–6 frames failing (b).

    Notes for QA

    • The probes were temporary and are removed. The doc lists their method and commands.
    • Compose lca-diff-headroom is down.

    Next: QA, at 41de025, for #93 AC1–AC9 and the #76 AC4 re-run (AC6).

    🤖 Generated with Claude Code

  7. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator state: QA. The Engineer handed off 41de025 (code 9374bde). Independent QA covers #93 AC1–AC9 and the #76 AC4 recheck.

    🤖 Generated with Claude Code

  8. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: PASS

    All nine criteria (AC1–AC9) pass at the delivered SHA. The fix is correct, and the #76 two-suite re-run (AC6) passed 3 of 3 pairs.

    What I tested

    • SHA. 41de0256cf3b61b7198994d2538bac892fd3f04c, PR Fix: unit-suite headroom and mixed-sign row height race (#76, #87) #94, branch fix/76-87-unit-headroom. The code is at 9374bde; b802777 and 41de025 change docs only.
    • Mode. Mock only.
    • Environment. Rootless workspace container, Compose project lca-diff-headroom-qa, port 5229. The worktree was detached and clean at the start and at the end.
    • Scratch copies. All uncommitted, inside the container:
      • /root/qa/inst — the delivered apps/frontend (diff -rq empty) plus the QA timing setup;
      • /root/qa/p93 — the delivered tree with only ComparisonGrid.tsx from 7e4e1c2;
      • /root/qa/p87 — the delivered tree with only FlowsGrid.tsx from main;
      • /root/qa/old — 7e4e1c2.

    Criteria

    AC Verdict Evidence
    AC1 Cause PASS The doc traces the sequence resize → pin scrollTo +695 → render at virtualizer offset 67,620 (rows 1282–1305) → scroll event. That matches the code: the virtualizer offset updates only from the scroll event, which the stub dispatches asynchronously. The engineer's browser method covers ≥ 300 frames and ≥ 10 jumps, plus mutation batches. My own probe confirmed it (AC2 row).
    AC2 Classification B PASS See the probe table below. The pre-fix commits that miss the viewport occur in a real browser, so the issue's rule makes this a product defect.
    AC3 Regression PASS Test: "keeps the rows in view mounted in every commit… (#93)". Pre-fix copy (p93): failed 3 of 3 (top 68315: covered to 68607). Delivered code: passed 3 of 3.
    AC4 Meaning kept PASS Detail below.
    AC5 Stability PASS Two concurrent loops of 50 runs of -t 'QA D1, D2' at the delivered code: 100 of 100 passed. Every log reads 1 passed; the loops took 367 s. 1-min load: 8.32 at start (just after AC6 pair 3, so the requirement of ≥ 3 is met), 8.32 at peak, 3.28 at end. The browser probe after the fix found 0 failing frames and 0 failing batches. I did not re-run the jsdom probe; the browser probe and the AC3 test cover the same condition.
    AC6 #76 AC4 re-run PASS 3 of 3 pairs passed; detail below and on #76.
    AC7 Evidence PASS Detail below.
    AC8 Gates PASS In the container at 41de025: npm ci (lockfile unchanged), format:check, lint, typecheck, build; @smoke 14 passed; full e2e in both projects 68 passed (3.0 min). Hosted at 41de025: Frontend quality 43801419338, Backend 43801419363 and ETL 43801419357 are green.
    AC9 ADR PASS (none needed) The change keeps virtualization and anchoring semantics and only removes a transient wrong window. It stays within §6.4/§9.1.

    AC2: my browser probe. I wrote a temporary spec, e2e/qa-probe93.spec.ts, used only in the scratch copies. It ran the large scenario at 1440 × 900 and made 12 deep jumps between scrollTop 15,000 and 101,000, with at least 40 rAF frames after each. In every frame and every MutationObserver batch, it checked that the mounted rows cover [scrollTop, scrollTop + clientHeight] in the grid's own layout. Each configuration ran 3 times per project with --repeat-each=3.

    Code Project Frames Frames failing Mutation batches failing
    pre-fix (p93) Chromium 1,600 0 0 of 147
    pre-fix Firefox 1,609 0 2 of 148: top 60657: covered to 60845 of 61190, top 84693: covered to 84965 of 85226
    delivered Chromium 1,605 0 0 of 141
    delivered Firefox 1,603 0 0 of 141

    The engineer found the same: committed but never painted, in both browsers in their runs.

    AC4: meaning kept.

    • D1/D2 test unchanged. The diff from 7e4e1c2 to 9374bde only adds the new test above it. The D1/D2 waits stay 10000 and the limit 20000.
    • Harness unchanged. flows-grid-harness.ts and its async scrollTo dispatch are not in the diff.
    • Nothing weakened. No retries, skips, sleeps or raised budgets.
    • Anchoring ([Task] F4 — Virtualize comparison rows and columns with sticky alignment #23 D2–D4) kept. record, the pins and pin's delta are unchanged. The only additions are the moved flag, the offset hand-off and the re-render. The anchoring, columns, hold and mixed-sign files are not in the diff and pass in every full run.
    • Intermittent mixed-sign grid row/cell height assertion in frontend CI #87 kept. Its regression test still fails 3 of 3 with FlowsGrid.tsx from main (row 295: 53px in 52px, 96 entries) and passes 3 of 3 at the delivered code.
    • Warnings unchanged. I compared full runs at 7e4e1c2 and 41de025. Both log exactly 125 "flushSync was called from inside a lifecycle method" warnings, from the same five files: bulk-selection, flows-composition, process-search, process-tree and selection.test.tsx. Neither run has any stderr from a flows-grid file, and no warning mentions ComparisonGrid. Per-file counts differ slightly because parallel stderr interleaves, but the files and the total are the same.

    flushSync review.

    • Microtask path. flushSync(refreshWindow) runs only from the queueMicrotask callback queued in the resize useLayoutEffect. A microtask runs only once the synchronous call stack is empty, and React's render and commit phases are synchronous frames. So the callback cannot run inside render or commit, and React's executionContext is not Render or Commit at that point. That holds even when React itself flushes sync work from a microtask, because microtasks never nest.
    • Concurrent renders. If a concurrent render has yielded and is paused, flushSync flushes the sync lane. That is allowed and produces no lifecycle warning.
    • Layout-effect path. The every-commit pin() passes outsideCommit = false and uses a plain refreshWindow(). React processes an update from a layout effect synchronously before paint, so no flushSync runs there.
    • No re-scroll loop. Pins are updated before the render, so the next pin() computes a zero delta.
    • This matches the existing pattern: resizeItem was already moved into this microtask because the virtualizer notifies synchronously.

    AC6: #76 AC4 re-run at the delivered code

    Each pair ran two concurrent instrumented npx vitest run processes and had to pass the quiet-host gate first. There were 3 attempts, none aborted, none failed.

    Pair Start load 1-min peak A B Wall Highest share (A / B): ≥ 20 s test, ≥ 5 s budget, flows-grid 1 s wait
    1 1.57 9.57 412 passed 412 passed 73 / 73 s 35.0 / 34.2 %, 35.8 / 35.5 %, 53.3 / 71.0 %
    2 1.95 8.28 412 passed 412 passed 72 / 72 s 35.9 / 35.2 %, 36.2 / 35.8 %, 64.2 / 65.8 %
    3 1.89 9.05 412 passed 412 passed 72 / 71 s 35.7 / 34.7 %, 37.0 / 36.5 %, 59.6 / 60.0 %
    • Highest values. QA D4 at 35.9 % of 40 s; harness settledAt at 37.0 % of 15 s; deep-scroll wait at 33.9 % of 10 s; anchoring :183 at 71.0 % of 1 s.
    • Nothing above 90 %. No wait rejected.

    AC7: evidence

    Observations, not blocking

    Commands

    cd /tmp/lca-diff-headroom-qa   # detached at 41de025
    COMPOSE_PROJECT_NAME=lca-diff-headroom-qa FRONTEND_PORT=5229 ./dev up && COMPOSE_PROJECT_NAME=lca-diff-headroom-qa FRONTEND_PORT=5229 ./dev check
    docker compose -p lca-diff-headroom-qa exec -T workspace bash -lc 'cd apps/frontend && npm ci --no-audit --no-fund && npm run format:check && npm run lint && npm run typecheck && npm run build'
    # AC3 / #87, 3x each in /root/qa/p93, /root/qa/p87 and apps/frontend
    npx vitest run src/services/mock/flows-grid.test.tsx -t "keeps the rows in view mounted in every commit"
    npx vitest run src/services/mock/flows-grid.test.tsx -t "sizes mixed-sign rows"
    # AC5: two loops at once in apps/frontend
    for i in $(seq 1 50); do npx vitest run src/services/mock/flows-grid.test.tsx -t 'QA D1, D2'; done
    # browser probe in /root/qa/inst and /root/qa/p93
    npx playwright test e2e/qa-probe93.spec.ts --repeat-each=3
    # AC6: two of these at once in /root/qa/inst, 3 pairs
    npx vitest run --config vitest.qa.config.ts --reporter=dot --reporter=json --outputFile.json=/root/qa/out/<run>.json
    docker compose -p lca-diff-headroom-qa exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --grep @smoke && npm run test:e2e'

    Next: ready for review with PR #94. The coordinator handles closure after an approved merge.

    🤖 Generated with Claude Code

  9. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator state: ready for review.

    🤖 Generated with Claude Code

  10. added 4 commits that reference this issue on Nov 16, 2026
  11. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: closed. PR #94 merged at eea972f after QA PASS and green hosted checks.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions