Files
piik/docs/adr/0017-contracts-fixed-before-release.md
T

29 lines
1.4 KiB
Markdown

# ADR-0017: Contracts Fixed Before The First 3.0 Release
- Status: proposed
## Decision
The first public 3.0 contract remains open. Evaluate actual readers, writers
and stored fixtures under [versioning](../standards/versioning.md#extending-interfaces).
- Readers ignore unknown descriptive wire fields and notifications. Known
fields, types and bounds still apply. A constraint whose omission would widen
authority, lifetime, recipients or target uses a distinct request.
- Receivers refuse unknown requests as unsupported. An unknown reply ends only
its matching request with an unknown outcome. Observer notifications cannot
confirm a request.
- The major version changes when peers cease to be compatible. The minor version guides feature discovery.
- Stores and archives refuse content they cannot preserve before installing it.
- Storage upgrades preserve identity, saved authority and user data. Apply an
upgrade transactionally when the representation changes.
- Restoring history starts a new lineage. A normal restart preserves lineage
and read positions. The writer confirms history only after durable commit.
## References
- [HTTP extension rules](https://www.rfc-editor.org/rfc/rfc9110.html#section-2.5)
- [Protocol Buffers schema evolution](https://protobuf.dev/programming-guides/proto3/)
- [JSON-RPC request errors](https://www.jsonrpc.org/specification#error_object)
- [Clean-room design review](../research/clean-room-design-review.md)