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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user