Skip to content

safal207/CaPU

Repository files navigation

CaPU (Causal Processing Unit)

CMC Rust Simulator

CaPU is a permission-first execution runtime for high-risk actions.

It ensures that side effects occur only after validation, maturity checks, durable commit, and reproducible causal justification. A requested action is not enough; execution must be causally permitted before effects are allowed to occur.

CaPU is most relevant when actions can produce costly, irreversible, or security-sensitive effects.

graph LR
    Input(vCML Record) --> Gate{Gate: Validation + Permission}
    Gate -- Reject --> Reject[Reject]
    Gate -- Permit --> Incubate[Incubate: Hold Until Mature]
    Incubate -- Not Mature --> Hold[Hold/Defer]
    Incubate -- Mature --> Commit[Commit: Durable Authorization]
    Commit -- Committed --> Execute[Execute]
    Execute --> Effect(Side Effects)
Loading

ASCII fallback:

[vCML Record] -> [GATE] -> (Permitted?) -> [INCUBATE] -> (Mature?) -> [COMMIT] -> [EXECUTE] -> [Side Effects]
                      |                      |
                      +-> [REJECT]          +-> [HOLD / DEFER]

Review links

Core Concepts and Architecture

The shortest conceptual entrypoint is:

Traditional computing verifies state transitions.
Causal computing verifies transition legitimacy.

CaPU/CMC treats legitimacy as something that should be represented, replayed, and checked near execution and memory/effect boundaries.

Recommended reviewer path:

CAPU_PROGRESS_DASHBOARD
 -> CAPU_PUBLIC_STATUS_AND_ROADMAP
 -> CAPU_SOFTWARE_REFERENCE_UNITS_STATUS
 -> CAPU_PROCESSOR_MODEL
 -> CAPU_PROCESSOR_ISA_V0
 -> CAPU_MICROARCHITECTURE_V0
 -> CAPU_LEGITIMACY_COPROCESSOR_BRIEF
 -> CAPU_SOFTWARE_REFERENCE_UNITS_ROADMAP
 -> CMC_CURRENT_REVIEWER_PATH
 -> CMC_PERSONA_ACTION_REVIEWER_PATH
 -> WHY_CAUSAL_COMPUTATION
 -> CAUSAL_EXECUTION_ARCHITECTURE
 -> CAUSAL_MEMORY_CONTROLLER
 -> CMC_REPLAY
 -> CMC_HASH_CHAIN
 -> CMC_EVIDENCE_MAP
 -> CMC_REVIEWER_QUICKSTART
 -> CMC_BASELINE_STATUS
 -> CMC_PHASE_2_ROADMAP
 -> CMC_INVARIANTS
 -> rust/cmc-core
 -> CMC GitHub Actions

Core distinction:

Blockchain protects transaction history.
CMC protects causal legitimacy.

The emerging primitive is:

legitimate transition history

Not only what changed, but whether the change had the right to happen.

Why CaPU Exists

Many systems can validate or describe actions, but still allow execution to happen too early. CaPU exists to prevent side effects from occurring before permission, maturity, and durable commit conditions have been satisfied.

What CaPU Is

  • A permission-first execution runtime for controlling whether actions may progress toward side effects.
  • An execution state machine for the hold / reject / commit / execute lifecycle.
  • The execution-control layer that enforces commit-before-effect guarantees.
  • A deterministic runtime that produces reproducible decision codes and traceable transitions.

Runtime Pipeline (Central Guarantee)

CaPU's core pipeline is Gate -> Incubate -> Commit -> Execute:

  • Gate: Validate the record and make the permission decision.
  • Incubate: Hold/defer until maturity and preconditions are satisfied.
  • Commit: Durably authorize the decision before any side effects can occur.
  • Execute: Allow side effects only after prior stages have succeeded.

This pipeline makes commit-before-effect the default runtime behavior, not a best-effort convention.

Commit-Before-Effect Identity

CaPU is designed for systems where side effects must not happen before durable commit. If commit fails or preconditions are unresolved, execution does not proceed.

Device Metaphor (Secondary)

CaPU can be understood as a device boundary with stable ports, but this is secondary to its practical role as an execution runtime.

Causal Memory Controller (CMC)

CaPU now includes an early research branch for Causal Memory Controller (CMC).

The thesis is simple:

Ordinary memory stores what changed.
Causal Memory stores why the change was allowed.

CMC explores whether causal metadata can be preserved near memory and controller boundaries so agentic systems keep continuity across:

context -> permission -> action -> memory write -> later effect

This is the README entrypoint. More detailed reviewer evidence lives under docs/hardware/.

Releases

No releases published

Packages

 
 
 

Contributors