統合アーキテクチャ: アダプタ境界
Agent支援エンジニアリングチェック
前提条件
第85日の凍結済み憲章と適合契約。projects/agent_learning のソース構成。
学習目標
検証済みハーネス (ツール・予算・スコアラー) と選択したモデルアダプタを組み合わせる統合継ぎ目を設計します。限定ツールをちょうど1つ追加し、既存の制限を一切弱めません。
手順
1. projects/agent_learning の構成要素を対応付けます: cli.py の入口、agent.py のステップ/リトライ予算とパス検査を持つループ、fixtures.py の使い捨て作業領域、deterministic-v1 アダプタ、独立スコアラー。
2. アダプタ境界を描きます: アダプタはアクションを提案するだけ。ハーネスが検証し、限定ツールを実行し、構造化された観測を返します。モデルは決して検証を迂回しません。
3. 新規の限定ツール1つ (例: count_words(note_name) -> int) を仕様化します: 登録名・型付き引数・フィクスチャ内パス処理・独自の失敗契約。
4. live アダプタスロットを仕様化します: deterministic-v1 と同じアクションスキーマで、チケット23の認可契約でゲートします。どちらのアダプタがアクションを出したかハーネスは区別できません。この不透明性こそ継ぎ目です。
5. integration_design.md を書きます: テキスト構成図、ツール契約、「制限維持」チェックリスト (ステップ予算・リトライ予算・ペイロード上限・パス検査・終了条件)。
演習と予測記録
count_words のツール契約 (名前・引数・戻り値型・エラーモード) と、アダプタ交換が予算を引き上げられないことを証明する制限維持チェックリストを作成してください。
不正な引数のアクションが届いたとき拒否するのは誰でしょう? ハーネスです。だからアダプタは信用せずに済みます。
count_words(note_name: str) -> int。エラーモード: invalid_arguments (非文字列/名前欠落) と missing_note (フィクスチャに無い名前)。制限維持: max_steps=6、max_retries=2、ペイロード上限、フィクスチャ起点パス、goal_reached | tool_failure | budget_exhausted での終了。すべてハーネス側で強制。
すべての制御がハーネス側にあり、予算・パス・終了に触れずにアダプタを交換できる設計を作成できること。
公式ソースリソースと権利証跡
Toolformer: Language Models Can Teach Themselves to Use Tools
該当セクション・タイムスタンプ: Sections 2-3: API-call annotation, sampling, filtering, tool integration
検証バージョンと日付: NeurIPS 2023 / arXiv:2302.04761v4 (Verified: 2026-10-30)
Primary reference for model-tool integration with explicit API contracts; informs the capstone's adapter boundary where the harness owns tool validation and the model only proposes calls.
Language-model finetuning, API calls, and tool schemas.
The capstone's tool contract template (name, typed arguments, error modes) is fully specified in the lesson instructions.
比較対象候補リソースと選定評価 (2)
Prompt-time interleaving rather than finetuned tool calls; both define the model-side of the same adapter boundary.
Large API-corpus retrieval; Toolformer's minimal single-tool mechanics match the capstone's bounded tool set.
LLM Powered Autonomous Agents
該当セクション・タイムスタンプ: Sections: planning, memory, tool use, challenges
検証バージョンと日付: Blog post June 23, 2023 (Verified: 2026-10-30)
Widely used survey mapping agent architecture components (planning, memory, tools) and their failure modes; supports the capstone integration architecture review.
Agent loops, tool use, and planning vocabulary.
The capstone architecture lesson specifies the adapter boundary, budgets, and tool contracts directly; no blog content is required offline.
比較対象候補リソースと選定評価 (2)
Open-ended autonomous loop; deliberately excluded as the capstone must remain a bounded, evaluable system.
Task-list autonomy demo; the survey article gives vocabulary while the capstone keeps fixed tasks and budgets.