8000 fix(minimal): end the audit read when the proxy does not answer · gominimal/minimal@7acccbd · GitHub
[go: up one dir, main page]

Skip to content

fix(minimal): end the audit read when the proxy does not answer

Minimal Arch / arch-review succeeded Nov 23, 2026 in 0s

PASS

Inputs. Re-review of #3701 at 7acccbd8, on arch 4f2eb87d, the same arch commit as the baseline CONDITIONS at a8a6a14b. since-conditions.json holds one condition, C1. since.diff is large because it carries a merge of origin/main (67181a79). I separated the merge from the PR's own commit. For mint.rs, box_audit.rs, cmd/mod.rs and tests.rs, the PR's own hunks against base 7345c842 are the same, line for line, as its hunks at a8a6a14b against their merge-base 9fd4fa1f. The merge changed no file in crates/bep, doctor.rs or the BEP spec. So the only PR edit since the baseline is 7acccbd8. That commit touches crates/minimal/src/mint.rs and crates/minimal/src/cmd/box_audit.rs.

Governs: architecture.md line 541 (min box audit: un-enrolled, the helper's log is read over the local UDS) and line 335 (principle 3: agents never hang).

Conditions:

  • C1: met. ControlClient::read_audit (mint.rs) now maps next_batch()'s Ok(None) to Err(MintError::Control(io::ErrorKind::TimedOut.into())). It no longer loops, and its # Errors doc says so. AuditStream::next_batch returns Ok(None) only on WouldBlock/TimedOut, and it is unchanged, as is follow_audit. audit_error in box_audit.rs has a new arm for TimedOut that ends the command with a refusal. The new tests mint::tests::an_audit_read_the_proxy_never_answers_times_out (connect_with_timeout, 100 ms, a listener that accepts and never answers) and box_audit_refuses_a_proxy_that_does_not_answer prove the rule that C1 cites. The timeout applies to each read, so a proxy that keeps sending records is not cut off, and a proxy that goes silent ends the read.

Ruling. The baseline found the placement and the read path conforming. The compare does not touch them, and C1 is met. Nothing is open.

Message check. The new refusal reuses the remedy text of the existing NotRunning arm ("Restart minvmd, which starts the proxy again."). crates/boxes/src/core/bep.rs uses the same text, and minvmd's cmd/run.rs starts bep serve on a production boot.

Not checked: that the new tests pass. A build is out of bounds here, and the PR's test table reports only the marker's tests.

Ruled at 7acccbd against gominimal/arch@4f2eb87d5d12 by claude-opus-5-5; arch_rulings 1618, job adb66cbb-3cc8-4e3c-90d5-b3352129df62.

0