From source and intent to an evidence-backed verdict
This is the target responsibility flow for the developing 5.0 architecture. Consolidating the final architecture decision in one evaluator is an accepted target, not a claim that the work is finished.
- Source + contractCode and versioned intent
- Capability validationCan the profile check the requested rule?
- Language analysisCollect source facts and coverage
- Architecture modelMap facts to components and dependencies
- Rule evaluationDecide from available evidence
- Evidence + verdictCLI, report, Explorer or MCP where supported
- Team policyCI applies the acceptance decision
The contract defines intent; the collector records facts and coverage; the model connects them; evaluation decides supported rules. A report exposes the result. CI applies your policy. Not every surface is in every build.
Read the architecture decision
Declare the rule and the reason
A contract records the components and the rules that express your intended architecture. Store its JSON and the scan configuration with your code. For this receipt example, storage and rendering are independent, so the renderer cannot import the store.
{
"id": "RENDER-NO-STORE",
"kind": "forbidden_dependency",
"source": "shop.render",
"target": "shop.store",
"rationale": "Receipt rendering must remain independent of persistence.",
"provenance": [
"docs/architecture/architecture.md"
],
"decided_by": "architect",
"include_type_checking": true
}
Read the full contract · Try the contract on two revisions
Requirements, descriptions and premises
Rules are executable decisions only when the installed build supports their kind for the selected language. Component responsibilities and rationale describe intent; their prose is not proof of correct behavior. An approved premise states an explicit assumption, not a discovered fact.
Depending on the build and language, rules can check ownership, layer direction, declared public boundaries, permitted and forbidden dependencies, completeness and import cycles. The recorded example above uses a forbidden dependency. Consult the rule catalog for the exact profile before depending on another rule.
A 5.0 capability refusal means the selected collector cannot check the requested rule in principle; missing project evidence for a supported rule is UNKNOWN. Some unported development rule kinds are still represented as UNKNOWN, so verify the exact build rather than assuming every unsupported form is refused.
Released rule reference · Development rule catalog · Capability validation source
Doors, windows and coverage gaps
import osA written import the collector can resolve.__import__(name)A target chosen at runtime; it needs a reviewed approval in the 5.0 target.import app.missingA relevant input cannot be resolved; evidence is missing.Short examples based on the pinned Python window tests; snippets alone do not constitute a complete contract or verdict.
A door is a written relationship that the supported resolver binds. A window is a known runtime choice that written structure cannot bind, such as a dynamic import. A coverage gap is missing evidence, such as unreadable relevant source. It is not a runtime window.
The accepted 5.0 target requires explicit approval for each relevant runtime window. A known unapproved window fails; an incomplete inventory remains unknown. Approving a window never removes an independent violation or unrelated evidence gap.
Inspect window and gap test cases · Inspect approved-window counterexamples
Verify the rule with source evidence
ArchKeel evaluates supported rules in the declared scope. The same added import breaks the explicit dependency rule and the rule that closes the inventory of allowed dependencies. The report and JSON evidence connect both findings to src/shop/render/receipt.py:1.
Inspect the recorded report · Architecture contract schema
Use the contract while the change is still small
Inspect the current relationships in ArchQL Explorer. Have an agent propose a scope or boundary if useful. Review that decision, check a change and use the evidence to revise the implementation or the contract.
See the ArchQL Explorer · Run the workflow with CI and an agent