Mechanical enforcement
message in flightviolation
- Architectural invariant: dependencies only point forward.
- An agent edit introduces a backward dependency.
- The linter error injects remediation into context.
- The agent self-corrects; the invariant holds at any throughput.
Notes & references
Use when
Agent throughput exceeds human review capacity.
Avoid
Prose-only rules, and errors that say what failed but not how to fix it.
# structural test, run as a hook and in CI
for edge in import_graph(domain):
if layer(edge.dst) < layer(edge.src):
fail(f"""{edge}: backward dependency.
Fix: expose it through Providers,
see ARCHITECTURE.md#layers""")
- Harness engineeringOpenAI
- Agent harness engineeringAddy Osmani
- The anatomy of an agent harnessLangChain