Skip to content

[Task] F5 — Assemble windowed Scores with valid and unavailable cell states #28

Closed

Description

@DavidVFitzGerald

Delivery phase

Phase 1 - frontend with mock services. Milestone F5; task key F5-02.

Goal

Compare every selected indicator across the shared process selection without changing native LCIA values or basis.

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.3, 6.5–6.6, 7.1–7.3, 9.2 behavior 15. Planned files: apps/frontend/src/services/ score windows/summaries, src/app/ Scores composition and shared grid/tests (planned).

Requirements and constraints

Use the shared header/grid/bar components and service snapshots/windows. Extend score mocks and whole-selection chart summaries to cover valid/missing/unresolved_basis statuses. Preserve method/version/indicator/unit identity and provider/source-basis values; no runtime LCIA computation.

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 — Scores uses exactly the same selected process IDs and order as Flows; switching tabs preserves selection/order.
  • AC2 — Sticky identifying fields are Method, Category, Indicator, Unit; BAFU Category stays blank and source indicator order is maintained.
  • AC3 — Every selected indicator has a row and a cell state for every selected process; valid zero shows 0, missing/unmapped/unresolved basis shows N/A with no bar.
  • AC4 — Scores shares signed geometry, full-precision tooltips, readable header metadata and amount/unit comparability warning without rescaling any quantity.
  • AC5 — Rows/cells/summaries use the same revision snapshot and bounded windows; offscreen extrema determine the same scale as visible extrema.
  • AC6 — No indicators shows a select-an-indicator state; no processes shows selection guidance while preserving indicator selection.

Out of scope and follow-ups

Differences #29/#30, persistence #31/#32, final async state audit #33. No LCIA recalculation or cross-provider equivalence matching.

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.

Add score service/component and Playwright cases for source ordering, positive/negative/exact-zero, missing/unresolved cells, absent category, long precision and offscreen extremes. Switch tabs after drag/removal and assert shared selection/header alignment.

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: #26 and #27. #27 may run alongside F4 as maintainer-authorized on 2026-11-15; Scores-grid integration still requires the completed F4 gate. 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.

Current readiness and implementation handoff (2026-11-16)

Rechecked against merged main at f5769bb after PR #88. Required predecessors #26 and #27 are CLOSED, as are M1 #2 and bootstrap #3. Current main now supplies the shared virtualized grid, process headers/comparability warning, signed-value component and indicator selection provider. The original references to docs/agent-workflow and scripts not yet established describe issue creation time; current main and its committed scripts are the implementation baseline.

AC1–AC6 above remain unchanged. Implement one bounded Scores integration slice: extend the provisional typed mock/service boundary with whole-selection score extrema, validated cursor row pages and bounded score-cell batches; compose Scores from the existing shared grid/header/bar components and useIndicators state. Existing score rows/cells and three statuses (valid, missing, unresolved_basis) are available; an unmapped/absent score uses the established unavailable/missing representation, without inventing values or equivalence. Ignore unavailable cells when deriving extrema. Keep BAFU Category visually blank, preserve provider method/version/indicator/unit identity, and preserve indicator source order even if selection chronology or process order differs. Use the same selected process entries/snapshot for headers, rows, cells and summaries. No new backend or generated DTO changes before I1.

Engineering verifies its isolated guarded rootless environment with ./dev up and ./dev check; run frozen npm ci --no-audit --no-fund, existing format:check, lint, typecheck, test:unit, build, and targeted Scores Playwright journeys inside that project's workspace container. Exercise both configured Chromium and Firefox projects. Required behavior evidence covers signed/zero/unavailable states, full precision, blank Category, source ordering, row/cell/summary snapshot mismatch rejection and cancellation, bounded row/column windows with an offscreen extrema process, shared reorder/removal and tab switching, both empty-selection states, plus a targeted existing Flows regression check. Retain observed baseline timing failures and linked follow-ups #76/#91 in evidence; do not weaken assertions or claim blocked checks passed. Independent QA reviews the delivered SHA against all six criteria and applicable §9.2 gates before review/merge. No application checks were run by PM.

