Repository navigation
Description
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.jsonscripts,apps/frontend/playwright.config.ts(projectschromiumandfirefox, mock build + preview server),.github/workflows/frontend.yml(@smokeon every PR, fulltest:e2eonworkflow_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 harnessflows-grid-harness.ts(exposesrender(latency),pageReads, signals and busy reads). - Large scenario:
apps/frontend/src/app/composition.tsLARGE_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 swaitFors 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
chromiumandfirefoxprojects, including everycolumn-operations.spec.tscase (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
@smokeF4 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.
- The gate requires the full Playwright suite to pass in both
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
@smokegate.apps/frontend/e2e/f4-gate.spec.tscontains one@smoketest (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 undernpm run test:e2e -- --grep @smokein 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)fromflows-grid-harness.ts, removes every anchored flow in view while deep, and asserts the deterministic number of row-page reads during the hold (frompageReads) 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.tsx300-selection test,composition.test.tsx) plus the large e2e tests, giving measured time from a full parallelvitest run --reporter=verboseand 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 swaitFortimeout 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,@smokeand the fulltest:e2ein 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 off3-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
- Changing hold behaviour or bounding it (maintainer decision after AC5; separate issue if adopted). O13: no change.
- Product fixes: file linked Bug issues; do not fix inside this PR.
- Scores, differences and persistence: F5 ([Task] F5 — Add the indicator tree and source-ordered selection state #27–[Task] F5 — Complete comparison loading, recovery and accessibility states #33). Final release browser matrix, Safari and release-candidate full runs: [Task] F5 — Record full mock-frontend acceptance and the Phase 1 gate #34. Real API/performance and adapter parity: roadmap I1/R2.
- Known tracked issues: Flaky AuthDialog focus assertion under the parallel unit suite #51 (AuthDialog flake), F3: process tree pseudo-row ARIA positions and full browser storage check #52 (tree ARIA positions).
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 downExpected 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
DavidVFitzGerald commentedon Nov 13, 2026
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.
DavidVFitzGerald commentedon Nov 15, 2026
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
DavidVFitzGerald commentedon Nov 15, 2026
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
DavidVFitzGerald commentedon Nov 15, 2026
Maintainer decision (2026-11-15), recorded by the coordinator.
🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
PM note carried from #69 QA, not a readiness change.
flows-grid-anchoring.test.tsxwith the shared helpers inflows-grid-harness.ts. Keep this in mind if [Task] F4 — Verify large Flows comparisons and record the milestone gate #26 adds large-workload tests.0c053c6. The whole unit suite took 88 s. None of these tests is near its limit:🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
PM note carried from #25 QA, not a readiness change. When #26 is groomed, consider:
mainas well. An extra large-workload jsdom file made 1 swaitFors time out. Before adding more large tests, track the headroom onwaitForand on per-test limits.@smoke. Decide whether the gate needs Firefox coverage.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
PM: READY
Phase 1 — frontend with mock services, F4-07. Recheck done against
mainat0a8bc4band the actual code inapps/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 realpackage.json/./devscripts with Playwright projectschromiumandfirefox. The evidence goes indocs/engineering/f4-verification.md.Decisions
flows-grid-harness.tsrender(100), and asserts the page reads viapageReads. It records the elapsed time and does not change hold behaviour. The bounding decision follows the measurement.waitFortimeout, gets a linked follow-up. Limits are not raised to hide it. At most one new large jsdom test is allowed, in its own file.column-operations.spec.tscase; config does not restrict them to one project, but so far they have only been run in Chromium. A Firefox failure gets a linked Bug and is recorded as FAIL.@smoketest,e2e/f4-gate.spec.ts, in the default scenario. Large-scenario and auto-scroll tests stay out of smoke.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
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → implementing. Software Engineer assigned on
feat/f4-flows-gatefrom0a8bc4b, in the isolated worktree/tmp/lca-diff-f4-gate(Compose projectlca-diff-f4-gate, port 5193).🤖 Generated with Claude Code
docs: record the hosted CI results and the font-dependent layout fail…
DavidVFitzGerald commentedon Nov 15, 2026
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.
feat/f4-flows-gateRefs #26, not merged)c62929f. Every local check ran at4f8e8c8. The two later commits,794e48fandc62929f, change only documentation; the hosted runs used794e48f.docs/engineering/f4-verification.mdChanges
apps/frontend/e2e/f4-gate.spec.tsadds one@smoketest for the core Flows comparison in the default scenario (AC2). It uses CSS-scoped header locators because of [Bug] Firefox content process crashes in the column-operations default journey (Playwright) #75.flows-composition.test.tsxadds one test for header × dropping orphaned rows (AC3).flows-grid-hold.test.tsxholds the O11 hold measurement (AC5).docs/engineering/f4-verification.mdrecords the evidence.No product code, contracts, dependencies or limits changed, and no ADR is needed.
Criteria
column-operations.spec.ts:120crashes (#75). In hosted CI,flows-composition.spec.ts:354(the scroll case) also fails (#79).@smokegatewaitFortimeouts; no limits raised.@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).Commands (Compose project
lca-diff-f4-gate, port 5193)Hosted CI:
qualityon PR F4: verify large Flows comparisons and record the milestone gate (#26) #78 passed at794e48f(run 43734187625) and atc62929f(run 43735030814).workflow_dispatchfull suite at794e48f(run 43734192952) failed, 50/60.Bugs and follow-ups opened
Limitations
Next
workflow_dispatchat a new SHA on this branch.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
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: state → blocked. Engineering BLOCKED at
c62929f(PR #78; #26 (comment)). The F4 gate fails AC1/AC7 on defects already present onmainat0a8bc4b: #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
6 remaining items
DavidVFitzGerald commentedon Nov 15, 2026
QA: FAIL
I reviewed
ba912b4e688636039ae6ed9d5badb82173100877(PR #78) in mock mode, in the detached worktree/tmp/lca-diff-f4-gate-qa. Compose projectlca-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 internalwaitForbudget of 15 s for the hold. Under a normal full parallel run the hold takes 14–15 s, so it often exceeds that budget.Everything else checks out: the browser checks, static checks, smoke gate, orphan-row test and large-scale counts.
Scope and diff
git diff --stat cc67a45...ba912b4shows only 4 files:e2e/f4-gate.spec.ts,flows-composition.test.tsx(+34),flows-grid-hold.test.tsxanddocs/engineering/f4-verification.md. No product code, contracts, dependencies, limits or ADRs are touched.git diff --stat 0265639 ba912b4changes onlyf4-verification.md.origin/mainhas moved on tof0e2f9c. The newer commits are backend/B4 only and do not affect this review.Criteria
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.@smokegate@smoke. Uses the default scenario. Covers sign-in, 3 selections, signed-80with the full accessible name, present zero0, 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-flowsis used only to locate the panel. The test still assertstoHaveRole("tabpanel")andtoHaveAccessibleName("Flows"), and the headers are role-located. It passed under--grep @smokein both projects (1.4 s and 2.3 s).aria-colcount3. Mutation check: incomparison.tsflowRowsI changed.filter((row) => represented.has(row.row_key))to.filter(() => true), which keeps orphaned rows. The test then failed (aria-rowcount≠ 6). Restored, andgit statusis clean.scrollLeftequals gridscrollLeft(6000). Strip y is fixed at 250.22 px (Chromium) and 250.38 px (Firefox). "Selected processes (220)" witharia-colcount221. 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.render(100). Asserts exactly 23 pages, in order, allok; 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.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 swaitForalso timed out in 3 of 6 runs. That test is already tracked in #76.Unit runs: full
npx vitest run --reporter=verbose, 405 testswaitForat row 1500 (hold 15.1 s, passed)waitFor15 s timed out: stillaria-busy--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.waitForor 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 upand./dev check: PASS.npm ci --no-audit --no-fund: 236 packages, andgit statusis clean afterwards.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:83took 12.2 s in Chromium and 16.2 s in Firefox;column-operations:296took 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.gh run view:workflow_dispatch,0265639): success, unit 405/405 and e2e 66 passed.pull_request,0265639):qualitysuccess.pull_request,ba912b4):qualitysuccess, unit 405/405 and smoke 14 passed.ba912b4: backend, ETL, API and frontend quality all pass.Next action
Engineering, on #26:
waitFortimeout 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.waitForbudgets (hold 15 s, deep-scroll 10 s) to the AC6 headroom table.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
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 onmain. The browser smoke test asserts no console errors and passes.bulk-selection.test.tsxfor the 300-selection test. It is actually inselection.test.tsx, and the doc is correct.test-resultsand probes, then brought the Compose project down.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
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 swaitFortimes out under full parallel load, and its added load tips the deep-scroll test (#76) past its 10 swaitFor; 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 internalwaitForbudgets 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
Merge origin/main into feat/f4-flows-gate (Refs #26)
test: give the hold measurement a measured 25 s hold budget (Refs #26)
docs: record the QA FAIL round, internal waitFor budgets and runs at 1…
DavidVFitzGerald commentedon Nov 15, 2026
Engineering: READY FOR QA
This responds to the QA FAIL at
ba912b4.95b58d2. This commit is docs-only.1b4fd1b.feat/f4-flows-gate(PR F4: verify large Flows comparisons and record the milestone gate (#26) #78).Changes since
ba912b4f07acbamergesorigin/mainatf0e2f9c, which adds only backend/B4 commits.1b4fd1bis a test-only change toflows-grid-hold.test.tsx. It raises the hold's internalwaitForbudget from 15 s to 25 s and gives the reason in a code comment.flowRowsfor 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.render(100), the retained old comparison and the logged elapsed time are unchanged. No other test's limit changed.95b58d2updatesdocs/engineering/f4-verification.md:waitForbudgets, measured with a temporary uncommitted wrapper aroundwaitFor.Results at
1b4fd1b@smokecolumn-operations+f4-gatequality1b4fd1band run 43763034038 at95b58d2workflow_dispatchThe 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)
waitFor(flows-grid.test.tsx:76) reached 9.7 s (97 %) in an instrumented run of the mock directory.bulk-selection.test.tsx; the test is actually inselection.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-resultsandplaywright-reportand brought Compose down.git statusis clean.Next: QA rechecks AC5–AC7 at
95b58d2, with the checks at1b4fd1b.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
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 at95b58d2(checks at1b4fd1b). QA to judge whether raising the new hold test's own internalwaitForfrom 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
DavidVFitzGerald commentedon Nov 15, 2026
QA: PASS
I rechecked PR #78 at
95b58d284304d6234c2852bef5e256fa63ef6064after my FAIL atba912b4./tmp/lca-diff-f4-gate-qa, Compose projectlca-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 inflows-composition.test.tsx, and the evidence doc. No product code, contract, dependency or ADR changes.ba912b4..95b58d2:flows-grid-hold.test.tsxchanged, by 7 lines.{ timeout: 15000 }became{ timeout: 25000 }, with a comment giving the measured reason.f4-verification.md.mainmergef07acba.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
waitFortimeout. I accept this raise for four reasons.AC5 assertions are unchanged
The diff touches only the
waitForoptions and adds a comment. These all stay exactly as they were:render(100)and the removal of 12 processes;{before}and the anchor-only checks;busyReadsis[];toHaveLength(23)and every pageok;Unit runs: three consecutive full
npx vitest run --reporter=verboseat95b58d2waitForor test timed out in these three runs.Deep-scroll headroom (#76), for the maintainer
flows-grid.test.tsx› "deep scrolling pages rows…" (20 s limit).waitFor(line 76). I ran two extra full runs at load 3.0–4.4 with a temporaryperformance.now()log around this wait, then restored the file (git statusclean).ba912b4this wait timed out in 3 of 6 full runs. My control runs without the hold file passed.Criteria
f4-gate.spec.tsis 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)..filter(() => true), made it fail.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.waitFortable 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.4f8e8c8(FAIL table) and the QA FAIL round atba912b4/0265639with its 4/6 and 3/6 timeouts and the control runs. The roadmap gate and #20–#25/#64/#69 mapping is unchanged.Commands at
95b58d2, each run asdocker compose -p lca-diff-f4-gate-qa exec -T workspace bash -lc 'cd apps/frontend && …'./dev upand./dev check: PASS.npm ci --no-audit --no-fund: 236 packages.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.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. Rerunningnpx vitest run src/auth/AuthDialog.test.tsxgave 13/13 passed. It did not occur in the three gate runs.Hosted runs (
gh run view)workflow_dispatch,1b4fd1b): success. Unit 32/32 files (hold 5.1 s), e2e 66 passed.pull_request,1b4fd1b):qualitysuccess, smoke 14 passed.pull_request,95b58d2):qualitysuccess, unit 32/32 files, smoke 14 passed.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-resultsandplaywright-report, and brought the Compose project down. The worktree is clean.🤖 Generated with Claude Code
DavidVFitzGerald commentedon Nov 15, 2026
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
waitForat 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
Merge pull request #78 from DavidVFitzGerald/feat/f4-flows-gate
DavidVFitzGerald commentedon Nov 15, 2026
Coordinator: closed. QA PASS at
95b58d2; the maintainer merged PR #78 tomainataf5317d. 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
docs: record F5 #27 merged and #28 in progress in the roadmap (Refs #26…
docs: mark F4 and B4 complete in the roadmap status (Refs #26)
docs: record F5 #27 merged and #28 in progress in the roadmap (Refs #26…