ANIMA_RUNNER_EXEC_SLOTS_<NAME> is also parsed as an executor: the akh gateway advertises phantom slots-tecton / slots-thoth lanes #394
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
toasterson/Anima!394
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/wi-019fa7c9-anima-runner-exec-slots-name-is-also-par"
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?
Anima work item
019fa7c9-cc5c-72c3-8789-ea90253f3aec.Symptom
akh-gateway-thothboots with:There is no executor called
slots-tecton. Those two entries are theper-executor cap variables being consumed as executor definitions.
Cause
crates/anima-runner/src/config.rswalks the environment twice with twoprefixes, and the second is a prefix of the first:
k.strip_prefix("ANIMA_RUNNER_EXEC_")→ executor definitionsk.strip_prefix("ANIMA_RUNNER_EXEC_SLOTS_")→ per-executor capsANIMA_RUNNER_EXEC_SLOTS_TECTON=1matches both. The first loop strips theshorter prefix, gets
SLOTS_TECTON→slots-tecton, and hands the value"1"to
parse_executor, which happily accepts it as a whitespace-split Spawn argv(the command
1). So every cap variable mints a phantom executor whose spawncommand does not exist.
The caps themselves are unaffected — the second loop parses them correctly, and
the cap is enforced (verified 2026-07-28: tecton took exactly one slot). This is
purely the phantom lanes.
Why it matters
The gateway advertises those names to the server as real executors. Anything
that routes on an advertised executor name —
any_supports, reviewerselection, a companion or work item pinned by name, availability display — can
pick
slots-tectonand dispatch a session that can only fail at spawn. It alsomakes the runner's own startup line lie about what the lane is.
Ask
Order the loops so the longer prefix wins (check
ANIMA_RUNNER_EXEC_SLOTS_first and
continue), or matchANIMA_RUNNER_EXEC_with an explicit exclusionof the
SLOTS_infix. Add a regression test with both variables set for thesame executor asserting exactly one executor and one cap entry.
Introduced by WI 019fa2fc (commit
8ac37406). Found while lifting the 2026-07-27tecton capacity hold.
slots-tecton/slots-thothlanes 460fa04fe0460fa04fe0to1e9f61450d1e9f61450dtoa94290c66aa94290c66ato00d4fd617f00d4fd617ftoc7918df221c7918df221to01f1cef67fWIP: ANIMA_RUNNER_EXEC_SLOTS_<NAME> is also parsed as an executor: the akh gateway advertises phantomto ANIMA_RUNNER_EXEC_SLOTS_<NAME> is also parsed as an executor: the akh gateway advertises phantomslots-tecton/slots-thothlanesslots-tecton/slots-thothlanes