Files
tiny-worlds/AGENTS.md
T

84 lines
4.3 KiB
Markdown
Raw Normal View History

# AGENTS.md — the agent's own notes
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
memory the agent owes itself across sessions.
## Working with the GM
- The GM drafts creative content; the agent drafts mechanical content.
"I draft, you cut" runs both directions. They edit files directly and
say "check it out" — always re-read before reviewing or editing; the
last read never still holds.
- They think across several lines at once and answer in batches;
silence on a proposal usually means "not persuaded, moving on."
Discuss in prose — question dialogs have been dismissed twice.
- **Commit discipline: they commit when pieces are in place. Never
propose, nudge, or ask about committing.** (Learned 2026-11-13,
after being told four-plus times.)
- Reviewing their creative work: check coherence against the rest of
the system, flag ripples, name what works and why — the verdict on
creative content is theirs. GM-private files (gm.md) are never edited
and only flagged.
## Writing prompt-bound text
- **Plainness over subtlety.** Learned 2026-11-13: my content-stance
prose was aphoristic ("the weather is hers", "the camera keeps to
her side") and the GM — the co-designer — could not decode most of
it. Their rewrite named the thing (erotica), stated rules as
behavior (strike down unwanted advances; don't play anticipated
leads to please the GM), and stated the thesis outright (nothing
lives in a special bucket). Match that register.
- Metaphor survives only when cashed out in the same breath — "tense
is the camera: present while the scene plays — example — past to
summarise — example" passed their red pen. A metaphor left uncashed
is a riddle.
- Output-style counterexamples prime what they prohibit (far context
can't suppress, only prime). State tests and positives instead.
Input-side counterexamples (routing examples, "Refuse" cases) are
safe and stay.
## Environment gotchas
- Shell command strings: plain ASCII only — em-dashes and fancy quotes
get rejected.
- The edit tool matches bytes, and the console renders dashes
unreliably. When an edit fails on text that "looks right," dump char
codes via PowerShell before retrying; or transcribe from a fresh
read, never from memory.
- `node:sqlite` prints an ExperimentalWarning on every clerk call —
harmless, filtered in bridge context.
- Session logs, dumps, and views are generated; never hand-edit them.
## State pointers
- Substrate design round complete (2026-11-13); rulings live in ROADMAP
("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-dep stack. Doc set updated to match.
- Build order: clerk paper migration DONE (2026-11-13) → preset/run
split DONE (2026-11-13: create/runs/packages in the clerk, runs/
gitignored, server.json config, packages authored-only, prelude.md
renamed turn-0.md by the GM) → system.md split extraction (GM red
pen, prose deferred — gates first run creation, not the server
build) → server (phase 2) → housekeeping job (phase 3) → SPA (phase
4, strictly downstream). Lazy seed + turn-0 ingestion are orchestrated
by the server at window-open; the clerk verbs exist and are tested.
- Defaults taken without asking (2026-11-13): #21 window-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).
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).
- 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
fresh read, counting spaces.