sim

command module
v0.1.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sim

CI CodeQL Go version Coverage OpenSSF Scorecard License

Code Smells Reliability Rating Security Rating Maintainability Rating Vulnerabilities

The NovaTrail learner simulator: thousands of virtual learners of different populations answer tasks through learner-model and engine, so that a change to either is measured before it is merged. It holds the criterion a new rule is chosen by, written down before the first candidate runs, and the tolerance bands that CI holds every change to; it measures the algorithms and never changes them. It reads the module packages as pinned data, through spec's types and without module-kit, and holds no data of live learners.

A component of NovaTrail, a universal open platform for adaptive learning, interactive lessons and AI tutoring.

It stands beside learner-model and engine, the two libraries it imports at build time and whose CI takes it as a gate at an exact tag, so that a change that worsens the criterion is not merged; the CI of modules runs it when what it reads of a package changes; and it derives its learners' seeds with spec's random generator, one for the whole platform.

Its card is in the architecture of spec; its own documents, its decisions and its plan are in docs/.

Documentation

Overview

Command sim is NovaTrail's learner simulator: virtual learners of different populations answer tasks through learner-model and engine, and the numbers they give hold every change to either before it is merged. It is a tool of CI, not a library: the parts of the bench live in internal/ packages, and a caller that builds sim with go.work runs it as `go run github.com/altnovatrail/sim <command>`.

Directories

Path Synopsis
internal
bench
Package bench runs cells of virtual learners into a file of results, one line a learner, and reads two such files in pairs by learner.
Package bench runs cells of virtual learners into a file of results, one line a learner, and reads two such files in pairs by learner.
criterion
Package criterion judges candidates against the base by the criterion of the model, of the engine, or of a pair of both: the constraints, the score as the share of the path from the base to the ceiling, "better", the choice, the confirmation on held-out learners and the way out.
Package criterion judges candidates against the base by the criterion of the model, of the engine, or of a pair of both: the constraints, the score as the share of the path from the base to the ceiling, "better", the choice, the confirmation on held-out learners and the way out.
gate
Package gate holds the gate of the bench: the gate file, which names what the gate's numbers were recorded on — the commits of the libraries, the pinned packages, the versions the workspace chose and the go lines — and the bands; the gate's cells and numbers; the checks of a run against the file; and the recording of the bands anew.
Package gate holds the gate of the bench: the gate file, which names what the gate's numbers were recorded on — the commits of the libraries, the pinned packages, the versions the workspace chose and the go lines — and the bands; the gate's cells and numbers; the checks of a run against the file; and the recording of the bands anew.
invariant
Package invariant checks the invariants of the bench on every learner's run, with a tolerance of zero: one breach on one learner makes the run red.
Package invariant checks the invariants of the bench on every learner's run, with a tolerance of zero: one breach on one learner makes the run red.
learner
Package learner is the virtual learner of the bench: its truth, which the bench knows and the learner model estimates from its attempts, and its calendar.
Package learner is the virtual learner of the bench: its truth, which the bench knows and the learner model estimates from its attempts, and its calendar.
measure
Package measure reads the measures of the bench off the runs of virtual learners, by the truth the bench knows and what the learner model and the engine gave.
Package measure reads the measures of the bench off the runs of virtual learners, by the truth the bench knows and what the learner model and the engine gave.
pack
Package pack reads published packages of modules as the bench needs them: the server part, server.json, by the types of spec's canonical view and without module-kit, checked through the chain of digests from a pinned module index.
Package pack reads published packages of modules as the bench needs them: the server part, server.json, by the types of spec's canonical view and without module-kit, checked through the chain of digests from a pinned module index.
population
Package population names the populations of virtual learners: each changes one assumption of the base population, on the graphs it says, and runs to its limit.
Package population names the populations of virtual learners: each changes one assumption of the base population, on the graphs it says, and runs to its limit.
published
Package published holds the published packages of modules the bench is pinned to, as their release has them, and reads them through the chain of digests.
Package published holds the published packages of modules the bench is pinned to, as their release has them, and reads them through the chain of digests.
run
Package run runs a virtual learner through learner-model and engine, as the platform runs a learner through them: at each time its calendar gives, the bench builds the engine's input as api would — the model's reading, the pool and the lessons the learner's age category suits, the runs of lessons, the attempts closed by "Done", the last closed attempt and the summary of what was handed out —, takes the engine's choice, has the learner answer by its truth, and gives the model the evidence.
Package run runs a virtual learner through learner-model and engine, as the platform runs a learner through them: at each time its calendar gives, the bench builds the engine's input as api would — the model's reading, the pool and the lessons the learner's age category suits, the runs of lessons, the attempts closed by "Done", the last closed attempt and the summary of what was handed out —, takes the engine's choice, has the learner answer by its truth, and gives the model the evidence.
seed
Package seed gives the bench its numbers: every draw of sim comes from a place of randomness of the module format, a seed and names, by the platform's one generator.
Package seed gives the bench its numbers: every draw of sim comes from a place of randomness of the module format, a seed and names, by the platform's one generator.
synthetic
Package synthetic builds the bench's own synthetic packages: canonical views in the shape of the three modules of the first slice, for the code and the tests of the bench and not to judge candidates by.
Package synthetic builds the bench's own synthetic packages: canonical views in the shape of the three modules of the first slice, for the code and the tests of the bench and not to judge candidates by.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL