spec

package module
v0.23.1 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: 2 Imported by: 0 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

spec

CI Release CodeQL Latest release Coverage OpenSSF Best Practices OpenSSF Scorecard License

Code Smells Reliability Rating Security Rating Maintainability Rating Vulnerabilities

Official standards, schemas, and guidelines for NovaTrail, a universal open platform for adaptive learning, interactive lessons, and AI tutoring.

NovaTrail turns any subject into interactive lessons with an AI tutor, for children and adults alike. A subject comes as a module that anyone can author: a graph of skills, lessons, tasks, typical mistakes, and the kind of canvas the learner works on. The learner writes, draws, types, moves things or speaks. The AI reads the work and talks with the learner, but whether an answer is right is decided by a program against the task's key, never by the model. A learner model brings together the skills of every module, and an engine picks what comes next. NovaTrail succeeds MathTrail, olympiad maths for primary and lower secondary school, which is now frozen.

spec is the shared source of truth of NovaTrail's repositories, and runs nothing itself: it holds the vocabulary, the documents and the decisions of the platform, the formats every component reads — the module format among them — and the API contracts, and the rules every repository follows. Each of the other repositories — the components of the architecture, the official modules and the shared infrastructure — starts from its template, takes spec as a git submodule, pinned to a tag of its release, for the documents and the rules, and takes the files of that release in its code: the module format, its types and the code of the contracts. The repositories and how they depend on one another are in docs/repositories.md; the documents, the releases and how to contribute are in docs/.

Documentation

Overview

Package spec is what Go code of the NovaTrail platform takes from spec: its normative parts as files, at the tag of a release, which is the version of this module and which the importing module's go.mod pins. Code takes them from here rather than from the spec/ submodule its repository keeps for the documents, so that go.sum and the Go checksum database hold the files to the bytes of that tag.

Index

Constants

This section is empty.

Variables

View Source
var Admission fs.FS = &part{&admissionFiles, "admission"}

Admission is the admission table as the release has it: admission/ at its tag, laid out as admission/README.md says. Its root is admission/, so that the table is "admission-table.json".

View Source
var ConsentAge fs.FS = &part{&consentAgeFiles, "consent-age"}

ConsentAge is the table of the age of digital consent as the release has it: consent-age/ at its tag, laid out as consent-age/README.md says, by which api computes a learner's age category. Its root is consent-age/, so that the table is "consent-age.yaml".

View Source
var Deployment fs.FS = &part{&deploymentFiles, "deployment"}

Deployment is the format of the deployment configuration as the release has it: deployment/ at its tag, laid out as deployment/README.md says. Its root is deployment/, so that the schema of the file is "schemas/deployment.schema.json".

View Source
var Export fs.FS = &part{&exportFiles, "export"}

Export is the format of the export as the release has it: export/ at its tag, laid out as export/README.md says, by which api writes its part of an export. Its root is export/, so that the schema of a profile's file is "schemas/profile.schema.json".

View Source
var Format fs.FS = &part{&formatFiles, "format"}

Format is the module format as the release has it: format/ at its tag, laid out as format/README.md says. Its root is format/, so that VERSION is "VERSION" and a schema is "schemas/task.schema.json".

View Source
var Legal fs.FS = &part{&legalFiles, "legal"}

Legal is the legal texts as the release has them: legal/ at its tag, laid out as legal/README.md says, from which api serves the texts. Its root is legal/, so that the passport is "legal.yaml" and a version of a text is "texts/privacy-policy/1.md".

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
contracts module
types
admissionv0
Package admissionv0 holds the types of the admission table, major version 0, generated from the schemas of version 0.7 in admission/schemas by tools/types: the table, and the vectors of answers of the admission function.
Package admissionv0 holds the types of the admission table, major version 0, generated from the schemas of version 0.7 in admission/schemas by tools/types: the table, and the vectors of answers of the admission function.
consentagev1
Package consentagev1 holds the types of the table of the age of digital consent, version 1 of the part, generated from the schemas in consent-age/schemas by tools/types: the table consent-age/consent-age.yaml, with the age of each country from a day on and the law that sets it, the vectors of reading and the vectors of the category.
Package consentagev1 holds the types of the table of the age of digital consent, version 1 of the part, generated from the schemas in consent-age/schemas by tools/types: the table consent-age/consent-age.yaml, with the age of each country from a day on and the law that sets it, the vectors of reading and the vectors of the category.
deploymentv1
Package deploymentv1 holds the types of the deployment configuration, version 1, generated from the schemas in deployment/schemas by tools/types: the file /deployment.json, whose fields keep the names app reads, in camelCase, as their JSON tags, and the vectors of reading.
Package deploymentv1 holds the types of the deployment configuration, version 1, generated from the schemas in deployment/schemas by tools/types: the file /deployment.json, whose fields keep the names app reads, in camelCase, as their JSON tags, and the vectors of reading.
exportv7
Package exportv7 holds the types of the format of the export, version 7 of the part, generated from the schemas in export/schemas by tools/types: the files of an export — the manifest, the account, a profile with every record of it, what a device holds of it and a stored work — and the vectors of reading.
Package exportv7 holds the types of the format of the export, version 7 of the part, generated from the schemas in export/schemas by tools/types: the files of an export — the manifest, the account, a profile with every record of it, what a device holds of it and a stored work — and the vectors of reading.
formatv0
Package formatv0 holds the types of the module format, major version 0, generated from the schemas of version 0.5 in format/schemas by tools/types.
Package formatv0 holds the types of the module format, major version 0, generated from the schemas of version 0.5 in format/schemas by tools/types.
formatv0/open
Package open holds the open view of each part of a module, as format/README.md defines it: the struct of each type the open view of a part reaches, by the name it has in formatv0, with the fields marked x-open alone, of version 0.5.
Package open holds the open view of each part of a module, as format/README.md defines it: the struct of each type the open view of a part reaches, by the name it has in formatv0, with the fields marked x-open alone, of version 0.5.
legalv3
Package legalv3 holds the types of the legal texts, version 3 of the part, generated from the schemas in legal/schemas by tools/types: the passport legal/legal.yaml, with the texts, their versions and the sets of texts of the samples page, and the vectors of reading.
Package legalv3 holds the types of the legal texts, version 3 of the part, generated from the schemas in legal/schemas by tools/types: the passport legal/legal.yaml, with the texts, their versions and the sets of texts of the samples page, and the vectors of reading.

Jump to

Keyboard shortcuts

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