intents.validate
Každý nález nad záměry: záměr nejmenující žádný milník nebo žádné kritérium, milník, který se nerozliší, kritérium bez odkazu na důkazy nebo s odkazem na něco, co tento repozitář nedrží, governance, která se nerozliší, nástupce, který není záměr, název souboru, který se neshoduje s jeho id — každé selhání — a milník, kterému neslouží žádný záměr, varování.
Každý nález nad záměry: záměr nejmenující žádný milník nebo žádné kritérium, milník, který se nerozliší, kritérium bez odkazu na důkazy nebo s odkazem na něco, co tento repozitář nedrží, governance, která se nerozliší, nástupce, který není záměr, název souboru, který se neshoduje s jeho id — každé selhání — a milník, kterému neslouží žádný záměr, varování.
- query
- behaviorally_verified
- module intents
- #intent
- #project
- #validation
Zpřístupnění
Kde je tato jedna definice dosažitelná. Absence je explicitní: povrch, který není uveden, ji nenese.
| povrch | jako |
|---|---|
| MCP | nástroj majordomus_intent_validate |
| HTTP | GET /api/v1/intents/validate operationId intents.validate |
| příkazová řádka | majordomus intent validate |
Schémata
Kanonický vstup a výstup z typů Rustu; schéma nástroje MCP a parametry a odpovědi OpenAPI se odvozují z nich.
vstup · Prázdné
Žádné vlastnosti: schopnost nebere žádný vstup.
JSON Schema
{
"additionalProperties": false,
"description": "No input.",
"title": "Empty",
"type": "object"
}výstup · IntentValidation
use majordomus_cli::capability::builtin::intents::IntentValidation;
let v = IntentValidation {
valid: true,
intents: 2,
failures: 0,
warnings: 20,
findings: vec![],
};
// twenty warnings and no failure is a valid model
assert!(v.valid);| vlastnost | typ | povinné | popis |
|---|---|---|---|
| selhání | integer | ano | Kolik nálezů jsou selhání. |
| zjištění | array | ano | Každý nález. |
| intenty | integer | ano | Kolik záměrů bylo zkoumáno. |
| platné | boolean | ano | Pravda, když žádný nález není selhání. Varování ji neučiní nepravdou. |
| varování | integer | ano | Kolik zjištění jsou varování. |
JSON Schema
{
"$defs": {
"IntentFinding": {
"description": "One validation finding: its level, a stable code a reader greps for, the intent or milestone\nit is about, one line of what is wrong, and the command that shows it again.\n\n```\nuse majordomus_cli::intent::{IntentFinding, FAIL};\nlet f = IntentFinding {\n level: FAIL.into(),\n code: \"unknown_milestone\".into(),\n subject: \"intent-lifecycle\".into(),\n message: \"`no-such` is not a milestone\".into(),\n reproduce: \"majordomus intent validate\".into(),\n};\nassert_eq!(f.level, \"FAIL\");\nassert_eq!(f.reproduce, \"majordomus intent validate\");\n```",
"properties": {
"code": {
"description": "The stable code a reader greps for.",
"type": "string"
},
"level": {
"description": "`FAIL` or `WARN`. A failure means the intent model is invalid.",
"type": "string"
},
"message": {
"description": "What is wrong, in one line.",
"type": "string"
},
"reproduce": {
"description": "The command that shows it again.",
"type": "string"
},
"subject": {
"description": "The intent or milestone the finding is about.",
"type": "string"
}
},
"required": [
"level",
"code",
"subject",
"message",
"reproduce"
],
"type": "object"
}
},
"description": "What the intent model refuses: whether it is valid, how many intents were examined, and\nevery finding with its level. Warnings are reported and do not make it invalid.\n\n```\nuse majordomus_cli::capability::builtin::intents::IntentValidation;\nlet v = IntentValidation {\n valid: true,\n intents: 2,\n failures: 0,\n warnings: 20,\n findings: vec![],\n};\n// twenty warnings and no failure is a valid model\nassert!(v.valid);\n```",
"properties": {
"failures": {
"description": "How many findings are failures.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"findings": {
"description": "Every finding.",
"items": {
"$ref": "#/$defs/IntentFinding"
},
"type": "array"
},
"intents": {
"description": "How many intents were examined.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"valid": {
"description": "True when no finding is a failure. Warnings do not make it false.",
"type": "boolean"
},
"warnings": {
"description": "How many findings are warnings.",
"format": "uint",
"minimum": 0,
"type": "integer"
}
},
"required": [
"valid",
"intents",
"failures",
"warnings",
"findings"
],
"title": "IntentValidation",
"type": "object"
}Politiky
- benchmark
- povinné — cíl na každém transportu, který expozice deklaruje; případy jsou ty ze vstupního typu
- cache
- vypnuto — každé volání spustí handler
Cíle benchmarku
Odvozeno z registru pro tento repozitář: jeden požadavek na transport a případy, které poskytuje typ vstupu. Celá matice je na stránce měření výkonu.