CodeRabbit on PR 2876: _gate_closed matched the membership pattern as a prefix, so '"role-b" in group_names or true' closed a gate whose condition is true, and application_allowed() with a nested call argument (lookup('deployment').whitelist) was not recognised, so its includer was over-selected. _own_gates and _gate_closed now share one literal pattern, matched against the whole condition, that accepts one level of nested parentheses in the application_allowed arguments. Compound or deeper-nested conditions stay open, which keeps the static closure a superset.
🎯 Fix: 92 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 89
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The membership and own-gate patterns only matched a role name in single quotes, so a condition such as "role-b" in group_names went unrecognised: the include counted as ungated and a change to role-b would select every includer. Both patterns now share one quoted-role fragment that accepts either quote style. Tests compare a single- and a double-quoted gate in role_includes and close a double-quoted stage gate for a non-member. Addresses the CodeRabbit review on PR 2876.
🎯 Fix: 95 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeRabbit on PR 2876: included_roles expanded a templated include name such as web-app-{{ provider }} into every role its glob matches, so role_includes could select every wrapper of a pattern for an unrelated change. included_roles now takes a required globs flag: role_includes passes False and keeps literal names and literal loop items only, task_invocations passes True and keeps its glob expansion unchanged. New TestRoleIncludes test fails before the change with {sys-ctl-hlth-x, sys-ctl-hlth-y}. On the current roles/ tree role_includes (386 edges) and role_invocations are unchanged for all 293 roles and task_invocations for all 5330 tasks, verified by an independent skeptic against the base module.
🎯 Fix: 93 %
💥 Break: 2 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ruff format reflows the package batch, registry, plan and invocation code and tests and the Stalwart and Nextcloud tests, ansible-lint rewraps long Jinja lines in folded scalars of sys-service, Nextcloud and SeaweedFS, mbake restores the Makefile's final newline, and the Nextcloud OAuth test merges its nested with statements (SIM117).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A constructor task after the update role and the swarm auto-placement installs,
in one package-manager call, every package id of every role the host's groups
may run: meta dependencies, service edges and every role invocation readable
from tasks and handlers, conditions ignored. Ids that must stay with their role
(a conditional install, a repository added first, a need before update) carry
batch: false in meta/packages.yml and keep their task; roles reference shared
root ids with shared: true. 42 per-role install tasks go, and a lint keeps the
split: no batched id in a role task, none in a role run ahead of the batch.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>