Skip to content

[Task] F4 — Add snapshot-consistent flow windows and whole-row chart summaries #20

Closed

Description

@DavidVFitzGerald

Delivery phase

Phase 1 - frontend with mock services. Milestone F4; task key F4-01.

Goal

Give the grid bounded row/cell reads and whole-selection chart extrema without fetching the entire matrix.

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.4, 6.6, 7.1–7.3, 9.1. Planned files: apps/frontend/src/services/ provisional comparison DTOs, mock adapter, comparison query hooks, and service tests (planned).

Requirements and constraints

Extend the provisional services contract and mock adapter together; document this frontend-only read-summary extension for later OpenAPI reconciliation. This issue does not mandate or implement a production endpoint/DTO change; any later material API change follows the ADR/spec workflow. Return canonical decimal-string P/N (or equivalent extrema) and sign/zero summary per row for all selected processes, independent of the visible column window. This is read-only chart metadata, not ETL aggregation or difference filtering. Use revision snapshots, stable row keys and cursors, modest overscan, AbortSignal, and structured errors.

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 — A selected-process union returns only represented (flow_id, flow_type) rows with deterministic §6.4 ordering and stable next cursors.
  • AC2 — Row/cell responses and summary metadata refer to the same immutable revision snapshot; stale/mismatched requests fail explicitly rather than mix revisions.
  • AC3 — A row whose largest magnitude is offscreen has identical P/N, chart height and scale for every visible window; metadata is requested per row window rather than all cells.
  • AC4 — Present zero and absent cells remain distinct; cell warnings remain process-specific; no differences computation runs in ordinary row-summary requests.
  • AC5 — Aborted/obsolete requests cannot overwrite newer query results, and transport batching never imposes a selection-count cap.

Out of scope and follow-ups

Chart rendering is #22; window mounting is #23; final Flows composition is #24. No backend endpoints, normalization or ingestion.

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 service/query tests with more selected processes than one column window, offscreen ± extrema, present-zero/absence, multiple pages, aborts and publication changes. Assert bounded requested IDs, exact decimal strings, snapshots and request counts.

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: #19. 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 — supersedes historical planning baseline/blockers above

Rechecked 2026-11-14 on main at d3fddb1. #19 (PR #62) is merged and closed, so F3 is complete; the M1/M2 gates were satisfied earlier.

