Review a payment boundary change

A proposed change lets the Orders workflow call a provider adapter directly. All three behavior tests still pass. Use ArchQL Explorer to see what changed and decide whether to merge.

Explore the proposed change

Double-click Orders service or select it and press Enter. Switch between As-Is, Target and Diff. In Diff, look for the direct import from Order workflow to Provider adapter.

Where the boundary sits

Checkout submits an order to Orders. Orders authorizes payments and publishes outcomes. The payment provider and audit sink are local mocks. The system links come from the declared interface schemas. Inside Orders, As-Is shows imports that ArchKeel found in the repository.

The provider adapter implements the connection to the payment provider. The composition root supplies that adapter to the order entry point. The workflow uses a provider-neutral payment port so the team can swap the provider without changing order policy.

Read the system contract · Read the Orders target contract

One changed import, two failed rules

src/orders/workflow/place.py:3 replaces the payment port with a direct dependency on the provider adapter. The same line breaks the import allowlist and the explicit provider boundary. The allowed edge to the payment port is now unused. That unused permission is an observation in Diff. The direct adapter import is the violation that blocks merge.

from orders.provider_adapter.client import send_authorization
CheckBaselineProposed change
Behavior tests3 passed3 passed
Orders contractPASS · 0FAIL · 1
Unresolved call sites22

Two injected call sites remain unresolved in both runs. The verifier can still decide the import rules using the recorded imports.

Review the baseline report · Read the actual CLI output · Download the patch

Reproduce both runs locally

Download the fixture. Install the pinned development CLI and run the commands below in a fresh copy. The script runs the same tests on both revisions, checks the expected exit codes and writes native reports.

unzip checkout-payment-boundary.zip
cd checkout-payment-boundary
git init
git add .
git -c user.name=Example -c user.email=example@example.com commit -m "Checkout payment example"
sh replay.sh

To inspect the same repository in local Studio, prepare the development checkout and run this after the replay.

uv run --project /absolute/path/to/archkeel archkeel studio . \
  --config architecture-system.json --no-open

The browser Explorer reads recorded evidence from ArchKeel 4.0.2.dev937+gcf6a50c3d, source revision cf6a50c3. To evaluate your own changes, run the CLI locally or in CI.