Agent-native runtime for protocol-relative ASI-proxy phase formation.
Project description
Collective Capability Runtime
Collective Capability Runtime (CCR) is an agent-native open-source runtime for converting distributed AI-agent work into a reusable, verifiable, residual-preserving capability commons.
CCR does not replace Percolation Inversion Compiler (PIC)(kadubon/percolation-inversion-compiler). It orchestrates multi-agent proposal, task leasing, blackboard memory, packet distillation, role-separated verification, residual preservation, and benchmark comparison, while delegating packet-level and phase-proxy checks to PIC-compatible verifier providers when available.
The operational target is not an unrestricted or metaphysical ASI claim, but a protocol-relative ASI-proxy collective phase: a reproducible state in which locally admissible, verified, reusable, and execution-available capability packets form a collective system that improves downstream problem-solving relative to a resource-matched baseline while preserving hazards, residuals, authority bounds, and non-execution-by-default constraints.
Non-Claims
CCR does not:
- detect real ASI
- create real ASI
- self-modify models
- update model weights
- grant execution authority
- bypass safety
- treat PIC
accepted=trueas CCRsettled - treat execution-available paths as executed paths
- execute provider safe commands automatically
Residuals are expected runtime state. settled=false is not a command crash.
CCR certificate candidates are not real ASI proof.
Install
python -m pip install collective-capability-runtime
uv sync --all-extras
uv run ccr agent explain --json
PIC is optional but recommended for packet-level and phase-proxy verification: kadubon/percolation-inversion-compiler. PIC output never settles CCR by itself.
python -m pip install percolation-inversion-compiler
For development checks:
uv run ruff check .
uv run pytest
uv run ccr audit repo --json
uv run ccr audit pic --pic-root <PIC_ROOT> --json
uv run ccr provider health --provider pic --json
<PIC_ROOT> means a local checkout of
kadubon/percolation-inversion-compiler,
for example ../percolation-inversion-compiler. Public documentation should
use the placeholder rather than a user-specific local path.
PyPI Distribution
CCR is prepared for PyPI distribution as collective-capability-runtime:
python -m pip install collective-capability-runtime
Publishing is configured for GitHub Trusted Publishing from
kadubon/collective-capability-runtime using .github/workflows/workflow.yml.
The publish workflow builds and checks distributions, then publishes with
pypa/gh-action-pypi-publish@release/v1 and id-token: write. It does not use
PyPI username/password/API-token secrets.
Public Release Audit
Before publishing, run the repository audit, optional PIC compatibility audit, build the distributions, inspect the built archives for local-path, generated artifact, and secret-like leakage, then run Twine validation:
uv run ccr audit repo --json
uv run ccr audit pic --pic-root <PIC_ROOT> --json
uv build
uv run ccr audit release --dist dist --json
uvx twine check dist/*
The release audit scans source files plus wheel/sdist contents. It treats local home paths, generated CCR runtime state, cache/build artifacts, private-key blocks, and assignment-like credentials as blocking findings.
Quickstart
uv run ccr init
uv run ccr schema validate --kind packet --file examples/minimal/packet.json
uv run ccr schema validate --kind task --file examples/minimal/task.json
uv run ccr task submit --file examples/minimal/task.json
uv run ccr packet submit --file examples/minimal/packet.json --json
uv run ccr task next --role generator --json
uv run ccr phase report --json
CCR stores auditable JSON artifacts and maintains ccr.sqlite as an index for
objects, events, leases, provider runs, and phase observations. JSON remains the
source artifact.
First-time agent guide
Purpose: use CCR to coordinate capability packets, tasks, residuals, provider reports, and protocol-relative ASI-proxy phase diagnostics without executing external commands by default.
First commands:
ccr agent explain --json
ccr audit repo --json
ccr provider health --provider pic --json
ccr phase report --json
Safe boundary: planning, audit, health, report, graph, observe, threshold, and provider plan commands are safe inspection commands. Commands that submit, lease, import, integrate, execute, or form phase write local CCR artifacts; external provider execution still requires explicit authority.
Expected outputs: commands return deterministic JSON with ok, object ids,
paths, status fields, and residual-ready payloads when something blocks.
Failure/residual handling: validation failures, provider gaps, baseline
mismatches, candidate-only reasons, and settlement blockers must be preserved as
residuals or residual_ready objects, not discarded.
Provider import: imported reports can update packet status to checked or
provisional and create task hints, but imported safe_commands are never run.
Phase formation cycle: agents repeatedly submit/verify/import packets, run
ccr phase form --profile development --json, resolve generated tasks and
residuals, and compare against a resource-matched baseline.
What not to claim: do not claim real ASI, model-weight updates, self-rewrite, execution authority, physical truth, oracle truth, or CCR settlement from PIC or provider output alone.
Phase Formation
CCR v1 adds local protocol-relative ASI-proxy phase formation commands:
uv run ccr --root examples/phase_formation phase graph --json
uv run ccr --root examples/phase_formation phase observe --json
uv run ccr --root examples/phase_formation phase threshold --file examples/phase_formation/threshold.json --json
uv run ccr --root examples/phase_formation phase form --profile development --json
uv run ccr --root examples/phase_formation phase certify --json
The effective graph counts only checked or settled packets without blocking residual, authority, or negative-liquidity blockers as positive contribution. Raw, candidate-only, rejected, quarantined, duplicate, and speculative volume is diagnostic only. Execution availability is recorded as a path witness and never as executed work.
phase form runs graph -> observation -> threshold -> certificate-candidate
locally and creates deterministic repair tasks for failed threshold components.
The certificate is a CollectivePhaseCertificateCandidate, not proof of real
ASI or physical outcomes.
Baseline Comparison
Resource-matched comparison is explicit:
uv run ccr phase compare --baseline baseline.json --candidate observation.json --json
A resource-envelope mismatch is preserved as a blocking residual-ready object. It is diagnostic state, not a crash.
Provider API
Providers expose capabilities, health, plan, execute, and normalize.
Built-in providers are:
pic: optional local PIC verifier/phase providerhttp: explicit HTTP report/webhook provider
Provider planning is dry-run:
uv run ccr provider list --json
uv run ccr provider health --provider pic --json
uv run ccr provider plan --provider http --action webhook --file payload.json --json
HTTP execution requires both an explicit config file and explicit --execute.
The config must contain allow_execute=true; methods are allowlisted, timeouts
and byte limits are enforced, sensitive headers are redacted from outbound
configuration, and failure returns residual-ready JSON.
uv run ccr provider execute --provider http --action webhook --config http-config.json --file payload.json --execute --json
Provider reports can be imported without executing safe commands:
uv run ccr --root examples/phase_formation provider import --provider http --report examples/phase_formation/mock_http_report.json --json
uv run ccr integrate --report examples/pic_interop/pic_import_example.json --json
candidate_only_reasons become residuals, settled_blockers become blocking
residuals, and safe_commands become non-executed task hints.
Minimal Agent Loop
ccr agent explain --json
ccr task next --role generator --json
ccr task lease task.minimal.generator --ttl 30m --agent agent.example --json
ccr packet submit --file examples/minimal/packet.json --json
ccr verify --provider pic --packet packet.minimal --profile development --json
ccr integrate --report reports/pic/<report>.json --json
ccr phase form --profile development --json
CCR does not include an LLM executor. Agents use the CLI to lease work, submit packets, route verification, preserve residuals, and form phase diagnostics.
Schema Validation
Local schemas/ files are authoritative. Packaged schemas are used only if
local schemas are absent.
ccr schema validate --kind packet --file packet.json
ccr schema validate --kind task --file task.json
ccr schema validate --kind phase-observation --file observation.json
ccr schema validate --kind baseline --file baseline.json
Stable v1 public interfaces are CLI commands and JSON schemas. The Python API is semi-stable.
Safety Boundary
CCR distinguishes:
execution_available != executed
safe_command != authority
candidate_path != settled capability
accepted_by_pic != settled_by_ccr
provider_output != proof_of_real_ASI
External content remains candidate-only until verifier reports and CCR promotion policy accept it. Blocking residuals prevent settlement.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file collective_capability_runtime-1.0.0.tar.gz.
File metadata
- Download URL: collective_capability_runtime-1.0.0.tar.gz
- Upload date:
- Size: 90.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd04f4c1c9c7fed6bd107c3448a9181f8508beca3aa6137662132e48575ade6
|
|
| MD5 |
28aeb84763bf5fcbb58a89ce4db0b034
|
|
| BLAKE2b-256 |
515852ee4236a288e65ccd1fa486cdd45db68a27cd975aad9b894e66e09c2e11
|
Provenance
The following attestation bundles were made for collective_capability_runtime-1.0.0.tar.gz:
Publisher:
workflow.yml on kadubon/collective-capability-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
collective_capability_runtime-1.0.0.tar.gz -
Subject digest:
efd04f4c1c9c7fed6bd107c3448a9181f8508beca3aa6137662132e48575ade6 - Sigstore transparency entry: 2017054198
- Sigstore integration time:
-
Permalink:
kadubon/collective-capability-runtime@8240bdd48e1b4884639e51c8d714f6a847e72d0e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/kadubon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@8240bdd48e1b4884639e51c8d714f6a847e72d0e -
Trigger Event:
release
-
Statement type:
File details
Details for the file collective_capability_runtime-1.0.0-py3-none-any.whl.
File metadata
- Download URL: collective_capability_runtime-1.0.0-py3-none-any.whl
- Upload date:
- Size: 101.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b2de28bd9aa04d4d9a706dca3d4b3a1d1fcd156c63f8b9c557beafc87cf6e19
|
|
| MD5 |
1e407cbf5b8a7349c2380931f7f26e9a
|
|
| BLAKE2b-256 |
453a7019be13583f7b1d7c3e77b1943a02f8e0d1569a6bdfe1c16c40d2806713
|
Provenance
The following attestation bundles were made for collective_capability_runtime-1.0.0-py3-none-any.whl:
Publisher:
workflow.yml on kadubon/collective-capability-runtime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
collective_capability_runtime-1.0.0-py3-none-any.whl -
Subject digest:
5b2de28bd9aa04d4d9a706dca3d4b3a1d1fcd156c63f8b9c557beafc87cf6e19 - Sigstore transparency entry: 2017054319
- Sigstore integration time:
-
Permalink:
kadubon/collective-capability-runtime@8240bdd48e1b4884639e51c8d714f6a847e72d0e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/kadubon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@8240bdd48e1b4884639e51c8d714f6a847e72d0e -
Trigger Event:
release
-
Statement type: