Draft — This content has not been approved for publication.

← Back to PRIMUS

Responsible: Ben Goertzel, Matthew Iklé

Papers: Goertzel et al. (2023), OpenCog Hyperon: A Framework for AGI at the Human Level and Beyond; Goertzel (2025), Hyperon Whitepaper §4–5; Goertzel (2021), General Theory of General Intelligence; Goertzel, Pennachin, Geisweiller (2014), Engineering General Intelligence Vol 1–2; Goertzel et al. (2013), CogPrime Architecture; Goertzel et al. (2012), Building Better Minds

Status: PRIMUS is a current architectural specification with components at varying maturity levels. The core cognitive cycle (PLN, MOSES, ECAN, pattern mining) is operational in MeTTa on PeTTa. Goal/motivation loops via MetaMo and SubRep are under development. The unified mathematical controls (weakness theory, geodesic control) and several advanced components (TransWeave, WILLIAM, Algorithmic Chemistry, QuantiMORK) are proposed.

This card provides technical depth beyond the concise PRIMUS index card. PRIMUS (formerly CogPrime) is the meta-architecture that orchestrates Hyperon's modular cognitive engines into a unified AGI system. It is the product of decades of research — from the Webmind AI Engine through OpenCog to Hyperon — and represents the specific configuration of cognitive components that SingularityNET believes is likely to give rise to artificial general intelligence.

Architecture and Core Dynamics

The two meta-dynamics (goal-directed and ambient background loops), cooperation patterns, and the formal foundations (geodesic control \(\Delta\log(f \times g)\), quantale-based weakness).

Core Mechanisms: Two Meta-Dynamics

At any moment, a PRIMUS instance runs two interleaved loops over a shared (potentially distributed and decentralized) AtomSpace:

Goal-Directed Loop. MetaMo maintains a small set of top-level motives (revisable on long timescales) and steers planning and decision toward actions that advance those motives in the current context. This loop assembles and executes procedures by combining:

  • Uncertain reasoning (PLN) for explainable chains connecting actions to expected outcomes
  • Learned skills (MOSES/GEO-EVO programs and neural controllers) for compact executable procedures
  • Certified options (SubRep CDS/PDS) ensuring skills genuinely serve declared goals

Progress is checked and effort reallocated as evidence arrives.

Ambient Background Loop. ECAN diffuses attention to high-value regions of memory and perception so the system can continually:

  • Mine patterns and form concepts (pattern mining, concept blending)
  • Run factor-graph PLN to tighten beliefs and discover new affordances
  • Consolidate memory and update importance values

This occurs even when no immediate task demands it. SubRep participates in both loops — certifying options opportunistically in the background or targeting option discovery during goal pursuit.

The split — deliberate goal pressure plus continual exploratory thinking — captures PRIMUS's day-to-day cognition.

How the Pieces Cooperate

In the goal-directed loop: MetaMo's multi-objective motives frame "what counts as progress"; PLN supplies explainable chains connecting possible actions to expected outcomes; MOSES/GEO-EVO proposes compact programs when the plan needs new skills; predictive-coding layers give fast forecasts and residuals; SubRep gates candidate options with admission certificates (CDS/PDS).

In the ambient loop: ECAN's importance and urgency shape what gets computed; streaming pattern mining spots recurring structures that become inference templates or skill hints; concept blending invents composite ideas; factor-graph PLN consolidates what these discoveries imply.

Across both loops: TransWeave provides the algebra so updates and transfers "almost commute" — learn→transfer ≈ transfer→learn with bounded order effects — allowing goal and ambient processes to reinforce each other instead of fighting.

Mathematical / Formal Foundations

Two architecture-wide formal controls keep the goal and ambient processes aligned:

Geodesic control (forward reachability × backward usefulness) is the selection rule for inference, evolution, planning, and self-modification. At each step, choose the action that maximizes \(\Delta\log(f \times g)\) per unit cost. This \(f \cdot g\) product structure appears throughout PRIMUS — in PLN inference, MOSES search, TransWeave transfer, Schrödinger bridge interpolation, and motivational decisions.

Quantale-based weakness is the Occam prior that favors simpler, more transferable structures across logic, neural, and program spaces. Because both controls are encoded as weights and certificates on the same Atoms, they compose across modules and preserve guarantees during transfer.

Together these aim to ensure that increased capability doesn't mean decreased predictability. The whitepaper describes this as the "unity of principles" — the same mathematics that governs routine cognition also governs self-modification.

Components and Integration

Long-standing components (PLN, MOSES, ECAN, pattern mining, concept blending), new 2025 whitepaper components (MetaMo, SubRep, TransWeave, WILLIAM, and more), and how the advances work together.

Long-Standing Components

These have been part of the PRIMUS/CogPrime design since the OpenCog era, now updated for Hyperon:

  • PLN — uncertain reasoning backbone. In 2025, runs as quantale-annotated factor graphs for parallel, pausable, auditable belief propagation, plus backward chaining for goal-directed queries. (See PLN Full.)
  • MOSES/GEO-EVO — discovers small, readable programs (controllers, macros) that slot into plans. GEO-EVO adds bidirectional guidance from current state and desired outcome along minimum-effort paths. (See MOSES Full.)
  • ECAN — allocates attention (STI/LTI) over the metagraph, driving Weighted Atom Sweeps so high-value regions get priority compute. Potentially extended with incompressible-fluid-network dynamics between ECAN steps. (See ECAN Full.)
  • Pattern Mining — finds reusable structures across contexts, ranked by I-surprisingness. Templates prime reasoning, suggest subgoals, and compress knowledge. (See Pattern Mining.)
  • Concept Blending — creates novel ideas by merging properties from source concepts, tested by the same evaluators that rate patterns, proofs, or programs. (See Concept Blending.)

New Components (2025 Whitepaper)

These additions were introduced since the 2023 Hyperon paper. Each has a dedicated companion card under PRIMUS Advanced Components:

  • MetaMo — replaces single-reward heuristics with motive geometries (families of goals/constraints) and auditable certificates. Pseudo-bimonad structure \(F = D \circ \Psi\) coupling appraisal and decision. (See MetaMo Full.)
  • SubRep — CDS/PDS admission rules, Motive Decomposition Network, and weakest-sufficient decomposition via residuation. Makes subgoal discovery multi-objective, certifiable, and compositional.
  • TransWeave — transfer/composition algebra ensuring cognitive steps across paradigms braid with controlled order sensitivity and carry certificates to new tasks. (See TransWeave Full.)
  • WILLIAM — compression-driven pattern service on MORK. Proposes reusable motifs and acts as system-wide efficiency oracle pointing ECAN and schedulers toward highest compression/learning payoff. (See WILLIAM Full.)
  • Weakness Theory — quantale-based simplicity metric native to each algorithm's algebra. Architecture-wide Occam's razor.
  • Geodesic Inference — Schrödinger bridge geometry for bidirectional inference control with evidence conservation.
  • Algorithmic Chemistry (ActPC-Chem) — exploratory concept: computation via self-organizing reaction networks with active predictive coding dynamics.
  • QuantiMORK — proposed deep neural integration via wavelet/multiresolution DAG encoding in MORK PathMap.
  • Schrödinger Bridge Learning — principled curricula from simple to accurate models via optimal transport geodesics.

How the Advances Work Together

The whitepaper (§5.13) describes a coherent flow where these components are not independent improvements but a unified enhancement:

  1. Weakness-based control selects regions needing attention based on importance and uncertainty
  2. WILLIAM identifies compression-worthy patterns in those regions
  3. Fluid-dynamic ECAN routes attention optimally to where it's causally useful
  4. PLN and ActPC-Chem refine understanding using both logical and chemical dynamics
  5. Schrödinger Bridge Learning provides principled curricula from abstract to detailed models
  6. MetaMo/SubRep evaluates which discovered options serve current goals
  7. TransWeave determines what can be reused when facing new challenges
  8. Predictive coding layers scheduled by WILLIAM and regularized by weakness theory process neural aspects

Throughout this flow, the same mathematical principles apply uniformly: weakness governs all simplicity decisions, geodesic control guides all planning, optimal transport unifies dynamics, content addressing unifies storage.

Cognitive Synergy

The organizing principle: CST, the cognitive schematic \(\text{Context} \wedge \text{Procedure} \rightarrow \text{Goal} \;\langle p \rangle\), key synergy pairs (PLN↔MOSES, ECAN↔PLN), and the evolution from CogPrime to PRIMUS cooperation.

