leapsea Harness: a runtime foundation for AI4S

leapsea Harness brings persistent task management, controlled tool execution, specialist workflows and research provenance together, turning model reasoning into scientific work that can be executed, checked and continued.
An experimental data analysis often starts with a paper and the original records. A researcher needs to understand the instrument calibration and units, then write code, investigate anomalies, compare methods and deliver figures with an explanation. Computation can take time. Network requests can be interrupted. A new observation can send the analysis back to an earlier step. Each step needs a connection to the materials, files and decisions already in place.
A harness is the infrastructure that organizes an agent's execution. In leapsea, it manages task identity, lifecycle, tool admission, saved state and artifact registration. The model proposes an operation, and the runtime connects that request to a real tool and returns its result to the task. The researcher can then inspect where the work stands, which results are available and what state the next step should continue from.
After an interruption, reconcile the actual outcome
Tool calls can reach an uncertain intermediate state. A compute request may have reached its executor while the acknowledgment was lost. A file may have been written just before the task could save its completion state. Continuing requires establishing what actually happened. Resending the request immediately can overwrite files, submit duplicate jobs or consume compute again.
leapsea's managed durable tool path uses an operation ledger, transactional outbox and execution receipts. An authorization result is associated with a dispatch record. The executor consumes that record, and the result is settled against the same operation. The bridge represents states including prepared, committed, reconciling and outcome-unknown, preserving a distinction between pending work, settled outcomes and operations that still need reconciliation.
Consider an analysis script that is still running when its interface disconnects. Recovery should inspect the existing operation and its receipts. A recorded result can be read again, while an operation with an unknown effect needs reconciliation. The records support that recovery decision. How far a task can recover depends on the receipts and observable state supplied by the tool. Submissions to external systems likewise need to be checked against the records those systems provide.
Bring project context and specialist methods into the task
Research context has different scopes. Personal preferences, project constraints and decisions from the current conversation benefit from separate management. leapsea Memory uses personal, project and conversation scopes, retrieving relevant material for the current task. Item limits and context budgets bound what is injected. Retrieved entries carry version information and enter the run as historical context. Memory is currently stored locally.
Domain experts, skills and connectors provide complementary capabilities. Experts specify methods and acceptance criteria. Skills carry reusable workflows. Connectors provide access to configured external resources. A task first uses suitable capabilities already available and discovers additional resources when it identifies a concrete gap. Discovery supports keyword and local semantic retrieval. A selected skill's workflow must be read, and connectors are called according to their current schemas.

