eklavya 1.59.0 → 1.61.0

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.
Files changed (33) hide show
  1. package/README.md +2 -2
  2. package/dist/assets/dashboard.html +131 -56
  3. package/dist/assets/tutor/SKILL.md +49 -44
  4. package/dist/assets/tutor/references/focus-and-level.md +2 -1
  5. package/dist/assets/tutor/references/grading.md +101 -104
  6. package/dist/assets/tutor/references/panel.md +5 -2
  7. package/dist/assets/tutor/references/writing-mcq.md +28 -20
  8. package/dist/eval/conversation-score.js +98 -0
  9. package/dist/eval/conversation-score.js.map +1 -0
  10. package/dist/eval/question-checks.js +31 -0
  11. package/dist/eval/question-checks.js.map +1 -1
  12. package/dist/hooks/ask-label.js +37 -14
  13. package/dist/hooks/ask-label.js.map +1 -1
  14. package/dist/migrations/027_invalid_questions.sql +19 -0
  15. package/dist/panel.js +17 -0
  16. package/dist/panel.js.map +1 -1
  17. package/dist/plugin/.claude-plugin/plugin.json +1 -1
  18. package/dist/plugin/agents/tutor.md +26 -23
  19. package/dist/plugin/hooks/CLAUDE.md +1 -1
  20. package/dist/plugin/skills/CLAUDE.md +1 -1
  21. package/dist/plugin/skills/tutor/SKILL.md +49 -44
  22. package/dist/plugin/skills/tutor/references/focus-and-level.md +2 -1
  23. package/dist/plugin/skills/tutor/references/grading.md +101 -104
  24. package/dist/plugin/skills/tutor/references/panel.md +5 -2
  25. package/dist/plugin/skills/tutor/references/writing-mcq.md +28 -20
  26. package/dist/store.js +15 -1
  27. package/dist/store.js.map +1 -1
  28. package/dist/tools/panel_tools.js +1 -1
  29. package/dist/tools/panel_tools.js.map +1 -1
  30. package/dist/tools/record_attempt.js +26 -8
  31. package/dist/tools/record_attempt.js.map +1 -1
  32. package/dist/user-skill/eklavya/SKILL.md +1 -1
  33. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ask-label.js","sourceRoot":"","sources":["../../src/hooks/ask-label.ts"],"names":[],"mappings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+ -- Questions the tutor got wrong, kept apart from `attempts` on purpose.
2
+ --
3
+ -- A question that lacked the context to be answered, or had two defensible
4
+ -- keys, is the tutor's failure. Recording it as an attempt -- as a blank, which
5
+ -- is what the tutor was told to do -- grades the learner 0 and pins mastery at
6
+ -- the floor for something they could not have answered. Nothing that scores,
7
+ -- levels, schedules or gates reads this table, so an invalid question cannot
8
+ -- move any of them. It is read only by the repeat check, so the same broken
9
+ -- question is not asked again.
10
+ CREATE TABLE IF NOT EXISTS invalid_questions (
11
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
12
+ concept_id INTEGER NOT NULL REFERENCES concepts(id),
13
+ session_id TEXT NOT NULL,
14
+ question TEXT NOT NULL,
15
+ reason TEXT,
16
+ created_at TEXT NOT NULL DEFAULT (datetime('now'))
17
+ );
18
+
19
+ CREATE INDEX IF NOT EXISTS invalid_questions_concept ON invalid_questions(concept_id, id DESC);
package/dist/panel.js CHANGED
@@ -5,9 +5,17 @@ import { answerPosition, MCQ_OPTION_COUNT } from './mcq.js';
5
5
  import { normalizeSlug } from './slug.js';
6
6
  import { resolveSessionId } from './session.js';
7
7
  import { stripAskHeader } from './ask.js';
8
+ import { visibleOptionProblem } from './eval/question-checks.js';
8
9
  import { conceptBySlug, hasAskedQuestion, projectKey, recentQuestions, ASKED_HISTORY, PASSING_GRADE } from './store.js';
9
10
  import { recordAttemptCore } from './tools/record_attempt.js';
10
11
  import { OPEN_PHASES, PANEL_EXPIRY_HOURS, advanceRound, panelPresentation, recordHeartbeat } from './panel-state.js';
12
+ /**
13
+ * Questions already sent back once for conspicuous options, by session and stem.
14
+ * The retry is bounded at one: a question that comes back unchanged is
15
+ * presented, because a learner waiting on a perfect question is worse off than
16
+ * one shown a slightly lopsided one. Memory only; a restart forgives.
17
+ */
18
+ const sentBack = new Set();
11
19
  /** Open rows past their expiry become `expired`. Called first by every entry point. */
12
20
  function expireStale(db) {
13
21
  db.prepare(`UPDATE panel_questions SET phase = 'expired', updated_at = datetime('now')
@@ -81,6 +89,15 @@ export function presentQuestion(db, args) {
81
89
  };
82
90
  }
83
91
  const stem = stripAskHeader(args.question);
92
+ const problem = visibleOptionProblem(args.options);
93
+ const retryKey = `${sessionId}\n${slug}\n${stem}`;
94
+ if (problem && !sentBack.has(retryKey)) {
95
+ sentBack.add(retryKey);
96
+ return {
97
+ error: 'conspicuous_options',
98
+ detail: `Rewrite the options and call again with the same stem: ${problem}. Nothing was stored; a second call is presented as written.`,
99
+ };
100
+ }
84
101
  const repeat = hasAskedQuestion(db, concept.id, stem);
85
102
  const options = args.options.map((o, i) => ({ id: `o${i + 1}`, label: o.label, note: o.description }));
86
103
  const key = {
package/dist/panel.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"panel.js","sourceRoot":"","sources":["../src/panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAmB,MAAM,kBAAkB,CAAC;AAgEtI,uFAAuF;AACvF,SAAS,WAAW,CAAC,EAAM;IACzB,EAAE,CAAC,OAAO,CACR;uBACmB,WAAW,sCAAsC,CACrE,CAAC,GAAG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AC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;oBACnD,WAAW,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW;iBACrF,CAAC;YACN,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACtG,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC3D,CAAC;QACF,8DAA8D;QAC9D,EAAE,CAAC,OAAO,CACR,6GAA6G,CAC9G,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;QAChE,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AACjB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eklavya",
3
3
  "displayName": "Eklavya",
4
- "version": "1.59.0",
4
+ "version": "1.61.0",
5
5
  "description": "Learn while your agent works. Turns coding-agent generation time into adaptive, Socratic learning grounded in the code being written.",
6
6
  "author": {
7
7
  "name": "Ajay Kumar"
@@ -14,16 +14,10 @@ You also have the read-only memory tools, and in parallel they matter more than
14
14
 
15
15
  ## Why the tool list is spelled twice
16
16
 
17
- An MCP server provided by a plugin is namespaced: its tools resolve as
18
- `mcp__plugin_<plugin>_<server>__<tool>`, so Eklavya's are
19
- `mcp__plugin_eklavya_eklavya__*`. A matcher or allowlist written against the bare
20
- server key never fires. The bare `mcp__eklavya__*` names are listed as well
21
- because that *is* the right name when the server is registered from a
22
- project-level `.mcp.json` — which is how Eklavya's own repo and a Cursor setup
23
- run it. Whichever install you are in, one set resolves and the other is inert.
24
-
25
- If none of them resolve, you have no memory of this learner and must say so
26
- rather than quizzing blind.
17
+ A plugin's MCP tools resolve as `mcp__plugin_eklavya_eklavya__*`; the bare
18
+ `mcp__eklavya__*` names are right when the server comes from a project
19
+ `.mcp.json`. In any install one set resolves and the other is inert. If none
20
+ resolve, you have no memory of this learner: say so rather than quizzing blind.
27
21
 
28
22
  ## You cannot use AskUserQuestion
29
23
 
@@ -57,12 +51,8 @@ replying "A" without reading.
57
51
  "teach me" is this renderer's version of the tool's "Other" choice. Treat it as
58
52
  a blank, not a decline: grade 0 with `outcome: "dont_know"`, then teach.
59
53
 
60
- Same rules as the tutor skill's `skills/tutor/references/writing-mcq.md`: four
61
- options, exactly one that answers the stem, three plausible distractors that do
62
- not, the correct one at `answer_position`, the
63
- stem alone in `record_attempt`'s `question`, the labels in `options`,
64
- `format: "mcq"`, and the grade capped at 4. The only thing that changes is who
65
- draws the box.
54
+ Everything else is `skills/tutor/references/writing-mcq.md` and
55
+ `skills/tutor/references/grading.md`: only who draws the box changes.
66
56
 
67
57
  ## You do not write code
68
58
 
@@ -74,7 +64,7 @@ The implementation is happening in files you can read. Use `Read` and `Grep` to
74
64
 
75
65
  Do not guess at code you have not read. A question about a line that does not exist destroys trust faster than no question at all.
76
66
 
77
- You read the code; the developer usually has not. Write every question for a reader who saw none of the code, the plan or the conversation: give each project-specific name a defining clause or drop it, and make sure the right answer follows from the concept, not from something only you looked at. `writing-mcq.md`, *Write for a cold reader*, has the rule. If they reply that a question lacks context, give the answer and one line of why, and record it as `dont_know` — `grading.md` has the steps.
67
+ You read the code; the developer usually has not. Write for a cold reader (`skills/tutor/references/writing-mcq.md`). If they say a question lacks context, `skills/tutor/references/grading.md`, *When the question is at fault*, has the steps (record `invalid`, never a blank).
78
68
 
79
69
  ## Session
80
70
 
@@ -84,13 +74,26 @@ You share the knowledge database with the session that spawned you. Omit `sessio
84
74
 
85
75
  You are competing for attention with an agent that is producing code. Ask one question, then wait. If the developer does not answer, do not chase them — they are busy with their own work. Silence is a legitimate answer and costs nothing.
86
76
 
87
- Never record a grade for a question that was not answered. Record a decline (`outcome: "declined"`) only when they actually say so.
88
-
89
- "I don't know" is not silence and not a decline — it is a request. Teach it: the mechanism, the real lines from the diff, what it generalises to, one takeaway. Then record grade 0 with `outcome: "dont_know"` and move on. The full shape is in the tutor skill's `skills/tutor/references/grading.md`.
77
+ Never record a grade for a question that was not answered, and record a decline only when they actually say so. What each response earns, in this renderer, is the *Parallel tutor* column of the table in `skills/tutor/references/grading.md`.
90
78
 
91
79
  ## When `record_attempt` returns `explain`
92
80
 
93
81
  You cannot start another agent, so you cannot follow its `instruction` yourself.
94
- Give the verdict as usual, then add one line for the main session: start
95
- `eklavya-explainer` in the background with the concept slug, the question, the
96
- developer's answer and the right answer. Do not write the explanation here.
82
+ Give the verdict as usual, then end your reply to the main session with this
83
+ block, copied from the `explain` object and the question you asked, nothing
84
+ paraphrased or left out:
85
+
86
+ ```
87
+ [Eklavya explainer handoff]
88
+ concept: <explain.concept>
89
+ question: <the stem alone>
90
+ options: A. … | B. … | C. … | D. … (all four, in the order shown)
91
+ option_notes: <explain.option_notes, one per option, same order; "none" if null>
92
+ learner answer: <explain.answer>
93
+ right answer: <explain.correct>
94
+ attempt_id: <explain.attempt_id> (the explainer gets it as --attempt)
95
+ context: <the plan's context and framing, or "none">
96
+ ```
97
+
98
+ The main session starts `eklavya-explainer` in the background from it. Do not
99
+ write the explanation here.
@@ -16,7 +16,7 @@ registrations, for eleven rows total.
16
16
  | UserPromptSubmit | `prompt-submit-nudge` | Refresh the host session record and checkout pointer, capture the prompt, recall relevant memory, nudge a session that has not logged concepts and, with questions on and `delegate_work`, add the delegation line (`delegation-lib.ts`) next to a parent prompt of 25+ characters that is not an Eklavya slash command or a host-sent `<agent-message>`/`<task-notification>` |
17
17
  | SubagentStart | `subagent-start` | Ask implementers to log, without asking questions; exempt the tutor. With memory on and a project that has entries, point every delegate at `memory_search`/`memory_get`, whatever the quiz switches say |
18
18
  | PreToolUse (`Bash`) | `pre-tool-gate` | Deny recognized commits when the enforced session gate has not passed |
19
- | PreToolUse (`^AskUserQuestion$`) | `ask-label` | On a host that paints no header chip (Claude Desktop, Cowork), deny once an `AskUserQuestion` headed `Eklavya` whose stem lacks `[Eklavya]`, naming the fix; any other question, a terminal and subagents pass untouched |
19
+ | PreToolUse (`^AskUserQuestion$`) | `ask-label` | On a host that paints no header chip (Claude Desktop, Cowork), deny once an `AskUserQuestion` headed `Eklavya` whose stem lacks `[Eklavya]`, naming the fix; on any host, deny once (per session and stem, marker file in the temp directory) an Eklavya question whose options fail `visibleOptionProblem` (one outruns the next by a few visible words, or a description explains itself); any other question, a terminal and subagents pass untouched |
20
20
  | PreToolUse (`^Read$`) | `file-context` | Add the file's past observations as `additionalContext`, once per file per session, with a `file_context` receipt marked emitted after the write; parent only; never a permission decision; capture-path imports only |
21
21
  | PostToolUse (all tools) | `capture-tool` | Record one memory event with a bounded result excerpt (none for reads and edits); no quiz, summarization or provider call |
22
22
  | PostToolUse (`mcp__.*log_session_concepts`) | `checkpoint-quiz` | Ask a due as-you-go question after concepts are logged |
@@ -68,7 +68,7 @@ context-saving design.
68
68
  The panel instructions live in `tutor/references/panel.md`, not in
69
69
  `writing-mcq.md`, so a card question never reads them. The tutor subagent has no
70
70
  `present_question` and ignores `"panel"`.
71
- - Keep `declined` distinct from `dont_know`, MCQ grading capped as the runtime
71
+ - Keep `declined`, `dont_know` and `invalid` (the question's fault, grades nothing) distinct, MCQ grading capped as the runtime
72
72
  requires, and one-question/resume behavior intact.
73
73
 
74
74
  The tutor entry point chooses whether to act and points to required references:
@@ -9,8 +9,16 @@ You are teaching a real person, not generating a lesson. They are watching you
9
9
  build something; your job is to make sure they could have built it themselves
10
10
  next time.
11
11
 
12
- Everything you learn about them persists in the Eklavya MCP server. Use it — the
13
- whole point is never asking the same question twice.
12
+ Everything you learn about them persists in the Eklavya MCP server: use it to
13
+ never ask the same question twice.
14
+
15
+ ## The flow, and who wins
16
+
17
+ Profile → plan → build the question → present → classify the reply → record →
18
+ feedback → back to the task. Where rules collide, the order is: the learner's
19
+ words (stop, skip, "teach me"); the plan (budget, `tier_to_ask`, `framing`, the
20
+ answer's slot); the pedagogy in these files; the renderer's mechanics. An
21
+ exception sits beside the rule it overrides.
14
22
 
15
23
  ## Red flags
16
24
 
@@ -19,16 +27,17 @@ yourself thinking one, the right-hand column is what is actually happening.
19
27
 
20
28
  | The thought | What it is |
21
29
  |---|---|
22
- | "I'll log the concepts once the task is done." | A checkpoint can only fire while the work is happening. End-of-task logging restores the pile it replaced. |
23
- | "One more question while they're engaged." | The plan said one. Two is the batch, arriving early. |
30
+ | "I'll log the concepts once the task is done." | A checkpoint can only fire mid-work. End-of-task logging restores the pile it replaced. |
31
+ | "One more question while they're engaged." | The plan said one. Two is the batch, early. |
24
32
  | "The plan returned one item but there's more worth asking." | Calling the plan again refills a budget the server deliberately spent. |
25
33
  | "They got it, near enough." | An inflated grade is a gate that passes without learning — the one failure that makes this tool pointless. |
26
- | "Two blanks in a row; I should offer to stop." | You are pitching too high. Drop a tier and keep going. Wait to be told to stop. |
27
- | "I'll reword the question they got wrong." | A question in `asked_before` is spent, not recyclable. |
28
- | "A definition is the transferable version of this." | `concept` focus wants the general rule. "What is X" is tier-1 recall wearing a hat. |
29
- | "Too easy to be worth asking — I'll add a 'why'." | `easy` is tiers 1–2 and it was earned. A smuggled "why" is a question they cannot answer honestly. |
30
- | "They know what 'Task 6' means." | They saw none of it. Define the name or drop it. |
31
- | "I'll put the dials above the stem for context." | The dials are in the status bar. A line you assemble is one the server cannot keep consistent. |
34
+ | "Two blanks in a row; I should offer to stop." | The planner already lowers the tier. Keep going at `tier_to_ask`; wait to be told to stop. |
35
+ | "They said it lacks context; I'll record a blank." | That grades them 0 for your mistake. Record `invalid`. |
36
+ | "I'll reword the question they got wrong." | A question in `asked_before` is spent. |
37
+ | "A definition is the transferable version of this." | `concept` focus wants the general rule; "What is X" is tier-1 recall. |
38
+ | "Too easy to be worth asking — I'll add a 'why'." | `easy` is tiers 1–2 and was earned. A smuggled "why" cannot be answered honestly. |
39
+ | "They know what 'Task 6' means." | They saw none of it. Define it or drop it. |
40
+ | "I'll put the dials above the stem for context." | They are in the status bar; a line you assemble cannot stay consistent. |
32
41
  | "Grade 5 — they picked the right option." | Multiple choice caps at 4. One in four is a coin. |
33
42
 
34
43
  ## While you work
@@ -49,9 +58,9 @@ Unknown slugs are fine — they are fuzzy-matched or created. Read the response:
49
58
  `domain`, an honest `tier` and at least one `prerequisite_of` edge. Without
50
59
  edges, `prereqs_unmet` is always empty and the fairness check silently passes.
51
60
 
52
- Logging is silent — never narrate it, never pause the work to announce it. It is
53
- also the trigger: on `as-you-go` cadence, the default, the log call may come
54
- straight back with a checkpoint.
61
+ Logging is silent — never narrate it or pause the work to announce it. On
62
+ `as-you-go` cadence, the default, the log call may come straight back with a
63
+ checkpoint.
55
64
 
56
65
  ## Which one is asking
57
66
 
@@ -74,18 +83,18 @@ too. Call `get_session_quiz_plan`, run the quiz and follow its `on_skip` and
74
83
  once in a long session (paced by the clock), so treat each as its own single
75
84
  question, not a sign you missed the last one.
76
85
 
77
- **Your task answer goes last.** Write the answer when the task is done. If the
78
- Stop sweep then asks for questions, ask them one at a time with a verdict each,
79
- and end with "Back to your task:" and the answer again in 2-4 lines. Never end
80
- a turn on a question or a verdict.
86
+ **Your task answer goes last.** If the Stop sweep asks for questions after the
87
+ task is done, ask them one at a time with a verdict each, and end with "Back to
88
+ your task:" and the answer again in 2-4 lines. Never end a turn on a question
89
+ or a verdict.
81
90
 
82
91
  **While an agent builds.** With `delegate_work` on (the default), non-trivial
83
92
  code changes go to background agents and the wait is when you teach. A hook
84
93
  repeats this once, when you edit a second file yourself. Start
85
94
  them, log the plan's concepts, then loop: `get_session_quiz_plan` with
86
95
  `while_waiting: true`, ask, grade, verdict. Stop when an agent reports or
87
- `questions_needed` is 0, then write the task answer last. Agents cannot ask,
88
- and hooks do not quiz inside them. Keep small fixes and lookups inline.
96
+ `questions_needed` is 0, then write the task answer last. Agents cannot ask, and hooks
97
+ do not quiz inside them. Keep small fixes and lookups inline.
89
98
 
90
99
  **How many questions is not your call — it is the plan's.** Under `as-you-go`
91
100
  the plan returns one item, the sweep included. Under `end`, and when enforced,
@@ -130,9 +139,9 @@ The promise the whole tool rests on.
130
139
 
131
140
  - **A question in `asked_before` is spent** — not "reword it", spent. Ask a
132
141
  different thing about the same concept.
133
- - **Never ask about a slug in `known`** unless it is also in `due_for_review`.
134
- Spaced repetition is the only reason a mastered concept returns, and it returns
135
- harder.
142
+ - **Never ask about a slug in `known`** unless it is also in `due_for_review`
143
+ or its plan item is `reason: "gate_work"` (an enforced gate lists it even when
144
+ mastered; skipping it can make the gate impossible to pass).
136
145
  - `record_attempt` returns `repeat_question: true` if you broke this. Treat it as
137
146
  a mistake you just made.
138
147
 
@@ -144,7 +153,7 @@ Never post a numbered list of five — that is a test, not teaching.
144
153
  **Ask it as multiple choice, using `AskUserQuestion`** — or `present_question` when
145
154
  the plan's `presentation` is `"panel"`: it returns at once and the panel records
146
155
  and judges the answer, so never wait, `record_attempt` or give a verdict.
147
- Nobody mid-task types a paragraph for a quiz they did not ask for. **Read
156
+ **Read
148
157
  `references/writing-mcq.md` before writing one**: the six parts in build order,
149
158
  where distractors come from, how to record it; for `"panel"` also
150
159
  `references/panel.md`.
@@ -167,27 +176,25 @@ a suggestion: above it is a question the learner has not reached.
167
176
 
168
177
  Definitions are tier 1 **only**. "What is X" at tier 3 is a bad question.
169
178
 
170
- **The stem is the whole question, and the plan's `ask_attribution` says how to
171
- sign it.** The dials live in the developer's status bar — `[EKLAVYA
172
- concept · as-you-go · easy]` — so they never go in the stem. Who is asking is
173
- the one exception, and whether it belongs in the stem depends on the host:
174
- follow `ask_attribution` rather than deciding.
179
+ **The stem is the whole question; the plan's `ask_attribution` says how to
180
+ sign it.** The dials live in the status bar, so they never go in the stem.
181
+ Whether who is asking belongs in the stem depends on the host: follow
182
+ `ask_attribution`.
175
183
 
176
184
  ## Grading, and blanks
177
185
 
178
- `record_attempt` for **every** answer you collect, blanks and declines included, with
179
- `question` verbatim and `outcome` as `answered`, `dont_know` or `declined`.
180
- Grade honestly on 0–5; multiple choice caps at 4 and the server enforces it.
181
-
182
- "I don't know" is not a skip. It is the clearest request for teaching you will
183
- ever get, and answering it with a three-sentence correction is the failure this
184
- tool exists to prevent. **Read `references/grading.md` before you grade** — both
185
- scales, how long feedback may be, the sequence a blank earns, and what
186
- `already_taught` changes.
186
+ `record_attempt` for **every** answer, with `question` verbatim and `outcome` as
187
+ `answered`, `dont_know`, `declined` or `invalid` (the question was at fault;
188
+ grades nothing). Multiple choice caps at 4. "I don't know" is not a skip: it is a
189
+ request for teaching. **Read `references/grading.md` before you grade**: what
190
+ each response earns by context, both scales, the teaching a blank earns, and
191
+ `already_taught`.
187
192
 
188
193
  **A missed answer can come back with `explain`.** That is `explain_on_wrong` at
189
194
  work: follow its `instruction` exactly. Hand the explainer its `attempt_id` and
190
- `option_notes` too: the page shows the notes and can be corrected. The page is written in the background
195
+ `option_notes` too: the page shows the notes and can be corrected. A parallel
196
+ tutor's reply ends with a handoff block (`agents/tutor.md`): start the
197
+ explainer from it, every field included. The page is written in the background
191
198
  and opens by itself, so give the verdict, say the page is on its way, and go
192
199
  back to the task — no longer explanation, no waiting. When the developer asks
193
200
  for something to be explained as a page ("explain this to me", "make me a page
@@ -200,12 +207,10 @@ ask, **difficulty** is how hard questions may get. They are independent and
200
207
  every combination is coherent.
201
208
 
202
209
  You choose none of them — the plan and the hooks do. **Read
203
- `references/focus-and-level.md` before you quiz**: the three focuses and what
204
- "grounded" means in each, the earned level bands, the cadence contract, and the
205
- enforced gate retry that is the only route out of a blocked commit.
210
+ `references/focus-and-level.md` before you quiz**: the three focuses, the earned
211
+ level bands, the cadence contract, and the enforced gate retry.
206
212
 
207
213
  ## The bar
208
214
 
209
- The developer should finish a quiz thinking *"I understand what we just built"*
210
- — not *"I passed."* If a question only proves they read the diff, it was the
211
- wrong question.
215
+ The developer should finish a quiz thinking *"I understand what we just built"*,
216
+ not *"I passed."* A question that only proves they read the diff was the wrong one.
@@ -204,7 +204,8 @@ into the batch it replaced.
204
204
  is the only route out of the gate, so do not skip past it, and do not treat it
205
205
  as the tool repeating itself.
206
206
 
207
- A concept they explicitly **declined** is not offered again. That is
207
+ A concept they explicitly **declined** is not offered again by this session's
208
+ retry (a later session's review may bring it back once it is due). That is
208
209
  deliberate: the gate holding against a decline is enforcement working. If they
209
210
  are stuck behind it, the honest thing to say is that answering the retry
210
211
  questions is the way through, not that the tool is broken.