Skip to content

[Task] F5 — Reconcile restored IDs and publication changes atomically #32

Open

Description

@DavidVFitzGerald

Delivery phase

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

Goal

Handle stale saved selections and newly published revisions without mixing old and new comparison data.

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.8, 7.3, 9.2 behaviors 12, 17. Planned files: apps/frontend/src/services/ restore resolution/mock publication scenarios, workspace restore/query orchestration and tests (planned).

Requirements and constraints

Resolve saved IDs through typed services after auth and preserve valid order. Coordinate initial metadata, headers, rows, cells and caches as one revision snapshot. Publication notification or refresh stays read-only; no frontend admin publication controls.

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 — Missing/removed process IDs are skipped with a visible explanation while valid IDs retain order; unavailable selected indicators are handled explicitly rather than silently mapped to unrelated indicators.
  • AC2 — Restore does not expose another UID's state and does not fetch a full cell matrix to validate identifiers.
  • AC3 — When a new publication appears, show a non-blocking refresh notice or reload the workspace as one unit; old rows and new cells are never combined.
  • AC4 — STALE_SNAPSHOT/RELEASE_UNAVAILABLE and obsolete restore responses result in explicit recovery states; refreshing preserves valid selections and resets impossible toggle states.
  • AC5 — Revision transition invalidates affected eligibility/window/header caches and prevents responses from a prior revision/account overwriting current data.

Out of scope and follow-ups

Final generic failure/loading accessibility polish #33, final phase evidence #34. No real backend publication, exports or cloud workspace feature.

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/controller tests simulate old/new revisions, removed IDs, missing indicators, out-of-order responses and auth switches. Playwright reload/refresh scenario asserts visible explanation, consistent snapshots and retained valid ordering.

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: #31. 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

  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: #31. 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. added
    post-MVP
    on Nov 16, 2026
  4. removed
    blocked
    on Nov 16, 2026
  5. DavidVFitzGerald commented on Nov 16, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Deferred to post-MVP (coordinator, 2026-11-16) per the maintainer's local-only MVP scope revision, ADR 0006 (#95). Depends on persistence #31 (post-MVP). Revision-change handling beyond what B2 snapshots and existing STALE_SNAPSHOT handling provide is not needed for a local single-release MVP. Body and criteria are retained unchanged for later re-grooming; recheck dependencies (now partly on L1–L3: #96, #97, #30) before any future start.

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

    frontendpost-MVPtask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions