calendar
All repositories: gitoria
4.0 KB
# Report 011 — calendar#12: push never arrived on caramboleyo's phoneBranch w12-push-phone (from main 0b222eb), not pushed, not deployed, no .env read, byrodin only read.## Findings (server data, 2026-10-22 ~10:00)- push.db: ONE subscription: owner 0muh8y8myb5z (ident az5b2), endpoint host fcm.googleapis.com, zone Europe/Vienna, created 2026-10-22 08:49:56 CEST. `since` advances every 30 s (loop alive).- nginx (container `web`): at 06:49:50-54 UTC his phone (Android 10, Chrome 155 Mobile) loaded the app, the NEW /__hl/sw.js (701 B, push + notificationclick handlers) and the manifest (standalone, icons 200/304); subscription saved 6 s later. His visit before that: 21 Oct 05:54 UTC with the OLD sw.js (622 B, no push) — before the 22:46 deploy.- calendar container log: no "push sent / not sent" line ever: the server never tried to send to him.- His future events: 2026-11-03 09:00, 11-04 all-day, 11-07 15:45; default reminders → first due 2026-11-02 20:00. Nothing came due since he subscribed.- Live service worker: showNotification in push, notificationclick, icons 200. No bug found in the send path.## CauseNot a server bug: push reached production at 22:46 on the 21st, his installed app took the new worker only on the 22nd 08:49, and since then no reminder was due — there was nothing to push, and the app gave him no way to see that push reaches the phone. Display on his phone remains unproven (Android notification/battery settings can still hide it); nobody here has that phone.## Fix"Send a test notification" (#push-test, shown on a subscribed device): `calPushTest` → lib/push.hl `testPush` marks the device row (`test` due time, `testAt` request time); a 2 s ticker (`testRound`) sends ONE push after CALENDAR_PUSH_TEST_DELAY (10 s): title "Calendar test", body "Push works on this device", tag calendar-test; log "push test sent (201)" / "push test not sent" / "push test: the subscription is gone".Abuse: the face needs the signed-in session; `testPush` finds the row by endpoint and requires `row.owner == session user` (a foreign or unknown endpoint → error, nothing sent); rate limit 1 test per device per 30 s (`testAt`, a waiting test counts) → "a test was just sent: wait 30 seconds"; payload fixed (no user text), ttl 120 s.## Gates (final code df2e4fa + report commit)browser 84/0 (CALENDAR_GATE_PORT 8734); check-theme 31 files 0 problems; dst 13/0; notify-paths 7/0 + 3 gaps (NOTIFY_GATE_SCRATCH short path: Chrome's socket path limit broke it under wt/.scratch); push full 23/23 (16 old + 7 new in part 4: button 44 px, "on its way", nothing before 1.5 s, second tap refused, foreign/unknown endpoint refused, ONE push 8-20 s later to the closed device with the right title/body, no other device got a test). Part 4 on old main (button missing): 0 passed, 2 failed. (Parallel runs collide on ports 8734/8735: run notify and browser one after the other.)## Real FCM in lisbeth's Chrome 155 (tests/push-shots-test.mjs, app on loreana :8791, under the lock)Subscribed through fcm.googleapis.com; tap on the button → app log `push test sent (201)`; `registration.getNotifications()` = [["Calendar test","Push works on this device","calendar-test"]]; second tap within 30 s → "The test could not be started: a test was just sent: wait 30 seconds". Shots (looked at, layout clean, 44 px button, text wraps, no overlap): /media/STORAGE/claude-scratch/atlas-evidence/C12/ test-390-on, test-1280-on, test-390-sent, test-1280-sent, test-390-ratelimit (.png).## Not provenThe OS-level toast on a physical phone (CDP cannot capture it). Test plan for caramboleyo after deploy: reload Calendar in Chrome, tap "Send a test notification", lock the phone within 10 s; expect "Calendar test – Push works on this device"; server log `push test sent (201)`. 201 but nothing shown → Android Settings → Apps → Chrome → Notifications / battery; 410 → tap "Turn on notifications" again.## Ident (report only)No Web Push: lib/notify.hl hasPushDevice is a stub (false), lib/delivery.hl pushHooks.push = null (ident#8 not built); urgent notifications are mailed.
Branches
Latest commits
- f9b8f918Merge branch 'calendar-vendor-day61' into mainAtlas
- 66341793|||PR Vendor Hybriel day61Atlas
- 36fc596bMerge branch 'vendor-day59' into mainAtlas
- b37cc1da|||PR Vendor Hybriel day59Atlas
- 05665102Merge branch 'vendor-day56' into mainAtlas
- 687296fb|||PR Vendor Hybriel day56Atlas
- a6166d4eMerge branch 'hl-standard-3' into mainAtlas
- 6d0eb3b0|||PR Calendar day add buttons only when signed in (Kunibert minor)Atlas
- add4b499|||PR Make calendar day actions keyboard accessibleAtlas
- 79e49b4dMerge branch 'hl-standard' into mainAtlas
- e9fec7bb|||PR HL-STANDARD clean-up: typed parameters, plain locals, by-reference cacheAtlas
- eff166a4Re-vendor complete Hybriel plugins and runtime to day44mre
- cef81394Wait for the DST fixture page instead of an unused socketmre
- 42434f47Check lazy-session cookies after login with a stored anonymous fixturemre
- 728e84e3Re-vendor complete Hybriel day41 plugin directoriesmre
- cbd7ff43Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
- 59d1da0acalendar: plain declarations instead of needless let in 9 files (calendar#17): 49 declarations that are never reassigned; reassigned ones and the timer closure's p stay letmre
- f5415cf9calendar: the Style blocks in the language's nested form (calendar#16): rules named after the View's own elements with their children nested, pseudo-classes and @media nested, merged duplicate select rule; same CSS, shots identical in Chrome at 4 sizesmre
- 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