Tag: modular-execution

  • The Planner–Translator–Driver Architecture

    A modular execution framework for system-operator LLMs built on Latent Trajectory Learning

    Author: Forrest

    First Conceptualized: October 14, 2025

    Published: October 14, 2025


    Abstract

    We present the Planner–Translator–Driver (PTD) architecture — a modular execution framework that enables large language models to perform reliable, verifiable actions in digital systems.

    PTD separates cognition from control:

    • a Planner reasons over goals and emits semantic Work Units,
    • Translators compile those units into precise API or browser calls, and
    • Drivers execute them deterministically, returning machine-verifiable outcomes.

    This separation mirrors the structure of compilers and operating systems — reasoning in one layer, execution in another — yielding agents that are both general and safe.

    PTD is designed as the operational complement to Latent Trajectory Learning (LTL), which teaches models how to infer and complete story-based workflows.

    Together, LTL and PTD form a unified foundation for system-operator LLMs capable of end-to-end enterprise execution.


    1. Motivation

    LLM-based agents break down when the same model is asked to both reason and act .

    In production, this leads to three systemic failures:

    1. Schema Drift Fragility – a single DOM or API change can collapse the agent’s chain of thought.
    2. Entangled Errors – reasoning mistakes and syntax errors are indistinguishable.
    3. Lack of Verifiability – no clear evidence that an action actually occurred.

    The PTD architecture decouples these concerns.

    Reasoning is isolated in the Planner, translation in modular Translators, and execution in deterministic Drivers.

    This design borrows its logic from software systems themselves: compilers separate parsing, codegen, and runtime execution for the same reason — transparency, safety, and testability.


    2. Relationship to Latent Trajectory Learning (LTL)

    The LTL paradigm defines how agents learn operational reasoning through story-gap completion and latent trajectory inference.

    It trains the Planner to think in terms of causal steps and semantic verbs — not literal field names or selectors.

    The PTD architecture defines how that learned reasoning expresses itself in the real world .

    LTL builds the mind; PTD builds the body.

    AspectLatent Trajectory Learning (LTL)Planner–Translator–Driver (PTD)
    PurposeTrain reasoning and planningExecute reasoning in real systems
    InputIncomplete story graphsGoal state + current environment
    OutputSemantic Work UnitsVerified Execution Facts
    DomainLearning paradigmOperational architecture
    DependencyNone (core training)Built atop LTL-trained Planner

    3. Architecture Overview

    PTD is composed of four cooperating layers:

    1. Planner – semantic reasoner that plans actions using LTL-trained cognition.
    2. Translator – per-surface compiler that converts Work Units into concrete ToolCalls.
    3. Driver – deterministic executor that carries out those calls.
    4. Verifier – optional critic ensuring outcomes match goal constraints.

    Figure 1. Conceptual Flow

    Goal → Planner → (Work Units)
                  ↓
            Translators → (ToolCalls)
                  ↓
               Drivers → (Execution Facts)
                  ↓
               Verifier → (Goal satisfied?)

    Each layer communicates only through typed, auditable contracts.

    This design allows independent improvement and versioning without retraining the full system.


    4. Planner (Semantic Reasoner)

    • Operates as the cognitive front-end of the system.
    • Receives task context, current state, and goal conditions.
    • Outputs a Plan — an ordered list of Work Units, each a high-level intent (e.g., createrecord, approverequest, submit_form).
    • Trained via Latent Trajectory Learning, enabling it to infer causal sequences even under incomplete information.
    • Output schema: semantic only — verbs, entities, slots, constraints — never raw selectors or fields.

    Example Work Unit:

    {
      "unit_id": "U-202",
      "tool": "web",
      "verb": "fill_form",
      "entities": {"page": "tax_portal", "form": "monthly_sales"},
      "slots": {"period": "Q3 2025", "amount": 12450.00},
      "constraints": [{"must_verify": "submission_confirmation"}]
    }

    5. Translators (Per-Surface Compilers)

    Each Translator converts Work Units into ToolCalls for a specific interface or environment.

    Examples:

    • API Translator (structured data systems)
    • Web Translator (browser automation)
    • Analytics Translator (query/report systems)
    • Payment Translator (secure transaction systems)

    Training regime: supervised pair fine-tuning on (WorkUnit, Live Schema/DOM) → ToolCall.

    They are small, lightweight models or deterministic compilers that:

    • expand semantic slots into valid payloads,
    • resolve field or selector mappings dynamically,
    • run preflight validation before execution,
    • handle interface drift locally (no retraining of Planner required).

    Example ToolCall:

    {
      "call_id": "C-202a",
      "tool": "web",
      "action": "fill_and_submit",
      "payload": {
        "selectors": {"period_field": "#q3", "amount_field": "#amt"},
        "values": {"period": "Q3 2025", "amount": "12450.00"}
      },
      "verify": [{"type": "dom_check", "text": "Submission successful"}]
    }

    6. Drivers (Deterministic Executors)

    • Execute ToolCalls against real systems.
    • Provide idempotency, transaction logging, and rollback mechanisms.
    • Return Execution Facts — verifiable machine statements describing what happened.
    • Contain no LLM components; implemented as strict, testable infrastructure code.

    Example Execution Facts:

    {
      "facts": [
        {"kind": "form_submitted", "target": "tax_portal"},
        {"kind": "confirmation_detected", "text": "Submission successful"}
      ],
      "errors": [],
      "warnings": []
    }

    7. Verifier (Critic Layer)

    • Consumes Execution Facts and goal predicates.
    • Determines whether the action achieved its intended result.
    • Can operate as:
    • a deterministic ruleset, or
    • a small classification model trained on success/failure traces.
    • When verification fails, the Planner receives structured feedback to generate repair Work Units.

    8. Training and Integration Pipeline

    ComponentTrained WithObjective
    PlannerLatent Trajectory Learning corpusInfer causal Work Units under incomplete context
    TranslatorPairwise compilation dataProduce syntactically and semantically valid ToolCalls
    DriverNo trainingDeterministic execution with property-based tests
    VerifierOptional fine-tuningDetect unmet goal predicates and route repairs

    This pipeline ensures that reasoning and execution improve independently — the Planner can become smarter without schema-specific retraining, while Translators adapt to environmental changes without touching the cognitive layer.


    9. Proposed Evaluation Protocol

    Note: This section describes the planned metrics for assessing PTD architecture performance. Implementation and evaluation are proposed for future work at Aleq.

    To measure real-world reliability:

    • Plan Accuracy: expected proportion of valid Work Units generated.
    • Compiler Precision / Recall: planned measurement of exact match between generated and expected ToolCalls.
    • Execution Success Rate: target metric for successful completions over total attempts.
    • Goal Satisfaction: expected fraction of tasks meeting all verification predicates.
    • Drift Robustness: planned measurement of success rate change under schema or DOM perturbations.
    • Recovery Latency: target mean time to detect and repair a failed trajectory.

    10. Advantages

    1. Modular Intelligence: Each layer is independently testable and improvable.
    2. Transparent Execution: Every decision has a verifiable artifact — Plan → Call → Fact.
    3. Drift Tolerance: Translators absorb schema and interface change.
    4. Determinism: Drivers guarantee reproducibility and auditability.
    5. Portability: Swap Translators to operate across new platforms without retraining the Planner.
    6. Human Oversight: Verifier layer provides explicit intervention points.

    11. Limitations and Future Work

    • Translator scaling is the primary bottleneck — new systems require new compilers.
    • Version drift between Planner ontologies and Translator schemas must be monitored.
    • Further research is needed on automatic Translator synthesis via demonstrations or schema introspection.
    • Integration of symbolic verifiers and human-in-loop review pipelines is ongoing.

    12. Conclusion

    The Planner–Translator–Driver architecture provides a disciplined framework for turning LLM reasoning into verifiable digital action.

    By separating semantic planning from system-specific execution, it enables agents that are interpretable, testable, and resilient to drift.

    In conjunction with Latent Trajectory Learning, which teaches the Planner to reason in narratives, PTD completes the loop:

    LTL gives the agent a mind. PTD gives it a body.

    Together they define a new class of System-Operator LLMs capable of both understanding and doing.


    References

    • Forrest (2025). Latent Trajectory Learning for System-Operator LLMs.
    • Decision Transformer; Trajectory Transformer.
    • Controlling LLMs with Latent Action (ICML 2025).
    • Latent Diffusion Planning for Imitation Learning.
    • Efficient Post-Training Refinement of Latent Reasoning.

    Invention Date: October 14, 2025

    First Draft Completed: October 26, 2025

    Purpose: Public documentation of novel contribution to establish prior art