IMPORTANT
AI Context & Knowledge Heritage
- Subsystem: Architecture & Documentation / Core Docs / TROUBLESHOOTING
- Architecture:
@docs ARCHITECTURE:Documentation - Failure Path: Information drift, legacy terminology, or documentation mismatch.
- Observability: Traceability via
execution/parity_guard.py
๐งฉ Troubleshooting & Diagnostics โ
Intelligence Level: Operational (Level 4) Status: Operational troubleshooting guidance; this is not a production-readiness certification Version: 1.1.464 Last Hardened: 2026-11-20 Classification: Sovereign
IMPORTANT
๐ Phase 0: AI-Indexable Asset Check (IDENTITY.md Directive #6 โ Always First) โ
Before inspecting any log, UI panel, or source file, check the AI-indexable assets in order:
docs/ERROR_REGISTRY.jsonโ search by symptom keyword or error code. It maps error codes to source files and remediation paths.docs/SECURITY_REGISTRY.jsonโ search by security policy (SEC-01toSEC-08) or threat vector (ASI01โASI10,AML.TXXXX) to identify enforcing files and validation commands.docs/TELEMETRY_MAP.jsonโ trace by tag (e.g.,[VaultStore],[AgentService]) to find the log emitter location.- For budget exhaustion, look up the runtime code
BUDGET_EXHAUSTEDinERROR_REGISTRY.json.STASIS,LOGIC_BLOCKER, andCOMPLIANCE_DRIFTare governance labels, not registered runtime errors; the corresponding procedures are not automatic engine behavior.
Only proceed to the sections below if these assets yield no result.
๐๏ธ System Connectivity โ
๐ด Dashboard shows "OFFLINE" โ
Symptoms: The PageHeader status indicator is red, and "Connection Lost" toasts appear.
- Check Engine Status: Ensure the Rust backend is running (
npm run engineorcargo run --release). - Verify Endpoint: Go to System Config and ensure
TadpoleOSUrlmatches the server address (typicallyhttp://localhost:8000). - CORS & Origin Mismatch: If accessing from a remote IP (e.g., Tailscale), ensure the server binds
0.0.0.0AND lists the exact browser origin inALLOWED_ORIGINS(in production, emptyALLOWED_ORIGINSfails closed and rejects all browser CORS/WebSocket origins).
๐ WebSocket Connection Refused or 403 Forbidden on Admin Actions โ
Symptoms: "WebSocket Error: 401 Unauthorized" or 403 Forbidden on backup, kill-switch, agent CRUD, or oversight settings.
- Token Handshake: The
NEURAL_TOKENin your.envMUST match the Neural Engine Access Token in your dashboard settings. - Step-Up Admin Elevation (
403 Forbidden): Privileged routes enforceRequireAdmin(NEURAL_ADMIN_TOKEN). Enter yourNEURAL_ADMIN_TOKENin Settings โ Step-Up Administrative Token (held strictly in memory, never saved tolocalStorage). - Privacy Shield & Live Voice (
403):/v1/engine/live-voicereturns403 Forbiddenwhile Privacy Mode is active and requiresSec-WebSocket-Protocol: bearer.<token>pre-auth. - Interpreter Blocked (
command_guard): Agent shell calls invokingpython,node,cargo,npm,pnpm, orrustcare denied unlessTADPOLE_TRUST_INTERPRETERS=1is explicitly enabled. - Redaction Intercept: If the token contains special characters that trigger the
secret_redactor.rsregex, it might be stripped. Use a standard hex string (32+ chars).
๐ง Intelligence & LLMs โ
๐ Agent Returns No Response (Silent Failure) โ
Symptoms: Mission log shows "Thinking..." indefinitely or transitions directly to "Idle" without output.
- Registry Audit: Go to AI Provider Manager โ scroll to Model Registry. Ensure the model assigned to the agent actually exists in the registry.
- Vault Lock: If the Neural Vault is locked, the engine cannot access decrypted API keys. Unlock the vault to resume operations.
- Quota Exhaustion: Check the RPM/TPM metrics in the System Log. If you've hit model limits, the agent will "park" until the window resets.
๐งช Malformed Tool Calls (Groq/Llama) โ
Symptoms: "Error: Malformed JSON in tool call."
- Self-Healing Pass: The engine automatically attempts a re-synthesis pass for common Llama-3 malformations. If it still fails, decrease the agent's Temperature to
0.1or0.3for higher precision.
๐พ Filesystem & Workspaces โ
๐ซ "Access Denied" or "Sandbox Escape" โ
Symptoms: Tool fails with a security error when reading/writing files.
- Canonicalization Error: Tadpole OS uses strict path verification (
server-rs/src/adapter/filesystem.rs). Paths must be relative to the cluster root โ do not use../to attempt to exit the workspace. - Windows Paths: Leave
DATABASE_URLunset to usedata/state/tadpole.db, or set a valid path such assqlite:data/state/tadpole.dbor an absolute SQLite URL. When unset, an existing legacydata/tadpole.dbis copied to the canonical path at startup if the canonical database is absent.
๐ Security & Vault โ
๐ก๏ธ Forget Master Password โ
Symptoms: Unable to unlock the Neural Vault.
- Emergency Reset: Click the Emergency Vault Reset button at the bottom of the unlock screen. This will purge all encrypted provider keys from the registry, allowing you to set a new password and re-enter your keys.
โ๏ธ Audit Trail Broken โ
Symptoms: UI shows "Verification Failed" on audit logs.
- Tamper Detection: The Merkle Audit Trail (
server-rs/src/security/audit/) detects if the SQLite database has been manually edited. Check the Security Dashboard integrity status, or query the integrity endpoint:curl -H "Authorization: Bearer <NEURAL_TOKEN>" http://localhost:8000/v1/oversight/security/integrity. You can also run unit tests viacargo test --manifest-path server-rs/Cargo.toml security::auditto verify the logic.
๐ ๏ธ Performance & Telemetry โ
๐ UI Jank during Swarming โ
Symptoms: Browser becomes unresponsive when 5+ agents are active.
- RAF Throttling: Ensure Telemetry Batching is enabled in Settings. This flushes engine pulses to the UI on
requestAnimationFrameto maintain 60fps. - Visualizer Detachment: If the Swarm Visualizer is too heavy, click the Detach icon to move it to a separate window, freeing up the main thread.
๐ด OpenTelemetry Export Error (TonicTracesClient) โ
Symptoms: Log shows ERROR opentelemetry_sdk: BatchSpanProcessor.ExportError ... connection refused.
- Collector Offline: This occurs if the OpenTelemetry collector (e.g. Jaeger or Datadog) is not running on your host machine.
- To Disable: Set
OTEL_STDOUT_EXPORTER=falseand unset or comment outOTEL_EXPORTER_OTLP_ENDPOINTin your.envto prevent the engine from attempting to send trace spans.
