Postel's Law
The robustness principle: be conservative in what you do, be liberal in what you accept from others. A design guideline for interoperable systems that is now seen as a trade-off, not an absolute rule.
Also known as: Robustness Principle, Postel's Robustness Principle, Postel's Principle, Be Conservative in What You Do, Be Liberal in What You Accept
Category: Principles
Tags: principles, software-design, interfaces, reliability, best-practices, interoperability, networking, compatibility
Explanation
Postel's Law, also known as the robustness principle, comes from internet pioneer Jon Postel. He wrote it into the 1980 specification of the Transmission Control Protocol (RFC 761): "be conservative in what you do, be liberal in what you accept from others". A later version (RFC 1122) reads: "be liberal in what you accept, and conservative in what you send". The idea is that systems work together more reliably when each one emits strictly correct output and tolerates small imperfections in the input it receives.
**Why it worked**:
The early internet was a mix of independent implementations, written by different people from specifications that weren't always precise. By accepting slightly malformed or non-standard messages instead of rejecting them, implementations could talk to each other even when peers had bugs or read the specification differently. That tolerance let a varied, fast-changing network keep running without every participant being perfectly compliant.
**The criticism**:
Liberal acceptance has a long-term cost. Senders never find out about their mistakes, because everything still works. Other senders copy them. After a while, every receiver has to accept the faulty input, because too much depends on it. The mistake has become a de facto standard, and the specification no longer describes reality (see Hyrum's Law and Bug Compatibility). The consequences:
- **Protocol decay**: Every new implementation has to reverse-engineer what the others tolerate
- **Security holes**: Two lenient parsers that guess differently about the same input create a parser differential, which attackers exploit
- **A bigger attack surface**: Each tolerated variation is more code that handles untrusted input
- **Ossification**: Tolerated deviations become things that nobody can change anymore
The IETF itself published this critique in RFC 9413, "Maintaining Robust Protocols". The language-theoretic security community proposed a patch: be definite about what you accept.
**The modern reading**:
- **Stay conservative in what you send**. Nobody disputes this half
- **Tolerate what is well-defined**: Ignoring unknown fields and extensions is healthy, because every implementation can do it the same way (see Tolerant Reader and Forward Compatibility)
- **Reject what is malformed**, clearly and early, above all at security boundaries (see Input Validation and Fail Fast)
- **Specify the error handling**, so all implementations react in the same way. HTML5 did this
- **Fix the source**: When you tolerate a deviation, report it too, so it doesn't spread
- **Start strict**: You can loosen a rule later. You can almost never tighten it
**Beyond software**:
People also use the principle as a rule for communication: express yourself carefully, and read others generously. It's close to the principle of charity.
Understanding both the appeal and the pitfalls of the robustness principle helps you decide when tolerance helps adoption and when rigor serves reliability better.
Related Concepts
← Back to all concepts