Dev.to AI 🤖 Ai 👁 0 📖 7 min read

Explain it like a maintenance manual

Originally published on hayatibis.dev, where the figure is interactive. For years, when I wanted to understand how a service works, I drew a sequence diagram. The actors and the services stand in a row from left to righ

Explain it like a maintenance manual

Originally published on hayatibis.dev, where the figure is interactive.

For years, when I wanted to understand how a service works, I drew a sequence diagram. The actors and the services stand in a row from left to right, and the arrows run between them from top to bottom, in the order things happen. I’m very used to them. Lately, though, my habits have been changing.

In October Andrej Karpathy posted a few tips on reading what language models produce. He opens with: “We’ll be spending a lot more time trying to understand the outputs of language models.” His first tip is about writing:

Ask your LLM to explain something in ASD-STE100, it’s a controlled language specification originally developed for aerospace maintenance documentation. LLMs well-versed in this language and it comes with heavy constraints on clean writing style that I often find a lot more readable.

So I tried it on the transaction flows of the services I work with.

It made those flows easier to understand: in the services I wrote and know, and in the ones I don’t know yet and am about to contribute to.

That second kind matters more every month. More and more of the code is written by agents, and then we sit in front of it and ask how it actually works. Karpathy’s summary at the end of the post says it: “a lot more of our work will rise up the abstractions into oversight and understanding.” A language made so that a mechanic doesn’t misread a line turns out to suit that moment well.

A language for people who mustn’t misread

The specification describes itself in one line: ASD-STE100 Simplified Technical English “is a controlled natural language and an international standard to write technical documentation.” The name reads in three parts. ASD is the association that keeps it, STE stands for Simplified Technical English, and the 100 is a nod to an older specification.[1]

Its reason is in the introduction. English is the language of the aerospace industry, “however, it is not often the native language of the readers of technical documentation.” And “the large number of meanings and synonyms that many English words have, and a complex sentence structure, can cause confusion.” In aerospace you have to read maintenance documents correctly “to make sure that systems operate safely and correctly and to protect human lives.”

In the late 1970s the Association of European Airlines asked AECMA, the European Association of Aerospace Industries and today’s ASD, to look into how readable maintenance documents were. The working group was founded in Amsterdam on 30 June 1983, the first guide came out in 1986, and in 2005 it became ASD-STE100.[2] The current one is Issue 9, from 15 January 2025, released as a standard, and it’s free for anyone.

It has two parts: 53 writing rules in nine sections, and a dictionary of 875 approved words. The dictionary also lists 1,274 words that aren’t approved, each with one or more approved alternatives. “In general, each word has only one meaning and is approved with only one part of speech.” “Close” is approved as a verb: close the valve. The adjective isn’t; for it the dictionary gives NEAR: “DO NOT USE SOLVENTS NEAR FLAMES OR SPARKS.” Synonyms go too: STE uses “start” instead of “begin,” “commence,” “initiate,” or “originate.” Plenty of variable names out there could use that rule.

The writing rules are just as strict. A sentence in a procedure has at most 20 words, a descriptive sentence 25, and no paragraph has more than six sentences. One instruction goes in one sentence, in the command form, and in the active voice. A safety instruction starts with a clear command and then gives the risk: a warning when there is “a risk of injury or death”, a caution when there is “a risk of damage to objects”.

The same handshake, twice

To show the difference I’ll use something public and small, the TCP three-way handshake, from RFC 9293. It’s on the RFC map I wrote about in The graph I fell into. The RFC draws it the way we all learned it: Peer A sends a SYN, Peer B answers with a SYN,ACK, Peer A sends an ACK, and both sides are ESTABLISHED. Here it is as a sequence diagram, and as a model explaining it in STE:

Illustrative. The basic handshake from RFC 9293, Figure 6, told twice. The STE text was written for this essay by Opus 5.5, asked to follow the ASD-STE100 rules; it wasn’t checked word by word against the STE dictionary.

The same handshake as an STE procedure (on the site, a button switches between the two):

TASK:          OPEN A TCP CONNECTION
APPLICABILITY: PEER A, PEER B
REFERENCE:     RFC 9293, 3.5

