internal/

directory
v0.0.0-...-c35f4d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2026 License: MIT

Directories

Path Synopsis
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.
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.
Package detect provides a minimal, in-memory threshold detector.
Package detect provides a minimal, in-memory threshold detector.
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.
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.
file
Package file implements a filesystem-backed ingest.LogSource.
Package file implements a filesystem-backed ingest.LogSource.
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.
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.
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.
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.
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.
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.
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.
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.
Package pipeline orchestrates the triage -> analysis -> remediation flow.
Package pipeline orchestrates the triage -> analysis -> remediation flow.
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.
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.
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.
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.
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.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL