Repository navigation
Packaging Releases and Upgrades
Applies to: Agent PBX 2.2.x Last reviewed: 2026-10-10
Agent PBX publishes a Python wheel and source distribution through PyPI Trusted Publishing. GitHub Releases carry the checksummed Linux wheelhouse, installer, dependency manifest, and SPDX SBOM. TestPyPI and PyPI are separate package indexes with separate project registration and Trusted Publisher configuration; their project names should match the package identity even though their registrations and credentials do not.
scripts/test_full.sh
python -m pytest -q tests/test_release_packaging.py tests/test_release_validation.py
python scripts/check_docs.py
git diff --checkBuild and inspect distributions without publishing:
python -m build --sdist --wheel --outdir dist/pypi
python -m twine check --strict dist/pypi/*Version, tag, changelog heading, release document, archive metadata, and GitHub Release must agree. Published package-index files are immutable; a defective release is yanked and replaced with a new patch version rather than deleted and reused.
agent-pbx mcp start and agent-pbx mcp restart inspect the database in
read-only mode before changing the running service. An older, newer, corrupt,
or unreadable schema sets start_blocked=true in agent-pbx mcp status and
returns exact migration commands. A blocked restart does not stop the currently
healthy daemon, rotate its log, write new process metadata, or spawn a partial
replacement.
Create and retain a reviewable backup before stopping the daemon:
agent-pbx doctor
agent-pbx migrate dry-run
agent-pbx migrate backup --retention-days 7
agent-pbx mcp stop
agent-pbx migrate apply --retention-days 7
agent-pbx migrate verify
agent-pbx mcp start
agent-pbx doctorStarred Agents, root Operators, active forks, session mappings, and rollback evidence are preserved by the migration contract. Backup retention is a policy, not an automatic deletion grant: preview and explicitly confirm pruning after the reviewed retention period.
The repository README is the package-index long description, so it uses
absolute public image URLs and static architecture media. Mermaid source stays
versioned under docs/diagrams. Wiki source stays under docs/wiki and is
published only after link, command, public-data, and rendered-page review.
Create the review artifact without publishing:
agent-pbx wiki check --source docs/wiki
agent-pbx wiki stage --source docs/wiki --output artifacts/wiki-stage \
--revision "$(git rev-parse HEAD)"Review the generated pages, sidebar, manifest, checksums, deterministic archive,
and stage_digest. Publication requires that exact digest and an explicit
.wiki.git remote:
agent-pbx wiki publish \
--stage artifacts/wiki-stage \
--remote git@github.com:owner/agent-pbx.wiki.git \
--confirm '<reviewed-stage-digest>'The publisher updates only managed page names and preserves unknown remote
pages. It follows the remote wiki's advertised HEAD branch by default, so a
Gitea main wiki and a GitHub master wiki remain visible without a host-
specific default. Package publication never publishes the wiki implicitly.
See the complete release procedure, installation and rollback guide, and test qualification.
- Agent PBX Home
- Getting Started
- Concepts and Architecture
- TUI and Keymap
- Agents Operators and Runtimes
- Runtime and Tmux Operations
- Models Profiles and Codex
- WorkerBee Integration
- Joplin Notes
- Security and Remote Access
- Troubleshooting and Recovery
- Packaging Releases and Upgrades
- Interactive Browser Demo