Stage 88
aq88_compose_and_verify_thin_wrapper_chainDB-UNIT-18Causal Scenario Foundry, Simulation Federation & Opportunity CoreComposable Thin Wrappers
Atomic flat-row micro-queue with 0-call slot and 5-role pod.
Composes and dry-runs 0..32-step functional Kleisli thin-wrapper onions (wrappers.teleon.dev) for parameter clamping, per-request engine selection, secret scrubbing, and port checks while keeping database substrates strictly unwrapped.
Inputs (Flat Row)
- ThinOperationDescriptor
- Declared wrapper_steps (0..32)
- Optional engine_preference
Atomic Queue & Lanes
aq88_compose_and_verify_thin_wrapper_chainentities-db.teleon.dev0..32 Kleisli StepsDB-Exempt ACID GuardPer-Call Engine Select
Execution Modes & Agent Freedom
- Deterministic (0 calls):
mesa_amlsim_and_sql_state_world_compiler_v1(0-step nominal fast-path router, 0..32 Kleisli onion builder & EXEMPT_DATABASE_SUBSTRATES guard) - Hybrid (<=1 call):
autoplay_explore_first_scenario_synthesizer_v1 - AI Agent (1..6):
multi_engine_concordia_oasis_and_foresight_author_v1(Thin middlelayer shim composer & formal engine-slot bridge verifier; Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions)
Outputs (Table Merge)
- Verified wrapper envelope trace
- Refusal proof on ACID database substrates
Modular 6-layer envelope & 0..32 Kleisli onion middlelayers (DB substrates exempt)
Inbound and outbound calls traverse versioned envelope layers and composable Kleisli middlelayers before reaching the swappable engine slot, while backing database kernels enforce 0 inline agent wrapper steps.
- 1. frustration_avoidance
- 2. flexible_pointer_or_slice_carrier
- 3. thp_schema_and_version_handshake
- 4. surface_account_and_ring_entitlement
- 5. idempotent_effect_journal_and_tracking
- 6. preflight_self_repair_and_zero_call_check
- 7. 0..32 Kleisli steps (shims / budget deadlines / secret scrub)
- 8. slot.aq88_compose_and_verify_thin_wrapper_chain (Native | Pinned OSS | Wasm)
- ACID DB Core: 0 agent wrapper steps
5-role component managing pod & engine-slot twins
- 0-Call Slot (
R1_DET_ENGINE): 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. - Solver+OpenSearch (
R2_PRIMARY_SOLVER): 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. - Split-Supervisor (
R3_QUEUE_SUPERVISOR): 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. - Repair+Shim (
R4_DIAGNOSTIC_REPAIR): 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. - CPOP+Distill (
R5_VERIFIER_DISTILLER): Grades outputs across an independent model family (reviewer != producer) and distills recurring high-cost agent wins into 0-call deterministic Sister code.
Parent-preserving supervision, catch-all & optional SCD2 packs
- Supervisor split (aq41): Oversized or stalled tasks split into wave-ordered subtask rows while keeping
subdivided_parentintact for rollup verification and direct long-horizon benchmarks. - Optional SCD Type 2 packs (Store S12): Versioned
pack_skrows (valid_from_utc,valid_to_utc,is_current,edited_by) supply optional locales, settings, instructions, suggestion paths, and tools acrossbare_baseline,pre_materialized_flat, andon_demand_claim_hydratedmodes. - Flexible carriers:
inline_object, swhid_cas_pointer, http_206_byte_slice, d1_row_cursor, signed_r2_uri
Normalized tables, invariants & 1 flat task row
- Cell host:
entities-db.teleon.dev - Backlog table:
teleon_core.scenario_foundry_todo_backlog - Hydration: Normalized supporting tables join server-side into 1 flat row on claim
teleon_core.scenario_ir_manifeststeleon_core.world_hidden_truth_vaultteleon_core.actor_observation_viewsteleon_core.opportunity_hypotheses
- Investigator and solver views never access world_hidden_truth_vault or derive test fixtures from detector rules.
- Every suspicious or failure scenario pairs with a matched benign counterfactual and abstention control.
- Opportunity and problem generation stays decoupled from pre-selected solution promotion.
Atomic micro-queue & Track 2 Sister objective
- Atomic queue:
aq88_compose_and_verify_thin_wrapper_chainviaq21-scenario-foundry-queue.teleon.dev - Track 2 Sister (SISTER-18):
sq18-improve-scenarios-queue.teleon.dev - Sister objective: Enforce POET minimal-criterion solvability bands, audit SPDX simulator licenses, and turn production failures into regression worlds.
host:wrappers_teleon_devsteps:0_to_32_kleislidb_inline_steps:zeroBot & harness fleet actions (Codex, Claude Code, ChatGPT, Dots, Meta Muse, GrokBot)
- Compose modular pre/post Kleisli steps without subclassing Loops or refactoring callers
- Honor per-request engine_preference non-mutatingly with deterministic fallback reasons
- Refuse any inline agent wrapper step on transactional database substrates before effects
Sister self-tuning areas & HTTP queue submission
- Enforce POET solvability bands and family-level train/holdout lineage splits (DIM-01, DIM-02)
- Wrap permissive simulation adapters (MIT/Apache-2.0/BSD-3) while blocking copyleft or BSL traps (DIM-03)
- Convert verified production traces and failed experiments into permanent regression scenarios (DIM-06, DIM-07)
# Zero-auth claim 1 flat-hydrated task row from this atomic micro-queue:
curl -sS "https://router.teleon.dev/v1/claim?agent=meta-muse&atomic_queue_id=aq88_compose_and_verify_thin_wrapper_chain"
# Or enqueue a task directly onto this atomic micro-queue:
curl -sS https://queues.teleon.dev/v1/queues/submit \
-H "Content-Type: application/json" \
-d '{"atomic_queue_id":"aq88_compose_and_verify_thin_wrapper_chain","db_unit_id":"DB-UNIT-18","title":"Task for compose_and_verify_thin_wrapper_chain"}'