calendar
All repositories: gitoria
6.0 KB
# Report 009 (A9): re-vendor Hybriel master, drop the calendar's own hl:time copiesBranch w9-hltime (worktree A9/wt), from main ce16a4e. Not pushed, not deployed, no .env read. Evidence /media/STORAGE/claude-scratch/atlas-evidence/A9/ (logs + shots).## Step 1 — re-vendor (commit 875353c)Hybriel master **022a3ac1** (contains 6b396322 = int 6 + hl:web batches 5+6, and 65e8ec21 = int 7; checked with `git merge-base --is-ancestor`). bin/hybriel = native/zig-out/bin/hybriel (sha256 6e0f77d77cc10b72f7620c16817bbf24e2380812f2157daf95dd600a069b9e80, static), bin/libhlrt.a + hlc.o + hlrt/ from native/zig-out/lib; plugins core crypto data fetch fs http http1 mpackdb proc time web copied whole (rsync --delete). Changed: mpackdb (MPackDB.hl, engine, mpackdb.zig, libmpackdb.so), web (WebFramework, client, compile, README); new in time/: client.js, tests/parity.*.## Step 2 — what was removed- `lib/push-plan.hl` deleted (63 lines). The server clock (`lib/push.hl`) now calls `missed` of `components/month-view/reminders.hl` — the same code as the page.- reminders.hl: `offsetOf` (Intl.DateTimeFormat by hand) and the `new Date(...)` device-zone branch gone; `instantOf` is now `fromLocal` of hl:time (`import { fromLocal } from 'hl:time'`). `planBetween` / `plan` / `missed` take a `deviceZone` (an all-day event's day is read in it). Net over lib/ + components/: 22 insertions, 100 deletions.- month-view.hl: new `deviceZone()` (Intl zone name of the browser, read at each arm; not fZone, which is only set at the first pointer) passed to `missed` / `plan`.- No JavaScript written. No new Hybriel gap: the A7 repro (static calling fromLocal in a component) works.## DST check (tests/dst.mjs, `tests/dst/`, in deploy.sh GATES)Real headless Chrome, device zones Europe/Vienna, America/New_York, Australia/Lord_Howe (Emulation time zone); a test page runs the OLD code (tests/dst/old-reminders.hl = main's reminders.hl) and the NEW next to each other on 3500 cases per device zone: events in Vienna/New York/Lord Howe/UTC/Kolkata on 2026-03-08, 03-29 (Vienna spring change), 03-30, 04-05, 10-25 (Vienna autumn change), 10-26, 11-01 (NY), 11-02, 2027-03-28, 2027-10-31, start times 00:30 02:30 03:00 09:00 23:30, timed and all-day, rows minutes/hours/days. Third source: python zoneinfo. **13/0.**- NEW = python zoneinfo in all 3 × 3500 cases.- NEW = OLD in 3473 of 3500; **27 differ by exactly one hour** (18 fold cases: the old Intl code took the LATER instant of the repeated hour, now the earlier; 9 gap cases: now moved forward), all with a wall clock inside the Vienna/New York change hour (fold/gap), and they equal what the server's push copy already did. Everything else, DST days included, identical. So not 100% identical: the old browser code was wrong by one hour in the fold/gap hour; page and push are now the same. (Old code vs python: the same 27 differ → the check "new = python" fails on old code.)## Step 3 — gates (ports: notify 8732–8739 (app 8732, ident 8733, Chrome 8734–8739; its range is PORT+2…+7 for the 6 scenarios), push base 8788 (app 8788, ident 8789, fake push 8790, Chrome 8792), browser gate old 8788/8789/8790–8794 and new 8732/8733/8734–8739 (not at the same time as the others on one port set), dst 8793/8794, E2E app 8793 (ident 8794))| gate | old (main ce16a4e + its bin) | new (w9-hltime) ||---|---|---|| tests/browser.mjs | 81/0 | 81/0 || theme/check-theme.mjs | – | 31 files, 0 problems || tests/notify-paths.mjs | 7/0 + 3 gaps | 7/0 + 3 gaps || tests/push.mjs | 16/16 | 16/16 || tests/dst.mjs | n/a | 13/0 |Notes: the browser gate FAILS (79/1: "first pointer event runs no calLoad of its own — 2 frames") on old AND new whenever the local date differs from the UTC date, i.e. between 00:00 and 02:00 CEST (server's `today` is the UTC day; GATE_CLOCK shifts only the page). Rerun after 02:00 CEST: 81/0 both. Not caused by this mission; worth a note for the gate. Known gaps unchanged, none closed: permission button before first touch (no show hook), open-not-touched reminder, closed app (the gate text still says "needs Web Push" but Web Push exists since 008; its scenario is not changed).## Step 4 — lisbeth E2E (tests/reminders-e2e.mjs, real Chrome 155, one tab, under the lock, fresh ident login each run, host localhost:8793 via ssh -R, real FCM)Same script on the old tree (PREFIX old) and the new (PREFIX new); each: subscribe (fcm.googleapis.com), event "Real push" 2.5 min ahead with 1 min + 1 day before 20:00, all-day event tomorrow (12 h), card/settings shots at 390 and 1280, the reminder fires with the page open (tag = `<id>:<start − 60 s>`), then real clicks on "Turn off on this device" (browser unsubscribed, "Turn on notifications" offered, text "Reminders show while the calendar is open on this device.") and back on (subscribed again), off control 44 px high at 390.- old: all RESULT lines yes (tag exact instant yes, off ok, on ok), push sent (201). new: identical results, tag `0mvirgmgn7ga:1792626480000` = reminder instant exactly, push sent (201). Checks: 2 × (exact tag, off, on) = 6 yes, 0 no. The planned text is "2 reminders set for the next 7 days" in both.- Shots (looked at): old-390-card / new-390-card, old-1280-card / new-1280-card — pixel layout the same: planned text, "Reminders also reach this device when the calendar is closed.", "Turn off on this device", "Reminder settings", the month with the 01:4x event on the 22nd and "All day tomorrow" on the 23rd; at 1280 one row. Also *-390-on, *-390-settings, *-1280-notified, *-1280-off, *-1280-on-again, *-390-on-again.- **Seen, not caused by this mission (old = new):** the "Reminder Settings" dialog at 390 px (old-390-settings.png / new-390-settings.png) shows its two reminder rows jumbled: inputs and selects of both rows stacked in two narrow columns, selects without readable text, × marks far below. The gate says "the editor fits a phone" (no horizontal overflow), so it does not see it. Worth a ticket.## GapsClosed: A7's gap "hl:time fromLocal in a browser static". Open: the three notify gaps above; the very first load hook; the settings-dialog layout at 390 px; the one-hour fold/gap change (intended).
Branches
Latest commits
- edb7c947calendar: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 56+4 failing → 60 passedmre
- bf8cc0fcStyles move into their components: the shell's styles into main.hl, the events and the editors into the month view's Style block; styles.hl keeps only the theme inherit, the accent and the message line; .gitignore ignores a bin symlink too; tests/styles-shots.mjs for the before/after pixel comparemre
- 5d8579d7README: login.js stays by caramboleyo's explicit rulemre
- cc759328Merge sb3-standby: calendar deploys through its standbymre
- f2fcdc6dcalendar: a standby container (port 45015, profile standby, reminder clock off) and a /health page; deploy hands over through standby-swap.sh without a gapmre
- 229643f7Merge branch 'cal-14'mre
- 1110b26fcalendar#14: the month name no longer breaks into two lines on a phone (Reminder settings drops to its own row when the header is too narrow), gate checks for one-line title and all header controls on screenmre
- 490c658aident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
- 18095868calendar: Reminder settings button opens its dialog again (the dialog's open handler still closed the removed user menu and stopped); old e2e and gate scripts use the new headermre
- 6eee4b5acalendar header: the selector alone top right plus Log out as before the theme missions; Reminder settings back on the month page (WIP: the settings test still fails)mre
- 0b909decident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
- 0c8f9364Merge branch 'sy-sync'mre
- 9fab1c8fsync components.hybriel 4922f9c into the month view: prev / next 44 px targets, names formatted in UTC (a UTC+12 zone showed the wrong first weekday); the calendar keeps its own language handling (Accept-Language / browser) and the P1/C13 reminder code; gate: 44 px check (SY)mre
- 27d3e294theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 2ac9c1bbdeploy: security gate (tests/security.mjs)mre
- 6b0a2571merge sc-sec (calendar security) with 99-year sessionsmre
- 92001e52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 0f76c99dSecurity audit SC: push endpoint SSRF guard, uploadMax 0, Secure cookie, login session rotation + rate limit, event cap, nosniff, security gatemre
- 2dd53dccP1: one reminder shows once: arm() one at a time, the page skips reminders the server already pushed; push-twice gatemre
- 3a29760aC13 report (handoff)mre