I3015 — serve and mcp discover the repository once, through the shared model
majordomus serve and majordomus mcp take the repository App::load discovered instead of discovering it again (commands/serve.rs and commands/mcp.rs today discover beside App::load), and env, web and guard read the same cell, so every entry point of the executable pays one discovery.
BLOKOVÁNO vlna 1 · p0 · profil implementation · bezpečné paralelně
Blocked. This issue cannot start until I3014 is done. The status is derived from that, not declared.
Cíl
majordomus serve and majordomus mcp take the repository App::load discovered instead of discovering it again (commands/serve.rs and commands/mcp.rs today discover beside App::load), and env, web and guard read the same cell, so every entry point of the executable pays one discovery.
Proč
The second slice of I1105. The 2026-10-20 survey counted two discoveries at the startup of serve, serve status and mcp, and only App::load's discovery is timed, so the others are never measured.
Aktuální stav
serve.rs and mcp.rs call Repository::discover and then App::load, which discovers again.
Cílový stav
One discovery at each entry point, measured where it happens.
Rozsah
- apps/majordomus-cli/src/commands/serve.rs
- apps/majordomus-cli/src/commands/mcp.rs
- apps/majordomus-cli/src/commands/env.rs
- apps/majordomus-cli/src/commands/web.rs
- apps/majordomus-cli/src/commands/guard.rs
- apps/majordomus-cli/src/app.rs
- apps/majordomus-cli/tests/hot_path.rs
Mimo rozsah
- The capabilities' Repository::open calls (I3016)
Závislosti
Co na tom čeká
- I1105BLOCKED The repository is discovered once, into one model
- I3017BLOCKED Discovering the repository outside the model is refused
Kritéria přijetí
- After serve's startup and after an MCP initialize, repository_discoveries is 1, asserted in tests/hot_path.rs
- The discovery phase is timed at every entry point that discovers
Validace
- cargo test --workspace --all-features
Požadované důkazy
- one_discovery_at_every_entry
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/I3015.yaml. Read it back with majordomus plan show I3015.