I Design the Exit Before Adopting an AI Tool
I do not ask only what an AI tool lets me build. I ask what remains mine when I remove it.
That question changes adoption from a feature comparison into an architecture decision. A polished SDK, a managed agent studio, or a model-specific workflow can save weeks today while quietly deciding which prompts, traces, evaluations, state, and operating knowledge I will be able to carry tomorrow. The dependency becomes dangerous before it becomes unreliable: it becomes dangerous when replacing it is no longer a normal engineering operation.
I am not against vendors or managed services. I am against dependencies whose exit cost is invisible.
A wrapper is not an exit strategy
The usual answer to lock-in is an adapter. Put the provider behind an interface, keep its SDK at the edge, and declare the system portable.
That seam matters, but it covers only the call surface. AI systems accumulate coupling elsewhere:
- prompts absorb one model's behavior;
- tool schemas inherit one provider's constraints;
- evaluations remain inside a vendor dashboard;
- traces use fields that no other runtime understands;
- retrieval state depends on a particular embedding model;
- approval and safety rules migrate into a proprietary workflow builder.
A second adapter may compile while the replacement still fails the product's real contract. Portability is not the ability to send a request elsewhere. It is the ability to preserve the system's meaning while changing an execution dependency.
That is why I treat provider identity as a versioned input, not as hidden infrastructure. It is also why FACET turns instructions and output contracts into canonical artifacts rather than leaving the entire behavior boundary inside provider-specific prompt code.
I keep an exit card
Before a critical AI dependency moves beyond exploration, I want a small record next to the architecture decision:
exit_card:
dependency: managed-agent-runtime
owns:
- inference
- tool-call transport
portable_artifacts:
- task-contracts/
- evals/regression.jsonl
- traces/normalized.schema.json
replacement_seam: runtime/agent-adapter
acceptance_suite: evals/exit-gate.yaml
migration_trigger:
- model-retired
- export-contract-broken
- policy-no-longer-enforceable
known_loss:
- provider-specific cache
last_rehearsed: null
The exact fields are less important than the distinctions.
Ownership says what the dependency actually controls. Portable artifacts name the state and evidence that must survive. The replacement seam identifies the smallest code boundary that should change. The acceptance suite defines what “still works” means independently of the old provider. Migration triggers stop exit from becoming an indefinite future intention. Known loss records what cannot be carried without pretending that every migration is lossless.
This is not procurement paperwork. It is a compact falsifier for the claim that a component is replaceable. If I cannot fill the card without vague language, the architecture is already telling me where the coupling lives.
The evaluation suite is the real passport
Export is necessary but not sufficient. A folder of prompts and logs does not prove that another model-runtime pair can perform the same job.
The durable object is the acceptance contract: representative inputs, required output structure, forbidden effects, quality checks, latency or cost boundaries only when they were genuinely measured, and a clear policy for unknown results. The replacement does not need to imitate every sentence. It needs to satisfy the same externally meaningful obligations.
This follows the logic behind my earlier argument that agent identity is a versioned dependency. Changing a model, provider, tool adapter, or policy layer changes the executing system. A portable evaluation suite makes that change visible instead of treating a familiar model name as continuity.
The IOSM specification keeps hypotheses, invariants, contracts, decisions, and reports as explicit artifacts. I apply the same instinct here: architecture survives change when its reasoning and acceptance conditions exist outside the component being replaced.
Rehearsal separates optionality from fiction
An untested exit plan is a diagram.
I do not need a full provider migration every month. I do need a bounded rehearsal. Export one representative trace set. Run one meaningful task through a second adapter. Rebuild one retrieval slice from owned source data. Verify that policy decisions still occur at the intended boundary. Record what broke and how much product logic leaked into the dependency.
The result may be failure. That is useful. A failed rehearsal found lock-in while the current system still works.
This is different from rehearsing rollback. Rollback restores a known prior state inside the current architecture. Exit replaces part of the architecture while preserving obligations. One protects a release; the other protects the system's freedom to change.
The NIST AI Risk Management Framework organizes risk work across governance, mapping, measurement, and management. My narrower engineering interpretation is simple: lifecycle control is incomplete if a critical dependency can change or disappear but the system has no tested way to preserve its contracts and evidence.
Portability has a deliberate boundary
I do not abstract every vendor feature. That produces a lowest-common-denominator platform and makes useful capabilities expensive to reach.
Some lock-in is a rational purchase. A proprietary feature may create enough value to justify a harder exit. The exit card does not forbid that decision; it prices it honestly. I can isolate the feature, state the known loss, keep source data and evaluations under my control, and decide which migration trigger would justify rebuilding it.
The goal is not provider independence as an ideology. The goal is decision independence: the ability to stay because the dependency remains the best choice, not because the architecture has made choice unaffordable.
This is the test I now prefer before adoption:
If this component disappeared, which artifacts would let me preserve the system's promise?
A good AI tool accelerates entry. A sound AI architecture keeps the exit executable.