# Step 3 — Implementation Detail 1. `app/workflows/target_architecture.py`, pure and without I/O: `Element`, `Relationship`, `Check`, `NotApplicable`, `TargetArchitecture`, and `parse_graph`, which returns the graph or raises `GraphError` listing every fault. 2. The file is `target-architecture.json` with `elements`, `relationships`, `checks` and optional `not_applicable`. 3. Refused, with the id named: a repeated id; a Relationship whose `from` or `to` is not an Element; a Check that applies to nothing in the graph; an Element with no Check; a missing or empty field. 4. An Element's `component` is optional, for supporting Elements such as identities, keys and networks. Tests: `tests/execution/test_requirements_chain.py`, "the graph is well-formed".