spa modules and terminology: app.mjs split into flat es modules (router lifecycle, shared widgets, views own their state), mock smoke in test/; DICTIONARY.md rules the terms, four renames swept clean through the machinery - paper->status (run summary command is report now), window->session, wrap->housekeeping, context window->contwin; no dual-accepts by ruling, old data migrates once in the clerk (restore self-heals old dumps)
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
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), HANDOFF (working state). This file is
|
||||
QUESTIONS (the decision queue), DICTIONARY (the terms of art),
|
||||
HANDOFF (working state). This file is
|
||||
memory the agent owes itself across sessions.
|
||||
|
||||
## Working with the GM
|
||||
@@ -86,7 +87,7 @@ memory the agent owes itself across sessions.
|
||||
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): second player paper, `<add>`/
|
||||
point). The agenda (QUESTIONS #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,
|
||||
@@ -127,44 +128,82 @@ memory the agent owes itself across sessions.
|
||||
expression, not an arrow function (an arrow returns the function
|
||||
uninvoked — its .value serializes to {} and silently corrupts
|
||||
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. 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.
|
||||
CSS text-transform breaks literal waits (wait for "HER STATUS", not
|
||||
"her status") and PLACEHOLDERS never match a wait at all (probe the
|
||||
textarea via evaluate instead); clickable divs are invisible to the
|
||||
a11y tree and the keyboard — clickable things are buttons. Added
|
||||
2026-11-14 (multiuser round): the a11y snapshot races async renders
|
||||
— waiting for static skeleton text ("RUNS", the aside headings)
|
||||
snapshots BEFORE the fetches land and looks like a rendering bug;
|
||||
wait for text that only exists post-render (a card name, the
|
||||
session-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.
|
||||
- Naming gotcha (2026-11-14, SPA round): static files under web/ must
|
||||
not have names starting with "api" — the server's route guard
|
||||
matches the /api PREFIX, so web/api.mjs 404'd as a bogus API route
|
||||
and the app died at module load with an empty <main>. The REST
|
||||
client module is client.mjs. Any future web file name gets this
|
||||
check.
|
||||
- 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:
|
||||
re-read it, and never assume authorship of found content (I once
|
||||
credited the GM with a GM-turn that pre-rewind me had written).
|
||||
- Open tails (handoff, 2026-11-14): **housekeeper.md review is 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**: the paper has
|
||||
taken up thread-tracking; the GM wants the admission-gate section
|
||||
in invariants.md tightened. **Verbosity**: completions lengthened
|
||||
103 -> 668 chars across window one; the GM is thinking about it.
|
||||
The first real wrap (Irene's window) is the memory test's start.
|
||||
- Active work: NONE — the GM surface rework is complete and
|
||||
live-proven; the first real story is being played. Working lessons
|
||||
from the build: the newest GM turn must keep its <status>/<conflict>
|
||||
blocks (that ride is the paper's only channel from window two on);
|
||||
any new path that reads a run file for sending goes through
|
||||
expandVars (turn0() initially didn't); the transcript must surface
|
||||
failed window-open notes (ingest), not print success unconditionally;
|
||||
after changing a default, re-run the primary path (the start button
|
||||
broke for the GM because post-redesign tests never pressed it).
|
||||
- Open tails (handoff, 2026-11-14, evening): **housekeeper.md review
|
||||
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
|
||||
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
|
||||
test's start, and the op's one-time act (bootstrap claim +
|
||||
hand-stamping Irene's owner) rides before it (HANDOFF step 1). **Replay-after-housekeeping is
|
||||
dead** (found in the SPA round, unfixed, server-side): housekeeping
|
||||
auto-restarts the next session, so the replay default (latest
|
||||
session) points at the fresh empty session and 409s — the closed
|
||||
session needs naming. GM's call where the default should point.
|
||||
- Active work: NONE — the SPA module refactor + terminology round is
|
||||
complete, verified, and committed (2026-11-14): web/ is flat ES
|
||||
modules (app, router, client, state, chrome, log, widgets,
|
||||
transcript, view-* per view), the three hand-copied patterns became
|
||||
factories (armedButton, paneEditor, modelsBox), views own their
|
||||
state and teardown via enter/leave, the mock smoke lives in test/,
|
||||
and DICTIONARY.md rules the terms — four renames swept clean
|
||||
through the machinery (paper->status, window->session, wrap->
|
||||
housekeeping, context window->contwin), one clerk normalizer
|
||||
migrates old dbs/dumps, no dual-accepts (GM: no legacy hauling).
|
||||
The multiuser + agenda + reminder round is committed through
|
||||
89a2c16 (the amended reminder commit — abf8ef3 is its dead
|
||||
pre-amend twin); the first real story is being played. Working
|
||||
lessons from the build: the newest GM
|
||||
turn must keep its <status>/<agenda> blocks (that ride is the
|
||||
status/agenda blocks' only channel from session two on); any new path that reads a
|
||||
run file for sending goes through expandVars (turn0() initially
|
||||
didn't); the transcript must surface failed session-open notes
|
||||
(ingest), not print success unconditionally; after changing a
|
||||
default, re-run the primary path (the start button broke for the GM
|
||||
because post-redesign tests never pressed it); ownership is resolved
|
||||
against the users table, never swept on disk; same-verb delta blocks
|
||||
combine into one apply, never execute in sequence. Rename-mechanics
|
||||
lesson (2026-11-14): scripted renames with split/join replace EVERY
|
||||
occurrence — renaming the clerk's `paper` case to `status` and then
|
||||
`status` to `report` ate both, leaving no `status` dispatch; the
|
||||
smoke caught it on the next run. Order rename pairs so a new name
|
||||
is never a later pair's old name, and grep dispatch tables after.
|
||||
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 is dormant AND defunct — fine
|
||||
broken until its design round; do not fix or design it unprompted.
|
||||
broken until its design round; do not fix or design it unprompted,
|
||||
and do not keep it aligned: term sweeps, renames, and audits skip
|
||||
it entirely (2026-11-14, GM — its gm.md "paper" wording stays
|
||||
as-is; don't flag it again).
|
||||
- Identity model (2026-11-14): @PC/@Package are identity sigils
|
||||
(settings pc/name); $TOKENs are prompt-declared template vars
|
||||
(setup inputs -> settings vars). Run ids are anonymous hex —
|
||||
@@ -186,13 +225,13 @@ memory the agent owes itself across sessions.
|
||||
below.
|
||||
- Watch: the "never open with world narration" rule was cut as
|
||||
superfluous by the GM — reinstate only if testing shows drift.
|
||||
- Defaults taken without asking (2026-11-13): #21 window-open refuses
|
||||
- Defaults taken without asking (2026-11-13): #21 session-open refuses
|
||||
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
|
||||
window-open) and #16 (which model the housekeeper defaults to).
|
||||
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).
|
||||
|
||||
Reference in New Issue
Block a user