the access round: spectator mode removed and reads made story-only -- the table, raw session, carryover, files, status, and the notepad are owner-only; the story is the one public read (any signed-in user, fork button on it that copies the run that made the story, never the view); #28's human-side open read overturned with the ruling, gm.md stays never model-facing; non-owners land in the story view (play/setup redirect on the 403, home cards link there directly), the story view names its owner and stands alone on the story response, which now carries display/owner/ownerName; the table gains a raw tab -- the whole log as it rode the wire (thinking, every variant block, every reminder copy, full tool results, rides inline) next to the curated projection, live sessions only, sticky across turn re-renders; --debug mode for easy testing: every request is a fixed superuser that bypasses the users db entirely, no invite dance, loopback-bound regardless of config (found live: the SPA boot only asked the server who it was when a token existed, so tokenless browsers never learned they were the debug user -- boot now always asks); lint rule 10: no laptop-visible facts anywhere and all commits always from Mute -- the username and home paths are derived at runtime so the checker never contains them, scanned over the tracked tree, every historical blob, and commit messages, identity enforced on author and committer on every ref plus git config; the queue split: resolved questions relocated to DECISIONS.md verbatim by number (day's words kept, reversals annotate never rewrite, the agenda/reminder trio gets its own section), QUESTIONS is open items only (stale OPENs resolved on the way: #10 by the 2026-11-13 pairing default, #11 by the raw tab); smoke reworked to the story-only battery -- ash 403s on every run surface, 200 on the story alone, the ownerless-run check rides the runs list; all twelve QUESTIONS-number citations re-pointed at DECISIONS; smoke ALL PASS in a worktree (111 checks), two-user browser pass (the non-owner's whole run surface is a 403 detail and a 200 story, back-to-table hidden, owner views intact), raw-tab browser pass (curated table leak-free, raw shows the whole variants block, tabs vanish on dormancy), typecheck green on both programs, check-repo clean
This commit is contained in:
@@ -79,14 +79,17 @@ forking makes that cheap -- stories outlive identities by design.
|
||||
|
||||
- Every API route except `GET /api/session` and `POST /api/claim`
|
||||
requires a signed-in user (`Authorization: Bearer <token>`).
|
||||
- **Runs belong to their starter.** Every mutation and every model
|
||||
call is owner-only; every run is readable by any user -- transcript,
|
||||
status, rings, config, notepad included. The boundary is the model
|
||||
boundary: gm.md is secret from the player-model, never from people.
|
||||
Ownerless runs -- pre-user, or the owner was revoked -- are one
|
||||
uniform state: readable, forkable, no owner actions, never
|
||||
re-claimed. Ownership is resolved, never maintained: run.json keeps
|
||||
the record, a dead owner id reads as absent.
|
||||
- **Runs belong to their starter -- the table is the owner's, the
|
||||
story is everyone's.** Every mutation, every model call, and the
|
||||
whole working surface (table, raw session, carryover, files,
|
||||
status, notepad) is owner-only; what any signed-in user gets is
|
||||
the story, the curated deliverable, and the fork button on it.
|
||||
gm.md stays never-model-facing; its human-side open read (#28) was
|
||||
overturned with this ruling (2026-11-15). Ownerless runs --
|
||||
pre-user, or the owner was revoked -- are one uniform state:
|
||||
story-readable, forkable, no owner actions, never re-claimed.
|
||||
Ownership is resolved, never maintained: run.json keeps the
|
||||
record, a dead owner id reads as absent.
|
||||
- **Fork is the way in:** any user can fork any run, including their
|
||||
own. A mechanical atomic copy -- staged, swapped in by a same-volume
|
||||
rename, under the run's activity lock -- with the owner replaced. No
|
||||
@@ -106,6 +109,14 @@ forking makes that cheap -- stories outlive identities by design.
|
||||
an extension point, not built.
|
||||
- All dates and times are UTC everywhere. No time zones, ever.
|
||||
|
||||
Debug mode (`--debug`) is for testing: every request becomes one
|
||||
fixed superuser ("debug") that bypasses the user database entirely --
|
||||
no invite to claim, no token to keep, the SPA opens straight in as
|
||||
the op, and the server binds loopback whatever the config says. It
|
||||
reads normal state (runs, packages) unchanged, so it can inspect a
|
||||
real deployment; it must simply never run on one that faces a
|
||||
network.
|
||||
|
||||
## Runs
|
||||
|
||||
Two interleaved stories calibrate the memory system against itself:
|
||||
@@ -477,7 +488,8 @@ variants ride at zero cost) against a 96KB budget (~10% of a
|
||||
live tail: an event files into the rings exactly when it drops out of
|
||||
the carry, so the rings never overlap the carried prose. Three
|
||||
projections of the same logs: the session route serves the raw log,
|
||||
thinking included -- the audit surface; **the table**
|
||||
thinking included -- the audit surface (the table's raw tab in the
|
||||
SPA); **the table**
|
||||
(`/api/runs/<id>/table`) is the open session curated for the GM -- no
|
||||
thinking, only the picked variant, carried turns flagged for the
|
||||
dimming, plus the variance metric (picks, offered, max -- straight
|
||||
@@ -527,6 +539,8 @@ reminder.md the per-turn reminder: the turn-composition protocol,
|
||||
HANDOFF.md working state -- where did we leave off, next steps, gotchas
|
||||
ROADMAP.md SOTA review and steal list, worked point by point
|
||||
QUESTIONS.md the decision queue -- open questions, pending calls
|
||||
DECISIONS.md the resolved record -- every answered question, kept
|
||||
verbatim with its day's words; the citation numbers
|
||||
DICTIONARY.md the terms of art -- the ruled names, one source of
|
||||
truth; a rename rules here first, then sweeps
|
||||
AGENTS.md the agent's own working notes -- style lessons, gotchas,
|
||||
@@ -552,7 +566,7 @@ tool/
|
||||
GM writes; --force for migrations; --json for machine
|
||||
output on packages/runs/report)
|
||||
server/ the substrate: a zero-dependency node:http service
|
||||
main.mjs entry + REST spine (node server/main.mjs [--mock]);
|
||||
main.mjs entry + REST spine (node server/main.mjs [--mock] [--debug]);
|
||||
bearer-token auth on every route (session/claim are
|
||||
public), ownership gating, per-run activity locks
|
||||
(turn, ask, start, the housekeeping job, fork);
|
||||
|
||||
Reference in New Issue
Block a user