@mmon-co/ncept-default-theory 3.0.0 → 3.0.1

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/catalog.js CHANGED
@@ -139,7 +139,7 @@ function evaluationCatalogTool(mode) {
139
139
  name: "evaluation",
140
140
  members: operations.map(({ tool }) => tool),
141
141
  description: operations === evaluationOperations
142
- ? "Delegate chat checks: watch grades subsequent learner replies; stop ends it; judge grades one response (message selects original learner media). Grader decision uses the Account decision model. Host records per-Node verdicts and returns criterion probabilities; do not record them again. Usually delegate rather than manually record. Record/material-attempt grades a Material item answered in chat; identical retries return the existing Record, later different answers get new Records. A runner's outcome stays the record. Override corrects a delegated or Material Record with a reason; claim records self-report; retract corrects evidence. Before an interpretation-correction, read that interpretation's current handles with theory interpretations. A close-recount carries no citations. Artifact filing is host-owned."
142
+ ? "Delegate chat checks: watch grades subsequent learner replies; stop ends it; judge grades one posed check (message selects original learner media). For judge and record/demonstration, including direct grading when judge fails, copy the posed task and just the learner's answer to it; answer any separate learner question in your reply. Grader decision uses the Account decision model. Host records per-Node verdicts and returns criterion probabilities; do not record them again. Usually delegate rather than manually record. Record/material-attempt grades a Material item answered in chat; identical retries return the existing Record, later different answers get new Records. A runner's outcome stays the record. Override corrects a delegated or Material Record with a reason; claim records self-report; retract corrects evidence. Before an interpretation-correction, read that interpretation's current handles with theory interpretations. A close-recount carries no citations. Artifact filing is host-owned."
143
143
  : "Record evidence that needs no grading: claim records self-report; retract corrects evidence. Nothing here grades a response; graded checks happen in a Lesson's Materials. Artifact filing is host-owned.",
144
144
  schema: {
145
145
  type: "object",
@@ -29,5 +29,13 @@ export declare function assessmentCapabilities(graph: ResolvedGraph, nodes: read
29
29
  }[];
30
30
  /** Called before a web tutor turn; only host-proven learner replies are passed here. */
31
31
  export declare function evaluateWatchedReply(ctx: Ctx, message: string): Program<unknown>;
32
+ export declare const posedTask: {
33
+ type: string;
34
+ description: string;
35
+ };
36
+ export declare const learnerAttempt: {
37
+ type: string;
38
+ description: string;
39
+ };
32
40
  export declare const evaluationTools: readonly Tool<unknown, unknown, DefaultState>[];
33
41
  export {};
@@ -221,10 +221,19 @@ export function* evaluateWatchedReply(ctx, message) {
221
221
  const spec = specification({ ...watch.payload.specification }, ctx);
222
222
  return yield* assess(ctx, spec, { message }, watch.id);
223
223
  }
224
+ export const posedTask = {
225
+ type: "string",
226
+ description: "The check as posed, verbatim. A question the learner asks alongside the answer is separate.",
227
+ };
228
+ export const learnerAttempt = {
229
+ type: "string",
230
+ description: "The learner's own words answering this check. Leave out any separate question they ask in the same send.",
231
+ };
224
232
  const specProperties = {
225
- task: { type: "string", minLength: 1 },
233
+ task: { ...posedTask, minLength: 1 },
226
234
  rubric: {
227
235
  type: "array",
236
+ description: "Criteria for the posed task alone.",
228
237
  minItems: 1,
229
238
  items: {
230
239
  type: "object",
@@ -288,12 +297,12 @@ export const evaluationTools = [
288
297
  },
289
298
  {
290
299
  name: "evaluation_judge",
291
- description: "Grade one response and record the verdict. Supply response text or a selected learner message identity for original media.",
300
+ description: "Grade one posed check and record the verdict. Supply the answer excerpt as response for text, or a selected learner message identity for original media.",
292
301
  schema: {
293
302
  type: "object",
294
303
  additionalProperties: false,
295
304
  required: specKeys,
296
- properties: { ...specProperties, response: { type: "string" }, message: { type: "string", minLength: 1 } },
305
+ properties: { ...specProperties, response: learnerAttempt, message: { type: "string", minLength: 1 } },
297
306
  oneOf: [
298
307
  {
299
308
  type: "object",
package/dist/release.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const theoryContent = "6c049d0fff88f3c7c07156c23de1d5e18802ce8ecd58532a36e4be28dc76477c";
1
+ export declare const theoryContent = "0771caeea7459be8ecd817b2b5205bce3868fba2af7a98b055535e8c455c03d1";
package/dist/release.js CHANGED
@@ -1 +1 @@
1
- export const theoryContent = "6c049d0fff88f3c7c07156c23de1d5e18802ce8ecd58532a36e4be28dc76477c";
1
+ export const theoryContent = "0771caeea7459be8ecd817b2b5205bce3868fba2af7a98b055535e8c455c03d1";
package/dist/tools.js CHANGED
@@ -9,6 +9,7 @@ import { readMissionPath } from "@mmon-co/ncept-core/theory/path";
9
9
  import { pathDefault } from "./path.js";
10
10
  import { event, refinePendingHomes } from "./event.js";
11
11
  import { isAttemptOutcome } from "./outcomes.js";
12
+ import { learnerAttempt, posedTask } from "./evaluation.js";
12
13
  import { activeDefaultRecords, completionNodeRef, electedObservations, assertDefaultRetraction, emptyNodeMemory, interpretationsDefault, isClaim, isDefaultObservation, isDemonstration, isRetrievalOpenerDemonstration, isTeaching, memoryDefault, stateDefault, DEFAULT_THEORY_REF, } from "./state.js";
13
14
  import { defaultNodeState, defaultQueryTokens, indicatorsDefault, isDefaultKnown, isDefaultReviewable, isDefaultReviewDue, } from "./tags.js";
14
15
  const nodeProperty = { type: "string", pattern: "^node-.+" };
@@ -514,7 +515,7 @@ const recordDemonstration = {
514
515
  name: "record_demonstration",
515
516
  description: [
516
517
  "Record one attempted posed check: a posed task with a determinable outcome and an attempt. Reading, explanation, a remark in passing, dialogue is not one. An explicit I don’t know response to a posed task is a dont-know demonstration; closing without answering is not.",
517
- "Use it for a free response, a requested Artifact section, an observed step, or an explicitly posed conversational check. Preserve task and response verbatim; grade success/failure with grader tutor. For a lesson-opening retrieval prompt, use record_retrieval_opener instead.",
518
+ "Use it for a free response, a requested Artifact section, an observed step, or an explicitly posed conversational check. Preserve the posed task and answer excerpt verbatim, including when grading directly after a judge error; grade success/failure with grader tutor. For a lesson-opening retrieval prompt, use record_retrieval_opener instead.",
518
519
  "Decide unaided when posing: the task must be at least as demanding as the Node's capability statement in every respect. Hints, candidates on a production capability, a missing required clock, or tools on a no-tool task make it aided. Help before outcome makes it aided; the completion after help is not a second attempt.",
519
520
  "For an answer to a Material item, use record_material_attempt. A runner records its own outcome; correct a wrong runner grade with evaluation_override and a reason. An option's optional error string remains verbatim in the response.",
520
521
  "Never infer prerequisite failures. Record a prerequisite only if its own posed step was attempted; the label query accounts for structural evidence.",
@@ -524,8 +525,8 @@ const recordDemonstration = {
524
525
  outcome: { enum: ["success", "failure", "dont-know"] },
525
526
  unaided: { type: "boolean" },
526
527
  grader: { enum: ["mechanical", "tutor", "learner"] },
527
- task: { type: "string" },
528
- response: { type: "string" },
528
+ task: posedTask,
529
+ response: learnerAttempt,
529
530
  }, ["node", "outcome", "unaided", "grader"]),
530
531
  *run(raw, ctx) {
531
532
  const input = args(raw, ["node", "outcome", "unaided", "grader", "task", "response"], ["node", "outcome", "unaided", "grader"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmon-co/ncept-default-theory",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "license": "FSL-1.1-ALv2",
5
5
  "repository": {
6
6
  "type": "git",