ansible-freshen check mode aborts on tap+formula migrations #229
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/devrel
role/eval
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/sysadmin
role/tpm
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure#229
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
coily exec ansible-freshen(default check mode,--check --diff) hard-fails whenever the declared baseline adds a new Homebrew tap and a formula from that tap in the same run.In check mode the tap task reports
changedbut does not actually tap, so the subsequenthomebrew : Ensure Homebrew formulae are presenttask can't resolve the formula and the play aborts:This surfaced during the coily org migration (
coilysiren/coily->coilyco-bridge/coily). The migration itself converged fine viaaction=apply tags=homebrew+ a manual reinstall/untap, but it means check mode is unusable as a preview for any future tap+formula migration. The whole point of the default check run is to print the plan without mutating, and right now it errors out instead.Suggested fix
In
ansible/roles/homebrew/tasks/main.yml, make the formulae assertion tolerant of a not-yet-present tap under check mode. Options:changedin this run (whenansible_check_mode).when:the formula items off it.Goal: in check mode, a tap+formula migration should print as "would tap + would install" rather than aborting the play.
Repro
Found while running the freshness sweep on kais-macbook-pro on 2026-06-05.
Closed in the 2026-08-26 backlog burn-down (coilyco-bridge/agentic-os-kai#901).
Verified as already landed: Closing: the check-mode abort is fixed. The tap task in ansible/roles/homebrew/tasks/main.yml carries
check_mode: falseso taps are really added under --check and the following tap-qualified formula lookup resolves, documented at docs/ansible-homebrew.md:8. Landed against the sibling report #243.This issue was open only because nothing closed it when the work shipped. If the verification is wrong, reopen it. The whole set is recoverable with
state:closed label:burndown-2026-08.