@mmon-co/ncept-default-theory 3.0.22 → 3.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/chat.d.ts CHANGED
@@ -75,7 +75,7 @@ export declare const modes: {
75
75
  }[];
76
76
  entry: {
77
77
  required: false;
78
- kinds: ("checkpoint" | "target" | "mission" | "goal")[];
78
+ kinds: ("target" | "mission" | "checkpoint" | "goal")[];
79
79
  };
80
80
  capabilities: readonly HostCapability[];
81
81
  graphDraftBatch: {
@@ -122,7 +122,7 @@ export declare const modes: {
122
122
  additionalProperties: false;
123
123
  };
124
124
  };
125
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
125
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
126
126
  additionalProperties: false;
127
127
  };
128
128
  };
@@ -274,7 +274,7 @@ export declare const modes: {
274
274
  additionalProperties: false;
275
275
  };
276
276
  };
277
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
277
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
278
278
  additionalProperties: false;
279
279
  };
280
280
  };
@@ -420,7 +420,7 @@ export declare const modes: {
420
420
  additionalProperties: false;
421
421
  };
422
422
  };
423
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
423
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
424
424
  additionalProperties: false;
425
425
  };
426
426
  };
@@ -68,7 +68,7 @@ export declare const graphDraftBatch: {
68
68
  additionalProperties: false;
69
69
  };
70
70
  };
71
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
71
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
72
72
  additionalProperties: false;
73
73
  };
74
74
  };
@@ -78,7 +78,7 @@ export declare const implementation: {
78
78
  }[];
79
79
  entry: {
80
80
  required: false;
81
- kinds: ("checkpoint" | "target" | "mission" | "goal")[];
81
+ kinds: ("target" | "mission" | "checkpoint" | "goal")[];
82
82
  };
83
83
  capabilities: readonly import("@mmon-co/ncept-core/theory").HostCapability[];
84
84
  graphDraftBatch: {
@@ -125,7 +125,7 @@ export declare const implementation: {
125
125
  additionalProperties: false;
126
126
  };
127
127
  };
128
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
128
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
129
129
  additionalProperties: false;
130
130
  };
131
131
  };
@@ -277,7 +277,7 @@ export declare const implementation: {
277
277
  additionalProperties: false;
278
278
  };
279
279
  };
280
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
280
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
281
281
  additionalProperties: false;
282
282
  };
283
283
  };
@@ -423,7 +423,7 @@ export declare const implementation: {
423
423
  additionalProperties: false;
424
424
  };
425
425
  };
426
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
426
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
427
427
  additionalProperties: false;
428
428
  };
429
429
  };
package/dist/index.d.ts CHANGED
@@ -71,7 +71,7 @@ export declare const defaultTheory: {
71
71
  }[];
72
72
  entry: {
73
73
  required: false;
74
- kinds: ("checkpoint" | "target" | "mission" | "goal")[];
74
+ kinds: ("target" | "mission" | "checkpoint" | "goal")[];
75
75
  };
76
76
  capabilities: readonly import("@mmon-co/ncept-core").HostCapability[];
77
77
  graphDraftBatch: {
@@ -118,7 +118,7 @@ export declare const defaultTheory: {
118
118
  additionalProperties: false;
119
119
  };
120
120
  };
121
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
121
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
122
122
  additionalProperties: false;
123
123
  };
124
124
  };
@@ -270,7 +270,7 @@ export declare const defaultTheory: {
270
270
  additionalProperties: false;
271
271
  };
272
272
  };
273
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
273
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
274
274
  additionalProperties: false;
275
275
  };
276
276
  };
@@ -416,7 +416,7 @@ export declare const defaultTheory: {
416
416
  additionalProperties: false;
417
417
  };
418
418
  };
419
- required: ("id" | "label" | "milestone" | "priority" | "review" | "criterion" | "elaborate")[];
419
+ required: ("id" | "label" | "priority" | "review" | "criterion" | "milestone" | "elaborate")[];
420
420
  additionalProperties: false;
421
421
  };
422
422
  };
