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:
+1
-1
@@ -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
|
||||
|
||||
@@ -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