From intent to the next decision
- ObserveA developer or agent inspects a repository snapshot and follows relevant relationships to source.
- DecideThe team records the boundary, its scope and its rationale in a versioned contract.
- ChangeA developer or agent makes a focused code change against that intent.
- VerifyArchKeel reads the changed source, evaluates supported rules and returns findings and gaps.
- ReviewThe team accepts the evidence, asks for a correction, or deliberately revises the contract. Then it runs the check again.
Choose a rule you can explain
Start with a boundary that matters to your team. In the checkout demo, the Order workflow may use the payment port. It may not import the provider adapter. Run the behavior tests and the architecture check on the same proposed revision. Review the contract and scan configuration alongside the code.
Review the payment boundary change · Run the small receipt example
Make CI run the reviewed contract
Install an approved, pinned CLI build in the runner. Use a repository checkout with its Git metadata. Make the validation job required on branches where violations should block a merge.
archkeel validate --summary --no-init
This command and the linked reference describe the pinned development build used by this site’s example. Exit behavior varies by command, version and baseline. For the 5.0 target, an approved window can produce CONDITIONAL PASS with exit 0; a gate that distinguishes it from PASS must inspect the result status and premises. Read the result and configure your pipeline’s policy explicitly.
CLI exit codes · Baseline behavior
Turn recurring defects into durable knowledge
A fix addresses one occurrence. A stronger learning loop addresses the class of failure: detect a violation or verifier defect, understand its cause, identify recurring forms, codify the supported decision, test it with an executable counterexample, and enforce the checked contract in CI.
- Detect: capture the violation or missing evidence.
- Understand: trace the cause and affected scope.
- Learn: investigate independent manifestations of the same failure class.
- Codify: state enforceable boundaries in the contract.
- Verify: run a counterexample on the exact build and revision.
- Enforce: run the decision continuously with an explicit CI policy.
Independent architecture, implementation and adversarial reviews can reveal different failure modes. These are team practices; ArchKeel does not orchestrate multiple agents.
Prefer structural prevention
- Prevent the defect with architecture and interfaces.
- Check measurable boundaries with ArchKeel.
- Keep executable behavior tests.
- Review unresolved risks independently.
- Use written instructions where a technical check is unavailable.
An instruction file gives an agent context; it cannot guarantee compliance. Architecture conformance, runtime behavior and operational integrity each need their own evidence.
Return the evidence to the reviewer and agent
archkeel validate --json --no-init
archkeel report --output architecture-report.html --no-init
Use JSON when a coding agent or a workflow consumes a finding. Attach the HTML as a job artifact for a person to inspect. Run artifact generation in a reporting step that can execute after a failed check, and preserve the original validation status.
An agent can use a rule ID and source location to propose a correction. Have a person review changes to the contract, especially when a change would broaden an allowed dependency. The Rust core evaluates the contract with static source evidence.
Read a generated HTML report · Choose the CLI or Studio build · Consolidate existing architecture checks