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:
amosblomqvist
2026-09-24 18:40:15 +03:00
parent f3c075fd2c
commit 401a21e83f
6 changed files with 122 additions and 28 deletions
+1 -1
View File
@@ -1067,7 +1067,7 @@ describe("prompt composition", () => {
}
// it loads in sorted fragment order: right after 20-teaching, before 30-jobs
assert.ok(
teacher.indexOf("Question principles") > teacher.indexOf("# Teach — the loop"),
teacher.indexOf("Question principles") > teacher.indexOf("# Teach — one step at a time"),
"principles sit after the teaching loop",
);
// the prober's doctrine: the "no rush" framing is gone, quick measurement in
+2 -2
View File
@@ -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");