Open research into machine cognition · an [&] Ampersand Box Design program

Intelligence is not generation.
It is structured accumulation.

A language model that can't remember yesterday, weigh evidence across sessions, or learn from where it's deployed is a generator — not a system. OpenSentience is the open research program defining the protocols that close that gap.

Read the protocols See the proof Star on GitHub
12 protocols OS-001 → OS-012 1 shipped · 4 spec-complete · 2 in development · 5 draft
01 The Gap

A generator answers. A system accumulates.

The agent ecosystem builds on a frozen model and prays. The limiting factor isn't raw model intelligence — it's memory architecture, deliberation structure, temporal grounding, and governance. Those are infrastructure problems, not parameter problems. Here is the gap, axis by axis.

A generator
A cognitive system
Memory
forgets past the context window
typed graph — nodes, confidence, provenanceOS-001
Evidence
every answer equally certain
weighs evidence across sessions; decaysOS-001
Reasoning
one forward pass, always
routes on topology; deliberates only when κ>0OS-002 · OS-003
Time
stateless; no sense of when
has a heartbeat — declares its own cadenceOS-010 PULSE
World
text in, text out
perceives & acts through a body; learns from surpriseOS-011
Control
deploy and pray
permissions, audit, autonomy; every verdict certifiedOS-006 · box-and-box
02 The Cognition Loop

Cognition is a loop, not a prompt.

Every system in the [&] portfolio runs the same five-phase loop — the canonical PULSE phase kinds, which are exactly the Graphonomous machine architecture. Each phase is a place where a protocol does its work. The loop is wrapped by governance, clocked by PULSE, gauged by PRISM, and bounded by SCOPE.

↻ the cognition loop 1 2 3 4 5
  1. 1
    Retrieve pull the relevant subgraph before reasoning OS-001
  2. 2
    Route measure topology (κ) — retrieve in one pass, or deliberate OS-002 · OS-004
  3. 3
    Act deliberate along fault lines, then mutate the graph and the world OS-003 · OS-011
  4. 4
    Learn update confidence from outcomes and prediction-error surprise OS-001 · OS-011
  5. 5
    Consolidate merge, decay, and crystallize at idle — κ falls over time OS-001

Wrapped, clocked, gauged & bounded —

Governed

every phase runs under permissions, audit, and three autonomy levels

OS-006 · OS-007 · OS-008
PULSE · the clock

declares the loop's phases, cadence, and cross-loop signals

OS-010
PRISM · the gauge

measures how well the loop performs over time

OS-009
SCOPE · the bounds

bounds where agents may act over shared space

OS-012
03 The Protocol Map

12 protocols. The shape of a mind.

Not a list — a structure. Eight cognitive primitives (OS-001 → OS-008), each one capability of an intelligent system, grounded in cognitive science. Above them, four cross-cutting algebras that measure, time, embody, and bound the whole — the rings around the loop. Range OS-001 → OS-012, every entry honest about its status.

Shipped · 1 Spec complete · 4 In development · 2 Draft · 5

Eight cognitive primitives OS-001 → OS-008 · the capabilities

OS-001 · Continual Learning Protocol

Graphonomous: Knowledge Graphs for Continual Agent Learning

A graph-backed memory engine where agents store episodic, semantic, and procedural knowledge as typed nodes with confidence scores and provenance chains. Multi-timescale consolidation inspired by hippocampal replay — fast memory promotes to slow memory, weak connections decay, strong patterns crystallize. Outcome-driven learning updates confidence across causal chains, not just individual nodes.

v0.4.3 · shipped LongMemEval 92.6% &memory.graph SQLite + embeddings MCP server
OS-002 · Topological Routing Protocol

κ-Routing: When to Retrieve, When to Deliberate

The cyclicity invariant κ (kappa) detects irreducible feedback loops in a knowledge graph. When κ = 0, the subgraph is a DAG — retrieve context in one pass. When κ > 0, circular dependencies exist — iterate and deliberate before answering. κ determines not just whether to think harder, but how entangled the reasoning is. Proved on 1,926,351 finite systems with zero counterexamples. Fault-line edges (minimum cuts within SCCs) become the mechanical decomposition boundaries for deliberation.

spec complete &reason.deliberate Tarjan SCC bipartition enumeration
OS-003 · Deliberation Orchestrator Protocol

Topology-Driven Deliberation: Fault Lines as Prompt Boundaries

When κ > 0, fault-line edges become prompt boundaries. The Deliberator decomposes circular knowledge along those boundaries, runs focused reasoning passes on each partition, reconciles them, and writes conclusions back into the graph — reducing κ over time as uncertainty crystallizes into settled knowledge. Single-agent fast path; escalates to multi-agent formal argumentation (Deliberatic) only when convergence fails.

spec complete &reason.deliberate graph crystallization escalation path
OS-004 · Attention Engine Protocol

Proactive Attention: Self-Directed Cognition Without Queries

