# Government & public sector (/docs/use-cases/government)



This page is the landing for federal agencies, state and local
government (SLG), government contractors, and SLG IT teams evaluating
Pleach for procurement.

Pleach is a runtime, not an authorized service: it is **not
FedRAMP-authorized**, and IL5/IL6 is outside the recipe's scope.
[What you provide](#what-you-provide) lists the work that stays with
your deployment.

## Who this is for [#who-this-is-for]

* **Federal agencies**, civilian and defense-related.
* **State and local government**, including state IT and city
  digital-services teams.
* **Government contractors** delivering to federal agencies under a
  flowdown.
* **SLG IT** providers serving multi-tenant customers under a shared
  compliance posture.

Common shape: large organizations, 12–24 month procurement cycles, and
hard requirements on license, hosting topology, identity federation, and
audit posture.

## v1 scope — what ships today [#v1-scope--what-ships-today]

Three capabilities, each tested and on `vine`.

### 1. License clarity for procurement [#1-license-clarity-for-procurement]

All 13 publishable SKUs ship under **FSL-1.1-Apache-2.0**
(Functional Source License 1.1 with a future-license clause to
Apache-2.0 at the 2-year mark). That gives government buyers a written,
dated path from source-available to OSI-approved Apache-2.0.

See [License compatibility](/docs/use-cases/government/license-compatibility)
for the procurement-facing detail.

### 2. Air-gapped endpoint redirection [#2-air-gapped-endpoint-redirection]

With `airGapped: true`, `@pleach/core` checks every outbound
provider URL against your allowlist and rejects anything else. A host
can't skip the check by forgetting to wire it at the edge.

See [Air-gapped architecture](/docs/use-cases/government/air-gapped-architecture)
for the call-site map and the offline-install work you provide.

### 3. IAM-federated identity (AWS GovCloud) [#3-iam-federated-identity-aws-govcloud]

The gateway ships an IAM-backed identity provider that scopes model
access per tenant. You supply your own AWS STS client, scoped to a
GovCloud region.

Azure Government and GCP IL2 identity adapters exist at
`@pleach/gateway/identity/providers/{azure,gcp}` but the
`governmentAgent` recipe doesn't wire them at v1. AWS GovCloud is the
explicit v1 target.

## What you provide [#what-you-provide]

A government deployment pairs the runtime with three kinds of work.

### Your agency's duties [#your-agencys-duties]

These belong to you and your authorizing agency, whatever software you run.

* **FedRAMP authorization.** The runtime surfaces the declared
  `fedrampBaseline` as procurement-visible metadata. The
  authorization is yours, for your system boundary.

### Setup [#setup]

* **SBOM and provenance for your deployment (CycloneDX 1.5 / SPDX 2.3,
  SLSA, Sigstore).** The `governmentAgent` recipe surfaces the declared
  `sbomFormat` as metadata and doesn't generate an SBOM. Produce and sign
  the artifacts for what you build and ship.
* **Offline install.** The runtime ships a URL allowlist and an env-var
  override of the OpenRouter base URL. Vendor dependencies through a
  private registry or a vendored snapshot.

### Not in Pleach yet [#not-in-pleach-yet]

* **DoD Impact Level 5 / Impact Level 6.** The `governmentAgent` recipe
  doesn't cover them.
* **Published SBOMs and provenance.** The `@pleach/*` release workflow packs
  a CycloneDX and an SPDX SBOM into each package tarball except the
  transport packages, and publishes with npm provenance. No `@pleach/*`
  package is on npm yet, so none has been published.

See [Supply-chain risk & SBOM](/docs/use-cases/government/scrm-and-sbom)
for the SCRM stance and the per-SKU dependency posture.

## Quickstart [#quickstart]

```ts
import { governmentAgent } from "@pleach/recipes"
```

The minimal air-gapped + IAM example:

```ts
import { STSClient, AssumeRoleCommand } from "@aws-sdk/client-sts"
import { governmentAgent } from "@pleach/recipes"

const stsClient = new STSClient({ region: "us-gov-east-1" })

const bot = governmentAgent({
  agencyId: "gsa-tts",
  airGapped: true,
  airGappedAllowedHosts: ["llm.internal.gsa.gov"],
  classification: "fouo",
  fedrampBaseline: "moderate",
  onPremProvider: {
    kind: "iam",
    endpoint: "https://llm.internal.gsa.gov",
  },
  iamConfig: {
    stsClient,
    roleArnTemplate:
      "arn:aws-us-gov:iam::123456789012:role/pleach-gateway/{tenantId}",
    assumeRoleCommandFactory: (input) => new AssumeRoleCommand(input),
  },
  auditPackage: { format: "fedramp", retentionYears: 7 },
})

const answer = await bot.ask(
  "Summarize current FedRAMP boundary changes.",
)
```

What this wires:

* `airGapped: true` with a single-host allowlist: outbound provider
  URLs other than `llm.internal.gsa.gov` are rejected.
* `onPremProvider.kind: "iam"` with `iamConfig.stsClient`: the recipe
  loads the IAM identity provider and exposes it on the bot so the host
  can wire it into its gateway.
* `classification: "fouo"` and `fedrampBaseline: "moderate"`:
  procurement-visible metadata. It doesn't enforce authorization; it
  surfaces your declared posture for audit.

## Fail-closed by design [#fail-closed-by-design]

If `airGapped: true` is supplied with an empty or absent
`airGappedAllowedHosts`, the allowlist rejects **every** outbound URL.
The first outbound call throws `AirGappedHostRejectedError`, so a
misconfigured deployment fails during smoke test rather than leaking in
production.

## What this recipe does not do [#what-this-recipe-does-not-do]

* Doesn't enforce FedRAMP / IL5 / TS authorization. Those are
  paperwork tracks; the recipe surfaces the declared posture and
  doesn't validate it against an ATO.
* Doesn't bundle a fed-cloud provider. You construct the `STSClient`
  (or equivalent) and inject it.
* Doesn't generate SBOM or SLSA provenance artifacts for your
  deployment.
* Doesn't call `init({ destination })` for `@pleach/observe`. The host
  owns init.

## Related [#related]

* [License compatibility](/docs/use-cases/government/license-compatibility)
* [Air-gapped architecture](/docs/use-cases/government/air-gapped-architecture)
* [Supply-chain risk & SBOM](/docs/use-cases/government/scrm-and-sbom)
* [Worked example: an offline deployment review](/docs/use-cases/government/air-gap-assessment)
* [Air-gapped deployment (general)](/docs/air-gapped-deployment)
* [Compliance](/docs/compliance)
* [Gateway](/docs/gateway)
