プロンプト/インストラクション設定管理

用語・参照用語・参照実挙動未確認実挙動未観測鮮度未確認鮮度を確定できない
提供元・モデル・プラン・利用環境
Google
記事ID
EA-058

要点

「Promptやsystem instructionは単なる文章ではなく、本番挙動を変える構成資産としてversion管理する。再現・監査に必要なのはprompt本文だけではなく、実行時に解決されたprompt revision、model、generation設定、tool/retrieval/policy等の組合せである。productionのようなaliasは運用に便利だが、監査ログにはalias名だけでなく実際に参照したimmutable versionを残す。」

現在の判断

プロンプトのバージョニングは、単なる提案ではなく、既存の実装慣行である。MLflowは、不変のプロンプトバージョン、コミットメッセージ、タグ、環境のエイリアス、レスポンス形式、およびモデル構成を提供しており、エイリアスをバージョン間で移動させることで、昇格や以前の保存地点へ戻す操作が可能である。

どこまで当てはまるか

  • MLflow Prompt Registry behavior depends on deployed MLflow version/backend and organization auth configuration; docs establish OSS capability, not any managed-service parity.
  • Vertex AI Prompt APIs require Google Cloud project/auth/location and the current SDK/API surface; preview namespace usage means publication-time status must be rechecked.
  • No claim is made that Anthropic/OpenAI or every provider offers an equivalent first-party registry in every plan/region; provider mapping remains separate.

詳しく理解する

対象範囲と前提

  • Enterprise AI Core: バージョン管理された設定 / 不変の改訂版 / プロモーション / ロールバック / 出典・来歴
  • PromptOps / implementation: prompt registry、environment alias、CI/eval gate
  • Provider mapping: Google Vertex AI Prompt Management等
  • OSS practice: MLflow Prompt Registry
  • Governance / audit: owner、review、approval、change reason、effective deployment version

検討ポイント

プロンプトをバージョン管理された成果物として管理するだけで再現性は得られるか。モデル、生成設定、ツール、検索/ポリシーなどを、どこまで同じ構成セット(configuration bundle)として固定する必要があるか。

根拠資料

未確認事項と停止・確認条件

OPEN: provider横断configuration bundleの最小共通schema。OPEN: first-party prompt registriesのprovider/plan差とretention/export portability。OPEN: promptだけでなくtool schema/retrieval policy/guardrailを同一atomic releaseとして扱う標準的manifestの有無。STOP CONDITION: versioning・promotion・rollbackの実装precedent、prompt-only再現性の限界、Core候補bundle、publication-time recheck点まで確立したためEA-058初回packetはbounded complete。

確認できていること

  • Google Vertex AI also exposes saved prompt resources and versions and documents version listing/restoration. Current Python samples use vertexai.preview.prompts; therefore API maturity/availability must be rechecked at publication-update time.

  • Prompt text alone is insufficient for reproducibility. MLflow’s Prompt object itself recognizes model_config, and Vertex examples bind prompt data with model_name/system_instruction and optional generation/safety settings. From these implementations plus EA-055 replay requirements, Core should treat the deployment unit as an execution-configuration bundle rather than only text. This is INFERENCE/PROPOSAL, not a universal standard.

  • Recommended bundle identity: immutable prompt/instruction revision + model ID/revision/alias resolution + generation parameters + response schema + tool definitions/versions + retrieval/index/policy references + safety/guardrail config + environment + evaluation dataset/version + owner/approval/change reason. Runtime traces should record the resolved immutable revisions actually used.

  • Environment aliases (production, staging, etc.) improve operability but are mutable pointers. Audit/replay records must resolve and persist the target version at execution time; retaining only the alias is insufficient forensic provenance.

  • Rollback should create or select a known configuration revision and preserve history; “edit the current prompt back by hand” destroys provenance. Google’s restore sample creating a restored version and MLflow’s immutable-version/alias model both support this operational pattern.

よくある失敗・反証

  • Versioning a prompt cannot guarantee identical model output; model/provider revisions, nondeterminism, tools, retrieval state and external data may change.

  • A prompt registry does not by itself enforce review, evaluation quality, separation of duties or safe promotion. Those are organization workflow controls.

  • 変更可能なエイリアスはデプロイを簡素化するが、実行テレメトリにエイリアスのみが記録されている場合、使用時点における曖昧さを生じさせる。

  • プロバイダー固有のプロンプト・リソースは、スキーマとライフサイクルが異なります。プロバイダー間でプロンプトIDやバージョンの移植性があるとは記述しないでください。

  • vertexai.preview.promptsの下に示されているGoogleのサンプルAPIは、製品の変更により変動する可能性がある(製品情報は要再確認)ため、将来の公開前に再検証する必要があります。

  • Registry deletion/retention settings can conflict with forensic needs; production retention policy must be designed explicitly.

  • OPEN: provider横断configuration bundleの最小共通schema。OPEN: first-party prompt registriesのprovider/plan差とretention/export portability。OPEN: promptだけでなくtool schema/retrieval policy/guardrailを同一atomic releaseとして扱う標準的manifestの有無。STOP CONDITION: versioning・promotion・rollbackの実装precedent、prompt-only再現性の限界、Core候補bundle、publication-time recheck点まで確立したためEA-058初回packetはbounded complete。

実務での使い方

  • IMPLEMENTABLE NOW. Core pattern: immutable artifact revision -> evaluation -> approval -> environment alias/pointer -> deployment -> runtime logs capture resolved revision -> rollback by alias/promotion to an approved immutable version. Store prompt/instruction assets in EA-056 registry and link runtime revision IDs into EA-051 telemetry and EA-055 forensic records.

  • 構成管理の品質は、汎用的なモデルベンチマークではなく、変更のゲート(承認プロセス)によってテストされるべきです:回帰評価セット、ポリシー/安全性チェック、ツール呼び出しの契約テスト、出力スキーマのテスト、コスト/レイテンシの比較、およびカナリアリリース/ロールバックの演習。評価データセットやスコアラーのバージョン自体も出典となります。評価に合格したからといって、本番環境での安全性が保証されるわけではありません。

  • Security: prompts can contain policy logic, hidden instructions, tool constraints and sometimes secrets; secrets should be referenced through secret management rather than embedded in prompt artifacts.

  • Privacy: test examples and prompt variables can contain sensitive data; registry access and retention need data classification.

  • Audit: record author, reviewer, immutable version/hash or provider version ID, change reason, evaluation artifact, approval, promotion time, alias movement and resolved runtime version.

  • Cost: regression evaluation and dual-running/canarying incur inference cost; risk-tier changes rather than every wording edit can determine gate depth.

  • 運用性:レジストリ/エイリアスのキャッシュにより、ポインタの変更が遅延する可能性があります。MLflowでは、不変のバージョンと変更可能なエイリアスでキャッシュの挙動が異なるため、以前の保存地点へ戻す操作(ロールバック)の目標復旧時間(RTO)には、キャッシュや伝播のセマンティクスを考慮する必要があります。

  • MLflow prompt templates/versions are immutable but model_config on a prompt version is mutable after creation. Vertex AI prompt versioning/restoration remains 製品情報は要再確認. A prompt-version ID alone is not an immutable full execution configuration.

まだ確認できていないこと

  • OPEN: provider横断configuration bundleの最小共通schema。OPEN: first-party prompt registriesのprovider/plan差とretention/export portability。OPEN: promptだけでなくtool schema/retrieval policy/guardrailを同一atomic releaseとして扱う標準的manifestの有無。STOP CONDITION: versioning・promotion・rollbackの実装precedent、prompt-only再現性の限界、Core候補bundle、publication-time recheck点まで確立したためEA-058初回packetはbounded complete。

  • 外部根拠の再確認日が正式な本文・公開管理情報で確定していないため、現行性は未確認のまま保持する。確認日を推測して補わない。

根拠資料

この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。

このページから探す

種類

主題

やりたいこと

読み終えたら、次の判断へ

この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。

最初の知見から実務判断まで、3つの読み方を見る