Skip to content

Drift Detection ​

Intent drift occurs when the codebase no longer reflects accepted intent. The code has moved away from what was agreed, even though the intent itself is still valid.

This is a leaf under Trace Feedback.

Worked example ​

text
Intent:
  Vendor SDK imports stay inside adapter modules.

Observation:
  Stripe SDK imported directly in CheckoutLive.

Assessment:
  Drift detected.

Suggested action:
  Create Foundry Formation Brief for gateway-boundary repair.

Resolving drift ​

When drift is detected the suggested action is a repair Formation Brief — Alloy proposes new work to bring the codebase back in line with accepted intent, rather than changing the intent. See Detect and Resolve Intent Drift for the end-to-end flow, Record Lifecycle for how the resulting records move through their states, and Failure Handling for what happens when a repair run does not pass its gates.

Contrast this with Contradiction Detection, where the code is fine and it is the intent that is out of date.

Source: Integration Architecture §16.3.

Alloy owns meaning. Foundry owns execution.