Skip to content
Robert Frost

Engineering

Agent harnesses, model development, speech distillation, evaluation, and the application systems around them.

From model behavior to application architecture and evaluation.

I design and build the systems around models: the context they receive, the actions they can propose, the data they learn from, and the checks that determine whether their output is useful. My work spans Virtu Prep's deployed application and agent architecture, deployed model adaptations and evaluation-informed configurations, and a deployed teacher-student speech system. I also lead the product and operating decisions around that work.

Virtu Prep / Application architecture

Agent harness engineering

Implemented, tested, and deployedVisit Virtu Prep

Problem

A conversational interface in a multi-tenant learning platform has to do more than produce a plausible answer. The same words can mean different things for a learner, teacher, or administrator. A useful response must respect the caller's role, the active school, the current application context, and the difference between describing an action and carrying it out.

Personal contribution

I designed and built the harness across context construction, intent routing, structured outputs, validation, and application integration. The work connects model behavior to the real product: which capabilities exist, which users may invoke them, and how an action is represented back to the person making the request.

Team contribution and dependencies

I built and led the Virtu Prep product organization; colleagues and contractors contributed to the surrounding product, interfaces, content, and operational workflows. This case study does not attribute that collective work to me alone.

Provider model APIs, application services, tenant and role data, and upstream libraries. Model output is treated as a proposal, not as authorization.

Implementation

Each turn builds a context pack containing the request and the capabilities available within its scope. The model proposes an intent and parameters. Application code then validates that proposal, checks unresolved inputs, and applies role-aware corrections only within the permitted capability set.

The dispatcher separates actions that can proceed from requests that need clarification or confirmation. Consequential changes stop at a confirmation boundary before execution. The response reflects the action's actual disposition rather than treating generated prose as evidence that something happened.

From a request to an authorized actionVirtu Prep / Agent workflow
  1. Build contextRequest, role, tenant, and available capabilities
  2. InterpretThe model proposes an intent and parameters
  3. ValidateCheck scope, structure, and unresolved inputs
  4. ConfirmConsequential changes require approval
  5. DispatchRun the authorized action and report its result

The model proposes an action; application code decides whether it may proceed. Invalid requests are rejected, while unresolved requests return for clarification. Actions requiring confirmation stop before execution and resume only through a separate confirmation step.

Evaluation and decision

The tests exercise interpretation, validation, and the confirmation boundary independently. A destructive-action test uses an executor that fails if it is called during the proposal turn. That makes the boundary observable: producing a reassuring confirmation message is not enough if the underlying action has already run.

Measurable acceptance criterion

During a proposal turn, an action that requires confirmation must not invoke its executor.

Evidence and attribution

Status
Implemented, tested, and deployed
Case-study record
Public case-study record 1.0
My contribution
I designed and built the harness across context construction, intent routing, structured outputs, validation, and application integration. The work connects model behavior to the real product: which capabilities exist, which users may invoke them, and how an action is represented back to the person making the request.
Team contribution
I built and led the Virtu Prep product organization; colleagues and contractors contributed to the surrounding product, interfaces, content, and operational workflows. This case study does not attribute that collective work to me alone.
Case-study materials
Architecture and workflow description, with a step-by-step harness diagram.
Limitation
The public description does not establish coverage of every capability, model configuration, or failure mode.
Next step
Continue applying the same release boundary as capabilities and model configurations change.

Current status

These mechanisms are implemented in Virtu Prep, covered by targeted tests, and deployed in the application. Individual model configurations and experimental flags retain separate release histories.

Virtu Prep / Teacher-student model development

Speech model development & distillation

Trained, evaluated, and deployedVisit Virtu Prep

Problem

A speech model needs to carry the intended pronunciation into an application-friendly voice. A student model can also learn a teacher's mistakes. The challenge is therefore not simply to generate more audio: it is to establish that the corpus is complete, correctly formatted, and suitable for the behavior the student should learn.

Personal contribution

I built the pipeline around teacher synthesis, corpus preparation, student training, and candidate evaluation. This is work with existing model architectures and upstream weights, not a claim to have invented them. My contribution is in adapting those components to the speech task and making the training-to-evaluation process inspectable.

Team contribution and dependencies

I built and led the Virtu Prep product organization; the wider team defined product needs and application context. This case study isolates my pipeline work from broader team outcomes.

Teacher-generated audio, Piper/VITS architecture, upstream weights, training and ONNX tooling, and speech-recognition diagnostics. I did not invent these architectures.

Implementation

The teacher model produces audio paired with the training text. Corpus preparation deduplicates recordings, checks that manifest entries have corresponding audio, and normalizes the audio to the format expected by the student trainer. A sample-rate mismatch can otherwise produce a model that trains without an obvious error but sounds wrong.

The student is a warm-started Piper/VITS voice trained on that prepared corpus. Candidate checkpoints are exported to ONNX for synthesis and comparison. Tracking checkpoint identity through export and rendering matters: a cached file with the right size is not necessarily the model selected for evaluation.

From teacher audio to a student voiceSpeech synthesis / Training pipeline
  1. Teacher synthesisThe teacher model renders the training audio
  2. Prepare corpusVerify, deduplicate, and normalize the audio
  3. Train studentWarm-start and train the Piper/VITS voice
  4. ExportConvert candidate checkpoints to ONNX
  5. EvaluateCompare held-out speech and listen for defects

Teacher-generated speech supplies examples for student-model training. Exported candidates are compared on held-out material; listening and diagnostic checks inform checkpoint and inference-setting decisions. The resulting student voice is deployed in Virtu Prep.

Evaluation and decision

Exported candidates are compared using held-out material, diagnostic checks, and direct listening. Speech-recognition transcripts can omit pronunciation distinctions, so transcription-based scores cannot settle every question. Listening judgments inform checkpoint and inference-setting choices, with their coverage limits kept explicit.

Measurable acceptance criterion

A candidate must export reproducibly and pass held-out listening checks without the known sample-rate failure before deployment.

Evidence and attribution

Status
Trained, evaluated, and deployed
Case-study record
Public case-study record 1.0
My contribution
I built the pipeline around teacher synthesis, corpus preparation, student training, and candidate evaluation. This is work with existing model architectures and upstream weights, not a claim to have invented them. My contribution is in adapting those components to the speech task and making the training-to-evaluation process inspectable.
Team contribution
I built and led the Virtu Prep product organization; the wider team defined product needs and application context. This case study isolates my pipeline work from broader team outcomes.
Case-study materials
Pipeline diagram, evaluation method, and deployment summary.
Limitation
The listening set and judgments are limited, and known pronunciation defects remain.
Next step
Resolve known pronunciation defects and broaden held-out listening as the deployed voice evolves.

Current status

Training, export, listening-based evaluation, and deployment in Virtu Prep were completed. Remaining pronunciation issues and limited listening judgments continue to inform improvements to the deployed voice.

Virtu Prep / Model selection and measurement

Model training and evaluation

Models trained, evaluated, and deployedVisit Virtu Prep

Problem

A better aggregate score does not establish that an agent is ready to use. Routing, refusals, confirmation, and workflow handoff can move in different directions. Evaluation also has to measure the system that actually executes, rather than an intermediate model label that application code may legitimately correct.

Personal contribution

I worked on dataset construction, supervised fine-tuning, model comparisons, evaluation harnesses, and the criteria used to judge candidates. I also investigated cases where the evaluation itself produced a misleading account of system behavior, separating genuine model errors from incorrect labels, missing context, and scoring at the wrong stage.

Team contribution and dependencies

I built and led the Virtu Prep product organization; application requirements and product decisions were developed with the Virtu Prep team. This record describes my work on data, training, comparisons, and evaluation instruments.

Base models, provider and training toolchains, task-specific examples, application corrections, and private evaluation records.

Implementation

The training workflow assembles task-specific examples and separates training material from evaluation sets. Fine-tuned candidates are compared with their base models on defined behavioral dimensions, with acceptance criteria stated before interpreting the result. Separate work compares model adaptation with in-context grounding and deterministic application controls.