The missing ignition in a reactive system. The Attention Engine is a periodic loop that examines the knowledge graph's topology, coverage gaps, and active goals to decide what the system should reason about, learn about, or act on next — without waiting for a query. Three modes: Explore (what don't I know?), Plan (what should I do?), and Focus (where should I spend compute?). Not a 5th cognitive primitive — attention is meta-reasoning over the existing four.

spec complete survey → triage → dispatch heartbeat + event triggers autonomous goal generation
OS-005 · Model Tier Adaptation Protocol

Hardware-Adaptive Cognition: Same Topology, Different Depth

κ routing becomes more valuable on constrained hardware — it tells the system when to skip expensive inference entirely. Three tiers (local 8B, local 70B+, cloud frontier) with qualitatively different strategies: single-pass enrichment vs. multi-pass deliberation, demand-triggered vs. heartbeat attention, aggressive crystallization vs. fresh inference. The κ paradox: ROI of topological routing is highest when inference is most expensive.

spec complete local_small · local_large · cloud_frontier cost tracking
OS-006 · Agent Governance Shim Protocol

Thin Governance: Permissions, Audit, and Lifecycle for Any Runtime

A lightweight governance layer — not a full runtime — that wraps around any OTP-based agent system (Jido, Alloy, or raw GenServer). Provides the permission taxonomy (filesystem, network, tool invocation, graph access), audit trail, agent lifecycle states (installed → enabled → running), and three autonomy levels (observe, advise, act). Designed as a hex package dependency, not a daemon.

in development permissions model audit trail autonomy levels
OS-007 · Adversarial Robustness Protocol

Pattern Recognition and Threat Defense

Defines how agent systems detect and defend against adversarial inputs, compromised agents, and knowledge poisoning. Five threat categories: prompt injection, knowledge poisoning (BadRAG/TrojanRAG), agent impersonation, privilege escalation, and denial of service.

draft &govern.identity Immune system — self/non-self discrimination
OS-008 · Agent Harness Protocol

Pipeline Enforcement and Quality Gates

The enforcement runtime that sits above agents and below humans. Orchestrates [&] pipelines, enforces governance contracts, gates execution on epistemic confidence. Five components: PipelineEnforcer, QualityGate, ContractValidator, SprintController, ContextManager.

draft &govern.harness Supervisory attentional system — Norman & Shallice (1986)

Four cross-cutting algebras OS-009 → OS-012 · the rings

Grounded in cognitive science, not analogy

&
&memory → hippocampus + neocortex

Tulving's episodic/semantic split; multi-store memory; hippocampal–neocortical replay. Graphonomous consolidates fast→slow on idle.

&
&reason → prefrontal cortex

Kahneman's dual-process theory. κ-routing implements the System-1/System-2 split mechanically, from graph topology alone.

&
&time → cerebellum + basal ganglia

Temporal-difference learning; sequence timing. PULSE gives every loop a declared cadence and cross-loop signals.

&
&space → entorhinal grid cells

O'Keefe & Nadel's cognitive-map theory; place & grid cells. SCOPE is an N-D region algebra for shared-space coordination.

04 The Receipts

We don't ask you to trust the thesis. We ship the receipts.

Every claim here is checkable. The headline κ proof runs exhaustively, in your browser, with no server and no trust required — and it's only one of the receipts.

LongMemEval
92.6%500-question QA

Graphonomous (OS-001), shipped · graph-backed memory beats flat RAG

κ invariant
1,926,351systems proved

0 counterexamples · exhaustive, and it runs in your browser below

box-and-box kernel
97 laws× 2,000 trials

the governance floor, property-tested — every verdict ships a certificate

PRISM self-benchmark
0.10 → 0.994 cycles

then adversarial testing crashed it to 0.45 and surfaced real bugs we fixed

Cross-machine replay
100%fidelity

teach a skill on machine A, replay it on machine B (OS-011 Embodiment)

The κ invariant OS-002 · topology as a cognition signal

DAG region

κ = 0
No circular dependencies. Context is one traversal. Route: fast — no deliberation needed.

SCC region

κ > 0
Irreducible feedback loops. κ measures entanglement depth. Route: deliberate — fault lines become prompt boundaries.

The graph's structure mechanically determines the prompt structure — no human prompt engineering. The topology is the reasoning template. The Deliberator writes conclusions back as new nodes, so κ falls as uncertainty crystallizes into settled knowledge.

Verify it yourself 1,926,351 finite systems · 0 counterexamples

Part 1 — Directed graphs (n=2..5): for all 1,052,740 graphs, verify κ(G) > 0 ⟺ β₁(G) > 0 ⟺ G has a nontrivial strongly connected component.

Part 2 — Finite dynamical systems (n=2..7): for all 873,611 maps f:[n]→[n], verify κ(TransitionGraph(f)) > 0 ⟺ f has a periodic orbit of period > 1.

Part 1: Directed graphs

n Graphs With SCCs Failures r(κ, β₁) Time Status

Part 2: Finite dynamical systems

n Maps Periodic Failures Time Status

From theorem to shipping product

The proof verifies the invariant across 1,926,351 mathematical objects. Here is what happens when κ meets a real knowledge graph on a live MCP server.

Step 1

Store a business cycle

4 nodes stored:
  Market Share → Revenue → R&D → Product Quality → Market Share

All edges: causal type
MCP tools used: store_node × 4, then edge creation
Step 2

Analyze topology

routing:        deliberate
max_kappa:      1
scc_count:      1
fault_line:     Product Quality → Market Share
deliberation:   max_iterations: 2, agents: 1, confidence: 0.75
The system identified one strongly connected component over all four nodes, computed κ = 1, and named Product Quality → Market Share as the fault-line edge — the single edge whose removal breaks the loop. This is the first agent memory system to route inference depth on proved graph topology. — Phase 0 validation · 13/13 MCP integration checks passed
05 The Stack

Three protocols, one stack.

[&] composes agents. PULSE gives them a heartbeat. PRISM measures their effect. They're independent — adopt one without the others — and they stack, mirroring how HTTP, HTML and CSS converged in the browser. Underneath them all sits an un-weakenable governance floor.

PRISM · OS-009
diagnostic
measures how well a loop performs over time
PULSE · OS-010
temporal
declares how loops cycle, nest, and signal
OS-001 … OS-008
capability
the eight cognitive primitives
[&]
structural
composes capabilities into agents
box-and-box
governance floor
decides what is allowed, and what is best

The governance floor box-and-box · 97 laws × 2000 trials

Protocols say what a system can do. box-and-box answers the question underneath them all: given everything it could do, what is it allowed to do, and which option is best? An eight-rung modality ladder, each rung a small algebra with stated laws, composed by one bridge that runs feasible ▸ permitted ▸ best over a safety floor that cannot be weakened. Every verdict ships a certificate.

Rungs 1–2 · alethic · axiological
Invariant Arithmetic what can happen · how to rank it (semirings)
Rung 3 · deontic
Deontic Arithmetic obligation · permission · prohibition
Rung 4 · temporal
Temporal Arithmetic LTL ▸ supervise · safe over time
Rung 5 · reflexive
Reflexive Arithmetic may the rules change (entrenched ring-0)
Rung 6 · epistemic
Epistemic Arithmetic knows ▸ believes · do we know enough
Rung 7 · strategic
Strategic Arithmetic coalition power · who can ensure it
Rung 8 · resource
Resource Arithmetic affine ledger · can we afford it
▸ bridge · live
Playground interactive law sandbox · 97 of 97 wired
The kernel landing All 97 laws, live Open the playground
06 Open Questions

What we don't know yet.

A research program publishes its unknowns. These are genuine open questions driving the work — the honest edge of the protocols.

Q1
Does κ-routing's ROI really invert on cheap hardware?

OS-005's hypothesis is that topological routing matters more on an 8B local model — because it tells you when to skip expensive inference entirely. Plausible, but unproven at scale.

Q2
Can a self-evolving benchmark dodge Goodhart's law?

PRISM rewrites its own scenarios as systems improve. If the benchmark optimizes against the system it measures, when does the score stop meaning anything?

Q3
Does surprise-driven learning beat scheduled consolidation?

OS-011 emits a SurpriseSignal (forward-model prediction error) into the memory loop. Should learning fire on surprise, on a schedule, or both — and which actually crystallizes better knowledge?

Q4
Can agents coordinate over space with no central arbiter?

SCOPE lets agents broadcast typed SpatialClaims and detect conflict pairwise. Does that converge to safe coordination, or does it need a referee after all?

Q5
What does “understanding” mean for a graph?

If a system holds the right relationships at high confidence and can navigate them to answer, does it understand the domain? This is the question OpenSentience exists to explore.

07 Get Involved

Three doors in.

OpenSentience is open research. Whoever you are, there's a way to use it, build on it, or try to break it.

Researcher

Read the specs and the cognitive-science grounding behind every protocol. Twelve numbered specs, full reference lists, no marketing.

Builder

Wire the loop into your own agent. Graphonomous is the shipped memory engine (npm + MCP); the governance shim is a hex package that wraps any OTP tree.

Start a Graphonomous session for this repo.
1. retrieve(action:"context", query:"session context")
2. route(action:"attention_survey")
Then work, storing durable knowledge as we go.

Skeptic

Don't trust us — run it. The κ proof is right above. Or point PRISM at your own repo (BYOR) and benchmark any memory system, including ours, end to end.

config(action:"register_system", name:"graphonomous")
compose(action:"byor_register", repo_url:".")
compose(action:"scenarios") → interact(action:"run")
observe(action:"judge_transcript") → reflect("analyze_gaps")
08 References

Standing on the work of others.

Cognitive Architectures

Memory & Neuroscience

Agent Protocols & Deliberation

Modal Logic, Decision Theory & Measurement

Industry & Surveys