Appendix A — MAGE Engineering Stacks

Stacks: mechanisms that travel together

A single pattern in the preceding appendices kills one failure class. In practice, though, mechanisms arrive in clusters — a concept you want to adopt (model-based engineering, a self-operating orchestrator, an auditable format seam) is not one mechanism but several that reinforce each other. This appendix names those clusters. Each stack attaches to a concept, lists the mechanisms that make it up, and says which of them you can leave out.

A stack composes at a different grain than a package move. A package is composition inside one mechanism — a constraint shipped already welded to its own dedicated sensors, still one catalogue entry. A stack is composition across several distinct mechanisms — many entries that together make one governed capability. Both travel together; the package is the intra-mechanism weld, the stack the inter-mechanism cluster.

Every stack sorts its members into two kinds:

Each member links to its own pattern page in the earlier appendices. Read a stack to see which mechanisms you must adopt as a set, and which you can add later.

Where every mechanism sits

One idea sits above the pattern set rather than beside it: enforce at the right semantic level. A control must fire at the level where the property actually lives (structural → deterministic check; semantic → model/judge) and be as legible as the failure it prevents — the placement judgment that explains WHERE every other mechanism sits.

It earns that place because it is a choice, not a pattern you reach for. Aim a check one level too low and it passes the violation it should catch while firing on the legal case it should allow — present, but wrong. Read the pages that follow with this lens: each pattern is as much a decision about level as about shape.

The nine capabilities

The mechanisms answer to nine capabilities a governed engineering environment needs. Each names a job the fleet must do; the patterns grouped under it are the shapes that do it. Nine peers are hard to hold, so they hang on the book's own triad of what governance acts on — the models-bridge the fleet reasons through, the product it ships, and the agent fleet that does the work. The stacks below and the reference that closes this appendix both sort into these nine.

Models-bridge — the map the fleet reasons through, held equal to reality.

Product — the shipped artifact: constrained, complete, preserved, attributed.

Agent — the fleet that produces work: admitted, managed, self-governed.

A note on vendor features

The mechanisms in this book are described against one concrete substrate — a coding agent and its harness — because a real system is what makes them legible. The mechanism is never the vendor feature, though; the vendor feature is one instance of it. A harness's lifecycle hooks, for example, realize a general idea: enforcement points on the agent's runtime lifecycle, where a deterministic step fires whether or not the agent cooperates. Your framework may expose that idea differently — a middleware layer, a git hook, a CI stage, a wrapper process — and the concept carries across intact.

Read every "the agent does X" in these appendices as here is one way to realize the MAGE concept X. The concept is the portable part, and it is what you are meant to take with you.

© James C. Davis, 2026–present