Skip to content

CCR Interop

kadubon edited this page Jul 1, 2026 · 2 revisions

CCR Interop

CCR means Collective Capability Runtime. PIC-TS emits CCR-oriented JSON and JSONL from Node.js runtimes while preserving the PIC safety boundary.

These records are data-only handoff material. They do not grant shell, network, provider, repository, or physical authority.

Phase Plan To CCR

npx pic-ts phase plan --compact --emit ccr-tasks --output tasks.jsonl
npx pic-ts phase gap --compact --emit ccr-residuals --output residuals.jsonl

Task records use schema_version="ccr.task.v0.1". Residual records use schema_version="ccr.residual.v0.1". Both preserve PIC blockers and keep candidate_only_until_checked=true.

v0.8.0 CARA And Foundry Roundtrip

PIC-TS mirrors Python PIC's v0.8 CARA reports and phase-response control-step fixture. CCR can consume the phase-response report with:

ccr foundry allocate --strategy phase-response --response-report examples/asi_proxy_acceleration_bundle/phase_response_control_step.accepted.json --json
ccr foundry simulate-allocation --cuts examples/asi_proxy_acceleration_bundle/foundry_cuts.example.json --budget examples/asi_proxy_acceleration_bundle/foundry_budget.example.json --json

The allocation is advisory. It does not promote settlement, call providers, mutate repositories, or execute physical actions.

TRC Operation Readiness

npx pic-ts trc trace-normalize --input examples/asi_proxy_benchmark_bundle/trc_agent_trace.json --output trace_nf.json
npx pic-ts trc trace-check --trace trace_nf.json
npx pic-ts trc operation-gate --trace trace_nf.json --provider-profile provider_profile.json
npx pic-ts trc trace-to-packet --trace trace_nf.json

operation_ready=true means the trace has explicit authority, resource, rollback, witness, schedule, and tolerance data for the scoped provider handoff. It still reports executed=false and settled=false.

The stricter operation-gate report adds authority freshness, scope, provider dispatch, physical dispatch, MCP, and A2A gates.

SDK

import {
  ccrResidualsFromPhasePlan,
  ccrTasksFromPhasePlan,
  phaseResponseControlStep,
  traceCheckReport,
  traceNormalFormReport,
} from "percolation-inversion-compiler-ts/interop/ccr";

Use these helpers when a JavaScript runtime needs to route finite repair work to CCR while preserving residual ledgers.

Search Terms

PIC-TS CCR interop, Node.js CCR task JSONL, npm CCR residual JSONL, Collective Capability Runtime, JavaScript agent runtime, task leasing, residual preservation, phase-response allocation, CCR foundry allocate, provider evidence, pic-ts phase plan --emit ccr-tasks, pic-ts phase gap --emit ccr-residuals, percolation-inversion-compiler-ts/interop/ccr.

Clone this wiki locally