The broader harness includes adversarial cases and role-aware checks. Matched-pair comparisons rescore the same recorded outputs under a common rule, avoiding a fresh model call as a source of variation in that comparison. Repeated trials help distinguish persistent errors from inconsistent behavior.

Evaluation and decision

Some fine-tunes improved action selection while missing other acceptance criteria. Those outcomes remain mixed results, not success stories reconstructed from the best metric. Instrument corrections also mattered: scoring a raw intent before a valid role-aware correction can mark a correct dispatched action as a failure. The work treats both the candidate and the measuring instrument as things that need testing.

Measurable acceptance criterion

An adapted candidate must beat its base model on prespecified target behaviors without crossing refusal, routing, or confirmation guardrails.

Evidence and attribution

Status
Models trained, evaluated, and deployed
Case-study record
Public case-study record 1.0
My contribution
I worked on dataset construction, supervised fine-tuning, model comparisons, evaluation harnesses, and the criteria used to judge candidates. I also investigated cases where the evaluation itself produced a misleading account of system behavior, separating genuine model errors from incorrect labels, missing context, and scoring at the wrong stage.
Team contribution
I built and led the Virtu Prep product organization; application requirements and product decisions were developed with the Virtu Prep team. This record describes my work on data, training, comparisons, and evaluation instruments.
Case-study materials
Training and evaluation methods, release decisions, and deployment summary.
Limitation
Some candidates did not satisfy every release criterion; accepted candidates were deployed.
Next step
Publish sanitized dataset cards and evaluation tables when private context can be removed without weakening their meaning.

Current status

Training runs, comparisons, and evaluation corrections are recorded. Selected adapted models and application configurations that passed the relevant application gates are deployed in Virtu Prep.

School Builder Bot / Structured generation

Generated learning-environment configuration

Implemented and deployedVisit School Builder Bot

Problem

Creating a specialized learning environment involves many related decisions: the audience, mission, program, content structure, and public presentation. A prose answer cannot be consumed reliably by an application. The system needs an explicit configuration contract that connects an administrator's requirements to a usable environment without assuming that every requested capability already exists.

Personal contribution

I designed and built the configuration-generation workflow and its connection to the learning platform. The work translates product requirements into structured generation, defines the output contract, and connects the resulting configuration to application rendering. It began inside Virtu Prep before becoming a separate project.

Team contribution and dependencies

Product, content, design, hosting, and school-launch work extended beyond the configuration workflow and involved other contributors.

The Virtu Prep application contract, JSON Schema validation, model APIs, and separate operational provisioning systems.

Implementation

The workflow captures the school's requirements and uses structured generation to produce configuration for the platform. The result is validated against the expected JSON schema before it is treated as application data. Desktop and mobile experiences share that configuration rather than requiring a separately authored implementation for each school.

The generated configuration describes the environment; the application remains responsible for interpreting it. This boundary keeps the generation step distinct from the software capabilities it can configure and from the operational work required to make a school accessible on its own domain.

From requirements to a school configurationSchool Builder Bot / Configuration workflow
  1. Capture requirementsMission, audience, program, and constraints
  2. GenerateProduce a structured school configuration
  3. ValidateCheck the output against the expected schema
  4. Share configurationUse one configuration across the applications
  5. RenderPresent the configured learning environment

The generation workflow produces application configuration, not infrastructure. Domain setup, certificates, and tenant registration remain separate operational steps before a school can be made available on its own domain.

Evaluation and decision

Schema validation establishes a structural contract, not a guarantee that the program is educationally complete or appropriate. The configuration still needs product review and checks against the administrator's requirements. The engineering decision is to make these responsibilities explicit rather than treating a successful model response as a completed launch.

Measurable acceptance criterion

Generated output must validate against the expected schema before the application treats it as configuration data.

Evidence and attribution

Status
Implemented and deployed
Case-study record
Public case-study record 1.0
My contribution
I designed and built the configuration-generation workflow and its connection to the learning platform. The work translates product requirements into structured generation, defines the output contract, and connects the resulting configuration to application rendering. It began inside Virtu Prep before becoming a separate project.
Team contribution
Product, content, design, hosting, and school-launch work extended beyond the configuration workflow and involved other contributors.
Case-study materials
Project site and configuration-flow diagram.
Limitation
Schema validity does not prove educational completeness, current public availability, or successful domain and tenant provisioning.

