A smart contract can execute a rule exactly as programmed and still produce an outcome the parties never intended. The reason is not always defective arithmetic. Words such as “delivered”, “approved”, “verified”, “complete”, “late” and “refund” can have multiple real-world meanings. If a system releases a payment when a computer receives the status “delivered”, it must still answer what counts as delivery, who supplied the information and what happens when the record is wrong. One changed definition can affect thousands of automated transactions. That is where Vocabulary Coding and Engineering crosses from human communication into executable rules.
A blockchain smart contract is software, not automatically a complete legal agreement. The Ethereum documentation describes smart contracts as programs running on the blockchain, while the United Nations Commission on International Trade Law’s 2024 Model Law on Automated Contracting addresses legal recognition of automated contracting more broadly. The UN instrument is a model for legislators, not a law automatically in force in every jurisdiction. This article explains how to translate terms into testable conditions, how outside information enters a program through an oracle, and how to preserve human review and legal safeguards without confusing technical execution with justice.
- Word zoom: “Delivered” can mean shipped, arrived at an address or received by a person.
- Sentence zoom: “May”, “must”, “unless” and “before” change obligations.
- Code zoom: A program needs conditions it can actually evaluate.
- Data zoom: An oracle supplies facts from outside a blockchain, which may be wrong.
- Contract zoom: Code execution and legal enforceability are different questions.
- Organisation zoom: Refunds, exceptions and disputes require explicit procedures.
- Civilisation zoom: Automated rules scale both consistency and mistakes.
The central example: when is a parcel “delivered”?
Imagine a fictional marketplace that automatically releases payment when a courier application marks a parcel as “delivered”. The parcel reaches the building lobby, but the customer reports never receiving it. The program has behaved according to its input. The customer and seller now disagree about whether delivery occurred. The dispute did not begin inside the cryptographic calculation; it began inside a vocabulary boundary.
A more complete requirement might identify the carrier, address, evidence, authorised recipient, permitted unattended delivery, exception cases, dispute window and correction process. These facts may be complicated and contested. Automation can help execute agreed rules, but the parties still need a process for reality not fitting the simplified label.
Zoom 1: the word becomes a condition
In ordinary conversation, people negotiate meaning as circumstances arise. In a program, a condition such as delivery_confirmed = true asks the system to choose a branch. It does not reveal who confirmed the delivery or whether the confirmation was accurate. Turning a word into a Boolean value compresses a large social process into one machine-readable state.
This can be appropriate when the relevant condition is narrow, observable and relatively uncontested. It is risky when the label hides multiple stages. A better model might distinguish dispatched, arrived at location, handover recorded, receipt disputed, validated and payment authorised. The extra states are not unnecessary complexity if the consequences differ.
Zoom 2: requirement words are not decorative
Software specifications often distinguish MUST, SHOULD and MAY when the document explicitly adopts a standard such as IETF RFC 2119. These terms express different levels of technical requirement. A contract’s legal interpretation, however, depends on applicable law and the whole agreement, not automatically on an IETF convention.
The analogy is still useful. “The vendor may provide an update” is different from “The vendor must provide an update by the specified date.” “Refund after verification” does not state who verifies, what evidence counts or when verification ends. An implementation should never invent these missing terms solely to make an instruction executable.
Zoom 3: a smart contract is code with defined state
On Ethereum, a smart contract consists of code and state deployed to a blockchain address. Users or other contracts submit transactions to invoke its functions under network rules. Such programs can manage assets or conditional interactions without an operator manually approving each routine action.
But that does not make the program omniscient. It can evaluate the information and functions available within its environment, not directly inspect an off-chain warehouse, hear a customer’s complaint or determine whether a legal obligation was met. The system boundary matters as much as the written rule.
Zoom 4: why a “smart contract” is not necessarily a legal contract
A legal agreement ordinarily involves questions such as assent, capacity, lawful purpose, obligations, interpretation and remedies under the applicable jurisdiction. A software program may implement some aspects of a legal arrangement, but it can also be deployed without fulfilling all conditions for an enforceable agreement. Calling a program a smart contract is a technical convention, not a legal certificate.
UNCITRAL’s Model Law on Automated Contracting addresses legal recognition of automation, including code and dynamic information in automated transactions. Its technology-neutral approach does not exempt participants from otherwise applicable law. A model law is also not automatically enacted legislation; readers need to check the rules of the relevant country.
Zoom 5: the oracle problem begins where the blockchain ends
The Ethereum oracle documentation explains that smart contracts cannot normally obtain information from off-chain sources directly. An oracle supplies external data, such as a reported event or measurement, to a contract. This extends useful automation but creates a new trust boundary: the source of that data may be incomplete, stale or manipulated.
In the parcel example, the oracle might relay the courier’s status. The contract can verify that the message came from the expected source without establishing that the parcel reached the intended person. This is a critical distinction between authentic transmission of a claim and truth of the claim. A signed false delivery report remains false.
Zoom 6: three layers of a machine-triggered claim
- Source claim: A party or sensor says an event occurred.
- Transport proof: An authenticated channel or signature shows who supplied the information and whether it changed in transit.
- Decision rule: A program treats the message as sufficient to release money, set status or trigger another action.
- Unresolved question: Does the reported event satisfy the real-world agreement and legal obligations?
A reliable design separates these layers so that the program does not silently turn “the courier marked this as delivered” into “the buyer unquestionably received it”. The two statements may often align, but their equivalence needs evidence and an agreed method.
Zoom 7: what happens when the source is wrong?
Oracles, APIs and human operators can make errors. A sensor can malfunction; a customer may contest a delivery; a service may be unavailable or delayed. The Ethereum smart-contract security guide describes oracle manipulation as a concern when inaccurate data drives automatic execution.
Better architecture may use multiple inputs, freshness requirements, staged confirmations, time limits, independent review and safe suspension processes. Which controls are appropriate depends on the transaction and risk. More data sources do not automatically guarantee truth if they repeat the same mistaken source.
Zoom 8: “approved” should name the approver
A workplace tool may use a status called approved. Does it mean the initial author clicked submit, a manager viewed the draft, finance authorised payment or a regulator issued formal permission? A single word can stand for very different powers. When code executes based on that status, the difference is material.
A sound definition names the authorised person or institution, specific action approved, evidence recorded, validity period and any revocation conditions. A technical signature helps prove that a key approved a message; the system must still establish that the key holder had authority for the relevant decision.
Zoom 9: refunds and exceptions are part of the contract
An arrangement that works only when everything goes as expected is not a complete public-facing workflow. A parcel can be damaged, an event can be cancelled, a payment can be duplicated or a participant may need to challenge an incorrect record. Vocabulary such as “refund”, “cancellation”, “force majeure”, “dispute” and “final” requires carefully scoped procedures.
Not every exception can be decided mechanically. A staged design may allow simple verified conditions to run automatically while referring contested circumstances to an agreed human or institutional process. This is not a defeat for automation. It is a recognition that reliable systems need exception handling and accountability.
Zoom 10: why “code is law” is not a safe literal rule
The slogan “code is law” expresses the practical force of software rules in certain environments. It does not mean computer code overrides statutes, court orders, consumer protections, contracts or rights. Bugs, coercion and unlawful provisions do not automatically become legitimate just because a system executes them.
In human society, software execution and legal effect are separate dimensions. A transaction may complete technically while leaving questions of liability or restitution. Conversely, legal duties may require action that a program cannot perform by itself. The UN automated-contracting model explicitly recognises that automation does not excuse failure to comply with other laws.
Zoom 11: immutable code can preserve a costly mistake
Deployed blockchain programs may be difficult to modify, although upgrade patterns and governance mechanisms can exist. Immutability can make agreed behaviour predictable, but it can also lock in an ambiguous definition, a defective threshold or a vulnerability. The costs of later correction may be substantial or contested.
That is why a design should include careful testing, audits, clear user disclosures and an appropriate method for handling emergencies and lawful changes. The question is not whether code should always be mutable or immutable; it is who has authority to change it, how changes are communicated and what participants originally agreed.
Zoom 12: version control of prose and code
A contract system has at least two relevant versions: the human-readable agreement and the software that carries out its rules. If one changes without the other, participants may be unable to tell which behaviour governs. The interface should preserve the source text, exact code version, parameters, effective dates, reviewed tests and any agreed update process.
The JSON Patch standard demonstrates the general software principle of recording structured changes as explicit operations. It is not a legal contract standard, but the idea of a machine-readable change history is useful. Human reviewers must still decide whether a software change respects the agreement’s meaning.
Zoom 13: ambiguity moves rather than disappears
An organisation may write “payment is released when the task is complete.” A programmer asks for a definition, and management replies “complete means 100% finished.” This adds a number without specifying the deliverable or validation method. The vague concept has been moved into the metric rather than resolved.
A useful operational definition describes observable evidence. “The agreed file was received, the required tests passed and the named reviewer approved release” is stronger. It should also say what happens when a test is disputed, the reviewer is unavailable or the requirements were themselves defective.
Zoom 14: who is accountable for automated decisions?
Several actors can contribute: the parties who drafted the agreement, developers who encoded it, the organisation that deployed it, external data providers and people who operate or supervise it. Their responsibilities depend on contracts, law and facts. A technical system should record those roles rather than presenting “the algorithm decided” as if it erased human agency.
An accountable workflow identifies who can investigate a claim, correct an input, suspend a harmful process, address a dispute and provide legally appropriate remedies. Automation can improve consistency, but consistency in applying a bad rule is still a problem.
Zoom 15: the civilisation-scale issue is automated institutional language
Imagine hospitals, delivery networks, governments and financial platforms all translating words into executable states. Common definitions can improve coordination and reduce error; ambiguous or exclusionary definitions can also propagate widely. A tiny change in “eligible”, “verified” or “complete” may alter access for large populations.
This is why vocabulary engineering belongs at the intersection of language, law, information systems and governance. Society needs not only code that runs, but people able to explain what the code means, why the categories were chosen and how affected parties can challenge mistakes.
A worked example: a safer automated delivery workflow
- Human agreement: Specify the product, responsible parties, delivery conditions and dispute route.
- Data definition: Separate shipped, arrived, received and acceptance confirmed.
- Evidence: Identify permissible delivery records and their known limitations.
- Automation: Release payment only under the agreed validated condition.
- Exception: Allow an appropriate challenge and review before irreversible consequences where feasible.
- Audit: Preserve the version, decision source, timestamps and corrections without exposing unnecessary personal data.
A ten-field vocabulary-to-code card
- Term: Delivered, approved, complete, late or another rule word.
- Plain meaning: What do the parties believe it means?
- Legal scope: Which agreement and jurisdiction govern it?
- Machine condition: What input and test cause a state change?
- Source: Who or what supplies the input?
- Authenticity: How is the message source verified?
- Correctness: How is the underlying real-world event assessed?
- Exceptions: What cases need dispute resolution or human review?
- Consequences: What moves, releases, stops or becomes irrevocable?
- Version and remedy: Who may change the rule and address errors?
Frequently asked questions
Is every smart contract a legally enforceable agreement?
No. A smart contract is a technical term for code in platforms such as Ethereum. Whether an automated arrangement has legal effect depends on applicable law, facts and the agreement. UNCITRAL provides a model legal framework, not a universal enactment.
Can a blockchain contract verify that a parcel arrived?
It can act on information supplied to it, often through an external data source or oracle. The correctness of the real-world report requires separate evidence and governance.
Does an immutable contract guarantee fairness?
No. It may preserve an unfair, badly specified or defective rule. Fairness, legal compliance and remedies require analysis beyond whether execution was technically consistent.
Would a normal database work instead?
Often yes. A conventional audited workflow may provide appropriate reliability and better correction mechanisms. Distributed ledgers are most useful when they solve a real shared-trust problem, not as a default solution for every contract.
Conclusion: executable wording must remain answerable to reality
A human agreement is a set of commitments; a machine rule is a set of tests and consequences. Connecting them demands more than translating nouns into variables. It requires clear boundaries, trustworthy evidence, appropriate legal interpretation, exception handling and correction. At the word zoom, “delivered” may mean several things. At the code zoom, one meaning triggers payment. At the institutional zoom, a mistaken classification may affect many people. Vocabulary coding and engineering keeps those scales connected so automation does not turn a convenient label into unquestionable authority.
Sources and further reading
- Ethereum: Introduction to smart contracts
- Ethereum: Oracles and off-chain data
- Ethereum: Smart contract security and oracle risk
- UNCITRAL: Model Law on Automated Contracting (2024)
- IETF RFC 2119: Technical requirement words
- RFC 6902: Structured patch operations
- Vocabulary Coding and Engineering: Immutable definitions and ledgers
- Vocabulary Coding and Engineering: Semantic spine and intent
Editorial scope: All contract scenarios are fictional. This article is educational and not legal, financial or software-security advice. No smart contract or payment design should be deployed from this description without expert legal review, security testing and appropriate safeguards.