For optical calibration, a specialist method can require checks on wavelength units, dark-current handling and the model's valid range while reusing literature-acquisition and plotting workflows. A creator can package instructions, scripts and a shareable example as a skill. Another team can discover that method through the marketplace and apply it to materials it is authorized to use. New input formats and reproducible failures can inform revisions, helping expertise travel between teams with its assumptions and acceptance criteria intact.
Trace source identity through to the delivered artifact
An abstract, a preprint and a published paper can provide different levels of evidence. leapsea's paper-acquisition path represents identity and version in structured form, supporting identifiers such as DOI, PMID, PMCID and arXiv. It distinguishes outcomes including version mismatch, abstract-only access, parsing failure and a required login. Returned documents include a content digest and extraction-completeness information so later steps can assess what material was actually acquired.
Outputs need explicit identities too. The workspace records files created or modified during the task. Formal deliverables pass through host publication and receive artifact registration and a successful receipt. When a researcher requests a report, code or figures, the registered version provides a reviewable reference. Workspace state and publication records each describe their respective part of the work.
For scientific figures, the plotting component can return SVG, an editable figure specification and statistical JSON. Delivering these materials when requested lets the next researcher inspect axes, units, data mappings and statistics before making changes. The report's claims should also lead back to the paper version, input data and computation records actually used. Together those materials give a reviewer a practical starting point.
Give specialist work observable execution state
An interdisciplinary task may benefit from separate units for literature review, data processing, method checking and synthesis. leapsea supports subagent delegation and expert-team execution, with runtime management of member state, task ownership and tool scope. Each member works toward a defined objective and acceptance criteria. The parent task can continue using the evidence and materials returned by those members.
A team member's available tools are constrained by both the parent task's effective capabilities and the team policy. Tool requests also need to match the parent run state, member binding and Worker generation. The Supervisor persists team state and revisions. When the parent task terminates, subsequent dispatch and operations with side effects are constrained accordingly.
After data processing, one work unit might check units and statistical assumptions while another examines the method's conditions of use in the literature. Their disagreements and supporting evidence can then return to the parent task. Researchers can inspect member objectives, execution records and results. The value of this arrangement depends on a sensible division of work, usable handoffs and whether review identifies substantive issues.
Keep alternative research paths in separate workspaces
The same dataset may invite two baseline-correction methods or a question about how an outlier rule affects the result. leapsea offers thought branches that share materials and independent file workspaces based on Git worktrees, while preserving the derivation between tasks. These support continued discussion around existing materials and explorations that require independent file changes.
Independent experimental workspaces require a Git workspace. A researcher can inspect an experiment's file changes relative to its branching baseline, then merge the selected experiment branch's changes into the current workspace. The merge path checks target workspace state and conflicts. Conversations retain their own contexts, while task provenance helps identify the question and workspace from which an analysis developed.
For instance, the main workspace can retain the original calibration method while an experiment tries another fitting approach. Comparing them calls for fixed inputs and evaluation conditions, followed by a review of changes to scripts, configuration and outputs. Branches establish file boundaries. Research judgment and inspectable results determine which method is appropriate.
Connect these mechanisms in a data-analysis task
Imagine a lab comparing calibration data from two batches of optical sensors. This is an illustrative workflow scenario. The task starts with measurement files and instrument documentation, plus explicit requirements for figures, error analysis and review. The paper-acquisition path checks the identity of relevant sources. Project context retains units, batch definitions and agreed conditions, and the specialist workflow guides the next operations.
During execution, real tools read files, run code and return results, with operations and receipts recorded on the managed path. If fitting suggests that another method should be compared, an independent experimental workspace can hold the changed analysis under fixed inputs and evaluation conditions. A specific question can then be delegated for specialist review, with supporting evidence and inspectable files returned to the parent task.
At delivery, the selected figures, configuration, analysis code and necessary explanation are formally registered. The researcher can examine how the outputs relate to the original records, decide whether to accept a processing rule and continue the next iteration from saved task state. Source acquisition, code execution, method comparison and delivery are connected through the same task identities and execution records.
Evaluate runtime changes against task evidence
Evaluating a scientific agent requires checking what it actually completes. ScienceAgentBench, published at ICLR 2025, assesses generated programs, execution outcomes and costs on concrete research tasks. This approach brings deliverables and task objectives into the same evaluation and provides a basis for repeatable comparisons of harness changes.
leapsea's Agent Lab integrates the product Supervisor, a verified OMP Worker and actual host tool execution into development evaluations. It records run identities, model requests, tool outcomes, scores and usage. Training, candidate selection and independent testing are separated so changes can be examined under specified task and configuration conditions, with execution failures traced to the relevant layer.
Current scientific benchmark evidence primarily supports small-scale development diagnostics. Automatic tuning has yet to produce a candidate validated for product adoption. Results need to be read alongside task splits, tool environments, scoring methods and failure records. Quantitative conclusions about quality, cost or elapsed time require additional controlled comparisons and sufficiently complete execution evidence.
Leave the next researcher a reviewable record
Scientific review needs both accessible materials and an account of how they relate. Task identity associates work with a run. Operation receipts record tool outcomes. Source identity and artifact versions help trace inputs and deliverables. Experimental branches retain changes made for alternative approaches. These mechanisms provide a foundation for review and reproduction.
Full scientific reproduction also requires dataset versions, dependency environments, random seeds, parameters and method records. Instruments and external services can introduce further conditions that affect results. The harness organizes task state and artifacts. Researchers still need to decide which conditions their discipline requires them to fix, which differences are acceptable and how to validate the outcome.
This article draws on leapsea source code and product documentation accessible as of November 18, 2026. It describes runtime architecture and engineering mechanisms within the scope of the implementations and recorded evidence. As workflows are used, the material worth accumulating includes inspectable task records, clear delivery conditions and the resources another researcher needs to continue the work.