Files
Jonathan Boniface 9e503885cc ALZ-F01 Discovery: package step, value scorecard, application grouping, cases
- New cp1-discovery-package-agent (ADR 0020): one package per reviewed run, every part
  hashed (sha256 over canonical JSON), with a manifest and a value scorecard.
- Applications grouped CMDB -> tag -> resource group with a judged model fallback (ADR 0021):
  CMDB 0.7.0 carries ownership, dependency mapping 0.6.0 groups, report 0.9.0 shows them.
- Critic 0.6.1 accepts the producers' enums; build_workflow.py refuses a consumer enum
  narrower than its producer's.
- Code hooks, sub-agents and tests for the inventory, CMDB, dependency, planner and critic
  agents; the report and Well-Architected review agents; ADRs 0012-0021.
- Workflow cases with value bars and run limits; run evaluation and usage collection scripts;
  the run context template and the field-by-field review for ADR 0016.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:13:25 +00:00

117 lines
6.6 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: <placeholder_for_agent_name>-config # Do not modify, this will be replaced during deployment by the CI/CD pipeline
data:
# This file is the agent's configuration contract. deployment.yaml mounts it
# with `envFrom: configMapRef`, so every key below arrives in the container as
# an environment variable. ./run-local.sh reads the same file, so local runs
# and deployed runs share one source of truth.
#
# Values are read once at process start. Changing a key requires a restart
# (`kubectl rollout restart deploy/<agent>`), not just a ConfigMap apply.
#
# Secrets do NOT belong here — see kubernetes/secretnames.yaml.
# =============================================================================
# Platform Variables (set by Kustomize/Deployment)
# =============================================================================
PORT: "8080"
LOG_LEVEL: "INFO" # DEBUG adds prompts, payloads and replies to the log
# json: one object per line, for a log store. console: aligned columns, for
# reading by eye (set it in .env on your machine).
LOG_FORMAT: "json"
# =============================================================================
# Required Agent Configuration
# =============================================================================
# The agent's name, description, version and framework -- and its tags,
# capabilities and skills -- live in agent.yaml, the source of truth for all
# of them. They are not read from here.
# LLM model (required) - MUST use *LLM_MODEL or *SLM_MODEL pattern for watcher
# Any model the platform's gateway offers, e.g. gpt-5.4, claude-sonnet-4-6.
LITELLM_MODEL: "gpt-5.6-sol"
# =============================================================================
# Optional Model Settings
# =============================================================================
# These MUST carry the LITELLM_ prefix. The runtime configures the model via
# build_model(), which reads LITELLM_TEMPERATURE / LITELLM_MAX_TOKENS
# (defaults 0.0 / 16384). The unprefixed LLM_TEMPERATURE / LLM_MAX_TOKENS names
# are read by a different SDK code path that does not configure this agent's
# model, so setting those is silently ignored — the agent keeps running at the
# defaults with no error to chase.
LITELLM_TEMPERATURE: "1"
LITELLM_MAX_TOKENS: "80000"
# =============================================================================
# Agent Loop Guard Rails
# =============================================================================
# An agent with tools makes as many model calls as the model decides it
# needs. These bound that. Any one of them ends the loop, and the caller
# receives an answer explaining why rather than an error.
#
# The defaults sit well above normal work, so they catch runaways — most
# often a tool bug that keeps telling the model to call it again — without
# affecting an agent that is behaving. Measure your agent's typical call
# count in the `agent_loop_completed` log line before tightening them.
#
# An agent with no tools cannot loop: one request is one model call, and
# these settings have nothing to bound.
#
AGENT_GUARDRAILS_ENABLED: "true" # "false" removes the bounds; the run is still counted and logged
AGENT_MAX_ITERATIONS: "25" # model calls per run: the agent's, or one sub-agent's
# Model calls in the whole request, the sub-agents the model calls included
# (runtime 0.28.2 or later). Default 4 x AGENT_MAX_ITERATIONS.
# AGENT_MAX_REQUEST_MODEL_CALLS: "100"
AGENT_MAX_DURATION_SECONDS: "1140" # wall clock per request (19 minutes): inside the workflow step's 20, so the agent replies before the step is cut off
# A live run's uploaded CMDB exports are normalised CMDB_BATCH_SIZE rows at a time by the
# normalise_cmdb_batch sub-agent (ADR 0018); a batch is tried at most CMDB_MAX_TRIES times in all,
# and then the step fails. The sub-agent uses LITELLM_MODEL unless NORMALISE_CMDB_BATCH_LLM_MODEL is set.
CMDB_BATCH_SIZE: "25"
CMDB_MAX_TRIES: "3"
AGENT_MAX_TOKENS: "0" # total tokens per request; 0 = no limit
# =============================================================================
# Connections: set by the platform, not here
# =============================================================================
# The model gateway (LITELLM_PROXY_BASE, GATEWAY_TYPE), the MCP gateway
# (MCP_GATEWAY_URL) and where telemetry goes (OBSERVABILITY_TYPE,
# OTEL_EXPORTER_OTLP_ENDPOINT) are the same for every agent in an environment.
# The platform supplies them in the agents namespace (ConfigMap
# agent-platform-connections), and the Deployment reads them last, so a value
# here would be overridden. Telemetry goes to the platform's OpenTelemetry
# Collector, which holds any keys. Locally, .env holds them (.env.example).
# =============================================================================
# Inbound checks (runtime 0.25.0 or later)
# =============================================================================
# What the agent accepts before any of its work starts.
AGENT_MAX_CONCURRENT_REQUESTS: "100" # one more at once gets HTTP 503, which Temporal retries
# AGENT_MAX_REQUEST_BYTES: "67108864" # 64 MiB; a larger request body gets HTTP 413
# The name of a guardrail configured on the LLM gateway. Each request's text
# is screened by it before the agent runs; a blocked request fails with the
# gateway's reason, with no model call and no cost.
# AGENT_INPUT_GUARDRAIL: ""
# AGENT_INBOUND_TOKEN is a secret, so it is not set here (see
# kubernetes/secretnames.yaml). The platform does not send it yet: leave it unset.
# =============================================================================
# Outbound connections (runtime 0.25.0 or later)
# =============================================================================
# The agent may connect to its own endpoints: the LLM gateway, the MCP
# gateway, its telemetry, localhost, and the hosts in AGENT_EGRESS_ALLOW.
# enforce (default): a connection to any other host is refused and logged
# as egress_blocked, with the file and line that made it.
# log: such a connection goes through and is logged as egress_unlisted.
# off: not watched.
# Reach outside systems through the MCP gateway rather than adding hosts here.
# The cluster's network policy remains the real boundary.
AGENT_EGRESS: "enforce"
# AGENT_EGRESS_ALLOW: "" # comma-separated hosts; *.<domain> for a domain and its subdomains
# Discovery handles a client's estate data: keep prompts, replies and tool data out of traces.
OBSERVABILITY_CAPTURE_CONTENT: "false"