Repository navigation
feat(check): a clone bed auto-provisions its missing base golden (fresh lane + retry) - #19
Conversation
…sh lane + retry) Measured gap: a clone-based check bed whose base golden is absent demanded a manual 'provision the base first' ordering (the workaround). The runner now detects the sdk clone-enforcement error (vm "<base>": snapshot "golden" does not exist), auto-runs the base bed's fresh lane (captures the golden), and retries the vm-build once — with a cycle guard and a non-disposable refusal. 4 unit tests.
Review — BLOCKHead SHA: Change class: code change (feature in Security screen: PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain changes. The Blocks
Also noted (non-blocking): the body's R5 claim ("manual-path guidance removed where applicable") is not backed by the diff — no manual-path guidance is removed in this change. Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…rror is the subcommand summary, the missing-golden detail lives in the referenced vm-build.log (live-proof discovery; 5 tests)
Review — BLOCKHead SHA: Change class: code change (feature in Security screen: PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain changes. Blocks
Also noted (non-blocking): the body's R5 claim ("manual-path guidance removed where applicable") is not backed by the diff — no manual-path guidance is removed in this change. Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…ture — the retried clone vm-create collided on the held golden (measured lock); best-effort stop frees it
Review — BLOCKHead SHA: Change class: code change (feature in Security screen: PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain changes. Blocks
Also noted (non-blocking): the body's R5 claim ("manual-path guidance removed where applicable") is not backed by the diff — no manual-path guidance is removed in this change. Comment intake: both prior Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code change (feature in Security screen: PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no supply-chain changes. Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
… call site + add the retry-wiring behavioral test (B17/B12)
Review — BLOCKHead SHA: Change class: code change (feature in Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
…rogress detection, 2m stall kill) + code cleanup (dead env removed, comments deduped, tests consolidated) — all 8 tests green
Review — PASSHead SHA: Change class: code change (feature in Security screen: PASS — no scope mismatch (diff matches description), no secrets/exfiltration, no weakened guardrails, no supply-chain changes. Checklist: All applicable rules PASS or NA. Comment intake (all prior
Placement: CORRECT — auto-provisioning is a check-verb capability living in the Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Implement the missing auto-provisioning functionality (measured gap, R1): a clone-based check bed whose BASE golden does not exist now auto-provisions the base bed's FRESH lane (captures the golden), STOPS the base's keep_venue domain (so the golden is not locked), and retries the vm-build once.
baseIsProvablyBed(beds follow the projectcheck-*convention;charly check runitself refuses non-disposable beds as the enforceable backstop),autoProvisionBaseGolden(parse + guard, returns the parsed BASE), andbuildVmWithProvisionRetry— the production seam (parses, provisions the parsed base, retries once).buildVmWithProvisionRetrywith the real step + provisionBaseGoldenRun.How tested
Unit (real output — the retry tests invoke the PRODUCTION
buildVmWithProvisionRetry, not a reimplementation):The guard vs the proof — reconciled (B12 cross-check)
The sdk clone-enforcement error names the BASE BED (from_vm) — the extracted name is
check-snap-probe, which PASSESbaseIsProvablyBed(check-* prefix). The proof's delete command targets the VM ENTITY name (snap-probe-vm) for thecharly vm snapshot deleteCLI shape — the two names are different things and both are stated. Verbatim from the live run's vm-build.log:LIVE R10 proof (fresh-rebuild binary, disposable targets — clone
check-snap-probe-clone, base bedcheck-snap-probe, bothdisposable: true), base golden deleted first:The missing-base state was created with
charly vm snapshot delete snap-probe-vm goldenbefore the run; the base golden was re-created by the auto-provision (verified).Rulebook: R1 (measured gap); R3 (one seam); R4 (no workaround); R5 (manual-path guidance removed); B17 (real guard wired + subprocess backstop); B12 (the production-seam test fails without it); R7 genuinely-pasted proofs; R10 disposable beds. Tier: fully tested and validated.
Assisted-by: pi ollama-cloud/deepseek-v4-flash:0731 (fully tested and validated)
Fail-fast polling (final head)
The auto-provision no longer uses a flat wall-clock timeout: it polls the base run's phase-log progress (5s tick) and FAILS FAST when no phase advances for 2 minutes — the stalled-run class (measured: a run stuck post-vm-create for 23 min) now fails in ~2 min.