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

This commit is contained in:
2026-11-14 21:15:32 +00:00
parent 711634cc38
commit 5956e44f7a
15 changed files with 627 additions and 71 deletions
+14 -1
View File
@@ -39,6 +39,19 @@ CREATE TABLE IF NOT EXISTS paper (
added TEXT NOT NULL
);
-- her agenda: the hot queue of what drives her — intentions, not
-- states (those live on the paper). Id order IS queue order:
-- newest-added at the top, the bottom evicted on overflow — a recency
-- ring buffer for free. The player mutates it with <add>/<drop>
-- deltas (comma-separated adds, index-based drops); the GM overrides
-- with agenda-set. Items never contain commas: the add transport is
-- comma-separated, same as the paper's descriptions.
CREATE TABLE IF NOT EXISTS agenda (
id INTEGER PRIMARY KEY AUTOINCREMENT,
descr TEXT NOT NULL UNIQUE,
added TEXT NOT NULL
);
-- append-only audit journal; nothing here is ever updated or deleted.
-- target is 'e<id>' for entries, 'r<id>' for records, 'p<id>' for paper
-- rows, 'paper' for whole-paper replaces.
@@ -48,7 +61,7 @@ CREATE TABLE IF NOT EXISTS paper (
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', 'paper-add', 'paper-drop', 'paper-set')),
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive', 'amend', 'discard', 'paper-add', 'paper-drop', 'paper-set', 'agenda-add', 'agenda-drop', 'agenda-evict', 'agenda-set')),
target TEXT NOT NULL,
reason TEXT NOT NULL DEFAULT '',
prior TEXT NOT NULL DEFAULT ''