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:
@@ -3,8 +3,9 @@
|
||||
Working notes for the agent working this repo. Not project
|
||||
documentation -- the project's homes are README (architecture, protocol,
|
||||
observables), ROADMAP (decisions, steal list, substrate plan),
|
||||
QUESTIONS (the decision queue), DICTIONARY (the terms of art),
|
||||
HANDOFF (working state). This file is
|
||||
QUESTIONS (the decision queue -- open items only), DECISIONS (the
|
||||
resolved record, keyed by the old queue numbers), DICTIONARY (the
|
||||
terms of art), HANDOFF (working state). This file is
|
||||
memory the agent owes itself across sessions.
|
||||
|
||||
## Working with the GM
|
||||
@@ -106,7 +107,7 @@ memory the agent owes itself across sessions.
|
||||
types ride along because server/shapes.mjs's Provider typedef
|
||||
pulls provider.mjs into the web program). Dev-only tooling
|
||||
(typescript + @types/node in devDependencies, node_modules
|
||||
gitignored); the runtime stays zero-dependency (QUESTIONS #4
|
||||
gitignored); the runtime stays zero-dependency (DECISIONS #4
|
||||
amended 2026-11-15). All four phases are typed under strict:
|
||||
server core, the clerk, and web/. Typing lessons (2026-11-15,
|
||||
the round): assigning an any (api()/JSON.parse result) to a
|
||||
@@ -120,11 +121,19 @@ memory the agent owes itself across sessions.
|
||||
node_modules: copy server.json in from the main repo before the
|
||||
mock server starts (it exits without one), and run npm.cmd
|
||||
install before typecheck (2026-11-15, this worktree).
|
||||
- The remote (2026-11-15, GM): origin at
|
||||
`ssh://code@code.fleshless.org:2290/hackmaster/tiny-worlds.git`,
|
||||
branch mistress tracks origin/mistress. The ssh key takes a
|
||||
PASSPHRASE, so pushes are the GM's -- an agent-side `git push` is
|
||||
non-interactive and dies on auth; the network to that host also
|
||||
has hiccups, so a connection timeout is not proof the server is
|
||||
down (bit once: push attempt got auth, then the port went silent
|
||||
for minutes).
|
||||
|
||||
## State pointers
|
||||
|
||||
- **The multiuser server is built and mock-proven (2026-11-14).**
|
||||
Design: ROADMAP "The multiuser server" + QUESTIONS #22-31 (all
|
||||
Design: ROADMAP "The multiuser server" + DECISIONS #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
|
||||
@@ -133,16 +142,20 @@ memory the agent owes itself across sessions.
|
||||
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. Model selection:
|
||||
system (repo) / user (state/packages, published). Reads: the story
|
||||
is the one public surface (any signed-in user, fork button on it);
|
||||
the table, raw session, carryover, files, status, and gm.md are
|
||||
owner-only (the story-only ruling, 2026-11-15 -- #28's human-side
|
||||
open read overturned with it; the model boundary stands, gm.md is
|
||||
never model-facing). Dates/times always UTC -- house rule. Model
|
||||
selection:
|
||||
per-run `models: {player, housekeeper}` over server.json defaults
|
||||
(#16 narrowed to the default choice only). Signing in is permanent
|
||||
and per-browser -- no sign-out (lifecycle is a ROADMAP extension
|
||||
point). The agenda (QUESTIONS #32): the player's second block, `<add>`/
|
||||
point). The agenda (DECISIONS #32): the player's second block, `<add>`/
|
||||
`<drop>` deltas, cap-5 recency queue; Irene's events journal
|
||||
migrated (CHECK widened) -- her db is agenda-ready. The per-turn
|
||||
reminder (QUESTIONS #34, steal #11 done): reminder.md is repo-shared,
|
||||
reminder (DECISIONS #34, steal #11 done): reminder.md is repo-shared,
|
||||
rides after every GM turn as its own system chunk, one live copy
|
||||
(older elide); its CONTENT is the GM's -- my draft is a proposal,
|
||||
the handbook duplicate-cut is their red pen.
|
||||
@@ -150,7 +163,7 @@ memory the agent owes itself across sessions.
|
||||
("The harness") and HANDOFF. Bridge retired before ever going live;
|
||||
REST + SPA is the MVP; runs are per-deployment instances copied from
|
||||
packages at creation; zero-dependency runtime (dev tooling exempt,
|
||||
QUESTIONS #4 amended 2026-11-15: typescript rides devDependencies,
|
||||
DECISIONS #4 amended 2026-11-15: typescript rides devDependencies,
|
||||
nothing imports it). Doc set updated to match.
|
||||
- Build order: ALL FOUR PHASES DONE (2026-11-13/14) -- clerk paper
|
||||
migration, preset/run split, prompt split, server, housekeeping
|
||||
@@ -159,7 +172,10 @@ memory the agent owes itself across sessions.
|
||||
surface is the "Later" list (turn surgery, memory browser, context
|
||||
inspector, book export, service step) plus whatever the first real
|
||||
story surfaces.
|
||||
Server entry: `node server/main.mjs [--mock]`; SPA at
|
||||
Server entry: `node server/main.mjs [--mock] [--debug]` (--debug:
|
||||
every request is a fixed superuser, the users db bypassed, no
|
||||
invite dance, loopback-bound regardless of config -- testing
|
||||
only); SPA at
|
||||
http://127.0.0.1:7350/; POST bodies from PowerShell need
|
||||
Invoke-RestMethod (curl.exe mangles quotes); background start/stop
|
||||
via Start-Process -PassThru with a PID file in $env:TEMP.
|
||||
@@ -213,7 +229,7 @@ memory the agent owes itself across sessions.
|
||||
is still the next creative step** -- the GM's dry-run verdict was
|
||||
"works, but not as expected; I never saw the prompt"; iterate with
|
||||
the replay button (nothing applied). **Status discipline: RESOLVED**
|
||||
by the agenda (QUESTIONS #32/#33). **Verbosity**: completions
|
||||
by the agenda (DECISIONS #32/#33). **Verbosity**: completions
|
||||
lengthened 103 -> 668 chars across session one; the per-turn reminder
|
||||
is the countermeasure now built -- the next live session is the test.
|
||||
The first real housekeeping pass (Irene's session) is the memory
|
||||
@@ -226,7 +242,7 @@ memory the agent owes itself across sessions.
|
||||
- Active work: the JSDoc typing round is COMPLETE (2026-11-15,
|
||||
evening) -- all four phases. Phases 1-2 (the server core) are
|
||||
committed (`f81b188`); phases 3 (the clerk) and 4 (web/, via the
|
||||
second tsconfig) are done and land with this commit -- typecheck
|
||||
second tsconfig) are committed (`8d4a6b9`) -- typecheck
|
||||
green on both programs, smoke 110/110, restart-check on a genuine
|
||||
restart, check-reminder, check-repo, and a full zero-console-error
|
||||
browser pass over the SPA; test state cleaned. The audit lists of
|
||||
@@ -333,7 +349,7 @@ memory the agent owes itself across sessions.
|
||||
CLI note: the run summary is `report` now; `status` is the tier
|
||||
verb.
|
||||
- Postulates (GM, 2026-11-14): female PCs only (names are gendered;
|
||||
QUESTIONS #2 closed by it). Boutique: the GM emptied it wholesale
|
||||
DECISIONS #2 closed by it). Boutique: the GM emptied it wholesale
|
||||
(2026-11-15 -- it kept being a noisy problem); placeholder files
|
||||
only, no content anywhere. Still do not fix or design it
|
||||
unprompted -- its design round is where content returns. The
|
||||
@@ -366,12 +382,12 @@ memory the agent owes itself across sessions.
|
||||
over an unhousekept session with explicit override; #16 housekeeper
|
||||
defaults to the player's model; #10 tool-call pairing validation goes
|
||||
into the server loop.
|
||||
- Open decisions live in QUESTIONS.md -- read it first. Remaining: #19c
|
||||
(seed voice, GM may revisit -- non-blocking, seed editable until first
|
||||
session-open) and #16 (which model the housekeeper defaults to).
|
||||
Resolved lately: #19a keep "Rell"; #20 system.md split (substrate
|
||||
facts / per-project guards / per-run craft, hard limits in the craft
|
||||
copy); #21 unhousekept-session guard (refuse with override).
|
||||
- Open decisions live in QUESTIONS.md -- read it first; the resolved
|
||||
record is DECISIONS.md (the old queue, kept by number). QUESTIONS is
|
||||
open items only now (2026-11-15 split). Remaining: #9 (expandVars
|
||||
strictness), #16 (which model the housekeeper defaults to), #19c
|
||||
(seed voice, GM may revisit -- non-blocking), and the turn-surgery
|
||||
build details.
|
||||
- The tree is usually dirty by design; git status is not an alarm.
|
||||
- Edit-tool lesson repeated (2026-11-13): nested-list indentation in
|
||||
HANDOFF failed twice from memory -- always transcribe oldString from a
|
||||
|
||||
Reference in New Issue
Block a user