Skip to content

IMPORTANT

AI Context & Knowledge Heritage

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

NOTE

Branding Note: This document and the system glossary reflect the transition of the legacy "Sovereign Reality" product name to the canonical "Tadpole OS" branding. Legacy terms are redirected where appropriate.

🧠 Tadpole OS: Business Operations Manual (SMB Edition) ​

Deployment Class: Small & Medium Business (SMB) Local Node Status: Engine operations documented; Plane 2 company runtime pending Version: 1.1.464 Last Hardened: 2026-09-17 (AI-Tadpole-OS Architectural Synthesis, IPC Bridge, OpenUI DSL, Mission Benchmarks) Data Privacy: Local-first by default; company-scoped Plane 2 isolation is pending Last Verified Against Codebase: v1.1.464 working tree on 2026-11-08 Last Code/Docs Parity Check: 2026-11-08


πŸ“– Terminology & Business Concepts ​

WARNING

Plane 2 status: preview only. The generic runner rejects only identities whose stored department exactly matches Plane 2: SMB-Digital-Twin (case-insensitive); other labels do not activate the guard. Company-scoped storage and execution remain pending. Use synthetic inputs and stop business workflows at preview β€” do not import, persist, publish, or execute live customer data through the generic runner. For the complete production readiness roadmap and transition checklist, see the SMB Live Operations & Production Readiness Guide.

To navigate the local swarm engine of Tadpole OS, business operators must understand the core concepts that drive the virtual teams.

Tier 1: Operator ​

  • Dual-Plane Sovereign Hierarchy [DEFINE: Dual-Plane Sovereign Hierarchy]: The target separation between Plane 1: Codebase Self-Governance and the planned Plane 2: Company-Agnostic SMB AI Digital Twin. Plane 2 runtime and company isolation are pending.
  • AI Digital Twin (SMB) [DEFINE: AI Digital Twin (SMB)]: A planned company-agnostic operational replica of an SMB's founder voice, procedures, catalog, and workflows, intended to run inside a company-scoped workspace once implemented.
  • Department Lead (formerly Alpha Node) [DEFINE: Alpha Node]: The orchestrating agent in a workspace responsible for breaking down goals, recruiting specialist sub-agents, and compiling reports.
  • Project Workspace (formerly Mission Cluster) [DEFINE: Mission Cluster]: A collaborative local directory grouping multiple virtual agents and shared assets toward a single business goal.
  • Private Swarm Environment (formerly Sovereign Reality) [DEFINE: Sovereign Reality]: The secure, local-first runtime environment where virtual agents execute business processes under human control.
  • Department Scope [DEFINE: Department Scope]: A communications constraint in the SovereignChat that restricts broadcasted instructions to all agents and sub-agents assigned to a specific workspace folder or cluster.

Tier 2: Admin ​

  • Swarm Depth [DEFINE: Swarm Depth]: The levels of delegation from the business operator down to terminal specialist nodes (Recommended Max: 3 for standard office hardware; Absolute Max: 5, configurable via MAX_SWARM_DEPTH).
  • Agent Scope / RAG Scope [DEFINE: RAG Scope]: The data ingestion context constraint limiting an agent's retrieval to specific files, workspace directories, or long-term memory.
  • Mode-Switched Utility Cluster [DEFINE: Mode-Switched Utility Cluster]: A consolidated multi-role agent team template with strict operational boundaries and sub-routine mode switching, designed to minimize database index bloat and state synchronization latency across the swarm.
  • Team Cluster Preset [DEFINE: Team Cluster Preset]: A reusable workspace configuration detailing a team cluster name, badge tag, default USD budget, department, and assigned multi-role agent collaborators.

Tier 3: Security ​

  • FR-11 Permission Firewall [DEFINE: FR-11 Permission Firewall]: A required boundary, not a fully implemented Plane 2 capability barrier. 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. Plane 2 remains unavailable for live business workflows until company-scoped execution is implemented.
  • Secure Vault (formerly Neural Vault) [DEFINE: Neural Vault]: The encrypted, client-side repository for all LLM API keys and provider credentials. Auto-locks after 30 minutes of inactivity and syncs unlock state across browser tabs via BroadcastChannel.
  • Swarm Pulse [DEFINE: Swarm Pulse]: A real-time binary telemetry event stream showing system communications, agent thinking state, and tool calls.

TIP

Complete Lexicon: For a full technical breakdown of system terms, refer to the GLOSSARY.md. Every term marked with a [DEFINE:] tag corresponds to a high-fidelity entry in the glossary.


πŸ—ΊοΈ Operational Tiers (Table of Contents) ​

Tier 1: The Business Operator (Dashboard & Daily Ops) ​

For team managers directing virtual agents.

Tier 2: The Systems Administrator (Config & Cost Control) ​

For managing engine parameters, API keys, and local hardware.

Tier 3: Security & Performance Optimization ​

For budget-guarding, hardware tuning, and diagnostics.


1. Multi-Tab Business Interface ​

The primary navigation system of Tadpole OS, allowing for multi-context orchestration within a single, high-performance web dashboard. Multi-Monitor Friendly: All tabs can be detached into separate windows for distributed oversight across dual office displays.

NOTE

Runtime Governance Anchor: All persistence paths (workspaces, local databases, and temporary caches) resolve from the backend AppState.base_dir, ensuring local-dev and server-mounted office networks use the same folder root.

1.1 The Multi-Tab Bar ​

Located permanently at the top of the viewport, the Multi-Tab Bar manages your active workspaces:

  • Dynamic Contexts: Tabs represent individual operational sectors (Dashboard, Projects, Team Graph, Settings).
  • Context Preservation: Switching tabs preserves the state of each page, enabling seamless multitasking.
  • Detachable Portals: Click the External Link icon revealed on hover to pop out any tab into a native browser window for dual-monitor layouts.
  • Header Sync: The global PageHeader automatically updates its action controls to match the active tab.

Interactive Elements:

  • [Button] Detach/Recall tab
    • Default state: Embedded (Not Detached).
    • Visible location: Right-hand side of individual tab headers in the Multi-Tab Bar when hovered.
    • Observable side effect: Spawns a new browser window hosting the page, replacing the embedded view, and changes the icon to a minimize/recall icon.
  • [Button] Close tab
    • Default state: Open.
    • Visible location: Far right of hovered tab headers in the Multi-Tab Bar.
    • Observable side effect: Closes the selected tab and shifts focus to the next available active tab.

1.2 Unified Dashboard Header (PageHeader) ​

A persistent command surface at the top of the page:

  • Engine Status: Real-time local connection status (🟒 ONLINE).
  • Page-Specific Actions: Direct action shortcuts (e.g., "Start New Project" when on the Projects tab).
  • Core Metrics: High-level telemetry tailored to the active operation, synchronized via the useEngineStatus hook.

1.3 Directing Agents via Chat & Voice ​

1.3.1 Business Chat Portal (SovereignChat) ​

The primary natural language interface for issuing directives to your virtual departments. It supports granular audience targeting:

  • Agent Scope [DEFINE: RAG Scope]: 1:1 communication with a selected virtual employee. Context is limited to that agent's specific role memory.
  • Department Scope [DEFINE: Department Scope]: Department-wide instructions (e.g., #marketing).
  • Global Scope [DEFINE: Swarm Pulse]: Broadcasts messages to all active agents.

Command Syntax:

  • Standard Input: Type a message and hit Enter to send in the active scope.
  • Targeted Agent: Use @AgentName <Message> to send a task to a specific agent regardless of active scope.
  • Targeted Department: Use #DepartmentName <Message> to broadcast to all agents in a specific work folder.

Interactive Elements:

  • [Selector] 3-Mode Execution Selector (Chat Β· Plan Β· Swarm) & Launch Swarm Handoff
    • Default state: 'swarm' (execution_mode, bidirectionally synchronized with is_safe_mode).
    • Visible location: Command bar above the input field in SovereignChat and below the target selector in Standups (Voice Interface).
    • Observable side effect:
      • Chat (execution_mode: "chat"): Lightweight conversational brainstorming β€” zero tools, no mission_history row created, stays on Slot 1 (unless Privacy Shield forces a local model), skips playbooks, System 2 blueprint, Conductor DAG, RAG, and Agent 99 debrief.
      • Plan (execution_mode: "plan"): Read-only codebase/knowledge research β€” read-only tools only (mutations & swarm delegation blocked), no mission_history row created, retains RAG memory.
      • Swarm (execution_mode: "swarm"): Full tracked Mission lifecycle (mission_history, Flight Recorder dossier, Conductor DAG, full toolbelt, Oversight Gate, Agent 99 debrief).
      • Launch Swarm Handoff: Appears in Chat/Plan mode once conversational turns exist; switches to Swarm mode and dispatches a tracked Mission carrying the prior brainstorm context via recent_findings.
  • [Toggle] Safe Execution
    • Default state: false (is_safe_mode β€” synchronized with execution_mode !== 'swarm').
    • Visible location: Bottom command bar of the SovereignChat panel.
    • Observable side effect: Quick-toggles between Chat (tools forbidden) and Swarm (full Mission execution). Legacy API callers passing safe_mode: true without execution_mode automatically resolve to plan mode on the backend.
  • [Button] Detach Interface
    • Default state: Embedded (Not Detached).
    • Visible location: Top-right header of the SovereignChat panel.
    • Observable side effect: Spawns a new native browser portal window containing the chat widget, retaining full state synchronization.
  • [Button] Minimize Dock
    • Default state: Maximized (Open).
    • Visible location: Top-right header of the SovereignChat panel (minimize icon).
    • Observable side effect: Collapses the chat panel into a floating circular button in the bottom-right corner of the viewport.
  • [Selector] Scope Tab
    • Default state: 'agent' (Active scope).
    • Visible location: Sub-header row of the SovereignChat panel.
    • Observable side effect: Swaps active context filtering and targets between Agent, Department (Cluster), and Global (Swarm) scopes.
  • [Breadcrumb] Lineage path
    • Default state: 'Overlord' root.
    • Visible location: Directly below the scope selector in SovereignChat when the Agent tab is active.
    • Observable side effect: Visualizes parent-to-child delegation lines for the active virtual employee.

1.4 Neural Map & Cognition Visualizer Operations ​

The Neural Map provides real-time 2D force-graph visualization of structural codebase references (Tree-sitter AST symbol nodes) and semantic OKF knowledge networks. Clicking any node opens the Cognition Sidebar Inspector (CognitionSidebar.tsx), displaying high-fidelity operational metadata:

  • Topic Space (<hash>/<relative_path>):
    • Displays the obfuscated workspace hash prefix followed by the relative file path.
    • Enforces Security Policy SEC-05 (Path Obfuscation): Absolute local paths are salted and hashed on the backend before UI rendering to prevent filesystem path leakage.
  • Concept Type (general, sop, playbook, metric, symbol):
    • Categorizes the node according to the Open Knowledge Format (OKF v0.2) taxonomy.
    • Denoted by monochromatic Lucide iconography in the sidebar.
  • Confidence Score (0% to 100%):
    • The Multi-Factor Scoring (MFS) confidence decay metric.
    • Newly ingested structural AST nodes start at 0% baseline until validated by active agent mission execution. Human-authored directives and active SOPs carry high confidence (80%–100%).
  • Governance State (Confirmed vs Pending Review):
    • Evaluates Sapphire Shield Zero-Trust operator verification (human_confirmed flag).
    • 🟒 Confirmed: Manually verified by an operator (human_confirmed = true).
    • 🟑 Pending Review: Autonomously ingested node awaiting human operator sign-off (human_confirmed = false).

1.4.1 Static Code Anomalies Panel (AnomalyPanel.tsx) ​

Embedded directly within the Neural Map HUD, the Anomalies Panel tracks structural code health and static analysis findings detected by the Tree-sitter AST engine during workspace indexing.

  • Primary Purpose:
    • Dead Code & Drift Detection: Identifies unused symbols (UNUSED_SYMBOL), unreferenced functions, dangling imports, and disconnected nodes across Rust and TypeScript files.
    • Automated Refactoring Prompts: Features a one-click "Copy Prompt" button (anomaly_prompt_template) that compiles all active workspace anomalies into a formatted refactoring instruction set, ready for submission to an AI agent swarm.
    • Interactive Node Jump: Clicking any listed anomaly centers and highlights the corresponding node directly on the 2D Neural Map graph for visual blast-radius inspection.

Interactive Elements:

  • [Button] Copy Prompt
    • Default state: Active (anomaly_prompt_template).
    • Visible location: Top header controls of AnomalyPanel.tsx.
    • Observable side effect: Copies formatted static analysis anomalies into the clipboard, ready to paste into SovereignChat for automated refactoring.
  • [Card] Anomaly Node Item
    • Default state: Unselected list row.
    • Visible location: Scrollable list inside the Anomalies Panel HUD.
    • Observable side effect: Centers and highlights the corresponding AST symbol node on the 2D Neural Map graph for visual blast-radius inspection.
  • [Filter] Anomaly Severity Selector
    • Default state: All Severities.
    • Visible location: Header filter row of AnomalyPanel.tsx.
    • Observable side effect: Filters displayed static code findings by severity classification (Critical, Warning, Info).

Keyboard Shortcuts:

  • Toggle Command Palette: [Shortcut: Ctrl+K] or [Shortcut: Ctrl+/] (toggles the global utility search bar, cited in useLayoutNavigation.ts:L51-83).
  • Tab Quick-Navigation: [Shortcut: 1-6] (Quick-routes to: 1. Dashboard, 2. Org Chart, 3. Standups, 4. Workspaces, 5. Docs, 6. Settings when input fields are out of focus, cited in useLayoutNavigation.ts:L51-83).

β†’ See Β§5.3 for vault security details.

1.3.2 Voice Interface (VoiceClient / Standups / Live_Voice_Hub) ​

A voice-driven extension providing hands-free dictation in SovereignChat, a dedicated "Standup Meeting" portal, and Gemini Live bidirectional voice streaming.

Core Interface Elements & Runtime Safeguards:

  • Exclusive Microphone Lease & Typed Diagnostics: VoiceClient enforces a single-owner mic lease across Standups, Neural Chat dictation, and Live_Voice_Hub (preventing double microphone capture when gemini-live is active) and surfaces actionable error diagnostics (NotAllowedError, NotFoundError, NotReadableError, SecurityError) inline.
  • Audio Input Selector & Local Mute: Operators can pick a specific microphone input device from the Standups command bar and toggle local mic mute (aria-pressed) without tearing down the session.
  • 3-Mode Execution Selector (Chat Β· Plan Β· Swarm) & Voice Handoff: Standups shares the same execution_mode state as SovereignChat, allowing spoken brainstorming (Chat / Plan) without creating Mission History rows and one-click Launch Swarm handoff carrying the voice transcript via recent_findings into a tracked Mission.
  • Real-Time Audio Visualizer: Multi-spectrum bar graph driven by live AnalyserNode microphone amplitude.
  • Capability-Driven Agent Voice Config (VoiceSection): Queries GET /v1/engine/audio/capabilities so TTS (browser, openai, gemini-live, piper/local) and STT (groq, whisper/local) options reflect live API keys, Privacy Shield state, and loopback local audio servers (LOCAL_WHISPER_URL, LOCAL_TTS_URL). Agent voice_id, voice_engine, and stt_engine persist across restarts.
  • Neural Chat Dictation Fallback: When Web Speech API is unavailable (e.g., Electron/Tauri WebView or Firefox), SovereignChat automatically falls back to MediaRecorder + POST /v1/engine/transcribe (preserving real audio container MIME types and appending transcripts without overwriting drafted text).
  • Connection Command Bar:
    • [Button] Start/End Channel
      • Default state: Inactive ('idle').
      • Visible location: Center console of the Standups / VoiceClient pane.
      • Observable side effect: Opens or terminates local microphone capture (or Live_Voice_Hub when gemini-live is selected), updating state metrics to live recording.
    • [Button] Local Mic Mute
      • Default state: Unmuted (false).
      • Visible location: Next to the connection button on the command bar.
      • Observable side effect: Mutes microphone audio tracks without severing the active voice channel.
  • Live Transcript Log:
    • Identity Attribution: Color-coded identifiers showing speakers (U for User, A for Agent).
    • Active Telemetry: Displays REC (Recording) vs IDLE status and real-time "Agent X is speaking..." feedback.

β†’ See Β§4.1 for provider configuration.

1.3.3 Swarm Visualizer Interaction ​

The SovereignChat is integrated with the visual Team Graph. Clicking any virtual employee node on the graph automatically focuses that agent's project context in the chat, allowing for instant coordination.

1.3.4 Activity Lineage Stream (Lineage_Stream) ​

A real-time telemetry sidebar that visualizes the propagation of data and instructions through your virtual organization.

  • Real-time Feed: Scrollable timeline of every agent event, tool execution, and system message.
  • Chain of Command Tracker: Visualizes the path an instruction took from the Department Lead down to the final terminal agent.
  • Payload Panel: Displays the raw text content of individual agent thoughts and actions.

Interactive Controls:

  • [Sidebar] Resizable Boundary
    • Default state: Fixed standard width.
    • Visible location: Outer border of the Lineage Stream drawer.
    • Observable side effect: Expands or contracts the sidebar panel width.
  • [Card] Event Node
    • Default state: Unselected.
    • Visible location: Scrolling logs within the stream.
    • Observable side effect: Triggers and opens the high-density Cinematic Depth View overlay.
  • [Overlay] Cinematic Depth View
    • Default state: Closed (false).
    • Visible location: Center-screen modal overlay.
    • Observable side effect: Displays the selected agent's full parameters, outputs, and JSON payloads.

1.3.5 Outward Customer Catalog & A2A Gateway (/smb-practice β†’ Catalog & A2A Knowledge) ​

Embedded within the unified SMB Digital Twin Workspace at /smb-practice (legacy /customer-catalog URLs redirect to /smb-practice). Use synthetic content and stop at preview; do not publish or use the public search endpoint for live customer data until company-scoped runtime controls are available.

Core Features & Interfaces:

  • Route Separation: Public catalog routes are separate from protected catalog-management routes. This route separation does not provide company isolation or a Plane 2 security boundary.
  • Outward Local Model Runner: Binds customer agent execution to local model profiles (gemma4:e4b, gemma4:e8b, gemma4:full) for low-latency, zero-cloud-leak customer inquiries.
  • Catalog Import Boundary: CSV and QuickBooks JSON are validated before shared catalog state is locked. Imports are capped at 512 KiB per field, malformed or empty payloads return RFC 9457 BAD_REQUEST, and a failed import leaves the catalog unchanged. PDF ingestion is unavailable and the interface directs operators to export CSV or QuickBooks JSON instead of reporting fabricated success.
  • Authentication & Profile Sync: POST /a2a/v1/catalog/import and PUT /a2a/v1/profile require an Administrative bearer token (NEURAL_ADMIN_TOKEN / browser Step-Up Administrative Token; operational NEURAL_TOKEN returns 403 Forbidden). The manager saves profile changes through the shared authenticated API client after a 300 ms debounce and cancels superseded requests. Public discovery and search remain token-free and use a 60-request-per-minute IP fixed window.
  • Business FAQ & Operating Info Card Manager (Company_Info_Card_Manager.tsx):
    • Interactive CRUD Cards: Create, edit, and delete business knowledge cards (FAQ, Operating Info, Policies, Custom) dynamically.
    • Tabbed Category Filter: Filter knowledge cards instantly by category tab (All, FAQ, Operating Info, Policies, Custom).
  • Client-Side PII Warnings: Live form warnings detect selected credit card numbers (Luhn), Social Security Numbers, and secret API keys. These warnings are not a complete server-side redaction guarantee; keep live company data out of the shared catalog until scoped storage is available.
    • Delete Confirmation Shield: Employs system-wide Confirm_Dialog modal for safe deletion confirmation.
  • Published A2A Company Agent Card Preview (A2A_Card_Preview): Live visual preview displaying exposed agent skills compiled from knowledge cards, version, copyable well-known JSON endpoint URL (http://localhost:8000/a2a/v1/company-agent-card.json), and active local model profile.

2. Project & Folder Management ​

2.1 Defining Project Goals (Missions) ​

Clear project scoping ensures virtual teams execute tasks quickly and stay within your budget:

  • New Project: Initialize standard business objectives.
  • Scope Parameters: Define the target goal, constraints, and outputs.
  • Assign Team: Select which virtual employee profiles to assign to the project folder.
  • Collaboration Graph: SVG-rendered diagram showing how agents will interact and delegate.

Project Lifecycle Status States ​

Swarm missions transition through a strict state machine representing different phases of execution:

  • Pending: The project has been created by the operator but has not yet been initiated.
  • SpecReview: The Department Lead agent reviews the project goals, scopes the recipes, and validates the required inputs and skills before beginning work.
  • Active: Specialists are actively executing tools, processing documents, and reasoning in the workspace sandbox.
  • Completed: The primary goal is achieved, and a final summary report is compiled by the Department Lead.
  • Failed: The swarm encountered a terminal error, exceeded the budget, or reached maximum delegation depth.
  • Paused: Processing is temporarily suspended by the operator or awaiting manual oversight resolution.

Child specialists share the parent mission ledger but cannot close it independently. Each branch records its own cost and structured outcome (completed, failed, blocked, or cancelled). If any branch is incomplete, the Department Lead preserves successful work, pauses the parent mission, and presents it for human retry, resume, or closure. Independent Conductor steps may run concurrently in bounded waves; steps whose dependencies fail remain visibly blocked instead of being reported as successful.

Workspace Cluster Limits & Concurrent Execution ​

To prevent system overload on local nodes, operators can run multiple concurrent active clusters simultaneously. Active clusters process missions in parallel up to the MAX_CLUSTERS engine cap (default: 10). If the active workspace count matches this limit:

  • Any attempts by the operator to initialize a new project workspace are blocked.
  • A warning log is emitted by the system: Cluster limit reached (logged as level 'warning' by workspace_service.ts:L65-68).

2.1.1 Mode-Switched Utility Clusters & Team Management Studio ​

To reduce database index sizes, configuration loading times, and state synchronization latency across large swarms, operators can group multi-role agents into Mode-Switched Utility Clusters:

  • Concurrent Swarm Execution: Multiple mission clusters can be toggled to ACTIVE simultaneously, executing parallel swarm operations across isolated work folders without forced single-active deactivations.
  • Cluster Studio ([CLUSTERS]): Accessible via the CLUSTERS studio button next to + NEW MISSION on the Missions sidebar. Opens the Utility Cluster Configuration Studio modal (Cluster_Manager_Modal.tsx) to define reusable team presets with custom badge tags (e.g. SEC-AUDIT, ENG-SWARM), budget allocations, and multi-role agent memberships.
  • Deploying Team Presets (+ ADD TEAM CLUSTER PRESET): Inside the NEW MISSION creation drawer, operators can expand the team preset gallery to populate pre-configured team parameters in a single click.
  • Editable Pre-fill Collaborator Toggle: Selecting a team preset pre-fills all defined multi-role agents into an interactive checkbox list, allowing operators to fine-tune assigned collaborators before creating the project workspace.
  • Sidebar Team Badges: Active project workspace cards displaying multi-role team presets render a high-visibility 🏷️ [TEAM: BADGE] tag below the budget readout for instant visual identification.

β†’ See Β§4.1 for provider configuration.

2.2 Shared Directories & File Assets (Workspaces) ​

Centralized coordination of local storage paths, department folders, and local files:

  • Department Folders: Shared folders grouping virtual employees by function (e.g., Marketing, Bookkeeping).
  • Lead Assignee: The primary manager agent responsible for final reports compiling.
  • Local Scan: Auto-scans local workspaces for active developer files, spreadsheets, or text logs.

β†’ See Β§4.3 for local data synchronization details.

2.3 Operations Center & Command Chain (Ops_Dashboard) ​

The central nervous system for monitoring running processes and hardware loads:

  • Operations Center: Real-time agent status dashboard and engine health checks.
  • Org Chart: Visual graph of the command chain from Department Lead to sub-agents.
  • Scheduled Jobs: Manage recurring tasks (e.g., scraping weekly invoices, building weekly status updates).

β†’ See Β§5.2 for security dashboard and cost quota details. β†’ See Β§6.1 for the swarm visualizer that powers the Org Chart.


3. Shared Folder & Asset Management ​

3.1 Workspace Manager (Workspaces) ​

Centralized coordination of project storage paths and shared files.

Operational Features:

  • Department Clusters: Workspaces that group virtual employees by department (Accounting, Marketing, Admin) into shared local folders.
  • Lead Node Halo: Every cluster highlights the primary leader agent (gold outline) responsible for overall project execution.
  • Environment Detection: Automatically detects host runtime sandboxes, developer shells, and container configurations.

β†’ See Β§4.3 for local data synchronization details.

3.2 Dynamic Environment Detection & OKF Governance ​

To ensure safety during execution, Tadpole OS runs a dynamic telemetry engine to detect host runtime environments and validate them against security rules specified in Open Knowledge Format (OKF) playbooks:

  • Dynamic Environment Detection:

    • Automatically probes the host for sandboxes (docker, wasm_sandbox), execution interfaces (tauri_shell, vs_code, jupyter_lab), and orchestration environments (k8s_node, headless).
    • Displays detected platforms on the Workspaces dashboard using monochromatic Zinc-scaled badges to minimize visual clutter while retaining full environment observability.
  • OKF Playbook Safety Gates:

    • Active workspaces are checked against security rules declared in OKF playbooks (e.g., requires: docker or requires: k8s_node).
    • If a required host environment is missing (e.g., Docker daemon is offline but a playbook requires containerization), the validation state transitions to warning or critical, presenting a high-contrast safety warning banner on the dashboard in semantic colors (cyber-amber or cyber-red).
  • Playbook Auto-Mounting & Caching:

    • The backend engine resolves active OKF playbooks assigned to a cluster's ID and automatically mounts them to the cluster's directory on disk as a read-only local JSON file (playbooks.json), allowing local agents to access playbooks and constraints without direct database queries.
    • Active playbooks are rendered on the dashboard as clickable badges that deep-link to the Semantic OKF Graph page for visual inspection of Institutional Knowledge Store (IKS) relationships.

Interactive Elements:

  • [Card] OKF Playbook Badge

    • Default state: Populated with the mounted playbook's title.
    • Visible location: "OKF Governance" card inside the Workspace Cluster details.
    • Observable side effect: Clicking deep-links to /knowledge?node=<id> to display its node relationships in the Semantic OKF Graph.
    • Keyboard shortcut: None.
    • Missing in build: Always present.
  • [Banner] Safety Alert Banner

    • Default state: Hidden (Nominal).
    • Visible location: Middle section of the "OKF Governance" card inside the Workspace Cluster details when validation status is warning or critical.
    • Observable side effect: Renders error details and missing environment requirements.
    • Keyboard shortcut: None.
    • Missing in build: Always present.

3.3 Task Draft Branching Workflow ​

  • To protect your core documents from mistakes, virtual employees do not edit primary business files directly.
  • Agents write proposed edits to temporary draft files (e.g., report_draft.md).
  • A draft queue appears on the Workspaces dashboard waiting for the operator's approval.

Interactive Elements:

  • [Button] Approve Draft
    • Default state: Pending approval.
    • Visible location: Proposal card inside the Workspace Manager dashboard.
    • Observable side effect: Overwrites the canonical file with the draft contents and clears the proposal from the active list.
  • [Button] Reject Draft
    • Default state: Pending approval.
    • Visible location: Proposal card inside the Workspace Manager dashboard.
    • Observable side effect: Deletes the draft file, cancels the operation, and feeds rejection parameters to the agent.

β†’ See Β§5.3 for vault security details.


4. Core Intelligence Management Suite ​

These configuration pages manage provider API keys, local models, and virtual employee configurations.

4.1 LLM Provider Configuration (Model_Manager) ​

The credential manager for local and cloud AI providers.

IMPORTANT

Accessing API keys requires typing your master passphrase. Credentials are encrypted using PBKDF2 + AES-256-GCM via the browser's native SubtleCrypto API and stored in browser localStorage. Encryption runs in a background Web Worker (crypto.worker.ts) to prevent UI lag during large workspace operations.

CAUTION

Browser Secure Context Requirement (http://192.168.x.x:5173): The Web Crypto API (crypto.subtle) strictly requires a Secure Context (https:// or http://localhost). Accessing the dashboard remotely over plain HTTP (e.g., http://10.0.0.1:5173) will cause browser security policies to disable Web Crypto, preventing the Neural Vault from unlocking. For remote deployment access, configure HTTPS/TLS certificates or connect through a local SSH tunnel or reverse proxy.

☁️ REQUIRES NETWORK

External Cloud Connections: Triggering generation queries on external cloud providers sends prompt payloads and decrypted API tokens directly to the provider endpoints. The currently supported cloud endpoints (with their env-var keys) are:

Credential handling: The browser vault encrypts saved keys at rest, but task dispatch sends the selected decrypted key to the configured engine, which uses it for the provider call. Telemetry redaction is path-specific and is not a blanket guarantee against all logs. Use a trusted engine endpoint and HTTPS for remote connections.

Interactive Elements:

  • [Input] Master Passphrase
    • Default state: Empty string ("").
    • Visible location: Center modal panel when Vault is locked.
    • Observable side effect: Dispatches key derivation routines inside the Web Worker.
  • [Button] Commit Authorization
    • Default state: Enabled.
    • Visible location: Next to the passphrase entry field.
    • Observable side effect: Unlocks the provider configuration view, loading active API profiles.
  • [Button] Emergency Vault Reset
    • Default state: Enabled.
    • Visible location: Bottom actions corner of the unlocked Vault panel.
    • Observable side effect: Destructive action that purges all local storage API keys and resets vault settings.
  • [Button] Add Provider
    • Default state: Enabled.
    • Visible location: Top header of the provider listing page.
    • Observable side effect: Appends a configuration template card to the UI.
  • [Card] Provider Card
    • Default state: Populated with configured URL and status.
    • Visible location: Main provider grid.
    • Observable side effect: Expands inputs for URL endpoints, API keys, and custom providers.
  • [Table] Model Inventory
    • Default state: Auto-scanned list of system-integrated models.
    • Visible location: Center region of Model_Manager.
    • Observable side effect: Displays feature matrix capabilities.
  • [Toggle] SHOW RATE LIMITS & PRICING
    • Default state: Collapsed (false).
    • Visible location: Row elements inside the Model Inventory table.
    • Observable side effect: Toggles between "SHOW RATE LIMITS & PRICING" and "HIDE RATE LIMITS & PRICING". Expands a detailed panel displaying RPM, TPM, RPD, TPD rate limits alongside # / Context Field (context window token capacity), $/M input tokens (cost per million input tokens), and $ /M output token (cost per million output tokens).
  • [Button] Edit Node (Pencil Icon)
    • Default state: Enabled.
    • Visible location: Model row action controls.
    • Observable side effect: Enters inline edit mode for configuring node identity, rate limits, # / Context Field, $/M input tokens, and $ /M output token.
  • [Button] Provision Node (Add Node)
    • Default state: Enabled.
    • Visible location: Top header of Model Inventory panel.
    • Observable side effect: Opens dialog to provision new model nodes with custom rate limits, context window, and pricing.

4.1.1 Secure Context Requirements ​

The vault uses the browser's standard SubtleCrypto API, requiring a Secure Context:

  • Local Access: localhost and 127.0.0.1 are secure by default.
  • Remote Access: Accessing the dashboard via a local network IP (e.g., http://10.0.0.1:5173) will disable credential features. You must set up HTTPS to access the vault remotely.

4.1.2 Automated Capability Inference (IMR-01) ​

The engine automatically detects the feature set of your models:

  • πŸ‘οΈ multimodal: Supports processing images, diagrams, and PDFs.
  • πŸ› οΈ tools: Supports tool execution (e.g., writing files, calculations).
  • 🧠 reasoning: Optimized for deep analytical logic (e.g., DeepSeek-R1, OpenAI o1/o3).

β†’ See Β§5.3 for vault security details.

4.1.3 Remote Companion Pairing and Revocation ​

Open Remote Oversight & Mobile Mesh Settings while authenticated with an administrative token (NEURAL_ADMIN_TOKEN via the in-memory Step-Up Administrative Token in Settings), then select Display Pairing QR Code. Token creation, device listing, edits, and revocations all enforce RequireAdmin (403 Forbidden for deploy-only NEURAL_TOKEN), and token creation must succeed on the engine before the QR dialog opens; there is no client-side fallback token. Scan the QR code in the companion app, then select Refresh Pairing Status. The desktop lists a device only after the engine confirms its registered Ed25519 public key.

Edits and revocations are also server-confirmed. If an operation fails, the device remains unchanged in the interface and the error banner identifies the failure. Revoked companions immediately lose signed-route access. Companion requests require X-Device-Id, X-Timestamp, X-Nonce, and X-Signature; stale or replayed requests are denied.

On Android, both approval and rejection decisions require strong hardware biometric authentication (BIOMETRIC_STRONG + AndroidKeyStore RSA-2048 OAEP BiometricPrompt.CryptoObject β€” no device-credential fallback). A failed registration, signature, or server command must leave the displayed authoritative state unchanged; retry after confirming the desktop address and that the device has not been revoked.

4.2 Custom Virtual Employee Profiles (AgentConfigPanel) ​

Set up virtual employees and define their scope of work:

  • Cognition Tab: Toggle whether the agent retains long-term memory across sessions.
  • Governance Tab: Set individual budget caps, toggle the "Requires Oversight" setting, and configure A2A Economic Zone daily spend limit caps to restrict micropayment transfers.
  • Inference Tuning: Assign specific models and temperature parameters.
  • Reasoning Engine (Mythos): Tune the agent's internal monologue settings:
    • Reasoning Depth (1-16 turns): Set to 1-4 for simple, quick tasks (e.g., email categorization). Set to 5-10 for complex analysis.
    • ACT Halting Threshold: Define the model's self-halting confidence level.

β†’ See Β§5.1 for oversight queue details.

4.3 Local Data Synchronization (RAG) (search_mission_knowledge) ​

The data intelligence layer synchronizes your local folders and databases with the agent's memory store.

  • Multi-Factor Scoring (MFS): Combines vector semantics, project relevance, and document recency to find the most accurate records.
  • Data Crawling: System sync workers automatically index changes in your mapped directories every few minutes (SME_SYNC_INTERVAL_MINS).
  • Markdown SOP Enforcement: Place your business Standard Operating Procedures (SOPs) as markdown files in data/workflows/ to force agents to follow strict execution rules.

5. Security, Approvals & Budget Safeguards ​

5.1 Oversight Gate & Approval Queue (Oversight) ​

The primary dashboard safety valve that keeps the business operator in control of all agent actions.

5.1.1 The Approval Queue ​

  • Pending Actions: Displays actions (like rewriting files, executing local scripts, or browsing the web) that require explicit confirmation before running.
  • [Button] Approve / Reject
    • Default state: Waiting.
    • Visible location: Individual tool request cards in the Oversight timeline.
    • Observable side effect: Resolves the backend blocking promise, either allowing the tool payload execution (approved) or returning a cancellation trace to the agent loop (rejected).

5.1.2 Emergency Controls ​

CAUTION

Definitive System Termination: These buttons trigger immediate thread suspension or service termination. Use with care.

  • Emergency Kill Switch (POST /v1/engine/kill, RequireAdmin) β€” @docs OPERATIONS_MANUAL:EmergencyKill
    • Requires NEURAL_ADMIN_TOKEN (operational NEURAL_TOKEN returns 403 Forbidden). Cancels active agents, scheduled jobs and workflows, waits for teardown, resets active statuses to idle, clears mission/task handles, purges pending oversight items, and flushes persistent state. Later scheduler ticks cannot start work while stopped.
    • The dispatch_paused flag is stored in data/governance_settings.json and restored on restart. Admin-protected POST /v1/engine/resume (RequireAdmin) explicitly releases it; resuming one agent does not release this engine pause. Public health responses expose dispatch_paused for dashboard recovery.
    • A pending teardown returns HTTP 409; persistence failure returns an error while the in-memory stop remains latched. Resume also remains stopped if its settings save fails.
  • [Button] Halt Agents
    • Default state: Enabled/Online.
    • Visible location: Oversight dashboard header panel.
    • Observable side effect: Prompts the user with confirm_halt_agents dialog, then halts all active agent thinking loops by sending thread abort signals via handle_kill_switch (POST /v1/engine/kill, RequireAdmin).
  • [Button] Kill Engine
    • Default state: Enabled/Online.
    • Visible location: Oversight dashboard header panel.
    • Observable side effect: Prompts the user with confirm_kill_engine verification, demands typing the uppercase word "SHUTDOWN" in the text input, and then terminates the Axum service process via handle_kill_engine (POST /v1/engine/shutdown, RequireAdmin).

5.1.3 Passive Mirror Mode (Digital Twin) ​

  • Passive Observation: When the system is operated as a digital twin shadowing live systems, the operator can enable Mirror Mode by setting MIRROR_MODE=true in the environment (.env).
  • Mirror Mode Status API (GET /v1/engine/mirror/status) β€” @docs OPERATIONS_MANUAL:MirrorStatus
    • Returns current active mirror mode configuration, passive intercept states, and recent drift alerts.
  • Drift Alerts & Interception: Under Mirror Mode, any attempt by an agent to execute a mutating or dangerous tool (such as modifying filesystem files, running terminal scripts, or writing to external connections) is intercepted. Instead of executing the mutation:
    • The tool execution is blocked safely.
    • A drift alert entry is registered in the engine state.
    • An oversight:drift event is broadcasted over WebSockets to notify the dashboard in real-time.
    • A warning message is returned to the agent's context explaining that the passive twin boundary was enforced.
  • Mirror Mode Status API: Operators can query GET /v1/engine/mirror/status to fetch the current mirror mode configuration and list of active drift alerts.

5.2 Security Dashboard & Cost Quotas ​

  • Governance Settings & Policy API (GET /v1/oversight/settings, PUT /v1/oversight/security/policies) β€” @docs OPERATIONS_MANUAL:GovernanceSettings
    • Governs the settings exposed by the current API, including engine limits, auto-approval policy, default agent budget, swarm depth, and provider configuration. Per-agent and per-mission quotas are enforced before provider calls; no stasis threshold or system-wide budget lockout is configured here. The dashboard tracks hardware safety and cloud costs:
  • [Gauge] Budget Quotas
    • Default state: 0.0 USD used.
    • Visible location: Upper metrics grid of the Oversight dashboard.
    • Observable side effect: Dynamically reflects real-time cumulative LLM API expenses against configured caps.
  • [Metric] Swarm Health & Agent Metrics (GET /v1/oversight/security/health) β€” @docs OPERATIONS_MANUAL:AgentHealth
    • Default state: Perfect health indicator.
    • Visible location: Center-right of the metrics grid.
    • Observable side effect: Evaluates execution failures and warns of service namespace breakers tripping.
  • [Alert] RAM/VRAM Pressure
    • Default state: Inactive.
    • Visible location: Diagnostics monitoring segment.
    • Observable side effect: Emits amber/red warning banners when system RAM or GPU memory utilization approaches VRAM limits.
  • [Toggle] Auto-Approve Safe Skills
    • Default state: false (Disabled β€” fail-closed by default).
    • Visible location: Security settings panel on the Oversight page.
    • Observable side effect: When active, automatically permits standard read/search actions, queueing only write or shell tool calls.

5.3 Secure Credentials Vault ​

The client-side use_vault_store encrypts API keys with PBKDF2-SHA256 (600,000 iterations) + AES-256-GCM and stores the encrypted values in browser localStorage under tadpole-vault-secrets. During task dispatch, the browser decrypts the selected key in memory and sends it in the request body to the configured Tadpole OS engine; the engine uses it for the provider call. The vault is encryption at rest in the browser, not end-to-end encryption from the engine. Use a trusted engine endpoint and HTTPS for remote connections.

Key Security Behaviors:

  • Auto-Lock: The vault automatically locks after 30 minutes of inactivity, clearing the master key from memory.
  • Cross-Tab Lock Sync: The vault uses a BroadcastChannel (tadpole-vault-sync) to broadcast LOCK signals across open browser tabs. Master key material is never transmitted across tabs β€” locking one tab locks all tabs, while each tab unlocks independently.
  • Crypto Offloading: All encryption/decryption is performed inside a background Web Worker (crypto.worker.ts), preventing UI lag on large key operations.
  • In-Memory API & Step-Up Tokens: tadpole_os_api_key and tadpole_os_admin_key in use_settings_store are stripped in partialize and never persisted to localStorage.

5.4 Client-Side API Resilience (Circuit Breaker) ​

To shield the front-end dashboard from backend service failures, network timeouts, or offline logical bunkers, the application implements a client-side Circuit Breaker system for all core service namespaces (e.g., infra, engine, continuity).

5.4.1 Breaker States & Behaviors ​

  • CLOSED: Normal operation. All API requests pass through to the backend service.
  • OPEN: Triggered when a service namespace encounters 5 consecutive failures (VITE_SYSTEM_BREAKER_FAILURE_THRESHOLD [RISK: HIGH]). In this state, further calls to the namespace are instantly rejected on the client side with a CircuitBreakerOpenError to prevent UI freezing.
    • UI Visibility when OPEN: The dashboard header ticker updates to πŸ”΄ DISCONNECTED (RETRYING IN 10s), a toast notification alerts 🚨 Circuit Breaker OPEN: Service [namespace] temporarily offline, and action buttons requiring that service namespace enter a disabled retry state until probing completes in HALF_OPEN.
  • HALF_OPEN: After a 10-second cooldown period (VITE_SYSTEM_BREAKER_COOLDOWN_MS [RISK: HIGH]), the breaker enters a probe state, permitting a single request to test the backend's health. If the request succeeds twice, the breaker resets to CLOSED. If the request fails, it trips back to OPEN and starts a new cooldown.

5.4.2 Log Observability ​

  • πŸ“‘ [Circuit Breaker] NAMESPACE entered HALF_OPEN probe state - The cooldown expired, and the system is probing the service namespace.
  • ❌ [Circuit Breaker] NAMESPACE tripped back to OPEN from HALF_OPEN due to trial failure - The health probe failed, indicating the service is still down (e.g., local Rust engine is stopped).

6. The Workspace Heartbeat (Observability) ​

6.1 Visualizing the Team and Codebase (Engine_Dashboard + Swarm_Visualizer) ​

A real-time force-graph visualizer showing how your agents interact and how your project files depend on each other. Accessible via the Engine sidebar item.

  • Pulse Indicators: Visualizes real-time communication messages via a 10Hz binary telemetry stream.
  • Navigation Controls: Move backward and forward through your traversal path, similar to web browser navigation.
  • High-Res Export: Download high-quality PNG charts of your workflow hierarchies directly from the canvas.
  • Detach & Recall: Pop the visualizer into a dedicated browser window for persistent multi-monitor oversight. Recall it back from the placeholder panel on the main dashboard.

6.2 Neural Footprint & Token Cost Monitoring (Command_Table) ​

A cost-accounting dashboard for monitoring API expenses. The Command_Table component is embedded in the Oversight page:

Interactive Elements:

  • [Table Row] Interaction Logs
    • Default state: Populated with recent prompt-response pairs.
    • Visible location: Center region of the Command_Table panel.
    • Observable side effect: Clicking a row expands the panel to show raw request and response body text.
  • [Column Header] Latency Tracker
    • Default state: 0ms (or latency of the most recent query).
    • Visible location: Upper-right column header of Command_Table.
    • Observable side effect: Displays execution durations in milliseconds to pinpoint slower local or cloud models.
  • [Cell] Token Efficiency
    • Default state: 0 tokens (accumulated).
    • Visible location: Inside each query row of Command_Table.
    • Observable side effect: Details prompt and response token lengths to help optimize prompt templates.

6.3 Parity Guard ​

The parity_guard.py script serves as the codebase's canonical drift detector, ensuring documentation, Rust routes, environmental variables, and skill manifests remain in absolute alignment.

6.3.1 Invocation Details ​

Run the verification check via the Python entry point:

powershell
python execution/parity_guard.py .

To run the automated fix (such as synchronizing API_REFERENCE.md with modified schemas):

powershell
python execution/parity_guard.py . FIX=1

6.3.2 Failure Modes Detected ​

The script evaluates and alerts on five specific drift types:

  1. Axum Route Drift: Flags endpoints defined in server-rs/src/router.rs that are missing from docs/openapi.yaml (legacy root endpoints trigger warnings, /v1 endpoints trigger errors).
  2. Environmental Drift: Flags Rust logic calling std::env::var("VAR") that is not declared in .env.example.
  3. Manifest Drift: Validates data/skills/*.json manifests to ensure their designated execution scripts exist on disk.
  4. Documentation Drift: Evaluates @docs tags in Rust code. If code changes occur, it requires corresponding markdown file timestamp updates.
  5. API Doc Drift: Checks if API_REFERENCE.md timestamps lag behind openapi.yaml modifications.

6.3.3 Exit Code Translation ​

  • Exit Code 0: Full alignment. The system has no detected drift.
  • Exit Code 1: Mismatches detected. Detailed failures are printed to standard output.

NOTE

Parity Verification: The parity_guard.py script does not consume OPERATIONS_MANUAL.md directly. It runs independent AST scans against the Rust source directories, OpenAPI files, and environment templates.

6.4 Latency Benchmarks & Dual-Trace Analytics (Benchmark_Analytics) ​

The Performance Analytics Hub (Benchmark_Analytics.tsx) provides real-time hardware profiling and execution trace visualization across all autonomous agent nodes in the swarm.

6.4.1 Hardware Latency Benchmarks (/benchmarks) ​

  • Interactive Performance Profiling: Displays mean execution latencies, P95/P99 distributions, target values, and pass/fail statuses across all registered test categories (BM-RUN, BM-DB, BM-RL, BM-MCP, BM-WS, BM-FS, BM-HTTP, BM-SEC).
  • On-Demand Execution: Allows operators to trigger execution profiling with single-click runner buttons (BM-RUN-01, BM-DB-01, BM-RL-01) calling POST /v1/benchmarks/run/:test_id.
  • Historical Comparison: Selecting multiple historical benchmark runs opens a side-by-side variance analysis showing latency deltas and percentage performance shifts.

6.4.2 Dual-Trace Swarm Analytics (/analytics) ​

  • Side-by-Side Telemetry Playback: Uses the DualTracePlayback inspector to compare benchmark execution traces. The visualization does not certify a World Model or prove correctness.
  • Trace Event Inspection: Visualizes hypothesis generation, certified backtest parity, discriminative probes, latency variance observations, and execution logs step-by-step.
  • Automated Comparison: Navigating to /analytics automatically selects the latest two benchmark runs for immediate side-by-side inspection.

TIP

Technical Specification: For Criterion benchmark setups, CLI usage (cargo bench), and hardware claim criteria, refer to Benchmark_Spec.md.


Appendix A: Daily Operational Workflows ​

Example: Previewing a Synthetic Customer Feedback Workflow ​

  1. Prepare Synthetic Input: Use fabricated review text without real customer details.
  2. Review the Proposed Steps: Confirm the intended analysis and redaction requirements without importing the input into a company store.
  3. Stop at Preview: Do not dispatch the workflow through the generic runner, persist a report, or publish results until company-scoped execution is implemented.

Appendix B: Maintenance & Local Backups ​

B.1 Directory Structure & Backups ​

To protect your configurations, include these folders in your regular office backups:

  • data/state/tadpole.db: Default durable SQLite database (mapped configurations, agent profiles, and project logs). If it is absent and legacy data/tadpole.db exists, startup copies the database and its WAL/SHM sidecars to the canonical path and leaves the legacy source in place.
  • data/workspaces/<cluster-id>/: Runner-created cluster workspace files and mission artifacts. Memory listing and encrypted snapshots instead prefer data/state/workspaces/ when present and otherwise fall back to this runner workspace root; they do not merge both roots.
  • backups/ (or data/backups/ / TADPOLE_BACKUP_ROOT): Default authorized output destination for TADPOLE_SNAP_V2 encrypted snapshot archives (.tadpole-snap.enc). Paths outside authorized roots are rejected with 403 Forbidden.
  • data/workspaces/<cluster-id>/agents/<agent-id>/memory.lance and data/workspaces/<cluster-id>/missions/<mission-id>/scope.lance: Cluster-scoped agent memory and mission knowledge stores when built with the optional vector-memory feature. Memory listing and snapshots prefer data/state/workspaces/ when that directory exists and otherwise use data/workspaces/.
  • .env: Port definitions and local path configurations (keep private).

Note: Tadpole OS features an automated hourly background backup daemon (StateBackupDaemonService, admin-gated via RequireAdmin) with TADPOLE_SNAP_V2 ChaCha20 + HMAC-SHA256 encryption (210,000-round PBKDF2-HMAC-SHA512; legacy V1 100k decrypt-compatible), 48-hour rolling retention pruning, and operator selection between Local Storage and Cloud Sync folders (via TADPOLE_BACKUP_ROOT) in Settings. Passphrases are never written to system_backup.json.

B.2 Automatic Hardware Recovery ​

If your local computer runs low on GPU memory (VRAM) while loading a local Ollama model, the engine automatically attempts to reload a smaller, quantized fallback model (e.g. q4_K_M) to prevent out-of-memory crashes and preserve project progress.

B.3 Global Environment Variables ​

Tadpole OS leverages environment variables to manage hardware performance, network bindings, database files, and security policies.

πŸ” Secrets & Authentication
  • NEURAL_TOKEN [RISK: HIGH] β€” Type: string; Default: "". Operational API token (AuthenticatedRole::Deploy) required to authenticate client-dashboard requests.
  • NEURAL_ENGINE_ACCESS_TOKEN [RISK: HIGH] β€” Type: string; Default: "". Core sidecar access token (takes precedence over NEURAL_TOKEN when set).
  • NEURAL_ADMIN_TOKEN / ADMIN_TOKEN [RISK: HIGH] β€” Type: string; Default: "". Administrative token (AuthenticatedRole::Admin) required for all RequireAdmin routes (403 Forbidden for NEURAL_TOKEN); mandatory and distinct from NEURAL_TOKEN when TADPOLE_ENV=production.
  • OVERSIGHT_PUBLIC_KEY [RISK: HIGH] β€” Type: string; Default: "". 64-hex Ed25519 verifying key pinned for signed oversight decisions (mandatory in production).
  • TADPOLE_BACKUP_PASSPHRASE [RISK: HIGH] β€” Type: string; Default: "". Encryption passphrase (β‰₯12 chars) for automated TADPOLE_SNAP_V2 backups (never serialized to system_backup.json).
  • TADPOLE_BACKUP_ROOT [RISK: MEDIUM] β€” Type: string; Default: "". Additional authorized backup root directory (outside default backups/ and data/backups/).
  • AUDIT_PRIVATE_KEY [RISK: HIGH] β€” Type: string; Default: "". The private key seed used to cryptographically sign transaction logs.
  • WORKFLOW_ENCRYPTION_KEY [RISK: HIGH] β€” Type: string; Default: "". Encryption key for securing workflow states.
  • CAPABILITY_KEY_CURR [RISK: HIGH] β€” Type: string; Default: "". Current signing key for client tokens.
  • CAPABILITY_KEY_PREV [RISK: HIGH] β€” Type: string; Default: "". Previous signing key for client tokens.
  • TEST_PROVIDER_KEY [RISK: HIGH] β€” Type: string; Default: "". Used in integration tests to bypass API keys.
  • OPENAI_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for OpenAI model querying.
  • GROQ_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for Groq model querying.
  • ANTHROPIC_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for Anthropic model querying.
  • GOOGLE_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for Google Gemini model querying.
  • INCEPTION_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for Inception model querying.
  • DEEPSEEK_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for DeepSeek model querying.
  • REPLICATE_API_KEY [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK API key for Replicate model querying.
  • DISCORD_WEBHOOK [RISK: HIGH] β€” Type: string; Default: "". ☁️ REQUIRES NETWORK Discord notification webhook url.
πŸ›‘οΈ Security Posture
  • TADPOLE_ENV [RISK: HIGH] β€” Type: string; Default: development. Set to production to enforce fail-closed startup checks (NEURAL_ADMIN_TOKEN, OVERSIGHT_PUBLIC_KEY, ALLOWED_ORIGINS).
  • PRIVACY_MODE [RISK: HIGH] β€” Type: boolean; Default: false. Routes runner LLM calls to local endpoints and blocks /v1/engine/live-voice (403 Forbidden); not a host-level egress firewall.
  • TADPOLE_ALLOW_LOCAL_HTTP [RISK: HIGH] β€” Type: boolean; Default: false. Allows backend Rust SSRF guard to reach local HTTP LLM providers (does not affect browser SubtleCrypto).
  • AUTO_APPROVE_SAFE_SKILLS [RISK: HIGH] β€” Type: boolean; Default: false. Allows safe read-only operations to bypass the Oversight Queue when explicitly enabled.
  • TADPOLE_TRUST_INTERPRETERS [RISK: HIGH] β€” Type: boolean; Default: false. Opt-in allowing agent shell execution of python, node, cargo, npm, pnpm, rustc.
🌐 Network & Binding
  • PORT [RISK: LOW] β€” Type: number; Default: 8000. The HTTP server listen port.
  • BIND_ADDRESS [RISK: HIGH] β€” Type: string; Default: 127.0.0.1. The local loopback IP address of the engine.
  • ALLOWED_ORIGINS [RISK: HIGH] β€” Type: string; Default: http://localhost:5173. List of permitted browser CORS locations.
  • TRUST_PRIVATE_NETWORKS [RISK: HIGH] β€” Type: boolean; Default: false. Bypasses proxy verification on local subnet cards.
  • ALLOW_UNSAFE_CORS [RISK: HIGH] β€” Type: boolean; Default: false. Enables unsafe open CORS profiles.
  • TRUSTED_PROXIES [RISK: HIGH] β€” Type: string; Default: "". Permitted proxy IP lists.
  • VITE_SYSTEM_BREAKER_FAILURE_THRESHOLD [RISK: HIGH] β€” Type: number; Default: 5 (enforced client-side). Maximum consecutive failures allowed before tripping breaker.
  • VITE_SYSTEM_BREAKER_COOLDOWN_MS [RISK: HIGH] β€” Type: number; Default: 10000 (enforced client-side). Cooldown time before attempting Half-Open checks.
πŸ’Ύ Persistence & Storage
  • DATABASE_URL [RISK: HIGH] β€” Type: string; Default: sqlite://data/state/tadpole.db. Database connection file path (automatically checks data/state/tadpole.db with legacy fallback).
  • DATA_DIR [RISK: MEDIUM] β€” Type: string; Default: ./data. Root data storage root path.
  • WORKSPACE_ROOT [RISK: MEDIUM] β€” Type: string; Default: ... Base sandboxing root path for relative file operations.
  • RESOURCE_ROOT [RISK: LOW] β€” Type: string; Default: ./resources. Storage path for system instructions and graphics.
  • STATIC_DIR [RISK: MEDIUM] β€” Type: string; Default: dist. Directory path for static frontend assets.
βš™οΈ Engine Limits
  • MAX_AGENTS [RISK: MEDIUM] β€” Type: number; Default: 50. The registry limit boundary for maximum concurrent agent identities.
  • MAX_CLUSTERS [RISK: MEDIUM] β€” Type: number; Default: 10. Caps active project directories.
  • MAX_SWARM_DEPTH [RISK: MEDIUM] β€” Type: number; Default: 5. Hard limits recursive agent-spawning depth on local computers.
  • MAX_TASK_LENGTH [RISK: MEDIUM] β€” Type: number; Default: 32768. Caps token consumption boundaries per prompt.
  • ENGINE_RATE_LIMIT [RISK: MEDIUM] β€” Type: number; Default: 2000. Maximum HTTP requests allowed per minute per IP to prevent network overloading.
  • DEFAULT_AGENT_BUDGET_USD [RISK: MEDIUM] β€” Type: number; Default: 1.0. The spending budget limit allocated to new sub-agents.
  • DEFAULT_MISSION_BUDGET_USD [RISK: MEDIUM] β€” Type: number; Default: 5.0. The default spending budget limit allocated to newly created missions.
  • WORKFLOW_CONCURRENCY_LIMIT [RISK: MEDIUM] β€” Type: number; Default: 5. Limits simultaneous execution loops for SOP workflows.
  • WORKFLOW_AGENT_TIMEOUT_SECS [RISK: MEDIUM] β€” Type: number; Default: 600. Time limit for sub-agent executions in workflows.
  • MAX_CONCURRENT_RUNNERS [RISK: MEDIUM] β€” Type: number; Default: 10. Global upper limit across route-started agents and every nested swarm branch; excess branches fail with a retryable capacity response instead of bypassing the operator's resource ceiling.
πŸ€– Provider Endpoints
  • OLLAMA_HOST [RISK: MEDIUM] β€” Type: string; Default: http://localhost:11434. Endpoint address for local model runs.
  • LANCEDB_DEDUPE_THRESHOLD [RISK: MEDIUM] β€” Type: number; Default: 0.2 (.env.example: 0.85). Cosine distance/similarity threshold for RAG deduplication.
  • LANCEDB_DRIFT_THRESHOLD [RISK: MEDIUM] β€” Type: number; Default: 0.85 (.env.example: 0.6). Threshold for semantic drift alerts and re-indexing triggers.
  • SME_SYNC_INTERVAL_MINS [RISK: MEDIUM] β€” Type: number; Default: 30. Re-indexing interval for background data sync workers.
  • FAILOVER_AMBER_THRESHOLD [RISK: MEDIUM] β€” Type: number; Default: 3. Failure count leading to provider health warning.
  • FAILOVER_RED_THRESHOLD [RISK: MEDIUM] β€” Type: number; Default: 5. Failure count leading to provider offline state.
  • FAILOVER_MAX_ATTEMPTS [RISK: MEDIUM] β€” Type: number; Default: 3. Maximum retry attempts to alternative providers.
  • PROVIDER_TIMEOUT_SECS [RISK: MEDIUM] β€” Type: number; Default: 60. Timeout limit on active model generations.
  • PIPER_MODEL_PATH [RISK: MEDIUM] β€” Type: string; Default: "". Local path mapping to Piper text-to-speech weights.
  • VAD_MODEL_PATH [RISK: MEDIUM] β€” Type: string; Default: "". Local path mapping to Silero VAD voice model weights.
  • WHISPER_MODEL_PATH [RISK: MEDIUM] β€” Type: string; Default: "". Local path mapping to Whisper speech recognition weights.
πŸ” Observability & Telemetry
  • RUST_LOG [RISK: SAFE] β€” Type: string; Default: server_rs=info,tower_http=debug. Diagnostic logging output levels.
  • DISABLE_TELEMETRY [RISK: LOW] β€” Type: boolean; Default: false. Stops logging OTel telemetry.
  • HEARTBEAT_INTERVAL_SECS [RISK: LOW] β€” Type: number; Default: 3. Heartbeat update ticks.
πŸ› οΈ Dev / Test / CI
  • BUNKER_NODES [RISK: HIGH] β€” Type: string; Default: bunker-1:Swarm Bunker 1:localhost. Node identification lists formatted as <id>:<display_name>:<host> tuples, comma-separated for multiple entries.
  • TADPOLE_NULL_PROVIDERS [RISK: MEDIUM] β€” Type: boolean; Default: false. Mocks LLM responses for CI/testing.
  • LEGACY_JSON_BACKUP [RISK: MEDIUM] β€” Type: boolean; Default: false. Keeps old JSON backup files active.
  • SKIP_DB_SEED [RISK: MEDIUM] β€” Type: boolean; Default: false. Skip database default seeding.
  • CLUSTER_ID [RISK: LOW] β€” Type: string; Default: local-1. Unique identifier tag for the local node.
  • KUBERNETES_SERVICE_HOST [RISK: LOW] β€” Type: string; Default: "". Automatically loaded host address within cluster environments.

B.4 Build Feature Flags ​

Tadpole OS provides compilation flags that allow optimizing VRAM footprint on office computers.

  • vector-memory [RISK: MEDIUM] β€” Compiles LanceDB and Apache Arrow libraries into the server to enable persistent semantic memory indexing. Stores agent and mission vectors under their cluster workspace in data/workspaces/<cluster-id>/. Disabled by default (server-rs/Cargo.toml has default = []).
  • neural-audio [RISK: MEDIUM] β€” Integrates the ONNX runtime (ort), Whisper speech-to-text, and audio utilities to support real-time voice streaming. Disabled by default on legacy CPUs.

Sovereign Intelligence Architecture.