Skip to main content

APatch Studio OSS

APatch Studio OSS is the local workspace for contract-driven work with AI agents.

Most agent sessions begin as requests in natural language: “read the specification,” “write the tests,” “do not change them,” “implement the feature.” Studio turns that fragile conversation into an explicit local contract that connects:

  • the human intent and selected scope;
  • the exact RFP, SPEC and requirement being executed;
  • the agent run and every governed mutation;
  • verification results, recovery checkpoints and signed evidence;
  • the delivery decision and a factual time draft.

The result is not merely “AI generated code.” It is work whose mandate, changes, tests and proof remain inspectable after the chat session ends.

Studio is useful without an account, subscription or network connection. When the owner chooses to connect it to TrustChain Cowork, the same local workspace can receive signed assignments, require explicit local acceptance, bind them to an existing SPEC, run APatch locally and return only authorized, content-safe evidence. Source code, diffs, prompts, credentials and private keys stay on the user's machine unless the user separately publishes them through Git.

Install

For normal use, install the published Studio in its own Python 3.11+ environment. It installs the compatible public APatch Core automatically; no separate Core checkout, account or Node.js installation is needed.

python3 -m venv ~/.venvs/apatch-studio
source ~/.venvs/apatch-studio/bin/activate
python -m pip install apatch-studio
apatch-studio serve --workspace /path/to/your/git/repository

Studio opens a loopback-only browser interface. Reactivate the same environment next time, or run ~/.venvs/apatch-studio/bin/apatch-studio directly. The Studio package and Core package list the published versions. The development branch can be newer. To run or test a checkout, use the source installation instructions.

What is included

  • local governed changes and exact SPEC requirement execution;
  • Codex and Claude Code runner supervision;
  • interruption recovery, retry and rollback;
  • local review, delivery packs and owner decisions;
  • signed evidence, WorkAssets, Avatar evidence export and factual time drafts;
  • an opt-in signed Inbox and APatch governed-work round trip with Cowork;
  • workspace, policy and runtime diagnostics.

What is not included

The public distribution contains no organization control plane, membership or entitlement service, fleet management, hosted database, cloud source storage or remote arbitrary-execution endpoint. Those collaboration capabilities belong to TrustChain Cowork and its hosted services. Their absence never disables local work.

Documentation

Security

Please report security issues privately through the repository's GitHub Security Advisory flow. Do not open a public issue containing credentials, private keys, source code or personal data.

License

MIT. See LICENSE.

Service maintenance 0.1.7 (20 October 2026)

Preserves the installed 0.1.6 result-delivery journal and routes, and adds guarded exact-contract import with an explicitly configured public trust document (--exact-contract-trust-file). Import never authorizes execution. Without an enrolled server binding and matching public pins, this channel is unavailable. The existing local service uses APatch 0.8.54; this source branch does not claim PyPI publication or a completed production exact-contract scenario.

Packaging now rebuilds the Python package from source even if a cached build copy has a newer timestamp, and removes stale modules from that generated package directory. Focused verification: 45 API/security/result-delivery tests and the actual stale-build regression.

The additive execution source declaration producer in apatch_studio/execution_source_declarations.py verifies the workspace's existing signer, native execution receipt, independently signed source receipt and exact shared Change before emitting a separate signed statement. It derives the real 16-hex execution project through the native SDK and keeps it distinct from the ProjectGroup. The canonical portable wire is pinned from avatar-contract5e8a43d under _contracts/UPSTREAM.json, preserving the installed Avatar runtime. Nineteen source/crypto/path-boundary tests pass. A real local native run was used to verify its declaration separately; this helper alone is not a Company admission, Tracker receipt, production installation or a browser flow.

Company execution source publication

A composition that enables TC_COWORK_EXECUTION_SOURCE_PUBLICATION_ENABLED=true publishes the exact execution source while preparing signed evidence. The workspace's existing enrolled key signs the declaration and native HTTP request; no key is generated or exported. Studio validates both native receipts, retains one declaration outside the Git workspace before network I/O, and requires the exact Platform publication acknowledgement. Retry reuses the signed bytes. The Company server can then resolve source references itself without asking a person to copy JSON. Publication grants no role, Company contract, acceptance or payment. Existing local/disconnected deliveries retain their original behavior unless the release composition explicitly enables this integration.

Metadata

Release files for apatch-studio 0.1.7

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

Source distribution (sdist)

Source distribution for apatch-studio 0.1.7
File Size Uploaded Provenance Actions
apatch_studio-0.1.7.tar.gz 502.0 kB Without provenance Details for apatch_studio-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apatch-studio 0.1.7
File Interpreter ABI Platform Actions
apatch_studio-0.1.7-py3-none-any.whl Python 3 none any Details for apatch_studio-0.1.7-py3-none-any.whl

Total release size: 882.6 kB

Release files / apatch_studio-0.1.7.tar.gz

Download URL apatch_studio-0.1.7.tar.gz
Size 502.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4f3dcb8701a8bd4b3a616ff53715e6b4f0b2312460f7b9de89981e3867b39a3
BLAKE2b-256 checksum
How to use checksums
c5c8bcf35584da6e9f56f03fdcf9a4ed9ca380a289df3898bdb15ec5a2a7e840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / apatch_studio-0.1.7-py3-none-any.whl

Download URL apatch_studio-0.1.7-py3-none-any.whl
Size 380.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8defbb22503ffecbb360192c9b93545ef174329957a4caf26763bdf955e85911
BLAKE2b-256 checksum
How to use checksums
fb710a721f6b79222380ec40764b814899739c09f78e59939d83b9b101e88a86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for apatch-studio 0.1.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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