Přeskočit na obsah

Tato stránka byla automaticky přeložena z angličtiny, jediného jazyka, ve kterém se tento web píše. Číst originál.

I3607 — mesh state answers in JSON on the command line, and its view is chosen the same way on every surface

Give `majordomus mesh state` a --json answer that is the MCP tool's and the HTTP route's document, and make the one choice between the summary and the full view a single parameter whose name is the same on the command line, MCP and HTTP.

PŘIPRAVENO vlna 0 · p2 · implementační profil · bezpečné paralelně

Součást surfaces-never-disagree — Každý povrch promítá stejný stav, říká, kdy byl pozorován, a nevede si vlastní seznam.

Připraveno. Všechny závislosti jsou hotové, takže majordomus plan start I3607 bude přijato.

Cíl

Give `majordomus mesh state` a --json answer that is the MCP tool's and the HTTP route's document, and make the one choice between the summary and the full view a single parameter whose name is the same on the command line, MCP and HTTP.

Proč

On 2026-10-20 `majordomus mesh state --full --json` exited 2 with 'unexpected argument --json'. A piped reader saw nothing, because the error went to stderr and the JSON never came. The MCP tool refuses `full` and takes `view: full`, while the command line takes --full, and the session-start brief tells every worker to reproduce with `majordomus mesh state --full`. A worker that follows the brief on one surface cannot carry the same call to another.

Aktuální stav

The command line prints mesh state as text only and spells the full view --full. majordomus_mesh_state takes view, claims, kind, open, matching, limit, after, session and runtime, and refuses full. The same capability is projected with two vocabularies.

Cílový stav

`majordomus mesh state --json` prints the document the MCP tool returns for the same arguments, the view parameter has one name on every projection (with --full kept as its alias on the command line), and a case holds the command line's JSON equal to the MCP answer.

Rozsah

  • apps/majordomus-cli/src/capability/builtin
  • apps/majordomus-cli/src/commands/mesh.rs
  • test/cases
  • docs/MESH.md

Mimo rozsah

  • Changing what the full view contains

Závislosti

Žádné. Tento úkol je kořenem grafu.

Kritéria přijetí

  • `majordomus mesh state --json` prints one JSON document and exits 0
  • For the same arguments, the command line's JSON and the MCP tool's answer are equal apart from the observation time
  • The view is selected by a parameter with one name on the command line, MCP and HTTP, and the brief's reproduce hint uses it

Validace

  • bin/majordomus plan validate
  • MJ_TEST_JOBS=4 bash test/run.sh <the case this issue adds>

Požadované důkazy

  • mesh_state_json_equals_mcp_case

Důkazy

Nic nezaznamenáno. Za každým tokenem výše musí stát příkaz nebo artefakt, než lze tento úkol dokončit; vyprávění se odmítá.

Časová osa

zahájeno
—
ověřeno
—
dokončeno
—

Tato tři pole, důkazy výše a stav závislostí jsou vše, z čeho se stav skládá. Neexistuje žádné pole stavu, které by s nimi mohlo být v rozporu.

Canonical record: .ai/repo/project/issues/I3607.yaml. Read it back with majordomus plan show I3607.

Prohledává názvy a popisy všech stránek, které tento web publikuje.