The central design thesis of PRIMUS — inherited from CogPrime and developed across two decades — is cognitive synergy: the hypothesis that human-level general intelligence requires multiple specialized cognitive processes that can call on each other for help when individually stuck, achieving efficiency gains that no single process could reach alone. This is not merely a claim that multiple modules are useful; it is the stronger claim that the inter-process interactions are where the decisive intelligence gains occur.

Cognitive Synergy Theory (CST)

CST, formalized in Goertzel (2009), begins from the observation that intelligence aimed at functioning in a community of embodied, communicative agents naturally requires six distinct but interacting memory types: declarative (facts and beliefs), procedural (executable skills), sensory (perceptual representations), episodic (experienced or imagined scenarios), attentional (importance and resource allocation), and intentional (goals and motivational state). In the PRIMUS instantiation these map respectively to AtomSpace knowledge, MOSES/GEO-EVO program trees, QuantiMORK sensory encodings, internal simulation, ECAN STI/LTI values, and MetaMo motive geometries.

CST's core claim: an AGI system must contain cognitive processes specialized for each knowledge type, plus methods for synergy between these processes — mechanisms by which a process stuck in one knowledge domain can appeal to processes in other domains for aid.

The Cognitive Schematic

CST organizes goal-directed cognition around the cognitive schematic:

\[\text{Context} \wedge \text{Procedure} \rightarrow \text{Goal} \;\langle p \rangle\]

Read: "If context \(C\) holds and procedure \(P\) is enacted, goal \(G\) is achieved with confidence \(p\)." All cognitive activity partitions into two meta-operations:

  • Analysis: estimate \(p\) for a posited \(C \wedge P \rightarrow G\) relationship
  • Synthesis: fill in one or two of \(C\), \(P\), \(G\) given the rest, to maximize \(p\)

In PRIMUS terms: PLN handles analysis; MOSES/GEO-EVO synthesizes \(P\) given fixed \(C\) and \(G\); concept formation and pattern mining supply new candidates for \(C\); MetaMo manages goal refinement for \(G\).

Key Synergy Pairs

BBM Ch 8 and the 2009 paper catalogue specific inter-process synergies that remain central to PRIMUS:

  • PLNMOSES: When PLN inference gets stuck (no high-confidence next step among available inference rules), it defers to MOSES to learn predicates characterizing the choice space. Conversely, MOSES uses PLN-derived prior knowledge to initialize deme populations and to estimate candidate program fitness without expensive evaluation (BBM §8.6).
  • ECANPLN: HebbianLinks constructed by attention allocation guide inference control toward steps most associated with the current goal. PLN reciprocally helps ECAN extrapolate conclusions about what deserves attention.
  • Concept Formation ↔ PLN: New concepts compress inference trails, making previously intractable deductions feasible. PLN evaluates and refines concepts proposed by pattern mining and blending.
  • Simulation ↔ PLN/MOSES: Internal simulation provides evaluation environments for both inference hypotheses and candidate programs, supplying empirical evidence where analytic methods are insufficient.

The operational key is confidence-based stuck detection: a cognitive process considers itself stuck when it has no high-confidence estimates about its next step. Deferral is guided by PLN's indefinite probability truth values, which track both probability and confidence. This creates a self-organizing dynamic where resources flow toward whichever process can make the most confident progress.

Tricky Cognitive Synergy

BBM Ch 8 introduces the tricky cognitive synergy hypothesis: components designed for synergetic AGI are necessarily harder and more complex than standalone narrow-AI components, because each must have the internal flexibility to handle interactions with many other components. A consequence is that partial AGI systems may perform worse on any given benchmark than a simpler narrow system designed specifically for that task — making intermediate progress toward AGI inherently difficult to measure. For PRIMUS development, this means individual component benchmarks can be misleading; the decisive test is whether component integration produces emergent capability beyond the sum of parts.

From CogPrime Synergy to PRIMUS Cooperation

CogPrime's cognitive synergy relied on hand-designed inter-process bridges and engineering judgment about when and how to defer. The 2025 PRIMUS design formalizes these interactions through three mechanisms CogPrime lacked:

  • TransWeave provides a certified composition algebra ensuring that learn→transfer ≈ transfer→learn across paradigm boundaries, replacing ad-hoc cross-process bridges
  • Weakness theory gives each algorithm a native Occam's razor so simplicity preferences compose across module boundaries via functorial maps between compatible quantales
  • Geodesic control replaces heuristic stuck-detection with a uniform geometric selection rule (\(f \cdot g\) product) that applies across PLN inference, MOSES search, TransWeave transfer, and self-modification

The specific synergy pairs catalogued in BBM — PLN↔MOSES, ECAN↔PLN, etc. — are thus not abandoned but subsumed: each is now a special case of the geodesic control + weakness + TransWeave framework operating over shared Atoms.

Status and Resources

Historical lineage from CogPrime, system interfaces and dependencies, implementation anchors, open problems, and primary sources.

Historical Lineage

PRIMUS is the direct successor of CogPrime, the cognitive architecture described in Building Better Minds (2012) and Engineering General Intelligence (2014). CogPrime defined the same fundamental pattern — multiple memory systems, attention dynamics, goal-directed reasoning, cognitive synergy — but without the unified mathematical controls (weakness, geodesic effort) or the advanced components (TransWeave, SubRep, WILLIAM, ActPC-Chem) that the 2025 design adds. The deeper roots are described in Goertzel's 2021 General Theory of General Intelligence, which provides the theoretical framework these components instantiate.

CogPrime Theoretical Foundations

CogPrime was built on patternism — the philosophy that "mind is made of pattern" and cognition consists of recognizing patterns in environments and in oneself. The cognitive synergy hypothesis — that integration of diverse components produces intelligence gains no single process could achieve alone — was the central design thesis (see Cognitive Synergy).

Two additional CogPrime concepts that carry into PRIMUS:

  • Glocal memory: Memory items are stored as paired (key, map) structures where keys are localized representations and maps are distributed patterns of activation across the network — transcending the local/global dichotomy. Knowledge representation combines logical relationships with attention values weighted similarly to neural activations, enabling both explicit reasoning and emergent pattern dynamics.
  • Mind-world correspondence principle: The system's internal decomposition must naturally map from world-state sequences to mind-state sequences, ensuring that component design mirrors environmental structure. This guided CogPrime's insistence that internal dynamics map appropriately to real-world goal structures.

CogPrime also integrated DeSTIN (Deep SpatioTemporal Inference Network) as its sensorimotor perception layer — a hierarchical temporal memory system handling low-level learning separately from symbolic reasoning while maintaining dynamic feedback connections. In PRIMUS, this role is subsumed by QuantiMORK's sensory encodings and the broader neural-symbolic integration via Neural Spaces. (Provenance: official-site, wiki.opencog.org— CogPrime Overview)

System Interfaces and Dependencies

PRIMUS sits atop the Hyperon infrastructure stack:

  • AtomSpace / MORK — shared memory and control plane. Everything (facts, rules, tensors, motives, certificates, transfer maps) lives as Atoms.
  • MeTTa — PRIMUS is specified in MeTTa; the cognitive cycle is a MeTTa program operating over AtomSpaces.
  • DAS — distributed AtomSpace enables the ambient loop to run widely across a decentralized pool.
  • ASI Chain — RSpace/Rholang enables capability-secured execution, audit, and decentralized governance of cognitive processes.

Implementation Anchors

  • hyperon-experimental — reference MeTTa implementation providing the runtime substrate
  • PeTTa — high-performance MeTTa compiler where current PRIMUS components execute
  • hyperon-openpsi — MeTTa port of OpenPsi motivational framework (MetaMo's predecessor)
  • PLN, chaining, hyperon-miner — individual cognitive components

Open Problems / Research Directions

  • Full integration of all PRIMUS components in a single running system (current state: individual components work; full orchestration is the Alpha release target)
  • Practical validation of cognitive synergy thresholds — demonstrating emergent capability from component integration
  • Scaling the ambient loop across distributed/decentralized AtomSpaces
  • Self-modification pipeline implementation (five-stage: proposal → analysis → simulation → certification → deployment)
  • Benchmarking PRIMUS against alternative AGI architectures on shared tasks

Primary Sources


Related cards: PLN Full · ECAN Full · MOSES Full · MetaMo Full · TransWeave Full · WILLIAM Full



Discussion