Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentrun orchestrates the coding-agent stages inside the Job pod: render the prompts, drive the classification harness, decide whether to continue, drive the remediation harness under a token-budget kill switch, verify and package the resulting changeset, and report every stage as an envelope event on stdout.
|
Package agentrun orchestrates the coding-agent stages inside the Job pod: render the prompts, drive the classification harness, decide whether to continue, drive the remediation harness under a token-budget kill switch, verify and package the resulting changeset, and report every stage as an envelope event on stdout. |
|
Package cli holds the command plumbing shared by every patchy binary: the conventional cobra root command and the signal-aware execution wrapper.
|
Package cli holds the command plumbing shared by every patchy binary: the conventional cobra root command and the signal-aware execution wrapper. |
|
Package contextctrl is the context-controller's engine: it reacts to newly opened security-finding issues, runs the enhancer chain (CMDB ownership, infrastructure context — pkg/enhance plugins), posts each contribution as an attributed comment carrying a machine-readable enrichment block, and advances the issue to context-enhanced.
|
Package contextctrl is the context-controller's engine: it reacts to newly opened security-finding issues, runs the enhancer chain (CMDB ownership, infrastructure context — pkg/enhance plugins), posts each contribution as an attributed comment carrying a machine-readable enrichment block, and advances the issue to context-enhanced. |
|
Package enhancers holds the built-in pkg/enhance implementations: noop (the explicit "nothing configured" placeholder) and staticfile (a YAML-backed repo→ownership map that doubles as the fake CMDB for development and e2e).
|
Package enhancers holds the built-in pkg/enhance implementations: noop (the explicit "nothing configured" placeholder) and staticfile (a YAML-backed repo→ownership map that doubles as the fake CMDB for development and e2e). |
|
Package envelope is the versioned event contract between agent-runner and the remediation-controller: one JSON event per line on the runner's stdout, prefixed so it survives interleaving with any other output.
|
Package envelope is the versioned event contract between agent-runner and the remediation-controller: one JSON event per line on the runner's stdout, prefixed so it survives interleaving with any other output. |
|
Package ghas implements the pkg/source plugin for GitHub Advanced Security code-scanning alerts (CodeQL first): it consumes code_scanning_alert webhook deliveries, fetches the full alert for rule help and location detail, and normalizes it into a source.Finding — extracting CWE identifiers from CodeQL rule tags as the advisory categorization.
|
Package ghas implements the pkg/source plugin for GitHub Advanced Security code-scanning alerts (CodeQL first): it consumes code_scanning_alert webhook deliveries, fetches the full alert for rule help and location detail, and normalizes it into a source.Finding — extracting CWE identifiers from CodeQL rule tags as the advisory categorization. |
|
Package ghclient is patchy's GitHub REST client: GitHub App and personal-access-token authentication, installation-scoped clients and short-lived scoped tokens, and a narrow, fake-able surface (IssueStore, AlertStore, RepoStore) over the handful of endpoints the controllers use.
|
Package ghclient is patchy's GitHub REST client: GitHub App and personal-access-token authentication, installation-scoped clients and short-lived scoped tokens, and a narrow, fake-able surface (IssueStore, AlertStore, RepoStore) over the handful of endpoints the controllers use. |
|
Package ghfake is an in-memory implementation of the ghclient store interfaces for controller tests: deterministic, mutation-recording, and just faithful enough (label filters, search-by-label queries) to exercise the controllers' GitHub interactions without a server.
|
Package ghfake is an in-memory implementation of the ghclient store interfaces for controller tests: deterministic, mutation-recording, and just faithful enough (label filters, search-by-label queries) to exercise the controllers' GitHub interactions without a server. |
|
Package ghpush applies an agent's changeset to GitHub through the Git Data API.
|
Package ghpush applies an agent's changeset to GitHub through the Git Data API. |
|
Package harness abstracts the coding-agent CLIs patchy drives.
|
Package harness abstracts the coding-agent CLIs patchy drives. |
|
Package jobs creates and observes the ephemeral Kubernetes Jobs that run agent-runner: one Job per issue attempt, deterministically named, labelled so orphans can be reaped, and garbage collected via TTL plus an owner-referenced per-Job Secret.
|
Package jobs creates and observes the ephemeral Kubernetes Jobs that run agent-runner: one Job per issue attempt, deterministically named, labelled so orphans can be reaped, and garbage collected via TTL plus an owner-referenced per-Job Secret. |
|
Package labels encodes patchy's state machine: the security-* GitHub issue labels that carry every finding's state, and the legal transitions between states.
|
Package labels encodes patchy's state machine: the security-* GitHub issue labels that carry every finding's state, and the legal transitions between states. |
|
Package reconcile provides the periodic reconciliation loop every controller pairs with its webhook receiver.
|
Package reconcile provides the periodic reconciliation loop every controller pairs with its webhook receiver. |
|
Package remedctrl is the remediation-controller's engine: it picks up context-enhanced findings past the accumulation window, runs the coding agent in an ephemeral Kubernetes Job, and performs every GitHub side effect on the agent's behalf — the agent pod has no GitHub credentials.
|
Package remedctrl is the remediation-controller's engine: it picks up context-enhanced findings past the accumulation window, runs the coding agent in an ephemeral Kubernetes Job, and performs every GitHub side effect on the agent's behalf — the agent pod has no GitHub credentials. |
|
Package report defines the two agent-written report contracts — the classification report and the remediation report — as YAML frontmatter schemas with strict, validated parsing.
|
Package report defines the two agent-written report contracts — the classification report and the remediation report — as YAML frontmatter schemas with strict, validated parsing. |
|
Package runner executes CommandSpecs.
|
Package runner executes CommandSpecs. |
|
Package sourcectrl is the source-controller's engine: it turns normalized findings from source plugins into GitHub issues, accumulating alerts of the same finding type (repository + source + primary advisory) into one issue for the accumulation window, and flipping aged issues to accumulation-complete so the remediation pipeline may pick them up.
|
Package sourcectrl is the source-controller's engine: it turns normalized findings from source plugins into GitHub issues, accumulating alerts of the same finding type (repository + source + primary advisory) into one issue for the accumulation window, and flipping aged issues to accumulation-complete so the remediation pipeline may pick them up. |
|
Package telemetry wires OpenTelemetry tracing, metrics, and structured logging into the patchy binaries and owns their lifecycle.
|
Package telemetry wires OpenTelemetry tracing, metrics, and structured logging into the patchy binaries and owns their lifecycle. |
|
Package templates renders every piece of markdown patchy writes — issue bodies, comments, pull-request bodies, and the agent-facing handoff files — from embedded text/templates, so the artifacts stay consistent across the estate.
|
Package templates renders every piece of markdown patchy writes — issue bodies, comments, pull-request bodies, and the agent-facing handoff files — from embedded text/templates, so the artifacts stay consistent across the estate. |
|
Package version exposes build metadata stamped in via -ldflags.
|
Package version exposes build metadata stamped in via -ldflags. |
|
Package webhook is the shared GitHub-webhook HTTP server every controller embeds: HMAC-SHA256 signature validation on the raw body, immediate 202 acknowledgement into a bounded worker pool, delivery-ID deduplication, and health/readiness endpoints with graceful drain.
|
Package webhook is the shared GitHub-webhook HTTP server every controller embeds: HMAC-SHA256 signature validation on the raw body, immediate 202 acknowledgement into a bounded worker pool, delivery-ID deduplication, and health/readiness endpoints with graceful drain. |
|
Package webhookctrl implements the webhook-controller engine: the router between the GitHub App's single webhook URL and the controllers' cluster-internal receivers.
|
Package webhookctrl implements the webhook-controller engine: the router between the GitHub App's single webhook URL and the controllers' cluster-internal receivers. |
Click to show internal directories.
Click to hide internal directories.