プロンプトから契約へ:監査可能なエンタープライズLLMエージェントのためのハーネスエンジニアリングFrom Prompts to Contracts: Harness Engineering for Auditable Enterprise LLM Agents
企業向けLLMエージェントの動作を検証・監査可能にする「ハーネスエンジニアリング」手法を提案し、プロンプト設計を形式的な契約として扱うことで信頼性とガバナンスを高める。
This paper proposes harness engineering, a framework that treats LLM agent prompts as formal contracts to enable auditability and governance in enterprise deployments, improving reliability and accountability.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (arxiv.org) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (arxiv.org).
企業向けLLMアプリケーションは、プロンプトと検索コンテキストに挙動を委ねたプロトタイプとして始まることが多い。論文「From Prompts to Contracts」(Joongho Ahn ほか1名)は、このパターンを追跡可能で監査可能なLLMエージェントの構成へ作り替える「ハーネスエンジニアリング」を提案している。
プロトタイプから製品へ
論文によれば、プロトタイプを製品にする段階では、ソースの境界、エンティティのルーティング、回答契約、再現可能なトレースといった要件が加わる。ハーネスエンジニアリングは、プロンプトと検索コンテキストが挙動を担う従来の作りを、これらの要件に応えられる形へ再構成する取り組みとして位置づけられている。
コードとスキーマへ移す
提案の中心は、決定的な振る舞いをコード、マニフェスト、スキーマ、検証アーティファクトへ移すことにある。これらは、置き換え可能な構成の境界(composition boundary)の周囲に配置される。挙動をプロンプトの文面だけに頼らず、検証できる成果物として外側に持つことで、動作の追跡や監査をしやすくする設計だと説明されている。
回答の権威はソースに
実行時の回答については、ソースに裏づけられた主張が引き続き権威であり続けるとされる。決定的な処理を外へ出す一方で、回答の根拠はソースにひもづいた主張に置くという役割分担である。
契約として扱う
論文の趣旨は、プロンプトを形式的な契約として扱い、企業での運用における信頼性、ガバナンス、説明責任を高める枠組みを示すことだと要約されている。タイトルの「プロンプトから契約へ」は、この方向性を表している。
The paper "From Prompts to Contracts: Harness Engineering for Auditable Enterprise LLM Agents," by Joongho Ahn and one other author, addresses how enterprise LLM applications can be made traceable and auditable. It matters because, according to the authors, many such applications start as prototypes whose behavior depends mainly on prompts and retrieval context.
Productization Adds Requirements
The paper describes a common starting point: an enterprise LLM application built as a prototype, where prompts and retrieval context carry the behavior. Moving that prototype into production, the authors say, adds several requirements: source boundaries, entity routing, answer contracts, and reproducible traces. These requirements are the reason the prompt-centered pattern needs to be rebuilt rather than simply extended.
From Prompts to Contracts
The authors present a harness-engineering approach that reconstructs the prototype pattern into a traceable, auditable LLM-agent architecture. A summary of the work says the framework treats LLM agent prompts as formal contracts. The stated aim is to support auditability and governance in enterprise deployments, with improved reliability and accountability as the intended results.
Deterministic Behavior Moves Into Code
According to the abstract, the central architectural move is to shift deterministic behavior out of prompts and into code, manifests, schemas, and validation artifacts. These artifacts are arranged around what the authors call a replaceable composition boundary. In other words, the parts of the system that can be fixed and checked are expressed in explicit, verifiable forms, while the composition step they surround can be swapped out.
Source-Backed Claims Stay Authoritative
The abstract also states that source-backed claims remain the authority for runtime answers. Even with the added structure of manifests, schemas, and validation, the answers the agent gives at runtime are meant to rest on claims that can be traced to sources. This ties back to the listed requirements for source boundaries and reproducible traces.
The paper is categorized as research and appears on arXiv in the computer science AI listing.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko試作ではプロンプトに任せていた動作を、製品化では決まった部分だけコードに移すんだね。これって大きな変化なの?So prototypes lean on prompts, but for production the fixed behavior moves into code? Is that a big shift?
- TECHガイドTECH Guideこの記事ではそう整理しているよ。決まった動作をコードやスキーマ、検証用の成果物に移して、あとから確かめやすくする狙いなんだ。That's how the article frames it. Fixed behavior goes into code, schemas, and validation artifacts, so it's easier to check later.
- ポコPoko「回答の契約(answer contract)」って、なんだろう?ほんとに契約みたいなもの?What's an "answer contract"? Is it really like a contract?
- TECHガイドTECH Guide答えが満たすべき形や条件を、先に決めておく約束くらいの意味だよ。守れているか検証できるから、監査もしやすくなるんだ。Roughly, it's a promise about the form and conditions an answer must meet. You can check it was kept, which helps auditing.
- ポコPokoもし自分の会社で使うなら、答えの根拠をあとからたどれたら安心だな。そういう作りなのかな?If I used this at work, I'd want to trace where an answer came from. Is it built for that?
- TECHガイドTECH Guide記事では、出典に裏づけられた主張を実行時の回答の拠り所にして、再現できる記録も要件に挙げているよ。ただ、その前提としてコードやマニフェストを整える作りになるね。The article keeps source-backed claims as the basis for runtime answers and lists reproducible traces as a requirement. But it assumes you set up code and manifests first.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
