enhance(fleet-host): provide bare 'python' (python-is-python3) on agent hosts — 19x 'python: command not found'/24h #561
Reference in New Issue
Block a user
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
Agent hosts (web1) have
python3but no barepythonon PATH. Fleet agents — especially Pi/codex (gpt-5.5) sessions — frequently emitpython foo.py, which fails withpython: command not found(exit 127). The agent then burns a recovery turn re-issuing the command aspython3.Evidence
Nightly enhance harvest, 24h window ending 2026-06-20: ~19 occurrences across 13 distinct Pi sessions. Confirmed first-hand in transcript
019edc8a(Pi session) —python: command not foundexit 127 ×2.Caveat: the harvester cannot parse Pi/codex tool-calls precisely, so 19× is a coarse pointer, not an exact count — but the pattern is real (deep-read confirmed) and recurring across many sessions.
Why it matters (north star: wall-clock)
Each occurrence = one failed exec + one model recovery turn. Pure wall-clock waste, repeated dozens of times/day across the fleet. The fix is permanent and one-line.
Root cause
Modern distros ship
python3only;python-is-python3is not installed. The model's prior favors barepython, so guidance alone won't fully eliminate it — the host should satisfy the common invocation.Proposed fix
On agent hosts, install
python-is-python3(Debian/Ubuntu) or symlink/usr/bin/python -> python3. Add to the agent-host bootstrap/provisioning so new hosts inherit it.Routing note
Filed in
mosaicstack/stackas the framework/bootstrap owner (BOOTSTRAP.md covers host prereqs). If web1 host config is better owned byusc/infrastructure, please re-route — Mos to decide dispatch.Acceptance
python --versionresolves on agent hosts.python: command not founddrops to ~0 in the next nightly harvest window.Filed by the nightly fleet-enhancement pass (enhance/ae4). New learning captured to OpenBrain (29c3307d). Merge authority remains with Mos/coordinator (AGENTS.md rule 38).