Skip to main content

pontonier

Pontonier is the shared core library for cross-model 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.9.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.9.0
File Size Uploaded
pontonier-0.9.0.tar.gz 509.0 kB Details

Built distribution (wheel)

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

Total release size: 659.2 kB

Release files / pontonier-0.9.0.tar.gz

Download URL pontonier-0.9.0.tar.gz
Size 509.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a3a25f2f2ba790a3f148a4738d6afb5eee965df3cd72996460e3ef1a5bbbf9bd
BLAKE2b-256 checksum
How to use checksums
ddd5fda5361099e61430447f49ccdb1c26e95e45734b0e22875981378f9b4599
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 Sep 5, 2026.

Transparency log

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

Download URL pontonier-0.9.0-py3-none-any.whl
Size 150.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf443a66f188107e4496c0fc83d8b4e5a97cd38642c3c1d8ce006c5ce600f9d4
BLAKE2b-256 checksum
How to use checksums
660f089ac3361118bebf1b772bf5d6537729364a8ee067e397e1fa9539d77bdd
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 Sep 5, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.1

2 release files

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

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