gitoriaLog in with ident

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain2881119fcalendar mission 001 (4/4): code order — README layout + same-output test, STATUS, LOG, report; tests/letcount.py (sub-folders), tests/realdata-baseline.mjs, tests/realdata-compare.pymremain/plugins/web/session.hl

1.3 KB

  1. // ONE SESSION — a browser's bag on the server. A CLASS, not a hybrid, on purpose:
  2. // the language passes an instance by handle (through maps, lists, assignments and
  3. // emit payloads; an ordinary call argument copies, hence `&` at the dispatch) and
  4. // a face that logs a session in writes the session it was HANDED. On disk it is
  5. // the JSON of these members, and a file comes back as `rec > new Session()`.
  6. // THE APP'S OWN DATA GOES INTO `data`, a hybrid: `session.data.cart = …` rides along,
  7. // and an entry nobody wrote reads null — as a hybrid does. An UNDECLARED member of
  8. // an instance is not that: the language lets a write mint it on one instance and
  9. // refuses the read on another (measured 2026-09-13: `session.signupEmail` read in an
  10. // audience function on a session that never set it was an UndefinedProperty error).
  11. String id = null
  12. Number created = 0 // epoch ms
  13. Number seen = 0 // epoch ms of the last request or frame that presented it
  14. user = null // whoever logged this session in, or null
  15. data = {} // the app's own fields, absent ones read null
  16. // THE QUEUED EMITS THIS SESSION'S BROWSERS HAVE HAD HANDLED (COMPONENTS §10): the last
  17. // `handledKept` of them, oldest first, each `{ q, ok, error }` — its stable id and the
  18. // ack it got. A replay of one of these ids is answered from here and runs no face again.
  19. handled = []

Branches

Latest commits

  • 2881119fcalendar mission 001 (4/4): code order — README layout + same-output test, STATUS, LOG, report; tests/letcount.py (sub-folders), tests/realdata-baseline.mjs, tests/realdata-compare.pymre
  • 3b2a4cd0calendar mission 001 (3/4): code order — let only where reassigned (147 dropped incl. components/month-view; 110 left: 67 reassigned, 43 loop-bound); gates 78/0 (3 of 4 runs; 1 known 'next month' flake) + 18/0, live-data run = step 2mre
  • f5ce6b1dcalendar mission 001 (2/4): code order — topics, map, thin faces: lib/util.hl, lib/events(-helpers).hl (+calendarView/settingsView/soonOf), lib/settings.hl, lib/users.hl (+userOfLoginCode, tagOf), lib/api(-helpers).hl; project.hl = map; login route takes &req/&sessions (failed-login reason now kept); gates 78/0 + 18/0mre
  • c6fbd011calendar mission 001 (1/4): code order — files moved: lib/events.hl, lib/users.hl, components/styles.hl (imports only); gates 78/0 + 18/0, live-data run identicalmre
  • d6c59290calendar: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); gates 78/0 + 18/0mre
  • 7bd0337ccalendar: Hybriel master 190aa11d (fc838894 GC correctness, #126 closure scopes, #127); gates 78/0 + 18/0mre
  • ff41310ccalendar: Hybriel master 8efba065 (#126 memory, #48 lambda copy; audit: no & needed)mre
  • 14ba08c7antcolony#40: mission references point to the moved missionsmre
  • 99c73346antcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
  • 76edaa62calendar: Hybriel master ff51cf46 (re-vendor round, static workaround removed)mre
  • 90a3fc2cdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • 6722b72ddeploy.sh: never send .git or .gitignore to Byrodinmre
  • be099807State of 2026-09-27, before the move to gitoriamre