Repository navigation
Description
Delivery phase
Phase 1 - frontend with mock services
Goal
Supply bounded comparison reads with the same scientific states the real adapter must preserve.
Context and authority
Milestone F1; read AGENTS.md, docs/team/product-manager.md, docs/product/LCA_diff_PRD.md, docs/engineering/roadmap.md, and docs/engineering/LCA_diff_Implementation_Specification.md §§6.4–6.7, 7.1–7.4, 9.1–9.2. Current planning baseline is on docs/agent-workflow, pending review/merge into main; proposed ADRs are not accepted authority. Implement indicator-tree and comparison row/cell mocks under apps/frontend/src/services/mock/, with deterministic golden and generated-large fixtures/tests. These application paths are planned until created. Exclude all archive/reference folders.
Requirements and constraints
Return ordered unions of selected flow-ID/type rows, selected indicator rows in source order, explicit next cursors, snapshot/cache metadata and cell-scoped warnings. Only requested windows are returned. Keep default difference computation off; support a typed requested flag for F5's on-demand mode without fetching a whole comparison matrix.
One session-sized task/PR including verification and handoff. Run all development, installation and checks in containers; install nothing on the host. No real backend, Firebase project, cloud credentials or proprietary inputs. If the current PRD/spec must change, prepare an ADR and updates to both current documents in the same PR.
Acceptance criteria
- AC1 - Flow rows include only identities represented by selected processes, ordered by flow type then case-insensitive category/subcategory/name with stable ties; score rows preserve selected indicators' source order.
- AC2 - Cells preserve exact decimal strings, present zero, absent flow, valid zero and missing/unresolved score states; warnings remain on the affected process/row cell.
- AC3 - Window/cursor calls use one immutable revision snapshot across rows and cells; stale/unavailable snapshot scenarios return typed errors rather than mixed data.
- AC4 - Latency, cancellation and failure scenarios are deterministic; generated-large fixtures support hundreds of process IDs without hard selection caps or unbounded response payloads.
- AC5 - The boundary accepts a typed differences_only flag, defaults it to false, and performs no cross-process difference computation during default reads. A true request remains explicitly unsupported until #29 implements exact predicates and golden cases; this task neither returns fabricated difference results nor claims the feature is complete.
Out of scope and follow-ups
Grid rendering is F4; exact mock difference predicates and golden tests are #29, and user-facing differences/cache orchestration is F5. ETL, SQL and real endpoints remain Phase 2. No client normalization or calculations of LCIA scores.
Verification plan
Inside ./dev shell, run npm --prefix apps/frontend run test:unit, format:check/lint/typecheck/build. Assert snapshot changes, cell windows, absence/zero/unresolved distinctions and no difference predicate work when differences_only is false. Record generated fixture dimensions and response bounds.
Engineer records branch/SHA and exact results, leaves issue open, and hands off to QA. QA verifies every criterion at that SHA and reports PASS/FAIL/BLOCKED; mock evidence is not proof of real security/integration.
Dependencies and readiness
Blocked by #6. No implementation until dependencies and the M1 environment runtime gate are satisfied. This body is groomed planning material, not PM READY while blockers remain. Coordinator/PM rechecks merged dependencies and session-sized scope before starting.
Current readiness — supersedes historical blockers above
PM: READY, Phase 1/F1. PR #40 merged at fc9609b; predecessor #6 independently QA PASS and final hosted quality CI PASS (run 43534799498), now closed. M1/M2 gates remain satisfied. Current merged contracts and documents apply; historical planning-branch statements are superseded. AC1–5 unchanged; no new ADR/product decision required. All development/checks stay in rootless containers. Mock execution does not establish real backend/security correctness.
Activity
DavidVFitzGerald commentedon Nov 13, 2026
PM: BLOCKED
Groomed using docs/team/product-manager.md for F1, 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: #6. 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 14, 2026
PM: READY
Verified merged #6 contracts in PR #40, independent QA PASS and final quality CI PASS. Readiness addendum supersedes historical blockers; AC1–5 unchanged. #7 proceeds first on isolated feat/f1-mock-discovery; #8 is ready but not started. Cursors/snapshots and bounded reads must preserve merged service semantics; independent QA follows implementation. #9/#10 retain predecessor gates.
DavidVFitzGerald commentedon Nov 14, 2026
PM: READY — rechecked after PR #41 merge
AC1–5 unchanged. PR #41 merged at af4aa98; #7 independently QA PASS and final hosted quality CI PASS, now closed. #6 contracts remain merged and complete; rootless comparison workspace ./dev check PASS. Implement comparison/indicator mock subset on isolated feat/f1-mock-comparison, then independent QA at delivered SHA. #9 remains gated on #8 merge, #10 on #9. No new product decision or ADR required.
DavidVFitzGerald commentedon Nov 14, 2026
Engineering: READY FOR QA
Branch
feat/f1-mock-comparison, SHAc4368876794a24b2a6146c3b1c86a3631ef3d90a. AC1–5 implemented: presence-only flow unions; source-ordered indicator rows; exact decimal/missing states and scoped warnings; immutable snapshot/token/cursor linkage; bounded cell products; deterministic failures/abort; sparse large fixtures. Default no difference computation; true unsupported until #29.Rootless ./dev check and frozen npm ci PASS. Exact quality command:
All PASS: 79 tests/four files (19 comparison, all 26 discovery regressions after shared-runtime extraction), build PASS, whitespace PASS, clean worktree. Large fixture 320 processes × 1,324 flow rows: 1,600 sparse process entries plus 1,000 shared entries per revision; tested 25-row page and 100-cell response <25 KB.
Independent QA reviewing delivered SHA. No real auth/backend/security/browser evidence claimed; #9/#10 retain merge gates. Leave open pending QA, CI and approved merge.
DavidVFitzGerald commentedon Nov 14, 2026
QA: PASS
Independent QA at SHA
c4368876794a24b2a6146c3b1c86a3631ef3d90a, Phase 1 synthetic mock mode, PR #42.Independent exact container command:
All PASS: 79 tests/four files (19 comparison, all 26 discovery regressions); build 15 modules. Whitespace checks PASS; clean worktree unchanged; QA made no edits. Extra read-only probes verified window limits, mixed snapshots, canonical tokens, exact cell states, override regression, unsupported differences and pending abort with no stale success. No blocking regression or specification deviation found. Mock-only: real authentication/security/backend and browser/grid behavior remain future work.
Coordinator confirms final hosted CI; maintainer reviews/merges PR #42. Leave #8 open until approved merge, then PM rechecks #9; #10 requires #9.
DavidVFitzGerald commentedon Nov 14, 2026
Coordinator: READY FOR REVIEW
PR #42, branch feat/f1-mock-comparison, SHA c436887. Independent QA PASS AC1–5; all five container quality scripts PASS (79 tests); final hosted quality CI PASS: https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43537922380. Clean committed worktree, no unresolved in-scope blockers. Next owner: maintainer reviews/merges PR #42. Then coordinator closes #8 and PM rechecks #9; #10 requires merged #9. No merge/deploy/publication performed.
feat: add revision-consistent mock comparison and indicator services …
DavidVFitzGerald commentedon Nov 14, 2026
Coordinator verified maintainer merge of PR #42 at 31842a5. Independent QA PASS and final hosted quality CI PASS at c436887 are recorded above. Closing completed comparison slice; #9 service composition proceeds after PM recheck.