percolation-inversion-compiler (PIC) is a certificate compiler and local AI
agent runtime. It turns finite inputs into checked capability packets, proof
obligations, residual ledgers, typed trace normal forms, frontier extraction,
salience queues, and verifier tasks. It supports AI agent integration and
protocol-relative ASI-proxy phase-control without claiming real ASI, legal
authority, or an unobserved physical result.
The registry is metadata, not evidence. A report can be useful while
settled=false; unresolved work stays explicit instead of being treated as
zero or silently removed.
Version 1.1.0 adds strict public input boundaries, known/unknown measurement,
witness-only positive BIT coordinates, measured SQOT costs, rechecked ALT lift,
finite TRC traces, resource-matched acceleration measurement, and an explicit
approval-bound operation path.
This repository includes an Agent Skills-compatible workflow at
.agents/skills/percolation-inversion-compiler/SKILL.md.
Compatible agents can discover it from this repository, or copy it to a supported user skills directory
such as ~/.agents/skills/percolation-inversion-compiler/. The canonical implementation remains this repository.
For a compact, non-executing routing pass, start with pic agent check --compact,
then use pic phase plan --compact to inspect ranked verifier work and
pic token admissibility to check a candidate token. The returned
safe_commands are operator-controlled inspection hints; they never grant
execution authority or promote a candidate to settlement.
Install the published 1.1.0 base package in an isolated Python environment (Python 3.11+). Installation accesses the package registry:
python -m pip install percolation-inversion-compiler==1.1.0After installation, these checks print local reports without dispatching an operation:
pic agent check --compact
pic doctor --fail-on neverLocal fixture creation writes files. Use a fresh pic-demo directory; bootstrap
then supplies the input for the following check:
pic demo bootstrap --output-dir pic-demo
pic afst check --case pic-demo/afst/minimal_accepted.json --compactThe bootstrap example is inert data. Check commands do not dispatch providers, run packet text, grant shell authority, or mark physical outcomes as proven.
For canonical TeX audits and development fixtures, first install uv using its
official instructions.
The following source-checkout setup downloads code and dependencies:
git clone https://github.com/kadubon/percolation-inversion-compiler.git
cd percolation-inversion-compiler
uv sync --all-extras --dev
uv run pic doctor --fail-on neverInstalled-package examples use pic-demo/.... Source-checkout examples use
examples/...; do not mix the two path styles.
PIC uses two separate acceleration decisions:
accepted=truemeans a finite protocol found a positive structural lower bound under matching resources and preserved residual debt.acceleration_metrics_certified=truemeans baseline and candidate used the same observation protocol, receiver family, fixed horizon, stopping rule, evidence requirements, and resource envelope; at least one declared metric improved and none regressed beyond tolerance.
A measured accelerator claim requires both fields to be true. It is still not proof of real ASI or general intelligence.
From a prepared source checkout (Bash/POSIX shell line continuations), these commands read the existing fixtures and print comparison/certificate reports:
pic runtime compare \
--baseline examples/runtime_baseline_run.json \
--candidate examples/runtime_candidate_run.json \
--threshold examples/runtime_threshold.json
pic runtime certify-acceleration \
--baseline examples/runtime_baseline_run.json \
--candidate examples/runtime_candidate_run.jsonThe compared metrics are time-to-verified, verification yield, residual half-life, receiver reuse, certified capital gain, resource cost, and absolute error correlation. See Resource-matched measurement.
| System | Practical role | Positive claims require |
|---|---|---|
| ECPT | Verified packet and capability-path formation | checked packets, edges, closure, execution-available paths, and bounded queues |
| BIT | Bottleneck ranking and inversion | an intervention law, units, resource-matched baseline, evidence, and verifier witness |
| TRC | Typed finite traces and operation frontiers | authority, resource, tolerance, rollback, observation, and verifier records |
| SQOT | Attention and verification queue control | measured per-item costs, reserve, age, hazard, and explicit unknowns |
| ALT | Reusable abstraction capital | receiver lift, mechanism, leakage, transport, lifecycle, cost, and evidence |
| AFST | Satisfaction-flux stabilization diagnostics | abundance, deficit, units, refusal, authority, buffers, handover, and physical balance |
Missing required coordinates remain unknown. Raw candidate count, agent count, cache hits, and dispatch receipts do not become positive phase progress.
All ordinary PIC checks are non-executing. Real-world effects are isolated in
the explicit sequence adapter-check -> plan -> approve -> preflight -> dispatch -> verify -> reconcile.
The optional installation uses the network. From a source checkout, the
remaining commands inspect existing inputs and write operation-plan.json;
choose a fresh output path. They do not dispatch an operation. Bash syntax:
python -m pip install "percolation-inversion-compiler[operation]==1.1.0"
pic operation adapter-check --manifest examples/operation/https_readonly.adapter.json
pic operation plan \
--manifest examples/operation/https_readonly.adapter.json \
--request examples/operation/https_readonly.request.json \
--output operation-plan.jsonPlanning is a dry run. Preflight consumes and validates approvals, which is why
approve precedes preflight. Dispatch additionally requires a digest-bound plan,
fresh scoped approvals, an unused nonce, adapter restrictions, and the exact
body or process digest. A dispatch receipt proves only that a provider call was
attempted. physical_outcome_proven remains false; only an independent signed
observation can set physical_outcome_verified=true.
Read Operation security before enabling dispatch.
This sketch requires baseline_data and candidate_data to be complete
RuntimeRunReport mappings. See the existing
baseline and
candidate fixtures for their shape.
from percolation_inversion_compiler.runtime import (
RuntimeRunReport,
certify_runtime_acceleration,
)
baseline = RuntimeRunReport.model_validate(baseline_data)
candidate = RuntimeRunReport.model_validate(candidate_data)
certificate = certify_runtime_acceleration(baseline, candidate)
usable_acceleration = (
certificate.accepted and certificate.acceleration_metrics_certified
)The Python/TypeScript decision contract is
contracts/v1.1/pic-cross-language-contract.json.
Start with pic agent check --compact, then inspect accepted,
finite_checks_passed, operationally_usable, settled, blockers, and the
residual ledger separately. Never infer dispatch or settlement from
accepted=true.
Use pic doctor before production integration. Production identity and
provenance checks fail closed when required evidence is absent. Safe command
hints are text and are never executed automatically.
For connectors, identity, and the optional local service:
python -m pip install "percolation-inversion-compiler[agent-full]==1.1.0"Dashboards, adoption packets, operator requests, GitHub Actions, and packet exchange helpers are optional views over the same reports. They do not gate the main workflow.
PIC is not limited to GitHub Actions. Use the integration that matches the host agent or orchestration system:
- Integration index
- CLI AI agent output checker
- Python SDK AI agent output checker
- GitHub Actions AI agent output checker
- GitHub Actions integration guide
PIC does not:
- prove real ASI, consciousness, model-weight change, legal authority, or physical/oracle truth;
- convert missing values to zero or candidate volume to verified capability;
- override consent, refusal, contracts, policy, or provider controls;
- execute packet content, trace content, safe-command hints, or check results;
- treat
operation_ready,provider_dispatch_ready, or a receipt as an observed outcome.
- Documentation index
- Unknown semantics
- BIT witness requirements
- Resource-matched measurement
- Operation security
- Cross-language contract
- CLI reference
- Migration from v1.0
- Security policy
The five cited theory papers and the AFST specification snapshot are the semantic sources for the checkers. The package contains machine-readable schemas and audit snapshots, not a claim that every theorem has been proven by the software. See Theory coverage.
uv run ruff format --check .
uv run ruff check .
uv run mypy src scripts
uv run pytest --cov=percolation_inversion_compiler --cov-fail-under=90
uv run bandit -c pyproject.toml -r src
uv run pip-audit --skip-editable
uv build
uv run python -m twine check dist/*.whl dist/*.tar.gzSearch terms: percolation inversion compiler, PIC, collective intelligence, multi-agent systems, ECPT, BIT, TRC, SQOT, ALT, AFST, capability packet, certificate compiler, proof obligations, residual ledgers, typed trace normal forms, frontier extraction, abstraction liquidity, salience queue, verifier routing, resource-matched acceleration, ASI-proxy phase-control, AI agent integration, operation approval, Ed25519, SSRF protection.
For related research, the Collective Intelligence Research and OSS Index routes readers through completion and outcome and authority. Those routes do not grant dispatch authority.