Mach2: Scientific Discovery Platform with Deterministic Execution Constraints

Vansh Sharma, Venkat RamanarXiv 2026

TL;DR

Mach2 is a scientific discovery platform that replaces "prompting and praying" with a rigorous, rule-gated architecture for LLM agents. By enforcing deterministic execution constraints—essentially "linting" for agent actions—it ensures that autonomous scientific workflows remain verifiable, physically consistent, and accountable.

What Problem Does This Paper Address?

We are currently in the "wild west" phase of LLM agents. While models like GPT-4 or Claude can write code and call tools, they are notoriously bad at strictly following natural-language operating rules. In a creative writing task, a minor deviation is fine; in computational engineering, a single violation of a conservation law or an incorrect unit conversion can invalidate weeks of simulation data.

Current agent harnesses rely heavily on the model's internal "willingness" to follow instructions. The authors argue that for scientific discovery, we need more than just better prompts. We need a system where the environment itself enforces domain-specific rules, preventing the agent from proceeding if it violates safety, logic, or physical constraints.

Methods

The core of Mach2 is the transition from natural language instructions to executable predicates. Instead of just telling an agent "don't use temporary directories," Mach2 translates that rule into a deterministic check (similar to a linter) that the system runs before any action is committed.

Key components of the architecture include:

  • Eigen Orchestrator: A custom agent that decomposes high-level objectives into a directed acyclic task graph.
  • Isolated Project Branches: To prevent "context contamination," agents work on logically isolated branches. Changes are only integrated into the main project state if they pass a series of "gates."
  • CodeGrapher & CADGrapher: These tools provide the agent with structural insights via Abstract Syntax Tree (AST) analysis and executable CAD operations, moving beyond simple text-based code generation.
  • Rule-Gated Lifecycle: The system applies checks at three boundaries: local actions, candidate artifacts, and returns from external execution.
Figure 1. Rule-gated multi-agent execution. Eigen decomposes the task into dependent subtasks, receives branch-local proposals and evidence, and integrates admissible changes into a candidate state. Only a passing post-merge validation updates the accepted project state; failed checks trigger replanning.

Datasets

The paper does not introduce a new training dataset or report scores on standard benchmarks like SWE-bench. Instead, it focuses on the formalization of the system architecture. The authors note that existing software benchmarks are currently insufficient for this field, as they lack the ability to test for numerical and CAD-specific properties—a gap they aim to address in future work.

Key Insights and Ideas

  • The "Customs Check" for Remote Agents: One of the most innovative features is the Agent Package. Mach2 can bundle an agent with a specific policy and "result contract" and send it to run on a remote endpoint. When the agent returns, the originating harness treats the results as "untrusted" until they pass a local validation gate.
  • MIK (Model-Internal-Knowledge) Flagging: Mach2 explicitly identifies assertions made by the model that lack a recorded source or test-backed evidence. These are flagged as MIK. This doesn't mean the assertion is false, but it alerts human reviewers that the information is a "hallucination" (even if a correct one) rather than a grounded fact.
  • Deterministic Enforcement vs. Probabilistic Generation: The paper draws a hard line between the model's choice of action (probabilistic) and the harness's decision to permit it (deterministic). This separation is critical for high-stakes engineering.
Figure 2. Mach2 agent lifecycle with rule checkpoints. Local execution and package construction use instrumented checks; an independently executed package is validated on return before its results are accepted into the project.

Key Results

The paper provides a qualitative comparison of Mach2 against other extensible agent runtimes like OpenCode and DeepSeek Harness.

Table 2. Selected execution and policy abstractions across agent harnesses.

While other systems offer configurable tool permissions or sandbox controls, Mach2 is unique in its focus on:

  1. Eigen-authored engineering workflows specifically designed for scientific tasks.
  2. Gated acceptance of domain-specific checks.
  3. Result reconciliation that validates returned artifacts against a pre-defined contract before they are incorporated into the project workspace.

Limitations and Future Work

The authors are transparent about the "limits of protocol." Deterministic checks are only as good as the predicates written for them. A passing check doesn't guarantee that the natural-language requirement was translated perfectly, nor does an AST analysis prove that code will be correct at runtime.

Looking ahead, the team plans to develop Mach3, which will incorporate runtime classifiers to identify potentially invalid tool invocations before they even reach the deterministic gates. They also aim to expand the system's capabilities into multimodal tool integration and more complex, adaptive scientific reasoning frameworks.

Summary updated

BibTeX
@misc{sharma2026mach,
  author = {Vansh Sharma and Venkat Raman},
  title = {{Mach2: Scientific Discovery Platform with Deterministic Execution Constraints}},
  year = {2026},
  eprint = {2611.14777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14777},
}
Figure