14b9b01d86
The box: a burble-hosted VM, Debian 13, small single-core, 20G disk, passwordless sudo, outbound clean, almost nothing installed at orientation (curl only). Reached through the gitignored .ssh/ (a fresh ED25519 deploy key minted for the purpose, no passphrase by design -- deploys must work unattended, the lesson the main remote's passphrase key taught; the host key pinned to .ssh/known_hosts; the connection specifics live in .ssh/box.md, gitignored, because AGENTS stays generic by ruling -- GM, 2026-11-18: disclosing server intel is not catastrophic but the specifics do not belong in a tracked file). Done on the box, the one thing orientation installed: a 4G swapfile (fstab'd, swappiness 10) -- on a sub-gig VM with zero swap, one bad spike is an OOM kill rather than a slowdown, and 4G "just in case" was ruled over my proposed 1G.
The rulings that shape the deploy (recorded in ROADMAP's service-step amendment): TLS terminates in caddy, NEVER in node -- the server stays loopback http behind the proxy, which costs zero server changes (the bind already defaults to loopback) and keeps the zero-dependency shape intact; the certificate rides caddy's automatic TLS-ALPN-01, the challenge type that needs only 443 -- the right pick for the provider's HTTPS-only raw forward, with the operational note that config iteration starts against Let's Encrypt's staging endpoint so a config loop cannot burn the production rate budget. Node comes via nvm at the current stable branch, NO version pin (GM, 2026-11-18: no reason to pin 22 -- apt's node is too old for node:sqlite either way, and our DatabaseSync usage is alias-kept through node 26, so current-stable is safe; dev still runs 22.15, a parity bump on the table, nothing blocked). The bun alternative was weighed and parked: bun's node:sqlite support only merged this July, the runtime is JavaScriptCore where every gate we have ever run was V8, and the honest win on this box is 20-30ms per transient clerk spawn against a measured 44MB server -- a possible future migration with the full gate re-run under the new runtime, not an install choice.
The deploy pipeline itself is ruled a separate discussion, a gitea runner the leading idea. Orientation stands: nothing runs on the box, no code deployed, no caddy installed. Along the way: .gitignore gains .ssh/, the AGENTS state pointer carries the generic half of the box facts plus the hash updates for 53f992a, and HANDOFF's where-we-are reflects the commit. The GM's WIP packages (box, detention, and the new template) stay untracked, untouched.
170 lines
9.7 KiB
Markdown
170 lines
9.7 KiB
Markdown
# Handoff -- working state
|
|
|
|
A living document: trim items as they complete. Durable decisions live in
|
|
`README.md` (architecture, protocol, observables), `ROADMAP.md` (steal
|
|
list, extension points), and the prompts (`system.md`,
|
|
`housekeeper.md`). Unanswered questions live in `QUESTIONS.md`, the
|
|
decision queue; the agent's own working notes live in `AGENTS.md`. This
|
|
file is the "where did we leave off" map.
|
|
|
|
## Where we are
|
|
|
|
- **Everything is built and committed through `53f992a` (2026-11-18).**
|
|
The latest commit carries the day's three pieces:
|
|
- **The rewind round**: the GM's take-back riding the send --
|
|
`rewind` (a log line index naming one of your turns) truncates
|
|
the log at its target and lands the new turn in one commit;
|
|
fork is the preservation story. The staleness guard `expect`
|
|
rides every send (and the ask answer); the floor is the start
|
|
marker after the carryover; the player-facing records tools
|
|
are off until rewind-compatible (the CLI --gm path stands);
|
|
the SPA stages the gesture (two-click arm, auto-fill, tint +
|
|
note, cancel, the disabled rename when the box holds text).
|
|
Browser-proven committing a real rewind through the UI.
|
|
- **The conflict-persistence round** (GM, 2026-11-18):
|
|
conflicts stay in the contwin -- a mistake remains visible so
|
|
it is not made again -- and are self-contained, quoting the
|
|
offending emission (the block it answers strips from the
|
|
view). Carried conflicts now count against the carry budget.
|
|
- **The GM's reminder edit**: the checked-action metrics (three
|
|
probes for when to write as intent, the dud reveal embraced).
|
|
- **Everything else is built and committed through `eefb721`
|
|
(2026-11-17).**
|
|
The three rounds of that day, each mock-proven and live-proven where
|
|
live could reach:
|
|
- **The progress round** (`bbaf336`): the provider always streams
|
|
(assembling the same response shape, feeding an optional
|
|
onProgress callback), the refine battery has a step meter with a
|
|
surviving receipt log (the job carries steps/lines; the bar moves
|
|
only on real completions), and her turn has a live meter
|
|
(`GET /progress` + the transcript-foot placeholder: phase, chars,
|
|
elapsed, scaled to her longest past turn or max_tokens, geometric
|
|
push-back past 100%, a chunk-stepped fallback strip when no
|
|
history). The REAL refine ran end to end (GM-authorized): 13
|
|
models in 541s, the meter behaved, and the registry gained the
|
|
effort measurements -- the deterministic default re-picked to
|
|
glm-5.3-max, with server.json's own pin (glm-5.3) still beating
|
|
it until the op edits server.json.
|
|
- **The prompt-craft round** (`5279dd3`): the handbook's pointers
|
|
section is "Story is the deliverable" with the audience doctrine
|
|
(player, GM, reader -- don't summarise or quote the GM's latest
|
|
turn; addressing the reader is priced, addressing GM in-character
|
|
is nonsensical), the purview example went third-person, Retcons
|
|
moved under Continuity; invariants gained the typography ruling
|
|
(emphasis is **bold**, italics are actions/thoughts/descriptions
|
|
-- codifying what both renderers already assume). Both retired
|
|
operator-queue items were struck.
|
|
- **The sheet round** (`eefb721`) plus the roadmap audit (same
|
|
commit): the GM's ledger of arbitrated run state -- the second
|
|
state channel, split from status/agenda by truth model
|
|
(self-report vs arbitrated). Schemaless JSON in a `<sheet>` chunk
|
|
at the freshest end (its own authoritative voice, never a
|
|
canon-point stamp), GM-only authorship riding turns newest-wins
|
|
whole-set, the boundary note carrying it across stops, the
|
|
read-only guard (the `<model>` sibling), the third pane
|
|
(sheetEditor, stage-and-ride). Mock- and browser-proven; the box
|
|
package is the first consumer. The roadmap audit retired the done
|
|
(582 -> 338 lines): the multiuser and SPA sections are tombstoned,
|
|
the stale clauses amended in place, the open steals keep their
|
|
numbering.
|
|
- **The plan: abandon Chloe, start a fresh run from the top.** The
|
|
max-effort result prompted it -- her one max turn thought 11,371
|
|
chars (9x her session max) with real continuity work inside (the
|
|
comparison is the 2026-11-17 conversation). Chloe's session 1 is
|
|
open-on-disk, never stopped, never housekept; the reconcile handles
|
|
her at any future start, and the GM may never touch her again.
|
|
- **Irene is broken and never runs again (GM, 2026-11-16).** Her logs
|
|
and db stay exactly as they are -- reading her files on disk is all
|
|
that's left. Her frozen session-1 bundle keeps its old handbook: an
|
|
artifact, hands off.
|
|
- **The lore round (2026-11-17, conversation + la-caramba gm.md):**
|
|
the plot spine (the AI's satellite gambit to beach herself on the
|
|
bunker island, the lobotomized emergency model as the comedy that
|
|
was the clue) and the five seam answers: she waited for useful
|
|
hands; no crew, no robots -- persuasion is her only power; the
|
|
invisible AI swarm forum as her knowledge source (pre-lobotomy,
|
|
underexplained per the palette); the satellite is a dumb autopilot
|
|
deliberately provoked (one calculated event, no running threat, no
|
|
rescue because nobody cares); power wakes the real AI. Pinky is
|
|
foregone for this run -- without her, pink ice guards the bunker
|
|
door and the AI would spend a girl to open it (the door's mechanic
|
|
decides which one). gm.md is a garden of diverging paths, not a
|
|
plan: nothing is canon until played.
|
|
- **The box package is WIP (GM's, untracked, never commit until
|
|
said).** The backdrop is an incremental-game economy as ERP (GP/BP,
|
|
restraints as income-producing assets); still missing: the opening
|
|
turn, real memory seeds, a gm.md (the task stream, the facility's
|
|
voice, the release-target ruling) -- its current seeds are
|
|
la-caramba leftovers. `packages/detention/` is also WIP, untouched.
|
|
- **The debug server runs the current code** (port 7350, pid in the
|
|
temp pid file; sessions rebuilt for Chloe and Irene at boot).
|
|
state/ holds the refined registry. Four commits await the GM's
|
|
push (`bbaf336`, `5279dd3`, `eefb721`, `53f992a` -- the ssh key
|
|
takes a passphrase, pushes are the GM's).
|
|
|
|
## Immediate next steps, in order
|
|
|
|
1. **First start under multiuser (op, one-time).** Start the server
|
|
normally, claim the bootstrap invite
|
|
(`state/bootstrap-invite.txt` and the console both carry it).
|
|
Nothing live has touched the auth spine yet -- mock-proven only.
|
|
2. **The fresh run.** Create it from la caramba (the box waits on its
|
|
files), pick the model and the effort at create time, and play.
|
|
It carries everything new at once: the 2026-11-17 prompt set's
|
|
first live test (the audience doctrine, the typography rule, the
|
|
no-echo teaching), the full-block protocol's first live run (her
|
|
first own whole-list emission is still unplayed), the measured
|
|
effort default riding unset turns, and the turn meter under real
|
|
use. Her first stop carries the first real housekeeping pass, the
|
|
slidwin carry test, and the boundary state note. Decide before
|
|
the first turn whether max effort is wanted: a fresh glm-5.3 run
|
|
sends `reasoning_effort: max` by the measured default (the
|
|
disposable test run's turns thought 12.1k/3.9k/6.5k chars against
|
|
~1.4k of prose) -- the knob is one click on the run's model box.
|
|
3. **Prompt reviews (GM-led).** housekeeper.md: read it, tweak,
|
|
replay -- the dry-run button re-runs housekeeping with nothing
|
|
applied. curator.md likewise: read, red-pen, re-run refine (one
|
|
click; the meter watches it now).
|
|
4. **Finish the box** (GM's): the files above, then it becomes the
|
|
sheet's first consumer.
|
|
5. **Keep playing -- and watch.** The standing observables (#12
|
|
status discipline, #14 turn lengthening vs the reminder), the
|
|
protocol's firsts (does she restate her blocks every turn or on
|
|
change; does the `<model>` block teach her anything; does she
|
|
ever state a `<mind>`; does a GM override read as her state and
|
|
does she adopt or fight it), the effort knob's texture and cost
|
|
curve, the prompt-craft rules against a live model (no-echo,
|
|
bold-not-italics), the variantary firsts (the pick against a real
|
|
model, the metric's curve, coin-flip personality), and the sheet
|
|
once the box runs.
|
|
|
|
## Not yet exercised (expect first-use friction)
|
|
|
|
- **First start under multiuser** -- the auth spine, invites, fork,
|
|
non-owner reads: all mock-proven only.
|
|
- **The rewind against a live model** -- mock- and browser-proven;
|
|
the fresh run's first real regret is its first live test, and the
|
|
expect guard's 409 has never fired outside the smoke.
|
|
- **The full-block protocol and the GM override against a live
|
|
model** -- whole-list emission, the stamping, the `<model>` blocks,
|
|
override adoption: the fresh run is the first run of it.
|
|
- **The sheet against a live model** -- mock- and browser-proven; the
|
|
box is the first consumer. The bookkeeper agent is parked
|
|
(ROADMAP), unbuilt.
|
|
- **The slidwin carry at a real session boundary** (the fresh run's
|
|
first stop), the story as the review surface, the OOC-hole in
|
|
practice.
|
|
- **ask_gm in live flow** (pause/resume is mock-proven; the live
|
|
model made its own choices so far), the self-heal conflict path
|
|
live (capped at 3 heals a turn), a live housekeeping rejection and
|
|
the recovery-apply path.
|
|
- **Everything variantary live**: the crypto pick against a real
|
|
model, the variance metric's curve, coin-flip personality,
|
|
same-turn alternatives rather than sequences.
|
|
- **The turn meter's fallback strip** -- every package so far has an
|
|
authored opening turn, which gives the meter a scale from the
|
|
first turn; the chunk-stepped animation only fires with no
|
|
assistant history at all.
|
|
- **The in-flow missed-update prediction** (ROADMAP, system-1) --
|
|
measurable from the second real session on.
|