Two TCP peers do this procedure before they send data. Peer A starts the
procedure. Peer B waits for a connection.

1. Peer A: Send a SYN segment to peer B. Use sequence number 100.
2. Peer B: Send a SYN,ACK segment to peer A. Use sequence number 300.
   Set the ACK number to 101.
   NOTE: ACK number 101 tells peer A that peer B received the SYN with
   sequence number 100.
3. Peer A: Send an ACK segment to peer B. Use sequence number 101.
   Set the ACK number to 301.
4. Peer A: Start to send data.

CAUTION: Do not give data to the user before the connection is ESTABLISHED.
A SYN segment from a previous connection can stay in the network and get to
peer B after a long time.

NOTE: The ACK segment does not increase the sequence number. Thus, the first
data segment also has sequence number 101.

Illustrative. The basic handshake from RFC 9293, Figure 6, told twice. The STE text was written for this essay by Opus 5.5, asked to follow the ASD-STE100 rules; it wasn’t checked word by word against the STE dictionary. (interactive version)

The sequence diagram shows who sends what, and in what order. That’s a lot, and it’s why I’ve drawn them for years. The STE text tells the same order and adds the things a diagram leaves to the reader: what ACK 101 means, and what to be careful about. That caution isn’t something the model made up, either. The RFC itself says why the handshake exists: “The principal reason for the three-way handshake is to prevent old duplicate connection initiations from causing confusion.” It also lets a receiver hold data “until the connection reaches the ESTABLISHED state”. In a diagram that sentence usually stays outside the picture, and in STE it gets its own box.

STE doesn’t take the picture away, though. The specification says so itself: “STE regulates the way to express the content. It does not regulate formatting.” The boxes and arrows stay, and STE makes the words in and around them clear. That’s why the task card in the figure carries the diagram’s arrow beside each step. For people who understand a flow by seeing it, the two together work better: the picture shows the order, and the STE text says exactly what each arrow means.

At work we create artifacts for many things, to find a process or to understand it, and I ask for the flows of our services the same way. What comes back is short sentences, each with one meaning, and very easy to read.

I tried all of this with Opus 5.5. Another model may write it differently, and even the same model rarely writes the same text twice. The rules don’t change, though, and they’re what make it readable. My habits are changing: I like this method, I use it often now, and I recommend it.

In Turkish

STE is written for English. I asked for Turkish anyway, and the Turkish came out readable too.

So why English at all? Because the dictionary is a list of English words, spelled “as defined in the Merriam-Webster’s dictionary”, and some rules are about English grammar itself: when to use “the, a, an”, where the “-ing” form is allowed. The specification even says that writing it correctly takes “a high level of fluency in English”. What carries over to another language are the ideas under the rules: one word, one meaning; a short sentence; one instruction per sentence; who does what, said plainly. A Turkish text written that way isn’t STE, really, but it reads the way STE reads.

And translation was never far from STE’s mind. “One of the primary objectives of STE is to make translation easier,” the introduction says, and it names who that helps: “translators, neural machine translation engines, and Large Language Models (LLM)”. The Turkish page of this essay shows the same handshake in Turkish as a third view in the figure.

Back to the arrows

Karpathy’s post goes on from writing to diagrams, then to web pages, then to explainer videos, each one “even better” than the last. I’ve drawn diagrams for years, and this time a language from aircraft manuals made the words around them clear.

What would your last design doc look like in STE? :)

Specs referenced

Stands on

Notes

  1. ASD is the Aerospace, Security and Defence Industries Association of Europe. Inside it, the Simplified Technical English Maintenance Group (STEMG) “is responsible for the development, production, publication, maintenance, and management of ASD-STE100.”
  2. That’s where the 100 comes from. In 1987 the Air Transport Association of America made writing in STE a requirement of its ATA100 specification, “thus, the current name ASD-STE100 was assigned as a tribute to the name of the ATA100 specification.”

A new essay every Sunday: get it by email. If you'd like more of these, you can support the writing on Patreon, or buy me a coffee once.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.