arXiv:2611.05454cs.SENov 2026

Manuscript Offprint

arXiv:2611.05454

Agentic Behavior Engineering: A Design-by-Contract Methodology for Specifying, Verifying, and Governing Enterprise AI Agents

Yang Song

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

Abstract

Enterprise teams that deploy Large Language Model (LLM) agents inherit a maintenance problem that traditional testing does not address. The model is non-deterministic, but the larger risk is that most of what changes an agent's behavior (a retired model version, a revised policy, an upstream schema change, a prompt edit meant to fix one case) originates outside the owning team and is discovered as a production defect rather than caught as a regression. This paper presents Agentic Behavior Engineering (ABE), a platform-agnostic methodology that treats observable agent behavior, rather than the prompt or the model, as the version-controlled engineering artifact. ABE adapts Design by Contract to non-deterministic systems. A specification-only behavior contract with stable rule identifiers (Rxx) states what the agent must do, must not do, and when it must abstain for lack of evidence. A lightweight scenario library (SCN-xx) turns each rule into concrete situations. Every engineering artifact (tests, runtime policies, telemetry) references the contract in one direction only, so that specification and implementation can change independently without drifting apart. The method organizes the work into five responsibilities (Specify, Ground, Control, Verify, Observe), treats missing evidence and a verified negative as different things, enforces authority outside the model, gates releases on per-scenario pass^k reliability rather than aggregate accuracy, and classifies every production run against the contract so that each finding routes to the asset that must change. We illustrate the method with an executable capacity-allocation boundary suite and a constructed worked example of a product-review approval workflow.

1. Introduction

Enterprise automation is moving from fixed execution graphs to LLM agents that reason over several steps, call tools, and delegate to other agents. Moving those agents from prototype to production has proved harder than the prototypes suggested [9, 10], and the usual explanation, that the model is non-deterministic, is only part of the reason.

The larger part is maintenance. The model, prompts, tools, knowledge sources, memory, policies, and user access all change over time, and most of those changes originate outside the owning team: a provider retires a model version, a policy owner revises a rule, an upstream source changes its schema. Each can alter behavior without a line of application code changing. Without a specification separate from the implementation there is nothing to regress against, so each change surfaces as a production defect, is diagnosed from memory of how the agent was built, and is patched in the prompt. Because a long prompt is globally coupled, the patch that fixes one case routinely breaks another, and aggregate metrics hide it: a release that raises accuracy from 86% to 91% while adding a 4% regression on a compliance boundary (leaking personal data, fabricating a root cause, executing an unauthorized change) is one a composite score approves and an operator would not [11].

Three further gaps have little to do with the model. Requirements describe the happy path, not what the agent must refuse or when it must abstain for lack of evidence. Business owners and engineers mean different things by "done," and the difference surfaces in a demo instead of a review. Requirements are written against the schema; the records have missing fields, mixed units, and nulls that mean three different things. None of these closes with a better prompt. They close with specification, verification, and governance around the model.

This paper presents Agentic Behavior Engineering (ABE) [1], a platform-agnostic methodology built on one principle: