本番AIエージェント基盤分析

kagent 1.0が示す、Agent StateをSchedulable Runtime Boundaryにする設計

Solo.ioはKubernetes上の本番AI agent向けにkagent 1.0とAgent Substrateを公開。Agent再開時にはdurable state、actor単位のidentity、isolation、gateway policyを一体で移動させる必要があります。

読了目安 6分

Solo.ioが公開した内容

Solo.ioは11月10日、kagent 1.0と、kagentおよびAgent Substrateのenterprise releaseのgeneral availabilityを発表しました。Agent Substrateはagent型workloadをactorとしてwarm Kubernetes worker Podのpool上で実行します。Idle actorをsuspendしてworkspaceと任意のmemoryを保存し、request到着時にeligible workerへrestoreできます。Solo.ioによると、各actorはgVisorまたはmicroVM sandboxで動作し、worker間を移動しても維持されるSPIFFE-based identityを持ちます。

kagentはuser、conversation、agent、sandboxを扱う上位layerです。発表ではdeclarative agent definition、version固定conversation、auto-suspend、human approval wait、checkpointとfork、OIDC-based ownership、gatewayによるcredential injection、A2AとMCP access、OpenTelemetry telemetryが挙げられています。Solo.ioはOutSystemsとSwissquoteでの本番利用も報告しています。ここまでは同社のproductおよびcustomer claimであり、以下はIneezaのengineering分析です。

運用単位はPodではなくActorになる

従来のservice replicaは交換可能で、ほぼstatelessであることを前提とします。一方、agent sessionはworkspaceを蓄積し、modelや人を待ち、生成codeを実行し、特定userのために行動します。Solo.ioのarchitectureは、このlogical actorをcomputeを提供するwarm workerから分離します。

Ineezaの分析: 本番systemではactorをlifecycle、ownership、policy、cost、incident responseの単位にすべきです。同じactorが別workerで再開できる場合、Pod restart metricだけでは不十分です。Immutable actor ID、state generation、適用中のpolicyとagent definition versionに加え、suspend、snapshot、placement、restore、terminationの各decisionを結ぶtraceが必要です。

ResumeはSecurity-SensitiveなState Transitionである

Workspaceのrestoreはstateless processのrestartと同じではありません。Actorにはcode、tool output、途中のplan、未commit file、未完了のhuman approvalが残り得ます。Suspend中にpolicy、model、tool schema、脆弱性の状況が変わる可能性もあります。

Ineezaの分析: Resume前にsnapshot integrity、actor ownership、policy compatibility、toolとmodelのavailability、revocation state、正確なcontinuation pointを検証します。古いpolicy下のsnapshotが現在の広いaccessを暗黙に継承してはいけません。Incompatible stateのquarantineとmigration pathを定義し、approval tokenはsingle-useかつoperation-boundとし、planやenvironmentの重要な変更後には無効化すべきです。

IdentityとCredentialは別の経路を通す

Solo.ioによると、actor identityはworker間でactorに追随する一方、outbound credentialはsandbox外に保持され、egress gatewayがpolicy評価後に注入します。この分離により、生成codeやprompt injectionからsecretが露出した場合の価値を下げられます。

Ineezaの分析: Actor identityはどのworkloadがactionを要求したかの証拠であり、それ自体をpermissionとして扱ってはいけません。Authorizationではactor、initiating user、tenant、conversation、承認済みpurpose、tool、destination、request parameterを結合します。Credential injectionはdecision後にだけ実行し、credentialを記録せずに観測可能にします。Restoreまたはforkされたactorがstale grantを再利用せず、tenant boundaryを越えず、未宣言destinationへ到達できないことをtestすべきです。

Capacity管理はIdle Pod数からWake-up Guaranteeへ移る

Suspendとresumeによりconversationの待機中はcomputeを解放でき、warm workerによりturnやtool callごとの完全なKubernetes scheduling pathを回避できます。主要な運用課題は、常時起動Pod数から、burst時に正しいactorを十分速くrestoreできるかへ変わります。

Ineezaの分析: CPU utilizationだけでなく、queue time、restore latency、snapshot durability、placement failure、state lossのservice objectiveを定義します。Capacity testにはcorrelated wake-up、大規模workspace、snapshotまたはrestore中のworker loss、storage unavailable、policy gateway degradationを含めます。Backpressureはtenant間のfairnessを維持し、client retryによって同一actorのactive copyが二つ生じないようにしなければなりません。

Version固定Conversationには明示的なUpgrade Contractが必要

発表では、new conversationは変更後のpromptやmodelを採用できる一方、in-flight conversationは開始時のversionを維持するとされています。また、kagent 0.xから1.0へのmigrationにはfresh installが必要です。どちらもversioningがdeployment detailではなくoperational boundaryであることを示します。

Ineezaの分析: 各conversationについてagent definition、model、prompt、tool schema、sandbox image、policy bundle、state formatを記録します。どの組み合わせをresume、fork、export、retireできるか定義します。Rollbackはcontrol-plane codeとpersisted actor stateの両方を対象にする必要があり、そうでなければapplication rollback後にnew schemaで作られたsessionが再開不能になります。

Ineezaの見解

kagent 1.0が重要なのは、待機時間が長くstatefulなAI agentを、Pod-per-session modelに適合しないworkload classとして扱う点です。有用な本番abstractionは単に高速なsandboxではありません。Computeを解放し再取得しても、state、identity、policy、evidence、authorityの整合性を維持するschedulable actorです。このarchitectureを評価するteamは、重要systemの操作を許可する前に、suspend、restore、fork、revocation、failure、upgradeの各scenarioでその整合性を証明すべきです。

← Ineeza ホーム