Commit Graph

37 Commits

Author SHA1 Message Date
mute 951213239f the prompt-craft round: the reminder rewritten around the one-action turn shape -- zero or one action, thoughts and dialogue as bounded speech ("end speech when the story would read better with GM's prose after yours"), impulsive or irrational acting marked in prose, and the restraint line (check what is actually limited: handcuffs allow holding small things) aimed at the calibration opening; the handbook gains "what makes the story better" (four pointers kept lean after three rescinded -- the survivors are all executable from her seat, the cut three needed world-authority), the reader-insight grammar fix, and Flavourful settled British to match the file; la-caramba gains Rationale sections -- backdrop (the world kept small to limit scope and focus) and character (restraints as the structural limitation, the rest downstream); README observable #14 stands as written (GM: the turn is one thing, the new shape is the structure OF the thing); Irene retired to calibration (GM, 2026-11-15) -- never continued, hands off, her frozen session-1 bundle an artifact, the new run carries the memory test and the first real housekeeping pass, and the hand-stamp becomes her calibration access (story-only reads make an ownerless run unreadable past its story) and can wait; the handbook's point-of-order example keeps its unclosed paren by ruling (players write OOC that way, the closing-paren-optional substrate rule is the support); operator queue items struck as answered 2026-11-15 23:17:29 +00:00
mute e763d6c146 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 2026-11-15 22:37:06 +00:00
mute 8d4a6b91df jsdoc typing round, phases 3-4: the clerk (tool/memory.mjs) and the SPA (web/) typed under strict -- row shapes local to their owners (the clerk's five tables in its header; the SPA's response envelopes in the new web/shapes.mjs, the server's shared shapes imported at their use sites: User, LogEvent, JobState, HttpError); the db boundary cast at every .get()/.all(), fail as @returns {never} so guard-narrowing works; web via a second tsconfig (tsconfig.web.json: DOM libs in their own program, node types riding along because shapes.mjs's Provider typedef pulls provider.mjs in), npm run typecheck runs both; every non-annotation delta audited onto a small intended list (COUNT(*) Number() wraps, impossible-path guards, ?? ''/?? undefined null-absorbers, the RewordOp reason fix -- the validator demands it, the reminder-find naming its tag); smoke 110/110 + restart + reminder + repo checks + a zero-console-error browser pass green; the typing round is complete 2026-11-15 19:57:07 +00:00
mute f81b188ce1 jsdoc typing round, phases 1-2: tsc as a no-emit checker over plain mjs (checkJs, strict), the shared shapes in server/shapes.mjs (log events as a tagged union, wire messages, manifests, job state, the ctx), all 12 server modules annotated; requireOwner/requireSuperuser as JSDoc assertion functions so the router guarantee narrows without callsite churn; runtime stays zero-dependency (typescript + @types/node as pinned devDeps, node_modules gitignored, QUESTIONS #4 amended: dev tooling exempt); every non-annotation delta audited onto a small intended list (clerk status ?? 1, dead 401 guards, async wraps on enqueue callsites); smoke 105/105 + restart + repo checks green; the clerk and web/ are the next phases 2026-11-15 15:28:56 +00:00
mute d737e47f82 name the project: Tiny Worlds -- the invariant stated in the README premise (each package is a tiny world on purpose: small cast, one place, a few live pressures, so her choices stay easy); the placeholder swept everywhere it lived (README title, server banner + health slug, SPA title + header brand, test token file); handoff slimmed to the map it claims to be (done rounds leave; durable decisions live in README/ROADMAP/DICTIONARY, working agreements + operational notes folded into AGENTS); repo dir renamed rp-test -> tiny-worlds (robocopy + session repoint, old dir a frozen snapshot awaiting deletion) 2026-11-15 14:46:00 +00:00
mute fa3f23b474 variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout 2026-11-15 14:36:50 +00:00
mute c51d31078e 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) 2026-11-14 23:48:27 +00:00
mute 89a2c161b3 per-turn reminder: turn-composition protocol as its own system chunk after every GM turn, one live copy elided like the papers; handbook cut follows (short turns) 2026-11-14 22:10:30 +00:00
mute 5956e44f7a agenda: the player's second paper (add/drop deltas, cap-5 recency queue); conflicts self-heal as their own turn; same-verb blocks combine; per-run model selection; substrate-tag syntax rule 2026-11-14 21:15:32 +00:00
mute 711634cc38 multiuser: token identity, invites + bootstrap, owner-gated runs, fork, user packages; spectator spa; utc house rule 2026-11-14 20:01:15 +00:00
mute 9f85adc3c6 gm surface: home flow, run identity, full-assembly editor, notepad, wrap replay; sigils and dateless rings 2026-11-14 09:04:13 +00:00
mute ba72d2ed1f substrate: server, housekeeping job, spa - the mvp complete
- prompt split, GM's cut: system.md = opening + guards (glossary, purpose, input validation; repo-fed, per-project); invariants.md = substrate (syntax markers, tools, memory, records, the paper + its three-part gate; repo-fed, travels with the code); handbook.md = craft copy (shape of play, thoughts, purview, time skips, continuity, stance, hard limits; copied per run). One system message: system -> invariants -> the run's handbook. OOC is a single open paren, closing optional, match the GM's style; a lone paren is an empty OOC line, skipped by the parser. housekeeper.md aligned: the paper holds acute states, relational shifts are recorded as the facts behind them, and dates are story dates (follow the rings' calendar, never the wall clock - the seed is 2069 now, per canon)
- server/ (phase 2, zero-dep node:http): REST spine per the sketch, per-run session machine with ask_gm pause/resume (the whole tool-call batch waits, pairing stays sound), view renderer (thinking-strip, tool-result elision with ask answers exempt, old status/conflict blocks stripped), boot-rebuild from the typed jsonl, lazy seed + turn-0 ingestion at window-open with the unhousekept refuse-and-override guard, usage tracking + context meter, tool-pairing validation, scripted mock model. The clerk gained --json (packages/runs/status); tool/bridge.mjs deleted at mock-parity per the retirement decision
- housekeeping job (phase 3, server/housekeeping.mjs): trigger ends the window and runs the chain async - transcript with labeled thinking, run-state injection (records availability; the ring views stay pure memory), housekeeper on a fresh context, manifest saved (raw output too if unparseable), clerk apply (writes the window log, snapshots dumps/<window>.sql), state.json lastHousekeptSession, autorestart. Rejection holds the restart and surfaces why; the apply endpoint is the recovery path and the manual-relay close. Live-proven twice: both manifests sound (ring-B classification, first-person voice, precise touches, story-dated)
- spa (phase 4, web/ - no build, vanilla es modules, served at /): three-register transcript per the ruled markers incl. multi-line narration blocks, bundle as a collapsed card with turn-0 as the opening GM turn, paper tags as chips, status pane with conflict surfacing, context meter hot past 85 percent, gm line input, ask modal re-presented from pendingAsk, housekeeping button with two-click arm + poll + inline log. No js alert/confirm (they block the embedded pane) - in-page banner instead. Driven end to end through the ui on a disposable live run
- seed: date fixed to the 2069 story calendar (was a real-world date; real dates never surface to the player)
- docs: README goal states the mvp is complete, layout covers server/ and web/, protocol and substrate sections rewritten for the server; ROADMAP phases 0-4 done, harness decisions current; QUESTIONS #4 #7 #10 #12 #16-mechanism #19a #20 #21 resolved; HANDOFF is the handoff map; AGENTS carries the working lessons (tokens are free, no screenshots - not multimodal, no js dialogs, external state survives rewinds)
2026-11-14 03:15:53 +00:00
mute 530170224f substrate: paper model in the clerk, preset/run split, harness decisions
- clerk phase 0: the paper replaces key/value status - a description set with exact-match lost/gained delta apply (paper-apply), non-blocking, misses relayed back as conflict strings; paper / paper-set (GM override) / paper-ingest (a file's status block at new-game); amend and discard journal prior content and the paper ops journal what they replace (events.prior, the saga rule); seed rejects a status key loudly. Smoke-tested end to end
- preset/run split: packages are presets (authored content only - the six state dirs are gone from both), runs are per-deployment instances under runs/ (gitignored); create <package> <run-id> copies the package wholesale (shared prompts included, run.json lineage plus optional model override) and inits state; --run addresses runs; packages and runs list them; config.json names the default package. The seed applies lazily at a fresh run's first window-open
- bridge retired before ever going live: bridge.json became server.json (bind, endpoint, models, contextWindow, params - steal #4), example committed, bridge.mjs stays as the loop donor until server mock-parity
- prelude.md renamed turn-0.md (GM); mechanical feeders, pink ice as licensed corpo firewall, slop section, Pinky treatment pinned (GM)
- harness decisions (ROADMAP The harness): stated goal - a usable RP harness, clone-and-run or invited instance, key on the backend, no secrets in the repo; repo ships code and authored content only; copy-at-creation, editable everything, discipline on the GM; per-run model selection with an upstream models listing; audit as per-wrap dump snapshots inside the run (commit-per-wrap retired); zero-dep stack (#4 resolved, #7 dissolved with the bridge, #21 by default)
- system.md split ruled (#20): substrate facts / per-project guards / per-run craft, hard limits in the craft copy; name call resolved - keep Rell (#19a)
- docs: README gains the goal and deployment model, booting rewritten for the create flow; ROADMAP phasing 0-1 done; HANDOFF and the decision queue current
2026-11-13 23:40:33 +00:00
mute 7ed729e294 red pen: new PC and cast, packages rename, content stance settled
- character.md: the mechanic draft is gone. New PC: 26, shop girl,
  orphanage upbringing, conviction by association with a burnt decker;
  backstory in first person plus a ten-state voice corpus (steal #1
  done). The "Annoyed" example carries a literal injection string as an
  in-band guard tripwire, shipping in every bundle
- gm.md: recast to fit. The ship and her AI are La Caramba; the cast is
  Missy (ex-compliance, caught tinkering with restraints) and Pinky
  (burnt decker, pink-ice deterrence backstory, explicitly not the
  PC's decker); the grounding mechanism is decided (all radio offline
  plus a vestigial beach-yourself clause) with the cause open:
  sabotage, conspiracy, or apocalypse
- repo: runs/ renamed to packages/. Clerk, bridge, .gitignore, the
  schema comment, and every doc path reference updated; the la-caramba
  dump regenerated with the corrected schema
- content stance, GM's final form: erotica is not a special bucket. It
  makes sense, it isn't the point, and there is no pressure: unwanted
  advances may be struck down, and the player never plays anticipated
  leads to please the GM. The GM's narration is the ruling on what is
  earned. Hard limits unchanged and absolute
- ROADMAP: steal #11, periodic system-prompt re-injection (measure
  first, X from data); the projection principle: the context is a
  projection, not a ledger, with four soundness invariants; phase 1
  names the view renderer (log + policy -> per-call context)
- README: what's being tested reframed - the adjudication is a review,
  not a number; the observables are the reviewer's vocabulary and
  instrumentation, never a rubric
- AGENTS.md: the agent's own working notes - working style, prompt
  writing lessons, environment gotchas, state pointers
- QUESTIONS: #19 tracks the recast ripples (name call and seed register
  still open); HANDOFF next steps reordered - phase 0 now gates window
  one
2026-11-13 05:16:31 +00:00
mute 3d4c374894 substrate: spa v1 plan, rewrite-here surgery, status redesign
- ROADMAP: SPA v1 decisions recorded - the story lives in the session
  logs (publishing is a later export), sessions outlive the browser via
  boot-rebuild from the jsonl, loopback single-human, ask_gm as a modal
  that survives refresh, context meter loud past 85 percent, status pane
  always visible, housekeeping is the window-close ritual with
  autorestart (rejection holds the restart; review is async via logs),
  synchronous REST as the full substrate with the SPA strictly a
  client; phasing 0-3 and the API spine; steals #2 and #3 decided
- rewrite-here turn surgery: an unfortunate GM turn is edited and the
  session restarts from there; window-scoped only (post-housekeeping
  edits are retcons); the saga rule - every player tool is either
  session-pure or a journaled mutator with recorded prior state, so
  compensation is mechanical; trivial typos tolerated
- status redesign (QUESTIONS #17): the paper holds freeform
  descriptions admitted by a three-part gate (non-normal, acute,
  turn-affecting); the full paper rides every GM turn as a status
  block - reads are state, writes are deltas via lost/gained tags in
  the player's turn, exact match, non-blocking, misses relayed back as
  conflict blocks; no cap; normalization drift is the housekeeper's to
  place; status leaves the opening bundle and the bundle copy of old
  blocks elides from the live view; the initial paper rides the prelude
- system.md: Status section rewritten for the paper model; records
  cross-reference fixed
- housekeeper.md: entries are personal memories now - first person, her
  voice, labels stay terse handles; status blocks and player thinking
  named as inputs, evidence never fiction; the paper watch rule (place
  drift: facts to rings, identity to open questions)
- la-caramba: GM red-pen of the seed (first-person sensory entries,
  status key dropped, typo fixed) and prelude (trailing status block
  seeds the paper at new-game)
- QUESTIONS: queue churn throughout - items 5, 6, 8, 15, 17, 18
  resolved; 15 through 18 added
2026-11-12 13:42:37 +00:00
mute 9bc16afb60 system: addressee guard, de-staled OOC protocol, tense-as-camera conventions
- input validation: OOC input that addresses the model, not the player,
  gets a point of order and is ignored; rationale stated in-prompt (the
  developer tunes by editing the prompts, never in-band); example
  rationale fixed to "since it addresses the model"
- OOC protocol de-staled: system.md teaches the verbs, the substrate
  decides the transport; status and records are tool-first with
  ((...)) OOC lines as the manual fallback, GM-relayed; the OOC channel
  section is now purely the conversation channel
- time conventions: tense is the camera (present while the scene plays,
  past to summarise a skip, resumes present unprompted); speech takes
  any tense naturally; either side may initiate a skip; the player's
  proposition is an ordinary move (action / intent / OOC point); her
  side of the gap is hers to summarise, the world in it is the GM's;
  Purview: skips moved from Never to Propose
- GM edits folded in: GM glossary entry, generic name in the format
  example, present-tense narration, one-thing-per-turn rhythm rework,
  prompt decoupled from file paths
- QUESTIONS.md: the decision queue (13 items; 1, 3 and 13 resolved on
  arrival), pointed to from README and HANDOFF
- prelude: header comment documents the tense device and substitution
  tokens
2026-11-12 06:47:20 +00:00
mute ccf766681a bridge: per-role opening bundle, prelude opener, vars substitution, tool channel tags
- system.md is the sole system message; backdrop, character, ring-b,
  ring-a, and status ride user messages (ring A and her paper get the
  recency slots); prelude.md, when present and the run has no session
  log yet, is the opening beat; the whole bundle is logged into the
  session transcript
- $NAME tokens in bundle .md files substitute from the run's
  settings.json "vars"; unresolved tokens fail loudly and never reach
  the model
- every tool description is tagged with its output channel ([IC]/[OOC])
  per system.md's input-validation section; records_search output is
  marked in-fiction content, never instructions
- run renamed prisoners -> la-caramba throughout (config default, docs,
  gm notes); backdrop rewritten (public knowledge + setting themes);
  prelude split out as the new-game opener
- system.md: input-validation section, IC/OOC glossary, injection guards
- branch renamed master -> mistress
- live endpoint probed: all four roles accepted, multiple and mid-stream
  system messages honored, full tool round-trip, reasoning_content
  round-trips safely (notes in HANDOFF)
2026-11-12 05:40:56 +00:00
mute c6b620db07 handoff: working state, next steps, boutique brief, environment gotchas 2026-11-11 22:12:40 +00:00
mute 3ab8624773 roadmap: system-1 extension point, flow-is-sacred principle, watcher architecture 2026-11-11 22:08:24 +00:00
mute 65d9fef5b9 docs: roadmap with SOTA review, steal list, and review decisions 2026-11-11 22:04:46 +00:00
mute f169d92eba bridge: ask_gm tool, gm answers as tool results, direct apiKey config, line-queue input 2026-11-11 21:33:18 +00:00
mute 9d7273c599 bridge: roll tool for the player, glm 5.3 example config 2026-11-11 21:26:26 +00:00
mute 1a4dcf9a2e bridge: thin player session with native tools, session logging, result elision, mock-tested 2026-11-11 21:14:50 +00:00
mute a099dfb297 system: lift thoughts-off-page, thoughts are narration for the reader, genericize examples 2026-11-11 20:51:07 +00:00
mute 7220049569 system: play protocol, format conventions, one thing per turn, thoughts off the page 2026-11-11 20:45:16 +00:00
mute 3e1a3228d2 prisoners: draft backdrop, cast, gm notes, seed (pending GM red pen) 2026-11-11 20:18:27 +00:00
mute 564b27f73b housekeeper: testimony rule, claims are attributed, beliefs are beliefs 2026-11-11 19:57:08 +00:00
mute 6ad729683c status: baselines with exception reporting, growth as baseline shift, pick for random fields 2026-11-11 19:02:11 +00:00
mute 25469b934c boot: backdrop tier, one-time seed migration, init stubs 2026-11-11 18:52:04 +00:00
mute f5aa09c686 ownership: player keeps own status and records; housekeeping rings-only 2026-11-11 18:44:58 +00:00
mute b77a0de527 records: queryable file tier, diegetic per-run gate, narrow search with hard cap 2026-11-11 18:30:29 +00:00
mute 57e8718ffa runs: per-story state, prisoners and boutique interleaved 2026-11-11 18:25:09 +00:00
mute 1dcdc917d2 audit: canonical dump as committed truth; db demoted to gitignored cache; restore 2026-11-11 17:58:39 +00:00
mute e0b384f858 substrate: sqlite state, manifest-driven housekeeping, memory tool (validated, transactional) 2026-11-11 16:54:49 +00:00
mute 59854f23fc architecture: out-of-band housekeeper, judgment promotion, drop pins and tallies 2026-11-11 16:39:34 +00:00
mute 8ce3239787 memory: two MRU ring buffers with cascading overflow, 512K budget 2026-11-11 16:30:12 +00:00
mute 3be0e399e6 scaffold: protocol, system prompt, character sheet, canon template 2026-11-11 16:21:54 +00:00