teaching methodology: theory doc + step-unit teaching loop + minimal-tree planning + click-as-collapse philosophy (owner theory, 2026-09-24)
This commit is contained in:
@@ -199,10 +199,10 @@ describe("composeInstructions: override honoring + the byte-identical source pat
|
||||
try {
|
||||
const on = composeInstructions("teacher", { "teacher/20-teaching.md": true });
|
||||
assert.ok(on.includes("CUSTOM TEACHING LOOP"), "override composes when switch on");
|
||||
assert.ok(!on.includes("# Teach — the loop"), "source text is replaced");
|
||||
assert.ok(!on.includes("# Teach — one step at a time"), "source text is replaced");
|
||||
// switch off → source default (the file stays on disk)
|
||||
const off = composeInstructions("teacher", {});
|
||||
assert.ok(off.includes("# Teach — the loop"), "source composes when switch off");
|
||||
assert.ok(off.includes("# Teach — one step at a time"), "source composes when switch off");
|
||||
// switch on for a segment with NO file → source (enabled needs both)
|
||||
const noFile = composeInstructions("teacher", { "teacher/10-planning.md": true });
|
||||
assert.ok(noFile.includes("# Planning"), "file absent → source default");
|
||||
|
||||
Reference in New Issue
Block a user