Skip to content

feat(reports): leftover-map distance on grouping comparison graphic (v2.76.0) - #859

Draft
seonghobae wants to merge 8 commits into
feat/leftover-map-compare-plot-rank-v2750from
feat/leftover-map-compare-plot-distance-v2760
Draft

feat(reports): leftover-map distance on grouping comparison graphic (v2.76.0)#859
seonghobae wants to merge 8 commits into
feat/leftover-map-compare-plot-rank-v2750from
feat/leftover-map-compare-plot-distance-v2760

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Caption persisted leftover-map distance d on the grouping-comparison leftover-map graphic from already-named leftover_distance (ADR 0319 / v2.76.0), without adding a comparison-only static translation key.

Current exact authority

RED → causal product repair

The predecessor contract incorrectly demanded a new English-only LEFTOVER_MAP_COMPARE_PLOT_SEGMENT_DISTANCE, repeating localization debt already found and repaired in #858. The contract now rejects that dedicated key and requires composition of the already-localized comparison-graphic label with the already-localized generic distance label.

Production LeftoverMapPlot uses that composition only for variant="comparison"; report rendering keeps its existing generic distance accessible name. The exact current production expression is ${t(LEFTOVER_MAP_COMPARE_PLOT_LABEL)}: ${tf(LEFTOVER_MAP_PLOT_SEGMENT_DISTANCE, { label })}, so the English current-head accessible name is Leftover map comparison graphic: leftover-map distance d …. leftoverMapDistanceLocalization.test.ts verifies ko/zh/ja/vi behavior and runtime d substitution. Distance still comes only from persisted pair.leftover_distance through the fail-closed formatter: missing/non-finite omits the caption, finite zero/signed values remain data-driven and unclamped.

Current exact-head validation / remaining RED

Tests run 34661368261 is authoritative for this head.

  • PostgreSQL/full-suite job 103464435638: terminal GREEN
  • frontend job 103464435494: lint GREEN; Test RED; build/Storybook skipped after Test RED
  • Vitest result: 65 files, 64 passed / 1 failed; 867 tests, 859 passed / 8 failed
  • leftoverMapDistanceLocalization.test.ts and leftoverMapRankLocalization.test.ts are GREEN
  • all eight failures are in frontend/src/components/LeftoverMapPlot.test.tsx at the comparison-only omission cases around lines 1278, 1394, 1520, 1656, 1802, 1958, 2123, and 2294. Each still demands the old report-only exact name leftover-map distance d … even though the intentional comparison accessible name is Leftover map comparison graphic: leftover-map distance d ….

The report-variant assertions near the start of the same file remain correct and must not change. This is a stale executable consumer-test contract, not a reason to revert the localized comparison name, add an English-only alias, add hidden duplicate accessible nodes, loosen assertions, or weaken a11y semantics. The minimal causal fix is to migrate only those eight comparison-variant expectation pairs, then rerun exact-head frontend lint/test/build/Storybook; a new head must receive fresh repository/security/browser/a11y/performance evidence before promotion.

The complete current LeftoverMapPlot.test.tsx blob 2ac6230131579c8dccf4d202a821a3d1cdb4ff1b has now been read end-to-end, and the eight stale pairs plus the intentionally unchanged report-mode assertions were re-verified against current production source. Partial-retrieval uncertainty is no longer a valid reason to defer the test repair. Because #860/#861 and the serialized descendant stack consume this exact ancestry, any source-head move here must be followed in the same maintenance lane by ordinary non-force descendant convergence; do not move #859 and leave descendants stale, and do not reconstruct unrelated test regions.

Translation-owner boundary

Issue #922 / PR #929 remain the canonical versioned translation-ledger path. This PR adds no DB schema, comparison-only translation resource, cross-service SQL, provider/model dependency, or competing translation authority. Historical v2.76 copy is semantic evidence only and must not be replayed wholesale.

Keep Draft until the eight comparison assertions are safely migrated with descendant convergence and fresh exact-head repository/security/browser/a11y/performance evidence plus qualifying independent approval are current. No self-approval, bypass, force-push, destructive rebase, ancestor skip, generated-lock hand edit, stale-evidence transfer, hidden compatibility label, or historical-tree replay.

…v2.76.0)

