Download scenario.schema.json from toecm/factoryrelay: direct link, hf CLI and curl.
- Browser
- Download file 3.89 kB
-
https://huggingface.co/datasets/toecm/factoryrelay/resolve/main/scenario.schema.json
- Command line
-
hf download hf://datasets/toecm/factoryrelay/scenario.schema.json
-
curl -L -o scenario.schema.json https://huggingface.co/datasets/toecm/factoryrelay/resolve/main/scenario.schema.json
3.89 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "Factory Relay authored scenario record", | |
| "description": "One fictional English instructional scenario, including both role briefs and its answer key. This is not a player-session or dialect-training record.", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["schema_version", "scenario_id", "sequence_number", "language", "content_origin", "title", "skill", "brief", "stations", "roles", "decision_options", "answer_key", "clarification_prompt", "provenance"], | |
| "properties": { | |
| "schema_version": { "const": "1.0.0" }, | |
| "scenario_id": { "type": "string", "pattern": "^[a-z][a-z0-9-]+$" }, | |
| "sequence_number": { "type": "integer", "minimum": 1, "maximum": 6 }, | |
| "language": { "const": "en" }, | |
| "content_origin": { "const": "authored-synthetic" }, | |
| "title": { "$ref": "#/$defs/nonemptyText" }, | |
| "skill": { "$ref": "#/$defs/nonemptyText" }, | |
| "brief": { "$ref": "#/$defs/nonemptyText" }, | |
| "stations": { | |
| "type": "array", "minItems": 1, | |
| "items": { | |
| "type": "object", "additionalProperties": false, | |
| "required": ["id", "name", "detail"], | |
| "properties": { | |
| "id": { "$ref": "#/$defs/nonemptyText" }, | |
| "name": { "$ref": "#/$defs/nonemptyText" }, | |
| "detail": { "$ref": "#/$defs/nonemptyText" } | |
| } | |
| } | |
| }, | |
| "roles": { | |
| "type": "object", "additionalProperties": false, | |
| "required": ["operator", "coordinator"], | |
| "properties": { | |
| "operator": { "$ref": "#/$defs/roleBrief" }, | |
| "coordinator": { "$ref": "#/$defs/roleBrief", "description": "The internal coordinator key is displayed as Maintenance in the game." } | |
| } | |
| }, | |
| "decision_options": { | |
| "type": "array", "minItems": 2, | |
| "items": { | |
| "type": "object", "additionalProperties": false, | |
| "required": ["id", "label"], | |
| "properties": { | |
| "id": { "$ref": "#/$defs/nonemptyText" }, | |
| "label": { "$ref": "#/$defs/nonemptyText" } | |
| } | |
| } | |
| }, | |
| "answer_key": { | |
| "description": "Scoring information; exclude it from future translation/assistant prompts and independent evaluation inputs.", | |
| "type": "object", "additionalProperties": false, | |
| "required": ["correct_option_id", "explanation"], | |
| "properties": { | |
| "correct_option_id": { "$ref": "#/$defs/nonemptyText" }, | |
| "explanation": { "$ref": "#/$defs/nonemptyText" } | |
| } | |
| }, | |
| "clarification_prompt": { "$ref": "#/$defs/nonemptyText" }, | |
| "provenance": { | |
| "type": "object", "additionalProperties": false, | |
| "required": ["source_module", "source_export", "source_scenario_id", "source_module_sha256", "source_text_normalization", "scenario_kind", "contains_player_data"], | |
| "properties": { | |
| "source_module": { "const": "src/factoryEngine.js" }, | |
| "source_export": { "const": "SCENARIOS" }, | |
| "source_scenario_id": { "type": "string", "pattern": "^[a-z][a-z0-9-]+$" }, | |
| "source_module_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$", "description": "SHA-256 of the UTF-8 source text after CRLF line endings are normalized to LF." }, | |
| "source_text_normalization": { "const": "utf8-crlf-to-lf" }, | |
| "scenario_kind": { "const": "fictional-instructional-exercise" }, | |
| "contains_player_data": { "const": false } | |
| } | |
| } | |
| }, | |
| "$defs": { | |
| "nonemptyText": { "type": "string", "minLength": 1, "pattern": "\\S" }, | |
| "roleBrief": { | |
| "type": "object", "additionalProperties": false, | |
| "required": ["title", "facts", "starter_message"], | |
| "properties": { | |
| "title": { "$ref": "#/$defs/nonemptyText" }, | |
| "facts": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/nonemptyText" } }, | |
| "starter_message": { "$ref": "#/$defs/nonemptyText" } | |
| } | |
| } | |
| } | |
| } | |