# Academy

## Let a customer's assistant book a class

- [Let a customer's assistant book a class](/academy/agent-ready) — Make the yoga studio usable by a customer's assistant: publish what it offers, expose listing and booking as MCP tools, and verify that a full class still refuses the booking.
- [Declare what an assistant can do](/academy/agent-ready/declare-what-an-agent-can-do) — Add the agent-ready package, declare list_classes and book_class, and route discovery and MCP requests through one handler that calls the studio's booking function.
- [Book a class through MCP](/academy/agent-ready/book-a-class-through-mcp) — Read the studio's discovery documents, list its MCP tools, book a space with a request_id, repeat the call, and read the refusal when the class is full.
- [Deploy and connect an assistant](/academy/agent-ready/deploy-and-connect-an-agent) — Deploy the studio's agent-ready surface, check its discovery document and tools on the deployed host, and connect an MCP client to /mcp.

## How a Ferrite app works

- [How a Ferrite app works](/academy/ferrite-foundations) — How Ferrite compiles admitted source, routes HTTP traffic through queues, guards atomic writes against retries, enforces platform limits, and isolates running apps.
- [What runs when you deploy](/academy/ferrite-foundations/what-runs-when-you-deploy) — Why Ferrite compiles applications from admitted source with a single SDK dependency, and how declared services and secrets enter AppContext at startup.
- [How a request reaches your code](/academy/ferrite-foundations/how-a-request-reaches-your-code) — How Ferrite's gateway turns public HTTP traffic into queue messages, filters headers, enforces ingress bounds, and dispatches five route kinds.
- [Writes that survive retries](/academy/ferrite-foundations/writes-that-survive-retries) — Why requests arrive more than once on a queue-backed platform, and how the studio commits a seat count, booking record, and request marker in one guarded atomic write.
- [Limits that change your design](/academy/ferrite-foundations/limits-that-change-your-design) — The storage, queue, ingress, timeout, expiry, concurrency, and account bounds that shape how you architect a Ferrite application from the first version.
- [What happens during a deploy](/academy/ferrite-foundations/what-happens-during-a-deploy) — How ferrite deploy validates source, records a local deploy journal, compiles on the platform, handles interruptions, and preserves application state.
- [What the gate refuses](/academy/ferrite-foundations/what-the-gate-refuses) — The source rules every Ferrite application obeys, the error codes the admission gate reports, and where local checks differ from platform checks.
- [What an app can reach](/academy/ferrite-foundations/what-an-app-can-reach) — How ferrite.json bounds every service, route, header, and outbound destination an application can touch, and how the host enforces containment at runtime.
- [Optional: services reference](/academy/ferrite-foundations/optional-services-reference) — Every service binding available on AppContext, its async client contract, binding-free context methods, and re-exported SDK crates.

## Build a booking app with Alloy

- [Build a booking app with Alloy](/academy/ship-an-alloy-app) — Set up your coding agent, run the live-counter starter, and build and deploy a yoga studio booking app that refuses bookings when a class is full.
- [Set up Ferrite and run the live counter](/academy/ship-an-alloy-app/set-up-and-run-the-counter) — Give your coding agent the quickstart prompt, confirm the deployment it proposes, and check that a saved count survives a reload.
- [Create the studio app](/academy/ship-an-alloy-app/create-the-studio-app) — Generate an Alloy project, run its checks and tests, and locate the code the next two lessons replace.
- [Show the timetable](/academy/ship-an-alloy-app/show-the-timetable) — Declare the bookings APE service, replace the template notes model with a timetable, and render live seat counts for each class.
- [Book a class and refuse a full one](/academy/ship-an-alloy-app/book-a-class) — Enforce class capacity inside a guarded APE transaction, expose it through the HTML form and a JSON API, and verify concurrency and retry behavior.
- [Deploy the studio and check it](/academy/ship-an-alloy-app/deploy-and-check) — Confirm the target account, estimate deployment cost, pass the remote admission gate, deploy the studio, and verify persistence and 409 refusals on the live host.
- [Troubleshooting and next steps](/academy/ship-an-alloy-app/troubleshooting-and-next-steps) — Fixes for build, routing, storage, and deployment failures in the yoga studio, how to pause or withdraw the app, and three extensions to build next.
- [The finished studio](/academy/ship-an-alloy-app/finished-studio) — Complete manifest, source, and tests for the yoga studio at the end of the course, plus the additions from the course on a customer's assistant.

