Commit Graph

16 Commits

Author SHA1 Message Date
mute 894737fcf3 the 2026-11-16 rounds, the whole day in one commit: model discovery (the two-step op act -- discover scrapes the provider metadata, refine runs the deterministic battery over every id and hands the adjudicated results to the best passing model for the curated registry; state/models.json is the truth of selectable models and gates all model use, a fresh deployment has none; the five named sampling knobs ride run.json params over server.json params, sent only when set; the curator call retries once on the host's network hiccups, its output strictly validated with the machine-list fallback, and the do-not-deliberate line keeps its thinking tokens down); the pick rule reworked on the GM's rulings -- the dv endpoint's 5.2/5.3-max flip was an alias (one model behind both ids), the rank keys on the reasoning bucket not the raw token count (within-bucket differences are sampling noise, the thresholds sit in the endpoint's observed gaps) and full ties settle sort-lex-pick-bottom, with the mock registry carrying a canned tie pair (mock/mock-tie) and the smoke asserting the lex-bottom pick; the play-protocol batch (OOC GM turns carry no cache blocks, memory.json is authored draft applied by the start gate's reapply over a fresh db, /story filters OOC whole, the per-turn raw control on the table); the tunables UX round (web/knobs.mjs: the definitions table with the GM's hint texts and the probed this-endpoint bounds, the per-knob explicit override toggle replacing implicit empty-means-unset diffing, the shared focus-driven hint bar; the run detail and /model responses carry paramDefaults, the deployment layer -- the only default anyone can honestly name); request recording (every provider call lands its resolved model + effective params on the msg event as via, a failed call lands a req event with the failure, both surface on the raw tab and the per-turn raw control on no model-facing surface, a req riding the slidwin tail passes the start lint as conversation machinery; the housekeeping pass log names its model via the clerk's --model flag); the mind verb (<mind> JSON in a player turn sets its sampling for its next turn -- one-shot, max_tokens excluded, a budget not a mind; bounds enforced in KNOB_BOUNDS with the range named in the conflict and the heal restatement the statement that counts; derive() makes a statement live until a player reply consumes it, honest across restarts, session boundaries and forks -- an unconsumed mind rides on); the full-block protocol (the GM rewrote system/invariants/reminder to eliminate the diff verbs: she emits whole <status>/<agenda> at her turn tail, a present block is a whole-list set, absent means unchanged never blank, over-cap agendas evict from the bottom silently -- ruled a feature, silent to her, the note shows the GM; renderView strips every copy and stamps the newest of each kind at the tail of her most recent prose turn, her own emission, so the context reads as the same sequence of events the game had; GM prose goes pure, old logs' composited rides strip, they were never GM words; <mind> is write-only, its tags strip from the view; every turn of hers carries its <model> block -- the params it rode, bare JSON from the via record, the current call included, suppressed when nothing is set, emitting one refused with a pointer at <mind>; the clerk's status-apply/agenda-apply delta verbs RETIRED with their dispatch and collectors, status-set/agenda-set are the player path now; the story strips her blocks, the table chips them; the smoke imports renderView and asserts the view policy directly -- the pattern for testing view-only policy no API exposes); and the opening event RETIRED (the start gate seeds the clerk from her last authored turn's blocks -- the GM moved la-caramba's initial status into her opening turn; old carryovers keep their events as inert history; the event's pre-existing double-landing in every started log, pre-bundle and in-carry, died with the branch); smoke ALL PASS + restart + reminder + repo checks green, browser passes over the knob UX and the new chips and notes with zero console errors, typecheck green on both programs; README and DICTIONARY carry the durable design, HANDOFF trimmed to the map 2026-11-16 21:32:02 +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 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 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 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 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