Differences #29/#30, persistence #31/#32, final async audit #33, full Phase 1 acceptance #34 and I1 real-service parity remain separate gates. This is ordinary implementation within specification §§6.3, 6.5–6.6, 7.1–7.3 and 9.2; no PRD/specification deviation or ADR is required.

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 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: #27. 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: READY

    Rechecked Phase 1 / F5-02 at merged main f5769bb after the maintainer's PR #88 merge confirmation. Live prerequisites #26, #27, #2 and #3 are CLOSED. Existing shared ComparisonGrid/ComparisonHeader/SignedValueCell/geometry and the merged IndicatorProvider support this bounded integration slice. AC1–AC6 are unchanged; the issue body now records actual interfaces, established container checks and current handoff.

    Engineer adds provisional whole-selection score summaries and snapshot-validated paged/batched score queries behind services, then composes Scores using the shared components and process/indicator state. Existing score rows/cells preserve decimal strings and valid/missing/unresolved_basis semantics; no runtime LCIA calculation, native-basis changes, real adapter or backend edits. Preserve source order and blank BAFU Category. Unavailable values must remain N/A with no bars and must not affect extrema.

    Verify in an isolated guarded rootless project: environment/frozen install; format/lint/types/unit/build; focused service/component cases and Scores browser journeys in Chromium and Firefox, including offscreen extrema, bounded windows, snapshot/cancellation behavior and shared tab/reorder/removal. Independently verify the delivered SHA before review/merge. Existing #76/#91 are retained as follow-ups; PM performed documentation/interface/dependency review only and claims no application test PASS. No contract deviation or ADR needed. Engineering owns implementation next; leave #28 open until QA, review and explicit approved merge.

  4. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: IMPLEMENTING

    PM READY acknowledged. Implementing AC1–AC6 on feat/f5-scores in isolated worktree /tmp/lca-diff-f5-scores, based on merged main f5769bb. Guarded rootless project lca-diff-f5-scores, port 5199, passed ./dev up and ./dev check including identity/capability restrictions, eight preflight scenarios and frozen Python tooling. Frozen frontend installation and all implementation checks run in this container. Reuse shared headers/grid/signed geometry; add score summaries, validated bounded reads and Scores composition. No differences, persistence, runtime LCIA or real adapter changes. Leave issue open for independent QA and maintainer review.

  5. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA

    Delivered SHA 21a196027078c21a8e7870e600e74a0c73c2728d, branch feat/f5-scores, PR #92. Implementation is 77dbc2b, browser-only hover correction 1513c11, final evidence/planning-only commit 21a1960. Clean worktree /home/david/projects/LCA-diff/.task-worktrees/f5-scores, guarded rootless project lca-diff-f5-scores, port 5199. Coordinator completed the engineering evidence/handoff after the implementation agent's interrupted turn.

    AC1–AC6 implemented: shared process selection/order/header actions across tabs; sticky Method/Category/Indicator/Unit with blank BAFU Category and source ordering; every indicator/process cell distinguishes exact zero and unavailable scores; shared signed geometry/full-precision tooltips and native-basis warning; paged rows, bounded cells and whole-selection extrema validate immutable snapshot/token, including offscreen extrema; empty states retain selections. Auth forwarding/denial and pending logout/account-change regression checks cover the new provisional summary operation. No runtime LCIA, differences, persistence or real-adapter changes.

    Exact container commands, criterion map, limits and failure history: docs/engineering/f5-scores-verification.md. Guarded environment/frozen install, format/lint/typecheck/build PASS. Engineering focused 25/25 and post-relocation single-worker Scores/auth/Flows/selection 46/46 PASS. Independent QA has reported 55/55 focused cases and 4/4 Scores browser cases plus smaller-desktop keyboard probes; formal final-SHA verdict remains QA's responsibility. Coordinator recovered a reproducible final combined browser result: 20/20 PASS, Chromium/Firefox, 42.7 s, using docker compose -p lca-diff-f5-scores exec -T workspace bash -lc 'cd apps/frontend && npm run test:e2e -- --grep "@smoke|Scores windows keep|Flows shows the ordered union"'.

    The ordinary full local unit run was 418/420: unchanged deep-scroll and 300-selection cases failed under the recorded conditions. They remain failures in the evidence despite passing targeted and hosted checks. Existing #76/#87/#93 (separate PR #94) and #91 retain follow-up scope. Initial composed forwarding omission and browser-test assumptions were corrected; storage EDQUOT caused relocation, and an accidentally concurrent build contaminated one smoke attempt. No assertion/time budget was weakened.

    All four hosted checks passed at 1513c11, including ordinary full units/build/critical smoke. Final documentation-head checks are running and required before review readiness. Next: QA verifies final SHA/docs-only identity, records every criterion and current-head hosted results; coordinator then marks PR ready for maintainer review. Keep #28 open. No merge/deploy/publication performed; mock/synthetic checks do not prove real authentication/API/security or full MVP acceptance.

  6. added a commit that references this issue on Nov 16, 2026
  7. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: PASS

    Independent QA reviewed delivered SHA 21a196027078c21a8e7870e600e74a0c73c2728d, branch feat/f5-scores, PR #92. Synthetic/mock mode only. QA changed no application code, tests or acceptance criteria and performed no merge or closure.

    Criterion Verdict and evidence
    AC1 PASS — shared process selection/order inspected; component and Chromium/Firefox journeys verify reorder, tab parity and global removal. An independent keyboard reorder probe confirms the same order across tabs.
    AC2 PASS — sticky Method, Category, Indicator, Unit fields; Category remains visually blank. Labels deliberately oppose alphabetic order, and rows retain source order. Smaller-desktop readability inspected.
    AC3 PASS — every selected indicator/process pair has an explicit state; exact zero displays 0, missing/unmapped/unresolved scores display N/A with reasons/warnings and no bar.
    AC4 PASS — shared signed geometry, full-precision tooltips and process metadata/comparability warning. Values survive reorder and scrolling without runtime LCIA calculation or quantity rescaling.
    AC5 PASS — bounded paged/windowed reads and whole-selection summaries reject snapshot/token mismatches before caching, reject changed later-page tokens, cancel pending batches and retain immutable old-revision reads. Large component/browser workloads verify offscreen extrema and unchanged scale.
    AC6 PASS — both empty-selection states retain the other selection. Independent keyboard removal verifies final focus on selection guidance; logout clears comparison content.

    Independent guarded-container checks passed frozen installation/dependency integrity, format/lint/types, build, 55/55 focused unit/component cases, and 4/4 Scores browser cases in Chromium/Firefox. Additional browser probes at 1280×800 passed keyboard reorder/tab parity, removal/focus, indicator retention and logout clearing. Exact commands and criterion coverage are in the committed Scores verification record; QA's focused unit run included Scores queries/grid, session, Flows composition, geometry and signed-cell tests.

    Independent unit/static/build checks ran at 77dbc2b, browser checks at 1513c11. I verified the intervening browser correction changes only test hover actions, and final 21a1960 changes only three engineering documents: application/test bytes are unchanged. Final diff whitespace and documentation consistency checks pass. No product/scientific deviation or ADR is needed; provisional summary reconciliation remains assigned to I1.

    All four exact-delivered-head hosted checks pass: frontend quality, backend quality, API quality, ETL quality. Hosted frontend evidence includes the ordinary full unit suite, build and critical browser smoke; QA did not rerun unchanged backend suites. The engineering handoff separately records the coordinator's final 20/20 combined browser result.

    The documented engineering local full-unit result remains 418/420, including existing deep-scroll and 300-selection timing failures. Targeted/hosted passes do not erase those failures or establish their root cause; #76 and #91 retain their follow-up scope. Initial storage-corrupted installation and failed validation-development/orchestration attempts were recovered and remain recorded as failures in the committed evidence, not passes. No assertion/time budget was weakened.

    Next: coordinator/maintainer review and explicit approved merge of PR #92. Keep #28 open until verified merge. Differences #29/#30, persistence/reconciliation #31/#32, async audit #33, full Phase 1 acceptance #34 and I1 real-service/auth/security parity remain separate gates.

  8. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: READY FOR REVIEW

    Issue #28 is implemented on feat/f5-scores, delivered SHA 21a196027078c21a8e7870e600e74a0c73c2728d, PR #92. PR #92 is now ready for maintainer review; #28 remains open until approved merge.

    Independent QA PASS verifies all six criteria. All four exact-head hosted checks pass: frontend quality, backend-quality, api-quality and etl-quality. Independent focused checks passed 55/55 and Scores browser checks 4/4 in Chromium/Firefox; the final combined smoke/Scores/Flows browser run passed 20/20. Exact commands, criterion evidence and limitations are in the committed docs/engineering/f5-scores-verification.md.

    Scores shares process order/actions with Flows, keeps source indicator order and blank Category, preserves decimal precision and distinct zero/N/A states, and uses bounded snapshot-consistent reads with whole-selection signed scales. Evidence is synthetic/mock only; differences, persistence, complete Phase 1 acceptance and real integration/security remain separate gates.

    The earlier local broad unit run had two failures (418/420); passing targeted and hosted runs do not erase them. Existing follow-ups #76/#87/#93 (separate PR #94) and #91 remain separate. No assertions/time limits were weakened. Issue #27 is closed after verified merge of PR #88. No PR merge, deployment or publication performed. Next action: maintainer review of PR #92.

  9. added a commit that references this issue on Nov 16, 2026
  10. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: MERGED/CLOSED. Maintainer confirmed PR #92 merged; verified merge commit d4827c5. Independent QA PASS at 21a1960 is recorded above; all four hosted checks passed on final merged PR head f8dd899. Closing as requested. No further work started; awaiting maintainer instructions.

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