Maintain explicit service and API contracts
Publish and version interface contracts, state compatibility expectations, and keep them true to the running service.
Focused review of service architecture (REL3) only. This is not a Reliability pillar review. Availability and recovery targets, change management, failure management and disaster recovery are outside this review, so nothing here should be read as a view on them.
Reference model, not an assessment. No evidence from your organisation has been reviewed, and nothing here is saved.
Outcome and responsibility
Every interface a consumer depends on has a published contract, so services can change independently without surprising each other.
Publish and version interface contracts, state compatibility expectations, and keep them true to the running service.
Who should own this
Reference accountability mapping
Named as capabilities, not as job titles that must exist in your structure.
Accountable
Answers for the outcome, even when others do the work.
Responsible
Runs the activity and keeps the evidence current.
Contributes
Supplies input, review or challenge.
In a large enterprise
- Contracts are published in a shared catalogue with versioning and deprecation policy.
- Contract tests run in the delivery pipeline.
In a small organisation
- A schema file kept beside the code, with a note on what breaks compatibility, is proportionate.
These are reference patterns. No specialist job title has to exist: what matters is that the capability is named and someone answers for it.
Execution
What is actually done, and by whom
Published responsibilities from the practices behind this group.
- responsible
Define and manage the API contract and compatibility strategy
Ensure the contract represents intended business/consumer behaviour and manage its version lifecycle.
- responsible
Implement the service in conformance with the contract
Maintain the technical definition and avoid consumer-visible breaking changes outside the agreed lifecycle.
- responsible
Verify contract conformance and compatibility
Test producer/consumer behaviour, schemas and backward-compatibility expectations.
- consulted
Support safe deployment and automated contract checks
Integrate relevant verification into delivery workflows and support rollback or release controls.
- consulted
Keep consumer-facing API documentation understandable and current
Maintain clear documentation alongside contract versions and changes.
Typically: Technical Writer
Decision rights and risk acceptance
Who decides, and who may accept the risk
Guide interpretation — proposed by the Well-Architected Guide, not taken from the AWS framework.
Decision rights
- The producing team would normally own the contract and its versioning policy.
- Making a breaking change would normally require consumer agreement, not just producer sign-off.
Risk acceptance
Shipping an undocumented or breaking interface change would commonly be a risk for the appropriate service/business risk owner to accept explicitly, with a stated remediation date.
Evidence expected
What evidence should exist, and what good looks like
Records published in the evidence library. Nothing from your organisation has been reviewed.
- EVD-ARCH-008Core
API / Service Contract
Demonstrate that producers and consumers have an explicit shared interface definition that supports independent change without relying on undocumented implementation assumptions or accidental compatibility.
Must contain
- Contract identity, service/API name, owner and current version/status
- Intended consumers, scope and interface purpose
- Operations, endpoints, events or callable behaviours in scope
- Request/input schemas, constraints and required/optional fields
- Response/output schemas and semantic meaning
- Expected behaviour, state changes and material side effects
- Error model, error codes/conditions and retry expectations where relevant
- Authentication/authorisation and trust expectations where they form part of the interface
- Compatibility and versioning policy
- Deprecation, migration and support-window expectations
- Material reliability, timeout, idempotency or rate/usage expectations where consumers depend on them
- Machine-readable contract/specification where appropriate
- Verification or contract-test approach
- Change history and communication expectations for consumers
What good looks like
- The contract describes observable behaviour rather than internal implementation details
- Schemas and semantics are precise enough for consumers to integrate without undocumented assumptions
- Errors and exceptional behaviour are documented rather than only the happy path
- Compatibility/versioning rules make clear which changes are breaking and how they are introduced
- The contract is version controlled and can be traced to the currently supported interface
- Machine-readable specifications are used where they improve verification or client/tool interoperability
- Automated contract or compatibility checks verify that implementations match the declared interface where practical
- Consumer-impacting changes have a defined communication, migration and deprecation path
- Ownership is clear for resolving ambiguity and coordinating changes
Not good enough
- Documentation generated from implementation but never reviewed as a producer-consumer contract
- Only endpoint names are documented while schemas, semantics and errors remain implicit
- Breaking changes are released under the same contract/version with no migration path
- The contract embeds unnecessary implementation internals that prevent independent evolution
- Versioning exists in the URL or metadata but no compatibility policy defines what versions mean
- Consumers rely on behaviours not represented in the contract
- Contract tests validate examples only and miss meaningful compatibility or schema changes
- The published contract is stale compared with the deployed interface
- No named owner or change path exists when producers and consumers disagree about expected behaviour
- Produced by:
- Service Owner,Software Engineer
- Reviewed by:
- Quality Assurance / Test,DevOps Engineer
- Review:
- Review whenever the interface, schemas, behaviour, compatibility policy or lifecycle materially changes, and keep the current contract version aligned with the deployed/supported interface.
- Expected by:
- REL03-BP03
Challenge and assurance
Questions that test whether this is real
Ask these in the room
- What consumer-visible behaviour do integrations rely on that is not represented in the current contract?
- Which changes are considered breaking, and how would a producer know before release?
- What evidence demonstrates that the deployed implementation still conforms to the published contract?
- How are affected consumers identified and supported when a contract version is deprecated?
- What behaviour do consumers rely on that is not explicitly represented in the contract?
- How do we prove that the deployed implementation still conforms to the published contract?
- Are errors, retries, timeouts and other failure behaviours clear enough for consumers to build resilient integrations?
- How are consumers identified and notified when a version is deprecated or compatibility changes?
- Which parts of the contract are truly consumer-visible obligations and which are unnecessary implementation detail?
Measurements published for these practices
- Percentage of material service APIs with a current versioned contract and named owner.
- Percentage of contract changes assessed for compatibility before release.
- Percentage of material API contracts with automated conformance or compatibility verification.
- Number and age of consumers remaining on versions scheduled for deprecation.
- Number of production integration incidents attributable to undocumented or broken contract behaviour.
Cadence and escalation
When this is exercised, and where it goes when it fails
Guide interpretation — proposed by the Well-Architected Guide, not taken from the AWS framework.
Cadence or trigger
On every interface change, and reconfirmed at each review checkpoint.
Escalation
- A breaking change released without consumer notice would be raised with the service owner and the affected consumers.
- Contracts that drift from the running service would be escalated as a release-quality issue.
Framework traceability
The AWS practices behind this responsibility
Secondary detail: useful for auditors and architects, not needed to act.
- REL03-BP03REL3
Provide service contracts per API
An API or service boundary is safer to evolve when producers and consumers share an explicit, versioned contract for observable behaviour. The contract should be precise enough to support independent development, automated verification and controlled compatibility changes without exposing unnecessary implementation detail.
Reviewer lens
Who produces this evidence, and who challenges it
A review works when the producer and the challenger are not the same person.
Produced or owned by
Reviewed or consumed by
Suggested challenger for this review
Guide interpretation — proposed by the Well-Architected Guide, not taken from the AWS framework.
What should trigger a review
- A new or changed external interface.
- A consumer onboarding onto an existing service.
- An incident caused by an unexpected interface change.
Signs the evidence is thin
- A contract written once at launch and never updated.
- No version or compatibility statement.
- No automated check that the running service matches the published contract.
- Documentation generated from implementation but never reviewed as a producer-consumer contract
- Only endpoint names are documented while schemas, semantics and errors remain implicit
- Breaking changes are released under the same contract/version with no migration path
- The contract embeds unnecessary implementation internals that prevent independent evolution
- Versioning exists in the URL or metadata but no compatibility policy defines what versions mean
Triggers are guide interpretation. Thin-evidence signs combine that interpretation with the anti-patterns published on the evidence records.