Calendar header e2e contradicts the fourteen-day Agenda contract #1313

Open
opened 2026-10-07 04:27:36 +00:00 by kayg · 2 comments
Owner

Merge32 (#1122) reproduces this on origin/dev at 3601719b8.

Command: CALTERNAL_E2E_MAC=1 CALTERNAL_E2E_ASSET_OVERRIDE=1 CALENDAR_E2E_HEADER_ONLY=1 bun e2e/calendar.mjs.

The tab selection checks pass. The initial Today range check fails:

AssertionError [ERR_ASSERTION]: 390 light: Today ends at the anchor
+ actual - expected
+ '2026-10-20'
- '2026-10-07'

apps/web/src/routes/calendar/[view]/[date]/+page.svelte documents and implements a fourteen-day forward range (#1086, #1088; DESIGN §38). apps/web/e2e/calendar.mjs still asserts the earlier #549 range: two days and a carry-in day, ending at Today. This is a contract mismatch, not a SLOW finding. The merge job keeps the assertion and the loader behavior. Confirm the intended range, then align the contract and its regression test.

The comparison uses origin/dev production web assets and the same prebuilt bash-security server binary as the merged UI comparison.

Merge32 (#1122) reproduces this on origin/dev at 3601719b8. Command: `CALTERNAL_E2E_MAC=1 CALTERNAL_E2E_ASSET_OVERRIDE=1 CALENDAR_E2E_HEADER_ONLY=1 bun e2e/calendar.mjs`. The tab selection checks pass. The initial Today range check fails: ``` AssertionError [ERR_ASSERTION]: 390 light: Today ends at the anchor + actual - expected + '2026-10-20' - '2026-10-07' ``` `apps/web/src/routes/calendar/[view]/[date]/+page.svelte` documents and implements a fourteen-day forward range (#1086, #1088; DESIGN §38). `apps/web/e2e/calendar.mjs` still asserts the earlier #549 range: two days and a carry-in day, ending at Today. This is a contract mismatch, not a SLOW finding. The merge job keeps the assertion and the loader behavior. Confirm the intended range, then align the contract and its regression test. The comparison uses origin/dev production web assets and the same prebuilt bash-security server binary as the merged UI comparison.
kayg changed title from Calendar header e2e expects the withdrawn bounded Today range to Calendar header e2e contradicts the fourteen-day Agenda contract 2026-10-07 05:07:11 +00:00
Author
Owner

DESIGN §38 explicitly confirms the current behavior: “The Agenda starts at its anchor date and shows the next 13 days.” #1086 restored this order. The loader follows that decision. The retained #549 assertion expects the older backward range. No assertion is changed in merge32; the orchestrator can align it with the decided contract.

DESIGN §38 explicitly confirms the current behavior: “The Agenda starts at its anchor date and shows the next 13 days.” #1086 restored this order. The loader follows that decision. The retained #549 assertion expects the older backward range. No assertion is changed in merge32; the orchestrator can align it with the decided contract.
Author
Owner

#1313 was a pre-existing expectation mismatch at origin/dev 3601719b8. DESIGN §38/#1086 requires the anchor plus 13 forward days. data.ts readRange fetches one extra carry-in day for overnight Logs. The corrected test checks exactly that API range without changing the loader.

The production header matrix passes at 390, 820 and 1440px, light and dark, with macOS emulation:

calendar header e2e: all geometry checks passed

Exit 0. Evidence: artifacts/merge32b/calendar-corrected.log and calendar/. Atomic commit: test(calendar): assert the forward Agenda range with Log carry-in. No product code or fixture data changed.

#1313 was a pre-existing expectation mismatch at origin/dev 3601719b8. DESIGN §38/#1086 requires the anchor plus 13 forward days. data.ts readRange fetches one extra carry-in day for overnight Logs. The corrected test checks exactly that API range without changing the loader. The production header matrix passes at 390, 820 and 1440px, light and dark, with macOS emulation: ```text calendar header e2e: all geometry checks passed ``` Exit 0. Evidence: artifacts/merge32b/calendar-corrected.log and calendar/. Atomic commit: test(calendar): assert the forward Agenda range with Log carry-in. No product code or fixture data changed.
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal-v0#1313
No description provided.