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)

This commit is contained in:
2026-11-14 22:00:04 +00:00
parent 5956e44f7a
commit 89a2c161b3
13 changed files with 156 additions and 31 deletions
+12
View File
@@ -102,6 +102,18 @@ export function assembleSystem(runId) {
return expandVars(runId, [system, invariants, handbook].join('\n\n'));
}
// the per-turn reminder: the small turn-composition protocol, repo-
// shared (never copied into a run), sent after the GM's prose as its
// own system chunk every turn. Older copies elide from the view, so
// exactly one lives at the freshest position (ROADMAP steal #11).
// Absent or empty file = no ride; the feature sleeps until written.
export function assembleReminder(runId) {
const p = path.join(ROOT, 'reminder.md');
if (!fs.existsSync(p)) return null;
const text = fs.readFileSync(p, 'utf8').trim();
return text ? expandVars(runId, text) : null;
}
// the bundle: GM messages, one per file. turn-0 never rides it — the
// opening beat is a GM turn (sent on start), not context.
export function assembleBundle(runId) {