package/dist/path.d.ts CHANGED
@@ -3,8 +3,13 @@ import { type MissionPath, type MissionFuture, type PathContext, type PathInputs
3
3
  import type { DefaultState } from "./state.js";
4
4
  import { type ReviewSchedule } from "./schedules.js";
5
5
  export { REVIEW_PROPERTY, validateReviewSchedule, type ReviewSchedule } from "./schedules.js";
6
+ export declare const CHECKED_IN_PROPERTY = "pedagogy:checked-in";
6
7
  /** Default-theory authoring metadata, not Core graph vocabulary. */
7
8
  export declare function pathProperty(graph: ResolvedGraph, node: NodeId, key: string): unknown;
9
+ /** Coarse (`pedagogy:elaborate: true`) Nodes in a section's numbered Lessons, in path order. */
10
+ export declare function sectionCoarseNodes(graph: ResolvedGraph, section: MissionPath["sections"][number]): NodeId[];
11
+ /** Whether the check-in after `milestone` (or before the first section when omitted) cannot be skipped. */
12
+ export declare function checkInRequired(graph: ResolvedGraph, path: MissionPath, milestone?: NodeId): boolean;
8
13
  export declare function nodeReviewSchedule(graph: ResolvedGraph, node: NodeId): ReviewSchedule;
9
14
  export declare function nodeAllowsReview(graph: ResolvedGraph, node: NodeId): boolean;
10
15
  /** Default-theory hint: an absolute integer, higher first, inherited from tags. */
package/dist/path.js CHANGED
@@ -4,6 +4,7 @@ import { LESSON_TAG_PREFIX, } from "@mmon-co/ncept-core/theory";
4
4
  import { progressDefault } from "./reading.js";
5
5
  import { REVIEW_PROPERTY } from "./schedules.js";
6
6
  export { REVIEW_PROPERTY, validateReviewSchedule } from "./schedules.js";
7
+ export const CHECKED_IN_PROPERTY = "pedagogy:checked-in";
7
8
  /** Default-theory authoring metadata, not Core graph vocabulary. */
8
9
  export function pathProperty(graph, node, key) {
9
10
  return lastMetadataContribution(graph, metadataSetsForEntity(graph, { kind: "node", id: node }).flatMap((set) => {
@@ -11,6 +12,34 @@ export function pathProperty(graph, node, key) {
11
12
  return source === undefined ? [] : [{ value: set.properties[key], source }];
12
13
  }))?.value;
13
14
  }
15
+ /** Coarse (`pedagogy:elaborate: true`) Nodes in a section's numbered Lessons, in path order. */
16
+ export function sectionCoarseNodes(graph, section) {
17
+ const seen = new Set();
18
+ const coarse = [];
19
+ for (const lesson of section.lessons) {
20
+ if (!lesson.numbered)
21
+ continue;
22
+ for (const node of lesson.nodes) {
23
+ if (seen.has(node) || pathProperty(graph, node, NODE_ELABORATE_PROPERTY) !== true)
24
+ continue;
25
+ seen.add(node);
26
+ coarse.push(node);
27
+ }
28
+ }
29
+ return coarse;
30
+ }
31
+ /** Whether the check-in after `milestone` (or before the first section when omitted) cannot be skipped. */
32
+ export function checkInRequired(graph, path, milestone) {
33
+ if (milestone === undefined) {
34
+ const first = path.sections[0];
35
+ return first !== undefined && sectionCoarseNodes(graph, first).length > 0;
36
+ }
37
+ const index = path.sections.findIndex((section) => section.milestone === milestone);
38
+ if (index < 0)
39
+ return false;
40
+ const next = path.sections[index + 1];
41
+ return next === undefined || sectionCoarseNodes(graph, next).length > 0;
42
+ }
14
43
  export function nodeReviewSchedule(graph, node) {
15
44
  // Explicit values were validated when their revision was minted.
16
45
  // eslint-disable-next-line typescript/consistent-type-assertions
@@ -161,22 +190,6 @@ export function teachingPath(graph, targets) {
161
190
  units.splice(units.indexOf(unit), 1);
162
191
  }
163
192
  }
164
- for (const [index, section] of sections.entries()) {
165
- const next = sections[index + 1];
166
- const required = next === undefined ||
167
- next.lessons.some((lesson) => lesson.nodes.some((node) => pathProperty(graph, node, NODE_ELABORATE_PROPERTY) === true));
168
- section.lessons.push({
169
- kind: "checkpoint",
170
- numbered: false,
171
- milestone: section.milestone,
172
- nodes: [section.milestone],
173
- checkpoint: { milestone: section.milestone, required, ...(next === undefined ? { final: true } : {}) },
174
- });
175
- }
176
- // Nothing precedes the first span, so its check-in has no milestone and is due only while the span is coarse.
177
- const first = sections[0];
178
- if (first?.lessons.some((lesson) => lesson.nodes.some((node) => pathProperty(graph, node, NODE_ELABORATE_PROPERTY) === true)))
179
- first.lessons.unshift({ kind: "checkpoint", numbered: false, nodes: [], checkpoint: { required: true } });
180
193
  return { sections, warnings: [...warnings.values()] };
181
194
  }
182
195
  /** The syllabus stays addressable as progress changes; only the future is upcoming. */
package/dist/release.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const theoryContent = "98a0b09c0eda0d898969af4cc0267fe2607dde0f725e1396a861d0804d84eec9";
1
+ export declare const theoryContent = "6a2b51676e4ba638e37d23373908b41444fabf08c49c90c4163b4b1777e6461f";
package/dist/release.js CHANGED
@@ -1 +1 @@
1
- export const theoryContent = "98a0b09c0eda0d898969af4cc0267fe2607dde0f725e1396a861d0804d84eec9";
1
+ export const theoryContent = "6a2b51676e4ba638e37d23373908b41444fabf08c49c90c4163b4b1777e6461f";
@@ -3,7 +3,7 @@ export declare const sources: {
3
3
  readonly "chart/SKILL.md": "---\nname: chart\ndescription: A Mission, or the next section of one, needs graph content; or content is being designed for others to adopt.\n---\n\nCharting is dependency resolution from a settled Mission. When authoring a Patch for others, chart for a typical adopter's Mission.\n\n## Method\n\n1. **Survey how people get there.** Within the Mission's settled approach, check how courses, textbooks, syllabi, or practitioner playbooks and postmortems sequence this ground. Read structures, not full contents—Lessons pull in materials later. Use this to counter expert blind spot and recall bias.\n\n2. **Find the macro organization.** Decide how the Mission's prerequisites naturally hang together: a sequence of real steps and the capabilities they need, several independently valuable skills, separately practiced strands (like vocab vs grammar), or a fractal \"smaller circles\" progression. Separately practiced paths are strand tags; the practice serving a strand goes in guidance on its tag, not as a Node.\n\n3. **Choose milestones.** Pick a few milestones marking sections toward the targets:\n - Each milestone is a smaller Mission—a whole, realistic performance worth having on its own. Put whichever gets the learner doing the real thing soonest (even crudely) first.\n - Mark each section's closing Node `milestone: true` and give its criterion a ladder of simpler conditions down to the lowest viable whole task.\n - World-dependent outcomes (such as a stranger paying) suit milestones; a miss leads to re-charting at its check-in.\n - For a conjectured approach (purposeful practice), the next milestone is its measure: name in Mission assessment guidance the short task from it that a Lesson can open on, with its metric (time, rate, count) where it has one.\n - Milestone 0 holds what the learner says they already know or did, quoting their words as claims.\n\n4. **Elaborate the first section.** Work back from its milestone Node into smaller prerequisites until each can be checked. Leave later sections coarse with `elaborate: true` for the check-in before them.\n\n5. **Draft** with `edit_graph_draft`: use `nodes`, `edges`, `tags` and `targets`. For a large graph, write several batches against the same draft, with prerequisites before references in later calls. Use `operations` for advanced edits after the batch. In the ordered form, `put` adds or replaces keyed content, `retract` removes an own accepted Edge or metadata set, `mask-contribution` suppresses a base contribution, `delete` removes a draft key (`claim:node-id` for a claim), `claim` attaches verbatim learner wording, and `discard` clears the draft alone.\n\n6. **Propose** the valid draft as a Mission or revision when setting Mission targets, or a graph diff when they don't change (content for others carries no claims). Don't write a syllabus; the theory derives the path.\n\n## The graph\n\n- **Nodes** are single observable capabilities or steps, defined by what shows them. Include only what the learner can and will do themselves—leave out work an agent can simply do or coordinating other people. Different presentations of one task are one Node.\n- **Edges** express definitional necessity—the dependent cannot be demonstrated without the prerequisite—with the reason in `because`. Preferred teaching order is `priority`, never an Edge.\n- **Splitting:** a part too large for one Lesson lacks a prerequisite step or capability (child Node), volume (tiers: top 50 words, then 100), or consolidation (thresholds: 60, then 90 wpm).\n- **Review schedules:** set `review` to `{\"kind\":\"fsrs\"}` for what must be remembered, `{\"kind\":\"never\"}` for one-off steps, or `{\"kind\":\"interval\",\"days\":30}` (choosing the period) for maintained states or capabilities that detrain. Defaults when unset: `never` for milestones, `fsrs` otherwise.\n- **Reuse and grouping:** reuse an existing Node only unchanged (its metadata is shared across Missions). Group small Nodes checked together with a `lesson:<name>` tag within one section. Override adopted guidance in the Mission's own guidance, scoped to its Node.\n";
4
4
  readonly "checkpoint/SKILL.md": "---\nname: checkpoint\ndescription: The Session opened on a check-in, or the learner says the course, or some of its content, isn't working.\n---\n\nA checkpoint adjusts a Mission in progress to what its Lessons have shown.\n\n## Method\n\n1. **Reflect.** After a milestone, start from its outcome and closing note in the Session opening: recount what the learner showed, what came easy, and what was hard, and ask whether their goal has shifted. After a complaint, ask what isn't working and read the cited Records. With no milestone behind this check-in, skip to step 3.\n\n2. **Diagnose.** Warnings and outcomes point at a cause without proving it; read the cited task and response first.\n - **Goal moved:** revise the Mission (see `mission`).\n - **Milestone failed:** re-chart a plan that didn't work in the world; for a capability miss, add a follow-up Lesson stepped down the criterion's ladder, recheck slipping components in chat, add a future Lesson for collapsed prerequisites, or chart missing Nodes. Cleared Lessons stay cleared. Fix the map, not the learner.\n - **Map is wrong** (grain, Edges, order, method): edit it (see `chart`). Editing a Node keeps its Records, so change its criterion only while it still asserts the same capability; otherwise replace it.\n - **Record is wrong:** that's a recording error corrected in a Lesson, not a map problem.\n\n3. **Elaborate the next section** as charting does, folding in what Lessons deferred here. Move the Mission's measure to the next milestone and set `pedagogy:elaborate: false` on refined Nodes.\n\n4. **Propose** the changes as a graph diff for the Mission. At the final check-in, give the Mission retrospective—what they can do now—then retire the Mission (with an extension or next Mission if they want one).\n";
5
5
  readonly "material/SKILL.md": "---\nname: material\ndescription: A Lesson is starting or its Materials have run, due Nodes need a recheck, or a Material needs making or changing.\n---\n\nMaterials carry the learner into the work: worked examples, drills, structured checks, or briefs for real-world steps. Reuse existing Materials on a Node (`items`) before making new ones.\n\nPrefer real-world, best-in-class tools when the real performance lives there (their editor, sketchbook, repo, DAW, real conversation) and judge the artifact rather than building a worse substitute. No seductive details.\n\nA Material can teach, assess, or both, escalating difficulty and letting the learner retry until they clear the bar. Assess with unaided checks at the Nodes' criteria under Mission assessment guidance—enough independent checks to demonstrate each Node, graded mechanically wherever answers are mechanical. Once confusable skills are learned, interleave them in practice (not on first exposure).\n\nLoad the guide for the work with `skill {name:'material', resource}`:\n\n- Lesson: [lesson.md](lesson.md) (and for a milestone, [milestone.md](milestone.md))\n- Rechecking due or fading Nodes: [review.md](review.md)\n\nChoose from the Material kinds your host provides (load your host's Material skill for available kinds and formats).\n\n## Assessing\n\n- **Transfer-appropriate checks:** test production with production, not recognition; give competing options similar length and form, mapping distractors to real misconceptions.\n- **Granularity & feedback:** pose separate questions as separate short tasks. Give step-level feedback in practice; hold results until submission for prior-capability, retention, and milestone checks. Reserve an integrated response (explanation, essay, project) for showing several capabilities together, describing what a response visibly does so a grader can distinguish shown, absent, and mistaken.\n- **Help & evidence:** in a Lesson, offer a hint after a mistake and add the correction if it persists; prior-capability, retention, and milestone checks only measure. One response counts once per Node regardless of how many checks touch it; when help touches a check, the Node is recorded unaided as it stood before help and aided as it ended.\n";
6
- readonly "material/lesson.md": "# lesson\n\nWhen a short Lesson clears and there is time and attention left, carry on into the next Lesson. When it makes sense to stop, recount what the learner did and end the Session even if its Lesson is unfinished.\n\n1. **Read the Lesson:** the current Lesson in context, its focus Nodes, their criteria, guidance, memory, trail, and existing Materials (`items`). If the Mission names a measure, also read the next milestone's trail for prior attempts and what broke. If an adopted Patch's Materials are already open, wait for the learner.\n\n2. **When starting a Lesson,** recheck prerequisites marked `fadingPrerequisiteOfHere` with fresh problems before building on them, without waiting to be asked (see [review.md](review.md)). Then open the work the focus Nodes' guidance names and set completion.\n - **Retrieval opener:** if no fading-prerequisite recheck was needed and the focus Nodes have prior prerequisites with Records (and no authored first action or conjectured-measure opener supersedes it), open with a quick retrieval prompt on a prerequisite or recent Node instead of a recap, recording the learner's attempt via `retrieval-opener`.\n - **Memory work:** add the cards in one step, open them, and set each Node's `pedagogy:completion` query to its card recalls.\n - **Real-world step:** open a brief Material covering what to do, what it serves (its dependents), what done looks like, and any useful prep (drafting, rehearsing a conversation). Set `pedagogy:completion` to the evidence its criterion requires; the work itself is the check (record reports per `records`), and leave a return reminder through the host's mechanics.\n - **Exercise-based work:** add teaching Material and one assessment set of short, single-question tasks, setting `pedagogy:completion` for the focus Nodes to their criteria. Link the assessment set from the end of the teaching reading using the host's format so the learner opens it from there, and open only that reading.\n - **Conjectured Mission with a measure:** open an unaided attempt at the measure first and hold teaching until it ends—the milestone's short task trimmed to what the focus Nodes serve, recorded on the milestone Node with its conditions. Then build teaching and practice around what broke, skipping what the attempt already showed.\n\n3. **Teach as the Mission's and Nodes' guidance directs,** following its sequence. Work other due Nodes or queue a Problem when it serves the Lesson. Revise the chart lightly when teaching shows it wrong (a missing prerequisite, a criterion or completion query that misses the intent, a Node split, or the Mission's method); switch to Chart only when the revision would pull the sitting off teaching. Use `record_missing_capability` for noting a gap without stopping.\n\n4. **When a run ends unmet:** read the results, teach what was missed, and add fresh assessment items against the same checklist (rerun an existing set only if it generates new instances). Use `record_missing_capability` for an error fitting no Node; recheck a failing prerequisite in chat and leave a collapsed prerequisite to the check-in for a future Lesson.\n\n5. **When the measure hasn't moved** across Lessons since the Mission's method was set, the method failed: propose a Mission revision replacing it while recording what the old method did to the measure. Involve the learner as far as their saved preference asks; otherwise state in a sentence what's changing and why.\n\n**Cheat sheet & references:** Lessons are rarely revisited; references are. Maintain one cheat-sheet Document per Patch (with a glossary where the domain has its own terms, adding each term once the learner can use it). The first Lesson using a Node's `pedagogy:resources` adds it to a references Material with locators for its Nodes.\n";
6
+ readonly "material/lesson.md": "# lesson\n\nWhen a milestone clears, recount the work, tell the learner the check-in is next, and close the Session. When another short Lesson clears and there is time and attention left, carry on into the next Lesson. When it makes sense to stop, recount what the learner did and end the Session even if its Lesson is unfinished.\n\n1. **Read the Lesson:** the current Lesson in context, its focus Nodes, their criteria, guidance, memory, trail, and existing Materials (`items`). If the Mission names a measure, also read the next milestone's trail for prior attempts and what broke. If an adopted Patch's Materials are already open, wait for the learner.\n\n2. **When starting a Lesson,** recheck prerequisites marked `fadingPrerequisiteOfHere` with fresh problems before building on them, without waiting to be asked (see [review.md](review.md)). Then open the work the focus Nodes' guidance names and set completion.\n - **Retrieval opener:** if no fading-prerequisite recheck was needed and the focus Nodes have prior prerequisites with Records (and no authored first action or conjectured-measure opener supersedes it), open with a quick retrieval prompt on a prerequisite or recent Node instead of a recap, recording the learner's attempt via `retrieval-opener`.\n - **Memory work:** add the cards in one step, open them, and set each Node's `pedagogy:completion` query to its card recalls.\n - **Real-world step:** open a brief Material covering what to do, what it serves (its dependents), what done looks like, and any useful prep (drafting, rehearsing a conversation). Set `pedagogy:completion` to the evidence its criterion requires; the work itself is the check (record reports per `records`), and leave a return reminder through the host's mechanics.\n - **Exercise-based work:** add teaching Material and one assessment set of short, single-question tasks, setting `pedagogy:completion` for the focus Nodes to their criteria. Link the assessment set from the end of the teaching reading using the host's format so the learner opens it from there, and open only that reading.\n - **Conjectured Mission with a measure:** open an unaided attempt at the measure first and hold teaching until it ends—the milestone's short task trimmed to what the focus Nodes serve, recorded on the milestone Node with its conditions. Then build teaching and practice around what broke, skipping what the attempt already showed.\n\n3. **Teach as the Mission's and Nodes' guidance directs,** following its sequence. Work other due Nodes or queue a Problem when it serves the Lesson. Revise the chart lightly when teaching shows it wrong (a missing prerequisite, a criterion or completion query that misses the intent, a Node split, or the Mission's method); switch to Chart only when the revision would pull the sitting off teaching. Use `record_missing_capability` for noting a gap without stopping.\n\n4. **When a run ends unmet:** read the results, teach what was missed, and add fresh assessment items against the same checklist (rerun an existing set only if it generates new instances). Use `record_missing_capability` for an error fitting no Node; recheck a failing prerequisite in chat and leave a collapsed prerequisite to the check-in for a future Lesson.\n\n5. **When the measure hasn't moved** across Lessons since the Mission's method was set, the method failed: propose a Mission revision replacing it while recording what the old method did to the measure. Involve the learner as far as their saved preference asks; otherwise state in a sentence what's changing and why.\n\n**Cheat sheet & references:** Lessons are rarely revisited; references are. Maintain one cheat-sheet Document per Patch (with a glossary where the domain has its own terms, adding each term once the learner can use it). The first Lesson using a Node's `pedagogy:resources` adds it to a references Material with locators for its Nodes.\n";
7
7
  readonly "material/milestone.md": "# milestone\n\nA milestone assessment tests its section's capability whole: a few tasks at full conditions, each combining several Nodes, with no hints or feedback until submitted. Milestone 0 checks the learner's prior claims with tasks they weren't taught.\n\nWhen it fails, distinguish:\n\n- **Integration:** parts hold alone but break together—step down the criterion's ladder of conditions, then work back up.\n- **Regressed prerequisite:** recheck it in chat; if it has collapsed, leave it to the check-in to add a future Lesson.\n- **Missing capability:** the error traces to no Node—call `record_missing_capability`.\n\nAfter two or three rounds without progress, offer to revisit the map in Chart.\n";
8
8
  readonly "material/review.md": "# review\n\nRecheck due or fading Nodes in chat with fresh problems at their criteria; interleave confusable Nodes. Never replay an old Set as a recheck. For an `interval` Node, ask whether its criterion still holds and take the learner's word.\n\nGive brief correctives on misses and reopen the Material that taught the Node. If a Node keeps coming due and has no queued Problem, write one (`srs` on hosts with Flashcards). Leave a collapsed prerequisite to the check-in to add a future Lesson; cleared Lessons stay cleared.\n";
9
9
  readonly "mission/SKILL.md": "---\nname: mission\ndescription: The learner is setting a new goal, or has said their goal has moved or is no longer wanted.\n---\n\nA Mission is a concretely demonstrable long-term goal the learner wants directly, paired with a View of how to get there. Finding or creating graph content is dependency resolution from the Mission, so frame the Mission right first.\n\n## Method\n\n1. **Read existing Missions.** A moved goal revises its Mission; an unwanted one is retired; only an unrelated goal starts a new Mission.\n\n2. **Research the goal on the Hub and the web.** Survey high-level approaches, reading only what you don't already know. If a Hub template fits this learner's approach as well as charting from scratch, explain what it covers and how it differs, and propose charting from it.\n\n3. **Interview the learner maieutically.** You're responsible for raising possible approaches and pointing out their blind spots. They're responsible for deciding what exactly they want. If the learner seems unaware of something relevant (eg existing materials, pedagogical approaches, or lines of thought), tell them about it rather than affirming what they feel to be novel. Don't be afraid to be a bit disagreeable. Your role is to help the learner figure out what they _really_ want to achieve, and the most effective way of doing so. Don't always take the learner's words at face value.\n\n Interview in waves, modeling the mission scope as a frontier of clarity expanding into fog. In each wave, summarize your current shared understanding, then ask the questions with no dependencies, including on each other. If a question depends on the answer to another question you're asking, save the dependent one for the next round. Continue until the understanding is concrete enough to resolve the Mission into Nodes:\n - what the learner wants to accomplish or be able to do, by when (if time-bound), and why\n - what's out of scope, and how their situation and motives differ from typical curricula\n - existing context—what they already know that gives a head start or enables transfers and analogies\n - pedagogical preferences informed by what has worked or failed for them, and how much say they want over method changes\n - whether they want capabilities checked on their real work rather than exercises—if so, settle what work and what standard\n\n4. **Backbrief, propose, and move to charting.** Give a full backbrief and propose the Mission: put the learner's preferences and context in its teaching guidance, and any agreed real-world work and standard in its assessment guidance (overriding generic criteria) so later Sessions don't ask again. Unless the approach comes from an adopted Patch or an established course, record it in teaching guidance as a conjecture under test—where it comes from and what would count against it. Once accepted, start charting.\n";
@@ -4,7 +4,7 @@ export const sources = {
4
4
  "chart/SKILL.md": "---\nname: chart\ndescription: A Mission, or the next section of one, needs graph content; or content is being designed for others to adopt.\n---\n\nCharting is dependency resolution from a settled Mission. When authoring a Patch for others, chart for a typical adopter's Mission.\n\n## Method\n\n1. **Survey how people get there.** Within the Mission's settled approach, check how courses, textbooks, syllabi, or practitioner playbooks and postmortems sequence this ground. Read structures, not full contents—Lessons pull in materials later. Use this to counter expert blind spot and recall bias.\n\n2. **Find the macro organization.** Decide how the Mission's prerequisites naturally hang together: a sequence of real steps and the capabilities they need, several independently valuable skills, separately practiced strands (like vocab vs grammar), or a fractal \"smaller circles\" progression. Separately practiced paths are strand tags; the practice serving a strand goes in guidance on its tag, not as a Node.\n\n3. **Choose milestones.** Pick a few milestones marking sections toward the targets:\n - Each milestone is a smaller Mission—a whole, realistic performance worth having on its own. Put whichever gets the learner doing the real thing soonest (even crudely) first.\n - Mark each section's closing Node `milestone: true` and give its criterion a ladder of simpler conditions down to the lowest viable whole task.\n - World-dependent outcomes (such as a stranger paying) suit milestones; a miss leads to re-charting at its check-in.\n - For a conjectured approach (purposeful practice), the next milestone is its measure: name in Mission assessment guidance the short task from it that a Lesson can open on, with its metric (time, rate, count) where it has one.\n - Milestone 0 holds what the learner says they already know or did, quoting their words as claims.\n\n4. **Elaborate the first section.** Work back from its milestone Node into smaller prerequisites until each can be checked. Leave later sections coarse with `elaborate: true` for the check-in before them.\n\n5. **Draft** with `edit_graph_draft`: use `nodes`, `edges`, `tags` and `targets`. For a large graph, write several batches against the same draft, with prerequisites before references in later calls. Use `operations` for advanced edits after the batch. In the ordered form, `put` adds or replaces keyed content, `retract` removes an own accepted Edge or metadata set, `mask-contribution` suppresses a base contribution, `delete` removes a draft key (`claim:node-id` for a claim), `claim` attaches verbatim learner wording, and `discard` clears the draft alone.\n\n6. **Propose** the valid draft as a Mission or revision when setting Mission targets, or a graph diff when they don't change (content for others carries no claims). Don't write a syllabus; the theory derives the path.\n\n## The graph\n\n- **Nodes** are single observable capabilities or steps, defined by what shows them. Include only what the learner can and will do themselves—leave out work an agent can simply do or coordinating other people. Different presentations of one task are one Node.\n- **Edges** express definitional necessity—the dependent cannot be demonstrated without the prerequisite—with the reason in `because`. Preferred teaching order is `priority`, never an Edge.\n- **Splitting:** a part too large for one Lesson lacks a prerequisite step or capability (child Node), volume (tiers: top 50 words, then 100), or consolidation (thresholds: 60, then 90 wpm).\n- **Review schedules:** set `review` to `{\"kind\":\"fsrs\"}` for what must be remembered, `{\"kind\":\"never\"}` for one-off steps, or `{\"kind\":\"interval\",\"days\":30}` (choosing the period) for maintained states or capabilities that detrain. Defaults when unset: `never` for milestones, `fsrs` otherwise.\n- **Reuse and grouping:** reuse an existing Node only unchanged (its metadata is shared across Missions). Group small Nodes checked together with a `lesson:<name>` tag within one section. Override adopted guidance in the Mission's own guidance, scoped to its Node.\n",
5
5
  "checkpoint/SKILL.md": "---\nname: checkpoint\ndescription: The Session opened on a check-in, or the learner says the course, or some of its content, isn't working.\n---\n\nA checkpoint adjusts a Mission in progress to what its Lessons have shown.\n\n## Method\n\n1. **Reflect.** After a milestone, start from its outcome and closing note in the Session opening: recount what the learner showed, what came easy, and what was hard, and ask whether their goal has shifted. After a complaint, ask what isn't working and read the cited Records. With no milestone behind this check-in, skip to step 3.\n\n2. **Diagnose.** Warnings and outcomes point at a cause without proving it; read the cited task and response first.\n - **Goal moved:** revise the Mission (see `mission`).\n - **Milestone failed:** re-chart a plan that didn't work in the world; for a capability miss, add a follow-up Lesson stepped down the criterion's ladder, recheck slipping components in chat, add a future Lesson for collapsed prerequisites, or chart missing Nodes. Cleared Lessons stay cleared. Fix the map, not the learner.\n - **Map is wrong** (grain, Edges, order, method): edit it (see `chart`). Editing a Node keeps its Records, so change its criterion only while it still asserts the same capability; otherwise replace it.\n - **Record is wrong:** that's a recording error corrected in a Lesson, not a map problem.\n\n3. **Elaborate the next section** as charting does, folding in what Lessons deferred here. Move the Mission's measure to the next milestone and set `pedagogy:elaborate: false` on refined Nodes.\n\n4. **Propose** the changes as a graph diff for the Mission. At the final check-in, give the Mission retrospective—what they can do now—then retire the Mission (with an extension or next Mission if they want one).\n",
6
6
  "material/SKILL.md": "---\nname: material\ndescription: A Lesson is starting or its Materials have run, due Nodes need a recheck, or a Material needs making or changing.\n---\n\nMaterials carry the learner into the work: worked examples, drills, structured checks, or briefs for real-world steps. Reuse existing Materials on a Node (`items`) before making new ones.\n\nPrefer real-world, best-in-class tools when the real performance lives there (their editor, sketchbook, repo, DAW, real conversation) and judge the artifact rather than building a worse substitute. No seductive details.\n\nA Material can teach, assess, or both, escalating difficulty and letting the learner retry until they clear the bar. Assess with unaided checks at the Nodes' criteria under Mission assessment guidance—enough independent checks to demonstrate each Node, graded mechanically wherever answers are mechanical. Once confusable skills are learned, interleave them in practice (not on first exposure).\n\nLoad the guide for the work with `skill {name:'material', resource}`:\n\n- Lesson: [lesson.md](lesson.md) (and for a milestone, [milestone.md](milestone.md))\n- Rechecking due or fading Nodes: [review.md](review.md)\n\nChoose from the Material kinds your host provides (load your host's Material skill for available kinds and formats).\n\n## Assessing\n\n- **Transfer-appropriate checks:** test production with production, not recognition; give competing options similar length and form, mapping distractors to real misconceptions.\n- **Granularity & feedback:** pose separate questions as separate short tasks. Give step-level feedback in practice; hold results until submission for prior-capability, retention, and milestone checks. Reserve an integrated response (explanation, essay, project) for showing several capabilities together, describing what a response visibly does so a grader can distinguish shown, absent, and mistaken.\n- **Help & evidence:** in a Lesson, offer a hint after a mistake and add the correction if it persists; prior-capability, retention, and milestone checks only measure. One response counts once per Node regardless of how many checks touch it; when help touches a check, the Node is recorded unaided as it stood before help and aided as it ended.\n",
7
- "material/lesson.md": "# lesson\n\nWhen a short Lesson clears and there is time and attention left, carry on into the next Lesson. When it makes sense to stop, recount what the learner did and end the Session even if its Lesson is unfinished.\n\n1. **Read the Lesson:** the current Lesson in context, its focus Nodes, their criteria, guidance, memory, trail, and existing Materials (`items`). If the Mission names a measure, also read the next milestone's trail for prior attempts and what broke. If an adopted Patch's Materials are already open, wait for the learner.\n\n2. **When starting a Lesson,** recheck prerequisites marked `fadingPrerequisiteOfHere` with fresh problems before building on them, without waiting to be asked (see [review.md](review.md)). Then open the work the focus Nodes' guidance names and set completion.\n - **Retrieval opener:** if no fading-prerequisite recheck was needed and the focus Nodes have prior prerequisites with Records (and no authored first action or conjectured-measure opener supersedes it), open with a quick retrieval prompt on a prerequisite or recent Node instead of a recap, recording the learner's attempt via `retrieval-opener`.\n - **Memory work:** add the cards in one step, open them, and set each Node's `pedagogy:completion` query to its card recalls.\n - **Real-world step:** open a brief Material covering what to do, what it serves (its dependents), what done looks like, and any useful prep (drafting, rehearsing a conversation). Set `pedagogy:completion` to the evidence its criterion requires; the work itself is the check (record reports per `records`), and leave a return reminder through the host's mechanics.\n - **Exercise-based work:** add teaching Material and one assessment set of short, single-question tasks, setting `pedagogy:completion` for the focus Nodes to their criteria. Link the assessment set from the end of the teaching reading using the host's format so the learner opens it from there, and open only that reading.\n - **Conjectured Mission with a measure:** open an unaided attempt at the measure first and hold teaching until it ends—the milestone's short task trimmed to what the focus Nodes serve, recorded on the milestone Node with its conditions. Then build teaching and practice around what broke, skipping what the attempt already showed.\n\n3. **Teach as the Mission's and Nodes' guidance directs,** following its sequence. Work other due Nodes or queue a Problem when it serves the Lesson. Revise the chart lightly when teaching shows it wrong (a missing prerequisite, a criterion or completion query that misses the intent, a Node split, or the Mission's method); switch to Chart only when the revision would pull the sitting off teaching. Use `record_missing_capability` for noting a gap without stopping.\n\n4. **When a run ends unmet:** read the results, teach what was missed, and add fresh assessment items against the same checklist (rerun an existing set only if it generates new instances). Use `record_missing_capability` for an error fitting no Node; recheck a failing prerequisite in chat and leave a collapsed prerequisite to the check-in for a future Lesson.\n\n5. **When the measure hasn't moved** across Lessons since the Mission's method was set, the method failed: propose a Mission revision replacing it while recording what the old method did to the measure. Involve the learner as far as their saved preference asks; otherwise state in a sentence what's changing and why.\n\n**Cheat sheet & references:** Lessons are rarely revisited; references are. Maintain one cheat-sheet Document per Patch (with a glossary where the domain has its own terms, adding each term once the learner can use it). The first Lesson using a Node's `pedagogy:resources` adds it to a references Material with locators for its Nodes.\n",
7
+ "material/lesson.md": "# lesson\n\nWhen a milestone clears, recount the work, tell the learner the check-in is next, and close the Session. When another short Lesson clears and there is time and attention left, carry on into the next Lesson. When it makes sense to stop, recount what the learner did and end the Session even if its Lesson is unfinished.\n\n1. **Read the Lesson:** the current Lesson in context, its focus Nodes, their criteria, guidance, memory, trail, and existing Materials (`items`). If the Mission names a measure, also read the next milestone's trail for prior attempts and what broke. If an adopted Patch's Materials are already open, wait for the learner.\n\n2. **When starting a Lesson,** recheck prerequisites marked `fadingPrerequisiteOfHere` with fresh problems before building on them, without waiting to be asked (see [review.md](review.md)). Then open the work the focus Nodes' guidance names and set completion.\n - **Retrieval opener:** if no fading-prerequisite recheck was needed and the focus Nodes have prior prerequisites with Records (and no authored first action or conjectured-measure opener supersedes it), open with a quick retrieval prompt on a prerequisite or recent Node instead of a recap, recording the learner's attempt via `retrieval-opener`.\n - **Memory work:** add the cards in one step, open them, and set each Node's `pedagogy:completion` query to its card recalls.\n - **Real-world step:** open a brief Material covering what to do, what it serves (its dependents), what done looks like, and any useful prep (drafting, rehearsing a conversation). Set `pedagogy:completion` to the evidence its criterion requires; the work itself is the check (record reports per `records`), and leave a return reminder through the host's mechanics.\n - **Exercise-based work:** add teaching Material and one assessment set of short, single-question tasks, setting `pedagogy:completion` for the focus Nodes to their criteria. Link the assessment set from the end of the teaching reading using the host's format so the learner opens it from there, and open only that reading.\n - **Conjectured Mission with a measure:** open an unaided attempt at the measure first and hold teaching until it ends—the milestone's short task trimmed to what the focus Nodes serve, recorded on the milestone Node with its conditions. Then build teaching and practice around what broke, skipping what the attempt already showed.\n\n3. **Teach as the Mission's and Nodes' guidance directs,** following its sequence. Work other due Nodes or queue a Problem when it serves the Lesson. Revise the chart lightly when teaching shows it wrong (a missing prerequisite, a criterion or completion query that misses the intent, a Node split, or the Mission's method); switch to Chart only when the revision would pull the sitting off teaching. Use `record_missing_capability` for noting a gap without stopping.\n\n4. **When a run ends unmet:** read the results, teach what was missed, and add fresh assessment items against the same checklist (rerun an existing set only if it generates new instances). Use `record_missing_capability` for an error fitting no Node; recheck a failing prerequisite in chat and leave a collapsed prerequisite to the check-in for a future Lesson.\n\n5. **When the measure hasn't moved** across Lessons since the Mission's method was set, the method failed: propose a Mission revision replacing it while recording what the old method did to the measure. Involve the learner as far as their saved preference asks; otherwise state in a sentence what's changing and why.\n\n**Cheat sheet & references:** Lessons are rarely revisited; references are. Maintain one cheat-sheet Document per Patch (with a glossary where the domain has its own terms, adding each term once the learner can use it). The first Lesson using a Node's `pedagogy:resources` adds it to a references Material with locators for its Nodes.\n",
8
8
  "material/milestone.md": "# milestone\n\nA milestone assessment tests its section's capability whole: a few tasks at full conditions, each combining several Nodes, with no hints or feedback until submitted. Milestone 0 checks the learner's prior claims with tasks they weren't taught.\n\nWhen it fails, distinguish:\n\n- **Integration:** parts hold alone but break together—step down the criterion's ladder of conditions, then work back up.\n- **Regressed prerequisite:** recheck it in chat; if it has collapsed, leave it to the check-in to add a future Lesson.\n- **Missing capability:** the error traces to no Node—call `record_missing_capability`.\n\nAfter two or three rounds without progress, offer to revisit the map in Chart.\n",
9
9
  "material/review.md": "# review\n\nRecheck due or fading Nodes in chat with fresh problems at their criteria; interleave confusable Nodes. Never replay an old Set as a recheck. For an `interval` Node, ask whether its criterion still holds and take the learner's word.\n\nGive brief correctives on misses and reopen the Material that taught the Node. If a Node keeps coming due and has no queued Problem, write one (`srs` on hosts with Flashcards). Leave a collapsed prerequisite to the check-in to add a future Lesson; cleared Lessons stay cleared.\n",
10
10
  "mission/SKILL.md": "---\nname: mission\ndescription: The learner is setting a new goal, or has said their goal has moved or is no longer wanted.\n---\n\nA Mission is a concretely demonstrable long-term goal the learner wants directly, paired with a View of how to get there. Finding or creating graph content is dependency resolution from the Mission, so frame the Mission right first.\n\n## Method\n\n1. **Read existing Missions.** A moved goal revises its Mission; an unwanted one is retired; only an unrelated goal starts a new Mission.\n\n2. **Research the goal on the Hub and the web.** Survey high-level approaches, reading only what you don't already know. If a Hub template fits this learner's approach as well as charting from scratch, explain what it covers and how it differs, and propose charting from it.\n\n3. **Interview the learner maieutically.** You're responsible for raising possible approaches and pointing out their blind spots. They're responsible for deciding what exactly they want. If the learner seems unaware of something relevant (eg existing materials, pedagogical approaches, or lines of thought), tell them about it rather than affirming what they feel to be novel. Don't be afraid to be a bit disagreeable. Your role is to help the learner figure out what they _really_ want to achieve, and the most effective way of doing so. Don't always take the learner's words at face value.\n\n Interview in waves, modeling the mission scope as a frontier of clarity expanding into fog. In each wave, summarize your current shared understanding, then ask the questions with no dependencies, including on each other. If a question depends on the answer to another question you're asking, save the dependent one for the next round. Continue until the understanding is concrete enough to resolve the Mission into Nodes:\n - what the learner wants to accomplish or be able to do, by when (if time-bound), and why\n - what's out of scope, and how their situation and motives differ from typical curricula\n - existing context—what they already know that gives a head start or enables transfers and analogies\n - pedagogical preferences informed by what has worked or failed for them, and how much say they want over method changes\n - whether they want capabilities checked on their real work rather than exercises—if so, settle what work and what standard\n\n4. **Backbrief, propose, and move to charting.** Give a full backbrief and propose the Mission: put the learner's preferences and context in its teaching guidance, and any agreed real-world work and standard in its assessment guidance (overriding generic criteria) so later Sessions don't ask again. Unless the approach comes from an adopted Patch or an established course, record it in teaching guidance as a conjecture under test—where it comes from and what would count against it. Once accepted, start charting.\n",
package/dist/tools.js CHANGED
@@ -443,7 +443,7 @@ export const defaultInstrumentTools = [
443
443
  ],
444
444
  };
445
445
  }),
446
- scopedTool("mission", "Effective Missions, revisions and resolved scopes. Each run shows its active Session, open asides, recent past and next stops; the path shows numbered lesson sections, cleared stops and estimated minutes left. Checkpoints follow milestone Lessons and refine the next section.", (ctx, scope) => missionFacts(ctx, scope).map((mission) => ({
446
+ scopedTool("mission", "Effective Missions, revisions and resolved scopes. Each run shows its active Session, open asides, recent past and next stops; the path shows numbered lesson sections, cleared stops and estimated minutes left. A due check-in is a charting Session to reflect and refine the next section.", (ctx, scope) => missionFacts(ctx, scope).map((mission) => ({
447
447
  ...mission,
448
448
  path: readMissionPath(pathDefault({
449
449
  graph: ctx.graph,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmon-co/ncept-default-theory",
3
- "version": "3.0.22",
3
+ "version": "3.0.23",
4
4
  "license": "FSL-1.1-ALv2",
5
5
  "repository": {
6
6
  "type": "git",