gitoriaLog in with ident

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3f8cb3833f8cb383notes mission 002 (2/4): code order — topics, map, thin wrappers: lib/util.hl, lib/notes(-helpers).hl, lib/users.hl (+userOfLoginCode, tagOf), lib/api(-helpers).hl; project.hl = map; login routes take &req/&sessions (failed-login reason now kept); dead notes#1 functions removed; gates 50/0 + 18/0mre3f8cb383/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

  • 3f8cb383notes mission 002 (2/4): code order — topics, map, thin wrappers: lib/util.hl, lib/notes(-helpers).hl, lib/users.hl (+userOfLoginCode, tagOf), lib/api(-helpers).hl; project.hl = map; login routes take &req/&sessions (failed-login reason now kept); dead notes#1 functions removed; gates 50/0 + 18/0mre
  • 8cda5412notes mission 002 (1/4): code order — files moved: lib/notes.hl, lib/users.hl, lib/jsoncheck.hl, components/styles.hl (imports only); gates 50/0 + 18/0, live-data run identicalmre
  • 47dad68bnotes: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); gates 50/0 + 18/0mre
  • a4a2b2aeantcolony#40: tracker missions moved too — references to them in missions/reports/LOG.md updatedmre
  • 3dea0ef2notes: Hybriel master 190aa11d (fc838894 GC correctness, #126 closure scopes, #127); gate 50/0mre
  • e27c7d71notes: Hybriel master 8efba065 (#126 GC by bytes, #48 lambda params copy; audit: nothing to fix; gate 50/0)mre
  • 124613b6antcolony#40: mission references point to the moved missionsmre
  • 1ca2f34dantcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
  • 2bebebdanotes: Hybriel master ff51cf46 (re-vendor round)mre
  • 3eff126dnotes#3: installable app (manifest + own icon/favicon; notes' own sw.js kept)mre
  • 9883c540deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • eee693b8deploy.sh: never send .git or .gitignore to Byrodinmre
  • c8904061State of 2026-09-27, before the move to gitoriamre