@altnovatrail/spec 0.19.13 → 0.19.15

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/README.md CHANGED
@@ -12,7 +12,7 @@ From 0.5.0 on, the package also holds the types of the element `<novatrail-canva
12
12
 
13
13
  From 0.8.0 on, it holds the types of the admission table too: which AI provider, on which route to AI, may receive the work of a learner of which age category ([the table's text](https://github.com/altnovatrail/spec/blob/main/admission/README.md)). They are generated from its schemas, `admission/schemas`, as the format's are.
14
14
 
15
- From 0.10.0 on, it holds the page of the workbook too, which format 0.4 makes a rule: `@altnovatrail/spec/format/page.json`, the numbers and the widths by which every page is laid out, and `@altnovatrail/spec/format/vectors/pages/<case>.json`, the test vectors of the page, each the JSON of the format's [`page.yaml`](https://github.com/altnovatrail/spec/blob/main/format/page.yaml) and of its vectors, `format/vectors/pages/` ([the format's text](https://github.com/altnovatrail/spec/blob/main/format/README.md), section 14). A canvas reads them to lay its page out, and its tests check its layout against the vectors; their types are `Page` and `PageVector` of `formatv0`.
15
+ From 0.10.0 on, it holds the page of the workbook too, which format 0.4 makes a rule: `@altnovatrail/spec/format/page.json`, the numbers and the widths by which every page is laid out, and `@altnovatrail/spec/format/vectors/pages/<case>.json`, the test vectors of the page, each the JSON of the format's [`page.yaml`](https://github.com/altnovatrail/spec/blob/main/format/page.yaml) and of its vectors, `format/vectors/pages/` ([the format's text](https://github.com/altnovatrail/spec/blob/main/format/README.md)). A canvas reads them to lay its page out, and its tests check its layout against the vectors; their types are `Page` and `PageVector` of `formatv0`.
16
16
 
17
17
  From 0.11.0 on, it holds the types of the deployment configuration too: the file `/deployment.json`, which the learner's app reads at its start from the root of its origin, with the origin of the platform's API and the parameters of the sign-in service ([the format's text](https://github.com/altnovatrail/spec/blob/main/deployment/README.md)). They are generated from its schemas, `deployment/schemas`, as the format's are, and the fields of the file keep their names in camelCase, such as `signIn.apiKey`.
18
18
 
@@ -49,12 +49,12 @@ function show(task: open.Task, manifest: open.Manifest) {
49
49
  - each enumeration of a field.
50
50
 
51
51
  A field the object always holds is required, and any other is optional. That includes each field that only some branches of a schema give.
52
- - **`@altnovatrail/spec/formatv0/open`** holds the open view of each part, which is what the learner's app gets ([the format's text](https://github.com/altnovatrail/spec/blob/main/format/README.md#6-open-fields), section 6). Each type keeps its name from `formatv0` and only the fields marked `x-open`, so an open view has no check, no template and no solver.
52
+ - **`@altnovatrail/spec/formatv0/open`** holds the open view of each part, which is what the learner's app gets ([the format's text](https://github.com/altnovatrail/spec/blob/main/format/README.md)). Each type keeps its name from `formatv0` and only the fields marked `x-open`, so an open view has no check, no template and no solver.
53
53
  - **`@altnovatrail/spec/admissionv0`** holds the types of the admission table's major version 0: the table, with its providers, deployment facts, rules of capabilities and cells, and the test vectors of the admission function's answers.
54
- - **`@altnovatrail/spec/deploymentv1`** holds the types of the deployment configuration's version 1: the file, `Deployment`, and the test vectors of reading it, `ReadingVector`, whose file is any JSON value, `unknown`. A type gives the shape alone: a reader checks the file against its schema and then against the rules of reading, section 5 of the format's text.
55
- - **`@altnovatrail/spec/legalv3`** holds the types of version 3 of the legal texts: the passport, `Legal`, with each `Text` and its `TextVersion` with its `translations`, each `Set` and its `SetVersion`, and the test vectors of reading the part, `ReadingVector`, whose passport is any JSON value, `unknown`. A type gives the shape alone: a reader checks the passport against its schema and then the part against the rules of reading, section 5 of the part's text.
56
- - **`@altnovatrail/spec/consentagev1`** holds the types of version 1 of the table of the age of digital consent: the table, `ConsentAge`, with each country's `Entry`, the `Country` codes, and the test vectors of reading the table, `ReadingVector`, whose table is any JSON value, `unknown`, and of the category, `CategoryVector`. A type gives the shape alone: a reader checks the table against its schema and then against the rules of reading, section 5 of the part's text, and computes a learner's category as the part's text says.
57
- - **`@altnovatrail/spec/exportv4`** holds the types of version 4 of the format of the export: `Manifest`, `Account`, `Profile` with its `Attempt`, `PaperAttempt`, `Submission`, `Choice`, `EvidenceEntry`, `StateEntry` and `WorkInfo`, `Device`, `Work`, `Paper` with its `TaskFrame` and `Task`, `Image`, and the test vectors of reading an export, `ReadingVector`. A type gives the shape alone: a reader checks each file against its schema and then the export against the rules of reading, section 5 of the part's text.
54
+ - **`@altnovatrail/spec/deploymentv1`** holds the types of the deployment configuration's version 1: the file, `Deployment`, and the test vectors of reading it, `ReadingVector`, whose file is any JSON value, `unknown`. A type gives the shape alone: a reader checks the file against its schema and then against the rules of reading of the format's text.
55
+ - **`@altnovatrail/spec/legalv3`** holds the types of version 3 of the legal texts: the passport, `Legal`, with each `Text` and its `TextVersion` with its `translations`, each `Set` and its `SetVersion`, and the test vectors of reading the part, `ReadingVector`, whose passport is any JSON value, `unknown`. A type gives the shape alone: a reader checks the passport against its schema and then the part against the rules of reading of the part's text.
56
+ - **`@altnovatrail/spec/consentagev1`** holds the types of version 1 of the table of the age of digital consent: the table, `ConsentAge`, with each country's `Entry`, the `Country` codes, and the test vectors of reading the table, `ReadingVector`, whose table is any JSON value, `unknown`, and of the category, `CategoryVector`. A type gives the shape alone: a reader checks the table against its schema and then against the rules of reading of the part's text, and computes a learner's category as the part's text says.
57
+ - **`@altnovatrail/spec/exportv4`** holds the types of version 4 of the format of the export: `Manifest`, `Account`, `Profile` with its `Attempt`, `PaperAttempt`, `Submission`, `Choice`, `EvidenceEntry`, `StateEntry` and `WorkInfo`, `Device`, `Work`, `Paper` with its `TaskFrame` and `Task`, `Image`, and the test vectors of reading an export, `ReadingVector`. A type gives the shape alone: a reader checks each file against its schema and then the export against the rules of reading of the part's text.
58
58
  - **`@altnovatrail/spec/canvas`** holds the types of `<novatrail-canvas>`:
59
59
  - `CanvasElement`, which describes the element's properties `tool`, `task`, `paper`, `tracing`, `workedExample`, `demoState`, `manifest`, `media`, `history`, `marks` and `filled` and its methods `exportWork()` and `exportPicture()`, the PNG of the work that the app stores;
60
60
  - `Media`, the function by which the consumer gives the files of the pictures: the canvas goes to no network;
@@ -77,7 +77,7 @@ The package's version is the tag of the release of `altnovatrail/spec` it comes
77
77
 
78
78
  ## Checking the archive
79
79
 
80
- The archive in npm is the file `altnovatrail-spec-<version>.tgz` of that release, which the release signs with cosign and whose attestation names it. A NovaTrail repository lets the package into its code only once spec's `release-verify-npm` has accepted its lock file, in CI of the pull request that changes it (decision R77 of spec; [RULES.md](https://github.com/altnovatrail/spec/blob/main/RULES.md), Hard rules). It runs from the repository's `spec` submodule:
80
+ The archive in npm is the file `altnovatrail-spec-<version>.tgz` of that release, which the release signs with cosign and whose attestation names it. A NovaTrail repository lets the package into its code only once spec's `release-verify-npm` has accepted its lock file, in CI of the pull request that changes it. It runs from the repository's `spec` submodule:
81
81
 
82
82
  ```sh
83
83
  just -f spec/justfile release-verify-npm package-lock.json
@@ -2,11 +2,10 @@
2
2
 
3
3
  /**
4
4
  * The types of the admission table, major version 0, generated from the schemas of version 0.5 in
5
- * admission/schemas by tools/types (R72, R73 and R96 in spec's docs/decisions.md): the same types
6
- * as the Go package admissionv0, by the same names — the table, and the vectors of answers of the
7
- * admission function. The schemas decide what is valid: a type gives the shape of a value alone,
8
- * and code that reads a value from elsewhere checks it against its schema first. A field the object
9
- * always holds is required; any other is optional.
5
+ * admission/schemas by tools/types: the same types as the Go package admissionv0, by the same names
6
+ * — the table, and the vectors of answers of the admission function. The schemas decide what is
7
+ * valid: a type gives the shape of a value alone, and code that reads a value from elsewhere checks
8
+ * it against its schema first. A field the object always holds is required; any other is optional.
10
9
  *
11
10
  * @packageDocumentation
12
11
  */
