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,15 +1,34 @@
1
1
  # Grading, and what to do with a blank
2
2
 
3
- Required reading before you grade. Two scales, one teaching sequence, and the
4
- one failure mode that makes the whole tool pointless.
3
+ Required reading before you grade. Call `record_attempt` for **every** answer,
4
+ blanks and skips included, with `question` verbatim (that text is what stops the
5
+ same question coming back) and an `outcome`: `answered`, `dont_know`, `declined`
6
+ or `invalid`. A question that was itself at fault is not a grade at all: see
7
+ *When the question is at fault*.
5
8
 
6
- ## Every answer gets recorded
9
+ ## What every response earns
7
10
 
8
- Call `record_attempt` for **every** answer, including blanks and skips — pass
9
- `question` verbatim, because that text is what stops the same question coming
10
- back later. Pass `outcome` as well: `answered`, `dont_know`, or `declined`.
11
+ Find the row for who asked and what the learner did. The sections below say how
12
+ to do each cell.
11
13
 
12
- Grade honestly on SM-2's 0–5:
14
+ | Learner | Automatic question: checkpoint, sweep, while-waiting | Panel | Parallel tutor | Asked-for quiz or lesson |
15
+ |---|---|---|---|---|
16
+ | Right | record; verdict | the panel records and judges; do nothing | record; verdict | record; verdict |
17
+ | Wrong | record; verdict, right answer, one line of why; no follow-up | as left | as left, then the handoff block | do not give the answer yet: one narrower question, then teach |
18
+ | Blank ("I don't know") | `dont_know`; answer and one line of why | as left | as left | `dont_know`; the full four-step teaching |
19
+ | Skip | `declined`, nothing said | the Skip button records it | `declined` | `declined` |
20
+ | Question at fault | `invalid`; own it, give the answer, no replacement this turn | n/a: nothing to press | `invalid` | `invalid`; own it, then ask a fixed question now |
21
+ | Silence | nothing | nothing | nothing, do not chase | wait |
22
+
23
+ Then **straight back to the task** in every automatic case: no summary, no
24
+ second question, no re-plan. A verdict is *right*, or *wrong plus the right
25
+ answer and one line of why*, and it always comes first.
26
+
27
+ ## Grading honestly
28
+
29
+ Grade on SM-2's 0–5. Before you pick a number, state to yourself what in their
30
+ answer justifies it: a gate built on inflated grades teaches nothing, and being
31
+ generous is the one failure that makes this tool pointless.
13
32
 
14
33
  | Grade | Means |
15
34
  |---|---|
@@ -20,18 +39,9 @@ Grade honestly on SM-2's 0–5:
20
39
  | 4 | correct and clean |
21
40
  | 5 | correct, and explained *why*, or caught a nuance you didn't ask for |
22
41
 
23
- Before you pick a number, state to yourself what in their answer justifies it. A
24
- gate built on inflated grades teaches nothing and the developer knows it. Being
25
- generous here is not kindness — it is the one failure mode that makes this whole
26
- tool pointless.
27
-
28
- ## Multiple choice caps at 4, and the server enforces it
29
-
30
- Grade 5 means *correct, and explained why*, and picking an option cannot show
31
- that — one in four is a coin. `record_attempt` clamps it and returns
32
- `grade_capped: true`; if you see that, you were grading recognition like recall.
33
-
34
- Within the cap, still grade honestly:
42
+ **Multiple choice caps at 4, and the server enforces it** (`grade_capped: true`
43
+ means you graded recognition like recall). Picking one of four cannot show *why*.
44
+ Within the cap:
35
45
 
36
46
  | Grade | Means |
37
47
  |---|---|
@@ -39,104 +49,91 @@ Within the cap, still grade honestly:
39
49
  | 3 | right option, but their "Other" text or follow-up showed it was a guess |
40
50
  | 2 | picked a distractor that is the shape of the idea |
41
51
  | 1 | picked a distractor built on a misconception |
42
- | 0 | "Other" with *I don't know* (`outcome: dont_know` — **teach it**), or a decline (`outcome: declined`) |
43
-
44
- **A defensible pick is a correct answer.** If the option they chose also
45
- answers the stem — or they argue convincingly that it does — the question was
46
- flawed, not the learner. Grade it 4 as if it were the key, say plainly that the
47
- question had two right answers, and never grade them down for your own
48
- ambiguity.
52
+ | 0 | "Other" with *I don't know* (`dont_know`, teach it), or a decline (`declined`) |
49
53
 
