InfinitySDLC Engineering Guides · 04/12
Reference implementation guide, not a report of a completed client deployment. Code, configurations, metrics and policies are illustrative. Adapt and validate them before production use.
The Environment Agent makes development and test environments reproducible, diagnosable and disposable. Its safest role is to generate and validate changes to Infrastructure as Code, then let normal CI/CD apply them.

Give the agent read access to cloud/Kubernetes state and write access only to a dedicated branch or sandbox namespace. Production provisioning should remain behind pull requests, policy checks and human approval. For ephemeral environments, the agent can have bounded creation rights with hard TTL, quota and network policy.
environment_request:
template: service-integration-test
ttl: 8h
source_commit: 4bd91e
data_profile: synthetic-v3
egress_profile: allowlisted
resources:
cpu: 6
memory_gb: 16
secrets: [ref://vault/test/payments]A local model is well suited to repetitive log summarization, manifest lint explanations and classification of known infrastructure failures. Reserve a higher-capability coding agent for novel cross-file IaC refactors. Serving the local model in the same cluster can also reduce data movement for logs containing internal hostnames, paths or identifiers.
Namespace: agent-<task-id>
ServiceAccount: env-agent-<task-id>
RBAC: get/list/watch/logs in shared QA; writes only in sandbox namespace
NetworkPolicy: deny-all + DNS + artifact registry + approved dependencies
ResourceQuota: CPU/RAM/pods/storage
TTL: expires-at=<timestamp>
Secrets: CSI/short-lived token references; no prompt-visible secret values| Tool | Critical behavior |
|---|---|
| env.get_desired_state | Resolve git SHA and rendered IaC/manifests |
| env.detect_drift | Deterministic plan/diff only |
| k8s.diagnose_workload | Bounded status/events/restarts/probes/log sample |
| network.run_probe | Allowlisted DNS/TCP/HTTP probes |
| env.propose_patch | Write agent branch only |
| ci.run_iac_validation | fmt/validate/policy/unit checks |
| env.request_ephemeral | Template + TTL + quota |
Avoid generic unrestricted kubectl exec. When shell access is unavoidable, route commands through a validator that enforces namespace, working directory, command class, timeout and egress. Production resource creation should flow through IaC PRs and the normal release system.
Adapted from the September 2026 Enterprise AI Agent Mesh handbook, Article 4 and Blueprint 4. The Enterprise Agent Platform Foundation guide provides the shared identity, MCP, retrieval, sandbox, audit and evaluation design, plus the source handbook’s further-reading list. Validate model, protocol and tool versions before production use.