Scan your whole stack
From OX Research Newsroom
Are you using c-two?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.13.0rc2
c-two was last scanned on 28 Nov 2026 at version 0.13.0rc2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.13.0rc2 LATEST | 28 Nov 2026 | No rules fired |
| 0.13.0rc1 | 28 Nov 2026 | No rules fired |
| 0.12.0 | 23 Nov 2026 | No rules fired |
| 0.11.0 | 20 Nov 2026 | Not shown |
| 0.10.1 | 30 Oct 2026 | Not shown |
Findings for v0.13.0rc2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.13.0rc2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
C-Two exposes stateful Python resources through typed CRM contracts over same-process calls, local IPC, or an external HTTP relay. This package projects the shared Rust runtime into Python.
Python C-Two 0.12.0 pairs with c3 0.8.0. See the 0.12.0 release and migration notes.
Install the matching published versions:
uv pip install 'c-two==0.12.0'
# Only for FastDB Payload contracts:
uv pip install 'c-two[fastdb]==0.12.0'
The base package has no Python runtime dependencies. Ordinary CRM definition, registration, direct/IPC/relay calls and errors do not load FastDB or NumPy. The fastdb extra pins fastdb4py==0.4.0; using FastDB payloads without it reports the extra to install. The exact pin selects the validated 0.x binding instead of allowing an untested later native interface.
Local IPC uses Unix domain sockets or TokenUser-scoped Windows Named Pipes. Unix roots select the final endpoint directory, with short names and directory-relative connections. Rust owns structured shutdown and scoped maintenance. Install matching builds across communicating clients, resource servers and c3. See the lifecycle guide.
cc.connect(..., timeout=...) bounds connection acquisition across pool waiting, handshake and route discovery. cc.with_call_options(proxy, timeout=...) sets business-call waiting separately. Custom Unix endpoint directories can use 0755 when the current user owns them and other identities cannot modify them; Windows uses its SID-scoped pipe namespace. See connection deadlines and endpoint configuration.
cc.set_server(startup_timeout=30.0) sets the native startup wait before registration. Omitted/None retains the finite five-second default; zero expires immediately. Startup expiry is identified by CoreError.lifecycle_kind == 'startup_timeout', with startup_stage and timeout_seconds; bind I/O failures keep their OS fields without a configuration-error label. See server startup deadlines for freezing and cleanup semantics.
IPC uses lazy buddy pools derived from each role's memory capacity (set_client / set_server: memory_budget_bytes, file_spill_budget_bytes, max_outstanding_calls). cc.observe.memory_stats() reports client, server, retired and holds accounting; held responses and borrowed inputs keep local copies, released right after the copy from transport memory. The standalone relay has its own relay role domain. See the memory guide.
C-Two 0.12.0 adds resource-owned publish/subscribe topics (ADR 0005): @cc.topic declares a topic on a CRM contract, cc.register(...) returns a Registration whose publisher(topic) publishes immutable frames (never blocking on slow subscribers, with topic_capacity history depth and atomic initial_topics frames), and clients subscribe through the natural topic member or proxy.subscribe(topic, start=..., on_lag=...), iterating immutable Delivery(value, seq, dropped) records; cc.hold(...) retains each delivery as HeldResult, and a strict lagging subscription ends with SubscriptionLagged (720). See publish/subscribe usage and the runnable pubsub.py.
Use cc.observe.connection_events() for one cancellable, bounded stream of incoming and outgoing physical IPC events, tagged by side. ConnectionObservation.snapshot() retains late inspection; its old blocking wait_closed() is removed. Physical observations work without a pending call. Bind/connect failures preserve io_kind, raw_os_error and io_operation on public cc.error.CoreError. These features share the Rust implementation on macOS, Linux and Windows x64 and ARM64; see the lifecycle guide for API examples.
cc.endpoint.server_credential() -> EndpointCredential | None reads the listener's lifecycle snapshot without inspection or a gate lock. CoreError.endpoint_unverified_reason reports unverifiable Unix binds; Unix credentials use schema 4 without device, and default endpoint directories carry namespace disk format 3. cc.Runtime() creates independent Python bindings and native sessions: configure and shut down an explicit instance through its methods, while cc.serve() handles signals only for the module-level default runtime. See the independent runtime example. C-Two 0.12.0 speaks IPC 17, SHM 4, C/FFI ABI 9 and relay mesh 7 and does not interoperate with 0.11.x (IPC 16, ABI 8) or earlier releases, so upgrade SDKs, c3 and Node consumers together and regenerate contract clients; the 0.12.0 release notes cover migration from 0.11.0.
Current source builds use IPC 18. Build c3 and each communicating SDK from matching sources when testing this checkout.
Use a stable operation key with cc.with_call_id(proxy.step, call_id)(args). Within the current registration, the Host attaches a duplicate submission to the original call or replays its outcome when the method and encoded input match. A conflicting method or input raises code 721.
If a call raises an exception with transport_phase == 'dispatch_uncertain', err.call_id gives the key of the operation. Use cc.query_call(proxy, call_id, timeout=2.0) to read an immutable CallOutcome without waiting for the resource, or cc.recover_call(proxy.step, call_id)() to attach or replay. An absent record returns unknown on query and raises code 723 on recovery. Recovery never executes the resource. A successful call whose result was dropped raises code 722 on recovery, with details['reason'] set to not_retained or evicted. When the original call must execute at most once, submit the key once and reconcile an unknown outcome through the application's durable state.
Use cc.hold on either side of cc.with_call_id or cc.recover_call to retain an independently releasable response. Keyed operations on a same-process connection use that Runtime's local IPC path. The Host-wide set_server options outcome_max_entries and outcome_max_retained_bytes bound completed metadata and retained bytes. Set the byte limit to zero for metadata-only retention or pass None to clear either override before Host startup.
Use canonical main for source development and run commands from the repository root. Python patch-release provenance is recorded with its release notes; the c3 release's rc-manifest.json identifies that CLI release's source, which can differ from a later Python patch:
git clone https://github.com/world-in-progress/c-two.git
cd c-two
Prerequisites:
uvv0.4.0 source checkout at ../fastdbThe default workspace dev group selects c-two[fastdb] and resolves fastdb4py==0.4.0 from PyPI. Bare package installation omits it. The Python native extension and c3 pin FastDB source af2790068d87d34f19061cb02f4d1c0e7ba224d0 for their source-mode static builds. Core and Rust SDK tests use the published Rust bindings with the matching FastDB Core SDK in system link mode. Golden specs and TypeScript interoperability fixtures still need the sibling source checkout; it is not a Python package override.
Install dependencies and build the Python native extension. This also compiles the required Rust core crates; no separate Rust prebuild step is needed:
FASTDB_PAYLOAD_LINK_MODE=source uv sync
Rebuild the native extension after changing Rust code:
FASTDB_PAYLOAD_LINK_MODE=source uv sync --reinstall-package c-two
Relay-dependent tests and examples require the standalone c3 binary. From a source checkout, build and link it before running relay flows:
FASTDB_PAYLOAD_LINK_MODE=source python tools/dev/c3_tool.py --build --link
The Python SDK does not embed or start a relay server. Start the standalone Rust relay with c3 relay, Docker Compose, or orchestration such as Kubernetes, then point Python code at its relay anchor with C2_RELAY_ANCHOR_ADDRESS or cc.set_relay_anchor(). The anchor is used for registration and name resolution. Remote HTTP calls still use the resolved route's relay_url directly, and local direct IPC is selected only for a loopback/local anchor. Relay-aware clients resolve the route name on connect and, when their current target is known to be gone, re-acquire the route by name before the next call within that call's deadline. Ambiguous data-plane failures are not replayed.
After the source-mode build, configure the absolute Core SDK library directory for Rust consumers spawned by interoperability tests. The full Python suite requires hey v0.1.4 on PATH (go install github.com/rakyll/hey@v0.1.4). Follow the development setup in the repository README and Windows guide for platform-specific loader paths and test prerequisites. Keep the existing extension build while running the Python tests:
python tools/dev/build_route_scope_attestor.py
C2_RELAY_ANCHOR_ADDRESS= uv run --no-sync pytest sdk/python/tests -q --timeout=30
For parallel execution, tools/dev/test_python.py runs ordinary test files in parallel and the complete matrices serially; see CONTRIBUTING.md for usage. See the test guide for prerequisites and longer real-idle and interoperability cases.
Run Rust core checks when validating shared native runtime changes:
cargo test --manifest-path core/Cargo.toml --workspace
For CLI build, link, and test commands, see the CLI guide.
Python examples live under ../../examples/python/:
uv sync --group examples
uv run python examples/python/local.py
Relay examples also need a running standalone relay, for example:
FASTDB_PAYLOAD_LINK_MODE=source python tools/dev/c3_tool.py --build --link
c3 relay --bind 127.0.0.1:8080
Python-specific benchmarks live in benchmarks/:
C2_RELAY_ANCHOR_ADDRESS= uv run python sdk/python/benchmarks/segment_size_benchmark.py Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.