Skip to content
@compiled-ai-labs

compiled-ai-labs

Compiled AI Labs

An LLM authors the artifact at compile time. The runtime stays free of inference.

Compiled AI is a paradigm for systems that must be deterministic, auditable, and fast. The model runs offline to draft a config, rule, or policy; an external validator proves the artifact does what it claims; the committed artifact is then consumed by a boring, well-known tool — Semgrep, Conftest/OPA, OpenFisca, OHDSI — with no model in the request path.

Start with compiled-ai — the paradigm and its five-part shape: spec → compiler → gates → artifact → runtime.

Reference implementations

Same shape, four domains. The compile input and the deterministic runtime change; the gated-compile discipline does not. Each commits its artifact only after machine-checkable gates pass, and treats refusal — where the input admits no single determinate encoding — as a first-class output, never a guess.

# Repo Compiles Into Runtime
1 semgrep-rule-compiler incident postmortems + code samples Semgrep rules Semgrep
2 terraform-policy-compiler plain-English Terraform policies Conftest/OPA Rego Conftest / OPA
3 tax-rules-compiler statutory income-tax text an OpenFisca package OpenFisca
4 trial-eligibility-compiler verbatim ClinicalTrials.gov eligibility criteria an OHDSI Circe cohort OHDSI (CirceR)

Get involved

  • Use it. Open an issue with a pattern you'd want compiled.
  • Extend it. PRs for new languages, rule modes, or autofix — all gated the same way.
  • Build the next compiler. Have a deterministic tool that consumes config or rules (GitHub Actions, Dependabot, an in-house policy engine)? Open an issue describing the use case — we're looking for collaborators on adjacent compile targets.

Background

Contact: open an issue on any repo, or [email protected].

Popular repositories Loading

  1. terraform-policy-compiler terraform-policy-compiler Public

    Compile Terraform policy specs into gate-verified Conftest/OPA Rego. Second reference implementation of the Compiled AI paradigm — LLM at compile time, Conftest deterministic at runtime.

    Python 1

  2. compiled-ai compiled-ai Public

    Compiled AI — engineering deterministic LLM systems by moving the LLM to compile time and building a trusted corpus. This repo collects articles (republished from various sources) that explain the …

  3. semgrep-rule-compiler semgrep-rule-compiler Public

    Semgrep rules compiled from incidents by an LLM, gate-verified before commit. First reference of the Compiled AI paradigm - open to collaborators on this and adjacent compile targets (OPA, Terrafor…

    Python

  4. .github .github Public

  5. tax-rules-compiler tax-rules-compiler Public

    Tax law as a compile target: an LLM compiles the Income Tax Act into a deterministic OpenFisca package — provenance-pinned to verbatim statute, gate-verified to the cent against CRA's published pay…

    Python

  6. trial-eligibility-compiler trial-eligibility-compiler Public

    An LLM compiles verbatim ClinicalTrials.gov eligibility criteria into a deterministic, gate-verified OHDSI Circe cohort — at compile time only, no model in the runtime. Indeterminate criteria compi…

    Python

Repositories

Showing 6 of 6 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…