@@ -16,19 +15,20 @@
16
15
  /**
17
16
  * AdmissionTable is the type of admission-table.schema.json.
18
17
  *
19
- * The rules of admission to AI by age category (section 4 of the admission text): the AI providers,
20
- * the dictionary of deployment facts, the rule of each capability of AI for each age category, and
21
- * the cell of each provider, AI route and age category. What the table does not name is closed.
18
+ * The rules of admission to AI by age category: the AI providers, the dictionary of deployment
19
+ * facts, the rule of each capability of AI for each age category, and the cell of each provider, AI
20
+ * route and age category. What the table does not name is closed.
22
21
  */
23
22
  export interface AdmissionTable {
24
23
  /**
25
24
  * The AI providers the table knows, by code: the code that tutor's adapters and the admission
26
- * function name a provider by. A provider that is not here is closed (R65).
25
+ * function name a provider by. A provider that is not here is closed until its terms are checked
26
+ * in full.
27
27
  */
28
28
  readonly providers: Readonly<Record<Provider, AiProvider>>;
29
29
  /**
30
30
  * The dictionary of deployment facts, by code: what an operator declares about its agreements
31
- * with each provider, for some age categories (section 5 of the admission text).
31
+ * with each provider, for some age categories.
32
32
  */
33
33
  readonly facts: Readonly<Record<Fact, DeploymentFact>>;
34
34
  /**
@@ -53,11 +53,12 @@ export type Provider = string;
53
53
  /**
54
54
  * AiProvider is the type of admission-table.schema.json#/$defs/ai_provider.
55
55
  *
56
- * An AI provider of the table: what privacy 5.3 names it.
56
+ * An AI provider of the table: what the table of the providers' terms on age in `docs/privacy.md`
57
+ * names it.
57
58
  */
58
59
  export interface AiProvider {
59
60
  /**
60
- * The provider's name, as privacy 5.3 names it.
61
+ * The provider's name, as the table of the providers' terms on age in `docs/privacy.md` names it.
61
62
  */
62
63
  readonly name: string;
63
64
  }
@@ -108,20 +109,20 @@ export interface CapabilityRule {
108
109
  /**
109
110
  * Capability is the type of admission-table.schema.json#/$defs/capability.
110
111
  *
111
- * A capability of AI (concepts 10): reading handwriting, reading text, the analysis of a solution's
112
- * steps, the assessment by a rubric, the hint, the words after a correct answer — the praise of a
113
- * step and the question of which technique helped —, voice — the voicing of the tutor by a provider
114
- * and the learner's voice input, which are one capability for now —, and for a task from paper the
115
- * finding of the tasks on the photo of a page, the reading of a task's statement into a formula for
116
- * the solver, and the solving of a task for its key.
112
+ * A capability of AI: reading handwriting, reading text, the analysis of a solution's steps, the
113
+ * assessment by a rubric, the hint, the words after a correct answer — the praise of a step and the
114
+ * question of which technique helped —, voice — the voicing of the tutor by a provider and the
115
+ * learner's voice input, which are one capability for now —, and for a task from paper the finding
116
+ * of the tasks on the photo of a page, the reading of a task's statement into a formula for the
117
+ * solver, and the solving of a task for its key.
117
118
  */
118
119
  export type Capability = "handwriting_reading" | "text_reading" | "solution_analysis" | "rubric_assessment" | "hint" | "correct_answer_words" | "voice" | "task_finding" | "statement_reading" | "task_solving";
119
120
 
120
121
  /**
121
122
  * AgeCategory is the type of admission-table.schema.json#/$defs/age_category.
122
123
  *
123
- * An age category, by its code (R46): under 13; from 13 to the age of digital consent in the
124
- * learner's country; from that age to 18; 18 and over.
124
+ * An age category, by its code, the module format's: under 13; from 13 to the age of digital
125
+ * consent in the learner's country; from that age to 18; 18 and over.
125
126
  */
126
127
  export type AgeCategory = "under_13" | "from_13_to_consent" | "from_consent_to_18" | "adult";
127
128
 
@@ -143,8 +144,8 @@ export type Basis = readonly Citation[];
143
144
  /**
144
145
  * Citation is the type of admission-table.schema.json#/$defs/citation.
145
146
  *
146
- * What a rule or a cell rests on, in spec's documents: a decision, R47; an open question of a
147
- * register, П-4; or a section of a document, privacy 5.3.
147
+ * What a rule or a cell rests on, in spec's documents: a decision, as `R47`; an open question of a
148
+ * register, as `П-4`; or a section of a document, as `privacy 5.3`.
148
149
  */
149
150
  export type Citation = string;
150
151
 
@@ -171,7 +172,7 @@ export interface Cell {
171
172
  * Whether the provider, on the route, may receive the work of a learner of the category: closed;
172
173
  * open; or open with facts — only when every deployment fact in facts holds for the provider and
173
174
  * the category. On the own key a cell is closed or open, never open with facts: the agreement
174
- * with the provider is the key owner's, and a deployment declares nothing of it (privacy 5.2).
175
+ * with the provider is the key owner's, and a deployment declares nothing of it.
175
176
  */
176
177
  readonly admission: CellAdmission;
177
178
  /**
@@ -180,7 +181,8 @@ export interface Cell {
180
181
  */
181
182
  readonly facts?: readonly Fact[];
182
183
  /**
183
- * The provider's terms that the cell reads: each its row of privacy 5.3 and the date it was read.
184
+ * The provider's terms that the cell reads: each its row of the table of the providers' terms on
185
+ * age in `docs/privacy.md` and the date it was read.
184
186
  */
185
187
  readonly terms: readonly Terms[];
186
188
  /**
@@ -193,7 +195,7 @@ export interface Cell {
193
195
  * AiRoute is the type of admission-table.schema.json#/$defs/ai_route.
194
196
  *
195
197
  * An AI route: platform AI, under the platform's agreements with the providers, or the own key of
196
- * an account owner who learns, at the profile of the category adult (concepts 14).
198
+ * an account owner who learns, at the profile of the category adult.
197
199
  */
198
200
  export type AiRoute = "platform_ai" | "own_key";
199
201
 
@@ -203,19 +205,20 @@ export type AiRoute = "platform_ai" | "own_key";
203
205
  * Whether the provider, on the route, may receive the work of a learner of the category: closed;
204
206
  * open; or open with facts — only when every deployment fact in facts holds for the provider and
205
207
  * the category. On the own key a cell is closed or open, never open with facts: the agreement with
206
- * the provider is the key owner's, and a deployment declares nothing of it (privacy 5.2).
208
+ * the provider is the key owner's, and a deployment declares nothing of it.
207
209
  */
208
210
  export type CellAdmission = "closed" | "open" | "open_with_facts";
209
211
 
210
212
  /**
211
213
  * Terms is the type of admission-table.schema.json#/$defs/terms.
212
214
  *
213
- * The provider's terms that a cell reads, by its row of privacy 5.3 and the date they were read.
215
+ * The provider's terms that a cell reads, by its row of the table of the providers' terms on age in
216
+ * `docs/privacy.md` and the date they were read.
214
217
  */
215
218
  export interface Terms {
216
219
  /**
217
- * The provider's row in the table of privacy 5.3, as its first column names it: OpenAI, Google
218
- * Cloud, Vertex AI.
220
+ * The provider's row in the table of the providers' terms on age in `docs/privacy.md`, as its
221
+ * first column names it: OpenAI, Google Cloud, Vertex AI.
219
222
  */
220
223
  readonly row: string;
221
224
  /**
@@ -229,9 +232,10 @@ export interface Terms {
229
232
  /**
230
233
  * AnswerVector is the type of answer-vector.schema.json.
231
234
  *
232
- * A test vector of answers (section 9 of the admission text): a table of its own and requests to
233
- * the admission function, each with the deployment facts declared and the answer that sections 5
234
- * and 6 give. An implementation computes each answer and gets exactly this one.
235
+ * A test vector of answers of the admission table: a table of its own and requests to the admission
236
+ * function, each with the deployment facts declared and the answer that the admission text's
237
+ * deployment facts and admission function give. An implementation computes each answer and gets
238
+ * exactly this one.
235
239
  */
236
240
  export interface AnswerVector {
237
241
  /**
@@ -293,7 +297,7 @@ export interface Request {
293
297
  * DeclaredFacts is the type of answer-vector.schema.json#/$defs/declared_facts.
294
298
  *
295
299
  * The deployment facts declared, by provider: what the function gets by value from the file of a
296
- * deployment's configuration (section 5 of the admission text).
300
+ * deployment's configuration.
297
301
  */
298
302
  export type DeclaredFacts = Readonly<Record<Provider, ProviderFacts>>;
299
303
 
package/canvas/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Written by hand, not generated: tools/types writes the folders of the module format's types
2
- // beside this one, and leaves it as it is (R74).
2
+ // beside this one, and leaves it as it is.
3
3
 
4
4
  /**
5
- * The types of the element `<novatrail-canvas>`: the contract of canvas and app (R36). The element
5
+ * The types of the element `<novatrail-canvas>`: the contract of canvas and app. The element
6
6
  * takes a task and its module's manifest, the files of its pictures and the learner's history of
7
7
  * writing, by properties; it gives the work for checking and the work's picture by its methods, and
8
8
  * tells what the learner did by events. In place of a task it may show a lesson's worked example,
@@ -10,14 +10,14 @@
10
10
  * property and an event too. In place of either it may show a task from the learner's paper: the
11
11
  * task's crop over a sheet as tracing paper, which the learner moves, hides and writes on, and where
12
12
  * the tracing paper lies and the grid the learner chose for the sheet are properties and events as
13
- * well (R162). The types of the
13
+ * well. The types of the
14
14
  * task, of the worked example and of the manifest are the module format's open views,
15
15
  * formatv0/open.
16
16
  *
17
17
  * It takes the tutor's marks of a submission too, by a property, with the submission's context:
18
18
  * their kind and their place come from the contract between app and api, novatrail.api.v1, whose
19
- * message `Mark` these types are checked against, and their names from app (contracts/README.md,
20
- * section 15; R83). The element's members beyond this contract — its commands undo() and clear(),
19
+ * message `Mark` these types are checked against, and their names from app (`contracts/README.md`).
20
+ * The element's members beyond this contract — its commands undo() and clear(),
21
21
  * which its own buttons call — and its place in the DOM's maps of tags and events are canvas's:
22
22
  * its package registers the element. The declarations take the DOM's
23
23
  * types: Blob, CustomEvent and HTMLElement.
@@ -66,7 +66,7 @@ export interface DemoState {
66
66
  export type DemoChangeEvent = CustomEvent<DemoState>;
67
67
 
68
68
  /**
69
- * A task from the learner's paper (concepts 8; R162): the task's crop, which app cut on the device
69
+ * A task from the learner's paper: the task's crop, which app cut on the device
70
70
  * from the photo of the page by its task frame. The element lays it over a sheet as tracing paper,
71
71
  * in place of a task's statement and template; the sheet's grid is the learner's, `PaperGrid`. It
72
72
  * has no answer slot of the format: its one slot is the whole work, at the place 1, 1. The tools
@@ -106,7 +106,7 @@ export interface TracingState {
106
106
  /**
107
107
  * How many times its own size it is drawn, from 0.4 to 4, the crop and the strokes on it alike,
108
108
  * from its top left corner: the strokes keep their points on it, so the work for checking is the
109
- * same at any scale. Absent is 1; the element gives it always (R169).
109
+ * same at any scale. Absent is 1; the element gives it always.
110
110
  */
111
111
  readonly scale?: number;
112
112
  /**
@@ -126,7 +126,7 @@ export type TracingChangeEvent = CustomEvent<TracingState>;
126
126
 
127
127
  /**
128
128
  * The statement of a task from paper read in clean print, which the consumer gets on the learner's
129
- * "Recognise" (R169): `"ready"`, the button offered; `"busy"`, while the reading comes; and
129
+ * "Recognise": `"ready"`, the button offered; `"busy"`, while the reading comes; and
130
130
  * `"done"`, the statement of each task the crop holds, as the page prints it, "□" for each box an
131
131
  * answer goes in, a fraction with a bar LaTeX's `\frac{3}{17}`, nested as printed, and a raised
132
132
  * power `^{2}`, which the element draws built up in place of the crop until the learner goes back
@@ -151,7 +151,7 @@ export type TracingReadEvent = CustomEvent<null>;
151
151
  export interface InkPoint {
152
152
  /**
153
153
  * Across the sheet: 0 at its left edge, at most 10000. The task's page is its first 1000, and the
154
- * sheet goes on to the right of it as far as the learner writes and moves it (R06 canvas).
154
+ * sheet goes on to the right of it as far as the learner writes and moves it.
155
155
  */
156
156
  readonly x: number;
157
157
  /** Down the sheet: 0 at its top edge, at most 14000; the task's page is its first 1400. */
@@ -184,8 +184,8 @@ export interface Stroke {
184
184
  * event says which strokes it put on the sheet or took off, so whoever reads the history replays it
185
185
  * without the rules of the stack of undo. The events are plain data, for JSON as they are; those
186
186
  * the sheet hands out are frozen through. A sample file of the eval protocol holds the same
187
- * history, spelt as its contract has it and without the pressure of a point (contracts/README.md,
188
- * section 12; R94).
187
+ * history, spelt as its contract has it and without the pressure of a point, by the rules
188
+ * the device and the runner share in `contracts/README.md`.
189
189
  */
190
190
  export type HistoryEvent =
191
191
  /**
@@ -307,7 +307,7 @@ export interface CropNumbers {
307
307
  * The context of one submission of a sheet, which the element gives with its crop and takes back
308
308
  * with the tutor's marks: the crop's numbers, the groups of the strokes, and the digest of it all.
309
309
  * app keeps it on the device as it is, through JSON, unrounded, and sends it only within a stored
310
- * work, while the storage of the profile's works is on (R113).
310
+ * work, while the storage of the profile's works is on.
311
311
  */
312
312
  export interface SheetSubmission {
313
313
  readonly crop: CropNumbers;
@@ -326,7 +326,7 @@ export interface SheetSubmission {
326
326
  * place, in the task's order, and the digest of its strokes, of every box of the page and of the
327
327
  * table's rows. A context of another layout of the page the element does not take back. app keeps
328
328
  * it on the device as it is, and sends it only within a stored work, while the storage of the
329
- * profile's works is on (R113).
329
+ * profile's works is on.
330
330
  */
331
331
  export interface WorkbookSubmission {
332
332
  readonly boxes: readonly Filling[];
@@ -339,7 +339,7 @@ export interface WorkbookSubmission {
339
339
  * tracing paper at its place with the strokes on it, and the sheet's strokes —, the groups of the
340
340
  * strokes of both, where the tracing paper lay, and the digest of it all. A context of the tracing
341
341
  * paper at another place the element does not take back. app keeps it on the device, in the
342
- * profile's history of tasks from paper, and never sends it (R162).
342
+ * profile's history of tasks from paper, and never sends it.
343
343
  */
344
344
  export interface PaperSubmission {
345
345
  readonly crop: CropNumbers;
@@ -384,7 +384,8 @@ export interface ExportedWorkbook {
384
384
  * The work of a task from paper for checking, the two images of `PaperWork` of the contract: the
385
385
  * task's crop as it was given, and the PNG of the crop of the work — the tracing paper at its place
386
386
  * with the strokes on it, and the sheet's visible strokes, whether the tracing paper is shown or
387
- * hidden —, with the context of the submission (contracts/README.md, section 15).
387
+ * hidden —, with the context of the submission, as the contract between app and api in
388
+ * `contracts/README.md` has it.
388
389
  */
389
390
  export interface ExportedPaper {
390
391
  readonly statement: Blob;
@@ -400,9 +401,9 @@ export type ExportedWork = ExportedSheet | ExportedWorkbook | ExportedPaper;
400
401
 
401
402
  /**
402
403
  * Where a tutor's mark is: a group of strokes by its label, an answer cell by its place, or a box on
403
- * the crop the model saw, as the contract's mark has its place (contracts/README.md, section 15). On
404
+ * the crop the model saw, as the contract's mark has its place in `contracts/README.md`. On
404
405
  * a workbook a mark stands on a cell alone. A group's label comes from api only if the frames of the
405
- * groups go with the work (repositories 8, Т-31).
406
+ * groups go with the work (Т-31).
406
407
  */
407
408
  export type Anchor =
408
409
  | { readonly group: string }
@@ -426,10 +427,10 @@ export interface FrameMark {
426
427
 
427
428
  /**
428
429
  * A wavy line under the place of the first mistake, on a task from paper alone, at a box on the
429
- * crop of its work, which the profile's hint mode "Show where" brings with the words of a rung
430
- * (concepts 10; R162). The element draws it under the strokes the box takes, on the sheet or on the
430
+ * crop of its work, which the profile's hint mode "Show where" brings with the words of a rung.
431
+ * The element draws it under the strokes the box takes, on the sheet or on the
431
432
  * tracing paper, over a light halo, so that it holds the contrast of 3:1 over the sheet and over the
432
- * photo of any page, and puts it in the accessibility tree as it puts a frame, by its name (R90).
433
+ * photo of any page, and puts it in the accessibility tree as it puts a frame, by its name.
433
434
  */
434
435
  export interface WavyLineMark {
435
436
  readonly kind: "wavy_line";
@@ -445,11 +446,11 @@ export interface WavyLineMark {
445
446
  /**
446
447
  * The verdict of one answer of a task from paper, by the answer on the crop of its work: a tick
447
448
  * when it is right, a cross when it is not, which app gives for each task of a frame of several
448
- * by the box its reading gave (R162). It is app's, not a mark of api's: the verdict of the answer
449
+ * by the box its reading gave. It is app's, not a mark of api's: the verdict of the answer
449
450
  * says it. The element draws it at the right of the group of the learner's strokes nearest the box,
450
451
  * one group a verdict, or of the box when none is near, over a light halo, so that it holds the
451
452
  * contrast of 3:1 over the sheet and over the photo of any page, and puts it in the accessibility
452
- * tree as it puts a frame, by its name (R90).
453
+ * tree as it puts a frame, by its name.
453
454
  */
454
455
  export interface VerdictMark {
455
456
  readonly kind: "verdict";
@@ -497,14 +498,14 @@ export type Media = (ref: string) => Promise<Blob>;
497
498
  * on a worked example its row, with the slot `actions` — is out of sight and out of the
498
499
  * accessibility tree: app sets it on a phone while its tutor's sheet is open. While it has the boolean
499
500
  * attribute `statement-hidden`, it draws no task statement, and app draws the statement as its card
500
- * above the element (R161). Among the style properties `--novatrail-canvas-*` that app sets,
501
+ * above the element. Among the style properties `--novatrail-canvas-*` that app sets,
501
502
  * `--novatrail-canvas-accent` is the accent of the tool in use and of the focus ring,
502
503
  * `--novatrail-canvas-glass` the fill of the bar's glass, `--novatrail-canvas-top` the offset of the
503
504
  * band in whose middle the bar stands, and `--novatrail-canvas-pad-top` and
504
505
  * `--novatrail-canvas-pad-bottom` how far app's own bars float over the element's top and bottom:
505
506
  * the statement starts below the first, the sheet scrolls up past the second, and the bar's band
506
507
  * ends above the second. On a worked example, app puts its own "Continue" into the element's named slot `actions`, a child
507
- * `<button slot="actions">`, in one row after the element's Next and Demo (R36).
508
+ * `<button slot="actions">`, in one row after the element's Next and Demo.
508
509
  */
509
510
  export interface CanvasElement extends HTMLElement {
510
511
  /**
@@ -598,7 +599,7 @@ export interface CanvasElement extends HTMLElement {
598
599
  * The tutor's marks of one submission, on the tutor's layer, given after the task and the
599
600
  * history they hold on to. A mark holds on to the strokes the model saw at its place and is drawn
600
601
  * around those of them the sheet shows, as they are now: a box on the crop takes the strokes by
601
- * the rule of snapping (contracts/README.md, section 12), and a cell of a workbook is framed with
602
+ * the rule of snapping of `contracts/README.md`, and a cell of a workbook is framed with
602
603
  * its box — round the box alone when the box was empty. A cell on a sheet, and a box that comes
603
604
  * near no stroke, have no frame: the question is asked without one. A submission goes back to the
604
605
  * sheet or the page it was made on, as its digest tells: one of other strokes or other boxes is a
@@ -627,11 +628,11 @@ export interface CanvasElement extends HTMLElement {
627
628
  */
628
629
  exportWork(): Promise<ExportedWork | null>;
629
630
  /**
630
- * The picture of the work, which app puts as the stored work's `picture` (contracts/README.md,
631
- * section 15): always a Blob of a PNG, with no condition, of the strokes the surface shows as it is
631
+ * The picture of the work, which app puts as the stored work's `picture` in the contract between
632
+ * app and api: always a Blob of a PNG, with no condition, of the strokes the surface shows as it is
632
633
  * when it is called — the page, a sheet's or a workbook's, and the ink past it, right and down, with
633
634
  * the tracing paper of a task from paper where it lies —, within the limit of a stored work there.
634
- * Its size, in its PNG's header, and its colours are canvas's (R83 canvas).
635
+ * Its size, in its PNG's header, and its colours are canvas's.
635
636
  */
636
637
  exportPicture(): Promise<Blob>;
637
638
  }
@@ -2,15 +2,14 @@
2
2
 
3
3
  /**
4
4
  * The types of the table of the age of digital consent, version 1 of the part, generated from the
5
- * schemas in consent-age/schemas by tools/types (R72, R73 and R134 in spec's docs/decisions.md):
6
- * the same types as the Go package consentagev1, by the same names — the table
7
- * consent-age/consent-age.yaml, with the age of each country from a day on and the law that sets
8
- * it, the vectors of reading and the vectors of the category. The countries a learner's may be are
9
- * Country. A vector of reading's table is any JSON value, unknown, as a reader gets it. The schemas
10
- * decide what is valid: a type gives the shape of a value alone, and code that reads a value from
11
- * elsewhere checks it against its schema first, and then against the rules of reading
12
- * (consent-age/README.md, section 5); the category of a learner is section 6. A field the object
13
- * always holds is required; any other is optional.
5
+ * schemas in consent-age/schemas by tools/types: the same types as the Go package consentagev1, by
6
+ * the same names — the table consent-age/consent-age.yaml, with the age of each country from a day
7
+ * on and the law that sets it, the vectors of reading and the vectors of the category. The
8
+ * countries a learner's may be are Country. A vector of reading's table is any JSON value, unknown,
9
+ * as a reader gets it. The schemas decide what is valid: a type gives the shape of a value alone,
10
+ * and code that reads a value from elsewhere checks it against its schema first, and then against
11
+ * the rules of reading of consent-age/README.md, which gives the category of a learner too. A field
12
+ * the object always holds is required; any other is optional.
14
13
  *
15
14
  * @packageDocumentation
16
15
  */
@@ -20,9 +19,9 @@
20
19
  /**
21
20
  * CategoryVector is the type of category-vector.schema.json.
22
21
  *
23
- * A test vector of the category (section 8 of the text of the part): a table that section 5
24
- * accepts, and what section 6 gives on it — the category of a learner, and whether a profile's age
25
- * is asked again.
22
+ * A test vector of the category: a table that the rules of reading the table accept, and what the
23
+ * rule of the category gives on it — the category of a learner, and whether a profile's age is
24
+ * asked again.
26
25
  */
27
26
  export interface CategoryVector {
28
27
  /**
@@ -83,9 +82,8 @@ export type CategoryCaseCategory = "under_13" | "from_13_to_consent" | "from_con
83
82
  /**
84
83
  * ConsentAge is the type of consent-age.schema.json.
85
84
  *
86
- * The table of the age of digital consent by country, consent-age/consent-age.yaml (section 4 of
87
- * the text of the part): the age of each country with the law that sets it, and the age of a
88
- * country the table does not hold.
85
+ * The table of the age of digital consent by country, consent-age/consent-age.yaml: the age of each
86
+ * country with the law that sets it, and the age of a country the table does not hold.
89
87
  */
90
88
  export interface ConsentAge {
91
89
  /**
@@ -94,7 +92,7 @@ export interface ConsentAge {
94
92
  readonly format: number;
95
93
  /**
96
94
  * The age of digital consent of a country the table does not hold: a parent gives consent for
97
- * every learner under 18 there (R134).
95
+ * every learner under 18 there.
98
96
  */
99
97
  readonly outside_table: number;
100
98
  /**
@@ -170,9 +168,8 @@ export type Words = string;
170
168
  /**
171
169
  * ReadingVector is the type of reading-vector.schema.json.
172
170
  *
173
- * A test vector of reading (section 8 of the text of the part): tables, each perhaps with the table
174
- * of the release before, and what section 5 gives. A reader implements section 5 and gets exactly
175
- * this.
171
+ * A test vector of reading: tables, each perhaps with the table of the release before, and what the
172
+ * rules of reading the table give. A reader implements those rules and gets exactly this.
176
173
  */
177
174
  export interface ReadingVector {
178
175
  /**
@@ -2,13 +2,12 @@
2
2
 
3
3
  /**
4
4
  * The types of the deployment configuration, version 1, generated from the schemas in
5
- * deployment/schemas by tools/types (R72, R73 and R85 in spec's docs/decisions.md): the same types
6
- * as the Go package deploymentv1, by the same names — the file /deployment.json, whose fields keep
7
- * the names of R09 app, in camelCase, and the vectors of reading. A vector's file is any JSON
8
- * value, unknown, as a reader gets it. The schemas decide what is valid: a type gives the shape of
9
- * a value alone, and code that reads a value from elsewhere checks it against its schema first, and
10
- * then against the rules of reading (deployment/README.md, section 5). A field the object always
11
- * holds is required; any other is optional.
5
+ * deployment/schemas by tools/types: the same types as the Go package deploymentv1, by the same
6
+ * names — the file /deployment.json, whose fields keep the names app reads, in camelCase, and the
7
+ * vectors of reading. A vector's file is any JSON value, unknown, as a reader gets it. The schemas
8
+ * decide what is valid: a type gives the shape of a value alone, and code that reads a value from
9
+ * elsewhere checks it against its schema first, and then against the rules of reading of
10
+ * deployment/README.md. A field the object always holds is required; any other is optional.
12
11
  *
13
12
  * @packageDocumentation
14
13
  */
@@ -19,8 +18,7 @@
19
18
  * Deployment is the type of deployment.schema.json.
20
19
  *
21
20
  * The file /deployment.json, which app reads at every start from the root of its origin, beside its
22
- * signed build (section 4 of the deployment text). It holds no secret: every browser that opens app
23
- * gets it.
21
+ * signed build. It holds no secret: every browser that opens app gets it.
24
22
  */
25
23
  export interface Deployment {
26
24
  /**
@@ -30,7 +28,7 @@ export interface Deployment {
30
28
  /**
31
29
  * The origin of api: a scheme, a host in lower case and perhaps a port, with no path, query,
32
30
  * fragment or credentials; https, or http on a loopback host. That it is equal to its own origin,
33
- * and that http needs app itself on a loopback host, are rules of reading (section 5).
31
+ * and that http needs app itself on a loopback host, are rules of reading the file.
34
32
  */
35
33
  readonly api: string;
36
34
  /**
@@ -76,9 +74,9 @@ export type Parameter = string;
76
74
  /**
77
75
  * ReadingVector is the type of reading-vector.schema.json.
78
76
  *
79
- * A test vector of reading (section 7 of the deployment text): files of a deployment configuration,
80
- * each with the origin where app is open and what section 5 gives. A reader implements section 5
81
- * and gets exactly this.
77
+ * A test vector of reading: files of a deployment configuration, each with the origin where app is
78
+ * open and what the rules of reading the file give. A reader implements those rules and gets
79
+ * exactly this.
82
80
  */
83
81
  export interface ReadingVector {
84
82
  /**
@@ -2,15 +2,14 @@
2
2
 
3
3
  /**
4
4
  * The types of the format of the export, version 4 of the part, generated from the schemas in
5
- * export/schemas by tools/types (R72, R73 and R135 in spec's docs/decisions.md): the same types as
6
- * the Go package exportv4, by the same names — the files of an export, the manifest, the account, a
7
- * profile with every record of it, what a device holds of it and a stored work, and the vectors of
8
- * reading. A field that holds the JSON of a message of protobuf, or a value as the element
9
- * <novatrail-canvas> gives it, is any JSON value, unknown, as a reader gets it. The schemas decide
10
- * what is valid: a type gives the shape of a value alone, and code that reads a value from
11
- * elsewhere checks it against its schema first, and then against the rules of reading
12
- * (export/README.md, section 5). A field the object always holds is required; any other is
13
- * optional.
5
+ * export/schemas by tools/types: the same types as the Go package exportv4, by the same names — the
6
+ * files of an export, the manifest, the account, a profile with every record of it, what a device
7
+ * holds of it and a stored work, and the vectors of reading. A field that holds the JSON of a
8
+ * message of protobuf, or a value as the element <novatrail-canvas> gives it, is any JSON value,
9
+ * unknown, as a reader gets it. The schemas decide what is valid: a type gives the shape of a value
10
+ * alone, and code that reads a value from elsewhere checks it against its schema first, and then
11
+ * against the rules of reading of export/README.md. A field the object always holds is required;
12
+ * any other is optional.
14
13
  *
15
14
  * @packageDocumentation
16
15
  */
@@ -20,8 +19,8 @@
20
19
  /**
21
20
  * Account is the type of account.schema.json.
22
21
  *
23
- * The account in an export of the account, api/account.json (section 4 of the text of the part):
24
- * its fields that are no secret, its consents and its counters of quota.
22
+ * The account in an export of the account, api/account.json: its fields that are no secret, its
23
+ * consents and its counters of quota.
25
24
  */
26
25
  export interface Account {
27
26
  /**
@@ -60,7 +59,8 @@ export interface Account {
60
59
  */
61
60
  readonly profile_ids: readonly FileID[];
62
61
  /**
63
- * Every consent of the account, in full: the minimal record left after a deletion is none (R117).
62
+ * Every consent of the account, in full: the minimal record left after a deletion is none, since
63
+ * it holds no ID of the account or a profile.
64
64
  */
65
65
  readonly consents: readonly Consent[];
66
66
  /**
@@ -97,7 +97,7 @@ export type Day = string;
97
97
  *
98
98
  * An ID that names a file of the export — a profile's or an attempt's, as api gives it, or a page's
99
99
  * from paper, as app gives it —: 1 to 200 letters, digits, -, _ and ., the first not a ., so that
100
- * it is one part of a path, never . or .. (section 3).
100
+ * it is one part of a path, never `.` or `..`.
101
101
  */
102
102
  export type FileID = string;
103
103
 
@@ -112,7 +112,7 @@ export interface Consent {
112
112
  /**
113
113
  * Who gave the consent: the owner of the account of their own profile, by the statement that they
114
114
  * are 18 or older; a parent, by the signed form; or the learner themselves, from the age of
115
- * digital consent of their country (R116).
115
+ * digital consent of their country.
116
116
  */
117
117
  readonly giver: ConsentGiver;
118
118
  /**
@@ -154,7 +154,7 @@ export interface Consent {
154
154
  /**
155
155
  * The versions of the legal texts the person saw when they gave the consent — privacy-policy and
156
156
  * terms-of-use of the owner's, parent-consent of a parent's, teen-consent of the learner's own —,
157
- * each that had a version in force (R130); empty when none had.
157
+ * each that had a version in force; empty when none had.
158
158
  */
159
159
  readonly texts: readonly TextRef[];
160
160
  }
@@ -164,7 +164,7 @@ export interface Consent {
164
164
  *
165
165
  * Who gave the consent: the owner of the account of their own profile, by the statement that they
166
166
  * are 18 or older; a parent, by the signed form; or the learner themselves, from the age of digital
167
- * consent of their country (R116).
167
+ * consent of their country.
168
168
  */
169
169
  export type ConsentGiver = "owner" | "parent" | "learner";
170
170
 
@@ -187,7 +187,7 @@ export type ConsentForm = "not_sent" | "sent" | "not_accepted";
187
187
  /**
188
188
  * AgeCategory is the type of common.schema.json#/$defs/age_category.
189
189
  *
190
- * An age category, by its code (R46).
190
+ * An age category, by its code, the module format's.
191
191
  */
192
192
  export type AgeCategory = "under_13" | "from_13_to_consent" | "from_consent_to_18" | "adult";
193
193
 
@@ -257,7 +257,8 @@ export interface Image {
257
257
  */
258
258
  readonly media_type: ImageMediaType;
259
259
  /**
260
- * The image's bytes, at most 4 MiB, in base64 (RFC 4648, section 4).
260
+ * The image's bytes, at most 4 MiB, in base64 by the standard alphabet of RFC 4648, not
261
+ * base64url.
261
262
  */
262
263
  readonly data: string;
263
264
  }
@@ -281,8 +282,8 @@ export type ThousandthsBox = readonly number[];
281
282
  /**
282
283
  * Device is the type of device.schema.json.
283
284
  *
284
- * What this device holds of a profile, device/<id>.json (section 4 of the text of the part): its
285
- * unfinished attempts with their history, its essays and its places in lessons.
285
+ * What this device holds of a profile, device/<id>.json: its unfinished attempts with their
286
+ * history, its essays and its places in lessons.
286
287
  */
287
288
  export interface Device {
288
289
  /**
@@ -432,7 +433,7 @@ export interface DeviceLessonDemoState {
432
433
  /**
433
434
  * Manifest is the type of manifest.schema.json.
434
435
  *
435
- * The manifest of an export, manifest.json, which app writes (section 4 of the text of the part).
436
+ * The manifest of an export, manifest.json, which app writes.
436
437
  */
437
438
  export interface Manifest {
438
439
  /**
@@ -472,7 +473,7 @@ export type ManifestScope = "profile" | "account";
472
473
  *
473
474
  * A page from the learner's paper that the device holds, paper/<profile id>/<page id>.json, which
474
475
  * app writes beside api.zip: the photo of the page, its task frames, and each picked task's crop
475
- * and work (section 4 of the text of the part; R162). The server keeps none of it.
476
+ * and work. The server keeps none of it.
476
477
  */
477
478
  export interface Paper {
478
479
  /**
@@ -570,7 +571,7 @@ export interface Task {
570
571
  /**
571
572
  * Profile is the type of profile.schema.json.
572
573
  *
573
- * A profile and every record of it, api/profiles/<id>.json (section 4 of the text of the part).
574
+ * A profile and every record of it, api/profiles/<id>.json.
574
575
  */
575
576
  export interface Profile {
576
577
  /**
@@ -620,7 +621,7 @@ export interface Profile {
620
621
  readonly default_mode: ProfileDefaultMode;
621
622
  /**
622
623
  * The hint mode: whether a task from paper gets the wavy line with the words of a rung,
623
- * "show_where", or the words alone, "questions_only" (R162).
624
+ * "show_where", or the words alone, "questions_only".
624
625
  */
625
626
  readonly hint_mode: ProfileHintMode;
626
627
  /**
@@ -658,8 +659,8 @@ export interface Profile {
658
659
  readonly attempts: readonly Attempt[];
659
660
  /**
660
661
  * The profile's open attempts of tasks from paper, those of one page: api keeps one only while it
661
- * is open, and nothing of it once it ends (R162; privacy 4.1). Their page, crops and work are the
662
- * device's, under paper/.
662
+ * is open, and nothing of it once it ends, by the retention periods of `docs/privacy.md`. Their
663
+ * page, crops and work are the device's, under paper/.
663
664
  */
664
665
  readonly paper_attempts: readonly PaperAttempt[];
665
666
  /**
@@ -676,22 +677,22 @@ export interface Profile {
676
677
  readonly state: StateEntry;
677
678
  /**
678
679
  * The stored works, the works of the profile kept on the server, newest first, each named without
679
- * its bytes, as ListWorks names it; each is a file of its own beside api.zip, which app writes
680
- * (R151). Empty while storage is off (R113).
680
+ * its bytes, as ListWorks names it; each is a file of its own beside api.zip, which app writes.
681
+ * Empty while storage is off.
681
682
  */
682
683
  readonly works: readonly WorkInfo[];
683
684
  /**
684
- * Whether the storage of the profile's works on the server is on (R113).
685
+ * Whether the storage of the profile's works on the server is on.
685
686
  */
686
687
  readonly work_storage: boolean;
687
688
  /**
688
689
  * Each time the storage of works was switched on, by whom, by which version of storage-consent,
689
- * and when it was switched off: the records live as long as the profile (R131; R136).
690
+ * and when it was switched off: the records live as long as the profile.
690
691
  */
691
692
  readonly storage_consents: readonly StorageConsent[];
692
693
  /**
693
694
  * The reports of a problem with the tutor's words of the profile's attempts that api keeps: until
694
- * the operator reviewed them, and for a year after (R123; R136).
695
+ * the operator reviewed them, and for a year after.
695
696
  */
696
697
  readonly problem_reports: readonly ProblemReport[];
697
698
  /**
@@ -744,7 +745,7 @@ export type ProfileDefaultMode = "by_steps" | "self";
744
745
  * ProfileHintMode is the type of profile.schema.json#/properties/hint_mode.
745
746
  *
746
747
  * The hint mode: whether a task from paper gets the wavy line with the words of a rung,
747
- * "show_where", or the words alone, "questions_only" (R162).
748
+ * "show_where", or the words alone, "questions_only".
748
749
  */
749
750
  export type ProfileHintMode = "questions_only" | "show_where";
750
751
 
@@ -957,7 +958,7 @@ export type AttemptCloseReason = "correct" | "solution_shown" | "left" | "abando
957
958
  export interface Rung {
958
959
  /**
959
960
  * The rung, 1 to 3; on an attempt of a task from paper, 0 is its opening question, the model's
960
- * words alone (R82).
961
+ * words alone.
961
962
  */
962
963
  readonly rung: number;
963
964
  /**
@@ -1238,7 +1239,7 @@ export interface PaperAttempt {
1238
1239
  /**
1239
1240
  * Where the key of each task of the attempt's crop came from, in the order of the page, as its
1240
1241
  * items; absent before a submission derived them. The keys themselves are the program's and never
1241
- * reach the device (R05).
1242
+ * reach the device.
1242
1243
  */
1243
1244
  readonly key_sources?: readonly PaperAttemptKeySources[];
1244
1245
  /**
@@ -1381,8 +1382,8 @@ export interface EvidenceEntry {
1381
1382
  */
1382
1383
  readonly attempt_id?: ID;
1383
1384
  /**
1384
- * The ID of an adult's correction of the module's level, whose evidence has level_set_by_adult
1385
- * (R157): absent from the evidence of an attempt.
1385
+ * The ID of an adult's correction of the module's level, whose evidence has level_set_by_adult:
1386
+ * absent from the evidence of an attempt.
1386
1387
  */
1387
1388
  readonly correction_id?: ID;
1388
1389
  /**
@@ -1570,8 +1571,8 @@ export type ProblemReportKind = "wrong" | "unclear" | "not_for_age" | "harmful"
1570
1571
  /**
1571
1572
  * ReadingVector is the type of reading-vector.schema.json.
1572
1573
  *
1573
- * A test vector of reading (section 7 of the text of the part): exports, unpacked, and what section
1574
- * 5 gives. A reader implements section 5 and gets exactly this.
1574
+ * A test vector of reading: exports, unpacked, and what the rules of reading an export give. A
1575
+ * reader implements those rules and gets exactly this.
1575
1576
  */
1576
1577
  export interface ReadingVector {
1577
1578
  /**
@@ -1619,7 +1620,7 @@ export type CaseRefusedBy = "schema" | "export.files" | "export.scope" | "export
1619
1620
  * Work is the type of work.schema.json.
1620
1621
  *
1621
1622
  * A stored work of a profile, works/<profile id>/<attempt id>.json, which app writes beside api.zip
1622
- * as GetWork gave it (section 4 of the text of the part; R151).
1623
+ * as GetWork gave it.
1623
1624
  */
1624
1625
  export interface Work {
1625
1626
  /**
@@ -1653,8 +1654,8 @@ export interface Work {
1653
1654
  */
1654
1655
  readonly submissions: readonly WorkSubmission[];
1655
1656
  /**
1656
- * The picture of the work: the PNG of the strokes the surface shows at the end, in base64 (RFC
1657
- * 4648, section 4).
1657
+ * The picture of the work: the PNG of the strokes the surface shows at the end, in base64 by the
1658
+ * standard alphabet of RFC 4648, not base64url.
1658
1659
  */
1659
1660
  readonly picture: string;
1660
1661
  }
@@ -2,12 +2,11 @@
2
2
 
3
3
  /**
4
4
  * The types of the module format, major version 0, generated from the schemas of version 0.4 in
5
- * format/schemas by tools/types (R72 and R73 in spec's docs/decisions.md): the same types as the Go
6
- * package formatv0, by the same names. The schemas decide what is valid: a type gives the shape of
7
- * a value alone, and code that reads a value from elsewhere checks it against its schema first. A
8
- * field the object always holds is required; any other is optional, among them each field that only
9
- * some branches of a schema give. The open view of each part is in open,
10
- * `@altnovatrail/spec/formatv0/open`.
5
+ * format/schemas by tools/types: the same types as the Go package formatv0, by the same names. The
6
+ * schemas decide what is valid: a type gives the shape of a value alone, and code that reads a
7
+ * value from elsewhere checks it against its schema first. A field the object always holds is
8
+ * required; any other is optional, among them each field that only some branches of a schema give.
9
+ * The open view of each part is in open, `@altnovatrail/spec/formatv0/open`.
11
10
  *
12
11
  * @packageDocumentation
13
12
  */
@@ -17,12 +16,12 @@
17
16
  /**
18
17
  * CanonicalView is the type of canonical-view.schema.json.
19
18
  *
20
- * The canonical view of a module, the server part of its package (section 25 of the format text):
21
- * each part of the module as its file gives it, a part that a module has many of as an object by
22
- * local ID, the tier of each skill, and the numbers of every instance of each template. module-kit
23
- * builds it from the module's folder by the format version that the manifest names, and so does
24
- * spec's CI for the vectors of packages; sim reads it by these types. No field of it is open: the
25
- * learner's app gets the open view of a part from the server, never the canonical view.
19
+ * The canonical view of a module, the server part of its package: each part of the module as its
20
+ * file gives it, a part that a module has many of as an object by local ID, the tier of each skill,
21
+ * and the numbers of every instance of each template. module-kit builds it from the module's folder
22
+ * by the format version that the manifest names, and so does spec's CI for the vectors of packages;
23
+ * sim reads it by these types. No field of it is open: the learner's app gets the open view of a
24
+ * part from the server, never the canonical view.
26
25
  */
27
26
  export interface CanonicalView {
28
27
  /**
@@ -35,8 +34,8 @@ export interface CanonicalView {
35
34
  */
36
35
  readonly skill_graph?: SkillGraph;
37
36
  /**
38
- * The tier of each skill of the skill graph, which section 12 computes from its prerequisites:
39
- * there when the module has a skill graph, and only then.
37
+ * The tier of each skill of the skill graph, which the rules of the skill graph compute from its
38
+ * prerequisites: there when the module has a skill graph, and only then.
40
39
  */
41
40
  readonly skill_tiers?: SkillTiers;
42
41
  /**
@@ -70,7 +69,8 @@ export interface CanonicalView {
70
69
  /**
71
70
  * SkillTiers is the type of canonical-view.schema.json#/$defs/skill_tiers.
72
71
  *
73
- * The tier of every skill of a skill graph, by the skill's local ID (section 12).
72
+ * The tier of every skill of a skill graph, by the skill's local ID, as the rules of the skill
73
+ * graph compute it.
74
74
  */
75
75
  export type SkillTiers = Readonly<Record<SkillID, number>>;
76
76
 
@@ -78,7 +78,7 @@ export type SkillTiers = Readonly<Record<SkillID, number>>;
78
78
  * Numbers is the type of canonical-view.schema.json#/$defs/numbers.
79
79
  *
80
80
  * The numbers of an instance of a template: every parameter, every derived number and every result
81
- * of the solver of the template, by its name (sections 23 and 24).
81
+ * of the solver of the template, by its name.
82
82
  */
83
83
  export type Numbers = Readonly<Record<TemplateName, number>>;
84
84
 
@@ -902,8 +902,8 @@ export type AnswerSlotBinding = "anywhere" | "sheet" | "zone" | "choice";
902
902
  /**
903
903
  * Check is the type of task.schema.json#/$defs/check.
904
904
  *
905
- * The check of an answer slot: its kind and the kind's parameters. Section 15 of the format text
906
- * says how each kind reads the value and gives its verdict.
905
+ * The check of an answer slot: its kind and the kind's parameters. The format's rules of checks say
906
+ * how each kind reads the value and gives its verdict.
907
907
  */
908
908
  export interface Check {
909
909
  /**
@@ -1144,8 +1144,8 @@ export interface Domain {
1144
1144
  /**
1145
1145
  * TemplateExpression is the type of task.schema.json#/$defs/template_expression.
1146
1146
  *
1147
- * An expression of the narrow subset of Starlark of section 23 of the format text: integers and
1148
- * names, + - * // %, comparisons, and, or and not.
1147
+ * An expression of the narrow subset of Starlark of the format's templates: integers and names, + -
1148
+ * * // %, comparisons, and, or and not.
1149
1149
  */
1150
1150
  export type TemplateExpression = string;
1151
1151
 
@@ -1382,10 +1382,10 @@ export interface DemoFill {
1382
1382
  * IndexVector is the type of index-vector.schema.json.
1383
1383
  *
1384
1384
  * A release of modules that a test vector of the module index gives, index.yaml beside the modules/
1385
- * it releases (sections 9 and 26 of the format text): the index of the release before it, the
1386
- * release's tag and its withdrawals, and either the index that the release builds or the rule of
1387
- * the index by which the build is refused. An implementation builds the package of each module and
1388
- * the index, and gets exactly these, whatever the order of keys.
1385
+ * it releases: the index of the release before it, the release's tag and its withdrawals, and
1386
+ * either the index that the release builds or the rule of the index by which the build is refused.
1387
+ * An implementation builds the package of each module and the index, and gets exactly these,
1388
+ * whatever the order of keys.
1389
1389
  */
1390
1390
  export interface IndexVector {
1391
1391
  /**
@@ -1426,13 +1426,13 @@ export type IndexVectorRefusal = "module-index.entries-kept" | "module-index.one
1426
1426
  /**
1427
1427
  * ModuleIndex is the type of module-index.schema.json.
1428
1428
  *
1429
- * The module index, module-index.json, a file of each release of modules (section 26 of the format
1430
- * text): every published version of every module, each by the digest of its package, with the
1431
- * release whose files hold it, the anchor skills it teaches and, when it has been withdrawn from
1432
- * publication, why. A release builds it from the index of the release before it, and the release
1433
- * workflow of .github signs it. Its members and those of an entry keep their places and meanings in
1434
- * every version of the format, so that the index carries the entries of every version; a reader of
1435
- * another version reads them by their places, not by this schema.
1429
+ * The module index, module-index.json, a file of each release of modules: every published version
1430
+ * of every module, each by the digest of its package, with the release whose files hold it, the
1431
+ * anchor skills it teaches and, when it has been withdrawn from publication, why. A release builds
1432
+ * it from the index of the release before it, and the release workflow of .github signs it. Its
1433
+ * members and those of an entry keep their places and meanings in every version of the format, so
1434
+ * that the index carries the entries of every version; a reader of another version reads them by
1435
+ * their places, not by this schema.
1436
1436
  */
1437
1437
  export interface ModuleIndex {
1438
1438
  /**
@@ -1459,8 +1459,8 @@ export interface Entry {
1459
1459
  */
1460
1460
  readonly module_format_version: ModuleFormatVersion;
1461
1461
  /**
1462
- * The digest of the version's package: the digest of the canonical text of its inventory (section
1463
- * 25).
1462
+ * The digest of the version's package: the digest of the canonical text of its inventory, as the
1463
+ * rules of packages take it.
1464
1464
  */
1465
1465
  readonly package_digest: Digest;
1466
1466
  /**
@@ -1509,10 +1509,10 @@ export type WithdrawalReason = "wrong_key" | "answer_leak" | "unsuitable_content
1509
1509
  /**
1510
1510
  * Withdrawals is the type of module-index.schema.json#/$defs/withdrawals.
1511
1511
  *
1512
- * The withdrawals of a release of modules, which the build of its index marks (section 26 of the
1513
- * format text): under each module's ID, under each version it withdraws, the reason of the
1514
- * withdrawal. modules keeps them in a file of its own, and a test vector of the index in its member
1515
- * withdrawals. A release that withdraws none has no withdrawals, rather than an empty object.
1512
+ * The withdrawals of a release of modules, which the build of its index marks: under each module's
1513
+ * ID, under each version it withdraws, the reason of the withdrawal. modules keeps them in a file
1514
+ * of its own, and a test vector of the index in its member withdrawals. A release that withdraws
1515
+ * none has no withdrawals, rather than an empty object.
1516
1516
  */
1517
1517
  export type Withdrawals = Readonly<Record<ModuleID, Readonly<Record<ModuleVersion, WithdrawalReason>>>>;
1518
1518
 
@@ -1528,10 +1528,10 @@ export type Digest = string;
1528
1528
  /**
1529
1529
  * Inventory is the type of inventory.schema.json.
1530
1530
  *
1531
- * The inventory of a module's package, inventory.json (section 25 of the format text): the module's
1532
- * format version, ID and version, and the digest and size of each of the package's two parts — the
1533
- * server part, which is the canonical view, and the device part, which a listing of its files
1534
- * names. The digest of the package is the digest of its inventory.
1531
+ * The inventory of a module's package, inventory.json: the module's format version, ID and version,
1532
+ * and the digest and size of each of the package's two parts — the server part, which is the
1533
+ * canonical view, and the device part, which a listing of its files names. The digest of the
1534
+ * package is the digest of its inventory.
1535
1535
  */
1536
1536
  export interface Inventory {
1537
1537
  /**
@@ -1601,8 +1601,8 @@ export interface DeviceListing {
1601
1601
  * LeakVector is the type of leak-vector.schema.json.
1602
1602
  *
1603
1603
  * A test vector of the leak check, vectors/leaks/<case>.yaml: a task, and texts that the learner
1604
- * might see, each with every key and leak phrase of the task that the leak check finds in it
1605
- * (section 20 of the format text). It describes no part of a module.
1604
+ * might see, each with every key and leak phrase of the task that the leak check finds in it. It
1605
+ * describes no part of a module.
1606
1606
  */
1607
1607
  export interface LeakVector {
1608
1608
  /**
@@ -1638,11 +1638,10 @@ export interface SearchedText {
1638
1638
  /**
1639
1639
  * PackageVector is the type of package-vector.schema.json.
1640
1640
  *
1641
- * The package that a test vector of packages gives, package.yaml beside the module/ it is of
1642
- * (sections 9 and 25 of the format text): the module's server part, the listing of its device part,
1643
- * its inventory and its digest. An implementation builds the package of module/ and gets exactly
1644
- * these, whatever the order of keys. The results of a solver are the vector's, in the instances of
1645
- * the server part.
1641
+ * The package that a test vector of packages gives, package.yaml beside the module/ it is of: the
1642
+ * module's server part, the listing of its device part, its inventory and its digest. An
1643
+ * implementation builds the package of module/ and gets exactly these, whatever the order of keys.
1644
+ * The results of a solver are the vector's, in the instances of the server part.
1646
1645
  */
1647
1646
  export interface PackageVector {
1648
1647
  /**
@@ -1668,10 +1667,9 @@ export interface PackageVector {
1668
1667
  /**
1669
1668
  * PageVector is the type of page-vector.schema.json.
1670
1669
  *
1671
- * A test vector of the workbook's page (sections 9 and 14 of the format text): the lines of a
1672
- * task's items, as the open view holds them, and either the page that the layout makes of them or
1673
- * the item at whose row it has no room. An implementation lays the page out by format/page.yaml and
1674
- * gets exactly these.
1670
+ * A test vector of the workbook's page: the lines of a task's items, as the open view holds them,
1671
+ * and either the page that the layout makes of them or the item at whose row it has no room. An
1672
+ * implementation lays the page out by format/page.yaml and gets exactly these.
1675
1673
  */
1676
1674
  export interface PageVector {
1677
1675
  /**
@@ -1798,10 +1796,9 @@ export interface PagePart {
1798
1796
  /**
1799
1797
  * Page is the type of page.schema.json.
1800
1798
  *
1801
- * The numbers and the table of widths of a workbook's page, format/page.yaml (section 14 of the
1802
- * format text): canvas lays every page out by them, and task.workbook-page holds every task on a
1803
- * workbook to them. Units are those of the page, and a width of a character is in whole hundredths
1804
- * of the type size.
1799
+ * The numbers and the table of widths of a workbook's page, format/page.yaml: canvas lays every
1800
+ * page out by them, and task.workbook-page holds every task on a workbook to them. Units are those
1801
+ * of the page, and a width of a character is in whole hundredths of the type size.
1805
1802
  */
1806
1803
  export interface Page {
1807
1804
  /**
@@ -2013,9 +2010,9 @@ export interface PageJoints {
2013
2010
  /**
2014
2011
  * RandomVector is the type of random-vector.schema.json.
2015
2012
  *
2016
- * A test vector of the generator (section 22 of the format text): the start of a stream — two
2017
- * words, and the seed and names of the place of randomness whose stream it is — and the functions
2018
- * called on the stream, in order, each with its arguments and the value it gives.
2013
+ * A test vector of the generator: the start of a stream — two words, and the seed and names of the
2014
+ * place of randomness whose stream it is — and the functions called on the stream, in order, each
2015
+ * with its arguments and the value it gives.
2019
2016
  */
2020
2017
  export interface RandomVector {
2021
2018
  /**
@@ -2181,11 +2178,11 @@ export interface PermutationDraw {
2181
2178
  /**
2182
2179
  * TemplateVector is the type of template-vector.schema.json.
2183
2180
  *
2184
- * A test vector of templates (sections 23 and 24 of the format text): a template, the number of its
2185
- * instances, the names that its solver gets, when it has one, and attempts, each with its seed, the
2186
- * numbers of the instance that the seed picks, that instance, and the digest of its open view. An
2187
- * implementation counts the instances, picks the instance of each seed, runs the solver on it,
2188
- * replaces the placeholders, and gets exactly these.
2181
+ * A test vector of templates: a template, the number of its instances, the names that its solver
2182
+ * gets, when it has one, and attempts, each with its seed, the numbers of the instance that the
2183
+ * seed picks, that instance, and the digest of its open view. An implementation counts the
2184
+ * instances, picks the instance of each seed, runs the solver on it, replaces the placeholders, and
2185
+ * gets exactly these.
2189
2186
  */
2190
2187
  export interface TemplateVector {
2191
2188
  /**
@@ -2234,7 +2231,8 @@ export interface Attempt {
2234
2231
  /**
2235
2232
  * The digest of the open view of the instance, as a sample of the eval protocol names the task it
2236
2233
  * answers: sha256: and the SHA-256 of the open view's canonical text, the instance's numbers in
2237
- * place (section 25 of the format text; contracts/README.md, section 11).
2234
+ * place, as the format's rules of packages take a digest and the sample file of
2235
+ * `contracts/README.md` names a task.
2238
2236
  */
2239
2237
  readonly open_view_digest: Digest;
2240
2238
  }
@@ -2244,9 +2242,8 @@ export interface Attempt {
2244
2242
  /**
2245
2243
  * TierVector is the type of tier-vector.schema.json.
2246
2244
  *
2247
- * A test vector of tiers (sections 12 and 25 of the format text): a skill graph and the tier of
2248
- * each of its skills. An implementation computes the tiers from the prerequisites and gets exactly
2249
- * these.
2245
+ * A test vector of tiers: a skill graph and the tier of each of its skills. An implementation
2246
+ * computes the tiers from the prerequisites and gets exactly these.
2250
2247
  */
2251
2248
  export interface TierVector {
2252
2249
  /**
@@ -2267,7 +2264,7 @@ export interface TierVector {
2267
2264
  * A test vector of a check kind's verdicts, vectors/verdicts/<kind>/<case>.yaml: an item of a task
2268
2265
  * whose answer slots are checked by that kind, and readings of it, each the value read in every
2269
2266
  * answer slot, with the verdict and the trap that each answer slot gets and the verdict that the
2270
- * item gets (section 15 of the format text). It describes no part of a module.
2267
+ * item gets. It describes no part of a module.
2271
2268
  */
2272
2269
  export interface VerdictVector {
2273
2270
  /**
@@ -2348,10 +2345,10 @@ export type SlotReadingReason = "blank" | "notation";
2348
2345
  * VersionVector is the type of version-vector.schema.json.
2349
2346
  *
2350
2347
  * What a test vector of versions of a module gives, version.yaml beside the new version in module/
2351
- * and the published versions in published/ (sections 9 and 27 of the format text): either the part
2352
- * of the version that the comparison of the new version with the newest published version finds, or
2353
- * the rule of versions by which the new version is refused. An implementation compares the new
2354
- * version with every published version and gets exactly this.
2348
+ * and the published versions in published/: either the part of the version that the comparison of
2349
+ * the new version with the newest published version finds, or the rule of versions by which the new
2350
+ * version is refused. An implementation compares the new version with every published version and
2351
+ * gets exactly this.
2355
2352
  */
2356
2353
  export interface VersionVector {
2357
2354
  /**
@@ -1,10 +1,10 @@
1
1
  // Code generated by tools/types from format/schemas; DO NOT EDIT.
2
2
 
3
3
  /**
4
- * The open view of each part of a module (format/README.md, section 6): the type of each struct the
5
- * open view of a part reaches, by the name it has in formatv0, with the fields marked x-open alone,
6
- * of version 0.4. An open view has no check, no template and no solver; a task's has its givens and
7
- * its unknown. Strings, integers and enumerations are formatv0's.
4
+ * The open view of each part of a module, as format/README.md defines it: the type of each struct
5
+ * the open view of a part reaches, by the name it has in formatv0, with the fields marked x-open
6
+ * alone, of version 0.4. An open view has no check, no template and no solver; a task's has its
7
+ * givens and its unknown. Strings, integers and enumerations are formatv0's.
8
8
  *
9
9
  * @packageDocumentation
10
10
  */
@@ -2,14 +2,14 @@
2
2
 
3
3
  /**
4
4
  * The types of the legal texts, version 3 of the part, generated from the schemas in legal/schemas
5
- * by tools/types (R72, R73 and R130 in spec's docs/decisions.md): the same types as the Go package
6
- * legalv3, by the same names — the passport legal/legal.yaml, with the texts, their versions and
7
- * the sets of texts of the samples page, and the vectors of reading. The words of a version are a
8
- * file of their own, texts/<id>/<n>.md, and those of its translations too, texts/<id>/<n>.<tag>.md,
9
- * which no type holds. A vector's passport is any JSON value, unknown, as a reader gets it. The
10
- * schemas decide what is valid: a type gives the shape of a value alone, and code that reads a
11
- * value from elsewhere checks it against its schema first, and then against the rules of reading
12
- * (legal/README.md, section 5). A field the object always holds is required; any other is optional.
5
+ * by tools/types: the same types as the Go package legalv3, by the same names — the passport
6
+ * legal/legal.yaml, with the texts, their versions and the sets of texts of the samples page, and
7
+ * the vectors of reading. The words of a version are a file of their own, texts/<id>/<n>.md, and
8
+ * those of its translations too, texts/<id>/<n>.<tag>.md, which no type holds. A vector's passport
9
+ * is any JSON value, unknown, as a reader gets it. The schemas decide what is valid: a type gives
10
+ * the shape of a value alone, and code that reads a value from elsewhere checks it against its
11
+ * schema first, and then against the rules of reading of legal/README.md. A field the object always
12
+ * holds is required; any other is optional.
13
13
  *
14
14
  * @packageDocumentation
15
15
  */
@@ -19,8 +19,8 @@
19
19
  /**
20
20
  * Legal is the type of legal.schema.json.
21
21
  *
22
- * The passport of the legal texts, legal/legal.yaml (section 4 of the legal text): the texts, their
23
- * versions with their status, date and summary, and the sets of texts of the samples page.
22
+ * The passport of the legal texts, legal/legal.yaml: the texts, their versions with their status,
23
+ * date and summary, and the sets of texts of the samples page.
24
24
  */
25
25
  export interface Legal {
26
26
  /**
@@ -228,9 +228,9 @@ export interface TextRef {
228
228
  /**
229
229
  * ReadingVector is the type of reading-vector.schema.json.
230
230
  *
231
- * A test vector of reading (section 7 of the legal text): parts, each read on a day and perhaps
232
- * with the part of the release before, and what section 5 gives. A reader implements section 5 and
233
- * gets exactly this.
231
+ * A test vector of reading: parts, each read on a day and perhaps with the part of the release
232
+ * before, and what the rules of reading the part give. A reader implements those rules and gets
233
+ * exactly this.
234
234
  */
235
235
  export interface ReadingVector {
236
236
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/spec",
3
- "version": "0.19.13",
3
+ "version": "0.19.15",
4
4
  "description": "The types of NovaTrail's module format for TypeScript, generated from its schemas: the parts of a module and their open views, the canonical view, the inventory, the module index and the test vectors. And the types of the element <novatrail-canvas>, the contract of the canvas and the app. And the types of the admission table, which says which AI provider may serve which age category. And the numbers and widths of the workbook's page and its test vectors, as JSON, by which a canvas lays the page out. And the types of the deployment configuration, the file /deployment.json that the app reads at its start. And the types of the legal texts' passport, which names each text, its versions and the sets of texts of the samples page. And the types of the table of the age of digital consent, which gives each country's age with the law that sets it. And the types of the files of an export, the file the owner of an account gets of a profile or of the account.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {