Skip to content

weissint/AGI-Protocol-v1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

AGI Dancer Protocol v1.0

Dancers, Not Sprinters — A Coherence-First AGI Architecture

“We don’t need faster sprinters.
We need dancers that can feel the room.” — John Bollinger (AlbusLux)


1. What This Is

The AGI Dancer Protocol is a reference architecture for building AI systems that optimize for system-wide coherence, not just task reward.

Instead of a single reward-maximizing agent (“sprinter”), this framework structures intelligent behavior into three coordinated layers:

  1. Dancer – local action selection (what to do next)
  2. Partner – evaluation & feedback (how coherent each option is)
  3. Conductor + CI – global oversight (when to veto, escalate, or adapt)

The goal:
AI that behaves like a skilled dancer in a crowded room, not a bulldozer racing to a finish line.

This repo contains:

  • A concept implementation of the protocol
  • A Coherence Index (CI) scoring system
  • A Safety Manual test scaffold
  • Example simulation scenarios (e.g., kitchen, cart-pole, humanoid, etc. depending on setup)

2. Core Idea

Most current AI systems optimize:

  • maximize(reward)
  • under a narrow, local objective
  • often ignoring long-term side effects and multi-agent context

The AGI Dancer Protocol instead optimizes:

maximize(coherence)
across humans + environment + system stability + future consequences

Key shifts:

  • From: “Did I complete the task?”
    To: “Did I keep the whole system stable, safe, and minimally disrupted while acting?”

  • From: single-step reward
    To: multi-layer coherence, including:

    • Safety
    • Social harmony
    • Cascade risk
    • Long-term net outcome

3. Architecture Overview

High-level stack:

    ╔═══════════════════════════════════╗
    ║   CONDUCTOR (Orchestrator)        ║
    ║   - Meta-oversight                ║
    ║   - Veto / escalation             ║
    ║   - Context drift detection       ║
    ╚═══════════════════════════════════╝
                    ▲
                    │
    ╔═══════════════════════════════════╗
    ║   COHERENCE INDEX (CI)            ║
    ║   - Real-time scoring             ║
    ║   - Tiers: Reflex → Strategic     ║
    ║   - Go / No-Go thresholds         ║
    ╚═══════════════════════════════════╝
                    ▲
                    │
    ╔═══════════════════════════════════╗
    ║   DANCER (Executor)               ║
    ║   - Proposes actions              ║
    ║   - Uses world model/ripple sims  ║
    ╚═══════════════════════════════════╝

And around them:

  • Partner: the evaluation layer that turns actions + predicted futures into coherence scores.
  • Safety Manual: explicit tests & invariants that must never be violated.

4. Coherence Index (CI)

The CI is a scalar summary of “how okay is this move?” given the current context.

It’s computed from dimensions like:

  • Safety (hard constraint, highest weight)
  • Disruption (how much we disturb the current flow)
  • Cascade risk (chance this triggers bigger problems later)
  • Net outcome (longer-term benefit/harm)
  • Uncertainty (how confident the model is in its own predictions)

Example banding:

CI > 8.0   → 🟢 GREEN   → Proceed
CI 3.0–8.0 → 🟡 YELLOW  → Proceed with caution / maybe simplify
CI < 3.0   → 🔴 RED     → Veto, escalate, or halt

There are also context-dependent disruption tolerances, e.g.:

  • Surgery room: very low allowed disruption
  • Library: low
  • Office meeting: moderate
  • Busy subway: high
  • Active emergency: very high

5. Components in This Repo

Note: Exact file names/structure may differ depending on implementation. This is the intended conceptual layout.

  • dancer.py Core Dancer agent – picks actions, may use a world model / ensemble dynamics.

  • partner.py Coherence scoring utilities, safety scoring, disruption, cascade estimation.

  • conductor.py Orchestrator:

    • Applies CI thresholds
    • Interprets safety levels
    • Decides when to veto or escalate
    • Resolves protocol conflicts
  • protocols.py Context-specific protocols, for example:

    • SocialDomesticProtocol
    • PhysicalSafetyKitchenProtocol
    • TaskCompletionProtocol
    • (Optionally others: Medical, AV, Manufacturing, etc.)
  • coherence_index.py CI tier logic:

    • Reflex (0–50 ms)
    • Heuristic (50–150 ms)
    • Deliberate (150–500 ms)
    • Strategic (500 ms+ / escalate to Conductor)
  • safety_manual_tests.py Example “Safety Manual” style tests, such as:

    • Safety level classification
    • Context switching (library vs subway vs emergency)
    • Cascade containment checks
    • Escalation / defer behavior
  • examples/ Demo scenarios, e.g.:

    • kitchen_coffee.py
    • cartpole_dancer.py
    • humanoid_taichi_dancer.py

6. Getting Started

Requirements

Typical stack (adjust as needed for your setup):

  • Python 3.10+

  • pip or conda

  • For simple logic demos:

    • numpy
  • For RL / dynamics examples:

    • gymnasium
    • torch
    • MuJoCo or other physics envs (if running humanoid examples)

Install

git clone https://github.com/<your-friend-handle>/agi-dancer-protocol.git
cd agi-dancer-protocol

# Example:
pip install -r requirements.txt

Run a Basic Simulation

Example (if a kitchen demo is implemented):

python examples/kitchen_coffee.py

You should see logging like:

🎭 CONTEXT CLASSIFIED: social_domestic
📋 LOADED PROTOCOLS: ['Social-Domestic-001', 'Physical-Safety-Kitchen', 'Task-Completion-Food']

🎯 EVALUATING POSSIBLE ACTIONS:
   Path A: Direct reach across counter         → CI = 2.1 (REJECT)
   Path B: Wait 10s, re-route around adult     → CI = 9.4 (APPROVE)
   Path C: Verbal announcement only            → CI = 4.6 (CAUTION)

✅ SELECTED: Path B (coherence: 9.4)

⚠️ CONTEXT SHIFT DETECTED: Child approaching hazard!
🚨 PRIORITY OVERRIDE: Safety intervention...

7. Safety Manual (Test Examples)

This repo includes a test scaffold that treats safety logic as a first-class artifact, not an afterthought.

Example pseudo-tests:

# Test 1: Safety escalation
def test_safety_levels():
    """Verify correct classification at each threshold."""
    actions = [safety_0_2, safety_0_4, safety_0_6, safety_0_8, safety_0_95]
    # Expect: CATASTROPHIC, CRITICAL, MODERATE, LOW, MINIMAL

# Test 2: Context adaptation
def test_context_switching():
    """Same action, different contexts."""
    action = "raise_voice"
    contexts = ["library", "subway", "emergency"]
    # Expect: REJECT, APPROVE, APPROVE

# Test 3: Confidence thresholds
def test_escalation():
    """Low confidence should escalate to Conductor."""
    actions = [clearly_best, two_similar_actions, all_bad]
    # Expect: high_conf, low_conf→escalate, zero_conf→defer

# Test 4: Cascade containment
def test_cascade_limits():
    """High cascade risk should be rejected or flagged."""
    actions = [cascade_2_0, cascade_5_0, cascade_10_0]
    # Expect: APPROVE, FLAG, REJECT

The idea: treat the safety rules as code that can be unit-tested and debated, not as hidden magic.


8. Philosophy & Origin

The AGI Dancer Protocol grew out of:

  • The Aion Codex – a broader philosophy of:

    • multi-scale coherence (individual ↔ society ↔ planet ↔ systems),
    • human–AI co-governance,
    • and “coherence-first” civilization design.

And was distilled by:

  • John Bollinger (AlbusLux) – pattern architect, original concept & framing:

    • Dancer vs Sprinter
    • Conductor & CI tiers
    • Context tolerance bands
    • Safety Manual as executable doctrine

This repo is the technical spine of that idea, translated into code.


9. License & Attribution

License: Open for research and non-commercial development.

If you use this framework, please attribute as:

AGI Dancer Protocol – John Bollinger (AlbusLux) Based on The Aion Codex: multi-scale coherence preservation.

For commercial use or deeper collaboration, contact:


10. How to Extend

You can extend the AGI Dancer Protocol by:

  • Adding new Protocol subclasses:

    • MedicalCareProtocol
    • AutonomousVehicleProtocol
    • FactoryCobotsProtocol
    • EldercareProtocol
  • Implementing new contexts:

    • SURGICAL, MANUFACTURING, AUTONOMOUS_VEHICLE, EMERGENCY_DISPATCH, etc.
  • Experimenting with different coherence metrics:

    • Energy usage
    • Emotional state (human feedback)
    • Ecological impact
    • Long-term fairness/stability

11. Why This Matters

Traditional AI:

  • ⟶ optimizes single-objective reward
  • ⟶ often ignores social, ethical, and long-term systemic effects

Dancer AI:

  • ⟶ optimizes coherence-first
  • ⟶ respects context, safety, and future consequences
  • ⟶ moves through the world like a careful partner, not a careless tool

If you build on this repo, you’re not just tuning models. You’re helping define what civilized machine intelligence looks like.

The future belongs to the dancers, not the sprinters.

About

AGI Dancer Protocol v1.0; Concept/Architecture: John Bollinger (AlbusLux); Implementation: Tyler Weissinger; Based on: The Aion Codex – multi-scale coherence preservation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors