Foundry logo

Your codebasethat governs

Foundry is the governed development environment for complex domain platforms. Turn your code and tests into a living, visualizable spec, eliminating drift and keeping your team in sync.

The codebase that never lies.

2MWebSockets on a single node
0%Spec-code drift
10xFaster reviews
-94%Cloud bill
100%Visualizable code
EjectAt any time
150→5Servers
$2M/yrSavings in case
$150/movs $16k Lambda
The problem nobody talks about honestly

Starting is no longer
the hard part.

01

Constraints live in heads, not code.

The reason a resource is sensitive exists in one person's memory and nowhere else. When that person leaves, the constraint vanishes. Foundry makes constraints executable — they live in the spec-kit and the linter fires when they're violated.

02

Documentation drifts from reality.

The diagram drawn in week one describes a system that no longer exists. In Foundry, the system map is not inferred from code — it is the code. A lossless rendering generated from the same source the compiler validates. It cannot drift.

03

AI tools generate from training, not your domain.

The copilot doesn't know your invariants. Foundry's copilot is different — it reads your domain model live from the compiler, your ADRs, your compliance links, and your sensitivity classifications before proposing anything.

AB
04

Change is invisible until production.

Nobody knew that modifying this action would break three downstream compliance obligations. Foundry proposes on a branch, classifies the change as :structural, :behavioral, or :compliance, and routes it to the right approver before anything merges.

How Foundry works

One source of truth.
Everything derives from it.

user.ex
1defmodule MyApp.Accounts.User do
2  use Ash.Resource,
3    domain: MyApp.Accounts,
4    data_layer: AshPostgres.DataLayer
5
6  # sensitivity: :pii is a compiler-enforced
7  # constraint  not documentation
8  @sensitivity :pii
9
10  attributes do
11    uuid_primary_key :id
12    attribute :email, :ci_string, allow_nil?: false
13    attribute :role, MyApp.Accounts.Role
14  end
15
16  policies do
17    policy action_type(:read) do
18      authorize_if relates_to_actor_via(:self)
19    end
20  end
21end
Ready
The stack

The infrastructure
decision you'll never
have to make.

The BEAM was built by Ericsson for telephone exchanges — systems that needed to run without failure under millions of concurrent connections. Foundry gives you this foundation from the first line you write.

2M
WebSockets, one server
~1KB
Per connection
0
GC pauses
Foundry StackPre-integrated
Phoenix LiveView
Real-time UI
native
Ash Framework
Domain layer
native
Oban
Background jobs
native
Postgres
Persistence
native
BEAM / OTP
Runtime
native
Foundry spec-kit
Governed copilot
foundry
The numbers

AI adoption is rising.
So are bug rates.

Google DORA 2025 & GitClear
0%
increase in AI tool adoption — per Google DORA 2025
+0%
rise in bug rates correlated with that adoption
+0%
increase in code review time alongside AI adoption
0x
AI-assisted code churn — per GitClear research
What teams build with it

Built for
complex domains.

The more regulated and complex your domain, the greater the advantage. This is where configuration-based tools break down.

Business Process Platforms
Domain type
Financial Platforms
Domain type
Healthcare & Clinical
Domain type
Enterprise Internal Tools
Domain type
Ash Framework
Core
Phoenix LiveView
Core
Oban
Core
Postgres
Core
BEAM / OTP
Runtime
Spec-kit Linter
Foundry
System Map
Foundry
Governed Copilot
Foundry
Business Process Platforms
Domain type
Financial Platforms
Domain type
Healthcare & Clinical
Domain type
Enterprise Internal Tools
Domain type
Ash Framework
Core
Phoenix LiveView
Core
Oban
Core
Postgres
Core
BEAM / OTP
Runtime
Spec-kit Linter
Foundry
System Map
Foundry
Governed Copilot
Foundry
Governed Copilot
Foundry
System Map
Foundry
Spec-kit Linter
Foundry
BEAM / OTP
Runtime
Postgres
Core
Oban
Core
Phoenix LiveView
Core
Ash Framework
Core
Enterprise Internal Tools
Domain type
Healthcare & Clinical
Domain type
Financial Platforms
Domain type
Business Process Platforms
Domain type
Governed Copilot
Foundry
System Map
Foundry
Spec-kit Linter
Foundry
BEAM / OTP
Runtime
Postgres
Core
Oban
Core
Phoenix LiveView
Core
Ash Framework
Core
Enterprise Internal Tools
Domain type
Healthcare & Clinical
Domain type
Financial Platforms
Domain type
Business Process Platforms
Domain type
Governance

