Clarify prompt boundaries and enforce repair decisions

This commit is contained in:
2026-11-15 02:41:32 +00:00
parent e183708021
commit c4ccd7897e
13 changed files with 111 additions and 67 deletions

View File

@@ -3,47 +3,71 @@
"additionalProperties": false,
"required": [
"proposal_ref",
"action",
"correction"
"decision"
],
"properties": {
"proposal_ref": {
"type": "integer",
"minimum": 1
},
"action": {
"type": "string",
"enum": [
"revise",
"withdraw"
]
},
"correction": {
"decision": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"original_text",
"corrected_text"
"action",
"correction"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"original_text": {
"action": {
"type": "string",
"minLength": 1
"enum": [
"revise"
]
},
"corrected_text": {
"type": "string"
"correction": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"original_text",
"corrected_text"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"original_text": {
"type": "string",
"minLength": 1
},
"corrected_text": {
"type": "string"
}
}
}
}
},
{
"type": "null"
"type": "object",
"additionalProperties": false,
"required": [
"action",
"correction"
],
"properties": {
"action": {
"type": "string",
"enum": [
"withdraw"
]
},
"correction": {
"type": "null"
}
}
}
]
}