Adaptive Personal Cognitive Operating System (APCOS) is a supervised cognitive runtime designed for device deployment.
This repository is in release-candidate freeze mode.
- Authority stack is fixed:
Identity -> Lifecycle -> Energy -> Storage -> Memory - Router remains the exclusive Python mutation path
- Rust OS layer remains the supervisory authority layer
- IPC schema is versioned and contract-locked
- Input enters via CLI or voice adapters.
- Python parses intent and builds structured requests.
- Rust supervision validates identity, lifecycle, energy, storage, and memory decisions.
- Python executes only approved actions.
- Router emits structured command results and audits.
- IPC transport: JSON over stdio
- Envelope keys:
message_type,timestamp,correlation_id,payload - Schema version:
IPC_SCHEMA_VERSION = 1 - Message types are fixed and snapshot-tested.
Strategic: full executionReduced: downgraded computeSilent: heavy cognition denied, critical paths only
Owner: full command setFamily: constrained command setGuest: strategy/advisory-only paths by policy
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
python -m pytest -qRust validation:
cd os
cargo build
cargo test
cargo clippy -- -D warningsos/: Rust supervisory authority layercore/: deterministic cognitive and behavior runtimeservices/: adapters and service-level gluevoice/: voice runtime and model lifecycle adapterstests/: security, behavioral, stability, and soak validationdocs/: frozen engineering documentationmodels/model_registry.json: device model manifest
- Release candidate software freeze active
- Authority contracts and IPC protocol locked
- Stability and soak validation suites operational
- RC validation sign-off
- Device image packaging against frozen model manifest
- Hardware integration test pass against frozen contracts
- Firmware adapter conformance tests against IPC v1
- Any authority contract change requires version bump and migration notes.
- Any IPC schema change requires protocol version bump.
- Mutation-path changes require security and regression recertification.
- New runtime services
- New IPC message classes
- Authority policy redesign
- Router mutation redesign
- Fail-closed authority decisions
- Least privilege by identity tier
- Router-exclusive mutation execution
- Deterministic lifecycle and memory transitions
- No silent fallback on supervision failure
Identity is validated before mutation paths.
OwnerFamilyGuest
Tier policy is authority-defined and contract-tested.
- Schema-validated envelopes only
- Correlation-id loop suppression
- Unknown and malformed messages ignored or denied
- No mutation commands accepted through IPC
- Import and call-path checks enforce router exclusivity
- Mutation coverage tests verify audits on mutation paths
- Strategy/reasoning remains advisory-only
- Energy authority gates execution classes
- Heavy cognition is denied or downgraded by policy
- Runtime governor and hardware signals remain supervisory
- Storage authority validates mutation permission and retention rules
- Memory authority validates transition decisions
- Encryption metadata is validated in authority path
- Direct lifecycle mutation outside router
- Direct task-store mutation outside memory layer
- Cross-layer bypasses around authority chain
- Unversioned schema contract changes
APCOS is a supervised cognitive runtime with split responsibilities:
- Rust OS layer: authority decisions and supervision
- Python runtime: intent interpretation, orchestration, and approved execution
The authority chain is fixed:
Identity -> Lifecycle -> Energy -> Storage -> Memory
All authority layers are fail-closed.
- Router is the exclusive mutation boundary in Python.
- No module outside router may perform lifecycle or task-store mutation directly.
- IPC and adapters are envelope-only and non-mutating.
- Transport: JSON lines over stdio
- Frozen envelope:
message_typetimestampcorrelation_idpayload
- Frozen schema version:
1
Frozen interfaces include:
CommandRouter.route(intent_object) -> CommandResult- Reasoning output contract:
summarystrategy_stepssafe_to_presentblocked_reason
Energy authority is in Rust and supervises execution class viability:
StrategicReducedSilent
Python adapts to decisions and cannot override denials.
Validation is organized under:
tests/securitytests/behavioraltests/runtimetests/stabilitytests/validation
Harness index: tests/validation/harness_map.md.