jonnifyagile agents
Agile Agent Workflow / A5 · The agent brief / A5.3 · Execution topology

A5.3 · module hub

Execution topology

References named the sources; requirements numbered the checks. Those requirements imply a runtime shape and a build order — and the topology writes both down, with the exact files the agent touches.

The brief's third part answers the three things a spec leaves open about how the code is assembled: what runs (the supervision tree and the request flow), in what order it is built (the task DAG, each step compiling), and in which files (the touched-file list and the boundary the agent does not cross). With them fixed, a Claude Author assembles a system bottom-up without guessing. Select a part on the right; the three dives go deep on each. All grounded on the Portal's real f6.1.llms.md.

The three parts of topology · pick one

one topology · three questions a spec leaves open WHAT RUNS The runtime shape — the supervision tree and the request flow IN WHAT ORDER BUILT The task DAG — T1 to T7, each step leaving the app compiling IN WHICH FILES The file list — the touched files, and the boundary held fixed
Part 1 · The runtime shape — answers “what runs”. The supervision tree and the request flow. Topology pins what runs, in what order it is built, and in which files — the three things a spec leaves open about how the code is assembled.

From requirements to a shape

A5.2 left a set of numbered, traced requirements — F6.1-R1–R8 on the Portal's f6.1.llms.md. Each names a source and a check, but on its own a requirement does not say where its code lives, in what order it is wired, or what process owns it at runtime. Those are the decisions the spec leaves open, and the execution topology closes them.

The topology has three pinned artifacts. The runtime shape names the supervision tree and how a request flows through it. The task DAG fixes the build order, with each step leaving the app compiling. The file list bounds the change to the exact files created, edited, and deleted. Together they let an Author assemble the increment bottom-up — the same request lifecycle the companion Phoenix request lifecycle chapter builds.

The principle

The topology fixes the runtime shape, the build order, and the files — the three things a spec leaves open about how the code is assembled.

On the Portal

f6.1.llms.md pins the two-supervisor tree (:portal + :portal_web), the T1→T7 order, and the touched-file list, so the agent assembles bottom-up.

Topology is the difference between “build this” and “build this, in this shape, in this order, here.”

Trace a request

The runtime shape is most concrete as a path. A request to f6.1.llms.md's Portal enters the endpoint and walks the plug stack to the router, which dispatches to the controller, which calls the domain through exactly one door: the Portal.courses_of/1 facade. Step through the hops below. Switch the route to /health and the path stops at the router — the one path that never reaches the facade.

Follow a request through the plug stack

Plug .Static Plug .RequestId Plug .Telemetry Plug .Parsers Plug .Session PortalWeb .Router Controller .index/2 Portal .courses_of/1 the one domain door
Hop 1 of 8 · Plug.Static — the request enters the endpoint's plug stack. Route: GET /courses/:user_id. This path reaches the facade (Portal.courses_of/1) through one call; /health returns 200 “ok” with no domain call — the one path that skips it.

Every domain path reaches the engine through one door, the facade; the health route is the single path that never opens it.

The three dives

Each dive takes one part of the topology, in the order an Author needs them: the runtime shape it must reproduce, the task DAG it builds in, and the file list that bounds the change. Read them in order — A5.3.1 starts.

After A5.3, the next module — A5.4 · Agent stories — turns this ordered plan of work into units with an executable Directive and a closing Acceptance gate. Return to the A5 chapter navigation to continue.

References

The sources behind writing a runtime shape, a build order, and a file list an agent can assemble from, and where the request lifecycle and the facade boundary are built in the companion course.

Sources

Related in this course