Definition reference¶
Every field of a grading definition, as the JSON Schema publishes it. Omitted optional fields take the default shown. Each criterion's parameters are described per evaluator in the evaluator reference; rules JSON Schema cannot express are in DEFINITIONS.md.
GradingDefinition¶
One assignment's complete grading definition (version 2.0).
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
schema_version |
"2.0" |
yes | — | — | Definition format version. |
languages |
list of "python" or "java" or "node" or "cpp" or "c" |
yes | — | ≥ 1 items | Distinct languages a submission may use; with several, each submission names its language. |
criteria |
CriteriaConfig | yes | — | — | The weighted criteria tree. |
preparation |
Preparation | no | each field's default | — | Required files, fixtures and setup commands. |
feedback |
Feedback | no | each field's default | — | Feedback report policy. |
metadata |
map of string to any JSON value | no | {} |
— | Free-form JSON stored with the definition; never interpreted by grading. |
CriteriaConfig¶
Root configuration for grading criteria.
Location: criteria
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
base |
GroupConfig | yes | — | — | Criteria that make up the score (0-100). |
bonus |
CappedCategoryConfig or null | no | null |
— | Criteria whose score adds up to max_points. |
penalty |
CappedCategoryConfig or null | no | null |
— | Criteria whose shortfall subtracts up to max_points. |
metadata |
map of string to any JSON value | no | {} |
— | Free-form JSON stored with the definition; never interpreted by grading. |
GroupConfig¶
A group of criteria, such as the base category: its own tests, nested subjects, or both.
Location: criteria.base
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
tests |
list of TestConfig or null | no | null |
— | Criteria directly in this group; null when it has none. |
subjects |
list of SubjectConfig or null | no | null |
— | Subjects nested in this group; null when it has none. |
subjects_weight |
number or null | no | null |
≥ 0; ≤ 100 | Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise. |
metadata |
map of string to any JSON value | no | {} |
— | Free-form JSON stored with the definition; never interpreted by grading. |
TestConfig¶
One criterion: an evaluator invocation with its parameters.
Location: criteria.base.tests[], criteria.base.subjects[].tests[], criteria.bonus.tests[]
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
id |
string | yes | — | length ≥ 1; length ≤ 128; matches ^[A-Za-z0-9_.:-]+$ |
Stable identifier, unique in the definition; results, feedback links and comparisons use it. |
type |
string (one of 46 values) | yes | — | length ≥ 1 | Evaluator identifier (see the evaluator reference). |
name |
string | yes | — | length ≥ 1 | Display name; may repeat. |
parameters |
map of string to any JSON value | yes | — | — | The evaluator's parameters ({} when it has none); each evaluator documents its own. |
file |
string or null | no | null |
length ≥ 1 | Exact relative submission path to assess; null selects the evaluator's matching files. |
weight |
number | no | 100.0 |
≥ 0 | Weight relative to sibling criteria or subjects (any nonnegative ratio); all-zero siblings share equally. |
metadata |
map of string to any JSON value | no | {} |
— | Free-form JSON stored with the definition; never interpreted by grading. |
SubjectConfig¶
A named group of criteria inside a category or another subject.
Location: criteria.base.subjects[], criteria.bonus.subjects[]
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
name |
string | yes | — | length ≥ 1 | Display name of the subject; may repeat. |
weight |
number | no | 100.0 |
≥ 0 | Weight relative to sibling criteria or subjects (any nonnegative ratio); all-zero siblings share equally. |
tests |
list of TestConfig or null | no | null |
— | Criteria directly in this group; null when it has none. |
subjects |
list of SubjectConfig or null | no | null |
— | Subjects nested in this group; null when it has none. |
subjects_weight |
number or null | no | null |
≥ 0; ≤ 100 | Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise. |
metadata |
map of string to any JSON value | no | {} |
— | Free-form JSON stored with the definition; never interpreted by grading. |
CappedCategoryConfig¶
A bonus or penalty category: its criteria move the score by at most max_points.
Location: criteria.bonus, criteria.penalty
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
max_points |
number | yes | — | ≥ 0; ≤ 100 | The most points this category adds to (bonus) or subtracts from (penalty) the base score. |
tests |
list of TestConfig or null | no | null |
— | Criteria directly in this group; null when it has none. |
subjects |
list of SubjectConfig or null | no | null |
— | Subjects nested in this group; null when it has none. |
subjects_weight |
number or null | no | null |
≥ 0; ≤ 100 | Share (0-100) of this group's score taken from its subjects when it has both tests and subjects; its tests get the rest. Required for such mixed groups and rejected otherwise. |
metadata |
map of string to any JSON value | no | {} |
— | Free-form JSON stored with the definition; never interpreted by grading. |
Preparation¶
What must exist and run before any criterion is assessed.
Location: preparation
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
languages |
map of python or java or node or cpp or c to LanguagePreparation |
no | {} |
— | Preparation keyed by allowed language; only the submission's language is used. |
fixtures |
list of Fixture | no | [] |
— | Files staged for every language. |
LanguagePreparation¶
Preparation for one allowed language.
Location: preparation.languages.<language>
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
required_files |
list of string | no | [] |
— | Unique relative submission paths that must exist; a missing one fails with REQUIRED_FILE_MISSING before any sandbox is acquired. |
setup_commands |
list of SetupCommand | no | [] |
— | Steps run in order after fixtures are staged, for example compilation. A failing step stops grading with PREPARATION_FAILED. |
SetupCommand¶
One preparation step, run once before assessment in the selected language's sandbox.
Location: preparation.languages.<language>.setup_commands[]
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
name |
string | yes | — | length ≥ 1 | Label of the step, shown when it fails. |
command |
string | yes | — | length ≥ 1 | Executable and arguments, split with POSIX quoting and run without a shell. Standalone shell operators (&&, |, ;, >, ...) are rejected: use one setup command per step, and an explicit sh -c '...' command only for a real pipeline. |
private_output |
boolean | no | false |
— | Keep this step's output out of the student-facing failure explanation, for example when it compiles a hidden test harness. By default a failing step's output excerpt is shown. |
Fixture¶
A host-provided file staged into the sandbox before setup commands.
Location: preparation.fixtures[]
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
reference |
string | yes | — | length ≥ 1 | Logical relative reference resolved by the host's fixture provider (an object key on the shipped hosts). |
path |
string | yes | — | — | Unique relative destination under the fixture root (/tmp/app on the shipped hosts). |
read_only |
boolean | no | true |
— | Whether the staged file is read-only to the submission. |
Feedback¶
Whether and how a feedback report is written for a completed grade.
Location: feedback
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
enabled |
boolean | no | false |
— | Whether a feedback report is rendered; disabled feedback does no work. |
mode |
"default" |
no | "default" |
— | Report format; only the Markdown default exists. |
preferences |
FeedbackPreferences | no | each field's default | — | Report options. |
FeedbackPreferences¶
How the feedback report is written.
Location: feedback.preferences
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
general |
GeneralPreferences | no | each field's default | — | Options for every mode. |
default |
DefaultPreferences | no | each field's default | — | Options of the default mode. |
GeneralPreferences¶
Report options shared by every feedback mode.
Location: feedback.preferences.general
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
report_title |
string or null | no | null |
— | Report heading; null uses the localized default title. |
show_score |
boolean | no | true |
— | Whether the report shows the final score. |
show_passed_tests |
boolean | no | false |
— | Whether criteria that scored 100 are listed; by default only criteria below 100 are. |
add_report_summary |
boolean | no | true |
— | Whether the report starts with a score summary. |
online_content |
list of LearningResource | no | [] |
— | Learning resources listed at the end of the report. |
LearningResource¶
A link listed in the feedback report.
Location: feedback.preferences.general.online_content[]
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
url |
string | yes | — | length ≥ 1 | Address of the resource. |
description |
string | yes | — | — | Link text shown in the report. |
linked_tests |
list of string | no | [] |
— | Criterion IDs; the resource is shown only when one of them scored below 100. Empty shows it always. |
DefaultPreferences¶
Options of the default Markdown report.
Location: feedback.preferences.default
| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
category_headers |
map of base or bonus or penalty to string |
no | {} |
— | Section heading per category; a missing category uses its localized default heading. |