# Service Contract

Record: `arch:service-contract`
Kind: constraint
Layer: [Contracts Core](https://banes-lab.com/records/layer/contracts-core.md)
Severity: mandatory
Scope: service, integration
Canonical: https://banes-lab.com/ontology#arch-service-contract

## Repair

- Refactored by: Add Consumer Contract, Define SLA, Version Service
- Detected by: consumer failures after service changes
- Violated by: undocumented side effects, unstable service behavior
- Measured by: consumer contract pass rate
- Enforced by: contract tests, deployment gates

## requires

- [API Contract](https://banes-lab.com/records/arch/api-contract.md)
- [Semantic Contract](https://banes-lab.com/records/lex/semantic-contract.md)

## reinforces

- [Service Autonomy](https://banes-lab.com/records/arch/service-autonomy.md)
- [Compatibility](https://banes-lab.com/records/lex/compatibility.md)

## enables

- [Independent Deployment](https://banes-lab.com/records/lex/independent-deployment.md)

## conflicts-with

- [Hidden Service Coupling](https://banes-lab.com/records/lex/hidden-service-coupling.md)

## tensions-with

- [Distributed Evolution](https://banes-lab.com/records/lex/distributed-evolution.md)

## tensions

- [Service Contract Distributed Evolution](https://banes-lab.com/records/tension/distributed-evolution-service-contract.md)

## referenced-by

- [Service-Oriented Architecture](https://banes-lab.com/records/arch/service-oriented-architecture.md)
