mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
updater's TestWriteMany (86e7c844f3) looked up the persist, mirror and hand-over tasks at the top level of write_many.yml and evaluated only each task's own `when`. The merge (c9e7f950d9) moved those three tasks into store-i18n's change-gated block ("💾 Write the token store when the merge changed it", `when: sys_token_store_users_merged != sys_token_store_users`) and switched the mirror to IS_SWARM_MODE, so the lookups raised StopIteration. The test now walks into block/rescue/always, hands a block's `when` down to its children and ANDs it with a task's own condition (a task without any condition counts as true, as in Ansible), renders with IS_SWARM_MODE, and counts the re-render inside blocks too. The assertions are unchanged; with the block's `when` removed from a copy of write_many.yml, "an unchanged store skips the write and the re-render" fails again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>