Governed.
By construction.

Foundry is built for regulated domains — financial platforms, healthcare systems, enterprise internal tools. Compliance is not a layer you add. It is declared in the domain.

Ash FrameworkPhoenix LiveViewObanBEAM / OTPPostgres

Ash policies, compiler-enforced

Authorization logic is declared in the resource, validated at compile time. No policy can silently vanish.

Sensitivity classification

Resources carry :pii, :financial, and :phi classifications that the linter enforces across every action and relationship.

Compliance links

ADRs reference regulation files. When a rule is violated, the linter fires with the exact ADR that motivated it.

Audit-ready by construction

Auditors read the system map. It is a lossless rendering of what is running — generated from the same source the compiler validates.

The copilot

Full context.
Governed proposals.

The reason most AI coding tools degrade as systems grow is not model quality — it is context. Foundry's copilot reads your domain model live before proposing anything.

Live DSL introspection

Reads the compiler's output, not a cached index.

Structured spec-kit

ADRs, runbooks, and compliance as executable constraints.

Branch-first proposals

Copilot never touches your working tree.

Change classification

:structural, :behavioral, or :compliance — routed accordingly.

defmodule MyApp.Ledger.Transfer do
  use Ash.Resource,
    domain: MyApp.Ledger,
    data_layer: AshPostgres.DataLayer
  @sensitivity :financial
  attributes do
    uuid_primary_key :id
    attribute :amount, :decimal, allow_nil?: false
    attribute :state, MyApp.Ledger.State,
      default: :pending
  end
  actions do
    create :initiate
    update :approve do
      require_atomic? true
    end
    update :reject
  end
  policies do
    policy action(:approve) do
      authorize_if actor_attribute_matches_record(
        :role, :domain_lead
      )
    end
  end
end
From teams using Foundry
01 / 04

"Six months in, the architect left. Foundry meant the constraints didn't leave with them. A new engineer read the domain map in twenty minutes and made their first PR safely."

E

Engineering Lead

Fintech Platform, Series B

Key Result

Zero post-departure incidents

Built for regulated, complex, long-lived systems

Financial PlatformsHealthcare SystemsBusiness ProcessEnterprise InternalRegulated DomainsComplex DomainsLong-lived SystemsDomain-driven
Financial PlatformsHealthcare SystemsBusiness ProcessEnterprise InternalRegulated DomainsComplex DomainsLong-lived SystemsDomain-driven
Pricing

Open source core.
Governed copilot.

The architecture is yours, regardless of plan. No proprietary runtime. No black box.

Every Foundry project compiles to a standard Elixir application. You own it entirely.

MonthlyAnnualSave 17%
01

Open Source

The full Foundry, yours to own

$0/month
  • Own Ash + Phoenix + Oban stack
  • Built-in spec driven methodology
  • Governance linter
  • System map generation and visualization
  • Behavior test visual tracing
  • Basic copilot agent
  • Community support
Most Popular
02

Team

The governed copilot for teams building complex domains

$39/month
  • Everything in Open Source
  • Extended governed AI copilot agent
  • Cloud infractructure 1 instance
  • Up to 1 CPU and 512 MB RAM + 1 GB PostgreSQL
  • Priority support
03

Enterprise

For regulated platforms and complex organisations

Custom
  • Everything in Team
  • Dedicated domain architect
  • Branch-first proposals
  • On-premise deployment
  • SLA guarantee
  • Custom contracts

If you are building
something complex.

Domain-heavy, long-lived, and regulated — and you want to build it in a way your team, your AI, and your auditors can all understand real system behavior years later.

Foundry is built with love.