Current status

School Builder Bot began as a Virtu Prep project in 2021 and later became a separate operating project. The configuration workflow is implemented and deployed. Domain setup, certificates, and tenant registration remain separate operational steps; generation alone does not provision a live school.

Evidence and accountability / Published open specification

Real Merit Protocol

PublishedVisit Real Merit Protocol

Problem

Grades and credentials can obscure the evidence behind a claim of ability. A useful record needs to show what happened, how it was interpreted, and what can responsibly be concluded.

Personal contribution

I authored and published the protocol to carry context and accountability information with capability claims; the format does not itself establish scientific validity.

Team contribution and dependencies

I authored and published the protocol. Future contributors and implementers should be credited where documented.

Evidence provenance, validation, governance, and conformance concepts; a representation is only as sound as the evidence and methods behind it.

Implementation

The published protocol distinguishes observations, derived measures, inferences, and validation records. It is designed to carry context and accountability information; using its format does not itself establish scientific validity.

Evaluation and decision

The published protocol can be inspected as an evidence vocabulary and accountability structure. Publication is distinct from the validity of an automated inference, implementation conformance, or adoption.

Measurable acceptance criterion

The publication claim requires a publicly accessible, identifiable protocol; implementation, conformance, adoption, and validation claims require their own evidence.

Evidence and attribution

Status
Published
Case-study record
Public case-study record 1.0; protocol published
My contribution
I authored and published the protocol to carry context and accountability information with capability claims; the format does not itself establish scientific validity.
Team contribution
I authored and published the protocol. Future contributors and implementers should be credited where documented.
Case-study materials
Published protocol and public project site.
Limitation
Publication does not by itself establish implementation conformance, external adoption, or the scientific validity of a represented claim.
Next step
Continue publishing versioned schemas, conformance requirements and tests, governance, and reference implementations as the protocol develops.

Current status

The Real Merit Protocol is published and publicly accessible. It defines an evidence vocabulary and accountability structure; implementation, conformance, adoption, and scientific validation remain separate claims.

Tools & infrastructure

Technical areas represented in these case studies

  • Application architecture
  • Model adaptation
  • Evaluation
  • Retrieval
  • Document intelligence
  • Speech-model tooling
  • Infrastructure and deployment
Languages
Java and Spring for application services; JavaScript and React for interfaces; Python for training pipelines, evaluation, and speech tooling. HTML and CSS for the web.
AI providers
Provider APIs and OpenRouter for application integration. Additional experience with Google, NVIDIA, and Moonshot tooling. Integration, model adaptation, and self-hosted inference are distinct activities, not interchangeable claims.
Model development
Supervised fine-tuning, training/evaluation dataset preparation, teacher-student speech distillation, Piper/VITS training, and ONNX export.
Evaluation
Base-versus-fine-tuned comparisons, held-out cases, adversarial checks, matched-pair analysis, and listening-based speech evaluation.
Orchestration
Custom orchestration and direct provider APIs, with application-specific control flow.
Document intelligence
Document parsing, OCR, structured extraction, and LLM vision for unstructured documents.
Retrieval
Custom retrieval using BM25, keyword search, and structured queries.
Automation
Cron, queues, and application code for workflow coordination.
Infrastructure
Infrastructure work has used Docker, Kubernetes, AWS, and DigitalOcean, with additional exposure to GCP and Azure.

Earlier work

  • Specialized academies

    Learning environments across test prep, AI, financial literacy, legal operations, language learning, and special-needs education.

  • Artificial neural-network experiments for forex

    Experiments modeling foreign exchange pricing, alongside teaching forex trading.

  • Electronic financial exchanges

    Operations for Caufex and Panafex, spanning stocks, commodities, futures, and derivatives.

Working together

I work across AI systems, technical product, and operations: translating a well-defined need into an application, determining how to evaluate it, and connecting the technical work to the people responsible for using and maintaining it.

Get in touch

Get in touch.

Research collaboration, measurable learning, AI systems, institutional partnerships, and speaking.