Agentic Software Factory を実装するときの勘所

Yuki Ito
December 02, 2026

Agentic Software Factory を実装するときの勘所

Yuki Ito

December 02, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

53 slides
  1. Agentic Software Factory とは A software factory is an agentic

    system that turns a prompt, a ticket, or a specification into tested code for an existing codebase, using one agent or several, and increasingly deploys and maintains what it builds. https://agentbaseline.org/software-factory.pdf 10
  2. Dark Factory A factory that runs with no human oversight

    … whose approval policy approves every change automatically, and the same controls apply, with a person still accountable for what it ships. https://agentbaseline.org/software-factory.pdf 12
  3. Secure Software Factory A secure software factory can’t depend on

    agents enforcing their own limits. … enforcing what they can actually do outside their decision loop, separating an agent’s planning from the authorization and enforcement of its actions. https://agentbaseline.org/software-factory.pdf 14
  4. Sandbox Each task gets its own sandbox, … Isolation matches

    the risk, from a container for trusted work to a microVM for untrusted code, and the sandbox is destroyed when the task ends. https://agentbaseline.org/software-factory.pdf 19
  5. gVisor と microVM gVisor provides a strong layer of isolation

    between running applications and the host operating system. It is an application kernel that implements a Linux-like interface. Kata Containers is an open source container runtime, building lightweight virtual machines that seamlessly plug into the containers ecosystem. https://gvisor.dev/docs/ https://katacontainers.io/ 21
  6. Kubernetes Agent Sandbox agent-sandbox enables easy management of isolated, stateful,

    singleton workloads, ideal for use cases like AI agent runtimes and reinforcement learning. https://github.com/kubernetes-sigs/agent-sandbox 22
  7. Sandbox apiVersion: agents.x-k8s.io/v1beta1 kind: Sandbox metadata: {name: my-agent} spec: operatingMode:

    Running podTemplate: spec: runtimeClassName: gvisor containers: - name: agent image: <IMAGE> volumeClaimTemplates: - metadata: {name: workspace} spec: accessModes: ["ReadWriteOnce"] resources: {requests: {storage: 10Gi}} 24
  8. GKE Sandbox gVisor 隔離の仕組み カーネル ランタイム 起動時間 Pod Snapshots microVM

    ユーザー空間カーネル 軽量 VM システムコールの一部を実装 完全な Linux カーネル runsc Kata Containers・Cloud Hypervisor 100 ms 未満 約 1〜2 秒 対応 非対応 https://docs.cloud.google.com/kubernetes-engine/docs/concepts/sandbox-pods 26
  9. GKE Pod Snapshots A Pod snapshot saves the entire Pod

    state, including memory and file system changes. When you create new replicas, they're restored from the snapshot, letting the workload resume instead of starting from a new state. https://docs.cloud.google.com/kubernetes-engine/docs/concepts/pod-snapshots 27
  10. Agent Substrate At its core, Agent Substrate maps a larger

    set of “actors” (stateful workloads such as agents) onto a smaller pool of ready “workers”. https://github.com/agent-substrate/substrate 29
  11. Agent Sandbox と Agent Substrate Agent Substrate on GKE builds

    on the capabilities of Agent Sandbox on GKE, and improves on Agent Sandbox on GKE by bypassing the bottlenecks of the standard Kubernetes control plane. https://docs.cloud.google.com/kubernetes-engine/ai-ml/about-agent-substrate 30
  12. Network Network access is where an agent’s decisions turn into

    actions on other systems, so the boundary both contains the agent and connects it to what its task legitimately needs, including internal services, without placing the sandbox on those networks. https://agentbaseline.org/software-factory.pdf 33
  13. Egress Proxy The egress proxy starts from default-deny, allows only

    approved destinations, and enforces each authorization decision down to the operation and resource where the protocol allows it. https://agentbaseline.org/software-factory.pdf 34
  14. Egress Proxy パターン Runtime Authorization Allowed GitHub scope Sandbox LLM

    API Egress Proxy Agent default-deny attaches credentials 認証情報を持たない NetworkPolicy credentials で遮断 Secrets Package Registry MCP Servers 許可した宛先‧操作だけ Everything else それ以外はすべて拒否 35
  15. Egress Proxy の要件 のネットワーク層で Proxy 経由を強制 検査できない通信の遮断(raw socket・直接 IP など)

    認証情報は Proxy で付与し、Sandbox には渡さない 宛先だけでなく API・操作・リソース単位で認可 通信の記録と監視 Sandbox https://agentbaseline.org/software-factory.pdf 36
  16. Agent Sandbox: NetworkPolicy apiVersion: extensions.agents.x-k8s.io/v1beta1 kind: SandboxTemplate metadata: {name: coding-agent}

    spec: podTemplate: spec: runtimeClassName: gvisor containers: - name: agent image: <IMAGE> env: [{name: HTTPS_PROXY, value: "http://proxy.egress:3128"}] networkPolicy: # egress egress: # Egress Proxy DNS - to: - namespaceSelector: matchLabels: {kubernetes.io/metadata.name: egress} - namespaceSelector: matchLabels: {kubernetes.io/metadata.name: kube-system} podSelector: matchLabels: {k8s-app: kube-dns} 省略するとパブリックインターネットへの と だけに絞る を許可 37
  17. Agent Substrate: Egress Credential Injection The actor never holds the

    secret. It sends the header with a placeholder value, which the gateway discards, so it cannot read, snapshot, or exfiltrate the secret, nor choose the value that leaves the cluster. https://github.com/agent-substrate/substrate/blob/main/docs/guides/egress-credential-injection.md 38
  18. Agent Substrate: EgressPolicy rules: - https: hostnames: ["api.example.com"] effects: replaceHeaders:

    - header: Authorization prefix: "Bearer " credentialUri: ate-secret://k8s.io/default/ns1/example-api/token ポリシーのない の はすべて拒否 # Actor egress kubectl ate create egress-policy my-agent -a <atespace> -f policy.yaml ダミーの値を が本物の認証情報に差し替え # Egress Gateway curl -H 'Authorization: placeholder' https://api.example.com/v1/items 39
  19. エージェントの待ち時間 … agents spend most of their lives waiting on

    models, tools, or humans … https://github.com/agent-substrate/substrate 41
  20. 待機中の Suspend Agent Compute State Running Suspended Running 実装 レビュー待ち

    修正 Pod Pod Pod Suspended QA 待ち Pod Running マージ Pod Memory · Filesystem · Session 42
  21. Pi Durable We want an agent to survive its process

    dying, whether the laptop sleeps, the container is redeployed, or the machine runs out of memory, and to pick up where it left off. https://earendil.com/posts/pi-durable 46
  22. Pi Durable の仕組み 会話・ツール呼び出しを表示より先に永続化 Task: ステップごとのチェックポイント Replay: replay: "safe" のツールだけを再実行

    Park: CI や人を待つ間はプロセスを持たない Commit: https://github.com/earendil-works/pi/tree/main/packages/durable 47
  23. Pi Durable: Park Tool Process と Resume run_ci Park execute()

    sleep until Signal Process A Process Signal run_ci execute() again Process B Harness.open → resume() commit Storage resume Storage (SQLite) Entries · Tasks · Checkpoints https://github.com/earendil-works/pi/tree/main/packages/durable 48
  24. Kubernetes 上の Agentic Software Factory Kubernetes LLM API Sandbox gVisor

    / microVM GitHub Factory Issue · PR Orchestrator Agent · Durable Harness Egress Proxy default-deny Registry MCP Servers Sandbox gVisor / microVM Suspended Reviewer Suspend / Resume Snapshots 50

More Decks by Yuki Ito

Other Decks in Technology