environment.explain
Původ snímku: pro každé pole, co o něm rozhodlo — konstanta z doby kompilace, soubor, příkaz nebo cache — který resolver je četl a jak moc lze důvěřovat. Zúžit na jedno pole nebo na prefix lze jménem.
Původ snímku: pro každé pole, co o něm rozhodlo — konstanta z doby kompilace, soubor, příkaz nebo cache — který resolver je četl a jak moc lze důvěřovat. Zúžit na jedno pole nebo na prefix lze jménem.
- query
- behaviorally_verified
- module environment
- #environment
- #provenance
- #introspection
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_environment_explain |
| HTTP | GET /api/v1/environment/explain operationId environment.explain |
| příkazová řádka | — |
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.
input · ExplainInput
| vlastnost | typ | povinné | popis |
|---|---|---|---|
| pole | string | null | ne | Pole v tečkovém tvaru (services.url, capabilities.objects); každé pole, když chybí. |
JSON Schema
{
"additionalProperties": false,
"description": "Which field's provenance to explain.",
"properties": {
"field": {
"description": "The field in dotted form (`services.url`, `capabilities.objects`); every field when\nabsent.",
"type": [
"string",
"null"
]
}
},
"title": "ExplainInput",
"type": "object"
}výstup · EnvironmentProvenance
| vlastnost | typ | povinné | popis |
|---|---|---|---|
| pole | array | ano | Jedna položka na pole, v pořadí, v jakém je resolver vytvořil. |
| rozlišení | reference | ano | Jak byl rozřešen snapshot za těmito položkami. |
JSON Schema
{
"$defs": {
"Confidence": {
"description": "How far a resolved value can be trusted.",
"oneOf": [
{
"const": "exact",
"description": "Read from its canonical source during this resolution.",
"type": "string"
},
{
"const": "cached",
"description": "Read from a cache whose fingerprint still matches its inputs.",
"type": "string"
},
{
"const": "unknown",
"description": "Not resolved.",
"type": "string"
}
]
},
"FieldSource": {
"description": "Where one field of the snapshot came from. This is what makes an inferred system\ndebuggable: every fact can name the thing that decided it, so \"why does it say that\"\nis answered by the tool rather than by reading its source.",
"properties": {
"confidence": {
"$ref": "#/$defs/Confidence",
"description": "How certain the value is."
},
"field": {
"description": "The field, in dotted form: `services.cockpit.url`, `vcs.branch`.",
"type": "string"
},
"resolver": {
"description": "The part of this executable that read it.",
"type": "string"
},
"source": {
"description": "What decided it: a file, a command, a compile-time constant, the cache.",
"type": "string"
},
"value": {
"description": "The value as it appears in the snapshot, rendered for a person; absent for a field\nthat resolved to nothing.",
"type": [
"string",
"null"
]
}
},
"required": [
"field",
"source",
"resolver",
"confidence"
],
"type": "object"
},
"Resolution": {
"description": "How completely a snapshot was resolved. Carried in the snapshot because a consumer must\nbe able to tell \"there is no server running\" from \"nobody looked\".",
"oneOf": [
{
"const": "fast",
"description": "Only what is cheap enough for a shell prompt; the rest from the cache.",
"type": "string"
},
{
"const": "full",
"description": "Everything, including the index. Writes the cache.",
"type": "string"
}
]
}
},
"description": "Where the values of one snapshot came from.",
"properties": {
"fields": {
"description": "One entry per field, in the order the resolver produced them.",
"items": {
"$ref": "#/$defs/FieldSource"
},
"type": "array"
},
"resolution": {
"$ref": "#/$defs/Resolution",
"description": "How the snapshot behind these entries was resolved."
}
},
"required": [
"resolution",
"fields"
],
"title": "EnvironmentProvenance",
"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.