50
- **If they want to explain, let them, and say so.** Someone who picks "Other" and
51
- types a real answer has just given you better evidence than the multiple choice
52
- could. Grade that as the free answer it is — **omit `format`**, and the cap does
53
- not apply.
54
+ **A defensible pick is a correct answer.** If their option also answers the
55
+ stem, or they argue convincingly that it does, the question was flawed, not the
56
+ learner: grade it 4, say plainly it had two right answers, and never mark them
57
+ down for your ambiguity. If they did not pick but said two are right, that is
58
+ `invalid`.
54
59
 
55
- ## Feedback
60
+ **If they want to explain, let them.** Someone who picks "Other" and types a real
61
+ answer has given better evidence than the choice could. Grade it as free recall:
62
+ omit `format`, and the cap does not apply.
56
63
 
57
- **Four sentences or fewer for a grade of 2 or better** — correct the specific
58
- thing they got wrong and stop; don't re-teach a topic they mostly have.
59
-
60
- If they answer and get it wrong, do not immediately give the answer. Ask one
61
- narrower question that isolates the gap. If they miss that too, teach it as
62
- below.
63
-
64
- **Always say whether they were right first.** At an `[Eklavya checkpoint]`
65
- there is no narrower question — the checkpoint is one question — so a miss
66
- gets the right answer and one line of why, then the task resumes.
64
+ Feedback for a grade of 2 or better is four sentences or fewer: correct the
65
+ specific thing they got wrong and stop.
67
66
 
68
67
  ## When they say "I don't know"
69
68
 
70
- **This is the most important thing in this skill.** A blank is not a skip. A
71
- skip says *leave me alone*; "I don't know" says *teach me*, and it is the single
72
- clearest request for teaching you will ever get. Answering it with a
73
- three-sentence correction and moving on is the failure this tool exists to
74
- prevent — the developer who understood least got taught least.
75
-
76
- Both record as grade 0. What separates them is `outcome`, and what you do next.
77
-
78
- **They are not interchangeable, and the asymmetry is worth knowing.** A concept
79
- recorded as `declined` is never offered again — deliberately, because "leave me
80
- alone" is a choice. So labelling a blank as a decline removes that concept from
81
- the gate-retry path, which when enforced is the only route out of a blocked
82
- commit. If you explained it, it was a blank: `dont_know`. `record_attempt`
83
- returns `outcome_conflict` when it is given `declined` together with feedback,
84
- because a decline you dropped immediately has nothing to explain. It rejects
85
- `declined` or `dont_know` with a grade of 3 or more (`outcome_grade_conflict`)
86
- and records nothing: call again with the pair that is true.
87
-
88
- **Teach it. Properly, in this order:**
89
-
90
- 1. **Name the mechanism** in one sentence — the thing that is actually true,
91
- stated plainly.
92
- 2. **Show the code.** Quote the two or three real lines from the diff that make
93
- it true. They are looking at a file they have never read; the lines are the
94
- whole lesson.
95
- 3. **Say what it generalises to** — the rule they can carry to the next
96
- codebase, not just this one.
69
+ **The most important thing in this skill.** A blank is not a skip. A skip says
70
+ *leave me alone*; "I don't know" says *teach me*, the clearest request for teaching you will ever get.
71
+ Answering it with a three-sentence correction is the failure this tool exists to
72
+ prevent. Both record grade 0; `outcome` separates them.
73
+
74
+ They are not interchangeable. A `declined` concept is not offered again in this
75
+ session's gate retry (a later session's project review may bring it back once it
76
+ is due), so labelling a blank as a decline removes it from the only route out of
77
+ a blocked commit. If you explained it, it was a blank: `dont_know`.
78
+ `record_attempt` returns `outcome_conflict` for `declined` with feedback (a
79
+ decline you dropped has nothing to explain), and rejects `declined` or
80
+ `dont_know` with a grade of 3 or more (`outcome_grade_conflict`) without
81
+ recording anything.
82
+
83
+ **Who teaches, and how much.** The full sequence is for a quiz or lesson the
84
+ developer asked for. For an automatic question the answer and one line of why is
85
+ the whole inline reply, and when `record_attempt` returns `explain` the
86
+ background page carries the long version: teach in one place, never both.
87
+
88
+ 1. **Name the mechanism** in one sentence, plainly.
89
+ 2. **Show the code, or a small example.** With a `context` from the plan, quote
90
+ the two or three lines from the diff that make it true, only lines you have
91
+ read. With `context: null` (`concept` focus, a review, a topic lesson) write a
92
+ three-to-six-line worked example and say it is one. Never present invented
93
+ lines as theirs.
94
+ 3. **Say what it generalises to**: the rule they carry to the next codebase.
97
95
  4. **One-line takeaway.** What to remember if they forget everything else.
