Skip to content

feat: L3 differences toggles and local MVP acceptance - #109

Merged
DavidVFitzGerald merged 5 commits into
mainfrom
feat/l3-differences
Nov 16, 2026
Merged

DavidVFitzGerald merged 5 commits into
mainfrom
feat/l3-differences

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #30 (L3, final local-MVP PR under ADR 0006). Refs #107 (defect found during acceptance and fixed here).

Behavior

  • Differences toggles (spec §6.7): Flows and Scores each have an independent "Show differences only" switch. Each starts off, survives tab switches, and is disabled and reset to off below two processes. Switches live in memory only (persistence is post-MVP [Task] F5 — Persist the versioned account-scoped workspace #31).
  • On sends differences_only: true in the canonical row-page key (sorted processes, snapshot, sorted indicators, tab, flag). Off omits the flag and reuses the cached full session. Reordering reuses both sessions. Membership, indicator or revision changes create new keys. Turning a switch off cancels an in-flight difference read. A failed read shows Retry and no rows from the failed session. An empty difference set says so explicitly.
  • Mock: minimal exact predicates matching the API (-0 = 0, absent ≠ zero, valid ≠ N/A, different N/A states differ, uniform N/A is equal). Exhaustive mock work stays in [Task] F5 — Implement exact on-demand difference queries in mock services #29.
  • [Bug] Scores fails with INVALID_FILTER when two releases are published #107: with two published releases (seed + opt-in BAFU import), every Scores read failed with 422 INVALID_FILTER because the default selected both releases' GWP 100. Scores now requests only indicators of the selected processes' releases and explains when none applies. No API change.
  • Real-stack E2E: two new journeys. One covers the differences toggles on seeded data. The other is a §9.3 UAT journey: name + geography filtered category, reference-unit warning, indicator order and header × removal.

Checks (inside the rootless workspace / ./dev)

  • format, lint, typecheck, contracts:check, build: pass
  • Vitest: 472 / 37 files pass
  • Mock Playwright: 72/72 (Chromium + Firefox), at both the toggle and fix commits
  • Real stack (app-up, app-smoke 9/9, app-e2e): 7/7 Chromium and 7/7 Firefox on seed-only stacks. The publication pointer is byte-identical across app-down/app-up.
  • Opt-in representative BAFU import: B3 ready, B4 promote/publish succeeded, and the release is visible in the app. Evidence is non-sensitive only.

Details: docs/engineering/local-mvp-verification.md.

Limitations

  • The synthetic seed has no equal flow rows, so on seeded data Flows hides nothing. The hide case is covered by the B2 PostgreSQL API test and the mock tests. Changing the seed would force app-reset on existing volumes.
  • The real suite assumes a seed-only stack. After the opt-in import, three journeys fail on environment assumptions (two releases listed).
  • Follow-up [Task] Distinguish releases in the indicator tree when several releases are published #108: label releases in the indicator tree when several are published.
  • Independent QA (clean clone) pending; no merge without maintainer approval.

🤖 Generated with Claude Code

DavidVFitzGerald and others added 5 commits November 16, 2026 15:28
…Refs #30)

Flows and Scores each get an independent 'Show differences only' switch.
Switches start off, survive tab switches, and are disabled and reset below
two processes. They are in-memory only (persistence is post-MVP #31).
On sends differences_only=true in the canonical row-page key; off omits
the flag and reuses the cached full session. The mock gains minimal exact
predicates matching the API.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Checks off-by-default, disabled below two processes, per-tab independence,
a single flows differences_only read, cache reuse when toggling, absent vs
present zero kept, and a uniformly missing GWP 100 hidden in Scores.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ator order and removal (Refs #30)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#107, #30)

With two published releases the default selected both releases' GWP 100,
and Scores reads failed with INVALID_FILTER because indicators are
release-native and the API scopes them to the revision snapshot. Scores now
requests only indicators of the selected processes' releases and explains
when none applies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant