distribution.status
Zda stroj, který tento projekt nikdy neviděl, ho může hned teď nainstalovat inzerovaným jednořádkovým příkazem, a když nemůže, který článek řetězce chybí a co ho změní. Odvozeno jen z modelu distribuce a záznamů releasů: nesahá do sítě, takže je stejně rychlé jako jakýkoli jiný lokální dotaz a odpovídá offline. Poskytované bajty dokládá smoke fáze release pipeline, zde se nehádají.
Zda stroj, který tento projekt nikdy neviděl, ho může hned teď nainstalovat inzerovaným jednořádkovým příkazem, a když nemůže, který článek řetězce chybí a co ho změní. Odvozeno jen z modelu distribuce a záznamů releasů: nesahá do sítě, takže je stejně rychlé jako jakýkoli jiný lokální dotaz a odpovídá offline. Poskytované bajty dokládá smoke fáze release pipeline, zde se nehádají.
- query
- behaviorally_verified
- module distribution
- #distribution
- #install
- #release
- #diagnostics
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_install_status |
| HTTP | GET /api/v1/distribution/status operationId distribution.status |
| příkazová řádka | majordomus distribution status |
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 · InstallabilityReport
Odpovídá na skutečnou otázku operátora — může stroj, který tento projekt nikdy neviděl, nainstalovat ho publikovaným příkazem? — jen z lokálního stavu. Nepoužívá žádný přístup k síti: repozitář může být offline a tohle stále odpoví, protože vše, co potřebuje, je model distribuce a záznamy release, které repozitář sám nese. Co nevidí, hlásí jako unknown, místo aby hádalo; veřejnou polovinu otázky zodpovídá smoke fáze release workflow, která instaluje z publikované URL na každém nativním runneru a je jediná, která dokazuje veřejnou cestu.
| vlastnost | typ | povinné | popis |
|---|---|---|---|
| kontroly | array | ano | Každá kontrola v pořadí, v jakém stojí za přečtení. |
| install_command | string | ano | Příkaz, který by člověk spustil, ať už právě funguje, nebo ne. |
| instalovatelné | boolean | ano | Pravda, když platí každá kontrola: stabilní release je zaznamenán a úplný. |
| installer_url | string | ano | Odkud se instalátor obsluhuje. |
| latest_url | string | ano | Kde se servíruje stabilní ukazatel. |
| local_version | string | ano | Verze, kterou by tento strom vydal. |
| published_artifacts | integer | ano | Kolik z nich stabilní release skutečně publikuje. |
| required_targets | integer | ano | Kolik cílů musí release publikovat, aby byl úplný. |
| stable_tag | string | null | ne | Tag, na který se rozřeší nepřipnutá instalace, když je zaznamenán stabilní release. |
| summary | string | ano | Jeden řádek pro člověka: jaký je stav, vlastními pojmy projektu. |
JSON Schema
{
"$defs": {
"CheckState": {
"description": "The state of one check in the installability report. Three states and no more: a check\neither holds, does not, or could not be made from what this process can see.",
"oneOf": [
{
"const": "ok",
"description": "The check holds.",
"type": "string"
},
{
"const": "failed",
"description": "The check does not hold, and the public installation is affected.",
"type": "string"
},
{
"const": "unknown",
"description": "The check could not be made here; it says nothing either way.",
"type": "string"
}
]
},
"InstallCheck": {
"description": "One check: what was asked, what was seen, and — when it does not hold — why, and the\ncommand that changes it. The `cause` and `next` fields exist so that a report is\nactionable without a second document; a check that fails without naming its remedy is\na diagnostic nobody can act on.",
"properties": {
"cause": {
"description": "Why it does not hold. Absent when it does.",
"type": [
"string",
"null"
]
},
"id": {
"description": "A short stable name: `model`, `version`, `targets`, `release`, `artifacts`, `metadata`.",
"type": "string"
},
"next": {
"description": "The command or action that would change it. Absent when there is nothing to do.",
"type": [
"string",
"null"
]
},
"observed": {
"description": "What was observed, in one line.",
"type": "string"
},
"state": {
"$ref": "#/$defs/CheckState",
"description": "Whether it holds."
}
},
"required": [
"id",
"state",
"observed"
],
"type": "object"
}
},
"description": "Whether the advertised one-line installation works right now, and if not, what is missing.\n\nThis answers the operator's actual question — *can a machine that has never seen this\nproject install it with the published command?* — from local state alone. It performs no\nnetwork access: a repository can be offline and this still answers, because everything it\nneeds is the distribution model and the release records the repository itself carries.\nWhat it cannot see it reports as `unknown` rather than guessing; the public half of the\nquestion is answered by the release workflow's smoke phase, which installs from the\npublished URL on every native runner and is the only thing that proves the public path.",
"properties": {
"checks": {
"description": "Every check, in the order they are worth reading.",
"items": {
"$ref": "#/$defs/InstallCheck"
},
"type": "array"
},
"install_command": {
"description": "The command a person would run, whether or not it currently works.",
"type": "string"
},
"installable": {
"description": "True when every check holds: a stable release is recorded and complete.",
"type": "boolean"
},
"installer_url": {
"description": "Where the installer is served.",
"type": "string"
},
"latest_url": {
"description": "Where the stable pointer is served.",
"type": "string"
},
"local_version": {
"description": "The version this tree would release.",
"type": "string"
},
"published_artifacts": {
"description": "How many of them the stable release actually publishes.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"required_targets": {
"description": "How many targets a release must publish for that release to be complete.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"stable_tag": {
"description": "The tag an unpinned installation resolves to, when a stable release is recorded.",
"type": [
"string",
"null"
]
},
"summary": {
"description": "One line for a person: what the state is, in the project's own terms.",
"type": "string"
}
},
"required": [
"installable",
"summary",
"local_version",
"required_targets",
"published_artifacts",
"install_command",
"installer_url",
"latest_url",
"checks"
],
"title": "InstallabilityReport",
"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.