Files
Kill_LIFE/tools/mistral/schemas/safe_patch.schema.json
T
Clément SAILLANT ccbeb68937 feat(mistral): introduce Mistral integration for safe patch generation and indexing
- Added new tools for generating and applying safe patches using Mistral.
- Implemented a local embedding index for repository files to facilitate search functionality.
- Created a schema for validating patch JSON structure.
- Developed various prompts for different agent roles (Architect, PM, QA, etc.) to guide Mistral's output.
- Established a set of scope allowlists to ensure safe application of patches.
- Included documentation for agents and systems correspondence.
- Added requirements for Mistral dependencies in requirements-mistral.txt.
2026-02-19 04:40:13 +01:00

93 lines
1.9 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SafePatch",
"type": "object",
"additionalProperties": false,
"required": [
"summary",
"edits"
],
"properties": {
"summary": {
"type": "string",
"minLength": 1
},
"edits": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"path",
"action"
],
"properties": {
"path": {
"type": "string",
"minLength": 1
},
"action": {
"type": "string",
"enum": [
"create",
"update",
"delete"
]
},
"content": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"allOf": [
{
"if": {
"properties": {
"action": {
"const": "delete"
}
}
},
"then": {
"not": {
"required": [
"content"
]
}
}
},
{
"if": {
"properties": {
"action": {
"enum": [
"create",
"update"
]
}
}
},
"then": {
"required": [
"content"
]
}
}
]
}
},
"commands": {
"type": "array",
"items": {
"type": "string"
},
"description": "Suggested verification commands ONLY. Never executed automatically."
},
"notes": {
"type": "string"
}
}
}