Skip to content

Document resilient Python installation and runtime recovery - #72

Merged
saintdle merged 2 commits into
mainfrom
fix/python-runtime-install-guidance
Nov 19, 2026
Merged

saintdle merged 2 commits into
mainfrom
fix/python-runtime-install-guidance

Conversation

@saintdle

@saintdle saintdle commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

Reduce installation failures caused by removal of the Python interpreter backing an isolated Agentflow environment.

  • Recommend uv-managed Python 3.11 for tagged installs and reinstalls.
  • Document pre-Python launcher failures, explicit release selection, launcher backup/rollback, and restricted use of --force.
  • Clarify interpreter lifetime for pipx and manual environments, and update agent-led setup guidance and documentation regression checks.

Validation

  • PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src python3 -m unittest discover -s tests -p 'test_*.py' - passed (1,137 tests, 2 skipped by the suite).
  • PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate.py - passed.
  • git diff --check - passed.
  • Manual macOS recovery using the released version with uv-managed Python 3.11: agentflow --version returned agentflow 0.0.12; agentflow doctor completed with core project checks healthy and pre-existing Herdr hook-version warnings.
  • Cross-platform installation and pipx recovery were not retested. GitHub CI has not yet been evaluated.

Compatibility

  • Documentation and documentation tests only; no runtime behavior, dependency requirement, configuration schema, or release-version changes.
  • Python 3.11 is an installation recommendation, not a change to the supported minimum Python version. Alternative installers remain supported.
  • Recovery guidance retains the original versioned environment and saves the launcher for rollback; project configuration and workflow state are not modified.
  • No third-party code or dependencies are added, and no licence or attribution changes are required.

saintdle and others added 2 commits November 5, 2026 16:11
Prefer uv-managed Python for isolated installs and document safe recovery when a launcher's base interpreter has been removed. Preserve alternative installers and cover the guidance with documentation tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@saintdle
saintdle merged commit 5f4a2e6 into main Nov 19, 2026
17 checks passed
@saintdle
saintdle deleted the fix/python-runtime-install-guidance branch November 19, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant