Manuscript Offprint

arXiv:2611.06946

Beyond the Agent Harness: Boundary Criteria for Software-Factory Orchestration - A Single-Operator Case Study

Lei Hua

Abstract

Several recent systems add a layer above the coding-agent harness that organises many agent runs into continuous delivery. The existence of such a layer is not our contribution. What is missing is a rule for deciding which layer a mechanism or a failure belongs to. We propose boundary criteria based on an operational definition of a run. A mechanism confined to one run belongs to the agent harness. One that coordinates runs, hands state from one run to a later one, or is updated from run outcomes belongs to a factory harness. One that must change with the application domain belongs to the domain layer. Two residual tests assign infrastructure and model causes. For failures, we code where the defect originated, which control failed to stop it, and where it was fixed as three separate fields, and we require positive evidence before attributing a failure to the environment. We developed the criteria on documented failures from a single operator's pipeline serving six projects and on 26 components of three published systems. We then froze them and had two model coders of the same family apply them to the same descriptions of 46 held-out units. They agreed on all 26 mechanism layers and on 18–19 of 20 incident fields (κ\kappa 0.86–0.93), but both coders recorded the incident as undetermined or unrecorded in 8–13 of the 20 cases per field, and each flagged half of all units as ambiguous, mostly for missing information. The check exposed conflicts in the rules; a revision that separates mechanism classification from incident attribution resolves them but, in a sensitivity re-coding, agreed less (κ\kappa 0.78–0.93). Agreement here is neither accuracy nor usefulness, and human coders have not yet been tested. Case evidence and seven hypotheses are reported as preliminary.

1 Introduction

A common formulation in the practitioner literature holds that an agent consists of a model and a harness, where the harness is everything that is not the model: tools, context management, permissions, sandboxing and the loop that drives the model [1, 2]. Harness engineering has since become a topic of its own, with practitioner frameworks [3, 4], a source-code study of eleven production coding harnesses [5], a survey and taxonomy [6] and a constitutive definition with an inclusion–exclusion test [7].

In parallel, organisations describe software factories in which many agent runs are organised into continuous delivery [8–12]. Several authors already speak of the harness “becoming” a factory [13, 14], and recent systems implement an explicit layer above existing harnesses: Harness-of-Harness (HoH) organises a fixed harness-model configuration into planning-coding-testing loops with cross-loop state [15]; Sengupta et al. describe a contract-driven meta-engineering harness with a failure arbiter and outer-loop calibration [16]; Omnigent composes and controls several harnesses as a meta-harness [17]; Proof-or-Stop gates lifecycle transitions on hash-bound evidence [18].

The existence of a layer above the agent harness is therefore established, and we do not claim it. What remains unclear is where the boundary lies. The survey by Li et al. places cross-run persistence, multi-agent orchestration and issue-to-PR pipelines inside the harness [6]; de Macedo's test classifies an orchestrator or an evaluation harness as neighbours outside it [7]; Sengupta et al. call the whole production system a harness and reserve “factory” for the larger system including its accumulated assets [16]. These are different usages of the same words, and none of them gives a rule for assigning a given mechanism (a resource lock, a protected test file, a retry budget, a preflight check) to a layer. We expect this to matter for design, because mechanisms in different layers plausibly change at different rates and for different reasons (H4, H5), and for evaluation, because a comparison of agent harnesses that ignores the outer layer can attribute to the harness effects that come from verification or scheduling.

This paper makes the following contributions, of which the first two are the main ones.

(i) Boundary criteria and a three-field incident coding. Criteria that assign a mechanism to the agent harness, the factory harness or the domain layer, residual tests for plant and model, an operational definition of a run, and a coding of failures that separates defect origin, control gap and fix location, with an evidence rule for environmental causes (Section 3.3, Appendix B). The criteria operationalise an informal distinction already drawn by practitioners [12].

(ii) A development-then-validation record for the criteria. The criteria were developed on documented failures from our case and on the components of three published systems, with the ambiguous cases reported. They were then frozen as version 1.0 and applied to 46 held-out units by two independent model coders. The conflicts this exposed led to a revised version 1.1, which separates mechanism classification from incident attribution; a re-coding under v1.1 is reported as a sensitivity analysis, not a validation (Section 6).

(iii) A five-layer stack that separates the domain layer (above) and the plant layer (below) from the factory harness (Section 3.2).

(iv) A single-operator, multi-project case (Sections 4 and 5). A factory-layer pipeline, System F, serves six projects with three selectable agent harnesses, shared runners and resource locks. To our knowledge, none of the 14 works compared in Table 1 (arXiv, OpenReview, vendor and practitioner blogs, searched up to 2026-11-02) describes this setting. The case also supplies preliminary evidence: a 48-run same-condition backend comparison recomputed from per-run data, held-out-check comparisons on two real defects, an episode in which a self-test result changed with the sandbox, and a rejection matrix for verification receipts signed outside the agent's sandbox. The receipt mechanism is close to Proof-or-Stop [18].

(v) An evaluation agenda of seven hypotheses with decision rules that distinguish support, refutation and inconclusive results (Section 7).

We follow case-study reporting guidelines for software engineering [19]. The system designer, operator and evaluator are the same person, the samples are small and adjudication was not blinded (Section 8). Every case number is keyed to a de-identified data appendix (Appendix A); the E1 numbers were recomputed from per-run data, and the remaining case numbers are author-reported. Naming note: “Factory” is also the name of a company (factory.com; formerly factory.ai) whose product narrative uses the term “software factory” [11]. This work has no affiliation with that company; we use the term generically.

References (26)