← All posts

AI interoperability starts with your architecture

A joint statement highlighted by Simon Willison puts AI interoperability back on the table. For practitioners, the real issue is architectural: reduce provider coupling, standardize evals, and keep safety and observability under your control.

Model interoperability is moving from research debate into system design. For teams building AI products, this matters less as a policy story and more as an architecture problem. If model providers support shared interfaces, common eval formats, and portable safety controls, your stack gets easier to test, swap, and govern.

Simon Willison points to a joint statement from OpenAI and Anthropic on this theme. The useful part for practitioners is simple: major model vendors are signaling support for more interoperable AI systems. You should treat that as a prompt to inspect your own assumptions. Many teams still build as if one model, one SDK, and one provider policy will hold for years.

That approach ages badly. Model behavior shifts. APIs change. Safety features differ across vendors. Procurement changes your approved stack. If your product depends on one provider’s message format, tool schema, or guardrail quirks, migration turns into incident response. Better architecture starts with portability as a first-class requirement.

Inspect your provider coupling first

Most AI lock-in hides in small choices. The model call itself is rarely the hard part. The real coupling sits in prompt structure, tool calling, retry logic, safety filters, and output parsing.

Start with a short inventory:

  • Request format, roles, content blocks, and attachment handling
  • Tool invocation schema and function argument validation
  • Streaming event format and partial-output handling
  • System prompt conventions and hidden policy instructions
  • Safety settings, refusal handling, and moderation endpoints
  • Token accounting, truncation rules, and context-window assumptions
  • Error codes, rate-limit headers, and backoff behavior

If you find provider-specific logic scattered through application code, pull it behind an adapter. Keep your business logic unaware of vendor message structure. Your application should ask for a capability, not for one brand’s exact request shape.

A practical test helps. Pick one workflow, such as support ticket triage or document extraction. Swap the model provider under a stable internal interface. Count what breaks. In many teams, the failures are not in generation quality first. They appear in JSON parsing, tool call mismatch, prompt assumptions, or safety edge cases.

This is where engineering discipline beats vendor optimism. A model abstraction layer is useful only if it captures the parts that differ in practice.

Standardize on behavior, not on API names

Interoperability often gets reduced to wrapper libraries. That is too shallow. Two APIs with similar method names still behave differently under load, during long outputs, or when tool calls fail midway.

Your standard should focus on observable behavior.

Define contract tests for each use case:

  • Output format validity rate
  • Tool call precision and argument completeness
  • Refusal rate for allowed tasks
  • Hallucination rate on seeded factual checks
  • Latency percentiles under realistic concurrency
  • Recovery after malformed tool results
  • Stability across model version changes

Run the same test corpus across vendors. Store prompts, model settings, outputs, and judge results in a common format. If you lack this layer, provider comparison becomes anecdotal and political.

For structured generation, validate against schemas outside the model client. Never assume one vendor’s JSON mode means another vendor will fail the same way. Some models emit near-valid JSON with trailing text. Some stop mid-object during streaming. Some retry into a refusal state after a tool error.

A small harness in Go works well here. Keep it plain. One package for provider adapters. One package for evaluation runners. One package for result storage. Treat models like unreliable distributed systems components, because in production they are.

Separate safety policy from vendor safety features

The joint statement angle matters here because shared standards often focus on safety and governance as much as on transport. That is useful, but you should not outsource your entire policy layer to provider defaults.

Vendor safeguards differ in taxonomy, thresholding, and enforcement style. One model might refuse a request. Another might answer with heavy redaction. A third might pass the request and leave downstream systems to deal with the result.

Build a policy layer you control:

  • Classify incoming tasks before model dispatch
  • Route risky tasks to narrower flows or human review
  • Scan model outputs for policy violations before release
  • Log policy decisions with versioned rules
  • Keep an override and appeal path for false positives

This design gives you two benefits. First, it reduces migration pain. Second, it gives your compliance and security teams a stable control plane even when models change.

Prompt injection belongs in this same discussion. Interoperability increases the number of model and tool combinations in your system. That increases variation in failure modes. A tool-using model with weak instruction hierarchy is a different risk surface from a pure text model. Test both the model and the orchestration layer. Prompt-Injection & System-Prompt-Leak Tester fits this kind of pre-release check.

The mistake teams make is assuming provider alignment work and provider safety tooling are the same thing as application security. They are not.

Treat prompts and tools as portable assets

If you want true multi-model systems, prompts need version control and tool definitions need discipline. Ad hoc prompt strings buried in handlers make portability expensive.

Move prompts into managed assets with:

  • Explicit purpose and owner
  • Version history
  • Expected inputs and outputs
  • Known failure cases
  • Linked eval sets
  • Provider-specific overrides, only where needed

Do the same for tools. Define each tool once with clear argument schemas and result contracts. Then map that definition into each provider’s tool-calling format. Keep the provider mapping thin.

This is where many stacks go wrong. Teams think they have one tool because it hits one internal endpoint. In practice they have three versions of the same tool description, tuned for three model families, with drift in required fields and examples. That drift becomes silent reliability loss.

Portability also depends on data formatting. If one model performs well only with XML wrappers and another with compact JSON instructions, document it as a provider override, not as the core prompt. Your baseline prompt should express task intent in a neutral form.

When you review a prompt repository, look for these warning signs:

  • Prompts refer to one vendor by name
  • Safety instructions rely on undocumented provider behavior
  • Tool examples include provider-specific message tokens
  • Output parsers assume one refusal phrase or stop sequence
  • Evaluation data exists for one model family only

Those signals point to migration cost hiding in plain sight.

Plan for observability across mixed-model systems

Interoperable systems fail in mixed ways. One provider times out. Another streams malformed tool arguments. A third returns shorter answers after a version update. Without shared telemetry, you will blame the wrong layer.

Instrument every model interaction with a common event schema:

  • Request ID and user workflow
  • Provider and model version
  • Prompt template version
  • Tool set used
  • Input and output token counts
  • Latency, retries, and timeout path
  • Safety decisions at each stage
  • Parse success, schema validation, and downstream task outcome

Avoid dashboards built around one vendor’s metrics vocabulary. Keep your own canonical fields, then translate provider data into them.

Pay attention to model drift. Even when an endpoint name stays fixed, output style and refusal behavior shift over time. Schedule recurring regression runs against your golden tasks. If you do not measure monthly or weekly, you will detect drift through customer complaints.

A related design choice matters. Decide early whether routing logic sits above the providers or inside one orchestration framework. Central routing gives you clearer observability and governance. Framework-heavy routing speeds prototypes but often hides decision logic in callbacks and plugin layers.

For Go teams, this is a good fit for explicit interfaces and narrow structs. Keep provider adapters boring. Keep trace data structured. Resist reflection-heavy abstractions unless they save clear maintenance cost.

What to watch next

The next useful signal is not another joint statement. It is whether shared formats appear for tool calling, eval exchange, safety event logging, and model capability discovery. Those pieces matter more than headline support for interoperability.

For your own stack, the near-term work is clear. Measure your provider coupling. Build contract tests. Own your safety layer. Version prompts and tools as assets. If large model vendors move toward common standards, teams with this groundwork will switch faster, compare models more fairly, and spend less time untangling hidden dependencies.