Caption persisted leftover-map distance d on the grouping
comparison leftover-map graphic from already-named leftover_distance
(ADR 0319). Comparison copy uses leftover map comparison graphic leftover-map
distance {label} so it stays distinct from leftover-map distance {label}.
A missing or non-finite d omits that caption and keeps leftover-map rank,
leftover expected, leftover observed, leftover residual, leftover-map unexplained leftover,
leftover-map reconstruction, and comparison graphic coverage notes.
Rank-0 origin cells still name d 0.00 when that leftover-map distance is finite.
Do not caption leftover-map coordinate ticks this increment.
Do not invent leftover-map distance from plotted coordinates. Never invent a leftover score.
Never invent a theta. No new columns.
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 0307a4d2-8d81-40dc-b9b0-02c28d4749c0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Contributor Author

Exact head 9ba8535 stacked on #858 @ 4b9184f. Comparison graphic leftover-map distance uses leftover map comparison graphic leftover-map distance {label} so it stays distinct from hyphen leftover-map distance {label}. Independent APPROVE required on this leftover-map distance increment before squash-merge. Do not self-approve. Do not squash-merge onto the unprotected leftover base. Issues #79 and #87 stay open. Next buyer increment is leftover-map coordinate ticks on this comparison graphic (ADR 0320 / v2.77.0).

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Copy link
Copy Markdown
Contributor Author

Cycle 2026-08-31T00:18Z. Exact head 9ba8535 (v2.76.0 / ADR 0319 leftover-map distance on grouping comparison leftover-map graphic). Independent APPROVE required on this exact head before squash-merge. Copilot/Devin COMMENT is not independent APPROVE. Do not self-approve. Do not squash-merge onto the unprotected leftover base. Issues #79 and #87 stay open. Do not merge #808 without independent APPROVE.

Next buyer increment (explicitly deferred in ADR 0319): leftover-map coordinate ticks on the grouping comparison leftover-map graphic with a distinct comparison-graphic accessible name (ADR 0320 / v2.77.0), stacked on this head. Period-report ticks already sit through ADR 0270. Do not invent leftover-map distance from plotted coordinates. Never invent a leftover score. Never invent a theta. No new columns. Synthetic fixtures only.

Copy link
Copy Markdown
Contributor Author

Cycle 2026-08-31T00:28Z. Exact head 9ba8535 (v2.76.0 / ADR 0319). Independent APPROVE still required. Stacked next increment is #860 leftover-map coordinate ticks on grouping comparison leftover-map graphic (v2.77.0 / ADR 0320) @ 40fa5bd. Do not self-approve. Do not squash-merge. Issues #79 and #87 stay open. Do not merge #808 without independent APPROVE.

@seonghobae
seonghobae marked this pull request as draft September 4, 2026 08:05
Adopt exact reconstructed #858 as the current tree while preserving historical #859 as first parent. Retain the v2.76 distance product delta as executable RED: the comparison graphic must name persisted leftover_distance with distinct comparison copy, omit only missing/non-finite evidence, preserve finite zero/signed values, and never derive distance from plot geometry. Exact #858 is the second parent. No force update or destructive rebase.
seonghobae added a commit that referenced this pull request Sep 10, 2026
Adopt exact reconstructed #859 as the current tree while preserving historical #860 as first parent. Retain the v2.77 coordinate-tick product delta as executable RED: comparison ticks need distinct accessible copy and must come only from the origin plus persisted ξ/ζ projections, never from leftover distance or fabricated spacing. Exact #859 is the second parent. No force update or destructive rebase.
Adopt exact repaired #858 head 0a10ded without force-updating or replaying stale historical source. Preserve the existing #859 reconstruction as first parent, carry its executable distance RED unchanged, and take the repaired #858 tree as the second parent so the descendant no longer drops the rank accessible-name fix.
seonghobae added a commit that referenced this pull request Sep 11, 2026
Adopt exact converged #859 head 57790ab without force-updating or replaying stale historical source. Preserve the existing #860 reconstruction as first parent, carry its executable tick RED unchanged, and take the converged parent tree as the second parent so repaired rank ancestry remains intact.
Adopt exact #858 head d19c260 after its production docstring repair. Preserve the existing #859 convergence as first parent and the distance RED unchanged; take the documented repaired rank tree as second parent without force update.
seonghobae added a commit that referenced this pull request Sep 11, 2026
Adopt exact converged #859 head 7eccaed without force-updating or replaying stale source. Preserve the existing #860 convergence as first parent, retain its tick RED unchanged, and take the updated parent tree as second parent.
chore(stack): converge #859 onto repaired #858 head
seonghobae added a commit that referenced this pull request Sep 11, 2026
chore(stack): converge #860 onto repaired #859 head
@seonghobae
seonghobae marked this pull request as ready for review September 12, 2026 00:19
This was referenced Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant