{
  "record_type": "teleon_pods_and_middlelayers_portal/v1",
  "observed_model_calls": 0,
  "pod_count": 220,
  "pod_contract": {
    "record_type": "teleon_component_pod_team/v1",
    "summary": "Every functional component and atomic queue is governed by a 5-role managing pod rather than a lone worker, pairing swappable 0-call engines with open-search solvers, non-destructive parent-preserving supervisors, diagnostic repair agents, and orthogonal CPOP distillers.",
    "roles": [
      {
        "role_id": "R1_DET_ENGINE",
        "short_label": "0-Call Slot",
        "title": "Swappable 0-Call Deterministic Engine",
        "responsibility": "Executes SQL, BM25F/Roaring, AST, or fuel-metered Wasm adapters behind a fixed typed engine_slot/v1, pairing pinned upstream OSS adapters with clean Teleon-native twins."
      },
      {
        "role_id": "R2_PRIMARY_SOLVER",
        "short_label": "Solver+OpenSearch",
        "title": "Primary Solver & Open-Search Agent",
        "responsibility": "Runs under Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions on 1 self-contained depth-1 flat task row per lease."
      },
      {
        "role_id": "R3_QUEUE_SUPERVISOR",
        "short_label": "Split-Supervisor",
        "title": "Parent-Preserving Queue & Horizon Monitor",
        "responsibility": "Watches queue depth, stalls, and context horizons; explodes oversized tasks into wave-ordered flat subtask rows while preserving the original parent intact for rollup verification and long-horizon benchmarking."
      },
      {
        "role_id": "R4_DIAGNOSTIC_REPAIR",
        "short_label": "Repair+Shim",
        "title": "Diagnostic, Contract-Review & Shim Agent",
        "responsibility": "Reviews whether the edge contract itself failed before mutating code (LE-CONTRACT-002), repairs lease timeouts and schema mismatches, and synthesizes 0..32-step middlelayer shims."
      },
      {
        "role_id": "R5_VERIFIER_DISTILLER",
        "short_label": "CPOP+Distill",
        "title": "Orthogonal Verifier & Sister 0-Call Distiller",
        "responsibility": "Grades outputs across an independent model family (reviewer != producer) and distills recurring high-cost agent wins into 0-call deterministic Sister code."
      }
    ]
  },
  "middlelayer_architecture": {
    "record_type": "teleon_middlelayer_wrapper_architecture/v1",
    "envelope_layers": [
      "frustration_avoidance",
      "flexible_pointer_or_slice_carrier",
      "thp_schema_and_version_handshake",
      "surface_account_and_ring_entitlement",
      "idempotent_effect_journal_and_tracking",
      "preflight_self_repair_and_zero_call_check"
    ],
    "kleisli_onion_range": "0..32 composable ComponentMiddlewareStep layers",
    "database_substrate_policy": "acid_commit_kernel_v1 (0 inline agent wrapper steps; strictly unwrapped)",
    "flexible_carriers": [
      "inline_object",
      "swhid_cas_pointer",
      "http_206_byte_slice",
      "d1_row_cursor",
      "signed_r2_uri"
    ]
  },
  "onion_steps": [
    {
      "step_index": 1,
      "step_id": "mw.thp_version_upcast_and_clamp",
      "purpose": "Upcasts older wire fields and clamps numeric parameters into admitted bounds."
    },
    {
      "step_index": 2,
      "step_id": "mw.flexible_pointer_and_slice_carrier",
      "purpose": "Negotiates inline (<32 KB), cas_pointer (swh:1:*), or HTTP 206 byte_slice payload carriers."
    },
    {
      "step_index": 3,
      "step_id": "mw.frustration_avoidance_gate",
      "purpose": "Aborts known loop-induced failure signatures before spending model tokens."
    },
    {
      "step_index": 4,
      "step_id": "mw.idempotent_effect_journal",
      "purpose": "Enforces idempotency keys and blocks blind retries on unknown external outcomes (409 reconcile_unknown_outcome_before_retry)."
    },
    {
      "step_index": 5,
      "step_id": "mw.preflight_zero_call_efficiency",
      "purpose": "Short-circuits directly to verified 0-call deterministic code or exact SWHID cache hits."
    },
    {
      "step_index": 6,
      "step_id": "mw.budget_hold_and_remaining_deadline",
      "purpose": "Propagates remaining_deadline_ms and enforces two-phase micro-USD budget ceilings."
    },
    {
      "step_index": 7,
      "step_id": "mw.engine_slot_dispatch",
      "purpose": "Executes selected OSS adapter, Teleon-native engine, or Wasm sandbox component."
    },
    {
      "step_index": 8,
      "step_id": "mw.artifact_triad_separation",
      "purpose": "Separates exact_bytes_swhid, interpretation_schema, and use_permissions."
    },
    {
      "step_index": 9,
      "step_id": "mw.secret_scrub_and_lineage_telemetry",
      "purpose": "Rejects raw secrets on wire and records SWHID lineage + pass@k/pass^k telemetry."
    }
  ],
  "sample_pods": [
    {
      "record_type": "teleon_component_pod_descriptor/v1",
      "atomic_queue_id": "aq01_query_multiply",
      "slug": "query_multiply_and_localize",
      "heading": "Query Multiply",
      "engine_slot_id": "slot.aq01_query_multiply",
      "conformance_kit_id": "kit.query_multiply_and_localize.conformance_v1",
      "swappable_engines": [
        {
          "engine_id": "aq01_query_multiply_oss_adapter_v1",
          "origin": "pinned_github_spdx_container",
          "model_calls": 0
        },
        {
          "engine_id": "aq01_query_multiply_teleon_native_v1",
          "origin": "teleon_native_deterministic",
          "model_calls": 0
        },
        {
          "engine_id": "aq01_query_multiply_wasm_sandbox_v1",
          "origin": "wasmtime_component_sandbox",
          "model_calls": 0
        }
      ],
      "roles": [
        {
          "role_id": "R1_DET_ENGINE",
          "label": "0-Call Engine",
          "slot_id": "slot.aq01_query_multiply",
          "detail": "Coprime CRT & SKOS query expander"
        },
        {
          "role_id": "R2_PRIMARY_SOLVER",
          "label": "Solver Agent",
          "formula": "Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions",
          "detail": "Domain-slang & blind-spot query scout"
        },
        {
          "role_id": "R3_QUEUE_SUPERVISOR",
          "label": "Supervisor",
          "companion_queue": "aq41_supervise_split_keep_parent",
          "preserves_parent_task": true
        },
        {
          "role_id": "R4_DIAGNOSTIC_REPAIR",
          "label": "Repair Agent",
          "companion_queues": [
            "aq42_pod_repair_and_twin_wrap",
            "aq33_troubleshoot_code",
            "aq12_fix_and_disambiguate"
          ],
          "contract_first_policy": "LE-CONTRACT-002"
        },
        {
          "role_id": "R5_VERIFIER_DISTILLER",
          "label": "Verifier & Distiller",
          "companion_queues": [
            "aq11_verify_sandbox",
            "aq28_sister_distill"
          ],
          "orthogonal_family_required": true
        }
      ]
    },
    {
      "record_type": "teleon_component_pod_descriptor/v1",
      "atomic_queue_id": "aq02_scrape_fetch",
      "slug": "scrape_and_source_fetch",
      "heading": "Scrape & Source Fetch",
      "engine_slot_id": "slot.aq02_scrape_fetch",
      "conformance_kit_id": "kit.scrape_and_source_fetch.conformance_v1",
      "swappable_engines": [
        {
          "engine_id": "aq02_scrape_fetch_oss_adapter_v1",
          "origin": "pinned_github_spdx_container",
          "model_calls": 0
        },
        {
          "engine_id": "aq02_scrape_fetch_teleon_native_v1",
          "origin": "teleon_native_deterministic",
          "model_calls": 0
        },
        {
          "engine_id": "aq02_scrape_fetch_wasm_sandbox_v1",
          "origin": "wasmtime_component_sandbox",
          "model_calls": 0
        }
      ],
      "roles": [
        {
          "role_id": "R1_DET_ENGINE",
          "label": "0-Call Engine",
          "slot_id": "slot.aq02_scrape_fetch",
          "detail": "HTTP Range, RSS & SPDX fetcher"
        },
        {
          "role_id": "R2_PRIMARY_SOLVER",
          "label": "Solver Agent",
          "formula": "Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions",
          "detail": "Esoteric API & dynamic parser author"
        },
        {
          "role_id": "R3_QUEUE_SUPERVISOR",
          "label": "Supervisor",
          "companion_queue": "aq41_supervise_split_keep_parent",
          "preserves_parent_task": true
        },
        {
          "role_id": "R4_DIAGNOSTIC_REPAIR",
          "label": "Repair Agent",
          "companion_queues": [
            "aq42_pod_repair_and_twin_wrap",
            "aq33_troubleshoot_code",
            "aq12_fix_and_disambiguate"
          ],
          "contract_first_policy": "LE-CONTRACT-002"
        },
        {
          "role_id": "R5_VERIFIER_DISTILLER",
          "label": "Verifier & Distiller",
          "companion_queues": [
            "aq11_verify_sandbox",
            "aq28_sister_distill"
          ],
          "orthogonal_family_required": true
        }
      ]
    },
    {
      "record_type": "teleon_component_pod_descriptor/v1",
      "atomic_queue_id": "aq03_interrogate_sources",
      "slug": "interrogate_observations",
      "heading": "Scenario-Situate & Interrogate",
      "engine_slot_id": "slot.aq03_interrogate_sources",
      "conformance_kit_id": "kit.interrogate_observations.conformance_v1",
      "swappable_engines": [
        {
          "engine_id": "aq03_interrogate_sources_oss_adapter_v1",
          "origin": "pinned_github_spdx_container",
          "model_calls": 0
        },
        {
          "engine_id": "aq03_interrogate_sources_teleon_native_v1",
          "origin": "teleon_native_deterministic",
          "model_calls": 0
        },
        {
          "engine_id": "aq03_interrogate_sources_wasm_sandbox_v1",
          "origin": "wasmtime_component_sandbox",
          "model_calls": 0
        }
      ],
      "roles": [
        {
          "role_id": "R1_DET_ENGINE",
          "label": "0-Call Engine",
          "slot_id": "slot.aq03_interrogate_sources",
          "detail": "Situated scenario fan-out & 5W1H coverage-gap runner"
        },
        {
          "role_id": "R2_PRIMARY_SOLVER",
          "label": "Solver Agent",
          "formula": "Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions",
          "detail": "Multi-stack scenario & persona adversarial interrogator"
        },
        {
          "role_id": "R3_QUEUE_SUPERVISOR",
          "label": "Supervisor",
          "companion_queue": "aq41_supervise_split_keep_parent",
          "preserves_parent_task": true
        },
        {
          "role_id": "R4_DIAGNOSTIC_REPAIR",
          "label": "Repair Agent",
          "companion_queues": [
            "aq42_pod_repair_and_twin_wrap",
            "aq33_troubleshoot_code",
            "aq12_fix_and_disambiguate"
          ],
          "contract_first_policy": "LE-CONTRACT-002"
        },
        {
          "role_id": "R5_VERIFIER_DISTILLER",
          "label": "Verifier & Distiller",
          "companion_queues": [
            "aq11_verify_sandbox",
            "aq28_sister_distill"
          ],
          "orthogonal_family_required": true
        }
      ]
    },
    {
      "record_type": "teleon_component_pod_descriptor/v1",
      "atomic_queue_id": "aq04_problemize_situations",
      "slug": "synthesize_problem_situation",
      "heading": "Problemize",
      "engine_slot_id": "slot.aq04_problemize_situations",
      "conformance_kit_id": "kit.synthesize_problem_situation.conformance_v1",
      "swappable_engines": [
        {
          "engine_id": "aq04_problemize_situations_oss_adapter_v1",
          "origin": "pinned_github_spdx_container",
          "model_calls": 0
        },
        {
          "engine_id": "aq04_problemize_situations_teleon_native_v1",
          "origin": "teleon_native_deterministic",
          "model_calls": 0
        },
        {
          "engine_id": "aq04_problemize_situations_wasm_sandbox_v1",
          "origin": "wasmtime_component_sandbox",
          "model_calls": 0
        }
      ],
      "roles": [
        {
          "role_id": "R1_DET_ENGINE",
          "label": "0-Call Engine",
          "slot_id": "slot.aq04_problemize_situations",
          "detail": "Schema & constraint normalizer"
        },
        {
          "role_id": "R2_PRIMARY_SOLVER",
          "label": "Solver Agent",
          "formula": "Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions",
          "detail": "Falsifiable problem & oracle framer"
        },
        {
          "role_id": "R3_QUEUE_SUPERVISOR",
          "label": "Supervisor",
          "companion_queue": "aq41_supervise_split_keep_parent",
          "preserves_parent_task": true
        },
        {
          "role_id": "R4_DIAGNOSTIC_REPAIR",
          "label": "Repair Agent",
          "companion_queues": [
            "aq42_pod_repair_and_twin_wrap",
            "aq33_troubleshoot_code",
            "aq12_fix_and_disambiguate"
          ],
          "contract_first_policy": "LE-CONTRACT-002"
        },
        {
          "role_id": "R5_VERIFIER_DISTILLER",
          "label": "Verifier & Distiller",
          "companion_queues": [
            "aq11_verify_sandbox",
            "aq28_sister_distill"
          ],
          "orthogonal_family_required": true
        }
      ]
    },
    {
      "record_type": "teleon_component_pod_descriptor/v1",
      "atomic_queue_id": "aq05_solve_initial",
      "slug": "first_pass_solve",
      "heading": "First-Pass Solve",
      "engine_slot_id": "slot.aq05_solve_initial",
      "conformance_kit_id": "kit.first_pass_solve.conformance_v1",
      "swappable_engines": [
        {
          "engine_id": "aq05_solve_initial_oss_adapter_v1",
          "origin": "pinned_github_spdx_container",
          "model_calls": 0
        },
        {
          "engine_id": "aq05_solve_initial_teleon_native_v1",
          "origin": "teleon_native_deterministic",
          "model_calls": 0
        },
        {
          "engine_id": "aq05_solve_initial_wasm_sandbox_v1",
          "origin": "wasmtime_component_sandbox",
          "model_calls": 0
        }
      ],
      "roles": [
        {
          "role_id": "R1_DET_ENGINE",
          "label": "0-Call Engine",
          "slot_id": "slot.aq05_solve_initial",
          "detail": "OpenAPI, rule & template synthesizer"
        },
        {
          "role_id": "R2_PRIMARY_SOLVER",
          "label": "Solver Agent",
          "formula": "Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions",
          "detail": "Open-search solver & harness builder"
        },
        {
          "role_id": "R3_QUEUE_SUPERVISOR",
          "label": "Supervisor",
          "companion_queue": "aq41_supervise_split_keep_parent",
          "preserves_parent_task": true
        },
        {
          "role_id": "R4_DIAGNOSTIC_REPAIR",
          "label": "Repair Agent",
          "companion_queues": [
            "aq42_pod_repair_and_twin_wrap",
            "aq33_troubleshoot_code",
            "aq12_fix_and_disambiguate"
          ],
          "contract_first_policy": "LE-CONTRACT-002"
        },
        {
          "role_id": "R5_VERIFIER_DISTILLER",
          "label": "Verifier & Distiller",
          "companion_queues": [
            "aq11_verify_sandbox",
            "aq28_sister_distill"
          ],
          "orthogonal_family_required": true
        }
      ]
    },
    {
      "record_type": "teleon_component_pod_descriptor/v1",
      "atomic_queue_id": "aq06_compete_one_up",
      "slug": "one_up_efficiency_compete",
      "heading": "1-Up Efficiency Compete",
      "engine_slot_id": "slot.aq06_compete_one_up",
      "conformance_kit_id": "kit.one_up_efficiency_compete.conformance_v1",
      "swappable_engines": [
        {
          "engine_id": "aq06_compete_one_up_oss_adapter_v1",
          "origin": "pinned_github_spdx_container",
          "model_calls": 0
        },
        {
          "engine_id": "aq06_compete_one_up_teleon_native_v1",
          "origin": "teleon_native_deterministic",
          "model_calls": 0
        },
        {
          "engine_id": "aq06_compete_one_up_wasm_sandbox_v1",
          "origin": "wasmtime_component_sandbox",
          "model_calls": 0
        }
      ],
      "roles": [
        {
          "role_id": "R1_DET_ENGINE",
          "label": "0-Call Engine",
          "slot_id": "slot.aq06_compete_one_up",
          "detail": "AST dead-path & 0-call demotion compiler"
        },
        {
          "role_id": "R2_PRIMARY_SOLVER",
          "label": "Solver Agent",
          "formula": "Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions",
          "detail": "Pareto challenger & algorithm optimizer"
        },
        {
          "role_id": "R3_QUEUE_SUPERVISOR",
          "label": "Supervisor",
          "companion_queue": "aq41_supervise_split_keep_parent",
          "preserves_parent_task": true
        },
        {
          "role_id": "R4_DIAGNOSTIC_REPAIR",
          "label": "Repair Agent",
          "companion_queues": [
            "aq42_pod_repair_and_twin_wrap",
            "aq33_troubleshoot_code",
            "aq12_fix_and_disambiguate"
          ],
          "contract_first_policy": "LE-CONTRACT-002"
        },
        {
          "role_id": "R5_VERIFIER_DISTILLER",
          "label": "Verifier & Distiller",
          "companion_queues": [
            "aq11_verify_sandbox",
            "aq28_sister_distill"
          ],
          "orthogonal_family_required": true
        }
      ]
    }
  ],
  "endpoints": {
    "pods": "https://pods.teleon.dev/v1/pods",
    "wrappers": "https://pods.teleon.dev/v1/wrappers",
    "can_i_run": "https://pods.teleon.dev/v1/can-i-run"
  }
}
