---
title: "Effect Office Hours 27: Alchemy, infrastructure as effects"
description: "Sam Goodwin presents Alchemy as a system built with Effect for planning, testing, and deploying infrastructure."
plain: "Sam Goodwin shows Alchemy planning, testing and deploying infrastructure as Effects, with types tracking providers."
group: source
speaker: "Sam Goodwin"
date: 2026-04-30
url: https://youtu.be/fPSxB7ZgSJw
sources:
  - url: https://youtu.be/fPSxB7ZgSJw
    title: "Alchemy, Infrastructure as Effects | Office Hours 27 🔥 - YouTube"
    publisher: "Sam Goodwin"
    note: "Recording; used for Effect-native planning, testing, and deployment of infrastructure."
    accessed: "2026-10-01"
---

# Effect Office Hours 27: Alchemy, infrastructure as effects

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

New on /news: [Effect Office Hours 52 with Resonate HQ](/news).

Sam describes a workflow for coding agents from an empty project through deployment, tests, CI, and operations.
An Effect describes work with typed failures and required services.
A Layer describes how to build services and supply their dependencies.
An Alchemy Stack is the infrastructure program that declares cloud resources.

Effects and Layers let the type system track the resource providers a Stack needs.
Tests using real infrastructure check behavior after deployment. [03:38](https://youtu.be/fPSxB7ZgSJw?t=218) [07:01](https://youtu.be/fPSxB7ZgSJw?t=421) [16:01](https://youtu.be/fPSxB7ZgSJw?t=961)

He explains bindings as application capabilities that can inform least-privilege policies, which limit permissions to the application methods in use. The runtime and infrastructure stay related without bundling provider implementations into the application. [58:16](https://youtu.be/fPSxB7ZgSJw?t=3496) [59:23](https://youtu.be/fPSxB7ZgSJw?t=3563) [70:55](https://youtu.be/fPSxB7ZgSJw?t=4255)

## Sources

1. [Alchemy, Infrastructure as Effects | Office Hours 27 🔥 - YouTube](https://youtu.be/fPSxB7ZgSJw)
   Sam Goodwin. Recording; used for Effect-native planning, testing, and deployment of infrastructure. Accessed 2026-10-01.

## Lore on this page

- [Handle expected failures without hiding defects](/lore/error-model)
- [Bindings](/lore/bindings)

## Linked from

- Agent guide → An Effect stack so pure (aspirational) Kit Langton will blush. → [Read page](https://ratstack.sh/llms.txt)

- Bindings → Sam Goodwin describes bindings as the place where runtime permissions and configuration meet infrastructure. → [Read page](https://ratstack.sh/lore/bindings)

- Change log → What changed in the files served here, newest first. → [Read page](https://ratstack.sh/log)

- Distilled → Sam Goodwin describes provider client libraries that return Effects and named error types under the Distilled name. → [Read page](https://ratstack.sh/lore/distilled)

- Full agent guide → An Effect stack so pure (aspirational) Kit Langton will blush. → [Read page](https://ratstack.sh/llms-full.txt)

- Infrastructure as effects → Sam Goodwin relates application operations to infrastructure requirements in one typed program. → [Read page](https://ratstack.sh/lore/infrastructure-as-effects)

- Rat Stack lore | rat-stack → Short, source-grounded notes on the ideas and decisions behind rat-stack. → [Read page](https://ratstack.sh/lore)

- Source change history (log.md) → The generated change log as Markdown. → [Read page](https://ratstack.sh/log.md)
