{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://slow-powers.dev/schemas/guard-denials.schema.json",
"title": "Guard Denial Report",
"description": "Output collected during detect-stray-writes from each guarded task environment. Records every blocked tool call because each denial may alter eval behavior. Lives at <workspace>/iteration-N/guard-denials.json.",
"type": "object",
"required": ["generated", "iteration", "total_denials", "tasks"],
"additionalProperties": false,
"properties": {
"generated": { "type": "string", "description": "ISO timestamp" },
"iteration": { "type": "integer", "minimum": 1 },
"total_denials": { "type": "integer", "minimum": 0 },
"tasks": {
"type": "array",
"description": "One entry per (eval, condition, optional run index) with at least one guard denial.",
"items": {
"type": "object",
"required": [
"eval_id",
"condition",
"denial_count",
"denials"
],
"additionalProperties": false,
"properties": {
"eval_id": { "type": "string" },
"condition": { "type": "string" },
"run_index": {
"type": "integer",
"minimum": 1,
"description": "1-based run index within the (eval, condition) cell; absent for single-run cells."
},
"denial_count": { "type": "integer", "minimum": 1 },
"denials": {
"type": "array",
"minItems": 1,
"items": { "$ref": "#/definitions/denial" }
}
}
}
}
},
"definitions": {
"denial": {
"type": "object",
"required": [
"timestamp",
"harness",
"tool",
"reason",
"resolved_targets",
"input_keys"
],
"additionalProperties": false,
"properties": {
"timestamp": { "type": "string", "description": "ISO timestamp" },
"harness": { "type": "string" },
"tool": { "type": "string" },
"reason": { "type": "string" },
"resolved_targets": {
"type": "array",
"items": { "type": "string" }
},
"input_keys": {
"type": "array",
"uniqueItems": true,
"items": { "type": "string" }
}
}
}
}
}