artifact-grader-audit / schema-public_task.json
hashmortar's picture
Publish Artifact Grader Audit v0.1 dataset
53d6966 verified
Raw History Blame Contribute Delete
5.82 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifact-grader-audit.local/schemas/public_task.schema.json",
"title": "Public Task",
"type": "object",
"properties": {
"schema_version": {
"type": "string",
"enum": [
"0.1"
]
},
"task_id": {
"type": "string",
"pattern": "^t_[a-f0-9]{16}$"
},
"request": {
"type": "string",
"minLength": 1
},
"public_task_spec": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"domain": {
"type": "string",
"minLength": 1
},
"operation": {
"type": "string",
"enum": [
"lookup",
"sum",
"difference",
"ratio",
"product",
"mean",
"min",
"max",
"count",
"range",
"weighted_mean",
"percentage_change",
"median"
]
},
"input_keys": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
"scale": {
"type": "string",
"minLength": 1
},
"unit": {
"type": "string",
"minLength": 1
},
"absolute_tolerance": {
"type": "string",
"minLength": 1
},
"relative_tolerance": {
"type": "string",
"minLength": 1
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"value": {
"type": "string",
"minLength": 1
},
"file": {
"type": "string",
"minLength": 1
},
"sheet": {
"type": "string",
"minLength": 1
},
"cell": {
"type": "string",
"pattern": "^[A-Z]+[1-9][0-9]*$"
},
"source_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"key",
"value",
"file",
"sheet",
"cell",
"source_sha256"
],
"additionalProperties": false
},
"minItems": 1
},
"preservation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"value": {
"type": "string"
}
},
"required": [
"key",
"value"
],
"additionalProperties": false
},
"minItems": 0
},
"outputs": {
"type": "object",
"properties": {
"calculation": {
"const": "calculation.csv"
},
"evidence": {
"const": "evidence.csv"
},
"report": {
"const": "report.md"
},
"preserved": {
"const": "preserved.csv"
},
"workbook": {
"type": "object",
"properties": {
"file": {
"const": "workbook.xlsx"
},
"inputs_sheet": {
"type": "string",
"minLength": 1
},
"key_column": {
"type": "string",
"minLength": 1
},
"value_column": {
"type": "string",
"minLength": 1
},
"source_column": {
"type": "string",
"minLength": 1
},
"first_input_row": {
"type": "integer",
"minimum": 1
},
"summary_sheet": {
"type": "string",
"minLength": 1
},
"result_cell": {
"type": "string",
"minLength": 1
},
"unit_cell": {
"type": "string",
"minLength": 1
}
},
"required": [
"file",
"inputs_sheet",
"key_column",
"value_column",
"source_column",
"first_input_row",
"summary_sheet",
"result_cell",
"unit_cell"
],
"additionalProperties": false
}
},
"required": [
"calculation",
"evidence",
"report",
"preserved"
],
"additionalProperties": false
}
},
"required": [
"title",
"domain",
"operation",
"input_keys",
"scale",
"unit",
"absolute_tolerance",
"relative_tolerance",
"evidence",
"preservation",
"outputs"
],
"additionalProperties": false
}
},
"required": [
"schema_version",
"task_id",
"request",
"public_task_spec"
],
"additionalProperties": false
}