Portability, lock-in, and exit plans
Resilience guide — last reviewed: 2026-07-25.
Learning objectives
- distinguish beneficial dependency from unmanaged lock-in;
- choose portability boundaries by business consequence;
- design and rehearse an executable exit plan.
The decision in one sentence
Make critical data, behavior, and evidence portable; accept provider-specific optimization only where its value exceeds tested switching cost.
Lock-in is multidimensional
| Dimension | Example dependency | Mitigation |
|---|---|---|
| API/model | proprietary messages, tool or fine-tune format | internal request contract and conformance tests |
| Data | opaque vector/index or memory representation | source-of-truth export plus rebuild pipeline |
| Workflow | provider-specific state machine | portable business state and event schema |
| Identity/policy | cloud-only principal semantics | workload identity mapping and externalized policy |
| Evaluation | vendor dashboards and judges only | owned datasets, rubrics, raw results |
| Operations | unique telemetry and deployment tooling | OpenTelemetry and infrastructure definitions |
| Commercial | egress, minimum spend, support dependency | price scenarios and contractual exit terms |
| Skills | knowledge concentrated in supplier | paired ownership and runbooks |
Portability is not identical deployments everywhere. It is the ability to preserve an outcome within a stated recovery time, cost, and quality loss after a dependency changes.
Portability boundary
flowchart TB
accTitle: Portable AI system boundary
accDescr: Stable enterprise contracts isolate replaceable provider adapters while owned data, evaluations, policies, and telemetry support an exit.
A["Channels and business workflow"] --> B["Enterprise run contract"]
B --> C["Gateway and provider adapters"]
C --> D["Provider A"]
C --> E["Provider B or self-hosted model"]
B --> F["Owned context, tools and state"]
G["Owned evaluations, policy and telemetry"] --> B
H["Export, rebuild and rehearsal pipeline"] --> F
H --> C
| Element | What remains stable | What may vary |
|---|---|---|
| Run contract | task, identity, events, artifacts, errors | provider streaming details |
| Context | document IDs, provenance, permissions | index implementation |
| Tools | typed intent and idempotency | SDK and transport |
| Evaluation | cases, rubrics, thresholds | judge model |
| Telemetry | trace/run correlation and cost fields | backend |
| Adapter | normalized capability and error mapping | provider feature use |
Choose a portability tier
- Tier 0 — documented dependency: noncritical experiment; export is sufficient.
- Tier 1 — rebuildable: infrastructure, data, prompts, and tests recreate the service within weeks.
- Tier 2 — warm alternative: a second compatible route is regression-tested and can take selected traffic.
- Tier 3 — continuous portability: critical service runs across providers or regions with routine failover.
Higher tiers cost more and can suppress useful provider features. Assign the tier from business impact, supplier concentration, regulatory needs, and recovery objective—not ideology.
Design the exit before signing
Inventory every artifact required to leave: source data, normalized chunks, graph schema, embeddings rebuild process, prompts, tool schemas, policies, fine-tuning datasets and weights where licensed, evaluation results, audit events, user feedback, configuration, and infrastructure. Specify export format, frequency, deletion evidence, transition support, egress fees, keys, and retained rights in the contract.
Adapters do not create portability if semantics differ. Run conformance tests for tool arguments, structured output, token/context behavior, safety filters, citations, streaming, errors, and rate limits. Maintain a capability-degradation matrix so failover can disable unsupported features safely.
Northstar exit rehearsal
Quarterly, Northstar rebuilds a small retrieval index from authoritative documents, routes the golden evaluation set through an alternate model, verifies policy decisions, and restores recent workflow state. The test records elapsed time, quality delta, manual steps, missing artifacts, and cost. A failed rehearsal creates platform backlog before a supplier incident forces the migration.
Practical artifact: exit runbook
Include trigger and authority, dependency inventory, target architecture, data export and verification, secrets/identity changes, quality acceptance, cutover/canary plan, customer communications, rollback, supplier deletion evidence, and a rehearsal schedule.
Check yourself
- Pick two lock-in dimensions from the table and give a mitigation for each.
- What does a tier-2 portability posture promise that tier 1 does not, and how do you choose a tier?
- An adapter to a second model provider exists, yet failover fails in a drill. Why do adapters not create portability by themselves?
- What does Northstar's quarterly exit rehearsal record, and what follows a failed one?
What a strong answer covers
- Examples: data — keep a source-of-truth export and a rebuild pipeline rather than an opaque index; evaluation — own the datasets, rubrics, and raw results rather than relying on vendor dashboards and judges; API/model — an internal request contract with conformance tests; commercial — price scenarios and contractual exit terms.
- Tier 2 is a warm alternative: a second compatible route is regression-tested and can take selected traffic, whereas tier 1 only promises a rebuild within weeks. Choose from business impact, supplier concentration, regulatory need, and recovery objective — not ideology; higher tiers cost more and can suppress useful provider features.
- Semantics differ. Run conformance tests for tool arguments, structured output, token and context behaviour, safety filters, citations, streaming, errors, and rate limits, and keep a capability-degradation matrix so failover can disable unsupported features safely.
- Elapsed time, quality delta, manual steps, missing artifacts, and cost. A failed rehearsal produces remediation work so the exit plan is executable rather than a document.