Documentation
¶
Overview ¶
Package tutor is the AI side of NovaTrail's tutor, a library that api calls in its own process. It reads the learner's work into an observation, reviews the working and words the tutor's replies, through the AI routes and models it admits, and reports each call's usage. It decides no verdict and stores nothing, and its requests carry no identifier of the learner or the account.
The AI providers are reached only through the port in package provider. The eval runner, cmd/tutor-eval, runs on the same code.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tutor-eval
command
Command tutor-eval is tutor's eval runner: it runs the AI capabilities on eval samples, on the same code that api calls, and reports how they did.
|
Command tutor-eval is tutor's eval runner: it runs the AI capabilities on eval samples, on the same code that api calls, and reports how they did. |
|
internal
|
|
|
board
Package board is the check board: a local page where a person solves fixed tasks by hand, the models read the work and judge it, and the person marks whether each model was right.
|
Package board is the check board: a local page where a person solves fixed tasks by hand, the models read the work and judge it, and the person marks whether each model was right. |
|
essay
Package essay is the assessment of an essay by the module author's rubric in the measurement of epic E4 (T82; docs/architecture.md, 3.4, «Сочинения»): what a model sees of a synthetic essay.
|
Package essay is the assessment of an essay by the module author's rubric in the measurement of epic E4 (T82; docs/architecture.md, 3.4, «Сочинения»): what a model sees of a synthetic essay. |
|
evalsample
Package evalsample is a sheet of the measurement as a sample file of spec's eval protocol, the message Sample of novatrail.eval.v1 (contracts/README.md of spec, sections 11 to 13; R93, R95 spec): Of writes a sheet that internal/synth drew as one, and Read reads one back into the sample that tutor's runner takes, internal/sample's, with what its plan sheet says and the protocol does not — the scenario, the planned erasure and the trap.
|
Package evalsample is a sheet of the measurement as a sample file of spec's eval protocol, the message Sample of novatrail.eval.v1 (contracts/README.md of spec, sections 11 to 13; R93, R95 spec): Of writes a sheet that internal/synth drew as one, and Read reads one back into the sample that tutor's runner takes, internal/sample's, with what its plan sheet says and the protocol does not — the scenario, the planned erasure and the trap. |
|
gen
Package gen builds the synthetic sets of the extended measurement (T94; R50 in docs/decisions.md): pages of the workbook in the format tutor-workbook and essays in the format tutor-essays, as many as a run needs, each with its truth by construction.
|
Package gen builds the synthetic sets of the extended measurement (T94; R50 in docs/decisions.md): pages of the workbook in the format tutor-workbook and essays in the format tutor-essays, as many as a run needs, each with its truth by construction. |
|
hint
Package hint is the call of the review and the hint (T74; docs/architecture.md, 3.4, «Подсказка»): once the program has found the final answer not yet right, a model finds the first mistake in the work and words the tutor's question for the rung of the hint ladder that the program chose, in one call, as architecture 4.1 spec draws it (R28).
|
Package hint is the call of the review and the hint (T74; docs/architecture.md, 3.4, «Подсказка»): once the program has found the final answer not yet right, a model finds the first mistake in the work and words the tutor's question for the rung of the hint ladder that the program chose, in one call, as architecture 4.1 spec draws it (R28). |
|
journal
Package journal tells how a sheet was written, for the forms of the measurement that show the model the writing process (R11, R24): a journal of numbered steps in English, and up to two frames of the sheet just before erasures.
|
Package journal tells how a sheet was written, for the forms of the measurement that show the model the writing process (R11, R24): a journal of numbered steps in English, and up to two frames of the sheet just before erasures. |
|
judge
Package judge holds what the measurement asks of a model and how it reads the answer (R24): the judge's instructions, the request of each form, and the schema of the answer.
|
Package judge holds what the measurement asks of a model and how it reads the answer (R24): the judge's instructions, the request of each form, and the schema of the answer. |
|
leak
Package leak is the leak check of the module format (R57 spec; the format text of spec, section 20, «The leak check»): the program's search for the answer in a text the learner will see, the tutor's words before they reach the learner.
|
Package leak is the leak check of the module format (R57 spec; the format text of spec, section 20, «The leak check»): the program's search for the answer in a text the learner will see, the tutor's words before they reach the learner. |
|
lines
Package lines finds the lines of a sheet: the strokes that stand at one height, told apart by the gaps between them down the sheet.
|
Package lines finds the lines of a sheet: the strokes that stand at one height, told apart by the gaps between them down the sheet. |
|
measure
Package measure is the judge's kind of call on the runner (T67): the measurement of the writing process (R24).
|
Package measure is the judge's kind of call on the runner (T67): the measurement of the writing process (R24). |
|
newfile
Package newfile writes the files tutor's tools keep: each a new file, never one written over.
|
Package newfile writes the files tutor's tools keep: each a new file, never one written over. |
|
openview
Package openview builds the open views of the measurement's tasks: the file that tutor's release carries for canvas's sample page, until modules has content (T37; R64 in docs/decisions.md; the 2026-10-21 amendment to R25 spec).
|
Package openview builds the open views of the measurement's tasks: the file that tutor's release carries for canvas's sample page, until modules has content (T37; R64 in docs/decisions.md; the 2026-10-21 amendment to R25 spec). |
|
protocol
Package protocol is spec's eval protocol in tutor's code: the package novatrail.eval.v1, whose messages Sample and Report are the sample file and the runner's report (contracts/README.md of spec, sections 11 and 14; R93, R95 spec).
|
Package protocol is spec's eval protocol in tutor's code: the package novatrail.eval.v1, whose messages Sample and Report are the sample file and the runner's report (contracts/README.md of spec, sections 11 and 14; R93, R95 spec). |
|
protocol/protocoltest
Package protocoltest gives tests spec's examples of the eval protocol: the synthetic sample files and reports of contracts/examples/eval/v1/ (contracts/README.md of spec, sections 11 and 14).
|
Package protocoltest gives tests spec's examples of the eval protocol: the synthetic sample files and reports of contracts/examples/eval/v1/ (contracts/README.md of spec, sections 11 and 14). |
|
reading
Package reading is the reading of a sheet into an observation (T68; docs/architecture.md, 3.4, «Чтение в наблюдение»): a model reads the work as it is written, part by part, and its final answer, without deciding whether it is right (concepts 9.1 spec).
|
Package reading is the reading of a sheet into an observation (T68; docs/architecture.md, 3.4, «Чтение в наблюдение»): a model reads the work as it is written, part by part, and its final answer, without deciding whether it is right (concepts 9.1 spec). |
|
render
Package render draws a sheet of handwriting from its strokes, as the board shows it: ink of the board's pen, #111, 3 px wide with round ends and joins, on white, one pixel to a unit of the sheet.
|
Package render draws a sheet of handwriting from its strokes, as the board shows it: ink of the board's pen, #111, 3 px wide with round ends and joins, on white, one pixel to a unit of the sheet. |
|
report
Package report turns the log of a run into the measurement's numbers and its criterion (R24; docs/architecture.md, 3.1, «Замер хода решения»), asking no model, and writes them as Markdown and CSV.
|
Package report turns the log of a run into the measurement's numbers and its criterion (R24; docs/architecture.md, 3.1, «Замер хода решения»), asking no model, and writes them as Markdown and CSV. |
|
runner
Package runner runs the calls of a measurement, whatever their kind (T67): the judge of the writing process, and in epic E4 also reading, the hint, the cells of the workbook and the rubric (docs/architecture.md, 3.4).
|
Package runner runs the calls of a measurement, whatever their kind (T67): the judge of the writing process, and in epic E4 also reading, the hint, the cells of the workbook and the rubric (docs/architecture.md, 3.4). |
|
sample
Package sample is the format of the reading measurement's samples, of its bank of tasks, of its sheet plan and of the split of its sheets: their types, how they are read from JSON and how they are checked.
|
Package sample is the format of the reading measurement's samples, of its bank of tasks, of its sheet plan and of the split of its sheets: their types, how they are read from JSON and how they are checked. |
|
samplecheck
Package samplecheck holds sample files of the eval protocol to the rules of sections 11 and 12 of spec's text of the contracts by spec's own code, its recipe sample-check, as section 13 has the runner refuse a sample "which the runner holds by the same code as sample-check": a repository other than spec MUST NOT write a check of its own (R93 spec; R69).
|
Package samplecheck holds sample files of the eval protocol to the rules of sections 11 and 12 of spec's text of the contracts by spec's own code, its recipe sample-check, as section 13 has the runner refuse a sample "which the runner holds by the same code as sample-check": a repository other than spec MUST NOT write a check of its own (R93 spec; R69). |
|
sheets
Package sheets reads the directory where the record mode of the board saves the measurement's sheets (R25), and tutor-eval draw the sheets it draws (R26), against the sheet plan: for each plan sheet its last file, read and checked as a sample.
|
Package sheets reads the directory where the record mode of the board saves the measurement's sheets (R25), and tutor-eval draw the sheets it draws (R26), against the sheet plan: for each plan sheet its last file, read and checked as a sample. |
|
states
Package states chooses the states of a sheet for the reading of unfinished work (О-8, О-21; T69): the moments of the writing at which a device that read on its own, without the learner asking, would read, and what the sheet shows at each.
|
Package states chooses the states of a sheet for the reading of unfinished work (О-8, О-21; T69): the moments of the writing at which a device that read on its own, without the learner asking, would read, and what the sheet shows at each. |
|
synth
Package synth draws synthetic samples and a synthetic bank of tasks for tests, and for the recording page until the measurement's own bank exists.
|
Package synth draws synthetic samples and a synthetic bank of tasks for tests, and for the recording page until the measurement's own bank exists. |
|
task
Package task gives each task of tutor's measurements — a task of a bank, solved on a sheet; a page of the workbook; an essay — the task of spec's module format 0.3 it is, with its checks: formatv0.Task (T103; R68 in docs/decisions.md).
|
Package task gives each task of tutor's measurements — a task of a bank, solved on a sheet; a page of the workbook; an essay — the task of spec's module format 0.3 it is, with its checks: formatv0.Task (T103; R68 in docs/decisions.md). |
|
value
Package value is the checks of the kinds number and fraction of the module format (R56 spec; the format text of spec, section 15, «Checks»): it reads a value as it is written in the steps the format gives, takes it only in a notation of the kind, and compares it with the key as a rational number, exactly; a fraction asked in lowest terms is right only in them.
|
Package value is the checks of the kinds number and fraction of the module format (R56 spec; the format text of spec, section 15, «Checks»): it reads a value as it is written in the steps the format gives, takes it only in a notation of the kind, and compares it with the key as a rational number, exactly; a fraction asked in lowest terms is right only in them. |
|
workbook
Package workbook is the measurement of the workbook in epic E4 (T78–T80; docs/architecture.md, 3.4, «Рабочая тетрадь»): its pages, which code draws in memory from eval/workbook.json, and the crop of each filled box, which is all a reading of the page sees (R53 spec, amendment of 2026-10-27): the ink of the box's strokes alone, cut by the rule of the eval protocol, without the box's frame and the print of its line.
|
Package workbook is the measurement of the workbook in epic E4 (T78–T80; docs/architecture.md, 3.4, «Рабочая тетрадь»): its pages, which code draws in memory from eval/workbook.json, and the crop of each filled box, which is all a reading of the page sees (R53 spec, amendment of 2026-10-27): the ink of the box's strokes alone, cut by the rule of the eval protocol, without the box's frame and the print of its line. |
|
Package provider is the port through which tutor reaches the AI providers.
|
Package provider is the port through which tutor reaches the AI providers. |
|
claude
Package claude is the adapter of Anthropic's Claude models, through the official Go SDK.
|
Package claude is the adapter of Anthropic's Claude models, through the official Go SDK. |
|
gpt
Package gpt is the adapter of OpenAI's GPT models, through the official Go SDK and the Responses API.
|
Package gpt is the adapter of OpenAI's GPT models, through the official Go SDK and the Responses API. |