Skip to main content

pontonier

Pontonier is the shared core library for agent-bridge MCP servers. An agent bridge lets one agent harness call an agent that runs on a different model. Three bridges use this library:

A pontonier is the engineer who builds pontoon bridges: pontonier is not itself a bridge — it is what the bridges are built from.

What is in the box

pontonier.core — backend-agnostic machinery, extracted from the bridges' _core packages:

Module Purpose
jobs Disk-backed, daemonless async job store
worktree Throwaway git worktrees for delegated work
gitdiff Bounded, redacted git diff gathering
redaction Best-effort secret redaction for diffs and prose
runtime Subprocess execution with bounded streams and cleanup
gitproc Hardened git subprocess helpers
streamcap Bounded stream capture
idempotency On-disk idempotency-key index
workspace MCP-root workspace resolution
jsoncache Small JSON file cache

Rule: pontonier.core never imports from the rest of the package. The gate enforces this with import-linter; src/pontonier/core/__init__.py says why.

pontonier.conventions — the shared vocabulary bridges are built from: error taxonomy + repair rules (envelope), host-parameterized prompt framing (prompts), effect-parameterized tool annotations (annotations), CLI --help feature detection (preflight), and the surface-fingerprint invariant (fingerprint). Wire serialization stays in each bridge.

pontonier.backend — FROZEN (CONTRACT_API_VERSION = 1): the BackendContract static-facts dataclass, the AgentBackend staged run lifecycle (validate_request → prepare → finalize/classify_failure), and a shared failure classifier with fixed precedence. What the freeze permits is stated once, in src/pontonier/backend/__init__.py — read it before changing anything in that package.

pontonier.testing — importable, framework-agnostic test kit: surface honesty (forbidden-phrase scanning against the built wire), adapter and contract conformance, and sync/async tool-pair parity. Checks return violation lists; wire them into any harness.

Development

This project uses uv. One command runs the whole gate — the same one CI runs:

uv sync
./scripts/check.sh

Setup, the individual gate steps, and the commit format are in CONTRIBUTING.md. Norms and prohibitions for AI agents working in this repository are in AGENTS.md. Releases: docs/releasing.md.

Metadata

Release files for pontonier 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pontonier 0.6.0
File Size Uploaded
pontonier-0.6.0.tar.gz 487.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pontonier 0.6.0
File Interpreter ABI Platform
pontonier-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 633.1 kB

Release files / pontonier-0.6.0.tar.gz

Download URL pontonier-0.6.0.tar.gz
Size 487.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c5a7359846162d4a0bc167a486c63e3685a0bb128c0f95565a34d8c5954607b0
BLAKE2b-256 checksum
How to use checksums
aa582d4c53cf10195b1fbc854b5c6caeeeac460ce7a0257d33b74d43504df97e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

Release files / pontonier-0.6.0-py3-none-any.whl

Download URL pontonier-0.6.0-py3-none-any.whl
Size 145.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b29a6459e719d6f714e56315fe53f30edacbfe61aaab5279153d938370d6db2
BLAKE2b-256 checksum
How to use checksums
c8409b62494c416f39048da2bcacd5fff9ed6d940384e455a6c390f8099389ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

This release

0.6.0 This release

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page