Repository navigation
Description
Delivery phase
Phase 1 - frontend with mock services. Milestone F5; task key F5-03.
Goal
Return only differing row IDs when explicitly requested, without loading a full matrix into UI components.
Context and authority
Read AGENTS.md, docs/product/LCA_diff_PRD.md, docs/engineering/LCA_diff_Implementation_Specification.md, docs/engineering/roadmap.md, and docs/team/product-manager.md. Do not read archive/reference folders. Current governance/spec documents are prepared on branch docs/agent-workflow; acceptance/merge authority follows docs/adr/README.md, not proposed ADR status. Any contract deviation needs an ADR and both current document updates in the same PR.
Specification §§6.7, 7.1–7.3, 9.2 behavior 16. Planned files: apps/frontend/src/services/ comparison contracts/mock predicates and service tests (planned).
Requirements and constraints
Add optional differences-only semantics to row reads and deterministic mock query behavior using exact decimal comparison. It is a read query, not an LCA transformation. Row summaries used for charts must not themselves trigger difference computations. Preserve raw unavailable score statuses for diagnostics while treating uniformly unavailable/N/A rows as no meaningful numerical difference.
All work runs in containers with synthetic mock data and no API/Firebase/cloud dependency. Keep HTTP/auth/fixtures behind typed services and mock adapters; components consume contracts rather than fixtures. Follow Software Engineer and QA role handoffs, commit focused increments referencing this issue, and leave it open for QA/review.
Acceptance criteria
- AC1 — Ordinary row reads with differences off do not execute cross-process difference predicates; instrumentation verifies zero calls.
- AC2 — Flows hides only rows present in every selected process with exactly equal values; absent versus present zero differs, and
-0equals present0. - AC3 — Scores shows valid-versus-N/A or unequal valid amounts, hides equal valid values and uniformly unavailable/N/A rows; N/A never becomes numeric zero.
- AC4 — Long decimal values that round to identical visible labels still differ when their canonical values differ; no tolerance or float equality is used.
- AC5 — Responses are paginated stable row IDs with the same revision snapshot and set-based selection semantics; reorder changes no eligible set.
- AC6 — Aborted, stale and transport-window error cases preserve explicit errors and cannot return a partial silently truncated result.
Out of scope and follow-ups
Toggle UI and cache behavior are #30; saved flags #31. No backend SQL, tolerance setting, export or fetching a millions-of-cells matrix.
Verification plan
Run on the Docker host: ./dev shell, then inside /workspaces/lca-diff: npm --prefix apps/frontend run format:check, npm --prefix apps/frontend run lint, npm --prefix apps/frontend run typecheck, npm --prefix apps/frontend run test:unit, and npm --prefix apps/frontend run build. These scripts are established by F1, not claimed available today. Browser scenarios use npm --prefix apps/frontend run test:e2e -- --project=chromium (F1 establishes the pinned Playwright tool/browser setup). No host package installs.
Service tests enumerate equal/unequal exact decimal strings, zero/absence, negative zero, missing/unresolved scores, identical displayed labels, pagination, reorder, snapshots and cancellation. Assert normal reads never run the difference predicate.
Record exact commands/results and delivered SHA in the engineering handoff. QA independently checks every criterion at that SHA and reports PASS/FAIL/BLOCKED; unavailable required checks are not passing.
Dependencies and readiness
Blocking predecessors: #28. Also requires verified M1 container runtime and merged bootstrap/M2 configuration; later milestones are planned, not implementation-ready while predecessors remain open. PM must recheck dependencies and actual interfaces before marking READY.
Activity
DavidVFitzGerald commentedon Nov 13, 2026
PM: BLOCKED
Groomed using docs/team/product-manager.md for F5, 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: #28. 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 16, 2026
Deferred to post-MVP (coordinator, 2026-11-16) per the maintainer's local-only MVP scope revision, ADR 0006 (#95). L3 (#30) uses the API's exact
differences_onlyreads and only a minimal exact-string mock predicate for deterministic tests. The exhaustive mock-side instrumentation, pagination and transport-error cases here are not needed to run the app locally. Body and criteria are retained unchanged for later re-grooming; recheck dependencies (now partly on L1–L3: #96, #97, #30) before any future start.