arXiv:2610.20935cs.AIOct 2026

Manuscript Offprint

arXiv:2610.20935

RAC: A Relational Agent Contract for Constraint-Governed Engineering Tasks

Kaiyuan Zheng, Fengqing Jiang, Yichen Feng, Zubin Aaron Assadian, Yuetai Li, Bhaskar Ramasubramanian, Basel Alomair, Luyao Niu, Radha Poovendran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Engineering agents must produce artifacts that satisfy exact, coupled constraints. Existing solutions often require agents to make semantic decisions and also derive consequences such as precise geometry or timing from those decisions, leading to failures in constraint-governed engineering tasks. In this paper, we introduce RAC, a harness-agnostic contract for the action and feedback layer of engineering agents. It specifies authoritative observations, semantic actions, tool-based realization, independent verification, and repair evidence. The agent decides which relations an artifact should satisfy; specialized tools derive their concrete consequences. On PCB placement, routing, and repair tasks, RAC achieves the highest clean-pass rate for all nine evaluated models, averaging 90.9%, compared with 74.0% for the strongest baseline, requirements-only delegation. In job-shop scheduling, direct relational actions achieve 96.3% quality pass versus 59.6% for code-mediated delivery with access to the same scheduling backend. Our evaluations on 141 embedded-code tasks across four microcontroller identify the action contract as a source of agent capability: preserving semantic control while delegating mechanically derivable outputs improves the reliability of constrained artifacts.

1 Introduction

AI agents can write code, invoke tools, and operate engineering software (Jimenez et al., 2024; Yang et al., 2024a; Chen et al., 2025; Xu et al., 2026). Producing a valid engineering artifact, however, requires exact constraints to hold together. A printed circuit board (PCB) must satisfy placement legality, clearance, connectivity, and task-specific relations such as a decoupling capacitor sitting next to the chip it serves; a manufacturing schedule must respect operation precedence and exclusive machine use. We call these constraint-governed engineering tasks. Validity of artifacts targeting these tasks depends on coupled, checkable constraints.

At present, however, agents still struggle accomplishing constraint-governed engineering tasks. Our results suggest that judgment–derivation coupling, where agents both make semantic decisions and reproduce their metric or hardware-specific consequences, contributes substantially to these failures. Our insight to address such failures is that a semantic decision in these tasks typically is a relation among named objects, such as “C1 close to U1” or “operation o2o_{2} ends before o7o_{7} starts,” and that relations have three properties the derived quantities lack. First, a relation is not derivable from the engineering context: choosing it requires interpreting the requirement. Second, once a relation is fixed, its concrete consequences follow mechanically from the context and can be computed by a solver. Third, a relation is checkable on the realized artifact independently of whoever produced it. Relations are therefore the natural currency of the agent’s action: they capture exactly the judgment the agent must supply and nothing the tools can derive.

In this paper, we develop RAC, a Relational Agent Contract, to define responsibility boundaries. RAC is harness-agnostic: it specifies the tool contract a harness exposes. Within that harness, RAC defines authoritative observations, semantic actions, tool-based realization, independent artifact verification, and feedback for repair. It requires no model retraining.

This boundary separates observation from construction. The agent may inspect exact coordinates while expressing only relations such as “C1 close to U1.” Tools jointly realize committed relations; independent checks evaluate both engineering rules and the required relations on the resulting board. Failed checks return evidence for the next relational decision. Thus, RAC removes judgment–derivation coupling while retaining explicit semantic control.

We test RAC in across constraint-governed engineering tasks from three different domains. With the harness held fixed, RAC achieves the highest clean-pass rate for all nine models on PCB tasks. In scheduling tasks, RAC improves the final quality-pass rate for seven models and ties with a baseline at 100% for the other two. Moreover, RAC consumes less tokens and incurs less wall time latency for most of evaluated models.

References (16)