7ed729e294
- 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
51 lines
1.9 KiB
SQL
51 lines
1.9 KiB
SQL
PRAGMA foreign_keys = ON;
|
|
|
|
-- ids are AUTOINCREMENT: rows can move between entries and records
|
|
-- (archive / unarchive), and ids must never be reused — journal targets
|
|
-- stay meaningful forever.
|
|
CREATE TABLE IF NOT EXISTS entries (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
ring TEXT NOT NULL CHECK (ring IN ('a', 'b', 'cold')),
|
|
type TEXT NOT NULL CHECK (type IN ('place', 'person', 'fact', 'thread')),
|
|
label TEXT NOT NULL,
|
|
detail TEXT NOT NULL DEFAULT '',
|
|
created TEXT NOT NULL,
|
|
last_touched TEXT NOT NULL
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS entries_ring_touch
|
|
ON entries (ring, last_touched DESC, id DESC);
|
|
|
|
-- the character's files: cards, ledgers, manifests.
|
|
-- detailed, queryable, never bulk-loaded into context.
|
|
-- access is diegetic and per-run: packages/<story>/settings.json {"records": bool}
|
|
CREATE TABLE IF NOT EXISTS records (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
kind TEXT NOT NULL,
|
|
label TEXT NOT NULL,
|
|
detail TEXT NOT NULL DEFAULT '',
|
|
created TEXT NOT NULL
|
|
);
|
|
|
|
-- the player's own piece of paper: baselines (the "what would make sense"
|
|
-- default — a decision already made) plus excursions (declared only when a
|
|
-- value leaves its baseline, cleared when it returns). exception reporting.
|
|
CREATE TABLE IF NOT EXISTS status (
|
|
key TEXT PRIMARY KEY,
|
|
normal TEXT NOT NULL DEFAULT '',
|
|
value TEXT NOT NULL DEFAULT '',
|
|
updated TEXT NOT NULL
|
|
);
|
|
|
|
-- append-only audit journal; nothing here is ever updated or deleted.
|
|
-- target is 'e<id>' for entries, 'r<id>' for records, 's:<key>' for status.
|
|
CREATE TABLE IF NOT EXISTS events (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
window TEXT NOT NULL,
|
|
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive', 'amend', 'discard', 'status')),
|
|
target TEXT NOT NULL,
|
|
reason TEXT NOT NULL DEFAULT ''
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS events_window ON events (window);
|