Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
sre-agent
command
Command sre-agent is the entrypoint for the Cloud SRE Agent daemon.
|
Command sre-agent is the entrypoint for the Cloud SRE Agent daemon. |
|
dogfood
|
|
|
cmd/generator
command
Command generator appends realistic, varied ERROR-level JSON-lines log records to a target file so the local dogfooding loop has an error burst to detect.
|
Command generator appends realistic, varied ERROR-level JSON-lines log records to a target file so the local dogfooding loop has an error burst to detect. |
|
generator
Package generator produces realistic, varied ERROR-level log lines for the fully-local dogfooding loop.
|
Package generator produces realistic, varied ERROR-level log lines for the fully-local dogfooding loop. |
|
internal
|
|
|
app
Package app is the composition root for the Cloud SRE Agent run loop.
|
Package app is the composition root for the Cloud SRE Agent run loop. |
|
config
Package config loads and validates the agent's typed configuration from a YAML file with environment-variable overrides, via koanf.
|
Package config loads and validates the agent's typed configuration from a YAML file with environment-variable overrides, via koanf. |
|
detect
Package detect provides a minimal, in-memory threshold detector.
|
Package detect provides a minimal, in-memory threshold detector. |
|
domain
Package domain defines the core, dependency-free types shared across the SRE agent: log events, detected incidents, and the triage -> analysis -> remediation artifacts.
|
Package domain defines the core, dependency-free types shared across the SRE agent: log events, detected incidents, and the triage -> analysis -> remediation artifacts. |
|
ingest
Package ingest defines the LogSource port: the seam through which log events enter the agent.
|
Package ingest defines the LogSource port: the seam through which log events enter the agent. |
|
ingest/file
Package file implements a filesystem-backed ingest.LogSource.
|
Package file implements a filesystem-backed ingest.LogSource. |
|
ingest/pubsub
Package pubsub implements a Google Cloud Pub/Sub-backed ingest.LogSource.
|
Package pubsub implements a Google Cloud Pub/Sub-backed ingest.LogSource. |
|
llm
Package llm defines the Provider port: the provider-agnostic seam for generating completions from a large language model.
|
Package llm defines the Provider port: the provider-agnostic seam for generating completions from a large language model. |
|
llm/anthropic
Package anthropic implements the llm.Provider port using Anthropic's official github.com/anthropics/anthropic-sdk-go SDK.
|
Package anthropic implements the llm.Provider port using Anthropic's official github.com/anthropics/anthropic-sdk-go SDK. |
|
llm/gemini
Package gemini implements the llm.Provider port using Google's unified google.golang.org/genai SDK.
|
Package gemini implements the llm.Provider port using Google's unified google.golang.org/genai SDK. |
|
llm/ollama
Package ollama implements the llm.Provider port using Ollama's official github.com/ollama/ollama/api client.
|
Package ollama implements the llm.Provider port using Ollama's official github.com/ollama/ollama/api client. |
|
llm/openai
Package openai implements the llm.Provider port using OpenAI's official github.com/openai/openai-go/v3 SDK.
|
Package openai implements the llm.Provider port using OpenAI's official github.com/openai/openai-go/v3 SDK. |
|
llm/router
Package router implements an llm.Provider that fans a generation request across an ordered list of backing providers: the primary first, then fallbacks.
|
Package router implements an llm.Provider that fans a generation request across an ordered list of backing providers: the primary first, then fallbacks. |
|
llm/stub
Package stub implements a NON-PRODUCTION, offline llm.Provider for local development, dogfooding, and CI.
|
Package stub implements a NON-PRODUCTION, offline llm.Provider for local development, dogfooding, and CI. |
|
obs
Package obs wires the agent's observability: a structured slog logger, OTel tracer/meter providers (no-op/stdout for the MVP), flow-id propagation through context and logs, and a redaction helper so raw log payloads never leak into traces or logs.
|
Package obs wires the agent's observability: a structured slog logger, OTel tracer/meter providers (no-op/stdout for the MVP), flow-id propagation through context and logs, and a redaction helper so raw log payloads never leak into traces or logs. |
|
pipeline
Package pipeline orchestrates the triage -> analysis -> remediation flow.
|
Package pipeline orchestrates the triage -> analysis -> remediation flow. |
|
resilience
Package resilience provides composable, config-driven failsafe-go policy builders (retry, circuit breaker, rate limiter, timeout) and a typed Execute helper so callers — notably the Gemini LLM provider — can wrap a fallible operation with a layered resilience stack without touching failsafe-go directly.
|
Package resilience provides composable, config-driven failsafe-go policy builders (retry, circuit breaker, rate limiter, timeout) and a typed Execute helper so callers — notably the Gemini LLM provider — can wrap a fallible operation with a layered resilience stack without touching failsafe-go directly. |
|
scm
Package scm defines the PRTarget port: the seam through which a remediation is delivered to a source-control destination.
|
Package scm defines the PRTarget port: the seam through which a remediation is delivered to a source-control destination. |
|
scm/github
Package github implements the scm.PRTarget port by delivering a remediation as a real GitHub pull request.
|
Package github implements the scm.PRTarget port by delivering a remediation as a real GitHub pull request. |
|
scm/gitlab
Package gitlab implements the scm.PRTarget port by delivering a remediation as a real GitLab merge request.
|
Package gitlab implements the scm.PRTarget port by delivering a remediation as a real GitLab merge request. |
|
scm/local
Package local implements the scm.PRTarget port by writing remediation patches to a local output directory instead of opening a real pull request.
|
Package local implements the scm.PRTarget port by writing remediation patches to a local output directory instead of opening a real pull request. |
|
security
Package security provides a Sanitizer that redacts secrets and PII from text before it crosses a trust boundary — in particular, before any log content or prompt is sent to an LLM provider.
|
Package security provides a Sanitizer that redacts secrets and PII from text before it crosses a trust boundary — in particular, before any log content or prompt is sent to an LLM provider. |
|
validate
Package validate implements the pipeline.CodeValidator port with a local, toolchain-backed validator.
|
Package validate implements the pipeline.CodeValidator port with a local, toolchain-backed validator. |
Click to show internal directories.
Click to hide internal directories.