I3831 — A hook never starts a cold cargo build: a stale executable is the installed release, or the check is skipped and says so
Make bin/majordomus-cli, when run from a git hook (MAJORDOMUS_HOOK set) with a missing or stale executable, run the installed release the way `mcp` already does (mj_rust_installed, ADR 0172), and when there is none, skip with a line naming what was not checked, instead of building the crate.
PŘIPRAVENO vlna 0 · p1 · profil implementation · bezpečné souběžně
Připraveno. Všechny závislosti jsou hotové, takže majordomus plan start I3831 bude přijato.
Cíl
Make bin/majordomus-cli, when run from a git hook (MAJORDOMUS_HOOK set) with a missing or stale executable, run the installed release the way `mcp` already does (mj_rust_installed, ADR 0172), and when there is none, skip with a line naming what was not checked, instead of building the crate.
Proč
On 2026-10-20 the pre-commit worktree guard of feature/the-tailnet-finds-a-trusted-machine waited 60 s on the shared build directory's lock and then compiled every dependency cold in ~/.cargo/build-private, at a load of 77, for a check that takes a second.
Aktuální stav
bin/majordomus-cli builds whenever the executable is stale unless MAJORDOMUS_BIN or MAJORDOMUS_NO_BUILD is set; only `mcp` falls back to the installed release (use_installed_for_mcp).
Cílový stav
No hook starts cargo; a hook run with a stale executable names the release it used or the check it skipped.
Rozsah
- bin/majordomus-cli
- lib/rust_bin.sh
- .githooks
- docs/WORKTREES.md
Mimo rozsah
- Changing which checks CI requires
- Claude Code permission settings, which are the owner's to paste
Závislosti
Žádné. Tento úkol je kořenem grafu.
Kritéria přijetí
- With a stale executable and an installed release, a hook's guard runs the installed release and says so on stderr, and no cargo process starts
- With a stale executable and no installed release, the hook skips the check with a line naming it and exits as its gate class says
- Outside a hook the launcher builds as before
Validace
- bash test/run.sh 3831_a_hook_never_starts_a_cold_build 96_worktree_topology
- bin/majordomus plan validate
Požadované důkazy
- a_hook_never_starts_a_cold_build_test
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/I3831.yaml. Read it back with majordomus plan show I3831.