Skip to content

IMPORTANT

AI Context & Knowledge Heritage

  • Subsystem: Architecture & Documentation / Core Docs / GOVERNANCE_ROLE_GUIDE
  • Architecture: @docs ARCHITECTURE:Documentation
  • Failure Path: Information drift, legacy terminology, or documentation mismatch.
  • Observability: Traceability via execution/parity_guard.py

πŸ‘” Swarm Governance: Role & Blueprint Guide ​

Intelligence Level: High (ECC Optimized) Source of Truth: server-rs/src/state/mod.rs (GovernanceHub), server-rs/src/agent/types.rs (RoleBlueprint) Last Hardened: 2026-10-29 Version: 1.4.0 Standard Compliance: ECC-GOV (Enhanced Contextual Clarity - Governance Standards) IDENTITY.md Sync: v1.1.464


πŸ‘” Governance Enforcement Flow ​

mermaid
graph TD
    Agent["Agent Runner"]
    Gate["Governance Hub (Hierarchical RBAC Check)"]
    Audit["Merkle Audit Trail"]
    User["Human Overlord (Client Dashboard)"]

    Agent -- "Request Tool Call" --> Gate
    Gate -- "Evaluate hierarchy: Agent -> Role -> Global" --> Gate
    alt Mode == Prompt
        Gate -- "Suspend Runner (oneshot)" --> User
        User -- "Sign Decision with Ed25519 Keypair" --> Gate
        alt Signature is Valid
            Gate -- "Approve" --> Audit
        else Signature is Invalid
            Gate -- "Reject / Fail Safe" --> Agent
        end
    else Mode == Allow
        Gate -- "Allow Execution" --> Agent
    else Mode == Deny
        Gate -- "Block Tool Call" --> Agent
    end
    Audit -- "Commit Signed Hash" --> Audit
    Audit -- "Allow Execution" --> Agent

Status: Stable | Classification: Sovereign


Overview ​

Tadpole OS uses a Blueprint-First architecture for agent management. Roles are not just labels; they are persistent templates that define an agent's technical skills (Skills) and operational protocols (Workflows).

Role Types ​

1. System Roles (Red) ​

Examples: CEO (Sovereign), Security Auditor, Emergency Ops.

  • Governance: High-level oversight and destructive skill.
  • CEO Sovereignty: The Sovereign (ID 1) is the only node with system-level permission to use the issue_alpha_directive tool for neural handoffs.
  • Success Auditor (ID 99): A specialized system node used for Mission Analysis. It has read-only access to mission logs and is optimized for prescriptive optimization tasks.
  • Concurrent Recruitment: System roles are optimized for Parallel Swarming, allowing them to recruit multiple specialists simultaneously without sequential latency.
  • Typical Models: Claude 3.5 Sonnet, GPT-4o.
  • Swarm Insight: The CEO role has unique telepresence capabilities within the Swarm_Visualizer, allowing for interactive viewport focus and mission log extraction.

IMPORTANT

Neural Lineage Schema — CEO→Alpha Handoff (IDENTITY.md Directive #2): Every issue_alpha_directive call is a formal swarm handoff. The injected context under --- STRATEGIC INTENT FROM OVERSEER --- must conform to the schema defined in directives/neural_handoff.md:

FieldRequired Content
[Task-Slug]Unique mission identifier
[Execution-Plane]Engine-Maintenance (Plane 1) or SMB-Digital-Twin (Plane 2 target; this label does not enforce FR-11)
[Current State]Phase at time of handoff (e.g., "Discovery complete, entering execution")
[Operation-Counter]0-10 counter (resets upon Directive #8 Compliance Heartbeat)
[Verified Facts]Confirmed truths from Aletheia Protocol
[Pending Blockers]Unresolved dependencies or open contradictions
[Next Actionable Step]The Alpha's first concrete action

Partial handoffs are a Protocol Violation.

2. Alpha Strategic Command (Emerald) ​

Alpha Nodes (ID 2, "alpha") are the tactical anchors of their mission clusters. Beyond task delegation, they are responsible for:

  • Optimization Gatekeeping: Alpha Nodes with active proposals are marked by a pulsing "Brain" icon in the UI.
  • Strategic Authorization: The operator (Overlord) interacts with the Alpha's oversight UI to authorize cluster-wide reconfigurations.
  • Goal Alignment: Ensuring that specialists remain aligned with the mission's Primary Goal during complex swarming cycles.

3. Departmental Roles (Blue) ​

Examples: Plane 1 (Backend Dev, UX Designer) and planned Plane 2 roles (Founder Twin, Support Analyst, Bookkeeper).

  • Governance & FR-11 status: Plane 2 toolsets and company-scoped workspaces are not available yet. The generic runner rejects only agents whose stored department exactly matches Plane 2: SMB-Digital-Twin (case-insensitive); other labels do not trigger the guard. Keep business workflows at synthetic preview until company-scoped authorization and storage are implemented.
  • Requires Oversight Toggle: Departmental roles can be configured with mandatory oversight. This is recommended for junior nodes or those accessing sensitive production data.
  • Typical Models: Llama 3.3, Gemini 1.5 Pro, Gemma 4 (gemma4:e4b).

πŸ› οΈ Managing Blueprint Definitions ​

1. The Reactive Role Store ​

All roles are managed via the use_role_store (Zustand). Any change to a role definition is reactively propagated across the entire Swarm Intelligence View.

2. Creating New Roles ("Promote to Role") ​

Instead of defining roles manually, you can build them through Configuration-by-Example:

  1. Open any agent's Neural Node Configuration.
  2. Manually toggle the Skills and Workflows you want the role to have.
  3. Click "Promote to Role".
  4. The system captures that configuration and saves it as a new selectable Blueprint.

3. Blueprint Persistence ​

Role Blueprints are persisted in the backend SQLite database (tadpole.db) under the role_blueprints table. This ensures your organizational templates are sovereign, shareable, and resilient across different deployment sectors.

Schema Manifest (ECC-DB-01) ​

FieldTypeDescription
idTEXT (PK)Unique blueprint slug (e.g., researcher-v1)
nameTEXTFriendly display name
departmentTEXTTarget organizational unit
skillsJSONStringified array of skill slugs
workflowsJSONStringified array of workflow slugs
requires_oversightBOOLDefault safety gate status

πŸ›‘οΈ Best Practices ​

  • Swarm Protocol Compliance: Role-based agents are bound by the engine's linear pathing protocol. They will automatically block circular recursion (A -> B -> A).
  • Minimal Privilege: Assign only the skills required for a role to reduce tokens-per-mission and improve security.
  • Concurrent Capacity: Roles designed for heavy recruitment should leverage Parallel Swarming effectively by using tier-one models.
  • Tiered Overrides: An agent's individual configuration can extend a role's base blueprint without modifying the template itself.
  • Mission Quota Alignment: Ensure that role-level budgets are consistent with the Mission-Level Quotas assigned to their clusters.

Sovereign Intelligence Architecture.