Skip to content

IMPORTANT

AI Assist Note (Knowledge Heritage): This document is part of the "Sovereign Reality" documentation.

  • @docs ARCHITECTURE:Documentation
  • Failure Path: Information drift, legacy terminology, or documentation mismatch.
  • Telemetry Link: Cross-reference with execution/parity_guard.py results.

AI Assist Note

Automated governance and architectural tracking.

🔍 Debugging & Observability

Traceability via parity_guard.py.

📄 API Contract: Tadpole OS Engine

Status: ProductionVersion: 1.1.13Auth: Bearer

@docs ARCHITECTURE:ApiContract

This is the minimalist REST contract for the Tadpole OS Engine. For high-level architecture, see the Architecture Overview.


⚡ Quick Start (3 Steps)

  1. Set Token: export NEURAL_TOKEN=your_secure_token
  2. Verify Engine: curl -H "Authorization: Bearer $NEURAL_TOKEN" http://localhost:8000/v1/engine/health
  3. List Agents: curl -H "Authorization: Bearer $NEURAL_TOKEN" http://localhost:8000/v1/agents

🛰️ Standard Headers

Every response from the engine includes these observability headers:

HeaderDescription
X-Request-IdUnique UUID for end-to-end request tracing.
X-RateLimit-LimitMaximum requests allowed per 60s window.
X-RateLimit-RemainingRemaining requests in the current window.

🔌 REST Endpoints (v1)

Health & Control

MethodPathDescription
GET/v1/engine/healthEngine health & uptime pulse.
POST/v1/engine/deployTrigger external deployment logic.
POST/v1/engine/killEmergency shutdown of all active agent tasks.
POST/v1/engine/speakText-to-Speech (TTS) synthesis.

Agents & Swarms

MethodPathDescription
GET/v1/agentsList all registered agents (Paginated).
POST/v1/agentsRegister a new agent node.
GET/v1/agents/{id}Retrieve a specific agent's schematic.
PUT/v1/agents/{id}Update agent configuration.
POST/v1/agents/{id}/tasksExecute: Dispatch a task to the agent runner.
DELETE/v1/agents/{id}De-register an agent node.

Oversight & Governance

MethodPathDescription
GET/v1/oversight/pendingList all actions awaiting human approval.
POST/v1/oversight/{id}/decideApprove or Reject a tool execution.
GET/v1/oversight/ledgerReview historical governance decisions.
GET/v1/oversight/security/integrityVerify the Merkle Audit Chain.

📄 Pagination

All list endpoints support cursor-free pagination:

ParameterDefaultMaxDescription
page11-indexed page number.
per_page25100Items per page (Clamped 1-100).

Response Envelope:

json
{
  "data": [...],
  "total": 42,
  "_links": {
    "self": { "href": "/v1/agents?page=1", "method": "GET" },
    "next": { "href": "/v1/agents?page=2", "method": "GET" }
  }
}

⚠️ Error Protocol (RFC 9457)

Errors return application/problem+json for machine-readable remediation.

StatusCodeMeaning
401UNAUTHORIZEDInvalid or missing NEURAL_TOKEN.
429RATE_LIMITEDEngine-level token bucket exhausted.
507OOM_QUANTProvider VRAM OOM; suggestive of quantization fallback.

TIP

Versioning Strategy: All business logic is nested under /v1/. Root-level paths are legacy and will be deprecated. Always use the /v1 prefix for new integrations.

Sovereign Intelligence Architecture.