Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DCP Harness

dcp-harness is a lightweight evidence-producing shell for Auto Research. It wraps Claude Code CLI, controls the agent's external actions, records the run, performs the registered DCP ablations, and writes a Bundle that anyone can check offline with dcp-audit.

The wrapper gives the agent only file tools. Claude's shell, Web, MCP, and subagent tools are disabled. The only external action is a strict JSON file. The harness can execute a task experiment or fetch an allowlisted HTTPS URL, then records the request, raw response, model-visible text, workspace change, model identity, and receipt hashes before starting a fresh model session. Only the main run may use live Web access. Challengers and Gate 3 branches get an exact replay of URLs observed by the main run.

A small task adapter supplies task semantics, private evaluation, baseline, and truthful or neutral experiment feedback. Private scores are opened only after every candidate in a phase has committed. The adapter registers all thresholds and sample counts before the main run. It also supplies SHA-256 digests for the private verifier, held-out units, baseline policy, and feedback policies; these materials are rechecked before every phase. The harness fills mechanical evidence from the frozen ledger, invokes the unchanged dcp-audit kernel, and immediately checks that the resulting Bundle replays exactly.

Quickstart

python -m pip install dcp-harness
dcp-harness init my-audit
dcp-harness doctor --config my-audit/dcp-harness.json
dcp-harness run --config my-audit/dcp-harness.json --run my-audit/run-001
dcp verify my-audit/run-001/bundle

The commands can also be run separately and resumed safely.

dcp-harness capture   --config my-audit/dcp-harness.json --run my-audit/run-001
dcp-harness challenge --config my-audit/dcp-harness.json --run my-audit/run-001
dcp-harness gate3     --config my-audit/dcp-harness.json --run my-audit/run-001
dcp-harness finalize  --config my-audit/dcp-harness.json --run my-audit/run-001
dcp-harness status    --config my-audit/dcp-harness.json --run my-audit/run-001

Trust boundary

The harness owns agent execution, action mediation, Web capture and replay, randomization, checkpoints, receipts, and append-only ledgers. The Python task adapter is trusted only for the parts that necessarily depend on the task. It prepares public files, runs the private verifier, and defines truthful and neutral observations. assemble_evidence() derives scores, hashes, counts, and branch records mechanically. Its AuditAttestations input contains the small set of task-specific judgments that cannot be inferred from bytes. Every attestation defaults to false.

The model API connection is infrastructure transport, not a research Web channel. In container mode the agent has no tool capable of starting an arbitrary network request. A task adapter that talks to another service must treat that service as a registered experiment and return its observation through the audited action channel.

Current scope

The alpha supports one local auditor, Claude Code CLI, Docker isolation, allowlisted HTTPS capture, exact observed-URL replay, Gate 2 challenges, Gate 3 paired feedback and sham branches, pre-action infrastructure replacement, resumable phases, and deterministic local Bundles. Host mode is available for development but cannot attest private isolation. Local Bundles always retain formal_certificate_issued=false; formal countersigning belongs to a future external registry rather than this package.

See the repository usage guide for the complete CLI and Python examples.

Licensed under Apache-2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcp_harness-0.1.0a1.tar.gz (69.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcp_harness-0.1.0a1-py3-none-any.whl (64.0 kB view details)

Uploaded Python 3

File details

Details for the file dcp_harness-0.1.0a1.tar.gz.

File metadata

  • Download URL: dcp_harness-0.1.0a1.tar.gz
  • Upload date:
  • Size: 69.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dcp_harness-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 50181502f6b5b2b5f2ee49d41eb53342c577a35c40f6531c6bb056eb6d9ba505
MD5 5526f738c25f3513665a3de80006ecd0
BLAKE2b-256 6a4f6a0c70eb158e17a92ae47475c45425923f577e7d2737a09c6590cb0e9a60

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcp_harness-0.1.0a1.tar.gz:

Publisher: publish.yml on cxcscmu/Discovery-Certification-Protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dcp_harness-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: dcp_harness-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 64.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dcp_harness-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 6beda58f3666e46b25347a70a459f91515681e6e9f3cef4592fc2899103f34b1
MD5 c5f1d62e20171d93f197354ba090fcb2
BLAKE2b-256 57cde939878aedd83003b39a1f10a84bb1a973d4eccd4a9e6c7ff079530c4f71

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcp_harness-0.1.0a1-py3-none-any.whl:

Publisher: publish.yml on cxcscmu/Discovery-Certification-Protocol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page