multiuser: token identity, invites + bootstrap, owner-gated runs, fork, user packages; spectator spa; utc house rule

This commit is contained in:
2026-11-14 20:01:15 +00:00
parent 9f85adc3c6
commit 711634cc38
15 changed files with 1134 additions and 105 deletions
+24 -1
View File
@@ -70,6 +70,19 @@ memory the agent owes itself across sessions.
## State pointers
- **The multiuser server is built and mock-proven (2026-11-14).**
Design: ROADMAP "The multiuser server" + QUESTIONS #22-31 (all
resolved). Identity = bearer token, no usernames/passwords/IDPs;
invites single-use with a permanent spent record; bootstrap invite
auto-mints on fresh deployment to state/bootstrap-invite.txt; op
mints/revokes invites and users; revocation destroys identity (new
invite = new person). Ownership is RESOLVED, never maintained —
run.json keeps dead owner ids, the API reads them as ownerless (GM
overruled my file-sweep; resolution won). Fork = atomic copy, owner
replaced, `forked: unixtime` stamped, no lineage. Packages split
system (repo) / user (state/packages, published). Spectators read
everything incl. gm.md (the boundary is the model boundary), mutate
nothing. Dates/times always UTC — house rule.
- Substrate design round complete (2026-11-13); rulings live in ROADMAP
("The harness") and HANDOFF. Bridge retired before ever going live;
REST + SPA is the MVP; runs are per-deployment instances copied from
@@ -106,7 +119,17 @@ memory the agent owes itself across sessions.
whatever you build from it); wait's text matches RENDERED text, so
CSS text-transform breaks literal waits (wait for "HER PAPER", not
"her paper"); clickable divs are invisible to the a11y tree and the
keyboard — clickable things are buttons.
keyboard — clickable things are buttons. Added 2026-11-14 (multiuser
round): the a11y snapshot races async renders — waiting for static
skeleton text ("RUNS") snapshots BEFORE the fetches land and looks
like a rendering bug; wait for text that only exists post-render (a
card name, the window-info line) or probe the DOM via evaluate.
- Test-state discipline (2026-11-14): the deployment's state/ is real
— never leave test users or invites in it. Smoke against --mock,
then Remove-Item state/ and every test run (all but the GM's real
ones) before calling it done. A stale bootstrap file is harmless
(dead once a superuser exists), but test users make the deployment
NOT fresh and block the real bootstrap.
- Gotcha (2026-11-14, rewind aftermath): a session rewind erases my
memory of tool calls but NOT their effects — the server, files, and
databases keep them. After any rewind, external state is the truth: