fix(ci): refuse a mesh pin the row cannot take

A selection token may pin the mesh state as &vpn or &direct, but check_pins
had no arm for it. pinned_vpn_states intersects the pin with the states the
mode allows and only swarm meshes, so a token like @compose+clearnet&vpn left
an empty state list: the row produced no job at all and the run reported green
for a combination that never deployed. That is the outcome _reject exists to
prevent, and every sibling axis already refuses an impossible pin.

The new arm asks whether any candidate mode keeps a state rather than whether
the pin is reachable, so a held vpn axis still overrides the pin instead of
being refused. That behaviour has its own test and is unchanged.

An earlier check was removed with the compose-mesh revert of 2026-10-16
because it rested on meshable() and smallest_variant(), which that revert
deleted. This one reuses pinned_vpn_states, applies to the swarm-only axis the
revert restored, and covers both mesh states instead of only &vpn.

pin_vpn and vpn_mode now reach check_pins from all three callers. The run's
vpn axis reaches the validation job through call-orchestrator and
call-validation, which passed every other axis but this one. The priority
procedure and its skill state all eight axes a token carries, not six:
architecture and mesh were pinnable and, for architecture, already validated,
yet neither was documented.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-10-21 18:13:54 +02:00
1 parent dc19615d62
commit d9f8af9b16
11 files changed
+86 -23

No files matched your search

+2
View File
@@ -8,6 +8,7 @@
# INPUT_PRIORITY priority line of the run ('' = nothing to check)
# INPUT_MODE deploy modes the run draws from
# INPUT_TOR tor axis of the run
# INPUT_VPN WireGuard mesh axis of the run
# INPUT_DISTROS distro pool of the run ('' = every declared distro)
# INPUT_FILESYSTEM filesystem pool of the run ('' = every declared kind)
# INPUT_ARCHITECTURES architecture pool of the run ('' = amd64 and arm64)
@@ -27,6 +28,7 @@ source scripts/meta/env/load.sh
--priority "${INPUT_PRIORITY:-}" \
--modes "${INPUT_MODE:-auto}" \
--tor "${INPUT_TOR:-auto}" \
--vpn "${INPUT_VPN:-auto}" \
--distros "${INPUT_DISTROS:-}" \
--filesystem "${INPUT_FILESYSTEM:-}" \
--architectures "${INPUT_ARCHITECTURES:-}" \