AI向けカナリアリリース/A-Bテスト/フィーチャーフラグ

用語・参照用語・参照実挙動未確認実挙動未観測鮮度未確認鮮度を確定できない
記事ID
EA-059

要点

「AIの段階投入では、modelやprompt等の構成をversionで固定する層と、その構成へtrafficを割り当てるflag/canary層を分ける。Feature flagはroutingの仕組み、canaryはblast radiusを制限して段階的に昇格・中止する運用、A/Bは比較実験であり、同じものではない。既存のprogressive-delivery基盤はAIにも利用できるが、昇格判定には通常の可用性・遅延・costだけでなく、task品質・policy違反・tool失敗等のAI固有指標を追加し、評価器自体のversionも記録する。限定投入は安全性の証明ではなく、被害範囲を限定して検出可能性を上げるcontrolである。」

現在の判断

F1 [仕様確認済み / INFERENCE]: Feature flag, canary, and A/B must not be collapsed. Feature flag is a runtime selection primitive. Canary is staged exposure intended to bound blast radius and support promote/abort decisions. A/B is simultaneous assignment intended primarily for comparative inference/experimentation. One flag system may implement routing for either, but does not by itself supply an evaluation methodology. F2 [OSS_PRACTICE]: Progressive delivery is mature outside AI. Argo Rollouts implements weighted traffic shifting, metric-driven analysis, manual judgement, promotion and rollback. Therefore AI does not require inventing a wholly new rollout control plane; existing progressive-delivery mechanisms can carry AI-specific gates. F3 [INFERENCE / PROPOSAL]: AI rollout should separate two layers: (A) an immutable execution-configuration bundle identifying the exact model/prompt/tool/retrieval/policy/schema configuration and (B) a traffic/cohort selector deciding which requests use which bundle. This prevents a mutable alias or prompt draft from changing underneath an experiment. F4 [仕様確認済み]: OpenFeature evaluation context supports deterministic subject/cohort targeting and fractional rollout patterns via targeting keys and provider evaluation rules. Hooks provide appropriate attachment points for telemetry and validation. F5 [INFERENCE / PROPOSAL]: Promotion gates should include both conventional SRE signals (availability, errors, latency, saturation, unit cost) and AI-specific signals where applicable (task success/quality, policy violation/refusal rates, tool/retrieval failure, harmful side effects). Evaluator/judge version and sampling method must be recorded because the measurement instrument itself can drift. F6 [製品情報は要再確認]: Amazon Bedrock Prompt Managementは、現在バリアントとバージョンのスナップショットを提供しています。これはプロバイダー固有の設定プリミティブとしては有用ですが、ここに引用されている公式ドキュメントでは、プロンプトのバージョン間での自動的なトラフィックのパーセンテージ分割については確立されていません。別途の根拠がない限り、これをBedrockのカナリアコントローラーとして記述しないでください。 F7 [INFERENCE]: A rollout record needs at least resolved immutable configuration ID, flag/rule revision, cohort/target key derivation, exposure timestamp, metrics/eval revision, decision (continue/promote/abort), decision actor, and rollback target.

どこまで当てはまるか

  • OpenFeature specifies an API abstraction; actual percentage rollout, persistence, targeting, audit, and control-plane functionality depend on the selected provider/product.
  • Argo Rollouts requires Kubernetes and integration assumptions; traffic routing/metrics support varies by ingress, service mesh and provider integration.
  • Amazon Bedrock Prompt Managementの可用性は、サポートされているリージョン/モデル、IAM権限、および現在のサービス設定に依存します。公開ドキュメントは、特定の組織の利用環境における可用性を証明するものではありません。
  • Product/release claims above are as-of 2026-09-14 and require revalidation at book-update time.

詳しく理解する

対象範囲と前提

Enterprise AI Core: 段階的な提供 / デプロイメントの運用管理・統制 / ロールバックのゲート Interoperability: OpenFeature vendor-neutral flag evaluation API Implementation: Argo Rollouts等のcanary/progressive delivery、provider prompt version/variant機能 Provider mapping: Amazon Bedrock Prompt Management等 Governance: cohort definition、promotion/abort authority、change provenance ベンチマーク/評価:オフライン評価とオンラインカナリア/A-Bの分離

検討ポイント

  • AIのcanary/A-B/feature flagは同義ではなく、異なる目的を持つcontrolであるか。
  • 新model/prompt/tool等を安全に限定投入するため、どの構成をimmutableに固定し、何をruntime routingで切り替えるべきか。
  • promotion/abortの判定に通常SRE指標だけでなくAI固有指標をどこまで組み込めるか。
  • feature flag control plane自体のsecurity/privacy/failure modeは何か。

根拠資料

E1 | class: official specification | title: Flag Evaluation API | author/org: OpenFeature | canonical URL: https://openfeature.dev/specification/sections/flag-evaluation/ | publication/update: current specification, accessed 2026-09-14 | version: OpenFeature Specification v0.9.0 context | locator: Overview; abnormal/default evaluation requirements; shutdown | label: 仕様確認済み | relation: support/context | Evidence: flag evaluation API is vendor-independent from the flag control plane; no-op/default behavior exists, establishing routing control and fallback as separate from the AI payload itself. E2 | class: official specification | title: Evaluation Context | author/org: OpenFeature | canonical URL: https://openfeature.dev/specification/sections/evaluation-context/ | accessed 2026-09-14 | version: v0.9.0 context | locator: §3 overview, Requirement 3.1.1, context merging | label: 仕様確認済み | relation: support/limit | Evidence: targeting context can drive rule, subject override, and fractional evaluation; targeting key may be required for deterministic fractional rollout. E3 | class: official specification | title: Hooks | author/org: OpenFeature | canonical URL: https://openfeature.dev/specification/sections/hooks/ | accessed 2026-09-14 | version: v0.9.0 context | locator: Overview; before/after/error/finally; hook data | label: 仕様確認済み | relation: support | Evidence: flag lifecycle exposes validation, telemetry, and error hooks, enabling rollout-decision observability without coupling it to model logic. E4 | class: project release/update | title: OpenFeature Mid-2026 Update: Platform-Native Feature Flags, a New TC Member, and Spec v0.9.0 | author/org: OpenFeature | canonical URL: https://openfeature.dev/blog/openfeature-mid-2026-update/ | publication: 2026-08-12 | version: Specification v0.9.0 | locator: Specification v0.9.0 section | label: SOURCE_REPORT / OSS_PRACTICE | relation: support/limit | Evidence: v0.9.0 is first spec release since v0.8.0 (2024-03) and stabilizes evaluation/provider sections while including accumulated changes; SDK/provider compliance can lag specification change. E5 | class: author-maintained OSS / release | title: Argo Rollouts — Progressive Delivery for Kubernetes; Releases | author/org: Argo Project | canonical URLs: https://github.com/argoproj/argo-rollouts ; https://github.com/argoproj/argo-rollouts/releases | release: v1.10.0 dated 2026-08-05, release assets updated 2026-08-27 | tag/version: v1.10.0, commit d90700a | locator: project README features; v1.10.0 release | label: OSS_PRACTICE / OBSERVED | relation: support/context | Evidence: canary, weighted traffic shifting, metric analysis, automated promotion/rollback are implemented progressive-delivery primitives. E6 | class: public security advisory | title: Argo Rollouts dashboard through 1.10.0 binds to all interfaces and exposes mutating Rollout operations without authentication | author/org: GitHub Advisory Database / NVD reference | canonical URL: https://github.com/advisories/GHSA-366v-5xmx-36vh | publication: 2026-08-28 | affected: through 1.10.0 per advisory | CVE: CVE-2026-82277 | locator: Description | label: SOURCE_REPORT | relation: counter/limit | Evidence: rollout control plane can itself become a critical attack surface; same-network attacker could invoke promote/abort/restart/image/undo/retry functions under described conditions. E7 | class: provider official documentation | title: Construct and store reusable prompts with Prompt management in Amazon Bedrock | author/org: AWS | canonical URL: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html | accessed: 2026-09-14 | service revision: current docs | locator: Key definitions / Prompt variant | label: 製品情報は要再確認 / SOURCE_REPORT | relation: support/context | Evidence: a prompt variant can vary message, model, or inference configuration and can be tested/compared. E8 | class: provider official documentation | title: Deploy a prompt to your application using versions in Prompt management | author/org: AWS | canonical URL: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html | accessed: 2026-09-14 | locator: version definition | label: 製品情報は要再確認 / SOURCE_REPORT | relation: support | Evidence: a prompt version is a point-in-time snapshot of prompt/configuration for production integration. E9 | class: provider official documentation | title: Compare versions of a prompt in Prompt management | author/org: AWS | canonical URL: https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-version-compare.html | accessed: 2026-09-14 | locator: compare JSON definitions and model responses | label: 製品情報は要再確認 / SOURCE_REPORT | relation: support/limit | Evidence: provider supports configuration/output comparison, but this feature alone is not a production traffic-splitting or statistical A/B system.

合成環境で確認したこと

合成した利用者識別子への段階配信で、配信範囲を増やしても既存の割当てを保つことと、中止後に安定版へ戻ることを確認した。

段階配信では新旧構成の割当てを固定し、中止操作が実際の配信先へ反映されるかを確認する必要がある。

対象範囲: 実製品や実組織から切り離した、ローカルの合成条件下での確認。

限界: 実利用者を使わないハッシュ割当ての試験である。設定比率と観測人数は一致するとは限らず、OpenFeature、Argo、商用配信製品、統計的比較、有意差、実運用品質は試験していない。

確認日: 2026-11-14

よくある失敗・反証

  • A canary reduces blast radius; it does not prove correctness or safety. Rare failures, long-tail workflows, delayed side effects, and population shifts can survive a small canary.

  • LLM stochasticity means a one-request comparison can be misleading. Repeated/sample-aware evaluation is required where variance matters.

  • A/B experimentation may be unethical or operationally unacceptable for high-risk decisions if one arm may cause material harm. Offline/synthetic evaluation and stricter approval gates can be required before any live exposure.

  • Feature flag service outage or mis-evaluation can route traffic incorrectly. Stable/fail-safe defaults must be deliberate rather than accidental.

  • ArgoのCVE-2026-82277に関するアドバイザリは、デプロイ制御インターフェース自体の保護が不十分な場合、それ自体が重大な影響を及ぼす変更操作を許容してしまう可能性があることを示しています。このアドバイザリは、記述された特定のArgoダッシュボードのバージョンに関する証拠であり、すべての継続的デリバリーシステムがこの脆弱性を共有していることを証明するものではありません。

  • OpenFeature v0.9.0 remains pre-1.0; spec evolution and SDK/provider conformance lag must be version-gated.

実務での使い方

  • OpenFeature: implementable vendor-neutral evaluation abstraction; current spec context v0.9.0. Argo Rollouts: production OSS progressive-delivery implementation; current GitHub release observed v1.10.0. Amazon Bedrock Prompt Management: provider-managed prompt variants/version snapshots exist; use as configuration/version evidence, not as automatic canary proof. Core candidate implementation pattern: versioned configuration registry -> cohort/flag resolver -> execution -> telemetry/eval -> promotion/abort controller -> stable rollback target.

  • No universal AI canary threshold was established. Future Work should define organization- and use-case-specific guardrails. Recommended evaluation sequence is offline regression/contract evaluation -> shadow or replay where feasible -> bounded canary -> staged increase -> broad rollout. This sequence is PROPOSAL/INFERENCE, not an industry standard established by the cited sources. For A/B, statistical design, power, interference, repeat exposure, and stochastic output variance must be handled separately from deployment safety.

  • Security: rollout promotion/abort and flag administration are privileged control-plane actions; enforce strong authn/authz, network restriction and audit. Do not expose unauthenticated mutation endpoints. Privacy: evaluation context may contain user attributes. OpenFeature documentation itself warns that providers may handle/persist context; minimize, pseudonymize/hash where suitable, and avoid unnecessary sensitive content. Audit: preserve resolved config revision and flag/rule revision, not only mutable alias/flag name. Cost: canary/A-B duplicates evaluation and may temporarily increase model/tool spend; cost per successful task should be a rollout signal where material. Operability: default/fallback route should be tested. A fail-open default to an unsafe/new AI configuration is an avoidable control error.

  • OpenFeature v0.9.0 は、現在発表されている pre-1.0 ラインのままです。Argo Rollouts v1.10.0 は最新のリリースですが、CVE-2026-82277/GHSA-366v-5xmx-36vh は、既知の修正済みバージョンがない状態で 1.10.0 を介したダッシュボードへの露出について記述しています。Bedrock Prompt Management のバリエーション/バージョンは、それ自体がトラフィック分割を行うカナリア制御ではありません。

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

  • provider横断でAI-specific rollout metric schemaを統一する標準は未確立。特定tenantでのflag provider/Bedrock機能のavailabilityは未確認。LLM judgeをonline promotion gateにした場合の組織別許容誤差も未確立。

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

根拠資料

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

  • 実装資料実装資料

    合成環境で確認したこと

    何を支えるか

    • 合成した利用者識別子への段階配信で、配信範囲を増やしても既存の割当てを保つことと、中止後に安定版へ戻ることを確認した。

    • 段階配信では新旧構成の割当てを固定し、中止操作が実際の配信先へ反映されるかを確認する必要がある。

    • 対象範囲: 実製品や実組織から切り離した、ローカルの合成条件下での確認。

    確認上の限界

    実利用者を使わないハッシュ割当ての試験である。設定比率と観測人数は一致するとは限らず、OpenFeature、Argo、商用配信製品、統計的比較、有意差、実運用品質は試験していない。

更新履歴

  1. 適用範囲と限界を明示した検証結果を追加しました。

このページから探す

種類

主題

やりたいこと

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

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

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