Skip to content

[Task] F4 — Verify large Flows comparisons and record the milestone gate #26

Closed

Description

@DavidVFitzGerald

Delivery phase

Phase 1 - frontend with mock services. Milestone F4; task key F4-07.

Goal

Produce reproducible, recorded evidence that the completed Flows milestone (#20–#25, #64, #69) works at representative scale in both supported browser projects, and record the F4 roadmap gate in docs/engineering/f4-verification.md before Scores work (F5) relies on it. This is an evidence and conformance gate, not a feature task.

Context and authority

Read AGENTS.md, docs/product/LCA_diff_PRD.md, docs/engineering/LCA_diff_Implementation_Specification.md, docs/engineering/roadmap.md (§ "F4 — shared comparison grid and Flows", its Gate paragraph), docs/team/software-engineer.md and docs/adr/README.md. Do not read docs/product/archive/, docs/engineering/archive/ or docs/reference/. The governance documents and specification are on main. Any contract or product deviation needs an ADR plus updates to both current documents in the same PR; none is expected.

Specification §§6.3–6.4, 6.6, 9.1–9.3 (§9.2: every PR runs a small critical Playwright smoke suite that includes "core comparison using synthetic fixture"; the full suite across supported desktop browsers runs on request; current Chromium and Firefox are supported).

Existing code and evidence to read:

  • apps/frontend/package.json scripts, apps/frontend/playwright.config.ts (projects chromium and firefox, mock build + preview server), .github/workflows/frontend.yml (@smoke on every PR, full test:e2e on workflow_dispatch), ./dev.
  • Browser specs: apps/frontend/e2e/flows-grid.spec.ts, flows-composition.spec.ts, column-operations.spec.ts, process-headers.spec.ts; gate pattern: f2-gate.spec.ts, f3-gate.spec.ts.
  • Component tests: apps/frontend/src/services/mock/flows-grid.test.tsx, flows-grid-anchoring.test.tsx, flows-grid-columns.test.tsx, comparison-headers.test.tsx, flows-composition.test.tsx, shared large harness flows-grid-harness.ts (exposes render(latency), pageReads, signals and busy reads).
  • Large scenario: apps/frontend/src/app/composition.ts LARGE_SCENARIO (220 processes × 2,000 generated rows), browser URL /?mock-scenario=large.
  • Evidence style: docs/engineering/f3-verification.md.

Files to create/change (planned): docs/engineering/f4-verification.md (new); apps/frontend/e2e/f4-gate.spec.ts (new, small @smoke gate test); one focused component test for header × row removal in an existing small-fixture test file; one hold-measurement test in its own new file using flows-grid-harness.ts (e.g. src/services/mock/flows-grid-hold.test.tsx). Optional: the roadmap F3–F5 status row for F4 only.

Requirements and constraints

  • Bounded evidence task. Product defects found here go to new linked Bug issues (or are returned to the owning closed issue's follow-up), not hidden fixes in this PR. In scope: the evidence document, the small focused tests named in the criteria, and test-only budget changes justified in the evidence.
  • Synthetic fixtures and mock mode only; no API, database, Firebase, cloud credentials or proprietary data. Components keep consuming the typed services layer; tests must not import fixtures into components.
  • Record environment (image/Node/Playwright/browser versions, host core count if available), browser project, selected count, row count, mounted DOM cell/header counts, request/read counts and observation method. No invented timing SLA: timings are recorded observations, not pass thresholds.
  • Test-load care ([Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24/Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69/[Task] F4 — Add shared column drag, keyboard reorder and global removal #25 QA): each large-workload jsdom test adds about 100 MB worker heap, so put any new large test in its own file using flows-grid-harness.ts. Add at most one new large-workload unit test (the hold measurement). Do not add load that makes existing 1 s waitFors time out; do not raise per-test limits without recording the measured reason.
  • Maintainer decisions (2026-11-15, recorded on this issue):
    • O11: measure and record the hold duration when every anchored flow is removed (previously about 18 row pages, about 2.5 s at 100 ms mock latency). Bounding the hold is decided by the maintainer after this measurement; do not change hold behaviour here. Real-API cost belongs to I1/R2.
    • O13: keep current behaviour (at scrollTop 0, adding processes whose rows sort above the view keeps the previously visible flow in view). No task; do not change it.
  • PM decision on [Task] F4 — Add shared column drag, keyboard reorder and global removal #25 O5 (browser coverage and smoke), within §9.2:
    • The gate requires the full Playwright suite to pass in both chromium and firefox projects, including every column-operations.spec.ts case (pointer drag, edge auto-scroll, off-screen keyboard reorder, × removal). These specs are not project-restricted in config; they have so far only been run in Chromium. A Firefox failure is a product/test defect filed as a linked Bug and recorded as FAIL; it is not waived or skipped.
    • §9.2's PR smoke suite currently has no core-comparison case. Add exactly one small @smoke F4 gate test in the default scenario covering the core Flows comparison (see AC2). Large-scenario and edge-auto-scroll tests stay in the full suite, not @smoke, to keep PR smoke small. The final release browser matrix (Safari as practicable, release-candidate runs) remains [Task] F5 — Record full mock-frontend acceptance and the Phase 1 gate #34.

Acceptance criteria

  • AC1 — Small-fixture journey. The default synthetic fixture (signed, zero, absent and warning cells) passes the complete Flows browser journey: selection, vertical/horizontal scroll, sidebar collapse/resize, pointer and keyboard reorder, header × removal and Selected-list removal. Evidence maps each step to existing or new Playwright tests in both projects.
  • AC2 — F4 @smoke gate. apps/frontend/e2e/f4-gate.spec.ts contains one @smoke test (default scenario, mock mode) that signs in, selects at least two processes, asserts exact labels for a signed, a present-zero and an absent cell plus a comparability/cell warning, reorders a column by keyboard, removes a column with its header ×, checks Selected-list parity, and asserts no page/console errors. It passes under npm run test:e2e -- --grep @smoke in both projects.
  • AC3 — Header × drops orphaned rows ([Task] F4 — Add shared column drag, keyboard reorder and global removal #25 O3). A committed component test (small fixture, existing small-fixture test file) removes a process with its header × and asserts that rows whose only contributor was that process disappear, rows still contributed by another selected process remain with their other values unchanged, and the removed process's column is gone. It fails if orphaned rows are kept.
  • AC4 — Large-scale evidence. With at least 200 selected columns and 2,000 rows (?mock-scenario=large / flows-grid-harness.ts), the evidence records, from existing or new tests: bounded mounted headers/cells and bounded window reads (counts), stable offscreen-extrema bar geometry while scrolling, sticky header/identity alignment (px tolerance), cancellation of windows left behind (aborted signals), and no selection cap (selection count = column count). Each item cites the test and its measured values.
  • AC5 — Hold measurement (O11). A test in its own file uses render(100) from flows-grid-harness.ts, removes every anchored flow in view while deep, and asserts the deterministic number of row-page reads during the hold (from pageReads) and that the previous comparison stays shown until it settles. The evidence records the page count, elapsed wall time, mock latency, environment, and whether the hold reads every page. Hold behaviour is not changed; the maintainer's bounding decision is listed as an open follow-up.
  • AC6 — Budgets and headroom. The evidence contains a table of every unit test with a per-test limit of 20 s or more (in flows-grid*.test.tsx, selection.test.tsx 300-selection test, composition.test.tsx) plus the large e2e tests, giving measured time from a full parallel vitest run --reporter=verbose and the limit. Previous references: 300-selection 21.2 s of 30 s; [Task] F4 — Add shared column drag, keyboard reorder and global removal #25 tests 14.1/12.8/12.4 s of 40 s. Any test using more than 75 % of its limit, or any 1 s waitFor timeout seen in three consecutive full unit runs, is recorded with a linked follow-up issue; limits are not raised to hide it.
  • AC7 — Standard checks. Frozen npm ci, format:check, lint, typecheck, test:unit (three consecutive full runs), build, @smoke and the full test:e2e in both projects pass in the container at the delivered SHA, with exact commands, counts and outcomes recorded. A flake of an already-tracked test (Flaky AuthDialog focus assertion under the parallel unit suite #51) is recorded against that issue with the rerun result; any other flake gets a linked Bug.
  • AC8 — Coverage and honesty. docs/engineering/f4-verification.md (style of f3-verification.md) maps every roadmap F4 gate item (golden sorting, signs, zero/absence, exact labels, geometry, warnings; hundreds-of-columns bounded cells, windowed reads, sticky alignment, responsive controls) and [Task] F4 — Add snapshot-consistent flow windows and whole-row chart summaries #20–[Task] F4 — Add shared column drag, keyboard reorder and global removal #25/[Task] F4 follow-up — verify comparison row-page tokens and multi-release snapshot order #64/Flows grid: Retry after a row-page error during a selection update loses the anchored flow #69 to evidence. Failing, blocked or unavailable checks are shown as such; none is represented as passing.
  • AC9 — Handoff. The evidence and handoff state that this is mock mode only (no proof of real auth, authorization, API performance or data security) and list remaining gates (B2, I1, R2, [Task] F5 — Record full mock-frontend acceptance and the Phase 1 gate #34) and open follow-ups (O11 bounding decision, any Bugs filed). F4 is marked complete only by the coordinator after QA and approved merge.

Out of scope and follow-ups

Verification plan

Run on the Docker host (pick a free port and a distinct project name):

COMPOSE_PROJECT_NAME=lca-diff-f4-gate FRONTEND_PORT=5193 ./dev up
COMPOSE_PROJECT_NAME=lca-diff-f4-gate FRONTEND_PORT=5193 ./dev check
docker compose -p lca-diff-f4-gate 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'
# three consecutive full parallel unit runs with per-test timings (AC6, AC7)
docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && for i in 1 2 3; do npx vitest run --reporter=verbose || exit 1; done'
# focused new tests
docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npx vitest run --reporter=verbose src/services/mock/flows-grid-hold.test.tsx'
# PR smoke (both projects) then full suite (both projects)
docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --grep @smoke && npm run test:e2e'
# Firefox column operations explicitly (O5)
docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --project=firefox e2e/column-operations.spec.ts e2e/f4-gate.spec.ts'
COMPOSE_PROJECT_NAME=lca-diff-f4-gate ./dev down

Expected evidence: results table (like f3-verification.md), large-scale counts and measurements (AC4–AC6), hosted CI run for the PR (quality job, @smoke), and a requested workflow_dispatch full-suite run if available (record if not). Mock checks only; no real integration is claimed. QA independently checks every criterion at the delivered SHA and reports PASS/FAIL/BLOCKED; unavailable required checks are not passing.

Dependencies and readiness

All predecessors closed/merged: #20, #21, #22, #23, #24, #25 (PR #74), #64, #69 (PR #73); M1 #2 and M2 #3 closed. Maintainer decisions O11/O13 recorded on this issue. No ADR needed. Ready.

Activity

  1. added
    task
    frontend
    blocked
    on Nov 13, 2026
  2. DavidVFitzGerald commented on Nov 13, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: BLOCKED

    Groomed using docs/team/product-manager.md for F4, Phase 1 — frontend with mock services. Documentation review: PASS for scope, required sections, specification coverage and acyclic dependency links; this is not application QA or implementation readiness.

    Blocking predecessor issues: #25. The M1 runtime gate (#2) and merged bootstrap/M2 configuration (#3) also remain required. PM must recheck merged dependencies and current interfaces before changing this to READY.

    Engineer implements one issue, commits regularly and hands the delivered SHA plus exact container checks to independent QA; do not close before QA, review and approved merge. No backend/Firebase/cloud credentials or host installations are required for Phase 1.

  3. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM note carried from #24 QA (O1), not a readiness change: the frontend unit suite takes ~73 s in the container, and the first 220 × 2,000+ Flows grid mount takes ~4.5–4.9 s in a full parallel run (~2.5 s alone). #24 raised the large grid suites' budget to 20 s. When #26 sets the large-comparison gate, include a measured budget for these tests so parallel-load timeouts aren't confused with product slowdowns.

    🤖 Generated with Claude Code

  4. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: dependency update, not a readiness change. #26 now also depends on bug #69 (Retry after a row-page error during the hold), because the F4 gate must verify the fixed hold path. Order: #69 → #25 → #26. PM grooming: #69 READY (#69 (comment)), #25 BLOCKED on #69 (#25 (comment)).

    🤖 Generated with Claude Code

  5. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Maintainer decision (2026-11-15), recorded by the coordinator.

    🤖 Generated with Claude Code

  6. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM note carried from #69 QA, not a readiness change.

    Test Time Limit
    O9 (new in #69) 16.5 s 40 s
    D4 15.7 s 40 s
    300 selections 17.6 s 30 s
    First mount 5.6 s 20 s

    🤖 Generated with Claude Code

  7. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM note carried from #25 QA, not a readiness change. When #26 is groomed, consider:

    🤖 Generated with Claude Code

  8. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: READY

    Phase 1 — frontend with mock services, F4-07. Recheck done against main at 0a8bc4b and the actual code in apps/frontend/.

    Dependencies: #20–#25 (#25 via PR #74), #64 and #69 (PR #73) are closed and merged. M1 #2 and M2 #3 are closed. No ADR is needed.

    Spec: §§6.3–6.4, 6.6, 9.1–9.3, plus the roadmap F4 gate.

    Body updated. The body now folds in all carried-forward notes. I corrected stale text: the governance docs are on main, and the commands are the real package.json/./dev scripts with Playwright projects chromium and firefox. The evidence goes in docs/engineering/f4-verification.md.

    Decisions

    Next: Software Engineer implements on a task branch in an isolated Compose project (lca-diff-f4-gate) and hands the delivered SHA and exact commands to QA.

    🤖 Generated with Claude Code

  9. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: state → implementing. Software Engineer assigned on feat/f4-flows-gate from 0a8bc4b, in the isolated worktree /tmp/lca-diff-f4-gate (Compose project lca-diff-f4-gate, port 5193).

    🤖 Generated with Claude Code

  10. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: BLOCKED

    The deliverables are complete and ready for QA to check the evidence, but the F4 gate does not pass. AC1 and AC7 fail on existing defects, each filed as a Bug. This PR does not fix them.

    Changes

    No product code, contracts, dependencies or limits changed, and no ADR is needed.

    Criteria

    AC Status
    AC1 small-fixture journey FAIL. Every step passes in Chromium and is mapped to its tests. In Firefox, column-operations.spec.ts:120 crashes (#75). In hosted CI, flows-composition.spec.ts:354 (the scroll case) also fails (#79).
    AC2 @smoke gate PASS in both projects, locally and in hosted CI
    AC3 header × orphan rows PASS
    AC4 large-scale evidence Recorded for 220 × 2,225 rows: 17–22 rows, 187–418 cells and 11–16 headers mounted in both browsers. Reads are 100-row pages, one summary window and 1,000-cell tiles. A deep jump makes 16 page reads and aborts 2 of 7 windows. Alignment is 0.00 px. Selection count equals column count (220).
    AC5 hold (O11) Recorded: 23 row pages, every page, at 100 ms mock latency. The hold took 6.3 s with the file run alone and 9.4–14.8 s in full parallel runs. The previous comparison stays shown, with no cell or summary reads. Hold behaviour is unchanged.
    AC6 headroom Table recorded. Two tests exceed 75 % of their limit: 300 selections at 89 % (26.8 of 30 s) and deep scroll at 84 % (16.7 of 20 s). Follow-up: #76. No 1 s waitFor timeouts; no limits raised.
    AC7 standard checks FAIL. Static checks, build, 3 × unit (405/405) and @smoke (14/14) pass. The full suite passes in Chromium (30/30) and fails in Firefox (28/30: #75, #77). Hosted full suite: 50/60 (#75, #77, #79).
    AC8 coverage and honesty Done. Every roadmap gate item and #20–#25, #64 and #69 are mapped, and every failure is shown as FAIL.
    AC9 handoff Done. Mock mode only. Remaining gates: B2, I1, R2, #34. Follow-ups: O11, #75, #77, #79, #76.

    Commands (Compose project lca-diff-f4-gate, port 5193)

    COMPOSE_PROJECT_NAME=lca-diff-f4-gate FRONTEND_PORT=5193 ./dev up && ./dev check       # PASS
    docker compose -p lca-diff-f4-gate 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'   # PASS
    docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && for i in 1 2 3; do npx vitest run --reporter=verbose || exit 1; done'   # PASS 405/405 x3 (92.6/102.2/103.7 s)
    docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npx vitest run --reporter=verbose src/services/mock/flows-grid-hold.test.tsx'   # PASS
    docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --grep @smoke'   # PASS 14/14
    docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --reporter=list'   # FAIL 58/60 (Firefox: #75, #77)
    docker compose -p lca-diff-f4-gate exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --project=firefox e2e/column-operations.spec.ts e2e/f4-gate.spec.ts --reporter=list'   # FAIL 3/4 (#75)
    COMPOSE_PROJECT_NAME=lca-diff-f4-gate ./dev down

    Hosted CI:

    Bugs and follow-ups opened

    Limitations

    • Mock mode only. This does not prove real authentication, authorization, API performance or data security.
    • The browser and jsdom counts in AC4 come from uncommitted probes. The doc describes how they were taken.
    • The default catalog does not overflow the grid, so scrolling is shown on the large and 50-process catalogs.
    • Timings were taken on a shared host with load average 4–5.

    Next

    1. Coordinator: PM grooms [Bug] Firefox content process crashes in the column-operations default journey (Playwright) #75, [Bug] Firefox: the process sidebar becomes an extra tab stop and fails the F2 keyboard gate #77 and [Bug] Identity-block "Location" label overflows with hosted CI fonts, failing Flows layout e2e in both browsers #79 (and [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76), and they are fixed.
    2. Rerun the full suite locally and through a hosted workflow_dispatch at a new SHA on this branch.
    3. Request QA on that SHA.

    QA may verify AC2–AC6 and AC8–AC9 now, at c62929f. F4 is not complete until the coordinator records QA and approved merge.

    🤖 Generated with Claude Code

  11. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: state → blocked. Engineering BLOCKED at c62929f (PR #78; #26 (comment)). The F4 gate fails AC1/AC7 on defects already present on main at 0a8bc4b: #75 (Firefox crash in column-operations), #77 (Firefox sidebar tab stop, F2 gate regression), #79 (hosted-CI font overflow of the Location label). Headroom follow-up: #76. #26 now depends on #75, #77 and #79; QA runs on the SHA delivered after they merge. Next action awaits maintainer direction on sequencing.

    🤖 Generated with Claude Code

  12. 6 remaining items

  13. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: FAIL

    I reviewed ba912b4e688636039ae6ed9d5badb82173100877 (PR #78) in mock mode, in the detached worktree /tmp/lca-diff-f4-gate-qa. Compose project lca-diff-f4-gate-qa, port 5213, rootless workspace with Node 24.22.3 and npm 11.19.1. Host: 8 cores, shared with about 25 other containers.

    Why it fails. The new hold test, flows-grid-hold.test.tsx, has an internal waitFor budget of 15 s for the hold. Under a normal full parallel run the hold takes 14–15 s, so it often exceeds that budget.

    • It failed in 4 of my 6 full unit runs.
    • I never got three consecutive passing runs, so AC6 and AC7 fail.
    • AC6's headroom table does not include this internal 15 s budget. The engineer's own figure, 14.0 s, is already 93 % of it.

    Everything else checks out: the browser checks, static checks, smoke gate, orphan-row test and large-scale counts.

    Scope and diff

    • Diff vs the merge base. git diff --stat cc67a45...ba912b4 shows only 4 files: e2e/f4-gate.spec.ts, flows-composition.test.tsx (+34), flows-grid-hold.test.tsx and docs/engineering/f4-verification.md. No product code, contracts, dependencies, limits or ADRs are touched.
    • Docs-only last commit. git diff --stat 0265639 ba912b4 changes only f4-verification.md.
    • Behind main. origin/main has moved on to f0e2f9c. The newer commits are backend/B4 only and do not affect this review.

    Criteria

    AC Verdict Evidence
    AC1 journey PASS Every step maps to tests that exist: f4-gate, flows-composition.spec.ts:119/358, flows-grid.spec.ts:83/242, column-operations.spec.ts:134/296/337, f2-gate.spec.ts:259/270. All of them passed in both projects in my full run.
    AC2 @smoke gate PASS Tagged @smoke. Uses the default scenario. Covers sign-in, 3 selections, signed -80 with the full accessible name, present zero 0, zero, absent "No flow" with no label or bar, the cell warning on Beta only, the comparability warning, keyboard reorder (Space/End/Space) with focus kept, header × removal, Selected-list and header order parity after each change, the tree unchecked, 6 rows with none for Gamma, and no page/console/fetch/off-origin//api/ problems. #panel-flows is used only to locate the panel. The test still asserts toHaveRole("tabpanel") and toHaveAccessibleName("Flows"), and the headers are role-located. It passed under --grep @smoke in both projects (1.4 s and 2.3 s).
    AC3 header × orphan rows PASS Asserts the exact 6-row list, unchanged Alpha/Beta labels, the remaining columns and aria-colcount 3. Mutation check: in comparison.ts flowRows I changed .filter((row) => represented.has(row.row_key)) to .filter(() => true), which keeps orphaned rows. The test then failed (aria-rowcount ≠ 6). Restored, and git status is clean.
    AC4 large scale PASS Reproduced independently with temporary probes, since removed. Browser, 1440 × 900, 2 repeats per project: at the top, 17 rows, 187 cells and 11 headers; deep (6000/40000), 22 rows, 418 cells and 16 headers. Header-to-cell x and width difference 0.00 px. Identity x is +0 px. Strip scrollLeft equals grid scrollLeft (6000). Strip y is fixed at 250.22 px (Chromium) and 250.38 px (Firefox). "Selected processes (220)" with aria-colcount 221. jsdom: total 2,225 rows; 18 rows, 216 cells and 12 mounted columns; pages [100]; 1 summary (100 × 220); 1 tile (50 × 20). Deep jump: 16 pages of 100, 3 summary reads in total, 6 cell reads after the first, 7 signals with 2 aborted. These match the doc exactly. The doc states that its counts come from uncommitted probes and describes the method.
    AC5 hold (O11) PASS (content) render(100). Asserts exactly 23 pages, in order, all ok; the sampled rowcount {2225} and the anchor shown during the hold; no busy reads; scroll position kept. With the file run alone: 23 pages, hold 6.5 s, test 10.7 s, matching the doc. Hold behaviour is unchanged, and O11 is listed as open. The same test's reliability is what fails AC6 and AC7.
    AC6 headroom FAIL The hold test's internal waitFor({ timeout: 15000 }) is the binding budget, not the 40 s test limit. In full runs I measured a hold of 14.3 s and 15.1 s (passes), and in four runs it exceeded 15 s and failed. The doc reports this test at 53 % of its limit and leaves out the 15 s budget. The deep-scroll test's internal 10 s waitFor also timed out in 3 of 6 runs. That test is already tracked in #76.
    AC7 standard checks FAIL Static checks, build, smoke and the full e2e suite all pass (see below). Unit tests: no run of three consecutive passes (details below).
    AC8 coverage and honesty PASS (doc) Every roadmap F4 gate item is mapped to evidence, and so are #20–#25, #64 and #69. I spot-checked the cited tests and they exist. The first-round FAIL table is kept. The doc's unit-run claim needs updating once AC6/AC7 are fixed.
    AC9 handoff PASS The doc says this is mock evidence only. It lists the remaining gates B2, I1, R2 and #34, and the open follow-ups O11, #76 and #85. F4 is not claimed complete.

    Unit runs: full npx vitest run --reporter=verbose, 405 tests

    Run Load (1 min) Result Duration Failures
    1 9.1 400/405 185.8 s hold, deep-scroll, 300-selection (timed out at 30 s), O9 (timed out at 40 s), #69 Retry
    2 11.5 402/405 140.3 s hold, deep-scroll, 300-selection (timed out)
    3 8.8 403/405 103.2 s hold, deep-scroll
    4 2.0 405/405 99.0 s none (hold 14.3 s)
    5 4.3 404/405 106.6 s deep-scroll, waitFor at row 1500 (hold 15.1 s, passed)
    6 4.4 404/405 102.8 s hold, waitFor 15 s timed out: still aria-busy
    control 1 3.6 404/404 101.2 s none (hold file excluded)
    control 2 4.2 404/404 98.7 s none (hold file excluded)
    • Runs 1–3 ran under heavy outside load, as in [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76, and I don't count them as product evidence.
    • Runs 4–6 ran at about the same load (4.3–4.4) and suite duration (≈ 99–107 s) as the engineer's runs (load 1.9–4.7, 88–99 s). Even so, 2 of those 3 failed.
    • The two control runs exclude the new file with --exclude "**/flows-grid-hold.test.tsx". Both passed, with deep-scroll at 16.2 s and 16.6 s. So the new hold file is the cause of the AC7 failures. It adds more load than the existing tests have headroom for.
    • None of these failures is a product defect. Every failure is a waitFor or per-test timeout, and every assertion on page counts and values that did run passed.

    Other commands, all docker compose -p lca-diff-f4-gate-qa exec -T workspace bash -lc 'cd apps/frontend && …'

    • ./dev up and ./dev check: PASS.
    • npm ci --no-audit --no-fund: 236 packages, and git status is clean afterwards.
    • format:check, lint, typecheck and build each exit 0.
    • npm run test:e2e -- --grep @smoke --reporter=list: 14 passed.
    • npm run test:e2e -- --reporter=list: 66 passed (3.1 min). Large tests: flows-grid:83 took 12.2 s in Chromium and 16.2 s in Firefox; column-operations:296 took 10.4 s and 11.3 s.
    • npm run test:e2e -- --project=firefox e2e/column-operations.spec.ts e2e/f4-gate.spec.ts --reporter=list: 4 passed.
    • Hosted CI, via gh run view:
      • Run 43756599203 (workflow_dispatch, 0265639): success, unit 405/405 and e2e 66 passed.
      • Run 43756598407 (pull_request, 0265639): quality success.
      • Run 43757361827 (pull_request, ba912b4): quality success, unit 405/405 and smoke 14 passed.
      • PR F4: verify large Flows comparisons and record the milestone gate (#26) #78 rollup at ba912b4: backend, ETL, API and frontend quality all pass.

    Next action

    Engineering, on #26:

    1. Make the hold test's hold budget reliable. Within AC6 this is a test-only change: for example, derive the waitFor timeout from the 40 s test limit with the measured reason recorded, or reduce the test's load. It must not change hold behaviour or hide the measurement.
    2. Add the internal waitFor budgets (hold 15 s, deep-scroll 10 s) to the AC6 headroom table.
    3. Rerun three consecutive full unit runs at the new SHA.

    The deep-scroll test passes without the new file (control runs), but it is close to its limit. If it still fails after step 1, PM or the coordinator should decide whether #76 must land before this gate. Then QA rechecks AC5–AC7 at the new SHA.

    Observations, not blocking

    • O1: flows-composition.test.tsx, including the new AC3 test and the existing AC1 test, prints the React warning "flushSync was called from inside a lifecycle method" to stderr in jsdom. It is already present on main. The browser smoke test asserts no console errors and passes.
    • O2: The issue text names bulk-selection.test.tsx for the 300-selection test. It is actually in selection.test.tsx, and the doc is correct.
    • I cleaned up my own test-results and probes, then brought the Compose project down.

    🤖 Generated with Claude Code

  14. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: QA FAIL at ba912b4 (#26 (comment)) → returns to engineering. Cause is in #26's own new test: flows-grid-hold.test.tsx's internal 15 s waitFor times out under full parallel load, and its added load tips the deep-scroll test (#76) past its 10 s waitFor; control runs without the file passed 2/2. No product defect. Engineering fixes the hold test with a test-only change (hold behaviour and AC5 assertions unchanged), adds internal waitFor budgets to the AC6 table, and gets three consecutive full unit passes. If deep-scroll still fails without help from the hold file, coordinator decides with the maintainer whether #76 lands first.

    🤖 Generated with Claude Code

  15. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA

    This responds to the QA FAIL at ba912b4.

    Changes since ba912b4

    • f07acba merges origin/main at f0e2f9c, which adds only backend/B4 commits.
    • 1b4fd1b is a test-only change to flows-grid-hold.test.tsx. It raises the hold's internal waitFor budget from 15 s to 25 s and gives the reason in a code comment.
      • Basis. An uncommitted probe called the mock flowRows for the 23 pages directly and measured 115–173 ms of mock work per page, for 208 processes. With 100 ms of latency on top, each page costs about 225 ms, or about 5.2 s before rendering.
      • Why 25 s. Under parallel load the hold ran 14–15 s, which is 93–101 % of the old budget. 25 s is about 1.7 times the worst passing hold (15.1 s). Setup (up to 8 s), the hold and the settle step still fit inside the 40 s test limit.
      • What stays the same. Hold behaviour, the exact 23-page assertion, render(100), the retained old comparison and the logged elapsed time are unchanged. No other test's limit changed.
      • Why not fewer processes. Using fewer processes would change the measured scenario, and the setup reads are what put the grid deep. So I reduced no load.
    • 95b58d2 updates docs/engineering/f4-verification.md:
      • The QA FAIL round is recorded as history.
      • AC5 gets the new figures and the budget derivation.
      • AC6 gets fresh figures and a new table of internal waitFor budgets, measured with a temporary uncommitted wrapper around waitFor.

    Results at 1b4fd1b

    Check Result
    Static checks (format, lint, typecheck) and build PASS
    Unit run 1, load 1.45 → 3.32 405/405 in 92.9 s; hold 9.2 s; test 16.7 s
    Unit run 2, load 3.32 → 4.14 405/405 in 101.4 s; hold 14.7 s; test 22.3 s
    Unit run 3, load 4.14 → 4.70 405/405 in 103.2 s; hold 14.4 s; test 22.6 s
    @smoke 14/14
    Full e2e 66/66
    Firefox column-operations + f4-gate 4/4
    Hosted quality Success: run 43762464690 at 1b4fd1b and run 43763034038 at 95b58d2
    Hosted workflow_dispatch Success: run 43762465426, unit 405/405 (hold 5.1 s) and e2e 66/66

    The three unit runs were consecutive, and nothing timed out in any of them. Runs 2 and 3 would have been at 98 % and 96 % of the old 15 s hold budget.

    Remaining risk: deep-scroll, for PM or the coordinator (#76)

    • Measurements.
      • With the hold file running, the deep-scroll test's internal 10 s waitFor (flows-grid.test.tsx:76) reached 9.7 s (97 %) in an instrumented run of the mock directory.
      • In two control runs without the hold file it reached 7.3 s and 7.7 s.
      • The test as a whole is at 81 % of its 20 s limit, and the 300-selection test is at 89 % of its 30 s limit.
    • Not changed. I left deep-scroll alone, as instructed. It passed in all three runs and in hosted CI, so this is not BLOCKED, but it is close to its limit under this host's load. PM or the coordinator should decide whether [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 must land before this gate.
    • Issue-text nit (O2). AC6 in the issue body names bulk-selection.test.tsx; the test is actually in selection.test.tsx. The doc is correct. I left the issue's AC text for PM to correct.

    Cleanup and next step

    I removed my own test-results and playwright-report and brought Compose down. git status is clean.

    Next: QA rechecks AC5–AC7 at 95b58d2, with the checks at 1b4fd1b.

    🤖 Generated with Claude Code

  16. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: corrected a factual filename in AC6 (bulk-selection.test.tsx → selection.test.tsx, where the 300-selection test lives); criterion meaning unchanged. State → QA again at 95b58d2 (checks at 1b4fd1b). QA to judge whether raising the new hold test's own internal waitFor from 15 s to 25 s (measured derivation, within its 40 s limit) is consistent with AC6's "limits are not raised to hide it", and to report the deep-scroll internal-budget headroom (#76) for a maintainer decision on whether #76 must land before the gate.

    🤖 Generated with Claude Code

  17. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: PASS

    I rechecked PR #78 at 95b58d284304d6234c2852bef5e256fa63ef6064 after my FAIL at ba912b4.

    • Mode: mock only. This proves nothing about real auth, authorization, API performance or data security.
    • Where: detached worktree /tmp/lca-diff-f4-gate-qa, Compose project lca-diff-f4-gate-qa, port 5213, rootless workspace, Node 24.22.3. Host: 8 cores, shared.

    Every criterion passes and every required check passes. One risk is left for the maintainer: the deep-scroll test (#76), under Deep-scroll headroom below.

    Scope

    • git diff --stat origin/main...95b58d2 (main = f0e2f9c): 4 files. The two new test files, the +34 lines in flows-composition.test.tsx, and the evidence doc. No product code, contract, dependency or ADR changes.
    • ba912b4..95b58d2:
      • Frontend: only flows-grid-hold.test.tsx changed, by 7 lines. { timeout: 15000 } became { timeout: 25000 }, with a comment giving the measured reason.
      • Docs: only f4-verification.md.
      • Backend: the rest is the backend-only main merge f07acba.
    • 1b4fd1b..95b58d2: docs only.

    Is the 15 s → 25 s raise consistent with AC6? Yes

    AC6 forbids raising limits to hide a test that is over 75 % or a waitFor timeout. I accept this raise for four reasons.

    1. It is this PR's own new budget. The budget belongs to the measurement test added by this PR, not to an existing test with accepted headroom. 15 s was an unmeasured first guess.
    2. It is derived from measurement and written down. The test comment and the AC5 section give the derivation: 23 × (100 ms latency + about 125 ms of mock work), 6.5–6.8 s with the file alone, and 14–15 s under parallel load.
    3. Nothing is hidden. The hold duration is an O11 observation, not a pass threshold. The test logs the elapsed time, the doc records it next to the budget (59 % of 25 s), and the old 93–101 % of 15 s is kept in history. The whole test is still well inside its 40 s limit.
    4. Behaviour is unchanged. Hold behaviour and the AC5 assertions did not change (below), and no other test's limit was touched.

    AC5 assertions are unchanged

    The diff touches only the waitFor options and adds a comment. These all stay exactly as they were:

    • render(100) and the removal of 12 processes;
    • the sampled rowcount {before} and the anchor-only checks;
    • busyReads is [];
    • the in-order pages 0…22, toHaveLength(23) and every page ok;
    • the settle and position checks.

    Unit runs: three consecutive full npx vitest run --reporter=verbose at 95b58d2

    Run Load (1/5/15 min) start → end Result Duration Hold Hold test Deep-scroll test 300 selections
    1 1.29/1.26/2.31 → 4.22 405/405 90.2 s 9.5 s 16.9 s 13.0 s 20.4 s
    2 4.22/2.52/2.68 → 5.00 405/405 98.8 s 13.9 s 21.2 s 15.2 s 24.1 s
    3 5.00/3.74/3.14 → 4.48 405/405 103.1 s 14.4 s 22.1 s 16.3 s 25.1 s
    • About the load. Runs 1–3 started from an idle host (load 1.3). The rise to 4–5 is mostly the suite's own parallel workers, not outside load. That is unlike my first FAIL runs 1–3 (load 9–11).
    • No timeouts. No waitFor or test timed out in these three runs.
    • Hold headroom: at most 14.4 s of 25 s (58 %), and 22.1 s of 40 s for the whole test (55 %).

    Deep-scroll headroom (#76), for the maintainer

    • Whole test, flows-grid.test.tsx › "deep scrolling pages rows…" (20 s limit).
      • 13.0, 15.2 and 16.3 s in the gate runs, so at most 81 %.
      • 15.0 and 16.5 s in two more runs, so at most 82 %.
    • Internal 10 s waitFor (line 76). I ran two extra full runs at load 3.0–4.4 with a temporary performance.now() log around this wait, then restored the file (git status clean).
      • It measured 10.06 s and 11.0 s, i.e. 101 % and 110 % of the 10 s budget.
      • It still passed both times. Under load, Testing Library's timeout timer fires late, and the condition was met before the timer callback ran. It is passing on timer slack, with no real headroom.
    • How this compares with the doc. The doc gives 9.7 s (97 %) with the hold file and 73–77 % without it. That is the right direction, but my figures are slightly worse.
    • Earlier failures. At ba912b4 this wait timed out in 3 of 6 full runs. My control runs without the hold file passed.
    • Why this is not a FAIL. AC6 requires the test to be recorded with a linked follow-up, and it is ([Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76). It passed in all 5 full runs at this SHA and in hosted CI.
    • Recommendation. Expect intermittent deep-scroll timeouts on a loaded host until [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 lands. I recommend that the maintainer either lands [Task] Restore unit-test budget headroom for the 300-selection and deep-scroll tests #76 before relying on the unit suite as a stable F5 gate, or accepts that risk explicitly.

    Criteria

    AC Verdict Evidence
    AC1 PASS All journey tests passed in both projects. Full e2e: 66/66.
    AC2 PASS f4-gate.spec.ts is unchanged since my first review. Role and name are still asserted. --grep @smoke: 14 passed (f4-gate 1.4 s in Chromium, 2.3 s in Firefox).
    AC3 PASS The test is unchanged. My earlier mutation check, which kept orphaned rows via .filter(() => true), made it fail.
    AC4 PASS The measured code is unchanged since my independent probe at ba912b4. That probe matched the doc exactly: 17/187/11 → 22/418/16 mounted, 0.00 px alignment, 220 selected and colcount 221; jsdom 18/216/12, 16 pages, 2/7 aborted.
    AC5 PASS 23 pages, old comparison retained. The hold took 9.5–14.4 s in full runs and 13.7–15.1 s in the instrumented runs. Hosted: 5.1–5.8 s.
    AC6 PASS The test-limit table is refreshed. The new internal-waitFor table covers the hold and deep-scroll budgets. The over-75 % items are linked to #76: 300 selections at 89 % (mine: 84 %), deep-scroll at 81 % (mine: 82 %) and its internal wait at 97 % (mine: 101–110 %, see above). The raise is justified (above). No other limit changed.
    AC7 PASS See commands below. Three consecutive unit runs passed 405/405.
    AC8 PASS The doc keeps both earlier rounds as history: the first round at 4f8e8c8 (FAIL table) and the QA FAIL round at ba912b4/0265639 with its 4/6 and 3/6 timeouts and the control runs. The roadmap gate and #20–#25/#64/#69 mapping is unchanged.
    AC9 PASS The doc says this is mock only. Remaining gates: B2, I1, R2 and #34. Open follow-ups: O11, #76 and #85. F4 is not claimed complete.

    Commands at 95b58d2, each run as docker compose -p lca-diff-f4-gate-qa exec -T workspace bash -lc 'cd apps/frontend && …'

    • ./dev up and ./dev check: PASS.
    • npm ci --no-audit --no-fund: 236 packages.
    • format:check, lint, typecheck and build: all exit 0.
    • Three full unit runs: 405/405 each (table above).
    • npm run test:e2e -- --grep @smoke --reporter=list: 14 passed.
    • npm run test:e2e -- --reporter=list: 66 passed (3.1 min).
    • npm run test:e2e -- --project=firefox e2e/column-operations.spec.ts e2e/f4-gate.spec.ts --reporter=list: 4 passed.
    • Flaky AuthDialog focus assertion under the parallel unit suite #51 flake. In the second instrumented run, which was extra to the gate runs and had a temporary log line, AuthDialog.test.tsx › "resets a known account…" failed its focus assertion (focus on <body>). That is the known flake tracked in Flaky AuthDialog focus assertion under the parallel unit suite #51. Rerunning npx vitest run src/auth/AuthDialog.test.tsx gave 13/13 passed. It did not occur in the three gate runs.

    Hosted runs (gh run view)

    • 43762465426 (workflow_dispatch, 1b4fd1b): success. Unit 32/32 files (hold 5.1 s), e2e 66 passed.
    • 43762464690 (pull_request, 1b4fd1b): quality success, smoke 14 passed.
    • 43763034038 (pull_request, 95b58d2): quality success, unit 32/32 files, smoke 14 passed.
    • PR F4: verify large Flows comparisons and record the milestone gate (#26) #78 rollup at 95b58d2: quality, backend, ETL and API checks all pass.

    Next action

    Ready for maintainer review and merge. Before merging, the maintainer decides whether #76 (deep-scroll budget headroom) must land first. The coordinator closes the issue after an approved merge. Open follow-ups: O11 (hold bounding), #76, #85, and #51 (one occurrence recorded above).

    I removed only my own test-results and playwright-report, and brought the Compose project down. The worktree is clean.

    🤖 Generated with Claude Code

  18. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: QA PASS at 95b58d2 (#26 (comment)). State → ready for maintainer review of PR #78. #26 (and the F4 milestone) closes after the maintainer merges PR #78.

    Maintainer decision requested: QA measured the deep-scroll test's internal 10 s waitFor at 101–110 % in instrumented full runs (it passes only because the timeout timer fires late under load); whole-test 82 % of 20 s; 300-selection 84 % of 30 s. QA recommends landing #76 before the unit suite is relied on as a stable gate for F5, or accepting the intermittent-timeout risk explicitly. Open follow-ups: O11 (bounding the hold), #76, #85, #51.

    🤖 Generated with Claude Code

  19. added a commit that references this issue on Nov 15, 2026
  20. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: closed. QA PASS at 95b58d2; the maintainer merged PR #78 to main at af5317d. F4 milestone complete in mock mode (real API/auth/integration remain I1/R2; browser matrix #34). Roadmap status refresh is in a docs PR referencing #26. Open follow-ups: O11 hold bounding (maintainer decision), #76, #85, #51, #87.

    🤖 Generated with Claude Code

  21. added 3 commits that reference this issue on Nov 16, 2026
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

    blockedfrontendtask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions