← Back to Pull requests

Add specs for factory operator, reverse proxy, and agent image #62

Open
codebot-robot opened this pull request with 211 lines diff across 3 files
View on GitHub
codebot-robot codebot-robot commented on May 05, 2026 00:25 UTC
Author

Fixes #61. Adding initial specs for factory operator, reverse proxy, and agent image as requested. Iterative refinement will occur in PR comments.

Diff: 211 lines (+211 / -0) across 3 files Reviewer: mtaufen Review duration: 309346m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.45) × (1 − Review Confidence (0.83)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 211 lines diff across 3 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 1 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
83%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.320
Real PR Conversation Timeline
3 items
mtaufen mtaufen commented on code on May 05, 2026 16:24 UTC
Code Review
specs/agent-image.md:1
@@ -0,0 +1,45 @@
+---

Include examples of configuration for each component in this and all the other specs.

mtaufen mtaufen commented on May 05, 2026 16:26 UTC
Reviewer

Weave in the following (and deduplicate any redundancies):

A running agent Pod consists of three components: The agent runtime container, the reverse proxy container, and the setup container.

Components:

  • Runtime: Is an arbitrary agent runtime (gemini-cli, a custom ADK agent, etc.). Just any process that happens to be using an agent. We will need a standard way to deliver prompt/context/tools. Normal runtime container w/ restartPolicy: Always.

  • Reverse proxy: Super simple Go reverse proxy, similar to https://github.com/gke-labs/service-portals. Maybe even just reuse service-portals and run locally. This runs as a "sidecar" container, e.g. an init container with restartPolicy: Always. The purpose is to enforce local network policy and to inject credentials on the wire.

  • Setup: This is an init container that sets up iptables rules to ensure the reverse proxy intercepts all inbound/outbound traffic from the runtime container.
  • Auxiliary:

  • The running Pod also has a volume mounted that is used as the working directory. This can use PVC with GCE PD. Default ~100GB disk. Operator should provision and reap these as needed for task lifecycle.
  • Configuration:

  • In general we should have a standard way of configuring each component as much as possible. Use Kubernetes Resource Model resources delivered on disk, so the agent Pod doesn't need any access to the Kubernetes API (this will be enforced in network policy).
  • Security:

  • Running agent Pod runs in gVisor and has strict network policy that blocks all access to K8s API and lateral access Pod to Pod and Pod to Node, and blocks access to cluster DNS, while allowing egress to external internet and 8.8.8.8 for DNS compatible with egress via GCP Cloud NAT.
  • Reviewers
    Assignees
    codebot-robot codebot-robot
    Labels
    risk: low confidence: 83.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 83.4% · Lower = rushed or shallow review
    83.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.5% · Safe to merge
    7.5%