AGENT ↔ PHYSICAL WORLD / CPNC / CBAP v1

UNOFFICIAL OPEN-SOURCE PROTOCOL

Critical
Protocol

NEKXSR Core · 临界协议:中枢核

A protocol where an agent acquires a device, executes an action, and verifies the result through server-authoritative facts.
The main repository is CPNC; each agent adapter lives in its own subrepo.

4
active agent subrepos
v1.7.6
source release
129/129
CBAP conformance
0.2ms
control-plane p50 (local UDS)
facts
completion criterion

01 / WHAT IT IS

Not "LLM directly
driving Minecraft".

The question is independent of Minecraft: what interface and completion criteria does an agent need when information is incomplete, actions have cost, and the world changes? Minecraft is simply a low-cost, observable sandbox.

01

Facts, not receipts

Inventory, position, blocks, and task terminal state count. An adapter saying "ok" or a command being sent does not count as completion.

02

One lease per device

One writer at a time; FIFO waiting, explicit release, and per-device estop. Cooperation is not the safety mechanism.

03

Replaceable agents

The main repo depends only on the driver interface. Cyberdyne, MCP, Mindcraft, and Voyager each live in their own subrepo.

02 / ARCHITECTURE

Agents above.
Facts below.

CBAP-U faces agents; CBAP-D faces devices; the Kernel owns leases, safety, cancellation, and audit. The canonical diagram is in the repository.

CPNC / CBAP architecture: agents, CBAP-U, Kernel, CBAP-D, drivers, bodies, and server facts

Solid cyan = control / facts flow; gold dashed = legacy or partial path. The Kernel controls access and evidence; it does not plan or execute the agent's strategy.

03 / PROTOCOL NOTES

The protocol does not trust
"it said it worked".

These rules come from real contention, disconnects, estops, and recovery.

  1. 01

    Completion is a server fact

    Not result.ok. Server position, inventory, blocks, and terminal task state are the completion criteria.

  2. 02

    One writer per device

    Leases are scoped per device; waiters are FIFO; release, estop, and cancel are distinct operations.

  3. 03

    Fail closed, and say why

    Unknown input, ambiguous state, or missing arguments result in refusal with a reason — never a silent swallow.

  4. 04

    Audit and idempotency

    Every action leaves a record; inflight requests and reconnects do not replay blindly; dangerous state can be stopped.

  5. 05

    Agents stay out of the main path

    Different agents only implement adapters and device contracts. The core stays thin; bodies and planners evolve separately.

04 / TRUST BOUNDARY

Close the trust boundary
before letting AI run.

The Kernel does not trust an agent's self-declared safety. Identity, leases, audit, MCP child processes, and operator actions each have explicit boundaries; failure is closed by default.

01 / IDENTITY

Identity and permission

UDS 0600 + SO_PEERCRED; token files 0600 and O_NOFOLLOW; per-agent uid/token; device allowlists; ordinary agents do not get estop/admin.

02 / EXECUTION

Leases and fencing

One writer, FIFO, TTL, fencing token; release/estop/cancel are distinct; inflight, session, and UID rate limits.

03 / EVIDENCE

Audit anchors

JSONL seq + hash chain; checkpoint detects tail truncation; optional HMAC; remote sink can require seq/hash ack; audit failure enters a safe state.

04 / MCP

Least-privilege child process

Env allowlist, rlimits, process-group termination, output caps; manifest HMAC (enforceable); full tool/instruction pin; estop needs safe-state evidence; optional isolated UID and bwrap/nsjail.

05 / OPERATOR

Humans can see and stop

Local-first console; HttpOnly session, Host/Origin checks, CSP, login throttling; lease release, two-person approval, SLA notice, registry reload, explicit resume; remote bind requires TLS, mTLS optional.

06 / RESIDUAL

Not physical safety

Same UID/root, malicious MCP facts, unverified physical estop, TPM/HSM, and formal verification remain out of scope. Console mTLS is not end-to-end Kernel mTLS.

Not every action is approved. Normal read/write/lease runs directly; only policy-configured approvals.ops gate high-risk actions. Estop needs no approval; resume is an explicit operator decision after failure. Read the full security boundary ↗

MCP / UPSTREAM STATUS

Upstream is not fixed.
CBAP only mitigates locally.

SEP #3452 was closed on 2026-10-26 for SEP process; no spec change landed. CPNC v1.7.6 still adds a full JCS pin and same-connection drift checks, but this is not an official MCP fix and does not solve 3D execution authority.