Merged interfaces this issue builds on (#8, #9)

  • flowRows: cursor-paged, deterministic §6.4 order, union of represented flows, comparison_token bound to the canonical process set, the tab and the snapshot.
  • flowCells: windowed. Processes and rows are each at most 100 per request and their product at most 1000. It rejects stale or mismatched snapshots with STALE_SNAPSHOT.
  • Query options for both.
  • AC1/AC2 behaviour already exists at the service level. This issue adds the missing whole-selection chart summary, the query/batching layer and the evidence.

Decisions

  • D1 Provisional contract extension (frontend-only, no ADR).
    • New method DataService.flowSummaries(FlowSummariesRequest). The request is {revision_snapshot, comparison_token, process_ids, row_keys}, where process_ids is the complete selection (unbounded) and row_keys is one row window (at most 100).
    • The response is CellsResponse-like: {summaries, revision_snapshot, comparison_token, request_id}.
    • Each FlowRowSummary holds:
      • row_key;
      • max_positive (P), the exact decimal lexeme of the largest positive present amount, or "0";
      • max_negative_magnitude (N), the exact lexeme of the most negative present amount without its sign, or "0";
      • positive_count, negative_count, zero_count and absent_count over all selected processes.
    • The request sends the full process set as well as the token, so a real backend can stay stateless (spec §7.3: correctness must not depend on a cached token).
    • It is documented in services/README.md as a provisional read-summary extension that I1 must reconcile with OpenAPI. There is no production endpoint or spec change in this issue.
  • D2 Exact decimals.
    • New pure services/decimal.ts: compareDecimal, decimalSign and decimalMagnitude. Exact comparison of lexemes, including exponents and signed zero (-0 is zero). No floats.
    • On ties the first process in canonical ID order wins, so the output is deterministic.
  • D3 Mock.
    • The mock validates that the token exists, that the snapshot is identical to the token's (STALE_SNAPSHOT otherwise), that process_ids equals the token's process set exactly, and that every row key belongs to the token's rows.
    • Rows are bounded by window_limit.
    • It computes extrema over every selected process. There are no difference predicates.
  • D4 Query layer (src/app/queries.ts).
    • flowRowPages(input): infinite cursor query.
    • flowSummaries(input).
    • flowCellWindow(...): splits any visible row × column window into transport batches within the window and cell limits, merges them in request order, and aborts every batch together.
    • A pure cellBatches helper is unit-tested.
    • All keys include the token and snapshot, so obsolete or aborted results cannot overwrite newer keys.
  • D5 Scope. No UI in this issue: chart geometry is [Task] F4 — Implement exact signed-bar geometry and full-precision value tooltips #22, virtualization [Task] F4 — Virtualize comparison rows and columns with sticky alignment #23, composition [Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24. Scores summaries follow in F5.

Objective verification

  • Unit: decimal.test.ts (ordering across exponents, signs, zeros and long lexemes) and cellBatches.
  • Mock service (mock/comparison.test.ts):
    • Summaries over 250 selected processes, more than two column windows, with the extreme value outside any first window.
    • P/N identical across every cell-window choice, with exact lexemes.
    • Present zero distinct from absent, and warnings only on the affected cell.
    • Stale, evicted or mismatched token, snapshot or process set fails explicitly.
    • Row-window bound.
    • No difference work.
  • Query (src/services/mock/comparison-queries.test.tsx or src/app/queries test):
    • Infinite row pages follow cursors with stable keys.
    • The cell window issues bounded batches (asserting requested IDs and counts) for 250 processes.
    • Abort cancels every batch.
    • An obsolete slow response for an old token never replaces the newer result.
    • An old snapshot keeps being served after a new revision is selected.
  • Container commands: format:check, lint, typecheck, test:unit, build, and e2e @smoke plus the full suite for regression. There is no new browser journey: the grid UI is [Task] F4 — Virtualize comparison rows and columns with sticky alignment #23/[Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24.

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 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: #19. 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. removed
    blocked
    on Nov 14, 2026
  4. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    PM: READY

    Phase 1 (frontend with mock services), milestone F4, F4-01. Dependency #19 is merged, so F3 is complete. Spec: §§6.4, 6.6, 7.1–7.3, 9.1.

    Decisions D1–D5 are in the issue body's Current readiness section:

    • a provisional flowSummaries read-summary method that takes the complete process set plus the token, documented for I1 OpenAPI reconciliation, with no production or spec change;
    • exact decimal-lexeme extrema;
    • strict snapshot and token validation;
    • query helpers for row pages, summaries and batched cell windows;
    • no UI.

    No ADR is needed: the issue explicitly scopes this as a provisional frontend-only extension and makes no material production API change. Next: Software Engineer.

  5. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA

    PR #63, branch feat/f4-flow-windows, delivered SHA e19235a (based on main d3fddb1).

    Container lca-diff-f4-flows results:

    • format:check, lint, typecheck and build: PASS
    • test:unit: 250/250 (3 consecutive runs)
    • e2e @smoke: 12 passed
    • e2e full: 36 passed

    AC evidence:

    • AC1: comparison-queries.test.ts (cursor pages, §6.4 group order, stable replay) plus the existing comparison.test.ts union tests.
    • AC2: flow-summaries.test.ts (stale, unknown, evicted, revision-bound and mismatched inputs; the old revision keeps serving its own values) plus the window rejecting a mixed-revision batch.
    • AC3: 250 processes with the extremes at processes 180 and 220; summaries identical for three column windows and for reordered columns.
    • AC4: present zero, -0 and absent stay distinct; warnings stay on the affected cell; no difference work.
    • AC5: a cancelled window aborts all five batches; an obsolete slow summary is aborted and never stored; 5,000-process batching with no cap.

    Hosted full CI: https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43629402876. Next: independent QA.

  6. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: FAIL

    Reviewed: PR #63, branch feat/f4-flow-windows, SHA e19235a25a770ca37814ab59a2c57f48420e5fbf, in a detached worktree. Phase 1, mock mode only. Nothing here validates a real backend, real auth or data security.

    Environment: rootless Docker Compose project lca-diff-qa20 with FRONTEND_PORT=5195. No host runtimes were used.

    The verdict is FAIL because of one medium defect in the AC2 revision-consistency guard. Every gate passes, and AC1, AC3, AC4 and AC5 pass.

    Commands and results

    Command Result
    COMPOSE_PROJECT_NAME=lca-diff-qa20 FRONTEND_PORT=5195 ./dev up && … ./dev check PASS: rootless identity, restricted capabilities, toolchain, frozen lock and workspace writes; 8 preflight scenarios passed
    docker compose -p lca-diff-qa20 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 test:unit && npm run build && npm run test:e2e -- --grep @smoke && npm run test:e2e' exit 0
    ↳ npm ci 232 packages
    ↳ format:check PASS
    ↳ lint (--max-warnings 0) PASS
    ↳ typecheck PASS
    ↳ test:unit 250/250, 21 files
    ↳ build PASS
    ↳ e2e @smoke 12 passed
    ↳ e2e full 36 passed
    Temporary QA probe: npx vitest run src/services/mock/qa20-probe.test.ts 11/11. The probe records the defect behaviour below. It was deleted afterwards and not committed.
    gh pr checks 63 quality pass (run 43629405178, head e19235a)
    gh run list --branch feat/f4-flow-windows Both runs succeeded: the pull_request run 43629405178 and the workflow_dispatch Frontend run 43629402876, both at e19235a

    Per-AC findings

    • AC1: PASS.
      • flowRowPages follows next_cursor and returns no duplicate rows.
      • Rows follow §6.4 group order. Every page shares one token, and replaying a cursor returns the same page (comparison-queries.test.ts).
      • Probe: an obsolete slow page for an old selection never replaced the newer infinite query, whose total_count matched the full selection.
    • AC2: FAIL (Defect 1).
      • The mock is correct. It rejects unknown or evicted tokens and unknown revisions as STALE_SNAPSHOT. It rejects a subset, a duplicate-padded subset, a token for a different selection, a scores token and foreign rows as INVALID_FILTER. It rejects revision-bound IDs used under another snapshot as UNKNOWN_PROCESS. A malformed or empty snapshot is INVALID_FILTER. An older revision still serves its own values. All of this was reproduced by the probe and the existing tests.
      • The query-layer guard does not enforce what its own docstring and the README promise; see Defect 1.
    • AC3: PASS.
      • FlowSummariesRequest has no column-window parameter. P and N for 250 processes, with the extremes at indices 180 and 220, are identical across three column windows and in reversed order.
      • Each request carries one row window: at most 100 unique keys pass, and 101 are rejected with REQUEST_WINDOW_TOO_LARGE. Duplicate keys are deduplicated first, and an empty window returns [].
      • Chart height and scale follow from P and N under §6.6. Rendering them is [Task] F4 — Implement exact signed-bar geometry and full-precision value tooltips #22.
    • AC4: PASS.
      • Present 0, -0, 0.000, 0e5 and +0 each count as zero and stay distinct from absence.
      • When every value is zero: P = N = "0", zero_count = 12.
      • With only negative values, P = "0"; with only positive values, N = "0". Counts are correct when absences are mixed in.
      • Ties go to the first canonical ID whatever the request order: -8e1 against -80.00 returns the first ID's lexeme.
      • Warnings stay on the affected cell, and summaries carry no warnings field. No difference predicate runs.
    • AC5: PASS.
      • A cancelled window aborts all five batches. A slow obsolete summary is aborted and never stored.
      • A pre-aborted signal rejects with AbortError.
      • Query keys differ by token and by snapshot, and do not collide with plain flowCells. Input is captured, so mutating the caller's input after building the options changes nothing.
      • cellBatches stays within both the row-and-process limit and the cell limit for awkward shapes: 1×5000, 101×1, 7×333, 999×3, 50×50 with 7 cells, and 3×3 with 2/1. It covers every pair exactly once and does not cap the selection.
      • When one batch fails, the whole window fails with that structured error.

    Decimal probe (D2): PASS

    • Values compare equal across forms: 1e3 = 1000, 0.0001e4 = 1, 00.0001e+0004 = +1, +.5 = 5e-1, -0e-99999 = 0e99999, and a 30-digit integer equals its e29 form.
    • Ordering is strict and exact:
      • 1e399 < 1e400
      • -1e400 < -1e399
      • -1e-400 < 0 < 1e-400
      • 0.09 < 0.1
      • 1 < 1.0000000000000000000000000000001
      • 9.99999999999999999999e5 < 1e6
    • The comparator is antisymmetric over a mixed pool.
    • Exponents beyond the safe-integer range throw TypeError; see Defect 2.

    Contract, ADR and boundaries

    • ADR: none needed now.
      • flowSummaries is a provisional, frontend-only DTO that the issue and D1 scope explicitly. It adds no production endpoint and changes no spec or PRD meaning.
      • It supports §6.6 (P and N over all selected processes) and §7.1 ("compute consistent aggregate results server-side").
      • services/README.md documents it and says I1 must reconcile it through the ADR/spec workflow. Adopting a real endpoint in B2 or I1 will need a spec update, plus an ADR if it deviates from §7.1.
    • Boundaries: PASS.
      • Mock imports outside src/services/mock/ appear only in app/composition.ts, the boundary test and the existing contracts.test.ts.
      • No component calls flowSummaries, flowCellWindow or flowCells, or uses fetch. flowSummaries is in the auth-guarded operation list.
    • Historical folders: not used.

    Defects

    1. Medium (blocking, AC2): flowCellWindow does not check batch snapshots against the requested snapshot.
      • Code: src/app/queries.ts (flowCellWindow) compares each batch's token with the request's. It compares each snapshot only with the previous batch's snapshot, never with dto.revision_snapshot.
      • Steps: take a 5-process × 5-row window, which needs only one batch. Wrap flowCells so that it returns revision_snapshot: [{…, revision_id: "other"}]. Then call client.fetchQuery(queries.flowCellWindow({revision_snapshot: snapshot, …})).
      • Expected: STALE_SNAPSHOT. The docstring says "Every batch must answer with the request's token and snapshot, so revisions are never mixed", and the README says a batch answering with a different snapshot "fails the window".
      • Actual: the call succeeds with snapshot other, and the result is cached under the requested snapshot's key (probe output: ok:other).
      • Impact: the same thing happens when every batch is consistently foreign. Most windows (≤1000 cells) are a single batch. Once a real adapter exists, cells from another revision could be cached beside rows and summaries for the requested revision. The mock rejects mismatches itself, so this does not show in Phase 1 today.
      • Related: the new flowSummaries query also never validates the response's token or snapshot.
      • Fix: compare every batch, and the summaries response, with dto.revision_snapshot and dto.comparison_token. Add a single-batch regression test.
    2. Low (non-blocking): huge exponents fail as an unstructured rejection. decimalString accepts 1e99999999999999999999, but decimal.ts throws TypeError because the exponent is not a safe integer. If the mock summary meets such a value, the promise rejects with a raw TypeError instead of a structured ServiceError. Real data is unlikely to hit this. Either document the limit or map it to a structured error.
    3. Low (non-blocking, tracking): the I1 obligation is recorded only in the README. The duty to reconcile flowSummaries with OpenAPI appears only in services/README.md, not on the roadmap's I1/B2 rows or an issue. The coordinator should record it where I1 work will pick it up.

    Info: when one batch returns a structured error, the window does not abort its sibling batches; they run to completion. This is acceptable.

    Next action

    Engineering fixes Defect 1 and adds a regression test, then hands back a new SHA. QA will then recheck AC2 and the affected query tests. Defects 2 and 3 can be handled in the same PR or as follow-ups, at the coordinator's discretion.

  7. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Engineering: READY FOR QA (re-verify)

    Delivered SHA 2382aa4 on PR #63.

    QA findings addressed:

    • D1 (medium): flowCellWindow now checks every batch, including a lone one, against the requested token and the release-ordered requested snapshot. flowSummaries and flowRowPages responses are checked the same way. A mismatch fails as STALE_SNAPSHOT and is never cached under the request key.
      • New regression tests cover a lone batch and every batch answered from another revision, a lone batch with the wrong token, release order not mattering, and summaries and row pages answered from another revision or token.
      • I confirmed the two new mismatch tests fail against the previous queries.ts.
    • D2 (low): decimal.ts uses BigInt exponents, so 1e99999999999999999999 and similar values compare exactly. Test added.
    • D3 (low): the roadmap I1 section now records the flowSummaries OpenAPI reconciliation duty: B2 provides an equivalent stateless endpoint, or the spec/ADR workflow replaces it.

    Container results:

    • format:check, lint, typecheck and build: PASS
    • test:unit: 254/254 (3 consecutive runs)
    • e2e @smoke: 12 passed
    • e2e full: 36 passed

    Hosted full CI: https://github.com/DavidVFitzGerald/LCA-diff/actions/runs/43630184577

  8. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    QA: PASS

    Reviewed: PR #63, branch feat/f4-flow-windows, SHA 2382aa49988665d474adfd49d2e83c8dad1a3fed, in a detached worktree. Phase 1, mock mode only. Nothing here validates a real backend, real auth or data security.

    Environment: rootless Docker Compose project lca-diff-qa20b with FRONTEND_PORT=5195. No host runtimes were used.

    D1, D2 and D3 are fixed, every gate passes and AC1–AC5 hold. One new low, non-blocking observation is listed below (O1).

    Commands and results

    Command Result
    COMPOSE_PROJECT_NAME=lca-diff-qa20b FRONTEND_PORT=5195 ./dev up && … ./dev check PASS: 8 preflight regression scenarios passed
    docker compose -p lca-diff-qa20b 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 test:unit && npm run build && npm run test:e2e -- --grep @smoke && npm run test:e2e' exit 0
    ↳ npm ci 232 packages
    ↳ format:check, lint, typecheck, build PASS
    ↳ test:unit 254/254, 21 files
    ↳ e2e @smoke 12 passed
    ↳ e2e full 36 passed
    Temporary QA probe, run after the clean suite: npx vitest run src/services/mock/qa20-probe.test.ts 13/13. It was not committed and was removed with the worktree.
    gh pr checks 63 quality pass (run 43630189057, pull_request, head 2382aa4)
    gh run view 43630184577 workflow_dispatch Frontend run: success at 2382aa4

    Earlier findings

    • D1 (medium): FIXED.
      • queries.ts has a new mismatch() that compares each response's snapshot with the requested snapshot after sorting both by release, and compares tokens whenever the request sent one.
      • It is applied to every flowCellWindow batch, including a lone batch, and to flowSummaries and to every flowRowPages page.
      • Probe: the earlier single-batch probe (5×5, response revision other) now gives err:STALE_SNAPSHOT, where it previously gave ok:other. getQueryData for the request key stays undefined, so nothing is cached.
      • Legitimate responses: I used a fake service, because the mock has only one release, so the engineer's "reverse order" test cannot reorder anything. With the request [C, A, B]:
        • Responses [A,B,C], [B,C,A], [C,A,B] and copied objects are all accepted. This held for a multi-batch window (30×50), a lone batch, summaries and row pages.
        • A different revision of C, a missing release, an extra release, an empty snapshot and a duplicated ref are all rejected as STALE_SNAPSHOT.
        • A wrong token on summaries or on a cell window is rejected.
    • D2 (low): FIXED. Exponents are now BigInt.
      • These hold: 1e99999999999999999999 > 1; it is also > 1e99999999999999999998; -1e…99 < -1e…98; 1e-…99 > 0; 10e…98 = 1e…99; 0e…99 = -0.
      • The mock summary with a stored 1e99999999999999999999 now returns ok, with P equal to that lexeme.
      • All earlier decimal equality, ordering and antisymmetry probes still pass.
    • D3 (low): FIXED. The roadmap's I1 section now records the duty to reconcile flowSummaries with OpenAPI: B2 provides an equivalent stateless endpoint, or the spec/ADR workflow replaces it. The README matches.

    Per-AC status

    • AC1: PASS. Cursor pages, §6.4 order and stable replay pass in the suite. The probe shows an obsolete slow page for an old selection does not replace the newer infinite query.
    • AC2: PASS. The mock rejects stale, unknown, evicted, subset, foreign-token and revision-bound mismatches, as before. The query layer now rejects responses from a foreign snapshot or token for cells, summaries and rows (see D1).
    • AC3: PASS. P and N are the same across column windows and in reversed order. Row windows are limited to 100 unique keys, and 101 is rejected.
    • AC4: PASS. Each zero form (0, -0, 0.000, 0e5, +0) stays distinct from absence. Counts and ties are correct. Summaries carry no warnings, and no difference predicate runs.
    • AC5: PASS.
      • Abort reaches every batch, and an obsolete summary is never stored.
      • cellBatches stays within limits for awkward shapes and has no selection cap.
      • Query keys are separated, and input is captured.
      • A failing batch fails the window with a structured error.

    Docs and contract

    • The README and roadmap are consistent with spec §7.1 and §7.3: one immutable snapshot per grid session, with no mixed revisions.
    • No ADR is needed, for the same reason as before: the provisional DTO is frontend-only, and its reconciliation is now tracked under I1.
    • The historical folders were not used.

    New observation (non-blocking)

    • O1 (low, hardening): pages within one flowRowPages query are not checked against each other's token.
      • ComparisonRowsRequest carries no token, so every page passes as long as its snapshot matches.
      • Probe: a fake service answers page 1 with token t1 and page 2 with t2, both under the requested snapshot. The query succeeds and caches pages with tokens ["t1","t2"].
      • Why it is non-blocking: revisions still cannot mix, because the snapshot is enforced on every page, which is what AC2 requires. The mock always returns one token per selection.
      • Suggestion: for the real adapter (I1), require pages after the first to match the first page's token. The coordinator can fold this into I1 or a small follow-up.
    • Info: flowCellWindow still keeps the unused snapshot ?? dto.revision_snapshot path. The result reports the response's snapshot (release-sorted), which is equivalent. Plain flowCells and the score queries do not run mismatch, but they are outside [Task] F4 — Add snapshot-consistent flow windows and whole-row chart summaries #20's scope.

    Next action

    Ready for maintainer review and merge (coordinator). O1 is optional hardening for I1.

  9. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Coordinator: ready for review

    PR #63 head: 2382aa4.

    The issue stays open until the maintainer merges.

  10. DavidVFitzGerald commented on Nov 14, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Closed after independent QA PASS (at 2382aa4), passing hosted CI and the maintainer's merge of PR #63 (16e9802). Follow-up O1 is tracked in #64.

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

    frontendtask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions