Directories
¶
| Path | Synopsis |
|---|---|
|
Package action owns the human-action vocabulary and the state-machine gating behind it: which verbs exist, and what each one is allowed to do to a Finding's spec in a given phase.
|
Package action owns the human-action vocabulary and the state-machine gating behind it: which verbs exist, and what each one is allowed to do to a Finding's spec in a given phase. |
|
Package agentresult converts agent envelope payloads into the CRD status shapes.
|
Package agentresult converts agent envelope payloads into the CRD status shapes. |
|
Package agentrun orchestrates the coding-agent stage inside the Job pod: render the prompt, drive the harness under a token-budget kill switch, and report the stage as an envelope event on stdout.
|
Package agentrun orchestrates the coding-agent stage inside the Job pod: render the prompt, drive the harness under a token-budget kill switch, and report the stage as an envelope event on stdout. |
|
Package ansi strips terminal escape sequences from captured agent output.
|
Package ansi strips terminal escape sequences from captured agent output. |
|
Package archive is the cloud seam for long-term archival of agent runs: a create-only object store over Amazon S3 or Google Cloud Storage.
|
Package archive is the cloud seam for long-term archival of agent runs: a create-only object store over Amazon S3 or Google Cloud Storage. |
|
archivetest
Package archivetest provides an in-memory archive.Store for tests of the packages that archive runs or serve archived objects.
|
Package archivetest provides an in-memory archive.Store for tests of the packages that archive runs or serve archived objects. |
|
Package artifact stores and serves the SHA-pinned repository tarballs that source-controller produces and agent jobs fetch.
|
Package artifact stores and serves the SHA-pinned repository tarballs that source-controller produces and agent jobs fetch. |
|
Package awsinv reads an AWS resource's tags from an organization-level inventory.
|
Package awsinv reads an AWS resource's tags from an organization-level inventory. |
|
Package azureinv reads an Azure resource's tags from Azure Resource Graph.
|
Package azureinv reads an Azure resource's tags from Azure Resource Graph. |
|
Package broker is the egress credential broker's engine: a reconciler-less reverse proxy that agent pods address directly (base-URL env overrides point the claude CLI at it; a rendered config.toml model provider points the codex CLI at it) and that injects or signs the model credential outbound.
|
Package broker is the egress credential broker's engine: a reconciler-less reverse proxy that agent pods address directly (base-URL env overrides point the claude CLI at it; a rendered config.toml model provider points the codex CLI at it) and that injects or signs the model credential outbound. |
|
Package build is the engine behind `patchy build`.
|
Package build is the engine behind `patchy build`. |
|
buildx
Package buildx drives `docker buildx build` for patchy build.
|
Package buildx drives `docker buildx build` for patchy build. |
|
dockerfile
Package dockerfile lists the images a Dockerfile build pulls (FROM, COPY --from, RUN --mount from= and the frontend, set by # syntax= or BUILDKIT_SYNTAX), expanded the way BuildKit expands them.
|
Package dockerfile lists the images a Dockerfile build pulls (FROM, COPY --from, RUN --mount from= and the frontend, set by # syntax= or BUILDKIT_SYNTAX), expanded the way BuildKit expands them. |
|
expand
Package expand substitutes environment references into build tag, arg and annotation templates.
|
Package expand substitutes environment references into build tag, arg and annotation templates. |
|
fluxartifact
Package fluxartifact packages a directory of Flux manifests as a Flux OCI artifact, the shape `flux push artifact` produces and an OCIRepository source consumes: an OCI image manifest whose config is application/vnd.cncf.flux.config.v1+json ({}) and whose single layer is the tree as application/vnd.cncf.flux.content.v1.tar+gzip, annotated with the source URL and revision.
|
Package fluxartifact packages a directory of Flux manifests as a Flux OCI artifact, the shape `flux push artifact` produces and an OCIRepository source consumes: an OCI image manifest whose config is application/vnd.cncf.flux.config.v1+json ({}) and whose single layer is the tree as application/vnd.cncf.flux.content.v1.tar+gzip, annotated with the source URL and revision. |
|
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. |
|
controller
|
|
|
context
Package context is the context-controller's engine.
|
Package context is the context-controller's engine. |
|
evaluation
Package evaluation runs the remote-evaluation engine: the gate reconciler expands each immutable Evaluation into its EvaluationUnit children, the unit reconciler schedules them through the sandboxed agent-Job machinery with bounded concurrency and collects each pod's EVOLVE-EVENT stream onto unit statuses (full-fidelity entries into per-unit ConfigMaps), and the TTL loop deletes finished evaluations after their retention.
|
Package evaluation runs the remote-evaluation engine: the gate reconciler expands each immutable Evaluation into its EvaluationUnit children, the unit reconciler schedules them through the sandboxed agent-Job machinery with bounded concurrency and collects each pod's EVOLVE-EVENT stream onto unit statuses (full-fidelity entries into per-unit ConfigMaps), and the TTL loop deletes finished evaluations after their retention. |
|
integration
Package integration is the integration-controller's engine: the edge between patchy and its external systems, driven by Integration resources.
|
Package integration is the integration-controller's engine: the edge between patchy and its external systems, driven by Integration resources. |
|
investigation
Package investigation is the investigation-controller's engine: it turns Enhanced findings into analysis agent runs and routes their verdicts.
|
Package investigation is the investigation-controller's engine: it turns Enhanced findings into analysis agent runs and routes their verdicts. |
|
remediation
Package remediation is the remediation-controller's engine: two reconcilers over the Finding/Remediation kinds.
|
Package remediation is the remediation-controller's engine: two reconcilers over the Finding/Remediation kinds. |
|
rollup
Package rollup maintains the all-time FindingRollup statistics and the TTL deletion of completed findings.
|
Package rollup maintains the all-time FindingRollup statistics and the TTL deletion of completed findings. |
|
source
Package source is the source-controller's engine: the reconcilers for the Forge and Repository kinds.
|
Package source is the source-controller's engine: the reconcilers for the Forge and Repository kinds. |
|
Package enhancers holds the built-in pkg/enhance implementations:
|
Package enhancers holds the built-in pkg/enhance implementations: |
|
Package envelope is the versioned event contract between agent-runner and the job controllers: 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 job controllers: one JSON event per line on the runner's stdout, prefixed so it survives interleaving with any other output. |
|
Package evalapi is the evolve-facing HTTP surface of the evaluation controller: bearer-authenticated workspace upload (streamed through to source-controller's blob cache), submission, snapshot, SSE monitoring, and cancellation, speaking the pkg/evaluation wire contract.
|
Package evalapi is the evolve-facing HTTP surface of the evaluation controller: bearer-authenticated workspace upload (streamed through to source-controller's blob cache), submission, snapshot, SSE monitoring, and cancellation, speaking the pkg/evaluation wire contract. |
|
Package evalresults persists an evaluation unit's full-fidelity result entry (the opaque JSON document the in-pod client emitted) in a per-unit ConfigMap, gzip-compressed under the 1 MiB object cap.
|
Package evalresults persists an evaluation unit's full-fidelity result entry (the opaque JSON document the in-pod client emitted) in a per-unit ConfigMap, gzip-compressed under the 1 MiB object cap. |
|
Package forge resolves a finding's repository URL to the Forge custom resource whose credentials may act on it, and mints per-operation scoped tokens from that Forge's secret.
|
Package forge resolves a finding's repository URL to the Forge custom resource whose credentials may act on it, and mints per-operation scoped tokens from that Forge's secret. |
|
Package gcpasset reads a Google Cloud resource's labels through Cloud Asset Inventory.
|
Package gcpasset reads a Google Cloud resource's labels through Cloud Asset Inventory. |
|
Package generic implements the generic integration's behavior over the wire contract published in pkg/generic: the validating source handler that turns an inbound findings delivery into pkg/source Findings, and the signed outbound HTTP client behind both the verdict resolver and the context-enhancer call.
|
Package generic implements the generic integration's behavior over the wire contract published in pkg/generic: the validating source handler that turns an inbound findings delivery into pkg/source Findings, and the signed outbound HTTP client behind both the verdict resolver and the context-enhancer call. |
|
Package ghas implements the pkg/source plugins for GitHub Advanced Security.
|
Package ghas implements the pkg/source plugins for GitHub Advanced Security. |
|
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 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 ghsecret turns credential Secrets referenced by Forge and Integration resources into GitHub clients.
|
Package ghsecret turns credential Secrets referenced by Forge and Integration resources into GitHub clients. |
|
Package ghuser is the wire contract of the integration-controller's internal GitHub-user endpoints, and the client the status server calls them with.
|
Package ghuser is the wire contract of the integration-controller's internal GitHub-user endpoints, and the client the status server calls them with. |
|
Package harness abstracts the coding-agent CLIs patchy drives.
|
Package harness abstracts the coding-agent CLIs patchy drives. |
|
Package integrationcap selects Integrations by the capability they provide.
|
Package integrationcap selects Integrations by the capability they provide. |
|
Package jobs creates and observes the ephemeral Kubernetes Jobs that run agent-runner: one Job per Investigation/Remediation attempt, deterministically named, labelled by kind/owner/finding (the two job controllers share the agents namespace and filter on the kind label), 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 Investigation/Remediation attempt, deterministically named, labelled by kind/owner/finding (the two job controllers share the agents namespace and filter on the kind label), and garbage collected via TTL plus an owner-referenced per-Job Secret. |
|
Package kube is the shared controller-runtime scaffolding: the scheme with every API group the controllers touch, manager construction honoring the --kubeconfig flag, leader election, and the logr→slog bridge.
|
Package kube is the shared controller-runtime scaffolding: the scheme with every API group the controllers touch, manager construction honoring the --kubeconfig flag, leader election, and the logr→slog bridge. |
|
Package labels renders the human-facing security-* label vocabulary the issue projection stamps on tracking issues: source, advisories, the finding's phase, severity, priority, and the investigation's verdict.
|
Package labels renders the human-facing security-* label vocabulary the issue projection stamps on tracking issues: source, advisories, the finding's phase, severity, priority, and the investigation's verdict. |
|
Package loadgen generates deterministic synthetic Finding, FindingRollup, and Investigation resources for benchmarks and load tests.
|
Package loadgen generates deterministic synthetic Finding, FindingRollup, and Investigation resources for benchmarks and load tests. |
|
Package mirror is the engine behind `patchy mirror`: vendored mirroring of upstream helm charts and OCI artifacts into a platform registry, with review-gated updates, upstream provenance verification, vulnerability scanning and signing of everything published.
|
Package mirror is the engine behind `patchy mirror`: vendored mirroring of upstream helm charts and OCI artifacts into a platform registry, with review-gated updates, upstream provenance verification, vulnerability scanning and signing of everything published. |
|
allowlist
Package allowlist derives an entry's allowlist (a mirror entry's security/allowlist.yaml, a build entry's security/allowlists/<name>.yaml) from the blocking findings of a fresh scan, and lints any allowlist against the accepted-risk policy.
|
Package allowlist derives an entry's allowlist (a mirror entry's security/allowlist.yaml, a build entry's security/allowlists/<name>.yaml) from the blocking findings of a fresh scan, and lints any allowlist against the accepted-risk policy. |
|
discover
Package discover finds every container image a rendered chart references, in four passes:
|
Package discover finds every container image a rendered chart references, in four passes: |
|
distro
Package distro derives extra mirrored images from a distribution manifests artifact, for charts whose workload images are deployed by an operator from manifests helm never renders.
|
Package distro derives extra mirrored images from a distribution manifests artifact, for charts whose workload images are deployed by an operator from manifests helm never renders. |
|
helmchart
Package helmchart moves chart archives between upstreams, the vendored tree and the mirror registry.
|
Package helmchart moves chart archives between upstreams, the vendored tree and the mirror registry. |
|
imageref
Package imageref manipulates container image references as strings: it expands docker shorthand the way container runtimes do, splits a reference into repository, tag and digest (tolerating registry ports and pinned digests), applies source-registry rewrites, and matches shell-style glob patterns against references.
|
Package imageref manipulates container image references as strings: it expands docker shorthand the way container runtimes do, splits a reference into repository, tag and digest (tolerating registry ports and pinned digests), applies source-registry rewrites, and matches shell-style glob patterns against references. |
|
ocireg
Package ocireg is the registry layer mirror and build share: thin wrappers over go-containerregistry for the operations the engines need (digest resolution, tag listing, config inspection, byte-preserving copies, existence probes, raw pulls, and pushes of locally built images and indexes).
|
Package ocireg is the registry layer mirror and build share: thin wrappers over go-containerregistry for the operations the engines need (digest resolution, tag listing, config inspection, byte-preserving copies, existence probes, raw pulls, and pushes of locally built images and indexes). |
|
render
Package render produces an entry's rendered/manifests.yaml: the vendored chart rendered with its discovery values, exactly as `helm template <name> <vendor dir> --namespace ...
|
Package render produces an entry's rendered/manifests.yaml: the vendored chart rendered with its discovery values, exactly as `helm template <name> <vendor dir> --namespace ... |
|
scan
Package scan finds vulnerabilities in images through pluggable scanners (osv-scanner and grype, both shell-outs), either by registry reference (ImageScanner: the mirror's locked images) or over a local docker archive (ArchiveScanner: a fresh build, scanned before anything is pushed).
|
Package scan finds vulnerabilities in images through pluggable scanners (osv-scanner and grype, both shell-outs), either by registry reference (ImageScanner: the mirror's locked images) or over a local docker archive (ArchiveScanner: a fresh build, scanned before anything is pushed). |
|
semverpick
Package semverpick selects versions from candidate lists: the newest stable release satisfying a constraint (chart and artifact update checks), and the newest tag that has soaked past a cooldown window (tracked-image picks, where a just-published tag can still be yanked or hot-fixed).
|
Package semverpick selects versions from candidate lists: the newest stable release satisfying a constraint (chart and artifact update checks), and the newest tag that has soaked past a cooldown window (tracked-image picks, where a just-published tag can still be yanked or hot-fixed). |
|
sign
Package sign signs published OCI artifacts: keylessly (ambient OIDC, the CI workflow's identity, through Fulcio, with a public transparency log entry) or with a cloud KMS key (gcpkms://, awskms://, azurekms://).
|
Package sign signs published OCI artifacts: keylessly (ambient OIDC, the CI workflow's identity, through Fulcio, with a public transparency log entry) or with a cloud KMS key (gcpkms://, awskms://, azurekms://). |
|
spec
Package spec defines the mirror store's on-disk contract: the per-entry manifest.yaml files (intent), the lock files (facts), the generated images.extra.yaml sidecar, and the CVE allowlists.
|
Package spec defines the mirror store's on-disk contract: the per-entry manifest.yaml files (intent), the lock files (facts), the generated images.extra.yaml sidecar, and the CVE allowlists. |
|
verify
Package verify checks OCI artifact signatures for the mirror: upstream provenance per a manifest's verifyUpstream rules (keyless with an identity regexp, or a published public key), and the mirror's own signatures (the exact certificate identity or KMS key it signs with, as the publish-idempotency self-check).
|
Package verify checks OCI artifact signatures for the mirror: upstream provenance per a manifest's verifyUpstream rules (keyless with an identity regexp, or a published public key), and the mirror's own signatures (the exact certificate identity or KMS key it signs with, as the publish-idempotency self-check). |
|
yamledit
Package yamledit performs surgical edits on YAML files that humans and other tools also write: it uses the YAML AST only to locate a scalar, then byte-splices exactly that token, never re-encoding the document.
|
Package yamledit performs surgical edits on YAML files that humans and other tools also write: it uses the YAML AST only to locate a scalar, then byte-splices exactly that token, never re-encoding the document. |
|
Package model defines the model vendors (Anthropic, OpenAI) and their canonical models: provider-qualified ids, the harnesses each model can be driven by, and per-token pricing.
|
Package model defines the model vendors (Anthropic, OpenAI) and their canonical models: provider-qualified ids, the harnesses each model can be driven by, and per-token pricing. |
|
Package priority maps investigation results onto the 0–100 scheduling priority remediation runs compete with.
|
Package priority maps investigation results onto the 0–100 scheduling priority remediation runs compete with. |
|
Package provider is the pure logic behind brokered agent runners: which gateway environment a model provider needs in the agent pod, and how canonical model ids translate to the provider-specific ids the CLI's --model flag expects there.
|
Package provider is the pure logic behind brokered agent runners: which gateway environment a model provider needs in the agent pod, and how canonical model ids translate to the provider-specific ids the CLI's --model flag expects there. |
|
Package repoaccess is the wire contract of the integration-controller's internal repository-access endpoint, and the client the status server calls it with.
|
Package repoaccess is the wire contract of the integration-controller's internal repository-access endpoint, and the client the status server calls it with. |
|
Package report defines the two agent-written report contracts (the investigation report and the remediation report) as YAML frontmatter schemas with strict, validated parsing.
|
Package report defines the two agent-written report contracts (the investigation report and the remediation report) as YAML frontmatter schemas with strict, validated parsing. |
|
Package runarchive assembles one agent run's long-term record and decides what a run's status keeps when archival is configured.
|
Package runarchive assembles one agent run's long-term record and decides what a run's status keeps when archival is configured. |
|
Package runner executes CommandSpecs.
|
Package runner executes CommandSpecs. |
|
Package runnercfg wires the per-harness agent-runner fleet from controller flags: the image and brokered provider for each harness, which harnesses a deployment enables, and the startup validation that every allowlisted model can actually be run.
|
Package runnercfg wires the per-harness agent-runner fleet from controller flags: the image and brokered provider for each harness, which harnesses a deployment enables, and the startup validation that every allowlisted model can actually be run. |
|
Package scc is the Google Cloud Security Command Center source: it turns a Pub/Sub push delivery into patchy Findings.
|
Package scc is the Google Cloud Security Command Center source: it turns a Pub/Sub push delivery into patchy Findings. |
|
Package schedule ranks pending agent runs for bounded-concurrency slot grants.
|
Package schedule ranks pending agent runs for bounded-concurrency slot grants. |
|
Package stats is the pure arithmetic behind the all-time FindingRollup objects: micro-USD cost parsing, per-scope delta computation, and exactly-once ledger application.
|
Package stats is the pure arithmetic behind the all-time FindingRollup objects: micro-USD cost parsing, per-scope delta computation, and exactly-once ledger application. |
|
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 the markdown patchy writes (issue bodies, comments, pull-request bodies, finding descriptions, the agent handoff file and the stage prompts) from embedded text/templates, so the output stays consistent across the estate.
|
Package templates renders the markdown patchy writes (issue bodies, comments, pull-request bodies, finding descriptions, the agent handoff file and the stage prompts) from embedded text/templates, so the output stays consistent across the estate. |
|
Package tokenauth authenticates in-cluster callers by their projected ServiceAccount token.
|
Package tokenauth authenticates in-cluster callers by their projected ServiceAccount token. |
|
Package transcript is the agent conversation contract: the harness-neutral turn vocabulary every agent CLI's stream is projected onto, the prefixed JSONL line format that carries turns out of the agent pod on stdout, and the gzipped ConfigMap the owning controller persists them into.
|
Package transcript is the agent conversation contract: the harness-neutral turn vocabulary every agent CLI's stream is projected onto, the prefixed JSONL line format that carries turns out of the agent pod on stdout, and the gzipped ConfigMap the owning controller persists them into. |
|
Package transcriptstore persists an agent run's conversation and reads it back: one gzipped-JSONL ConfigMap per run, owned by the run that produced it.
|
Package transcriptstore persists an agent run's conversation and reads it back: one gzipped-JSONL ConfigMap per run, owned by the run that produced it. |
|
Package version exposes build metadata stamped in via -ldflags.
|
Package version exposes build metadata stamped in via -ldflags. |
|
Package web is the status-server backend: the embedded status page SPA, a JSON projection of Findings, FindingRollups and the Forge/Integration configuration, the per-finding human actions (approve, retry, expedite, suspend, resume), the integration actions (backfill, and the replay and reset demo tooling), and an SSE change signal that tells open browsers to refetch.
|
Package web is the status-server backend: the embedded status page SPA, a JSON projection of Findings, FindingRollups and the Forge/Integration configuration, the per-finding human actions (approve, retry, expedite, suspend, resume), the integration actions (backfill, and the replay and reset demo tooling), and an SSE change signal that tells open browsers to refetch. |
|
auth
Package auth resolves who is making a status-server request.
|
Package auth resolves who is making a status-server request. |
|
authz
Package authz resolves what an identity may do in the status server's namespace.
|
Package authz resolves what an identity may do in the status server's namespace. |
|
ghlink
Package ghlink is the status page's "Connect GitHub" link: an optional GitHub identity a signed-in user attaches, per github Integration, through that Integration's GitHub App user-to-server OAuth flow (PKCE).
|
Package ghlink is the status page's "Connect GitHub" link: an optional GitHub identity a signed-in user attaches, per github Integration, through that Integration's GitHub App user-to-server OAuth flow (PKCE). |
|
Package webhook is the provider-webhook HTTP server the integration-controller embeds: one listener, one bounded worker pool, and one delivery-ID dedup window shared by every provider route, plus health/readiness endpoints with graceful drain.
|
Package webhook is the provider-webhook HTTP server the integration-controller embeds: one listener, one bounded worker pool, and one delivery-ID dedup window shared by every provider route, plus health/readiness endpoints with graceful drain. |
|
Package wiz is the Wiz source: it turns Wiz automation-rule webhook deliveries into patchy Findings.
|
Package wiz is the Wiz source: it turns Wiz automation-rule webhook deliveries into patchy Findings. |
|
Package wizapi is a minimal Wiz GraphQL API client, holding exactly what the Wiz verdict write-back needs: an OAuth2 client-credentials token source and the updateIssue mutation that rejects an issue with a note.
|
Package wizapi is a minimal Wiz GraphQL API client, holding exactly what the Wiz verdict write-back needs: an OAuth2 client-credentials token source and the updateIssue mutation that rejects an issue with a note. |
Click to show internal directories.
Click to hide internal directories.