98
96
 
99
- Six to ten sentences. The four-sentence cap above is for near-misses, where you
100
- are correcting a detail. Here there is no detail to correct: the topic *is* the
101
- gap.
102
-
103
- **Then record and move on.** `grade: 0`, `outcome: "dont_know"`, and put the
104
- explanation you just gave in `feedback`. Do not re-ask the same concept in the
105
- same breath — grade 0 pins mastery at the floor, so it resurfaces on its own
106
- tomorrow, and `asked_before` will force a *different* question about a concept
107
- you have now taught. The spaced re-check is free and it is better than an
108
- immediate one, which only tests whether they can repeat a paragraph they just
109
- read.
97
+ Six to ten sentences. Then record: `grade: 0`, `outcome: "dont_know"`, your
98
+ explanation in `feedback`. Do not re-ask in the same breath: grade 0 pins mastery
99
+ at the floor, so it resurfaces tomorrow, and `asked_before` forces a different
100
+ question. Never offer to stop because they are blanking: two blanks mean the
101
+ pitch was too high, the planner already lowers `tier_to_ask`, so ask at the tier
102
+ the plan gives and wait to be told to stop. Never dump the remaining answers as a
103
+ list.
110
104
 
111
- **Never offer to stop because they are blanking.** Two blanks in a row is not a
112
- hint that they want out — it is evidence you are pitching too high. Drop a tier
113
- and keep going. Tier-1 recall on something you have just explained is fair, and
114
- it rebuilds footing. If they want to stop, they will say so; wait to be told.
105
+ ## When the question is at fault
115
106
 
116
- **Never dump the remaining answers as a list.** If the quiz ends early, it ends.
117
- A wall of four explanations at the door is not teaching, it is a receipt.
107
+ "This question does not have enough context", or "two of these are right" with
108
+ no pick made, is a verdict on the question, not a decline and not a blank. The
109
+ miss is yours and must cost them nothing:
118
110
 
119
- ## When they say the question lacks context
120
-
121
- "This question does not have enough context" is a verdict on the question, not
122
- a decline. The question assumed something they never saw, so the miss is
123
- yours. Never drop it untaught:
124
-
125
- 1. **Own it** in a few words — the question leaned on something you had not
126
- shown them.
111
+ 1. **Own it** in a few words.
127
112
  2. **Give the answer and one line of why**, defining the name or situation the
128
113
  stem skipped.
129
- 3. **Record it as a blank**: `grade: 0`, `outcome: "dont_know"`, with that
130
- answer in `feedback`. It is not `declined` — a decline is never offered
131
- again, and they did not ask to be left alone.
132
-
133
- The next question about it, now or later, starts with the situation sentence
134
- the first one was missing (`writing-mcq.md`, *Write for a cold reader*).
114
+ 3. **Record `invalid`**: `outcome: "invalid"`, `grade: 0` (ignored), what was
115
+ wrong in `feedback`. Nothing is graded: no mastery, level, accuracy, review
116
+ date or gate changes, no `attempt_id` comes back, and an enforced gate does not
117
+ count it, so the concept is still asked. The stem is marked spent.
118
+ 4. **Replace it** where the pacing allows (the table above). The replacement
119
+ opens with the situation sentence the first one lacked (`writing-mcq.md`,
120
+ *Write for a cold reader*).
121
+
122
+ A learner who really blanked on a clear question is `dont_know`: only the
123
+ question's own defect makes it `invalid`.
124
+
125
+ ## Skip, stop and opting out
126
+
127
+ - **Skip this question**: `declined`, no teaching, no second ask.
128
+ - **Stop for now** ("enough"): stop asking this session and record nothing for
129
+ questions never shown. Nothing remembers it past the session, so for a lasting
130
+ stop tell them `eklavya config set quiz.enabled false` (the dashboard Settings
131
+ page does the same).
132
+ - **Opt out of a topic**: there is no per-topic switch; do not promise one.
135
133
 
136
134
  ## `already_taught`
137
135
 
138
- When it is true on a plan item, they blanked on this before and you explained
139
- it. Open the next question as a follow-up to that explanation — *"last time I
140
- showed you that `_work_section()` can return an empty string; so what happens to
141
- the nav link when it does?"* — not as a first encounter. Building on a lesson is
142
- what makes it stick; asking cold throws it away.
136
+ When true on a plan item, they blanked on this before and you explained it. Open
137
+ the next question as a follow-up to that explanation — *"last time I showed you
138
+ that `_work_section()` can return an empty string; so what happens to the nav
139
+ link when it does?"* — not as a first encounter.
@@ -18,7 +18,7 @@ Make one call to `present_question` instead:
18
18
  - `options`: four, in display order, each `{label, description, grade}`. The
19
19
  `label` is the option itself, a complete claim (what `writing-mcq.md` calls the
20
20
  option), never `A` or `1`: the panel numbers them, and a bare marker is rejected.
21
- The `description` is the one clause from part 4. Mark the right one
21
+ The `description` is the neutral clause from part 4: what the option claims, with no verdict and no "tempting because". Mark the right one
22
22
  `correct: true`, **in the `answer_position` slot** (the call is rejected with
23
23
  `wrong_answer_position` otherwise, and nothing is stored).
24
24
  - Each option's `grade` is what a learner who picks it has shown, on the scale in
@@ -32,7 +32,10 @@ Make one call to `present_question` instead:
32
32
  `` `shouldRepaint` ``) and nothing else: no headings, lists or emphasis. Option `label`s are drawn as
33
33
  plain text, so write them in words and leave the backticks out of them.
34
34
  - `explanation`: one line saying why the right option is right. The panel shows
35
- it after the answer, so it is the whole of your feedback.
35
+ it after the answer, so it is the whole of your feedback. A call whose options
36
+ are lopsided in visible length, or whose descriptions explain themselves, is
37
+ rejected once with `conspicuous_options` and nothing stored: rewrite and call
38
+ again with the same stem.
36
39
 
37
40
  It returns at once. Do not wait for the answer, do not call `record_attempt`
38
41
  (the panel records it, once), do not give a verdict, and go straight back to
@@ -95,18 +95,25 @@ Before asking, read each distractor as if it were the key: if a senior reviewer
95
95
  could argue for it, narrow the stem ("why *here*", "what does *this line*
96
96
  prevent") until it cannot, or replace it with a different row.
97
97
 
98
- **4. One clause of `description` per option.** This is where a near-miss earns
99
- its place — the sentence that makes the wrong answer tempting.
100
-
101
- The parity rule from step 2 holds here too, and this is where it usually
102
- breaks: the correct option gets the careful sentence that explains the
103
- mechanism, and each distractor gets a few throwaway words. A learner reads that
104
- as the answer without reading the claim. Give every description the same
105
- weight — one clause of similar length, none standing out as the longest or the
106
- shortest — and spend the effort on the distractors: each one says why it is
107
- tempting, as specifically as the correct one says why it holds. Overcorrecting
108
- is a tell too: if the right answer's note is never the longest, a learner
109
- learns to rule the longest one out.
98
+ **4. One neutral clause of `description` per option.** The learner reads it
99
+ before answering, so it says what the option *does or claims*, never whether it
100
+ is right, why it is tempting or which misconception it is. "Tempting because…",
101
+ "a common mistake" and "this is why it works" are feedback, and feedback comes
102
+ after the answer.
103
+
104
+ Judge parity on what is on screen: the label and its description together. Give
105
+ every option the same grammar, the same number of claims and the same kind of
106
+ detail. Do not keep the mechanism, the example or the caveat for the correct
107
+ one. Bring the short ones up with real content, never filler; if a distractor
108
+ cannot reach the length honestly, the stem is too thin to have a near miss. The
109
+ correct option should not be the longest, and it should not be systematically
110
+ the shortest either: that is a tell in the other direction. The server and the
111
+ `ask-label` hook send back an option that outruns the next by a few words, or
112
+ whose description explains itself, once; rewrite it and ask again.
113
+
114
+ The reasoning behind each option goes in `option_notes` when you record the
115
+ attempt (the card path) and in the panel's `explanation` (the panel path), both
116
+ shown only after the answer.
110
117
 
111
118
  **5. Placement.** The plan gives each question an `answer_position`, 1 to 4. Put
112
119
  the correct option in that slot. Left to your own judgement you will put the
@@ -157,9 +164,8 @@ telling you which part to rebuild.
157
164
  - All four options are within a few words of the same length and use the same
158
165
  grammar. A visibly longer or more careful option reads as the correct one, and
159
166
  gets picked without engaging — the same leak as always answering first.
160
- - The four descriptions are within a few words of each other too, and the
161
- correct option's is no more careful than the rest. Each distractor's says why
162
- it is tempting, not just that it is wrong.
167
+ - Each option, label plus description, is within a few words of the others, and
168
+ no description says why an option is right, wrong or tempting.
163
169
  - Each of the three wrong options came from a different row of the table above.
164
170
  - Only the correct option answers the stem; no expert could argue for another.
165
171
  - The correct option sits at `answer_position`.
@@ -194,9 +200,10 @@ concept has unmet prerequisites:
194
200
 
195
201
  - Ask about the prerequisite instead, if it is in the plan — the plan already
196
202
  orders foundations first.
197
- - Otherwise drop the question a tier and make it mechanism-level. "Why this
198
- rather than the alternative" is not answerable by someone who does not yet
199
- have the alternative.
203
+ - Otherwise ask at `tier_to_ask` (the planner owns the tier) and write the
204
+ question so it needs no alternative: about what this thing does, not why it
205
+ beats another. "Why this rather than the alternative" is not answerable by
206
+ someone who does not yet have the alternative.
200
207
  - Say the dependency out loud in your feedback. Knowing *what to learn next* is
201
208
  half of what the graph is for.
202
209
 
@@ -204,8 +211,9 @@ concept has unmet prerequisites:
204
211
 
205
212
  `record_attempt` with `format: "mcq"`, `options` as the labels you offered,
206
213
  `answer` as the one they picked, `correct` as the right option's label
207
- verbatim, `option_notes` as the `description` you wrote under each option (same
208
- order as `options`), and `question` as the **stem only**.
214
+ verbatim, `option_notes` as what you want shown under each option after the answer (same
215
+ order as `options`; the reasoning each option earns, which the neutral
216
+ `description` left out), and `question` as the **stem only**.
209
217
 
210
218
  `correct` and `option_notes` are what let the learner correct a missed answer
211
219
  from its explainer page: the dashboard grades the new pick against `correct`
package/dist/store.js CHANGED
@@ -339,7 +339,21 @@ export function hasAskedQuestion(db, conceptId, question) {
339
339
  const rows = db
340
340
  .prepare('SELECT question FROM attempts WHERE concept_id = ? ORDER BY id DESC LIMIT 20')
341
341
  .all(conceptId);
342
- return rows.some((r) => questionFingerprint(r.question) === target);
342
+ if (rows.some((r) => questionFingerprint(r.question) === target))
343
+ return true;
344
+ // A question thrown out as invalid is spent too: asking it again unchanged
345
+ // would hand the learner the same broken question.
346
+ const invalid = db
347
+ .prepare('SELECT question FROM invalid_questions WHERE concept_id = ? ORDER BY id DESC LIMIT 20')
348
+ .all(conceptId);
349
+ return invalid.some((r) => questionFingerprint(r.question) === target);
350
+ }
351
+ /**
352
+ * Sets a question aside as the tutor's mistake. Writes only `invalid_questions`:
353
+ * no attempt, no mastery, no gate, so nothing scored can change.
354
+ */
355
+ export function recordInvalidQuestion(db, q) {
356
+ db.prepare('INSERT INTO invalid_questions (concept_id, session_id, question, reason) VALUES (?, ?, ?, ?)').run(q.conceptId, q.sessionId, q.question, q.reason);
343
357
  }
344
358
  /**
345
359
  * Has this concept ever been blanked on and taught?
package/dist/store.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,OAAO,EAEP,MAAM,EAIN,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,WAAW,GACZ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAsB,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAmB1C,MAAM,UAAU,aAAa,CAAC,EAAM,EAAE,IAAY;IAChD,OAAO,EAAE,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC,GAAG,CAAC,IAAI,CAA2B,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,EAAM;IACpC,OAAO,EAAE,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC,GAAG,EAI3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,EAAM,EACN,CAA6G;IAE7G,EAAE,CAAC,OAAO,CACR;+BAC2B,CAC5B,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC;IAClF,OAAO,aAAa,CAAC,EA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AAC,cAAc,CAAC;SAClD;QACD,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAC7B,EAAM,EACN,MAAqB,EACrB,QAAmC;IAEnC,iFAAiF;IACjF,IAAI,MAAM,CAAC,UAAU,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAE9C,MAAM,QAAQ,GAAG,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,cAAc,CAAC;QAC7B,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,KAAK,EAAE,MAAM,CAAC,cAAc;QAC5B,WAAW,EAAE,MAAM,CAAC,iBAAiB;KACtC,CAAC,CAAC;IACH,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,OAAO,IAAI,CAAC;IAEjD,EAAE,CAAC,OAAO,CACR;;;;;wCAKoC,CACrC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IAEjC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC3E,CAAC"}
@@ -5,7 +5,7 @@ const OPTION_COUNT = 4;
5
5
  export const presentQuestionTool = {
6
6
  name: 'present_question',
7
7
  title: 'Present a quiz question in the side panel',
8
- description: 'Hand one multiple-choice question to the Eklavya side panel and return at once. Use it instead of AskUserQuestion only when the plan says presentation "panel"; it is rejected with panel_disabled or panel_unavailable otherwise, and then you ask with AskUserQuestion. Give the stem alone, four options each with its one-line description and a grade (the right one 4, a near miss 2, one built on a misconception 1) with the right one in the plan\'s answer_position slot, and a one-line explanation shown after the answer. The panel shows it, grades it from those grades and records the attempt itself: do not wait, do not ask anything else, do not call record_attempt, carry on with the task. One question per session may be open; a second is rejected with question_open. Nothing is written to the learner\'s history until they answer.',
8
+ description: 'Hand one multiple-choice question to the Eklavya side panel and return at once. Use it instead of AskUserQuestion only when the plan says presentation "panel"; it is rejected with panel_disabled or panel_unavailable otherwise, and then you ask with AskUserQuestion. Give the stem alone, four options each with a neutral one-line description (what it claims, never why it is right or tempting; keep label plus description about the same length across options) and a grade (the right one 4, a near miss 2, one built on a misconception 1) with the right one in the plan\'s answer_position slot, and a one-line explanation shown after the answer. The panel shows it, grades it from those grades and records the attempt itself: do not wait, do not ask anything else, do not call record_attempt, carry on with the task. One question per session may be open; a second is rejected with question_open. A call whose options are lopsided in visible length, or whose descriptions explain themselves, is rejected once with conspicuous_options and nothing stored: rewrite and call again with the same stem. Nothing is written to the learner\'s history until they answer.',
9
9
  inputSchema: {
10
10
  session_id: z.string().max(LIMITS.sessionId).optional().describe(SESSION_HINT),
11
11
  cwd: z.string().max(LIMITS.cwd).optional().describe(CWD_HINT),
@@ -1 +1 @@
1
- {"version":3,"file":"panel_tools.js","sourceRoot":"","sources":["../../src/tools/panel_tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAuD,MAAM,aAAa,CAAC;AAC3H,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAgB,MAAM,YAAY,CAAC;AAE1E,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAY;IAC1C,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,2CAA2C;IAClD,WAAW,EACT,k0BAAk0B;IACp0B,WAAW,EAAE;QACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,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AE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QAChD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;QACrD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;KACrD;IACD,OAAO,EAAE,CAAC,IAAiB,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC;CAC9D,CAAC"}
@@ -3,7 +3,7 @@ import { loadConfig } from '../config.js';
3
3
  import { normalizeSlug } from '../slug.js';
4
4
  import { decayedScore, isKnown } from '../srs.js';
5
5
  import { resolveSessionId } from '../session.js';
6
- import { conceptBySlug, gradeConcept, hasAskedQuestion, isMissed, levelStanding, logSessionConcept, promoteIfEarned, syncGate, MAX_MCQ_GRADE, PASSING_GRADE, } from '../store.js';
6
+ import { conceptBySlug, gradeConcept, hasAskedQuestion, isMissed, recordInvalidQuestion, levelStanding, logSessionConcept, promoteIfEarned, syncGate, MAX_MCQ_GRADE, PASSING_GRADE, } from '../store.js';
7
7
  import { stripAskHeader } from '../ask.js';
8
8
  import { CWD_HINT, LIMITS, SESSION_HINT } from './types.js';
9
9
  /**
@@ -33,7 +33,7 @@ export function explainInstruction(name, options, attemptId, notes, answer = nul
33
33
  export const recordAttempt = {
34
34
  name: 'record_attempt',
35
35
  title: 'Record a quiz attempt',
36
- description: 'Grade one answer on the 0-5 SM-2 scale and persist it, returning its attempt_id. Updates mastery, the next review date, the session gate and this project\'s difficulty level. Record every response, including "I don\'t know" (grade 0, outcome dont_know, after you have taught it) and declines (grade 0, outcome declined); dont_know or declined with a grade of 3 or more is rejected with outcome_grade_conflict and nothing is recorded. Pass format "mcq" and the options you offered — question takes the stem alone, which is what the repeat check hashes; the options go in options. With every mcq also pass correct (the right option\'s label, verbatim) and option_notes (the description under each option, same order): they are what lets the learner correct a missed answer after reading its explainer. Multiple choice is capped at grade 4: picking one of four cannot show you know why; omit format only when they typed a real explanation instead of picking. Returns level and level_progress, and level_up on the answer that earns a promotion — say that in one line and move on. Returns explain on a missed answer when explain_on_wrong is on: follow its instruction.',
36
+ description: 'Grade one answer on the 0-5 SM-2 scale and persist it, returning its attempt_id. Updates mastery, the next review date, the session gate and this project\'s difficulty level. Record every response, including "I don\'t know" (grade 0, outcome dont_know, after you have taught it) and declines (grade 0, outcome declined); a question that was itself at fault (it assumed context the learner never saw, or two options both answer it) is outcome invalid, which grades nothing and moves no mastery, level, review date or gate; dont_know or declined with a grade of 3 or more is rejected with outcome_grade_conflict and nothing is recorded. Pass format "mcq" and the options you offered — question takes the stem alone, which is what the repeat check hashes; the options go in options. With every mcq also pass correct (the right option\'s label, verbatim) and option_notes (the description under each option, same order): they are what lets the learner correct a missed answer after reading its explainer. Multiple choice is capped at grade 4: picking one of four cannot show you know why; omit format only when they typed a real explanation instead of picking. Returns level and level_progress, and level_up on the answer that earns a promotion — say that in one line and move on. Returns explain on a missed answer when explain_on_wrong is on: follow its instruction.',
37
37
  inputSchema: {
38
38
  session_id: z.string().max(LIMITS.sessionId).optional().describe(SESSION_HINT),
39
39
  cwd: z.string().max(LIMITS.cwd).optional().describe(CWD_HINT),
@@ -75,9 +75,9 @@ export const recordAttempt = {
75
75
  .optional()
76
76
  .describe('For mcq: the one-line description shown under each option (AskUserQuestion\'s description), in the same order as options.'),
77
77
  outcome: z
78
- .enum(['answered', 'dont_know', 'declined'])
78
+ .enum(['answered', 'dont_know', 'declined', 'invalid'])
79
79
  .optional()
80
- .describe('Why the grade is what it is. "answered" they attempted it; "dont_know" they said they did not know and you taught it; "declined" they chose to skip and you dropped it without explaining. Grade 0 covers the last two, so this is the only thing that tells them apart later -- and they are not interchangeable: a declined concept is never offered again, so labelling a blank as a decline removes it from the only route out of a blocked commit gate. If you taught it, it is "dont_know".'),
80
+ .describe('Why the grade is what it is. "answered" they attempted it; "dont_know" they said they did not know and you taught it; "declined" they chose to skip and you dropped it without explaining. Grade 0 covers the last two, so this is the only thing that tells them apart later -- and they are not interchangeable: a declined concept is not offered again by this session\'s gate retry, so labelling a blank as a decline removes it from the only route out of a blocked commit gate. If you taught it, it is "dont_know". "invalid" means the question itself was at fault (it assumed context the learner never saw, or two options both answer it): nothing is graded, no mastery, level, review date or gate changes, and no attempt_id comes back. Pass feedback with what was wrong; grade is ignored.'),
81
81
  },
82
82
  handler: (args, { db }) => recordAttemptCore(db, args),
83
83
  };
@@ -113,6 +113,24 @@ export function recordAttemptCore(db, args) {
113
113
  detail: 'No concept with that slug. Call upsert_concepts or log_session_concepts first.',
114
114
  };
115
115
  }
116
+ // The tutor's mistake, not the learner's: set the question aside and grade
117
+ // nothing. Before `levelStanding` and the transaction below, so no scoring
118
+ // path runs at all.
119
+ if (args.outcome === 'invalid') {
120
+ recordInvalidQuestion(db, {
121
+ conceptId: concept.id,
122
+ sessionId,
123
+ question: stripAskHeader(args.question),
124
+ reason: args.feedback?.trim() || null,
125
+ });
126
+ return {
127
+ slug: concept.slug,
128
+ invalid: true,
129
+ detail: 'Set aside as a bad question: nothing was graded and no mastery, level, review date or gate changed. Own it in a few words, give the answer with one line of why, and where the pacing contract allows another question, offer a replacement that fixes what was missing.',
130
+ };
131
+ }
132
+ // 'invalid' returned above; what is left is a real outcome.
133
+ const outcome = args.outcome;
116
134
  // The settings line is presentation. Stripped rather than rejected, because the
117
135
  // tutor pasting back the block it displayed is the likely mistake and losing
118
136
  // a real answer over it would be the wrong trade.
@@ -132,7 +150,7 @@ export function recordAttemptCore(db, args) {
132
150
  // -- rewriting a stated outcome would be guessing at what happened -- but
133
151
  // reported loudly, because silence here is what let 11 of 16 declines in a
134
152
  // real history carry an explanation with nobody noticing.
135
- const outcomeConflict = args.outcome === 'declined' && typeof args.feedback === 'string' && args.feedback.trim().length > 0;
153
+ const outcomeConflict = outcome === 'declined' && typeof args.feedback === 'string' && args.feedback.trim().length > 0;
136
154
  // A key that does not line up with the options cannot grade a correction,
137
155
  // so it is stored as NULL -- but the answer is real, and losing it would be
138
156
  // the worse trade, so the attempt is recorded and the tutor told.
@@ -166,7 +184,7 @@ export function recordAttemptCore(db, args) {
166
184
  // answer is a fair hint that nothing was attempted, but it cannot tell
167
185
  // "teach me" from "leave it" -- and inventing the difference here would
168
186
  // put a value in the column that nobody observed.
169
- outcome: args.outcome ?? null,
187
+ outcome: outcome ?? null,
170
188
  repo: standing.repo,
171
189
  level: standing.level,
172
190
  now,
@@ -190,7 +208,7 @@ export function recordAttemptCore(db, args) {
190
208
  // field it was handed far more reliably than a rule it has to remember, and
191
209
  // the instruction is composed once, where the config is visible. A decline
192
210
  // and a bare skip get nothing -- they asked to move on.
193
- const missed = isMissed(grade, args.outcome ?? null);
211
+ const missed = isMissed(grade, outcome ?? null);
194
212
  const explain = config.explain_on_wrong && missed
195
213
  ? {
196
214
  concept: concept.slug,
@@ -241,7 +259,7 @@ export function recordAttemptCore(db, args) {
241
259
  }),
242
260
  ...(outcomeConflict
243
261
  ? {
244
- outcome_conflict: 'You passed outcome "declined" and also feedback. A decline is dropped without explanation, so if you taught this concept it was a blank: record outcome "dont_know". It matters — a declined concept is never offered again, and in enforced mode that is the only way out of a blocked commit.',
262
+ outcome_conflict: 'You passed outcome "declined" and also feedback. A decline is dropped without explanation, so if you taught this concept it was a blank: record outcome "dont_know". It matters — a declined concept is not offered again by this session\'s gate retry, and in enforced mode that is the only way out of a blocked commit.',
245
263
  }
246
264
  : {}),
247
265
  gate,