Carrier Language
A Field Guide for Enterprise Architects
Domain-native architecture for compilable, governable, automation-ready services.
Language
Enterprise Architects
Six parts. One narrative.
The book opens with a story, takes you through a 30-minute hands-on build, then walks you through the language, enterprise concerns, patterns, delivery, and adoption.
- Part One01Why Carrier
The case for domain-native enterprise services
- Part Two02Core Language Model
The constructs that carry architectural meaning
- Part Three03Enterprise Concerns
Identity, policy, governance, and regulated domains
- Part Four04Architecture Patterns
Designing services, workflows, and integration at scale
- Part Five05Delivery and Governance
Lifecycle, ADRs, and the Carrier manifest
- Part Six06Adoption Strategy
Pilots, reference architecture, pitfalls, and the road ahead
- Appendices07Carrier Reference Toolkit
Selection guide, layouts, checklists, and glossary
Choose where you start.
Search by title, by part, or by anything you remember from the opening lines. Every chapter is a single page — long-form prose, quoted code, callouts, and figures, all on dark, easy on the eyes.
Where the book begins
Preface, opening story, and a 30-minute hands-on build
- Preface→A New Paradigm
This is a book for enterprise architects who have spent careers watching their best ideas decay in translation.
- Story→An Opening Story
It is a Tuesday morning at a regional health system. The Chief Medical Officer has just approved a behavioral-health pilot. They need a patient-intake service that captures consent, demographics, and a depression-screeni
Why Carrier
The case for domain-native enterprise services
- Chapter 1→The Enterprise Architecture Problem
Enterprise architecture is often described as the discipline of aligning technology with business strategy. In practice, much of the work is more immediate and more difficult: helping large organizations change without b
- Chapter 2→Carrier at a Glance
Carrier is a language and toolchain for defining enterprise services in a form that is compact, structured, and directly connected to runtime behavior. It gives teams a way to describe the core shape of a service without
- Chapter 3→Architectural Principles Behind Carrier
Carrier is built around a simple architectural idea: enterprise services should describe their domain shape directly. The important parts of a service should not be buried across framework code, middleware, migration scr
- Hands-on→Build in 30 Minutes
Reading about Carrier is one thing. Building with it is another. This interlude takes thirty minutes from a blank directory to a running service with a generated API contract, schema migrations, and a manifest you can go
Core Language Model
The constructs that carry architectural meaning
- Chapter 4→Carrier Project Structure
A Carrier project is organized around source files, imports, modules, and generated artifacts. The structure is intentionally simple, because enterprise systems become difficult enough without hiding the build graph.
- Chapter 5→Services and Application Boundaries
The service declaration is the architectural starting point of a Carrier application. It defines the unit being built and gives the rest of the source a boundary.
- Chapter 6→Models and Enterprise Data Design
Models are where enterprise architecture becomes durable. Routes may change, workflows may be redesigned, and integration patterns may evolve, but data tends to survive. A poorly chosen data model can constrain an organi
- Chapter 7→Types and API Contracts
Carrier type declarations define structured values used for inputs, outputs, and reusable contract shapes. A model describes persistence. A type describes a contract. They are related — but not the same thing.
- Chapter 8→Functions, Actions, and Transactions
Carrier separates pure helper logic, business operations, and transactional boundaries. This separation helps prevent service code from collapsing into route handlers.
- Chapter 9→Routes and HTTP Architecture
Routes are the public edge of a Carrier service. They define how callers interact with business capabilities over HTTP. A route is not just a function with a URL — it is part of the enterprise contract.
Enterprise Concerns
Identity, policy, governance, and regulated domains
- Chapter 10→Security and Identity
Security architecture starts with identity. Before a service can enforce access, it must know who is calling and under what authority. Carrier supports JWT authentication for protected routes.
- Chapter 11→Authorization and Policy Design
Authentication answers the question: who is calling? Authorization answers the harder question: what is this caller allowed to do? In enterprise systems, authorization is rarely simple. Access may depend on role, tenant,
- Chapter 12→API Governance
APIs are enterprise contracts. Once published, they shape downstream systems, integration timelines, operating models, vendor dependencies, and customer expectations. Carrier's API-first workflow helps because API shape
- Chapter 13→Data Governance and Compliance
Enterprise data governance is the discipline of knowing what data exists, who owns it, how it changes, who can access it, and what obligations apply. Carrier helps by making models, policies, routes, and metadata explici
- Chapter 14→Healthcare and FHIR-Oriented Modeling
Healthcare systems are unusually demanding. They combine complex workflows, sensitive data, strict privacy obligations, interoperability requirements, clinical safety concerns, and rapidly changing operational needs. Car
Architecture Patterns
Designing services, workflows, and integration at scale
- Chapter 15→Designing Carrier Services at Scale
A small Carrier service can be understood from a few files. An enterprise Carrier estate may contain many services, domains, modules, policies, integrations, and generated artifacts. At that scale, architecture depends l
- Chapter 16→Workflow and Business Process Design
Enterprise systems do not only store resources. They run workflows. A claim is submitted, reviewed, denied, corrected, approved, and paid. A patient is referred, scheduled, checked in, assessed, treated, discharged, and
- Chapter 17→Integration Architecture
No enterprise service lives alone. Even a well-bounded Carrier service will usually depend on identity systems, data platforms, third-party APIs, legacy applications, messaging infrastructure, reporting systems, and othe
- Chapter 17½→LLMs, Agents, and RAG as Language Features
Most production AI systems live in a different world than the one they were prototyped in. The notebook becomes a Flask app, the Flask app becomes a queue worker, the queue worker accumulates a tangle of prompt strings,
- Chapter 18→Operational Architecture
Architecture does not stop when code compiles. Enterprise services must build, deploy, run, fail, recover, and provide enough evidence for teams to understand what happened.
Delivery and Governance
Lifecycle, ADRs, and the Carrier manifest
- Chapter 19→Carrier Development Lifecycle
Carrier is not only a language for describing services. It is also a delivery workflow. The toolchain helps teams format source, check correctness, build runtime output, generate API descriptions, and produce schema migr
- Chapter 20→Enterprise Delivery Workflows
Enterprise delivery is not just a sequence of commands. It is a control system for changing software safely. Carrier fits well into delivery workflows because important service artifacts can be generated and checked from
- Chapter 21→Architecture Decision Records with Carrier
Architecture Decision Records, or ADRs, are short documents that capture important architectural choices. Carrier makes ADRs more useful because many architectural decisions have direct expression in source and generated
- Chapter 22→Reading the Carrier Manifest
The Carrier manifest is a machine-readable description of the service shape. It is generated under .carrier/manifest.json. For enterprise architects, this file is one of the most important outputs of the Carrier toolchai
Adoption Strategy
Pilots, reference architecture, pitfalls, and the road ahead
- Chapter 23→Introducing Carrier into an Enterprise
Adopting Carrier is not only a language decision. It is an operating-model decision. Carrier changes how services are described, reviewed, built, documented, and governed. The best introduction is not a broad mandate. It
- Chapter 24→Reference Architecture
A Carrier reference architecture gives teams a repeatable starting point. It should be opinionated enough to create consistency, but not so rigid that every service is forced into the same shape.
- Chapter 25→Common Pitfalls
Carrier gives enterprise teams a cleaner way to express service architecture, but it does not prevent poor design by itself. The most common pitfalls come from carrying old habits into a more structured tool.
- Chapter 26→The Future of Domain-Native Enterprise Platforms
Enterprise software has spent decades moving between extremes — centralization, decentralization, standardization, autonomy. The hard problem remains the same: how can large organizations change software quickly without
Carrier Reference Toolkit
Selection guide, layouts, checklists, and glossary
- Appendix A→Construct Selection Guide
Use the smallest construct that fits the architectural intent. The chart below maps a typical authoring question to the right Carrier construct.
- Appendix B→Recommended Multi-File Layouts
Small services can use a simple layered layout:
- Appendix C→Enterprise Architecture Checklist
- Appendix D→API Review Checklist
Run when API shape matters:
- Appendix E→Migration Review Checklist
Run when schema shape changes:
- Appendix F→Glossary of Carrier Terms
healthcare.questionnaire Carrier's healthcare/FHIR-oriented construct for typed questionnaire-style inputs.
- Appendix G→Example Carrier Service Walkthrough
This walkthrough stays structural rather than inventing exact Carrier syntax. The goal is to show the shape of building a focused service from scratch.
Carrier Language is set in Iowan Old Style and JetBrains Mono on a dark stage. The edition is rendered as a single-page-per-chapter web book; nothing is paginated and nothing is scrubbed of code.
Carrier Language was created by Nikolai Manek to support the hospital, school, and other ventures he is building — domain-native software for institutions that serve people.
Copyright © 2026 Nikolai Manek. All rights reserved.
Carrier™, the Carrier wordmark, and the Carrier mark are trademarks of WalkNorth, Inc.