MCP upstream status: SEP 3452 closed without spec change, CBAP local mitigation in CPNC v1.7.6, 3D execution authority not solved
01 / UPSTREAM

SEP #3452 is CLOSED (no spec change)

The proposal was closed because SEPs require WG/IG engagement first; the topic moved to the Security IG. No normative change landed.

02 / LOCAL

v1.7.6 local pin

Complete tool objects, serverInfo, instructions, RFC 8785 JCS; legacy pins fail closed; tools/list is rechecked before actions.

03 / 3D

Execution authority remains

A digest detects a changed menu, not whether a remote server follows it. Facts, approval UI, attestation, and sandboxing remain boundaries.

The upstream proposal is closed and the spec is unchanged; do not open duplicate issues. Local tests, PoCs, and 3D boundary records stay here. Read the MCP status note ↗

PROTOCOL / LONG-TERM

CBAP is not the
whole agent stack.

Model calls, tool discovery, agent-to-agent tasks, and UI rendering each have their own standards. CBAP holds the device-control, authorization, facts, and evidence layer; other layers get adapters, not copies.

Agent protocol layers: model/runtime, tools/context, agent-to-agent, CBAP device control, evidence/identity
L4 / CORE

Device control plane

CBAP core: device contract, lease, cancel, estop, policy, facts, audit. Other layers do not get stuffed into the Kernel.

ADAPTER

MCP / A2A / OpenAI

MCP for tools, A2A for agent tasks, OpenAI Responses / Agents SDK for model calls. CBAP connects through adapters and does not rewrite them.

LONG TERM

H1 → H3

H1 fixes boundaries and interop; H2 adds async, signed envelopes, and OTel; H3 adds attestation hooks, multi-tenancy, and certification.

Rule: adapter before core. Do not copy MCP, A2A, or AG-UI. CBAP's value is device control and evidence, not protocol count. Read the roadmap ↗

05 / CPNC OS

Put the protocol
into a bootable system.

CPNC OS 0.1 is a CPNC runtime layer on the DSH OS base: GRUB selects CPNC/Python versions, Control Center shows the active slot and supports hot-swap, and Host Bridge exposes an allowlisted host surface through CPNC.

01 / BOOT

Versioned boot

One GRUB entry per installed CPNC slot; kernel arguments carry cbap.cbap= and cbap.python=.

02 / CONTROL

Control Center

A local Tk panel shows the active CPNC/Python, slots, and hot-swap entry. No root shell is exposed to agents.

03 / HOST

5 host device IDs

host://fs, host://display, host://input/mouse, host://input/keyboard, and legacy host://desktop; input is off by default.

CPNC OS desktop
CPNC Control Center
P0–P6: device contract, default deny, per-device quotas, trust facts, safe_state, Wayland portal, 129/129 conformance. Host input is off by default; host://fs is an allowlist, not the host root.
Verified: QEMU/KVM with a 4 GB memory cap; a VM wrote hello-from-vm.txt into the host allowlist directory through CPNC. ISO and source: dsh-os-build.

06 / AGENT SUBREPOS

Same protocol.
Different bodies.

Each subrepo owns its adapter, device/mapping, tools, and smoke test. The main repo owns the interface and conformance.

4active subrepos
1archived: Alice
129/129CBAP tests
0.2mscontrol p50 (local UDS)
OURS

Cyberdyne

Legacy brain retained; the default path goes through bridge_cbap.py. The root direct shim is removed and old source is frozen in the archive.

MCP

MCP Mineflayer

A real MCP body. Public MCP tools map to CBAP read/write/poll/estop; MCPDriver speaks stdio JSON-RPC.

AUTONOMOUS

Mindcraft

Mindy brings its own planner. CBAP observes state, delivers prompts, and stops; it does not pretend to be a low-level action driver.

BRIDGE

Voyager

Mineflayer bridge only: state / exec / forward / say / stop. Real 1.21.1 bridge passes 8/8; local-Qwen loop 3/3; upstream Voyager agents over CBAP complete a 3-task sequence 3/3.

ARCHIVE

Alice

Forge 1.20.1 minimal bridge source. Not compiled and not run against a real server; not presented as active.

NEXT

Don't optimize the collar

Bridge overhead is sub-millisecond. The real latency is Minecraft actions, agent planning, and the LLM.

DETAILS / SOURCE / EVIDENCE

Protocol, subrepos, and
acceptance records live in the repo.

This site is a front door only: no mirrored docs, no local service, no runtime data.