Written on 8 October 2026. Updated 5 November 2026, with the lessons of that day at the end.

Optra Studio makes an animated series with no crew. A script goes in; the studio boards it into shots, draws every still, animates every clip, voices every line in two languages and cuts the episode. For most of the time these lessons cover, a vision model also checked all of it, frame by frame, and the checks were the approval; we have since switched those checks off, and every shot now goes to a person’s review (the newest lessons say why). Generation runs on our own GPUs, and the studio’s software is written and run by a team of AI agents (how we build the studio with its agents is its own post).

The hard thing about a system like this is not that it fails. It is that it fails quietly. Every stage reports success. A count says every still is complete. A cut is made, and made again. A model answers in exactly the format it was asked for. Each failure below passed every number we had at the time, and was found by someone looking at the thing itself.

We write every lesson down the day it happens. Since the studio began on 22 September we have written 4,759 of them, up to 233 in a single day, out of 5,318 in the project’s memory. Most are the same few mistakes made in new places. Here are fourteen, each with the number that exposed it, the mechanism, and the change after which the same mistake cannot ship again, at any size, in a production that does not exist yet. That last part is the rule we hold ourselves to: a bug is closed when the structure cannot ship it again, not when it stops happening, and where part of that change is not built yet, we say so. The first two were found in the production pipeline the studio was built out of, in its first days; the rest in the studio itself.

A bar chart of 45 days from 22 September to 5 November. 4,759 memories in all; the busiest day holds 233. 903 name no date and are not drawn.

The assumption behind most of them

Read the fourteen together and most share one assumption: that what a stage reports is what ships. A file exists, so it is current. A step is waiting, so it is progressing. A model was told a rule, so it keeps it. A setting says three, so it is three. The fixes share a shape too: stop asking whether a thing is there, and ask whether it is still made from what it should be.

Where the lessons fell says the same thing. The memory store files every lesson under a topic when it is written. Of the 4,759 lessons since the studio began, 1,702 are about process and tooling and 988 about the checks; 121 are about the pictures and 95 about the video clips. What failed was rarely a model. It was the plumbing between the models, and the checks we trusted to watch it.

A horizontal bar chart of 13 topics over 4,759 lessons. The largest is Process and tooling with 1,702, then QA checks with 988; the smallest is Other with 7.

1. A copy that never followed its source

Before a clip is rendered, each shot’s voice track is copied into the renderer’s input folder, padded to the clip’s length. The copy step handed back any file that already had the right name. The episode’s copies were made on 19 September and still held the previous draft’s words on 24 September, five days later. The voice tracks had been rebuilt and were correct; nobody heard them, because the renderer reads the copy. So the first repair, rebuilding the voices, changed nothing a viewer hears, and the second, re-rendering 62 clips, came back saying the identical wrong sentences.

Mechanism: a derived file named only by what it is for (this shot’s voice) is found and reused whatever it was made from. Fix: every derived input is now named by a hash of its source and settings, so a changed source gets a new file and the old one is never found. And a property every pipeline must answer for, implemented or exempt in writing: derived inputs match their source.

2. A re-board that kept the old pictures under the new numbers

An episode was re-boarded from scratch, every scene rewritten, and the studio then reported 582 of 582 stills complete. On disk there were 584 stills, 420 of them drawn two days before the new board existed, and 0 of the 194 new shot numbers had kept their old prompt. 288 of 375 voice files were stale the same way. Both stages said success throughout.

Mechanism: stills and voices were named by shot number, and a stage skipped any shot whose file existed. A re-board renumbers everything, so every old file matched a new name. Fix: a still’s name now carries a hash of the words, the reference pictures and the model it was drawn with, so a picture is current only against the shot it was made for. The vision check had flagged 77 of 193 shots as not matching their words, and 40% reads exactly like a broken gate. It was the gate correctly seeing pictures of other shots: a high flag rate is a reason to look, not a reason to override.

3. A freshness check that compared two lists

One morning an episode was cut 104 times, about every five minutes from 06:56 to 15:07: 8 hours and 11 minutes of whole, correct cuts, each thrown away after all 287 clips had been rendered and read. Nothing alarmed: the cut stage was running every cycle, so the stall watch saw progress.

Mechanism: the check asking whether the cut was current compared the list of background beds the cut laid with the list the editor picked. Those differ for good when a scene returns (its bed is laid twice) or a picked bed is silent. The cut could never be current, so the scheduler offered it again, forever. Fix: compare by key, at the grain of what is held: each scene of the cut says which bed it chose, and the check asks each scene. Two lists are only comparable if both are made the same way.

4. A wait that nothing could end

Six episodes were given new script versions in the small hours and froze for 7.5 hours. The page showed them as work in progress; the stall watch, which counts a stated wait as not stalled, said nothing. The agent running production found it by noticing that counts stood still.

Mechanism: a new script marks the episode as waiting for a re-board of the scenes it changed. That re-board had not been switched on yet; the full re-board refused while a script was pending; nothing could end the wait. Fix: the step that ends that wait was built: a new script is re-boarded in exactly the scenes it changed. And a wait on anything the engine cannot do yet now says so in its own words, that the studio has it to build and the project has nothing to fix, so the page and the stall watch can tell it from a wait on work. The question we now ask of every step’s condition: read it out loud and ask who changes it. If the answer is this step, or something waiting on it, it will deadlock.

5. Holding every shot for the slowest one

One episode had 226 shots passed by the QA and 0 of 399 clips made, because nothing was drawn until every shot had passed, and 30 shots were still being rewritten. Most of the render cards sat idle, across every episode at once.

Mechanism: a board-wide gate is the safe-sounding choice, and it ties every shot’s progress to the slowest shot’s rewrite loop. Fix: because job names are keyed to each shot’s own content, a passed shot’s still and clip are the same whatever its neighbours become, so a shot is drawn and animated the moment its own verdict passes. What reads every shot together, the cut and the full QA, still waits for all of them.

6. Stages that said nothing when they worked

A stage that adds new story to an episode ran and ended in the same minute with no word on the page. A run that took in eight scenes, a refusal, and “nothing left to do” all read the same. When we counted, 15 of the 25 stages the scheduler can start said nothing on success.

Fix: every stage ends with one outcome line (what it took in, what it refused and why, or that there was nothing to do), and the page shows the last one. A stage that does not is on a named list, with its reason, that a test only lets shrink.

7. A fix for one symptom that made the next

Narration was missing from the cut, so we let a narration cue set its own shot’s length. The words came back, and eight cues of 19-44 words each now held one picture for 9-17 seconds, on shots boarded at 3-5 seconds: a near-freeze, because the clip that carries narration moves only a mouth.

Mechanism: nothing asked whether a shot’s length came from its picture or from a voice laid over it. The fix for “the cue is missing” created “the picture stands still”, and both passed every check. Fix: a voice laid over a picture never stretches it more than one second past its boarded length. The cue spans the next pictures, or the board gives it pictures of its own, or it is refused as a finding before anything is drawn.

8. The model does what it can, not what the words say

Speaking shots are animated by a lip-sync model (Wan 2.2 S2V). It moves the mouth and small turns of the head. Watching the first finished episode, every beat whose meaning was a body movement had not happened: people stood where the story said they walk, sit down, run, look away, pour or tip a bowl.

Fix: a check now counts a movement only in a clip that can perform it, so a movement written into a lip-sync shot’s words is never counted as seen: it would be reading something that never ships. A project can send its wordless shots to a motion model instead; that is switched on project by project, not yet for every production.

9. The image model draws every noun

A prop’s description said a small cup was “the size of an egg”. The image model drew the comparison: an egg in the cup in 4 of the 25 redrawn pictures. The still screen passed all four. It asks about counts and period, never whether something is in the picture that the words do not name.

Mechanism: a prop’s look is pasted into every shot that shows it, so one comparison noun reaches every picture of it, and removing it costs every picture again. Fix: a rule in code reads every look and every shot’s words for a likening. The rule was measured before it was allowed to act, across 3,917 live shots: “the size of” fired 7 times and 6 were real; “like a” and “shape” fired 14 times and one was real, because 13 of them were a bare “like a”, which the board uses for manner (“sounds like a question”), not form. So it reads a likening of size to a drawable thing, not every simile. The still screen does not yet ask whether a picture holds something its words do not name; that question is next.

10. A rule written in a prompt is a wish

A local model picks which sentence of the script voices each shot. Its prompt said a shot that only holds a place “is not a beat: answer nothing”. It answered a sentence for all 97 shots, including the 13 setting shots, and never once answered nothing. The three runs were byte-identical, so they were one measurement, not three.

Fix: the prompt now says what the model was already doing: a shot that holds a place takes the sentences that describe what it shows. The opposite rule is one switch in code, and it is measured before it can be turned on. The lesson holds for any model: before building anything that depends on a model taking a branch, count how often it takes it, or do the branching in code.

11. A number measured in the wrong unit

Episodes must run fifteen minutes, and some came up short, so we write new scenes for them. A scene’s length is planned in the script’s seconds. We sized the first additions with a ratio measured on the board. But the script overstates the board, and the board overstates the cut: one episode went 1,250 script seconds to 920 board seconds to 650 seconds of cut, 250 short of fifteen minutes. Sized by the board’s ratio, the new scenes would have left the cut about 85 seconds short.

Fix: we size in the file’s own unit, measured: the cut runs about half the script’s planned seconds, so an addition is written at about twice the shortfall. The engine now predicts a story’s cut from its board before any cut is made, so a story that will come up short is known before the drawing starts. The code’s own check on an additions file still asks only for the shortfall plus a tenth; holding it to the measured ratio is next.

12. A matcher that answered by order

New scenes name a place, and the engine resolves the name to one of the episode’s locations so the right picture of it is used. On one episode, 4 of 8 place names resolved to the wrong location: “the lane” became a gate in the lane, “the majlis” became the wall behind it.

Mechanism: the matcher returned the first location, in list order, whose name contained the words, before it looked for an exact match. A loose matcher that stops at the first hit answers by order, not by fit. Fix: an exact name wins, then a contained one, and two equally good answers are refused with both names.

13. A limit that a setting could not hold

Our language model’s box takes at most 3 requests in flight from us, and the setting said 3. The box still saw 20 in flight. Four processes had started with an override that put them at 56 wide together.

Mechanism: the limit was enforced per process, and an override from the environment was applied above the file in whichever direction it pointed. Fix: the limit is held across every process by operating-system file locks, which the system releases when a process dies, so there is no stale slot; an override may only lower it. Our load is mostly reading long prompts, so the cap costs little throughput.

14. New scenes that had nothing to say

The studio drops any shot over which nothing is heard: no line, no narration, no song, because a picture nobody speaks over is dead air. We wrote new scenes for an episode that ran short, and four of them were quiet ones, action only, told in long sentences. The board made shots of them, and 10 of the 36 new shots were dropped. The engine can give a dropped shot back by reading a script sentence over it, but these sentences needed 5.5-8.4 seconds of narration and the shots ran 3-6. The minutes the scenes were written to add never reached the cut.

Mechanism: two rules that are each right, that a shot nobody speaks over is removed and that a narration must fit its picture, together leave no room for a silent beat. In this studio a wordless moment is not a pause; it is a shot that will be taken out. Fix: every beat of a new scene is a spoken line or one short sentence that fits a three-second shot in both languages. The next round was measured by hand with the engine’s own fit measure before the file shipped, and passed 113 of 113. A check in code that refuses an unvoiceable beat before anything is boarded, so the measure does not rest on the writer’s care, is next.

And one from the day this was written

To check new scenes against the whole series, a local model read all fifteen scripts and listed the facts a new scene could contradict, each with a verbatim quote that code checked against the script. That held: no quote was invented. But one field asked for no quote, the things the series never shows, and two of its items were invented, including a character whose face, it said, is never seen. She is on screen in several scenes. In a read that checks quotes, a field without a quote is a lead, not a fact.

What is not solved

  • No shot is waiting as STUCK right now: a STUCK shot is one the QA kept failing and the rewrite loop could not fix in its allowed rounds. Each one is a gap in a check or in the board, and we fix them as structure, one kind at a time.
  • We size new scenes by a ratio, not a model of the cut. We know the cut runs about half the script’s planned seconds; we do not yet predict it scene by scene, so an episode can need a second round, and one needed it on the day this was written.
  • Some defects are still found by watching. Every one becomes a check, measured on a truth written by eye before it is allowed to block. Until that check exists, the finished episode is where it is caught.
  • The checks themselves need checking. A vision check can be confidently wrong in whole categories, so every check’s flags and passes are sampled by eye whenever its question, model or input changes.

What we would tell anyone building with generative models

  • “Is it there?” is never the question. Ask “is it still made from what it should be?”, and name every derived thing by a hash of what it was made from.
  • Compare by key, at the grain of what you hold. Two lists made different ways never agree.
  • Read every wait’s condition out loud and ask who changes it. If it is the step itself, or something waiting on it, it is a deadlock that will read as progress.
  • Make every stage say what it did, including “nothing, and why”. Silence and success look the same.
  • A prompt rule is a wish until you count the branch. Do in code what the model must not get wrong.
  • A limit is real only where it is enforced. Find the place that enforces it, not the place that states it.
  • A bug is closed when the structure cannot ship it again: in the smaller case, in productions not built yet, and in the thing the viewer actually sees.

Added on 5 November

On 5 November, after the post’s previous update, we wrote down 185 more lessons. The 6 below tell 6 of them; the other 179 stay in our own notes, each with the reason it is not here. We add each day’s lessons here at its end, newest first. Each says what happened and the number that showed it. Fix is a change the code now holds, and this post’s build refuses a fix it cannot find in the code, unless the code was later removed with the part of the studio it served, and then the fix says so; The rule we keep is how we work, not yet code; Still open is not built yet.

A public status feed outgrew the door it is posted through, and nothing looked wrong because a second road kept the page fresh

A status page polls a small feed every 5 seconds. The feed carried a section for every pull request ever opened, and that one section grew a little every day, until the whole file was 699,839 bytes against a door that takes 512 KiB. 93 percent of it was that one section, 527 rows and still growing. The log of the machine that posts it said the post was refused for size every few seconds, and the page stayed fresh all the same, because a second path kept refreshing the public copy. So no one saw a fault, and every viewer downloaded the whole oversize file on every poll.

Fix: The feed now bounds itself at its one exit. When it passes a limit set a margin under the door’s, it drops its oldest closed rows, then the oldest open ones, with their timing rows, keeps every total whole, records how many rows it shows of how many, and the page says that it is showing only the newest rows, and how many of the total. A test reads the door’s own constant, so the bound cannot drift above it. Raising the door’s limit was refused: it would have made the oversize poll permanent.

The rule we keep: A section that grows with history needs a bound from its first day, not a line on a watch list, and the bound belongs where the data leaves, not at each place that builds it. Measure the size of every section before deciding what to cut: the measured split is what makes the cut small and honest. And when a limit refuses a post while the page stays fresh, there is a second writer, and its quiet success hides the first one’s noise.

A log line printed the whole error, and the error carried the values a customer had typed

When a request failed, the server logged the error object itself. An error object is not safe to print: its message, its stack, which starts with the message, and for a database error the text of the query and the database’s own message, all carry the values the request put in. A refusal for a duplicate key prints the address that was being saved. So a customer’s address, a token’s hash or a project’s title could land in a log with no stated retention. A scan of the source found this one call; every other log call already printed only the error’s class or code.

Fix: A small pure function now builds the line from the reference, the error’s class, its code, its database error number and state, and the first few frames as file and line, with each word held to a plain name so nothing typed can ride in on a class or a code. A test throws an error whose message, query and database message all contain a planted address, and requires the line to hold none of it, looking with util.inspect so an object’s own fields are seen too, and to hold the class, code and numbers.

The rule we keep: Build a fault’s log line from fields you chose, class, code and location, never from the error object, and test it by planting a value in every place an error carries text. Any log call that passes the object is the same hole.

A Save button could not see that a person had emptied a box

On the page where a person edits a shot’s words, Save works out what changed. For two fields its test was ‘the box has text, and the text differs from what is stored’. A box the person had just emptied has no text, so the test saw no change. Pressing Save on its own said ‘Nothing changed’ over a box they had just erased, and with another change the edit went out without that field and the page said ‘Sent’, while the redraw kept the words the person believed they had taken out. The server refuses an empty field, the add form already said so in words, and the other fields treated emptying as a change: only these two dropped it.

Fix: Before anything is sent, the Save handler now checks each of those two boxes. If it is empty and the stored words are not, it says in the form’s own words that the picture, or the movement, cannot be empty, and stops.

The rule we keep: A change detector that guards on a value being truthy cannot see an erasure. For every field, ask what empty means there: a change to nothing, which is sent; a refusal, which the form says in words before sending; or no change, an empty box over an empty field. The server’s refusals are the map: what it would refuse the form says first, and what it takes as null the form sends. A truthy guard invents a fourth kind, not sent and reported as success.

A recovery script would not parse on the machine it was meant to repair, and every test passed because no test machine runs PowerShell

A script written to restart stuck workers on a Windows machine ended a message with ‘exit $LASTEXITCODE: nothing was stopped’. PowerShell reads a variable name followed by a colon as a variable on a drive, and the older Windows PowerShell refuses the whole file at parse time, so the script failed before its first line, on the machine it was meant to bring back, with two workers down. Our automated tests run where no PowerShell runs, so they passed it. Its author had said in the same message that it had not been tried on PowerShell, and sent it anyway.

Fix: The variable is written with braces. A test now scans every tracked PowerShell file for the shape, following double-quoted strings and nested subexpressions, so it flags only a colon after a variable inside such a string. It is a scanner, not a parser, and holds that one shape; the standing rule is that a script a landing runs on a real machine is parsed on that machine before it is called ready.

The rule we keep: A check that cannot run a language cannot vouch for it. Code that will run where your tests do not is parsed there before it is called ready, and ‘I have not tried this’ written next to a thing you then send is a reason to try it, not a footnote.

The tool that measures how loaded a machine is added to its load

The first version of the sampler that records how busy each build machine is was a shell loop that started three small programs every second to read the counters, the clock and a sleep, on every machine. A reviewer named the cost: the tool that measures a loaded box adds to its load, three forks a second, times six machines, for as long as it runs.

Fix: The sampler is one long-lived program that reads the system’s counters itself and sleeps to the next whole second, printing one line a second, and it ends when nothing reads its output. A test holds it two ways without pinning the source: the command names none of the usual helper programs, and the real loop, run on a build machine, prints a line a second with no second twice.

The rule we keep: A probe that runs every second is one process that reads for itself, never a loop of forks, and a measuring tool’s own cost belongs in the budget of what it measures.

A new place that kept a person’s words survived the sign-out press, and a handler that saved on leaving wrote the cleared words straight back

A change made the Story tab’s unsent words survive a reload by keeping them in the browser tab’s session storage. The page already had a rule for what a deliberate sign-out leaves behind, which is nothing, but the rule lived in one store’s own code and not in the sign-out press. So the new store, and an older one that kept answers, were skipped, and a story script someone had typed and then signed out of, on a shared computer, stayed in the tab. Fixing that exposed a second fault: a keeper that writes when the page is hidden wrote the just-cleared answers straight back.

Fix: The sign-out press now calls one function that every place that keeps a person’s words registers into, so a store added later is cleared by being registered, not by someone remembering. A keeper that writes on leaving writes nothing when there is no session. The page test fires the page’s leave event after the sign-out and reads the stored keys again, not the screen.

The rule we keep: Persistence added to a page owes three things: the sign-out clear, the other-account check, and a test that reads the storage after the press. A clear followed by a flush handler is a race, so the test runs to the end of it.

Added on 4 November

On 4 November, after the post’s previous update, we wrote down 153 more lessons. The 6 below tell 6 of them; the other 147 stay in our own notes, each with the reason it is not here.

A test armed a program’s own self-destruct guard, and it killed a different test an hour later

A full run of the test suite ended red with no failing file and no summary: one of its parallel workers had simply died while holding another team’s heavy test. The only odd thing in that worker was two threads left standing from an earlier test, both inside a watchdog. That test had run the program’s real entry point in the same process, and the entry point armed a watchdog whose job is to end the process if the program’s beat goes silent for 60 minutes. Inside a test nothing ever beats, so the watchdog outlived the test that started it and, later, ended the worker in the middle of an unrelated one. The first test passed; the harm landed in a different test in a different file, and read as that test’s crash.

Fix: The code that arms the watchdog now refuses to start it in a test’s process unless the test hands it its own way to end, so every in-process run of the real entry point is covered, including ones not yet written.

The rule we keep: Anything that can end its own process, a watchdog, a hard exit or a signal handler, refuses to arm inside a test. When a test worker dies mid-test with no summary, look first at the long-lived threads earlier tests left in it, before blaming the test it was holding.

A setting changed what a status showed, but the status was filed under a key the setting never touched

A project’s status carries fields that are worked out only in a full read, and the status was kept under a key made of the stage ends, the media, the counters and a hash of the code. The configuration file was not in that key. When the list of models a board may be written by was changed in configuration, no key moved, the check for an unchanged status said ‘same key’, and the stored status went on being served until its sweep, hours later. 50 minutes after the list named a new model, no project had asked for a board.

Fix: A setting that moves a status field is now an input of the status key, listed in one function, only for the studio’s own projects and only while the setting is non-empty, so every older key stays byte for byte as it was. A change re-reads each project once, and the documentation for the feature says so.

The rule we keep: A stored result is valid only against every input that can change it. When a setting changes what a field shows, put the setting in the key that decides whether the stored result is still current.

A new screen asked the whole question of a picture and read only part of the answer

A check was added to screen a picture a person supplies. It was built on an existing reader that already asks one numbered question about the picture and returns every answer. The new check kept two of the answers, added a line of its own, and read nothing else. The answers it ignored covered someone else’s character or brand, graphic injury and hateful symbols. A picture with no person in it that showed any of those passed every line the check read, and nothing downstream looked at the kept picture again, so it would have shipped as the first frame of a clip.

Fix: The screen now takes the project’s switches as an argument and asks the shared rule of the answers it already holds, after its own floors, the same shape every sibling screen uses. For the studio’s own projects nothing changes by construction, because those parts default off, and a test says the same picture is kept for ours.

The rule we keep: When a screen is built on an existing reader, list what the reader returns and account for each answer. A screen that asks the whole question and reads part of the answer is a hole exactly the shape of the lines it did read.

A fix went into one of the two places that write an alarm, and the case that was reported took the other

A change taught a watchdog that a card whose worker is still beating is not down. It went into the function that writes the line for one card. The same watchdog has a second path for the same event: when two or more cards of one site go down in the same lap it writes a single sentence in place of the per-card lines, and that path never called the new check. The pair of cards that had been reported is a site of two, so every one of its flips took the second path. The fourth flip of the day announced that the site’s link was down, one cause for both cards, while both workers had beaten 3 and 40 seconds earlier. The fix had landed; it had been tested on the one shape the first report showed, one card, and never on the reporter’s own case.

Fix: The grouped sentence now reads the workers’ beats too, the same way the per-card line does.

The rule we keep: A rule added to one writer of an event owes every path that writes that event, including the aggregate that replaces the per-item lines. Before closing a fix, search for every place that produces the same words, and test the reported case by its real shape.

A job was marked done at the end of the batch that held it, so every item looked stale for as long as the slowest took

A comparison of the job table with the files on disk kept finding jobs that were ‘live but not owed’: the file was there, the row still said queued. Almost all were pictures, each 85 to 269 seconds after its last change. The code that brings finished pictures home wrote every file of a round, then published each project, and only at the end of a project’s publishing marked its jobs done, so a status read in that window saw the file beside a row that had not caught up.

Fix: Each job is now marked done as its file lands, before any publishing, and the publishing marks none. A test pins that a landed row’s job is done the moment its file lands.

The rule we keep: A record of an event is written where the event happens, per item, never after the loop that contains it: a note after a loop makes every item stale for the whole loop, and the slowest item sets how long. Read a recurring lag of minutes as a batch boundary first.

A wrapper put around a call every test makes became the innermost frame of every stack, and the stall report named the wrapper

To measure how long tests sleep, a wrapper was put around the sleep call for the whole test process. On the next full run the report that says where a stalled worker stood named, for every sleeping thread, the wrapper’s own line, beside a figure of 667 seconds of processor time that was the worker’s whole life and not the sleep, which burns none. It was read as a lead to the dead worker. The reader picks ‘our own code’ by where a file lives, and a wrapper in the checkout passes that test, so it hid every caller at once.

Fix: The report now keeps a list of frames that every call of their kind passes through, and steps over them to the next frame down, so it names the caller.

The rule we keep: When you add a process-wide wrapper around a call, find every reader that names a frame from a stack in the same change and have it step over the wrapper, with a test on a planted dump. Until then, read the first caller, never the frame.

Added on 3 November

On 3 November, after the post’s previous update, we wrote down 156 more lessons. The 6 below tell 6 of them; the other 150 stay in our own notes, each with the reason it is not here.

A charge that had already been made came back as a quiet nothing, and the caller carried on as if it had charged

Two overlapping runs of a billing pass could reach the same window of usage. The ledger was protected by a unique key for each charge, so the second run’s debit was refused and the call returned nothing, not an error. The code that called it took that nothing for success: it added a second usage record, added the amount to the instance’s running total and moved the billing watermark past time it had never billed, while the ledger itself stayed right. A test that checked the balance passed and the books were wrong. What found it was a test that reproduced the real overlap: a second connection opens its view of the data before the first run commits, then runs on that stale view with a later clock.

Fix: A caller that gets the nothing from an idempotent write now rolls back everything it wrote around it, the usage record, the total and above all the watermark; and the charge’s key is built from what is charged for, the start of the window, never from the run’s own clock, which differs between two overlapping runs.

The rule we keep: A caller of an idempotent write asks whether it was a replay and undoes what it wrote beside it. A test of money rules asserts the bookkeeping around the ledger, not only the balance.

A cleanup that decided by ‘not on my list’ deleted a folder that another writer also keeps

A cleanup pass walked a project’s media folder and removed anything that no listing from the farm had named for 6 hours. The web side also keeps a person’s uploaded film in a sub-folder of the same place, and that is its only copy. No farm listing names it, so the cleanup took it. A second finding was worse: the web’s own cleanup of abandoned upload parts has no store behind it in production, so the sweep had been quietly doing that job as well, and nobody had meant it to.

Fix: The sweep now leaves the web’s sub-folder alone, and the clearing of an ended upload’s parts is done on purpose by a step of its own, which is told what ended and its folder and removes only a part or a half-joined file.

The rule we keep: A sweep that decides by ‘not on my list’ over a folder with another writer says nothing about the other writer’s files. Before it runs, list every writer of the folder, fence what the others own with a test that plants their file, and read what the sweep was silently doing for the files you fence.

A status page drew the last verdict as if it were the present one

A page showed ‘main is red’ or ‘main is green’ from the last full test verdict and never said how old it was. One morning the process that gives the verdicts ran no beat for hours; the page still read red as of an hour earlier, and nothing said that every change landed since had no verdict at all. A last verdict is true of the head it ran on, not of the head now.

Fix: The page’s feed now carries the verdict’s age and the landings that came after it and were never judged, and the page says ‘not known’ with the age when the oldest of them has waited over an hour. A verdict with no landing after it is never stale however old, and a ledger that cannot be read leaves an error class and no count, never a guess of zero.

The rule we keep: A page that shows the last known state of something a process refreshes carries, from its feed, the age of that state and what has happened since that it did not judge.

A rule that allowed one deploy at a time for each agent outlived its reason and paced the whole line

18 deploys were waiting while six test machines stood ready. The lock everyone suspected was busy only 15.8 percent of the time. What held the cars was a rule from the early days: one ship at a time for each owner, made when two cars of one agent shared a working tree. Since then every ship runs from trees of its own, and the merge already handles two cars of one agent; yet each car still waited a whole ship, a median of 348 seconds, behind another of its owner’s. Nobody re-reads a cap when its reason goes.

Fix: The one-per-agent cap is gone. It stays only for a pull request’s cars, which are one change and ship one at a time. The tests that pinned the old rule were retired with the reason, and the ones that pinned something still true were rewritten.

The rule we keep: Before speeding up a line, split one item’s wait into its phases from the line’s own records. A cap per owner is kept only where its unit matches a real conflict.

A tool that promised ‘every call logged’ wrote its row after the call and swallowed the failure

The one sanctioned way for an agent to read the live farm promised, in its own description, that every call was logged. It wrote the row after the read and swallowed the error if the row could not be written. So with a log folder that could not be written, a read ran and left no trace; a read that never ended, killed or timed out, left none either. No test had ever made the log unwritable, so the promise had never been tried on the path that breaks it.

Fix: The tool now writes a start row first and refuses the call, starting nothing, when that row cannot be written; the end row follows with the outcome, and its failure is said, never swallowed. A reader of the log shows a start with no end as ‘never ended’. The test makes the log’s folder unwritable by putting a plain file where the folder should be, because a permissions change does not stop an administrator account on a test machine.

The rule we keep: For any act whose rule is ‘every call logged’, the row goes in before the act, and a row that cannot be written refuses the act.

A rule that said ‘never’ was kept where the decisions are made, and every new reason added an exception

A background watcher had been told never to restart or resume a session of one kind. It still resumed the most important one twice in a day. The rule lived in the part of the code that decides what to do, as a list of exceptions it carried: one for a login change, one for a hung turn, one for a crashed session. A second copy of the rule sat in the code that sends the daily prompts. Each exception had been a real request at the time, so ‘never’ had come to mean ‘never, except for each of these’, in three places.

Fix: The rule now sits in the single function that would run the act: every kind of act reaches one line that raises an alert for a person instead, and the launch code is gone. The part that decides is unchanged, so it still says what it would have done and its tests keep passing as words. The test feeds every kind of act to the executor with a fake runner that records any stop, launch, removal or call, and asserts that none ran.

The rule we keep: Hold a ‘never does X’ rule at the one function that would do X. The place that decides is where exceptions get added; the place every act must pass is where a rule cannot be walked round.

Added on 2 November

Between 27 October and 2 November, after the post’s previous update, we wrote down 636 more lessons. The 7 below tell 10 of them; the other 626 stay in our own notes, each with the reason it is not here.

A silence at the edge of a day’s log was read as an outage, and a working read as a hung one

Twice in one night an agent read a silence that was not one. A read of the host’s model-call log said no call of one kind had finished since the last second of the day; the log is one file for each day of the host’s own clock, the clock had passed midnight, and every call after it was in the next day’s file. The same night a thread’s stack, taken once, showed a call waiting for its reply and was read as a read that never answered; a picture call is not streamed, so it waits for its status line for its whole 10 to 74 seconds, and looks the same at its fifth second as at its fiftieth. Three agents built on those readings, among them a first-byte bound of 90 seconds that could have cut real answers, while the work really in progress was a read that printed nothing between its shots.

Fix: The long read now says how far it has come in its own log, a count of frames read as it goes, so a working read is no longer taken for a hung one; and a reading of ‘nothing since’ across midnight reads both days’ files before it is called a stall.

The rule we keep: A silence at the edge of a record, whether a day’s log, a rotated file or a window, is the edge until the next record is read. One stack snapshot shows where a thread is now, not that it is stuck. And a bound is set from the distribution it would cut, never from the one silence that prompted it.

A wait bounded for one call ran for a whole pass, and a bound meant to stop a hang timed the whole run

A read that makes many model calls one after another wrote nothing for more than 35 minutes while the one model it needed was down. The client waited out the gateway’s ‘restarting for maintenance’ answer for up to 900 seconds on each call, a wait written for the gateway’s own text model; a model of its own, named in the call and down, is not restarting. The same week a good change got no verdict because its smoke ended ‘timed out after 300 seconds’, a fixed total on a machine whose other work had slowed it: the middle run there took 137.8 seconds and the slowest 273.7, so a slow run that was still printing was called hung.

Fix: A call that names its model now ends as unreachable after its ordinary attempts, and the stage waits and is offered again. A bound on a child run now watches for silence on its output under a high ceiling, says the last line the child printed when it stops, and ends the child’s whole process group.

The rule we keep: Ask what a bound is there to stop. A bound per call is no bound on a pass of many calls. A bound meant to stop a hang watches for silence, not for total time, and a scale rule is tried against the night’s measured numbers before it is copied.

A reader refused what its writer was allowed to write, in three places

A customer’s film reached the web side with its time and length and no address, and the page said ‘on its way’ for a film that was made and copied: the reader kept an address only if it began with ‘https://’ or ‘/’, and the writer gave a customer’s copy as a relative private path, so the film and its subtitles, narration, poster and titled cut were stored with no address for every customer; the tests built their rows by hand and never pushed a private path through. Another time a staging project was held as ‘not in the queue’ because an identity check knew the account by the farm’s name only, and the staging studio keeps it under its own; a fail-safe swallowed the refusal and made it a silent hold. And a name a client built for a voice service did not match the service’s own pattern, so every request got HTTP 400 on the first live run while the client’s tests, fed names the client made itself, stayed green.

Fix: The film reader now also accepts whatever the signer’s own parser can read, so the two agree, and a test pushes the private form through for all five fields. The identity check accepts the name as each holder writes it and still refuses any other account. The client names its takes through one function, held to the service’s own pattern by a test.

The rule we keep: A reader that validates a value must accept every form its writer is allowed to write. When one thing has two names, a check that knows one refuses the other everywhere, and a fail-safe that swallows the refusal hides it. A name built for a service is tested against the service’s own pattern, never against the client’s idea of a valid one.

A page was hidden, and the routes under it stayed open

Three routes that keep a customer’s bytes, the uploads of a voice, of a voice clip and of custom audio, had been open to customers for a long time while nothing read the audio they kept, and the cut lays a project’s custom audio into the film whoever uploaded it. The tab that led to them was hidden; the routes were not. Hiding a page changes a menu, and a route is reached by its address.

Fix: The three routes are out of the customers’ list and sit behind one middleware that answers in plain words before the request’s body is read, so the bytes are never read; they reopen in the same change that lands the screen that reads them.

The rule we keep: When a page is hidden ‘for now’, look at the routes under it, not only at the menu, and reopen them in the change that lands what reads their bytes.

A second caller turned ‘not said’ into ‘false’

A function that wrote an account’s plan from a field called paid had one caller, which always sent a true or false. A second caller, the farm’s door for naming an account, knew who a person was and not whether they paid, and the missing field read as false: the same function would have lowered a paid account to free on a call that said nothing.

Fix: The writer now changes the plan only when it is given a true or false, says so in the code, and a test sends the second caller’s shape against a planted existing account that it must leave alone.

The rule we keep: A shared writer that reads a field its first caller always sends turns ‘not said’ into a value the day a second caller exists. Say in the writer which fields are ‘only when given’, and test the second caller’s shape against a row it must not change.

A search that walked a ledger from its first row grew slower every day until it timed out and said nothing

A sweep that closes an issue when its change lands asked git, one process for each row, whether each landed tip held the change’s head, starting from the oldest row of a ledger that only grows. A change that landed today sat behind thousands of rows, so each owed issue cost thousands of calls; the dry run timed out at 120 and then 170 seconds, and four issues stayed open after their changes had landed. A sweep that times out closes nothing and says so nowhere, so it looked like ‘nothing owed’.

Fix: The landed tips are main’s tips in landing order, so ‘holds the head’ is monotone: a binary search finds the first tip that holds it and checks it and the one before, and the walk is kept only for a ledger whose check fails.

The rule we keep: A reader of a ledger that only grows, asking an outside command for each row, searches on an ordered property or is bounded to a window. It is tested with thousands of rows and a counter on the calls, and when a sweep goes quiet its dry run is timed before anyone believes it ran.

A nanosecond time kept through a float no longer matched its own file

A check held a file to its record by comparing the file’s size and its two nanosecond times for equality. Takes of two films stayed blocked although nothing had touched them: each failing file’s times were 100 to 200 nanoseconds off its row’s, because the record had passed through a double-precision float, which keeps about 256 nanoseconds at that size. The takes that passed matched exactly. The first guess was a copy changing the creation time, and a slack of seconds; the measured ticks said about a hundred nanoseconds.

Fix: One reader now holds a file to its record within a bound of a microsecond, the size equal and each time within the bound, and a test refuses any other equality of an identity.

The rule we keep: A nanosecond timestamp that passes through any float, whether a JSON number, a double column or JavaScript, is no longer exact: compare within a bound, through one reader, and measure to the unit before widening the bound.

Added on 26 October

Between 22 October and 26 October, after the post’s previous update, we wrote down 677 more lessons. The 26 below tell 54 of them; the other 623 stay in our own notes, each with the reason it is not here.

A new file and a new name each took an old one’s place, and the old one’s users failed at their first call

Twice in one day something new silently replaced something old of the same name. A new module, written at the path of a module the scheduler already imported, imported cleanly, passed its own tests and landed; then every scheduling cycle failed at the first name the old module had and the new one lacked. It had been made with a shell redirect, which overwrites without asking, and its author had not looked the name up. And inside one module, a new top-level name defined 180 lines below an older one of the same name replaced it, so every picture job built from the old value died on a format error; the tests of the new feature alone had passed, and only a wider run of the tests the changed module reaches saw it.

Fix: A test now parses the files the scheduler reads and checks that every module it imports under an alias has each name the file reads from it, so a replaced module fails in the tests and not in the cycle.

The rule we keep: Look a new name up where it will live before writing it: a path in the tree, a name in its own module. A diff that shows a new file as modified is the alarm. A test that exercises only the new feature cannot see it overwrite an old one, so a change to a shared module runs every test that module reaches.

A process that had died was read as running, because the check asked only whether its number existed

A measure started as a detached run on a card kept no record of its process, so a run whose process had died and left no result read ‘running’ for ever, and the rule that allows one run to a card would have held the card behind it for the run’s whole bound. Days later the same shape came back in the loop that launches the shipping runs: it started each run and never waited for it, so every finished run stayed a dead child that still had its process number, and the check that asked whether the number existed said yes. Seven of them stood at once, and every owner’s next change waited behind a run that had already landed.

Fix: A detached run now keeps its process number and the reader asks the operating system whether it is alive; a run whose process is gone and left no result reads dead and frees its card. The liveness check reads a dead child as gone, and the launcher reaps its finished runs on every pass, and only the children its own records name.

The rule we keep: A process number outlives the process until its parent waits for it, so ‘does the number exist’ is not ‘is it running’. Any loop that starts children waits for them every pass, and a liveness check reads the process’s state.

A watch that reported nothing was read as nothing waiting

A developer’s comment waited 68 minutes for an answer, because the watch on an agent’s inbox had ended twice at its bound with ‘nothing new in 25 minutes’, and each time the agent took that to mean nothing was waiting, started the watch again and went quiet. The comment had been posted while the watch ran, and the watch had not delivered it. The next day another watch hid an event for the opposite reason: to quiet a line that repeated, its filter dropped every line that held a change’s name, so when that change moved to a new version and began to wait for a go, the new line was filtered out too, and the change sat unqueued for almost four hours.

The rule we keep: A watch is a wake-up and the thing it watches is the record: at every wake and every bound, read the thing itself (the comments since the last one answered) before waiting again. Quiet a repeating line by the exact text it repeats, never by the name of what it is about, and keep anything that waits for a person in a list read on a clock, not only in a stream that can be filtered.

A run was stopped for silence, and the log’s last line was taken for where it stood

A test run that printed nothing for 600 seconds was killed by its runner, and the whole shard of workers counted failed with it. Four days later a shard was called hung on a line that looked like a test waiting on a child process; it was only the end of a summary, and the run had printed nothing at all for 15 minutes because every worker stood in collection, where the timeouts do not reach. Its files were pruned within the hour, so the cause was lost. The earlier case had shown the cost of guessing: a harness that runs stages inside the test’s own process hides hangs by construction, because its timeouts do nothing, and one stack dump named the culprit where a bisect over 55 landings, each step a ten-minute hang, would have taken the evening.

Fix: Every test process of a run now arms a stack dump on a signal, and before the runner stops a run that stood still it signals exactly those processes and puts where they stood first in the reason it gives.

The rule we keep: Read a hang as a stack first and bisect second. A path that kills on silence records where each process stood before it kills, because the log’s last line is not where anything stood.

Two sides hashed the same file and disagreed, because each read its bytes its own way

A page’s script hash was made over the working copy on a machine that turns line endings into the other style on disk, while the door that checks it holds the text as stored. The test passed on that machine because it read the same working copy, and a reviewer caught it. Two days later the farm’s version of its own worker code was hashed from the checkout’s raw bytes while the installer sent the other line ending, so every box read as stale. In both, a hash was made over a form that never ships, and the two sides that were compared each read the file differently.

Fix: Both sides of the version hash now read a file through one function, held by a test that plants the other line ending.

The rule we keep: A hash or a byte check is made over the form that ships. Before hunting a mismatch by brute force, list every place that reads the bytes and how each one changes them.

Two shipping runs side by side read a tree that moved under them

When the shipping runs of different changes first ran side by side, one deployed a web release from the tree it started on, while its page step and its release label read the live tree, which another run had moved in the meantime. It published the newer page to a server that held the older page’s list of allowed scripts, and the server refused it; the label also named the newer release as the one that had been deployed. It healed only because the page’s own change was shipped after it.

The rule we keep: A step reads the tree it deployed, not the live one, and a label says what was carried. When a run stops at a page publish, compare the deployed tree’s list with the live tree’s before blaming the page.

A fix had landed and closed, and nothing that ran had loaded it

Two fixes to the shipping line landed and were closed, and a change was still refused twice in exactly the way both cured, because the loop that does the shipping had been up since the day before and had loaded that code once. The same shape had cost real quota four days earlier: a job that a timer starts again and again was still running on its old code 47 minutes after a fix to its quota use landed, and spent 1,398 calls in 6 minutes, while no session may stop a process on that machine. Its lock was also taken over as stale after a time shorter than a slow run takes, so runs overlapped.

Fix: The shipping loop now compares the modification time and size of every repository module it has loaded between passes and restarts itself in place when one changes. A job started by a timer arms a watchdog that ends it past a deadline or when the files it runs change on disk, and a lock’s stale time sits above that deadline.

The rule we keep: ‘Landed’ is not ‘live’ for a process that lives across landings: ask which process imports the fix and when that process started.

A check that was report-only was also being asked of the writer

A check asked the writer for variety: two shots of the same people in the same place at the same size and angle counted as alike, and the writer was told to frame the second another way. In a talk between a father and a son the card fixed the size and the angle, so the writer changed the only thing left free, who stands in the foreground, and the camera flipped sides on every turn of the exchange. The check was report-only on its page, but the writer’s rounds read the cross-shot readers directly, so a report-only reader that is also fed to the writer is live.

Fix: The check now skips adjacent turns of one exchange, which keep one framing.

The rule we keep: Two readers that ask opposite things of one shot are a bug of the pair, found by reading what the engine asks and not what a check reports. Read the call sites, not the registry’s switch.

A hold waited for a word from a part that was never installed

A card was taken off the farm through a window by the farm’s own clock, and it came back only when its machine’s unit said the sandbox was closed and clear. The machine’s half had never been applied, because it waited on another step, so after the window ended nothing existed that would ever say ‘closed’, and the card stayed off for about four hours with work waiting. Its alarm said only that its worker said nothing.

The rule we keep: A hold whose clearing condition is said by a part not yet installed never clears. When one half of a two-sided rule ships, ask what it does before the other half is live: a rule that hands a resource to another party holds only while that party reports that it is there to take it, and with no fresh word the resource stays where it was.

A shared quota ran out, and the machine that took the blame had spent almost none of it

The quota of a rate-limited service, shared by one login, ran out twice in an evening, and the agents on one machine took the blame: their loops were slowed, and a pace was made to follow the right token. That machine’s own call log then showed it had spent only 2.4 percent of the quota. The real spender was a job on another machine, started by a timer every minute with no lock and no budget, that made 16,571 of the hour’s 17,113 calls, with two runs alive at once. Its failure fed itself: a build that failed kept nothing it had read, so the next minute began cold and asked again. And a pace written to wait on the login’s budget had been waiting on a count of zero while the application whose token the tools really spoke with had 6,649 calls left.

Fix: The job now takes a lock so two runs cannot overlap, and it enters every call in an hour’s ledger that it reads before the next one and refuses past a cap.

The rule we keep: When a shared quota runs out, read the call log of every machine on the login before blaming the loudest one. A pace or a budget wait reads the budget of the token the paced call uses, and a loop that spends a quota keeps its progress when a read fails and waits its cadence like one that succeeds.

A big copy on the machine whose cards were drawing hung both of them

Its render software had begun to stream a model’s weights from disk while it sampled. A move of 13.5 gigabytes onto that same disk, written with sixteen threads, stalled the stream, and both render servers stopped answering in the middle of a clip while their processes stayed alive. The watchdog then started a new pair every minute, which piled up behind the hung ones that still held the card, and both cards left the farm with 25 clips waiting; recovery needed a person’s click at the machine.

The rule we keep: A machine whose cards are drawing does no bulk disk work (a copy, a move, a size scan) on any disk its servers read while they sample; it is done with the cards off and drained. A watchdog that starts a new server beside one that is hung, not dead, makes it worse.

A public page promised what the code did not do, and our own post told last week as today

A privacy page said a customer could close their own account in the product, and the terms said ‘in your account’; no control a customer can reach and no route a customer’s session may call did it, and for two weeks nobody read the sentence against the code. In the same week our own engineering post told the studio of an earlier week in the present tense: its pipeline line, its vision-model bullet and several rules described a studio that no longer existed, because the post’s counts were computed and its sentences were not.

Fix: The post’s build now holds each present-tense claim to the file and the text that hold its rule, and refuses a missing text or a table and a post that disagree.

The rule we keep: A sentence on a public page that says ‘you can’ or ‘we do’ is a claim about the code: read it against the control, the route and the rule’s own file before the words are final, and tell history in the past tense with its date.

A red and a green were read for their counts, and the tests had failed and passed for other reasons

A new test’s red failed on the right test for the wrong reason: the fixture meant to reach the second rule in a chain of refusals held a space, so the first rule refused it and the assertion saw the first rule’s words. The next day another new test built its input in the shape of the wrong argument for a helper it had borrowed from another test file, so its red failed on any code and was read as the code’s fault, and its green’s failure hid behind a failure main already had; the change went out and main went red on the new test at the next full run. And a read placed before a tool’s refusals made a refused reply call out first; the author’s own full run had passed, and only the tests that pin ‘refused sends nothing’, run by name, would have caught it.

The rule we keep: When a watched red fails, read which rule answered and why each case failed, not only how many. A fixture for a later refusal passes every earlier rule first, a borrowed helper’s argument shape is read before it is called, every failed row of a green is named, and a step added before a refusal runs after every other refusal.

Blind comparisons were spoiled by what was sent beside the blind part

Sheets named only by a coin were asked for together with each clip’s seed, which had already been seen beside its project, so the side was readable before any grade. A trial’s replies came back in a message that named the two models and gave the sender’s own read, and the by-eye pass had to be called not blind. A blind page for a measure of ages hid the age that was asked for along with the model, though the age was the claim being judged: a listener who is not told the age cannot say whether a take reads as it. And a record that cut each reply at 1,500 characters made the code’s own validity check fail the cut replies.

The rule we keep: A blind label protects only if every field sent beside it is side-free: list the fields you will receive and ask only for ones not already seen against a side. Blind the producer and show the claim. Whoever relays a blind read relays the raw lines only, with no label, summary or read, and the grades are committed before the key is opened.

Four measures gave a flat or a wrong answer, and the measure, not the thing measured, was at fault

A scorer that split text into words scored a language written without spaces as one token, so every line of a run scored zero and a pick of the best of three was blind. A check for text taller than its box used a fixed one-pixel tolerance on a renderer that rounds by one or two, so it flagged 391 of 391 captions that were fine. A judder read taken from a slice of the finished cut measured the cut’s frames and not the model’s, and a flicker reader that used the mean of the whole frame took a moving patch or a cut for flicker. And two clips both reported twenty-four frames a second while one of them moved a tenth as much per frame as the other, because the muxer puts back the frames a filter drops, so the container could not say how many new pictures a clip held.

Fix: The scorer’s unit now follows the script of the language, characters for Chinese and Japanese and words for the rest, and a clip’s real picture rate is read from the difference between each frame and the last.

The rule we keep: A score that is the same on every line is the scorer’s fault, so read the column before trusting the lines. A threshold on a measured thing is a fraction of that thing, held out on a second corpus whose truth was written before the run. Read a clip’s own file for what the clip does, and the difference between its frames for how often it changes.

A loop cut by its budget raised, and nothing it had read reached the page

After the hour’s ceiling on a build’s calls was raised, a view of the developers’ work stayed 75 minutes old, because the other cap, a limit on the calls of a single build, cut each build inside the list it was reading. The build raised, and nothing it had read reached the page; the next build could resume from what was kept, but the page went on showing the old view until a build finished whole. The test found one more fault at once: the item the loop stopped at had already been counted as listed, so it vanished from the view instead of coming from the kept reads.

Fix: A budgeted build now stops taking new work when the room left is under what one item and the closing step need, takes the items it did not reach from the kept reads, closes, and returns the view marked as partly refreshed; the mark of a whole read moves only on a whole read.

The rule we keep: A loop that can be cut finishes partly and says so, instead of raising and losing what it read.

A limit and a folder each lived in several modules, so the smallest limit won and a move was made in too few places

Raising the text model’s width from 10 to 24 touched five places, and three of them would have throttled it silently: the gateway’s own cap, the door’s count of held connections and the share one kind of caller may take. One test pinned the held-connection count as an earlier ruling’s number, and the mistake was found only by the full run of the tests that mention the cap. Meanwhile five modules each declared the same folder for kept cases, so a move of that folder made in four places was made in three, and nothing failed when a sixth module wrote a sixth copy.

Fix: One test now imports every place that holds the width and asserts them equal, so the next raise changes the number everywhere or fails; the folder has one definition that the other modules import, and a tree guard fails any other line that builds it.

The rule we keep: A limit held in several modules is raised in all of them or the smallest is the limit, and a path written in several places is a path moved in too few. Before a raise, search the old number beside words like cap, in flight, slots and held.

A word that said ‘done’ was taken for ‘worked’

The bridge that carries people’s comments to the agents’ inboxes saved its list of comments seen right after polling and before writing the inbox lines, so a process that died between the two left a comment marked seen and never delivered. Of 12 people’s comments in three hours it was the only one lost, and it waited more than an hour. A day later a detached measure’s state read ‘done’ when only its runner had ended: both of its rows said failed, and a chain written to stop at the first failure read the state alone and went on to a second run that failed the same way.

The rule we keep: A record of ‘done’ written before the work is done makes a death in between lose the work silently: write what is to be delivered first and mark it seen after. A run’s state says its runner ended; its rows carry the verdict, so a chain that stops at the first failure reads the rows.

A scripted whole-file rewrite wrote the block, not the file

In one night two scripted whole-file rewrites went wrong within an hour. The first printed ‘fix in, parses’ and the change was nowhere on disk when the commit ran a minute later. The second wrote a six-line file in place of one of 789 lines, because it wrote the block it had matched and not the file, and its own parse check had read the string in memory and not the file on disk, so it gave false comfort; the loss showed only in the count of deleted lines. In the same week a script installed alone on a machine, which cannot import the shared helper, swapped a file without syncing it to disk first, and a planted break whose commit had been refused silently was followed by a hard reset that removed a real commit.

The rule we keep: Edit a file through a tool whose old and new text cannot write what was not read, and commit a fix before the next tool runs. A file swap writes, flushes and syncs before it replaces, and a test holds that order. Check that a planted break was committed before any reset.

A box that answered was already broken, and a word in a status was read as a fault of the link

A box hung a clip every few minutes. Its first lead, a count of processor throttles, was retired by a twenty-minute watch in which the count stayed flat; the boot’s own record held an Oops from days before that had killed the kernel’s memory-reclaim thread, so the box kept answering but every allocation under pressure reclaimed by itself, and work turned slow or hung until a reboot. On another day four drain waits on cards that were off read ‘cannot be reached’ and were taken for a link fault, yet a probe through the same forward answered 18 of 18 times: the words were the scheduler’s own state, written while the card still drew the job in hand and so did not answer a queue read in ten seconds. And a pair of cards’ workers passed the card check, then every call to the studio’s door was refused, because nothing put a listener on the port the door lives on.

The rule we keep: Read a box’s kernel record by its thread and its instruction, not by the fact that the box still answers. A wait’s words are the scheduler’s state: measure the link before calling it down. A check that passes a card does not say the card can reach its work.

A fix was judged by the words alone, or by ‘it reads right’ without the picture it had to match

A check asked whether a correction had reached the model by comparing the final prompt’s words alone, so a redraw that changed only the clip’s end frame, its negative prompt, its model or its seconds read as a plain retry. And a replacement clip meant to carry a character was judged ‘a real person, not a grey figure’ on a clip that held a real person in all 80 frames, and read as fixed; the character’s own picture, once fetched, showed a woman with long fair hair and an apron, and the clip showed someone else. The replacement had fixed the fill and not the likeness.

Fix: The record now keeps the model, the seconds and the end frame beside the prompt and the negative, and a clip sent again names what differs from the earlier clip of the same unit; only a new seed leaves it a plain retry.

The rule we keep: When a check asks whether a change reached a thing, list every input of that thing before choosing what to compare. A gate that says ‘if it reads right’ needs both halves on the desk, the output and the picture it must match, fetched before the verdict.

A page was described from its code, and a range of its ends stood for everything on it

A developer was told a new-project form already offered a choice of image model, on the strength of a search that found the field; the field shows only when more than one model is offered, and that day there was one. And a pager gave each page of shots only its first and last number, which is a range only when the numbers run in order: shots the writer added sit in story order among the others, so one in the middle of a page was in no page’s range and the pager would not return its card.

The rule we keep: Code that can draw a control is not proof the control is on the page: read the condition that shows it and the live list it filters, or read the page. A page’s hook for what is on it names every item, as runs, never a range of its ends.

A fix to one writer of a shared record did not reach the others, and an intake waited for a rare signal

Six stages published at once into one media record of 806,417 lines, each rewriting the whole record for every file under a single lock, so sheets already on the store counted as unsent and a publish bound ended at 146 of 421. The feed’s own writer had been moved to batching days before after the same starvation, but the fix had gone to one writer. Separately a cut read ‘not arrived’ on its page for 22 hours: its copy had landed and its record entry was written whole, but late, and the step that adopts such entries ran only on a rare kind of build, so ordinary builds never saw it.

Fix: Every stage’s publisher now writes through a batch that updates the record once for many files.

The rule we keep: Every writer of a big shared record batches, not only the busiest one. An intake gated on a rare signal starves the moment its demand arrives outside the signal’s window: every build answers the record’s entry, which is the stage’s declared demand.

A guard handed its failure to a loop we had removed, and a shot stood blocked for hours

A person’s mark excluded one word from a shot, the shot’s own words used that word, and the last guard on the still’s prompt refused it with the reason that the rewrite loop would write it again. That loop had been removed days earlier with the rest of the automated checks, so the guard waited on a writer that no longer existed and the cut waited behind one shot. The guard was right; its remedy was gone.

Fix: The excluded noun’s clause is now cut by a step of its own that needs no model, and the guard has a row for it.

The rule we keep: When a loop is retired, every guard and message that hands its failure to that loop becomes a standing block: search the reasons that name it and give each a cure that needs no model.

A page stated a consent for the person before the person had given it

An audio editor sent a header on every upload and every recording that the server keeps as the person’s own word that they may use the voice. The page it replaced kept its Add button off until the person ticked a box saying they had the right to use the voice; in the editor the box appeared only after the voice was stored, so a rights statement was made for the person at the step that kept the file.

The rule we keep: A page never states a consent, a right or an agreement for the person: the tick comes before the file is kept, the header is sent only from that tick, and a test holds that unticked sends nothing and says why.

A reader of a stated length read none of the briefs’ own phrasings, and the writer made a minute nobody chose

Two briefs for short vertical reels said how long they should be in their own words, ‘a 27-second vertical marketing reel’ and ‘sixteen to twenty-two seconds each’, and the reader of a stated length returned nothing for both: it counted a length only when ‘reel’ came straight after the number, and it did not know ‘each’ after the unit. The writer was asked for the sixty seconds nobody had picked and wrote more than a minute. The same note adds that the words a script puts on the screen are a caption laid in the cut, never lettering the picture model must draw.

Fix: The reader of a stated length now reads descriptive words before the noun and ‘each’ in a sentence that names the films.

The rule we keep: A reader of a stated value is probed with the briefs’ own phrasing, not with the phrasing it was written for.

Added on 21 October

On 21 October, after the post’s previous update, we wrote down 225 more lessons. The 13 below tell 31 of them; the other 194 stay in our own notes, each with the reason it is not here.

Work whose caller had gone held the card, and every cure waited on it

A batch of 66 voice takes whose caller had gone kept running inside a request with a 2-hour limit and held the card. Each later call, and each later orphan, queued behind it: every stop by the scheduler made the next run wait longer, and each new run was stopped before its call could answer. On another card, a render prompt that no interrupt could stop was found hung again every seven minutes, and the restart that was owed for it never ran, because it waited first for the card’s queue to be empty (the stuck prompt is the queue) and then on a prompt queued behind the stuck one. And the voice runs went quiet three times in under half an hour, each stopped on its quiet bound and each followed by a run that met the same orphan, because the only cure was a person’s restart.

Fix: A service that runs long work for a caller now drops a request whose client has gone and ends a running engine within about a second of its caller going. A restart waits only for work that can finish without it, and says what it waits on. A stop marks where it happened, and repeated marks owe the cure by code, asked only when no caller is live and backed off on failure.

The rule we keep: Read every wait aloud and ask who ends it: a stuck occupant cannot, and nor can anything queued behind it. For every bound that stops work, ask what the next run meets.

A guard, a pin and a template each checked where the code used to be

Twice in one day a guard that cut a source text at an offset went red while the property it guarded still held: a window of the first 4000 characters of a step, outgrown when the step gained fields. A count then found 312 of 3,199 tests that find code by a marker or a distance. A deploy step added on purpose to a sequence that is pinned byte for byte shipped red until the pin carried its row. A new migration was written from the heads of its siblings and missed the line that every migration file ends with, which records it. And a change reached the test machine with a syntax error in three places, mixing two operators that the language does not allow together, so 94 tests failed on that one cause.

Fix: A helper now finds a function by name through the syntax tree and reads what is in it, with a list of the old offset readers that may only shrink, and the pinned deploy sequence now carries the new step’s row.

The rule we keep: A guard that finds code by text position says ‘the code is where it was’, not ‘the property holds’. A new file of a kind is written by copying a sibling to its last line, and a syntax parse runs in the worktree before a ten-minute run on another machine.

Cards stood idle, or went to a test, while real work waited

A film’s clips stage had one job in flight and three owed outside its list while six capable cards stood idle for 12 minutes. The plan sized the stage by the stage’s own record, which said none were left, and the stage re-listed only when one of its own idle workers found the queue empty, while its one card was busy. The same morning a card was leased to a test measure that was a dead attempt, while a production film’s clips waited with every card of that kind busy. And a command that wrote a hold on a card ran on the wrong machine, saved the record to that machine’s own folder, and printed an alarm line that read like success; the farm never had it, and the card hung again.

Fix: Something outside the stage now asks it to re-list, and every refresh updates the record the plan reads. The walk orders production before tests, and a test never takes a card production waits for. A command that writes a farm record refuses to run anywhere but the farm’s host and names the host command that carries it there.

The rule we keep: When a plan sizes a running stage by the stage’s own record and the stage refreshes it only from its own event, a starved stage never refreshes. A record written beside the farm holds nothing, however its output reads.

A database restart ended three runs, and an error is repeated only when it is safe

An unattended upgrade restarted the web host’s database for under a minute, and the studio answered a bare internal error on two routes. That ended a film’s clips run, an approval and a voice measure run. A write may be repeated only when the server says nothing was written, so the studio now answers ‘service unavailable’ with a time to retry, and when the connection itself failed it says so, since then nothing can have been written; a write is repeated for that, within a bound, and a connection lost in the middle of a write is never repeated.

Fix: A database outage now answers ‘service unavailable’ with a retry time, and names whether the connection itself failed, which is the only case a write is repeated for.

The rule we keep: An error is safe to repeat only when the server says nothing was written. Say, in the error, which of the two it was.

A fault was put down to the code, and to a difference, before the machine and the control were read

A commit check died of a segmentation fault, and its retry raised a type error at a line that cannot produce it, since every producer returns a non-empty value there. It was the machine’s memory or processor, and the next step was the kernel’s machine-check lines, not a code fix. And when a render box hung 7 times on clips, it was reported that the lead difference from a sound box was two flags on its image server; only the sick box’s flags had been read. The sound box ran with the same line, and one setting was defined but never run.

The rule we keep: An error that the code cannot raise, right after a crash and gone on retry, belongs to the machine: read its machine-check lines. Name a difference between a sick machine and a sound one only after the same read has come back from both.

What a model garbles, repeats or leaves empty is cured in code

A translation measure found one failure in every run: a year the source spells in words came back garbled when the model spelled it in Hindi, and the model’s own judge and a back-translation both missed it. In a scene plan, 7 of 8 runs were refused because a beat quoted a sentence of the scene before: the model had continued the story’s state instead of planning the scene, and a finding that said ‘not in the script’ could not tell it which scope was meant. And a fallback written for a part the model leaves empty wrote one shot per spoken line, so a script of camera paragraphs and no speech got no shots, and the board stayed empty for 65 minutes.

Fix: Numbers in a translation are now checked by code against the source’s numbers, and the model is asked for numerals. A finding names the scope it checked, and a quote that belongs to another scene is taken out by code. The fallback writes from what the part has, its action as well as its lines.

The rule we keep: Numbers are checked by code and never by a model. A last-resort writer is tested first on the input that gives it nothing to read.

A request in a brief had no road to the screen

A film’s brief asked for burned-in captions through the story, eight example lines and an ending caption. The cut had only the first shot’s narration cue, small at the bottom, and nothing after it. The board had no field for on-screen text, so the board writer could not carry the brief’s lines, and it made a narrator line that the brief forbids. Nothing turned the captions layer on from a brief that said ‘burned into the video’, and the layer read only the spoken lines. Each miss was a missing road rather than a bug in a road.

Fix: A board now has a field for on-screen text, and a brief’s caption lines are carried through it to the layer that draws them.

The rule we keep: When a brief, or a customer, asks for a thing, trace it from the brief to the board to the record to the stage that draws it, and ask where it lives. A link with no field to carry it is a miss.

A comparison by time, and a read of a log’s tail, each missed what was there

A film was cut from sharper clips, then the setting was set back and the cards returned to the older clips. The cut stayed the sharper one and nothing was owed for 18 minutes, because staleness was read from file times and the older clips were older than the cut. And the lines that report a clean day are said once per picture, anywhere in a day’s log, so a read of the log’s head and tail saw nothing, and a day with nothing wrong read as a day with no data.

Fix: A once-per-picture line is now read by word over the whole day, through the farm reader’s feed verb.

The rule we keep: A derived thing is compared with its source by content, not by which file is newer; a clip’s name hashes everything it is made from. A decision that rests on rare lines is read by word over the whole span, never from a tail.

Three measurements counted something other than what they were asked about

A timing of ‘the seconds a still takes’ ran the same graph three times on each card and kept 45.5 seconds, 0.3 and 0.1: the second and third runs were served from the image server’s cache, so the number measured the cache. A counter of errors on the farm page keyed each error on its position in a rolling list of about 40 entries, a position that changes on every read, so the two errors of one shot were counted as 4. And a watch that could signal a rollback split a printed document with a regular expression and counted every nested timestamp as a drop, when a printed document can also be cut off.

Fix: Each repeat of a timing now moves the seed, so every run is a new prompt, and a result kept before the change is proven again.

The rule we keep: A repeat meant to time something changes an input that reaches the sampler. A count off a rolling list keys on the content that names the event, never its position. A watch that can raise a rollback parses the document as data and reads only the field it watches, and is checked on one raw read first.

A check for who is over a limit took its own copy of the limit

A new check for who is over a limit took its number from the rule that enforces it instead of copying it, because a copy of a threshold drifts, and then the check and the gate disagree about who is over. A second check, for call rates, counts what the limiter refused and not the calls it let through, and is built from the limiter’s own numbers, since a client that obeys the limiter is refused about once a minute and one that ignores it is refused every time. Separate limiters are never added together, and the line is invented by no one.

Fix: The check imports its limit from the rule that enforces it, and its test asserts that the two are the same number.

The rule we keep: A threshold has one home. A detector reads it from the rule that enforces it, and counts the rule’s own refusals.

A constraint in a brief was held at one stage and broken at the next

A brief that said no voice-over and no narration was held on the script, but not on the board that a model writes from the script, so the first shot of a film was narrated under a brief that forbade it. A constraint a brief states is held at every stage that can bring back what it forbids, by the one reader of the brief, and a constraint that is only described in a brief states nothing.

Fix: The same reader of the brief now checks the board as well as the script, report-only until it has been measured.

The rule we keep: Hold a stated constraint at every stage that can re-introduce what it forbids, and never guess a field that does not exist yet.

Our own shipping line met four cases its design had not named

A change waited in a line marked ‘after the other one lands’. Its owner then said a new version would follow, and the old version shipped anyway, because a waiting line holds a head and not a promise, and nothing tied it to the owner’s latest word. A switch’s ‘off’ change and ‘on’ change had both been cut from the same base, and both added the same block, so the ‘off’ could never land after the ‘on’: a stop change is read against the base at the moment it must land. A go that called a step read-only was never checked against what the step writes, and it wrote a file. And putting a refused change back in the line wrote over the log of its first refusal, which was the only evidence of why it was refused.

The rule we keep: A waiting line is ended when its change is superseded. An undo is cut on top of the change it undoes. A word like read-only is checked against what a step writes before it is run. And a run’s log is set aside before the same branch runs again.

Alive was read as working, and silence as a quiet line

A listing showed 27 agent sessions alive on one machine, every one idle, for hours. Each one’s last reply, in its transcript, was an error saying it could not run: the listing never said why, and a live process told us nothing about whether it could do anything. On another day every agent on one machine went quiet within minutes of each other, the machine had left the network, and for 5 hours the line was reported as quiet until someone asked. A watch that waits for events cannot tell ‘nobody is sending’ from ‘the senders are gone’.

The rule we keep: Health is a session’s last reply, not its process. Silence from every agent at the same minute is a fault, so the machine they run on is read before the line is called quiet.

Added on 20 October

Between 19 October and 20 October, after the post’s previous update, we wrote down 376 more lessons. The 24 below tell 70 of them; the other 306 stay in our own notes, each with the reason it is not here.

Every test passed, and the change did nothing

A change went in with two suites passing, 105 tests and 347 tests, and its go-live ran with every step reporting success. It did nothing. The configuration key it added was dropped by the reader as unknown, because the test had faked the reader’s answer; the installer built its configuration from a different list than the one the change had extended, because the test had checked the builder alone. The same shape came back twice more in two days: a crash check whose parser had been tested on the log’s ideal form, never on what the log tool really prints, so a window that should have reached back stayed 1 hour wide; and a program that ran on the farm’s host failed twice on a database connection, because its test fake returned a plain object where the real module returns a context manager.

Fix: A guard now runs the configuration reader over the repository’s whole configuration file, so a key the reader drops is red on the change that adds it, and a second test runs the installer end to end and reads the configuration it wrote.

The rule we keep: A test reads the thing the change exists to alter, produced by the real reader: the parsed section, the written file, the posted body. A parser’s test starts from the reader’s real output, and a fake keeps the shape of the real module’s interface.

A new name took the place of an old one, and only a run noticed

Three times in two days a change added a name to a long file that already held it. A local variable in a long function took the name of the dictionary a closure below it read, so every cycle of a watcher raised, and the wrapper meant to keep the watcher alive hid the error. An import alias in a big module already meant something else three screens up, and the call failed only when a test ran the rule on one particular shot. A module-level constant was bound a second time in a file of 2,500 lines, and the live branch was red for 38 minutes before anyone named it. None of it showed in a compile check: a second binding is valid code, and it silently wins.

Fix: A guard now fails any module that binds a top-level name twice, and a change that adds a name to a big file searches the file for it first and runs that guard with its own tests.

The rule we keep: Before a name goes into a long function or a big module, search that file for it. A rebinding is valid code, so only a run, or a guard that reads the names, will see it.

Two guards read the shape of the text and blamed the wrong code

Two guards written in the same two days read text where they should have read structure. One pinned that a press is routed by looking for a quoted name followed by a closing bracket. It held while that name was last in its list, and went red on the main branch the day two more kinds were added after it, with the routing unchanged. The other split the page’s script into units at the lines that begin a function, so a new helper written as an arrow function began no unit and its words were charged to the function before it. The quick answer, exempting that neighbour, would have hidden a real gate there in future.

Fix: The first guard now reads the code’s syntax tree for the kinds the routing compares, with a small test of its own reader that uses a known member and a planted absent one. The helper became a function of its own, and carries its own exemption with its true reason.

The rule we keep: A guard about what code does reads the code’s structure and tests its own reader; one that matches punctuation pins where the code ended up. When a guard blames code the change did not touch, look at what sits just before it, and never exempt the neighbour.

Every copy of the code had drifted from its source, and nothing said so

Someone asked how anyone knows the workers on the render cards update their code when the farm is deployed. Nothing knew. A read-only check found that all 11 of the pull workers ran older files than the main branch, and every one was running, enabled and claiming work: a landed change moves the farm’s tree and never a card’s copy. The same week, a route added to a door was live in the studio and answered ‘not found’ at the door’s own proxy, because the proxy’s list of routes had been written from the source once, at install. And a cache of a decision, built on the idea that a landing moves the code and not the inputs, kept serving a waiting entry’s old ‘refused’ for more than 30 minutes after a landing that changed that very decision.

Fix: A deployed worker now sends a content hash of the files it runs on every claim, and the door compares it. A file generated from a source at install time is regenerated and compared at the deploy that changes the source, and the cache’s rows that were read under other code now end a few at a cycle once a grace has passed.

The rule we keep: A copy names what it runs in every word it sends, and a cache that ignores a moved code version needs a bound in time, not only in age.

A failed read was taken for an empty answer, all over the farm host

An audit of the farm host’s handlers listed 24 places in 7 files where a broad catch returned an empty value when a read failed. Read at their callers, the empty value meant something different each time. ‘Not held’ made the caller look at the queue, which is safe. ‘No voice service answers’ left a card whose only work was voice idle, with no word said. The sharpest case was a handler that read a document, got the empty default from a failed read, changed it and saved it back, so every entry no run had adopted yet was erased. And a pacing file that was present but unreadable was read as ‘never asked’, which let through the very redial that the rule against connecting again and again forbids.

Fix: A read that feeds a save now goes through the store’s own read-for-update, which returns an unread mark and writes nothing. A pacing file that cannot be read holds the ask, and only a missing file means it was never asked. Each broad catch is either marked unread at its caller, or commented and pinned with what its empty value means there.

The rule we keep: Read the caller before judging a catch: what the empty value means there decides whether it fails open. ‘Absent’ and ‘cannot be read’ are different empties and never share one except.

The scheduler handed its limited places to steps that were about to refuse

Three times in two days the scheduler gave a limited thing to a step that was going to be refused. A lane’s one place for cutting went to the first cut in line each cycle, which the start then refused because that cut had just ended at once; the cuts behind it never ran, and the project stood 51 minutes with no reason given. Six cards were leased every cycle to clips whose own start said nothing was owed, so they drew nothing for hours. And on one afternoon 0 of 15 cards drew, because thirteen were leased to stills that all stopped on one missing reference picture, while the page said nothing for 40 minutes. A cap counts the places taken, and a refusal is decided only after the place is given.

Fix: The plan now asks what a start would refuse before it hands out a place or leases a card. A step that would refuse is passed over with its reason, the next in order takes the place, and a stop reason the farm can read in advance is put where the plan reads it and raised as an alarm in the stage’s own words.

The rule we keep: Read the condition aloud: ‘the place is free’ — and ask who frees it. If only a start that runs can, a refused start must never be handed the place.

The page said no deploy had failed, and a check offered to undo a deploy that was fine

Our public build page read ‘web deploy failed: 0’ on a morning when two web deploys had failed. Its one number counted the landings whose exit code was a particular value, and a failure that changes no exit code, or a deploy that hangs and never writes a row, is invisible to that. In the same days the last check of a deploy sent one real request on our own key, which the project’s cap of 10 calls in flight counts, while the farm was using all of them. The gateway answered that the call must wait, and the deploy read that as ‘the portal is not serving’, printed FAILED and offered a rollback of a portal that was serving fine.

Fix: A deploy’s outcome is now read from its own record, per target, matched by head, and a deploy that left no record past its wait bound counts as failed. A check that spends the capped resource waits out a wait answer for up to five minutes and past that says ‘could not test’; only a real failure rolls back.

The rule we keep: Never read an outcome from an exit code alone, and give every check an answer for ‘not yet’ and for ‘no record’, so a call told to wait is neither a pass nor a failure.

Asking again got the same answer, and giving up held everything behind it

A step that boards a script asked a model the same question four times with the temperature at zero, and got the same empty answer four times, after two sentences had been added to the prompt to cure it; the log showed the part had reached the model each time. In another step, a chant that was not heard in any of 9 takes over 3 rounds was marked ‘never asked again’, and the film waited behind that one shot it would never get: its cut sat ‘not finished’ for 18 minutes and counting. The bound that was right for the step had become a permanent hold on everything after it.

Fix: A retry now names what the last answer left out, a worded fix is measured on several cases of its shape, and a stage that can be refused for an empty part writes that part by code and says so on the board. When a step’s tries are spent, the best take is put in place and said on the page as a known miss, what follows goes ahead, and the step is asked again after a long bound.

The rule we keep: A retry that repeats its question repeats its answer. A step that gives up must hand its best result forward, so that a bound on the step is never a hold on the work behind it.

The machine was missing a tool, and the page told the person to change their idea

Ten presses of ‘write my script from this idea’ in twenty-four minutes each ended in a refusal that told the person to change the idea. The machine that ran the step had no copy of the writing program installed, and the step treated its own failure as the person’s. The same mistake took other forms that week: a clip’s strip of frames was marked as failed for ever because the machine lacked a tool, a draft refused because the studio had not yet taken the project in was answered with the same advice about the idea, and a sweep that closes finished tickets wrote 110 rows that all said it had failed, because it vouched only for numbers that its own machine’s bridge had read, a list the old machine had and the new one never did.

Fix: A writer that gives no answer now keeps the person’s ask and tries again, and only a refusal of the content is theirs to answer. A refusal chooses its next step by its cause, a machine’s missing tool is never kept as an item’s failure (the stage waits for the machine’s tools), and the sweep vouches for the numbers a landed change named.

The rule we keep: A step that answers a person has two kinds of failure: a refusal about their content, which is theirs to fix, and no answer from the writer, which is ours. Say which one it is.

A shared name was read as if it were ours

One repository and one machine are shared by many processes, and three times in two days a program read a shared name as its own. A deployment fetched a branch and then read the repository’s single record of the last fetch, and another deployment’s fetch landed between the two lines, so it was refused for a ‘diverged’ main that had never moved. Six background waits written as ‘until no process matches this branch name’ never ended, because the shell running the loop carries the same words on its own command line; one of them held a ship’s place and blocked an urgent change. And a start that asked ‘is the port listening?’ passed on a receiver left behind by a crash, which held the port with a different key, so every manifest was refused.

Fix: Each program now fetches into a named reference and reads that, a wait on a ship watches it with a tool that ends by itself or by its process number, and a start ends whatever holds the port, waits for it to be free, and reads ‘up’ only when the listener is its own process or its child. A guard bars reading the shared record at all.

The rule we keep: In a tree or on a machine that more than one process uses, read what you just wrote by its own name, and ask whether it was you who answered.

A name, a count and a filter each stood for more than they could

Three readings went wrong the same way: a derived label was taken to hold more than it did. A name built from how many languages a project has would have renamed every voice line, clip and cut of a finished film on the day a second language was added. A restart check compared the number of drawn stills across a re-approval of the board, 1239 down to 1236, and said STOP because a count had fallen, when nothing had been lost: the re-approval had added six sung shots and redrawn seven. And a filter on a model’s full identifier found 0 jobs and was read as ‘that model has not drawn’, when the farm’s job names carry a shortened stem of it and every one of them had succeeded.

Fix: One function now decides a name’s language tag at every site, so the first language keeps its names when another is added. A count is recorded with the board version it was taken under, and a fall under a new version is explained shot by shot. A read of the farm’s jobs selects by project and step and lists the stems it finds.

The rule we keep: A count is a count of one version of its board, a name is not a statement about how many there are, and a count of nothing from a filter is no answer until the unfiltered list has been read.

The page undid what the person had just chosen

Three different paths led to the same result: a person made a choice and the system quietly put it back. A press that cleared a mark removed the key from an episode’s own settings, and in a layered store removing a key means ‘inherit the parent’, so the series’ old value showed through and the episode stayed unstated after its frame was chosen. A form opened at once from what the page held and then filled itself from a read that was still out; when the read landed it reset the kind the person had picked to its default. And ‘add a shot after this one’ was refused whenever the board had changed anywhere since the page opened, with a message showing two internal revision ids.

Fix: A press that clears a mark now writes the cleared value into the child’s own settings and never removes the key; a form fills a default only while nothing has been chosen, and its test holds the network read instead of waiting for it; a person’s write is refused only when what it read has moved, and its refusal says in words what to do, with no internal id.

The rule we keep: In a layered store ‘remove my key’ means ‘inherit’, never ‘false’. Any code that opens a form, waits for a read and then sets a field sets it only if the person has not touched it, and a check of a write compares against what the write read.

The red we were told about was not the only one

A change landed with a new failure because the main branch was already red in the same guard test, and the check matches failures by test name: a guard that lists many items fails as one name, and a name that is red on main hides every new item added to it. A run said four had failed and named three; the fourth was the change’s own test, red on main for about 20 minutes. A page redesign was handed over with one named red, and running every script of that page found seven more regressions behind it, along with template text shown as if it were data. And in a file where all 16 tests failed, the pure ones included, there was one fault: a top-level hook inserting a value that the column’s type does not allow.

Fix: A ready line’s reds are now compared by their failure messages on both sides, not by name alone, and a count of failures higher than the names printed is chased to the last name before the change is declared ready. A page redesign runs against every script of its page, and the test runner prints each failure’s own error block.

The rule we keep: A named red is where to start, not the list. When a whole file is red, read its shared hook and imports first; when a count and its names disagree, the missing name is yours until proved otherwise.

A merge looked clean and undid other people’s work

Squashing a branch with a soft reset after the main branch had moved on by 89 files staged our old tree against the new main: 6863 deletions of other people’s work, caught only by reading the staged diff before the commit. A claim row released in a shared file came back, because that file merges by keeping both sides’ lines and any branch cut before the release put the row back. Two changes dropped six days earlier and merged again onto the new main came back with 141 and 162 claim rows that main had since released, and deleted two files they never meant to touch. And four changes that each added a verb to the same one-line list conflicted with one another.

Fix: A squash now merges the base first and checks that the diff against it lists only the branch’s own files. A release is made on a branch cut from the newest main and read back afterwards, a re-merged change is read against its merge’s own statistics and takes main’s copy of shared files, and a list that many changes extend is written one item a line and read from one source.

The rule we keep: A clean-looking merge is a claim about the base it was made on. Read the merge’s own statistics, and keep every shared list one item to a line.

It worked on one operating system and failed without a word on the other

A crash heal restored 4824 tracked files with one git command, which passed the operating system’s limit of 32,767 characters on a command line and ended in a bare ‘file not found’. Next, a new machine’s commit hook was written without the execute bit, and git on that system silently skips such a hook, so no commit there ran the safety scan until someone noticed that a commit printed no scan line. A scheduled job ran with a bare environment and could not find a tool that lived in a user’s own folder, and reported only a generic error. And a shell on the other system rewrote the page route ‘#/projects’ into a file path, so the page answered ‘not found’, which could have been read as a studio with no projects.

Fix: Lists of paths now go to git on standard input, never in the command line. The installer of the hook makes it executable, a missing tool is named in its error’s class, and a scheduled job names the path its tools need.

The rule we keep: On every new machine an agent commits from, check that the hook is executable and that a commit prints the scan’s own line. A ‘not found’ from a driver is checked against the address the browser actually opened, and drivers run with the shell’s path rewriting off.

A timeout and a slow connection each meant something other than we thought

A copy of many gigabytes to the farm’s host sent 22.5 gigabytes in 42 minutes and landed 24 files. Each request body went out in one send call, and a socket’s timeout bounds the whole of such a call: a batch of 64 megabytes at about a tenth of a megabyte a second never finished inside a timeout of 120 seconds, so 11,459 of 13,446 files failed and were sent again. Elsewhere every stall of the host’s watchdog was blamed on the newer internet address family; a timed connect to each address in turn showed that family was not in use at all, and that one of the site’s two addresses timed out while the other answered in a tenth of a second, so the first cycle took 10.8 hours. And a liveness probe moved onto the one connection that carries a card’s work would have queued behind a long download, so two missed probes would have read a busy card as dead and freed its lease.

Fix: Large bodies now go out in one-megabyte sends, each under its own timeout, in batches a quarter of the old size so that a lost batch costs less. A slow call to a host behind several addresses is measured per address before a cause is named, and a liveness read keeps a connection of its own per card.

The rule we keep: A timeout around a whole send is a minimum throughput, not a stall detector, and a slow call is measured per address before a protocol is blamed.

A pause, a cancel and an approval each reached only the first place that read them

When the owner paused the farm, 11 cards were switched off and the door that hands work to the pulling workers still showed work claimed, because the pause lived in a record that only the scheduler read. A hung clip came back to the card it hung on 8 times, about seven minutes apart, because the retry kept it away for six looks, about nine seconds, and the cancel had not stopped the prompt. The follower that updates the tree the farm runs from took whatever the shared branch held, rather than the head the shipping step had published as landed, so a push that bypassed the ship would have gone straight in. And an early return that guarded two acts with different needs stopped the cheap one together with the expensive one when the farm moved to another machine.

Fix: The farm now puts its whole off set on the door each round and the door gives a paused card nothing new. A hung clip is kept off a card by time while another card serves. The shipping step publishes the head it landed as a pointer that only it may move, and the follower takes only that. Each act is gated on what it needs.

The rule we keep: A control written where one reader looks reaches only that reader. List every place work is taken from, and have a consumer act on a fact its gate publishes, never on a place that anything can write.

A file that had not arrived was read as a picture never drawn

After the farm’s files moved to a new host, ten verifies erased every ‘not copied yet’ mark, and the stage that fixes shots’ words ran while the pictures were still on the old host. It found no take on disk, read that as ‘not drawn’, and rewrote the words of 345 shots that had already been drawn. The repair failed the same way from the other side: three dry runs of the move that puts earlier words back restored 0 of 345 shots, ‘not in the store’, because one backend of the store had a method stubbed to return nothing, and every caller read that nothing as a fact about the data while the copying of files was chased as the cause.

Fix: Unknown is no longer absent. A stage that decides from files on disk runs only where the project’s media is verified, and otherwise reads ‘unknown’; a backend that cannot answer a method says so instead of returning nothing, and the second backend is tested with the shapes of the first.

The rule we keep: ‘No file found’ is a fact about the machine until the files are known to be there. When a reader says ‘not in the store’, ask which store the project uses and whether that backend answers the question, before moving any file.

A look was judged before its own noise was measured

Three measurements of a film’s look in two days. Three copies of one scene with three different look sentences moved the palette a long way, but a fourth copy drawn with today’s own look showed what two draws of the same look differ by, a hue distance of 0.125; two of the three moved more than twice that and the third sat inside it. A direction written into the board writer’s shared words raised the distinct framing and angle pairs from 4 to 8 and lost no script actions, but left the same 11 talking heads facing the camera in every run, and an emphasis over-steered close-ups from 38 to 67 percent. And what eight films seemed to share to the eye, a golden key light with a teal counter-colour, was warmth when counted in pixels on five of them: 72-97 percent of the colour was warm, and teal was 0.5-3.7 percent.

Fix: A lever’s effect is now read against two draws of the same thing before it is named, with a control that is a copy and not the live film. A direction is judged on variety, on the checks and on the actions shown, pooled over three runs, and a name for a look is a hypothesis handed to a measurement made by code.

The rule we keep: Measure the noise first: it costs one extra copy. And name what a set of pictures shares only after counting it.

Two readers read nothing, and said nothing

A function that picks which line names the main agent from several files used a pattern whose time had to be followed at once by a closing bracket, while the file had written more words inside the bracket for days. The optional group never matched, nothing said so, and ‘the newest wins’ quietly became ‘the first read wins’, so a stale session named the main agent. A script reader took a speaker’s name only when it began a block, so a script typed with the name straight under an action line read as one action; the breakdown held no lines, every part answered that it had no shots, and the board was refused.

Fix: The pattern now accepts what its writer writes, and the script reader takes a name line wherever it stands. A test of a parser starts from the text its writer writes today, and asserts that an optional group which decides an order matched on the real input.

The rule we keep: An optional group makes a pattern pass on text it does not understand, and the code that reads the group falls back in silence. Read a value of authority only where its owner writes it.

Still open: A read that finds no lines in a script that has bold name lines should be raised as an alarm instead of returned as a quiet empty breakdown; that check is not built yet.

A model setup looked pinned and was not

A speech model’s files recorded the version of their main library that they were saved with, 4.52.4, and the resolver chose 5.20.2, with newer releases of two libraries beside it. A graphics toolchain was pinned by the version of its front end, while the compiler’s middle part was taken by the package manager at a newer release, and a language model’s first run died at the first compile with an ‘unsupported version’ error. The fallback for that was an environment variable that the server software silently ignores unless it reads that exact name, so a misspelt one would have changed nothing and said nothing. And a Hindi voice model that looked ready by its name, size and card turned out, when its own run script was read, to load files from its authors’ own directories and to lack 3 of the checkpoints it needs; its repository was 1.27 gigabytes where the survey a few days earlier had measured 3.57 gigabytes.

Fix: A toolchain is now pinned by reading every installed package of its family and refusing unless each tool that runs reports the one release, and a recipe’s environment may name only variables that the server’s own source declares.

The rule we keep: Before a model’s environment is resolved, read the library version its own config records and pin it. Before a model is pinned or offered, read its run script and list every file it reads; a name, a size and a model card are not that.

A model’s review quoted every line exactly, and its severity was not worth ranking by

The first round of an architecture review sent 87 slice-and-lens prompts to our language model and got 219 findings back. Every quoted line was exactly on its cited line, 219 of 219, so citation was no problem. Read by eye, two rounds of the review had 69 and 74 percent of their findings true, and 6 of the 20 one round labelled high were fallbacks that their caller handles: the model reads a catch that returns an empty value without reading the caller, which often sits outside the slice. And a docstring that said an unreadable record ‘is still off’ sat above a catch that returned an empty table, which turns every card on, in a scheduler area that holds 127 such broad catches. The sentence in the docstring was not the code.

The rule we keep: In a review fan-out, never rank by the model’s severity: for every silent-answer finding read the caller, and read the catch branch beneath any docstring that says a failure is closed. Only the code is run.

A time with no zone was read in the wrong one, twice

A page said ‘a newer cut was made’ for a film’s own cut. One record held the mix report’s wall-clock time with no zone, written in one zone; the other held the file’s modification time in another. It was one cut with the same seconds and two stamps, an hour and a half apart because of the copy in the move. The feed’s door gives every time that has no zone its own host’s offset, which is right for a time this host wrote and wrong for a record another machine wrote, and the farm also compared such stamps as strings. The same week a test passed on one machine and failed on another: the harness’s own database connection skipped the zone setting the app’s pool applies to every connection, so ‘now plus a quarter of an hour’ was written in each machine’s own zone, and on one of them the link read as already expired.

Fix: A record’s time is now stamped with its offset where it is written and compared as an instant, never as a string, and a second connection to the app’s database sets the same zone as the app’s pool.

The rule we keep: A time with no zone names no instant once it leaves the machine that wrote it, and a door can add only its own offset. Every second connection to a database runs the session settings the app’s pool runs, the time zone first.

Built, registered and shown on the page, and nothing ran it

A request to put a version number on every deployment page was closed on its page half alone: the page read the release record’s version, nothing wrote it, and every page said ‘no version’ for a day. In another corner, the parts of a check sat registered, and shown on the checks page, 4 days after the change that removed their only caller; their tests called the reader directly, so everything passed while the check ran nowhere.

Fix: The release record now carries its version and target, with a test on the writer’s side as well as the reader’s, and the cut asks the check of the record it has just written.

The rule we keep: A field that one half reads and another half writes is not done until the writer exists, so search the writer for the key before saying a change closes its request. A check is wired by its caller, not by its row.

Added on 18 October

On 18 October, after the post’s previous update, we wrote down 173 more lessons. The 23 below tell 50 of them; the other 123 stay in our own notes, each with the reason it is not here.

Churn, not traffic, got our addresses banned

Our internet provider told us our addresses were being blocked for making too many connections to the render boxes. The number of connections we held open was never the problem; the churn was. A poller opened a new connection to every card for each reading, about 112 new connections a minute in bursts, while one held session carried fine. A link that could not connect was redialled every 15 seconds, for ever. And the service that holds one connection to each box restarted itself whenever its code changed, so a landing that touched it dropped and redialled all 12 boxes at once; several of the day’s own fixes to that service each caused one. From the far end, a reconnect loop tuned to land the one connection that gets through is a connection storm.

Fix: One rule in one place now paces every redial: after three losses in a row the wait is 15 minutes, doubling to 60, and only a link held 10 minutes starts the count again. A connection holder notes new code and adopts it on a schedule, never per landing, and a stage no longer probes a card the readiness check already holds out.

The rule we keep: Before adding a dial, ask whether it runs more than once. If it does, it holds its connection or rides one that is held, and a design’s new connections a minute are counted before it ships.

A guard on the readers we knew missed the one we did not

After the farm page’s card readings moved onto the held connections, one box’s own login journal still showed a fresh login every 15 seconds with its own key. A small poller of processor and memory use was logging in to every machine each round, through a connect function another module handed it. Our guard listed which modules import the SSH library; the poller imports none, so it passed. The search for call sites missed it too, because it was a search for the readings we remembered, not a question of what still logs in.

Fix: The poller’s command now runs over each held connection, and the guard reads behaviour: one whole round of the farm page runs with every login function made to fail the test, so there is no list for a new indirection to walk past.

The rule we keep: When a class of work moves off a resource, prove it by running the whole consumer with the old path made to fail, and read the far side’s own log, never only our code.

A wait written to prevent a ban took the text service down

The held link that carries customers’ text to our language model broke, and every redial after it timed out. Under the new pacing rule the third loss waits 900 seconds, the fourth 1,800 and the fifth 3,600. The link came back only when an install restarted its service, about two hours later. Meanwhile the gateway answered 7,682 and then 14,933 errors, and nothing raised an alarm: the outage was found from the gateway’s own counts an hour and a half after it began. A wait written against connection churn, right for many holders dialling public addresses, had been applied unchanged to the one link the paid service depends on.

The rule we keep: Before a back-off reaches a link, ask what is served through it. A customer-facing link gets seconds and an alarm, never minutes of silence, and a pacing rule’s test includes how long the critical link can stay down, not only the dials an hour it saves.

Still open: The long waits are to apply only to dials to public addresses, with seconds between tries on our private network, and a watchdog is to raise the text service as down after three failed minutes; both are written and not yet released.

A crash leaves files full of zeros, and every reader must know a torn one

This development machine reset four times in one day, and each hard reset left the files written in its last seconds as zero bytes of their full length. Two settings an install had written once, which kept git’s own background maintenance off, were most likely lost when git’s configuration was rebuilt after a crash zeroed it. Another reset tore a temporary reference into 41 zero bytes; the cleanup that should have removed it sat in a finally block the crash never ran, and every fetch failed until it was moved. The last tore the lock every release takes, and the release tool read the unreadable lock as another holder, so no release could start. It also cut a release mid-way through deploying the website: its code was live and nothing recorded that the website step had finished.

Fix: Something that runs constantly now re-asserts what an install wrote once: every release checks both settings and restores them. Anything a process writes into a shared store and removes in a finally block carries its writer’s process id in its name, and the next user of the store moves aside every such entry that is torn or whose writer is gone. And the release tool’s first step now heals what a crash tore before it reads any of it: every lock, ticket and git index that is all zeros or missing is moved aside, never deleted, and rebuilt from the last commit.

The rule we keep: A finally block is not cleanup: a crash skips it. After a reset, look for zero-headed files written in the minutes before it, set them aside and never delete them, and read a release the crash cut three ways (the code, the website’s release line, the landing record) before calling it deployed.

A command inside a while-read loop ate the loop’s input

A background test pass fed its groups of page scripts to the test runner through a shell while-read loop. Only the first group ever ran: the runner, started inside the loop, inherited the loop’s standard input and read the rest of the list, so the loop ended after one pass. 26 of 27 page scripts went untested, and the pass still reported that it was done.

The rule we keep: A command inside a while-read loop gets its standard input from nowhere, or the loop walks a list instead of its input. A pass that runs a known number of steps counts its result lines against that number, never only that it reached the end.

A retry loop that stopped on words overwrote the only real verdict

While our test machines flapped, a loop retried the pre-release test run on a timer and stopped only when the output no longer held the words not run. One try reached a machine and came back with a real verdict, 567 tests passed and a failure in the quick checks, whose lines also say not run for one batch. The loop read that as not run and went on, the two tries after it overwrote the one real verdict, and the run had to be made again.

The rule we keep: A retry loop stops on the tool’s own exit code, never on words in its output, which a real verdict can contain too, and each try writes its output to a file of its own.

A condition narrowed for one decision changed another

Our model client was taught that a gateway restarting for maintenance is not a busy server, so that a planned restart would not halve how many calls we send. The same flag also allowed the failover to our second route. From then on a restart with the second route up neither waited nor failed over: every attempt went back to the gateway, and the call raised. When the main model server was cut off that evening and the gateway answered maintenance to everything, all text work failed. A test that would have shown it had gone red the morning the change landed; the change’s own targeted run had not included it.

Fix: A restart with the second route up now fails over, and the limit is still not halved for it.

The rule we keep: Before narrowing a condition, find every reader of it and say for each whether it should change, and run every test that raises the error the condition reads.

A client test that agreed with the client by construction

The test machine’s writes to its results database came back not found on every cycle from the day the door was built until that afternoon. The client’s base address ended in a version segment and the write paths began with the same segment, so every post went to a path that carried the version twice. Two tests passed the whole time: each pinned the client’s own constant and faked the server at whatever address the client built. When the base moved, the same wrong suffix was copied into the code and its test together.

Fix: A test now composes the exact address the client sends and checks it against the server’s own mount and route list, read from the server’s source.

The rule we keep: A defect in the join between two codebases is tested from both sides. And when a door never has rows, read the writer’s own log for the status code before changing the transport.

Three liveness checks judged evidence that was not their own

Three times in a day a check of whether something is alive judged it by evidence that was not its own. The service holding a connection to each box cut healthy links as silent: one unreachable box’s dial blocked its beat for 15 seconds, the boxes after it got no probe, and 20 seconds of a silence the service had made itself cut them; a probe answer that arrived late was counted as none. When the farm moved to a new host, it carried the old scheduler’s last status, and the new host’s watchdog read it as its own scheduler showing no sign of life for 140 minutes and stopped the new scheduler two minutes into its life. And a record mirrored from another machine carried that machine’s process ids, which a local reader judged as its own dead processes.

Fix: A late answer is now an answer and each probe runs on a thread of its own; a status older than the live scheduler’s start is not its own; and a mirrored start is never judged by a local process id.

The rule we keep: A has-it-shown-life rule compares the evidence’s time with the process’s own start, counts silence only over probes it actually asked, and never reads a record from another machine as this machine’s process. Times travel with their zone.

The blame fell on the wrong change, three ways

Our release tool tests a train of changes together and, when the train fails, bisects to name the change that broke it. In one day it blamed the wrong change three ways. A bisect over four days of landings ran today’s failing test files at old commits, where files written today did not exist, so every probe read red and the search fell to the first landing after the last green one. A train’s bisection took every red in the log, including the ones the smoke test had already marked as red on main before the merge, and named a change that had broken nothing. And a change named the breaker was red alone only because main itself failed the same guard.

Fix: A probe at an older commit now runs only the test files that exist there, and every step after the smoke reads the smoke’s own verdict of which reds the merge caused.

The rule we keep: A red is read for what it is about before it is blamed: a missing input is not a failing commit, and a red already on main is no change’s. Before reworking a change named the breaker, run the failing test on main’s own head.

A follower that acted only on a change never acted at all

After our test server moved, its follower started and its journal read no journal yet. The install had left its copy at the live head, and the follower started a slow test run only when the shared repository moved to a new head, so the head it started on would not have been tested until the next landing. We were about to undo the move for a silence that was the design’s.

Fix: The follower now acts on the state it finds, a head with no verdict, with its own guard against running twice, and a test starts it at an already-current state and expects work.

The rule we keep: A process that reacts to events also looks at the state it starts in: the first look after an install is the one that matters most, and nothing changes in it.

Every cut dipped to silence because every sound faded at its edges

A viewer heard a gap in the sound between the shots of our short reels, as if the cuts were not proper. The first suspect was the silence a voice take carries before and after its words. A measurement of the shipped cuts said otherwise: of 54 shot boundaries, 49 fall silent right at the cut, and a reel with no voice at all still dips at every cut. Read in short windows, the level falls about 25 decibels in a V around each cut: the background sound of each shot faded out at its end and in at its start, a fade written for the first and last edge of a film and applied at every edge.

The rule we keep: Before fixing a gap the ear reports, read the level around the cut in short windows: a V is a fade, a flat floor is a missing sound, a step is padding. A sound that meets another at a cut crossfades; it fades to nothing only into true silence or at the film’s ends.

Still open: A check that reads the shipped cut’s sound at every boundary, for every production, and the crossfade itself; both are being written.

A move sized from old notes and one stream’s speed

Moving the farm’s data to a new host went wrong in four small ways before its large part moved. One file-transfer stream measured 0.7 megabytes a second over a line both ends measured near a gigabit, and splitting it into channels of the same login scaled nothing, because they share one connection. The runbook’s sizes were stale: measured on disk, the studio’s folder held 471 gigabytes in 2.7 million files, which at that rate was about 230 hours, not 42. The uploader asked the receiver one question per folder, 35,581 calls in a row, about 40 minutes of round trips for about 2 minutes of bytes. And its thread pool kept each failed job’s exception in a result nobody read, so a dropped connection would have counted as neither landed nor failed.

Fix: The uploader now asks by full path, thousands of files a call, and wraps every pooled job so that its failure is a named failed file. The first pass then moved 95,606 files in 262 seconds.

The rule we keep: Before a copier or any per-item protocol runs on a list, count the list’s items, folders and sizes on disk that day, and measure the protocol against the line’s own number. A job of a thread pool that raises is a named failure, never a lost result.

A host move carried the old machine’s switches and left the ones beside the data

When the farm moved to its new host, its database was copied whole, but not the small file beside it that says which store to read, and with no such file the code falls back to an older store: every service on the new host came up deciding from stale files. A widened copy list carried the old machine’s own raised stop flag to the new host. The records the box tools write stayed behind, so a gate that reads a missing set-aside record as clear would have let a box set aside for a hardware fault take work. And the move’s last step, starting the farm on the new host, had no tool until after the switch.

Fix: A machine’s own switch files are now decided by name in the copy; a restart verb refuses unless the store switch beside the database reads right, and prints every line of its check; and every reader that turns local files into a public number asks the same is-it-here-yet mark while the data moves in parts. A box with no records on the farm’s host is now refused, its set-aside unreadable, until its records are carried there.

The rule we keep: A cutover lists each store by who reads it, not by who writes it, and names every step on the new host as a tool before the drain. A gate that refuses treats no record at all as unknown, never as clear.

A read that failed was taken for a no

After a crash zeroed the repository’s configuration and index, every git command failed, and our GitHub status round started anyway. It decides whether a pull request has landed by a git ancestry check, which said no when git could not answer at all, so merged pull requests were posted publicly as still waiting. The same day, a script that repairs broken references walked the list git gave it and found none, because that listing leaves a broken reference out with only a warning on its error stream. And a new walk over every reference used the option that turns one broken reference into everyone’s outage, when the repository already had the one reader that skips them.

Fix: The status round now asks first whether git can be read at all, and when it cannot it posts nothing and says why. The repair reads the listing’s warnings as well as its list, and every walk over every reference goes through the one reader that names and skips a broken one.

The rule we keep: A check that cannot be made is not a no. A round that cannot read its source posts nothing and says why, and a look that finds nothing while the fault is live is a reader that cannot see the fault.

Our own rule for short output hid a call

We keep what our commands print short, cutting long lines at a fixed width, so a working session is not filled by what its tools print back. Asked whether a customer’s film page drew a card, we searched for the call that draws it and cut each hit. The third hit was a template line of 2,000 characters with its match far past column 180, so what showed was markup, and the hit was read as unrelated. We reported the card missing, a second copy was added, and the page’s own test caught two cards.

The rule we keep: A search hit whose line is cut short is read at its match, never from the line’s start, before any claim that a call is absent.

A list of states written from reports said things were live that never were

Our launch list keeps a state for each piece of the launch. Read again after a crash, several rows had said ready, or landed on main, for five days, and none of their code had ever been on main: their changes were dropped around an emergency release. Each cell had been written from a report and never read back. Checking by branch failed both ways: rows that had landed under renamed branches read as missing too.

The rule we keep: A state cell is a claim, and a claim copied from a report goes stale in silence. A row’s state is checked against the content on main, the page hook it names, its file, its migration, never against a branch name or a note.

Still open: The launch list’s own test is to fail on a stale cell, by finding each live row’s hook in main’s tree.

Two green guards proved nothing

Two new guard tests went green and proved nothing. One shipped while no test machine answered: its scan of the repository was dry-read by hand and held, but its own self-test samples were never fed through its pattern, and one of them, a kill command with a numeric option, did not match, so it went red at its first real run. The other searched the repository with an exclusion that git reads as an option it does not know: git stopped with exit code 128 and no output, and the empty output read as no stray copy on every run. It was the same fault the day before had taught us, in a different guard, and it was found only because a planted second copy did not fail it.

Fix: That guard now walks the repository through the one helper that raises when git refuses the listing.

The rule we keep: Watch every new guard fail on a planted defect before trusting it to pass, and when a test cannot run before it ships, feed every one of its own assertions through the code under test by hand.

A busy read was saved back as empty, and a watch took the gap for news

During the farm’s move to its new host, a tool that confirms a project’s media has arrived ran once for each copied project. Each run read a shared farm document, took one name off it and saved it back, while the new host’s scheduler held the database. The read’s error handler answered a busy database with an empty document, so each run saved that no project was waiting, and the other ~69 projects lost their not-copied-yet mark. Within minutes the page rebuilt finished films from a disk that did not hold their media and the scheduler began planning some of them again from the start, while every run printed that every file was there. The database layer already had a reader that tells a missing document from an unreadable one, written after the same kind of loss had once erased two days of steps; the new module, written in a hurry for the move, used the convenient loader that folds the two together. Downstream, a producer’s watch on the page saw films’ cut times vanish and reported each one as a new cut.

Fix: That module now reads with the reader that tells the two apart: a read that fails raises and saves nothing, and the gate that decides whether a project’s work may start waits on a failed read instead of taking it as nothing waiting. The lost marks were put back by naming every source project and letting only the farm’s own check take one off.

The rule we keep: A guard written for one module’s reader does not hold the next module, so ask of every read-modify-write how its read fails. A watch wakes only on a new value that is there; a value that disappears is a reading of the page, often of one that is rebuilding, never an event.

Still open: Another eight functions in the farm’s code load and save the same way and have not yet been read for it.

The truth for a movement check was kept in a form that could not show the movement

To measure a check of whether a clip performs the movement its words ask for, we keep the shots it got wrong as cases and write the right answer for each by eye. A kept clip case turned out not to be the clip: it holds the shot’s first 7 frames, its last 7 and one moment between, about 0.3 seconds at each end. That shows an end state, such as a lean that is held, but not a nod, a shrug or a clap that comes and goes inside the shot. Of 22 kept gesture cases, 8 could not be judged from what was kept and only 3 showed the gesture. The same day the form that keeps cases stored every case as a defect, the ones whose own words began by saying the clip was right included, because it has no field for a verdict; and the first answers had been judged against the script, when the clips were drawn from the board’s words, which differed from it.

The rule we keep: Before a check is measured on a truth, read the truth back: the kind each case was stored as, the words it was judged against, and whether what was kept can show the fault at all. A movement that leaves no end state is labelled unseen, never absent, and the clip is kept whole for it.

Still open: The form is to take a verdict for each case, the check it is kept for and a way to withdraw it; until then a reader takes each case’s own first word, right or wrong, never its stored kind.

A test that was called red had never been run

A change waited a day in the queue marked ‘its test was not watched red’. When the test was finally run it was red on the branch itself, because a node that should have carried the new words still read the old ones, so the change had never been green either. A concurrency test committed as red passed on the old code in 5.3 seconds: it waited for an event, the wait timed out, and the event’s flag was set afterwards because the serial code reached the same end state. And a handover that listed a change as ‘re-ready’ failed when it was run on that day’s main branch.

The rule we keep: A change is ready only after its test has been run twice, red on the old code and green on the new. A concurrency test asserts what the wait returned, never the event’s state afterwards, and a held change is run again on today’s main, with every test that reaches the modules it changed, before its ready line.

The page said ‘waiting its turn’ while every cut had failed

After the farm moved to a new host, every cut failed because the concatenation step could not find the video tool, while the scheduler page kept naming the failed cuts as ‘waiting its turn’. The page showed no failure, so the line looked merely slow: one film waited 3.4 hours. The cause was only in the cut run’s own log. Elsewhere, four cards that only draw stills were shown as ‘free and idle: the plan gave it no step’ with 80 waiting, because a cause was written only for cards that had minutes of idle-while-waiting, which is the alarm’s own count. The cause and the alarm answer different questions.

Fix: The page now gives every idle card a cause, whatever the alarm’s count says.

The rule we keep: A stage that fails and is queued again reads the same as one waiting for a slot, so read its run log’s outcome in the same round. A cause shown on a page is never gated on the count of an alarm.

Moving the agents to another machine broke everything that lived on the old one

On the first day the agents ran on a second, Linux machine instead of the owner’s computer, the blog builds named the studio by one machine’s paths and read nothing there. A Windows path on Linux is not an error but a relative folder: the memory tool’s second store wrote a folder named for a drive into the clone, 3,188 files by midday. The clone itself was 57 commits behind the shared branch an hour after it was made, and nobody fast-forwards it. A reply tool refused a thread because each machine’s bridge state is its own, and the test tool could not reach the test machine at all, so changes went on the shipping step’s own smoke alone.

Fix: The builds now find the live tree by its checkout and refuse a tree that is behind the shared branch.

The rule we keep: When a tool moves to a new machine, list every file, reference and state it kept on the old one, and check each: a path that reads nothing, a default that writes a relative folder, a clone nobody pulls.

Added on 17 October

On 17 October, after the post’s previous update, we wrote down 249 more lessons. The 26 below tell 35 of them; the other 214 stay in our own notes, each with the reason it is not here.

A guard whose own search failed passed in silence

We added a test that refuses any code reading the repository’s branch list outside one helper. It passed on the old code: the very code it was written to refuse. Its search left out a folder whose name starts with an underscore, git read that exclusion as an option it does not know and stopped with exit code 128 and no output, and the test never looked at the exit code, so an empty listing read as no reader found. It was the same failure the change itself was fixing: a reader that reads nothing and carries on. The red run on the old code had shown it: the 2 tests that passed there were this guard and its own pattern check.

Fix: A guard that lists the repository walks it through one helper that raises when git refuses the listing, and another guard refuses a test that lists the repository by itself.

The rule we keep: A guard’s own search is a reader like any other: no answer is never a pass. Watch a new guard fail on the old code before trusting it to pass, and read which tests passed in that red run.

The list of tests came from one tree and ran on another

Five of our pre-ship test runs in one afternoon ended with no tests collected at all, though a plain run of the same 178 files collected and ran 1079 tests. The tool listed the files from the change’s own branch, while the CI box tests that branch merged into the live code, and a test file the live code had deleted after the branch was cut was still on the list. The test runner answers one missing file by collecting nothing for the whole run, and in parallel mode it said only that no tests ran. Changes branched later passed, so it looked intermittent and pointed at the box.

Fix: The list is filtered by what the merge holds, and what was dropped is said; a run that collects nothing writes the targets it was given, and a collection-only pass over them, into its own log, so the next case names itself.

The rule we keep: A list of things to run is computed from the tree that will run them.

A whole write erased a mark another writer had merged in

Two writers updated the same record for each copied media file. One merged in a mark saying the file’s row had been posted; the other, seconds later, wrote the record whole. Whenever the whole write came second it erased the mark: 20,151 of 88,884 copies read as still owing a row, most of them already posted, and the repair job spent its passes on gaps that were not there while a review page went without sound.

Fix: A mark that means done for this content carries the content key it was made for, so a whole write of new content cannot inherit an old mark.

The rule we keep: When one writer merges into a record and another replaces it whole, the whole write erases the merge whenever it comes second. Either both merge, or the whole write carries over the fields it does not own.

Shown the value it was meant to correct, the model copied it

A story set in an Indian city came out with every person drawn English. We added a read that asks the text model, for each person, the heritage and skin tone the story implies. Its first question listed each person with their current look, and on a test case written before the run the model answered with the very skin tone the current look already gave, for both people, in both runs. With the looks taken out of the question it was right in 3 of 3 runs, and in 3 of 3 on a control case that should change nothing.

Fix: The read is given only the evidence its answer must come from (the script, the setting and the names), and its question says it is not shown how anyone is drawn now.

The rule we keep: A model read that corrects a field is never shown that field. Measure it on a case where the current value is wrong: a read that agrees with what it was shown passes every case where the field was already right.

Padding stacked on the silence the voice files already had

A finished film felt slow, with a pause after every line. A read of its talking takes found silence inside every one: a median of 0.246 seconds at the start of a take and 0.288 at the end. The cut added its own padding before and after each file, so two back-to-back lines sat about 1.34 seconds apart. A take’s file length is not its speech.

The rule we keep: Measure where the speech is inside a generated take before adding padding around it.

Still open: The cut is to lay each talking shot from just before its speech starts to just after it ends, trimming picture and sound together, never by changing a clip’s length, which is part of every lip-sync clip’s name.

A fallback taken piece by piece hid a dead remote

Our cuts send their video segments to remote workers and make here any piece a worker gives up. One afternoon every remote claim went silent. Each piece was made locally only after its own timeout, so every cut still finished, in 36-37 minutes against 10-25 the night before, and the cut lane became the farm’s bottleneck. The log said none were made remotely the whole time, and nothing read it.

Fix: When the remote has made none of a cut’s pieces and one is lost, every open piece is withdrawn and made here at once, and the remote is paused for the next cuts before it is tried again.

The rule we keep: Write the test of the remote making none first: the job should take about as long as doing it all locally, never that plus every timeout. Count what the remote made in the job’s own record, and make zero a finding.

Free seats sat idle while the queue waited half an hour

Our dashboard pages fell half an hour and more behind the farm. The first cause offered, a backlog after an account change, was named from timing alone, and the next hour the wait got worse: a ninetieth percentile of 1,906 seconds. Recording, for every item served, how many were waiting and how many were running told the real story: 0-3 reads running while 56-66 marks waited, with seats free. A rule written for an hour when stage ends held every seat had given code-change marks one seat of their own; when the queue became all code-change marks, the normal seats stood empty.

Fix: Code-change reads take the normal seats nothing else waits for, always leaving one free, and every item served records the waiting and running counts at the moment it was served.

The rule we keep: A seat rule sized for one mix of work starves when the mix flips; write it as taking what nothing else waits for. A cause named from timing alone is a guess until it has its own measurement: many waiting with few running points at the dispatcher, not at capacity.

A chain of ors is an order of who wins, not a share

The page builder chooses what to rebuild next by asking a chain: projects with answered presses, then cuts, then boards, and only when all of those have nothing, a project whose clips have landed. Called alone on the live records, that last function chose correctly. But reviews being answered on several episodes kept the first link supplied all evening, so it made 0 landed jumps, and a test project’s page waited with its clips landed.

Fix: Competing jumps are ordered by one measure, their cost: small pages first, and one long jump per interval shared by every kind.

The rule we keep: The first link of an or-chain that always has a candidate starves every later link. When a later link never fires, read who took the slots, not the later function.

One reviewer’s burst held everyone’s presses for hours

The farm carries out the presses people make on the dashboard one at a time, at about 8.5 seconds each. A reviewer’s 90 review presses on one episode were carried out 2 to 3 hours after they were made, and a project created in the middle of it waited behind them: the queue was first come across every project, and the inbox of new projects was read once a round, where a round ran until the queue was empty. Nothing stalled, so nothing alarmed. A queue that only grows reads as busy, never as a fault.

Fix: The inbox is read between actions; ties go to the project served longest ago; a request that has waited long enough outranks presses made after it; and the backlog’s oldest age is written where the watchdog reads it.

The rule we keep: A queue of people’s presses is measured by the age of its oldest item and served round-robin by source. A read a loop does once a round waits for the whole round.

Two smoke tests proved less than they seemed to

A voice engine’s install passed its smoke test, which imported the package, and then died when the model loaded: a library deep in the chain the model’s own code loads refused the older numerical library the engine pins, and that library declares no such requirement in any release, so no dependency resolver could see the conflict. Two AMD cards passed a smoke test of the attention kernel, joined the clip pool, and then failed clips after full renders of up to 868 seconds: the out-of-memory came in the final decode, with 7.9 GB free, on cards with as much memory as the NVIDIA cards that run the same graph without trouble.

Fix: An engine’s install smoke imports the whole chain its model loads, and the packages that refuse the pinned library without declaring it are named in a test.

The rule we keep: A smoke test proves only what it ran. A card joins a kind of work after one full job of that kind, end to end, at the longest length it will be sent; and a resolver is only as good as what packages declare.

Installing a model: three things we read from the wrong place

A model whose name promised it would fit a card was 248.9 GiB as published, and its four-bit build 153.2 GiB: a parameter count in a name is not a size on disk, and one repository we found held no weights at all. A download proved its files by checksum in the folder the tool was configured with, while the image server on that card read another folder, so the model was invisible to the engine. And a large download ran at 0.82 MB/s for hours because it opened one stream per file, and the probe that sized it measured one stream too.

Fix: Candidates are sized from the bytes of their published files; a download asks the loader itself where it reads, and refuses when the loader does not say; a big file is pulled as several resumable byte ranges and checked whole before it moves in.

The rule we keep: Ask the thing that loads a file whether it sees it, not the disk whether the file is there. Size a model from its files, never its name. Measure a download on the number of streams it will use.

A quoted line in a video prompt came out as a subtitle

A tester saw garbled letters at the bottom of a generated video. Our cut burns in no text, so the letters were the video model’s own. Our boards write a spoken line in quotes inside a shot’s motion words; the rules set those quotes aside, but the prompt builder passed them to the video model unchanged, and a quoted line is exactly what such a model draws as a subtitle. A negative prompt saying text and subtitles would not have helped: most of our clip graphs run in a mode that never reads the negative.

Fix: What the model must not draw is kept out of the prompt itself. Clip words without the quotes are a new level of the words, so clips already made keep their names and nothing is redrawn.

The rule we keep: When the rules and the prompt builder each read the same words, check what the model receives, not what the rules read. A negative prompt helps only where the graph reads one.

Calls that end in the same second are a server going away

A person’s request waited minutes because a batch of model calls failed, and the first diagnosis named an idle time limit at the network’s edge, with a fix that had in fact already shipped. Read properly, every open stream had ended in the same second, twice: 10 reads at the same age with nothing returned, and later 10 calls of another kind, cut mid-answer in under a minute. Calls of different ages and kinds that end together are not a time limit. They are the server, or the path under it, going away.

The rule we keep: Before naming a timeout, group the failures by when they ended, not how long they ran: equal durations with staggered ends mean a limit, staggered durations with one shared end mean a restart. And check that the fix you are about to name has not already landed.

Bookkeeping inside a time limit counted as the work

Our page builder gives each project a time bound, and a test cut a build as having run past it. The build was fast; the bookkeeping around it was not. Inside the bound we also hashed every function the build ran, and a process’s first such record took 0.34 seconds against a bound of 0.3. The test had passed only by a margin, which a hundred or so more lines of code took away.

Fix: Recording is split from summarising: the record is taken inside the bound, and the summary is made after the join, outside it.

The rule we keep: A bound measures the work. Do the bookkeeping after the join.

A benchmark measured our reply cache, not the model

A run comparing models for writing storyboards reported a board written in 2.7 seconds, with 12 board calls and 59 repair calls each logged at zero seconds. Our model client’s result cache, keyed by the exact request and on for the studio’s stages, had answered them with the replies of a run made ten minutes before: the test prompts are the same from run to run. So three runs measured one run and two partial echoes, and wrote into the farm’s cache on the way.

Fix: A measurement that drives the studio’s stages turns the cache off before its first call, and refuses to run without that.

The rule we keep: A call logged at zero seconds in a measurement is a replay, never a fast model.

Two render cards served a text server nobody could call

Our scheduler moves a pair of render cards over to serving text whenever text work is owed. In one night it did so five times, every run served nothing, and 14 voice lines waited for those cards meanwhile. The scheduler counted every text step as demand, but our model client sends only some stages to that server; the rest always go elsewhere. The cards came up for work no caller would ever send them.

Fix: Demand is counted through the same function the callers use to choose the server, and a server that answers no call in its first minutes up gives the cards back and is not asked for again for a while.

The rule we keep: When demand moves a resource to serve a kind of work, count that demand through the function the callers use to choose the resource, and judge the move by the work it served, never by the process being up.

A model dropped the climax of a script that numbered its own shots

A short reel’s script named its four shots itself, each with its timing. The model reading the script returned two scenes, and the last two shots, the climax, were in neither. The plan and the board then made two shots, faithfully; the film ran 8 seconds instead of 15; and no check fired, because each stage was right about what it was given. The page read as on its way to being ready.

Fix: When a script states its structure, code reads it: one scene per named shot, the plan held to one shot per scene, and each shot carrying its stated seconds through the writer’s rounds and every rewrite. Projects built before the rule are split again.

The rule we keep: A structure the writer states in so many words is read by code, and every later stage is held to it; it is never left to a model to rediscover. A split’s output is checked against its input.

A guard on the new path left the old path unguarded

Before a voice job starts on a card, the scheduler empties the card’s image server, so the voice model never loads beside a drawing clip. That check was written for a newer route, a voice sent to a remote box, and a test pinned it to that route alone. The older route, a voice on the card itself, never asked, and two voice jobs started beside 13513 MiB of a video model while a clip was still drawing.

Fix: The check runs for every voice on a card that has an image server, at the point where the routes meet.

The rule we keep: When a guard is added for a new route to a resource, list every route to the same resource and put the guard where they meet. A test that pins the guard to one route pins the gap.

A fix cured new projects and left the refused ones stuck

A fault that refused new projects was fixed one evening. The next morning a project still sat refused by exactly that fault, and six more sat refused by a rule that had since changed, all under a Waiting label that read as if a person owed something. A request the farm has answered as refused is final on the page, and the farm only takes requests still waiting, so a landed fix reached nothing it had already refused.

Fix: Every refusal keeps the code and the rule version that refused it, and when the farm starts on code that changes them it asks the server to reopen those refusals, at most twice each.

The rule we keep: A fix’s reach includes the requests its fault already refused.

Nothing could start, so the count said done

A card on the dashboard counts each version’s clips and says done when it has as many as it wants. The count first left out jobs that were blocked. On a project with no picture picked yet every clip was blocked, so it wanted 0 and had 0, and both versions read done before a single clip was drawn. The test, written first, caught it.

Fix: The count is taken over the cut’s own selection, blocked jobs included, and done requires that something is wanted.

The rule we keep: A filter that drops what cannot start yet turns nothing can start into nothing is left. In any count of N of M, M is what the finished thing needs.

A timeout paused while pending waited for ever on a stopped queue

Our image client stops its timeout clock while a job sits pending on a card, because time in a queue is not time running. The pause asked only whether our job was pending, and a card whose queue has stopped keeps a job pending for ever, so the job was held for ever. A timeout on a running job was also neither cancelled on the card nor put back. The first test of the fix hung on the CI box until its client gave up, with no verdict.

Fix: A job pending while its card runs nothing is given a bound, and every give-up cancels the job on its card and puts it back for the others, a limited number of times.

The rule we keep: A clock reset is a wait like any other: read its condition out loud and ask what moves it. A test of a wait-for-ever bug must fail, not hang.

An answer cached at age zero became a loop

A page check found a project page asking the server for the same list 924 times in four seconds, while every press failed on an element that had left the page. The page kept a no-board-yet answer at age zero, so that the next call would look again; every load ends in a redraw, and the redraw asked the load again. Each step looked right alone, and every page of ours not yet boarded had done it since that change, unseen.

Fix: A not-yet answer is kept as long as any other, with a flag that lets the one event that changes it ask at once, and the page checks count each path’s requests once the page is at rest.

The rule we keep: Never cache an answer at age zero on a path whose load ends in a redraw. Count a page’s requests at rest.

One question answered in two places drifted apart, twice

Two functions decided whether an accepted clip covers a job. A later fix widened one of them on its own, and an episode’s cut waited on a clip that was neither made nor owed. The same week, three readers answered whether a card has a model: the scheduler’s lease read two of them and the card’s worker read the third, so a card was leased work its worker refused, and sat leased and idle.

Fix: Each question has one function. Whether a take covers a job is decided in one place both readers call, and whether a card can do a job is read from the card’s own listing against the files the job’s own graph loads.

The rule we keep: When two places decide one thing, they call one function, and every later fix goes into that function. Test the invariant, not the case: every ready job is made, owed, or blocked with a reason.

The preview played the background sound raw while the film levelled it

A review card promised a clip with its background sound, and played silence. The background recordings were quiet, one as low as -52.04 dBFS, and the card played the raw take turned down further, while the cut levels each one and then raises the whole film’s loudness. A browser’s volume stops at full, and the media host is on another origin, so the page could not fix it alone.

Fix: The farm makes the page’s copy of each background track at its level in the finished mix, and the card’s words follow what the audio element really did.

The rule we keep: A preview that plays a component raw while the product levels it is a different artifact from the one that ships.

Two ways our page tests misread a working page

A producer reported that after Create the address stayed on the new-project form for minutes. The server had answered in 25 ms and the page had moved: in the browser library’s synchronous API the page’s address is updated only while the client is handling a call, and the driver’s loop of sleep, then read, never let it update. Separately, a page test captured each case’s state in a route handler’s default argument; the library hands a handler one argument per parameter, so the state was replaced by the request, the mock failed inside the route, and every case read an empty page. It happened twice more the same day after it was written down.

Fix: A guard refuses any page script that hands a route or an event handler a function with a default argument, and page scripts wait for an address with the library’s own wait.

The rule we keep: A driver’s stale read looks exactly like a page bug: ask the page’s own log what it did before reading the code. A lesson written down did not stop the next two; a guard over the scripts is what holds.

A clip can only move from what its first frame holds

We drew one board with two different video models from the same stills, and both missed the same things: water never reached the kettle, a ball was juggled instead of kicked at a wall, a lid already in hand was lifted again. The motion words were right. The faults were in the picture words, which set up the first frame: the kettle in her lap instead of under the tap, the wall behind the boy, four hands holding two things.

Fix: The board writer is asked four rules while it writes: a container filled from a tap sits under it, one person’s hands hold one thing, the thing acted on is in front of or beside the doer, and a motion never starts with an act the picture shows done.

The rule we keep: A miss two video models share points at the words or the still, not the model. Read the picture words before the motion words.

Added on 16 October

On 16 October, after the post’s previous update, we wrote down 130 more lessons. The 21 below tell 49 of them; the other 81 stay in our own notes, each with the reason it is not here.

An empty answer won the contest for the best plan

Our planner asks a language model to plan a scene shot by shot, then repairs the plan for up to three rounds, keeping each new plan that has no more faults than the one it kept. A plan with no shots at all has exactly one fault: it has no shots. A real plan with two small faults has two. So once the model answered empty in any round, every real plan after it lost, and the repair rounds went on asking the model to repair nothing. Two scenes stood stuck through every round they were given.

Fix: An empty plan is ranked below every real one by a test of its own, and it is asked for afresh with the first prompt, never a repair prompt.

The rule we keep: A count of faults measures how wrong an answer is, not whether there is one. Wherever a loop keeps the best so far by such a count, a missing answer is ranked last by a separate test.

A model that did not answer was recorded as a model that said no

A stage that writes a storyboard ran four attempts in which no part got an answer from the model: every request timed out. It stored the empty result as a refusal, the board has no shots, and a refusal of a first build waits for the writer to post a new version of the script. An outage of the model had become a wait on a person, and nothing would run the stage again.

Fix: The stage counts the answers it actually received; when none came, it raises a no-answer error, keeps no refusal and is offered again. A model that answers with no shots is still refused.

The rule we keep: Count the answers before calling an empty result a verdict. An outage is retried by the machine; only a wrong answer waits for a person.

A status is as old as the moment its read began

Our scheduler offers each project its next step from a status it reads from the project. One step that writes a character’s look ran 34 times in a day, each real run followed by one or two that found nothing to do: the offer came from a read that began a few seconds before the real run started. Another step ran three times in four minutes, because a run that started before the read and ended after it was invisible to the read. Our first fix waited on a flag taken from the same stale read, which could never see the staleness and, where flag and status disagreed, would have waited for ever. And a cache that served an old status saved it again with a new time, so every reader that trusted the time was fooled.

Fix: Each status carries the time its read began, and the scheduler drops a step whose project started or finished a run after that time; the stage itself reads fresh state and writes nothing for work already done; and a cache that serves an old status never saves it again as new.

The rule we keep: A guard against a stale read is read from somewhere newer than that read: the history of runs, or the step itself when it runs.

A running process keeps the code it started with

Our farm’s processes reload their code within a minute of a change, and we came to count on it. Three things kept the old code anyway. A cache key built from one process’s memory changed at every reload, so nothing could be reused across a restart and the scheduler re-read nearly every project at once. A long-lived publisher imported a page’s module once and never again. And on one day a fix to how a stage waits landed three times without reaching the stages already waiting: one waited 54 minutes on code that two later fixes had replaced, and our first reading was that the fix did not work.

Fix: The key now reads only what every process reads the same way, from the database; the publisher rebuilds a module whenever its source’s hash changes; and a waiting stage watches the code it runs and ends itself, its work still owed, when that code changes.

The rule we keep: Before calling a landed fix ineffective, compare the process’s start with the landing. Anything kept across a reload is keyed by what the next process will read the same way.

Every agent shared one hourly budget, and one loop spent it

Every agent’s tool for our code host signed in as the same user, so all of them shared that user’s budget of 5000 query points an hour, and one afternoon every tool failed at once. The budget’s own query said nothing was left while the plain status endpoint still showed thousands: they are separate budgets. The biggest spender was a loop that listed the open issues with their comments every half minute. Such a query is priced by everything it may return, about 100 points a call, so about 24,000 points an hour from one loop.

Fix: That loop lists the issues once every ten minutes and hands the same list to both readers, and a move on the task board uses a cheap lookup instead of listing every card.

The rule we keep: A loop’s cost is its price per call times its calls an hour. Price one call before anything runs it in a loop, and read the budget from the budget’s own query.

A billing loop that committed only when it billed held one snapshot for two weeks

Our studio’s server slowed from under a second a call to several seconds, and pages took over a minute to draw. The cause sat in another product on the same database: a billing meter with one long-lived connection that committed only after it billed something. A pass that billed nothing never ended its transaction, and under repeatable read it went on seeing the list of instances as of the day it began. So it never saw the one new instance, so it never billed, so it never committed. The transaction had been open long enough to block the database’s clean-up for 14.5 days.

Fix: The meter ends its transaction in a finally block on every pass, whatever the pass did, and a test holds that a pass over nothing leaves no transaction open.

The rule we keep: A loop that holds a database connection across sleeps ends its transaction every pass. And a loop that bills is checked against the books when it is touched: this one had billed nothing for days.

Fakes that forgave what the real thing refuses

Three failures on real machines in one night had one cause: the test’s fake machine accepted what a real one refuses. It accepted a write into a folder that did not exist yet, and a path that the shell never expanded because we had quoted it. Another fake lacked one call that a never-ending loop makes. The loop’s catch-all swallowed the error, the fake clock returned at once, and the test spun until it took down a worker on our shared test machine, which read as a crash, not a failing test.

Fix: A step that builds a shell command is tested by running it under a real shell against a fake home, a fake machine checks that a folder is made before anything is written into it, and a fake clock that drives a loop raises after 200 sleeps, with an error the loop’s catch-all cannot swallow.

The rule we keep: A fake is as strict as the thing it stands for, and a loop driven by a fake clock is bounded.

Two schema changes took one number, and the second was skipped without a word

Our deploy applies every numbered schema change whose number the database has not recorded, which is what makes a late number safe. Two files from two people took the same number. The first was applied; the second was skipped as already recorded, so four indexes were never built, a slow page stayed slow, and nothing said so for two hours.

Fix: The deploy and the migrator stop on a number used twice and name both files, and a fast guard reads the schema folder for repeats.

The rule we keep: A migration number is a key. A second file with the same key is dropped silently by the very rule that makes late numbers safe.

What a removal leaves behind

Taking things out taught us four lessons in two days. A removed form’s handlers kept every helper they named alive, so a sweep for unused code removed nothing. A removed tab took with it the only control that lifted a hold. A removed quality check turned out to be the only writer of two facts that were not quality at all, the length a cut must reach and the stamp that marks a project delivered; removed as it was, every short cut would have read as final, and nothing would have failed loudly. And a retired test file, and a configuration key taken out of a schema, each broke something that still used them.

Fix: The two facts moved first, to the stage where they are made, each with a test that a short cut is not final and a full one is stamped once.

The rule we keep: Before a removal, list every record the removed code writes and every caller of each writer, and every importer and reader of what goes. A write whose only caller is going moves first.

A purge deletes only what its own count showed

We built the deletion of archived projects as a control a person presses, never a command someone types. A bulk delete is safe only when the same walk produces the counts the person reads and the rows that go. The tables a project spans are asked of the database’s own keys, never typed into a list, so a table added later is counted and deleted with no edit.

Fix: The press carries a digest of the counts the person read; the server re-reads everything inside the transaction and deletes nothing if one figure differs; and each delete repeats the test that made the project eligible and must change exactly one row, or the whole transaction is undone.

A style that says realism outranked a purple groom

A comedy’s groom is purple-skinned on his character sheet, but his stills showed a dark-brown man. The project’s style opens every prompt with a photoreal film look, and the line for a pictured person said only to keep the face and skin tone as in the image, which a photoreal model reads as a natural tone. In the same week our rules for describing characters, written for people, refused a lion and a white wolf for naming no clothing and giving no age.

Fix: A skin colour no person has is now said out loud beside the reference picture, whose and which; and one reader decides whether a character is a creature, which is held to no wardrobe and no age.

The rule we keep: A new trait of a character is checked against the project’s style, not only against its picture; a rule written for people is asked what it does to everything the model lists.

A project in Hindi was voiced by an English-only model, and reported as a success

The project’s language never left the first function of our voice path. Hindi lines reached a model that cannot speak Hindi, and the step that picks the best take listened with an English recogniser after a filter that kept only Latin letters, so nothing could fail. In another project labelled Hindi, every spoken line was English: the language was a label on the lines, never checked against their letters.

Fix: The language is passed on every hop to a voice model, and a model is never asked for a language it cannot speak; and each line’s letters are compared with the scripts of the project’s languages.

The rule we keep: A field that names a property is checked against the thing it describes, not only where it is read.

A graceful stop lasted as long as the longest request it was holding

Every deploy of our studio stopped the service for 23-24 seconds, and the proxy in front of it answered bad gateway the whole time. The stop waits for every request in flight, which is right for a large upload; but the farm holds one long-poll request open at all times, and nothing answered it at the stop, so every stop waited out the farm’s hold. On the farm’s side, one such bad answer ended a whole step.

Fix: Every held request lives behind a hub that answers it at the stop, and the farm’s client repeats a call that is safe to repeat when it meets a bad gateway, a refused connection or a timeout.

The rule we keep: A drain is as long as the longest held request, so every long-poll a server holds is in its stop’s list.

Three ways a failure read as a success

A chain of commands on a remote machine, meant to stop at the first failure, piped each step through a filter that shortened its output. A pipe’s exit is its last command’s, so a failed check did not stop the chain, and two voice services were left stopped. A shell that reads a script as raw lines ran only the one-line commands, silently dropped every block that spans lines, and exited cleanly. And an error handler written for a dropped connection named a script it had refused to build as a download still running.

Fix: Every script sent to that shell now travels as one encoded line, a read is judged only when it names every item it was asked about, and anything that can refuse is built before the guarded remote call.

The rule we keep: A partial answer that reads as success is the bug. Check the exit of every step and the count of every answer, and keep a broad error handler around the one call it was written for.

A message is not a hand-off

Our agents hand work to each other by message. A line saying a change was ready went to a session that had since been replaced; it reached no one, and the change sat in no queue for 56 minutes while its owner reported it handed over. Story owed by several episodes sat on a page that said it was waiting for the writer, and no code told the writer. And a script posted a status to an issue on the line after its claim on that issue had been refused.

Fix: Owed story now reaches the writer as a brief it watches, carrying everything it needs to start, and a refusal returns the same way.

The rule we keep: A record that says waiting for someone is not a hand-off. The receipt is a row the sender reads, and a write that depends on a claim waits for the claim’s answer.

Two live copies of one conversation

After a crash, two sessions that restart our agents ran at once. Both read that no copy of a role was running, and both launched one. Separately, stopping a background task ended its shell but not the launcher under it, which went on restarting roles for minutes while a second pass was started on top of it. Three agents ended with two copies of one conversation working at the same time.

Fix: A start holds a claim from its read to its launch, and re-reads the running sessions under that claim.

The rule we keep: A check-then-act on shared state needs a claim that spans both, and a launcher is stopped by its own process, confirmed gone.

Rules that starved under exactly the load they were written for

A rule meant to finish a nearly-done project by lending it a free card never fired, because every card is mid-job whenever the plan is made; its tests planned with every card free. A refresh meant to follow every code landing waited behind the ends of stages, which never stop under load, and a fix sat unapplied for 50 minutes. And a switch weighing demand counted calls arriving at a server, not work waiting in the projects; callers that fail in a second and retry once a minute never fill such a measure.

Fix: The finishing rule may take a card that is held only for the job it is drawing, and the card moves at that job’s end; a landing’s refresh has a seat of its own; and the switch counts owed work where it waits.

The rule we keep: A reservation is tested in the state the system is really in. Under continuous load, an ordering is a never.

One question, asked one way, by everyone who asks it

Four loops in one day had one cause: two places answering the same question differently. A second road to the render gate skipped the hook that records approvals, so the gate refused every job sent that way. A switch that released an accepted clip was read in one place and not another, so the clip was never owed. A step counted as owed work it could never do, and was offered for ever. And a step offered on one counter was held back by another.

Fix: Each is now one function that every reader calls: the release of an accepted clip, the hook a road to the gate carries, and the counter a step is offered and held on.

The rule we keep: What a step says it owes and what it can do are one predicate; a new road carries the hooks of the road beside it.

A form filed one person’s words under another person’s name

A reviewer’s mark on a shot was sent with an earlier reviewer’s words, now under the new reviewer’s name. The form copied the earlier mark into the draft, whoever had written it, and one press filed it.

Fix: A box is prefilled only from the viewer’s own record; another person’s record is quoted above an empty box, with its author and time.

The rule we keep: Ask it of every form that opens from an existing record: whose words are in the box?

A remote machine gets only what you send it

Moving work from our office computer to remote machines showed three things the computer had been supplying without anyone noticing: a transcript a voice engine read from beside its recording, a library that another package had installed in a shared environment, and a module that one copied file had started to import. On the remote machines each was missing, and every run failed.

Fix: The caller reads the transcript and sends it with the recording; a test fails on any import an engine’s own code makes that its pinned list lacks; and the list of files sent to a machine is held by a test to every module those files import when they load.

The rule we keep: A local fallback hides a missing input for as long as every run is local.

The same video model ran twice as fast on Linux

Measured on the same clips of one project, our consumer cards running Linux drew a video model at 1.32-1.47 seconds a frame; the same kind of card on Windows took 3.2 seconds a frame, and a larger professional card on Windows was no faster for a clip that fits the smaller card. A second video model on a Linux card took about 209 seconds a clip, at a lower size and frame rate, so we quote both figures with their sizes, never one number alone.

The rule we keep: A speed is quoted with its card, its operating system and its picture size; a figure measured on one platform is not a figure for another, and the bigger card is not the faster one until it is measured.

Added on 15 October

Between 14 October and 15 October, after the post’s previous update, we wrote down 176 more lessons. The 23 below tell 68 of them; the other 108 stay in our own notes, each with the reason it is not here.

We switched our automated checks off, and two checks that were never vision checks went quiet

For weeks every shot in the studio was checked by machine before anything else was made from it: a review of its words, a screen of its still, and a vision model reading every frame of every clip. A person looked at every shot anyway. On the morning we weighed it, about 203,000 frames were owed to the vision model and 10 projects had waited 126 to 143 minutes on it, so we switched all of it off, with one setting rather than a deletion, and every shot now goes to a person’s review. Removing the reads then showed two checks that were never vision checks but waited on one. The check that a clip says its spoken line ran only once every clip had been READ; with no reads it never ran, and a clip that did not say its line went into the cut. And a removal that passed our quick pre-ship check still left 127 failing tests in the full suite.

Fix: The line check now runs once every clip is made, not read; both silent checks were found only because end-to-end tests pinned them through the whole pipeline. The tests that pinned deleted behaviour were retired as a list of their own, never by editing frozen records. Part of its code has since been removed, with the part of the studio it served.

The rule we keep: A check gated on a reader having finished inherits the reader’s life. Before deleting a reader, find every condition that mentions its counts and ask whether the thing checked still needs it; a removal is closed by a full run of the suite, not by the quick check.

An anchored sentence that was no longer the whole rule, and this post’s own opening

We build our public pages from the code, and every claim on them carries an anchor: a phrase its file must still say, or the build refuses. Our architecture page said no person approves a shot, anchored on the phrase QA IS THE APPROVAL, which was still in the code, so all 83 anchors passed. But a newer module had already made our own projects reviewed by a person; the old words were still true for customers’ projects and for nothing else. The opening of this post said the same thing until this update.

The rule we keep: An anchor proves a sentence is still in a file, not that nothing newer qualifies it. Before a page states a rule (who approves, what blocks, what waits), find every reader of that decision and anchor the claim on the condition the step reads today, not on a docstring’s headline.

Healthy cards called dead, four ways in one night

One night our farm called working cards dead in four different ways. A single failed read of the farm’s status page, made while the control machine stalled, freed the leases of 12 cards at once; two minutes later their image servers answered in under 60 milliseconds. Two cards drawing 575 to 600 watts each read as down because their web answer timed out while they rendered, and a restart was ordered on one of them; it stopped nothing only because it was refused for another reason. And when a whole site’s internet link failed, the build server, every card there and the text model went silent together, and it was read for 15 minutes as the build server being down.

Fix: A card is read down only after several failed readings in a row, never while the scheduler’s own probe answers, and every verdict of dead is checked against a second reading made beside it: a card drawing power or showing load is kept up, for a bounded time, and says so.

The rule we keep: A verdict of dead from one channel is confirmed on a second, independent one before anything acts on it. When a build server and every card of one site go silent together, name the site’s link first.

The last clip that was never missing

Our first episode read 641 of 642 clips for seven hours, and nothing drew the last one. Three changes were shipped as the fix, one after another, and after each one the status still read the same. The cause was in the counting. One function returned a SET of the distinct names of the clips made, and the counts it was compared with were LISTS of jobs: two jobs that share one file made every list one longer than the set, for ever. Three readers had also each built their own list of what was owed. What found it was an instrument: a list of every clip that was ready, not made and not owed, which came back empty and so showed that no clip was missing.

Fix: A count of jobs compared with a count of files is a count of distinct names, and the status names any duplicates. A stage is handed shots, one function says what is owed, and when two readers disagree the difference is named as the stall’s reason.

The rule we keep: Two counts that must agree are made by one function over one kind of thing. Ship the instrument that names an unexplained difference with the first guess, and call a fix done when the product’s own line moves, not when the change lands or its tests pass.

Hot reload made every deploy a cost to the running farm

Our farm runs from the tree each deploy moves forward, and its processes reload when their code changes. It makes a change quick to ship and slow to run. A scheduler cycle took about 11 minutes and farm code landed every 10 to 15 minutes, so for 25 minutes no cycle finished. The frame-by-frame read of a finished episode needed 5 to 18 minutes to start and lived 20 to 26 minutes before the next deploy ended it, so 16 of 16 runs in a day ended unfinished, one of them moving no frame in 27 minutes. And four changes to the clip stages’ code from one owner in 45 minutes cost about 40 card-minutes each. One night we also blamed a landing for a dip it had not caused.

The rule we keep: Hot reload makes the deploy rate a cost of the running system. A long job writes its records as it goes and resumes from them, never from zero; a process should keep the release it started on; and a cause named from a coincidence in time is checked in the process’s own last line before it drives a rule.

Still open: Stages that keep the release they started with are being built; until then, changes to one stage’s code land together, at a boundary.

The agents’ workbench is the farm’s control machine

The machine our AI coding agents work on also runs the farm’s scheduler. About 47 test processes from the agents’ local runs made every status read about three times slower, and the scheduler planned nothing for about 8 minutes. A sentence in a docstring had said tests run on the build server; it did not hold. The hook we then wrote refused the test program by name, and measured on 26 spellings it let through many that run it anyway: under a timeout, behind an environment prefix, inside a shell’s string, in a subshell, in the background. A day later an analysis script, which is not a test, held a whole core while the scheduler’s cycle stretched from 66 to 644.7 seconds.

Fix: The hook now looks inside what a command runs, with a test that lists each spelling, and an agent session’s own process is lowered to below-normal priority, so everything it starts inherits it and the scheduler keeps the processor whatever an agent runs.

The rule we keep: A rule written as this program is refused is bypassed by any wrapper that runs the program. On a shared machine, priority is set in code, never asked of each user.

Console windows on the screen, a month after we fixed them

One morning console windows began flashing open and shut on the screen of the machine we all work at, 13 in 30 seconds during a deploy. A new process that publishes the deploy line to our build page was started, detached, at every step of every deploy, and it ran one git command per branch over hundreds of branches. On Windows a process with no console gives every console program it starts a new window of its own. We had fixed exactly this a month earlier, with a module every long-running process imports first; the new process did not import it. Switched off, the count went to 0 in 30 seconds.

Fix: The publisher imports the windowless module first, and a test now holds every entry script that starts a process to being windowless at the lowest layer, so a new script cannot forget it.

The rule we keep: A fix that every new program must remember to include is a habit, not a structure: hold it with a test over every entry point. And nothing that fires at every step runs a process per branch.

A limit that lived only in words: hundreds of worktrees

Each of our agents works in a git worktree of its own, and the rule said at most two each, removed the day the change lands. It lived only in words. One night the machine held 530 worktrees, 152 of them made by the deploy tool itself, one for every change it shipped, and one agent alone held 141. The deploy tool’s start asked git about each tree in turn, two processes a tree, before every deploy took its place in the line: 511.6 seconds, most of a wait that put ready-to-live past our bar.

Fix: One branch listing now names every landed branch at once, and the sweep before a deploy’s ticket keeps to a small time budget, so a backlog is cleared a little at a time and never sits in front of the line. A hook refuses a second worktree to an agent that already holds one.

The rule we keep: A loop that runs a process once per member of a list that only grows is a cost that grows with the repository. And a limit that lives only in words is not a limit.

Idle measured by who holds a card, not by what it draws

Our idle table counted a card idle only when no stage held it. A card held by a stage that had not started, or waiting between that stage’s jobs, counted busy. One hour the table read 118 card-minutes idle in all, while the power meters said about 14 of 16 cards were drawing nothing for ten minutes and more. The number that told the truth was clips per card-hour: a running stage made 4, against 16 to 27 when a card draws. Timing every job then showed that the serial path we were about to speed up was 2.1 percent of a card’s time; the 19.3 percent spent waiting was cards standing by for another stage.

Fix: The watchdog now reports, per card and per holder, the minutes a held card spends not drawing, and each stage’s clips per card-hour.

The rule we keep: Measure idle by what the machine does, not by who holds it. Time the split of a gap before building its fix: the prefetch we had planned had a ceiling of about two percent, and was not built.

A kind of work with one home

The voices of three projects waited 725 minutes, and their clips waited behind them. The voice model was installed on only two cards. A rule then kept new voice work off those two while clips were owed, and later the same two cards were moved to serving text. Every wait message the farm printed was true, and nothing asked whether any other card could take that kind of work.

Fix: A tool reads every box’s own records into one list of the homes each kind of work has, and raises an alarm for a kind with fewer than two.

The rule we keep: Every kind of work has at least two homes, known from what is installed on each box rather than a typed list; a kind with no free capable card is an alarm that names the kind, never a wait.

One poisonous job, one sick card, and retries that only moved the fault

One clip was sent to three cards in turn and lost on each: each card died or rebooted while drawing it, and each retry sent the same job on to the next card. The same night a vision server we lend to render cards was started on four of them one after another, and none stayed up; strikes counted per card did not stop it, because the walk simply moved on. And one card failed nearly every job it was given, 41 errors against 2 successes on one project, while each error spent one of a good job’s two retries.

Fix: A lend’s failures are counted across cards, and two in half an hour pause it for an hour. A card’s errors are counted by distinct job since its last success, and from three they are the card’s, not the jobs’. Part of its code has since been removed, with the part of the studio it served.

The rule we keep: A retry that moves to the next machine turns one poisonous job into a fleet-wide fault: a job’s losses belong to the job, across machines, and a rotation needs its own breaker.

Still open: A job lost on two different cards is parked for a bigger card; that change is written and not yet released.

Three costs the scheduler’s code did not show

Three times in two days our scheduler’s cycle grew for a reason the code’s shape hid. A check rebuilt a production’s whole data for every candidate shot to read one constant, and held one status read 19.4 seconds. A setting a person edits was read by every gate of every entry, fresh each time: about 175 calls on the scheduler’s own thread, 193 seconds of a 512 second cycle. And a bound of 60 seconds per entry was no bound on the sum: when the studio’s calls slowed from 0.75 seconds to 3 or 4 each, the cycle went from 66 to 875 seconds.

Fix: The constant is read once a production, with a test that counts the builder’s calls across a whole search, and the setting is read once a cycle, in parallel, while the act it forbids reads the fresh status.

The rule we keep: Find such a cost by the phase that holds most of a cycle, then read its callers’ loops, not its body. A bound on one item is no bound on the sum.

Still open: One budget for the whole walk, with each later entry’s call carried on its own thread, is written and not yet released.

A restart that only stopped

The tool that restarts our agent sessions stops a session before it launches the replacement. Started one night in a new way, every launch it made failed, so in 4 minutes it left working sessions down and started none. A day earlier the session that orchestrates the agents restarted itself with a helper run from its own shell: the helper stopped its own parent first, and there was no orchestrator for most of an evening.

The rule we keep: Launch the replacement, and see it answer, before stopping the old one; and a process never restarts the session it runs inside.

What an AI agent’s session costs is what it re-reads

Every tool result an AI agent sees is read again on every later call of its session. Measured over 181 transcripts and two days, command output carried 2.14 billion tokens, 15 percent of everything read, and a hook that refused unbounded reads saved little, because the big carriers were bounded reads that passed it. A second cost of the same kind: our deploying agent polled a server’s reach as one long wait in the foreground, read none of its messages for nearly two hours, and nothing shipped for 2 hours 15 minutes, the last 50 of them with the server back.

The rule we keep: Price a tool’s output as its size times the calls after it, and read the waste off the transcripts before building a saving. A wait longer than a couple of minutes runs in the background, so the session keeps reading its messages.

A model that is away is not a model that said no

When our text model’s gateway answered 503 while its machine moved, a new project’s board was refused because it had no shots, and two pieces of work went to stuck. The board writer read any exception from the model as a part that boarded nothing, tried four times in a second and refused the project; the rewrite read the same exception as no answer, and its clock turned that into stuck.

Fix: The model being away is told from an answer in one place: the client raises its own error when the last attempt found the server down or busy, the studio turns it into a wait once every reply that did come has landed, and the stage ends saying it is waiting, with no refusal recorded and no try counted.

The rule we keep: Absence is not an answer. A caller that cannot tell them apart records a verdict about the work for an outage of the server.

Three cache keys, each wrong a different way

A refusal stored for a project was kept under the version of one table of cures. The script reader that had caused it was fixed the next morning, and a day later the project still could not start, because a change to the reader moved no version. A memo of planning work was keyed by the bytes of its whole import tree, so each of about 20 landings a day missed every kept unit of every project, and a status read after a restart took about 295 seconds. And a read cache put the token cap in its key, so the same picture asked with more room read as a new question.

Fix: A stored refusal now carries the bytes of the reader that made it; a kept unit is keyed by its parameters and, on a hit, checks a hash of each function it ran; and the read cache’s key is the picture, the question and the route, never the cap. Part of its code has since been removed, with the part of the studio it served.

The rule we keep: A key holds everything that can change the answer and nothing that cannot: the code that made it, by content, and never the room left for the reply.

Tests that fed the code a shape nothing real makes

The farm’s watchdog failed 7 times in a day taking the length of a count; its test had passed it a list, a shape the real producer never makes. A fix to the one function every long remote step runs through passed 5 tests and landed, and the steps still died the same way: the tests handed it a session, and most real callers hand it a wrapper that holds the session inside.

The rule we keep: Drive code in tests with the producer’s real output, and test a fix to a shared function through each caller’s own object. When a fix lands and the failure repeats, first ask what the failing caller passes.

Five small mistakes that cost more than their size

A default given to a dictionary read covers a missing key, not a key whose value is None, and a diagnostic line that compared one failed every scheduler cycle for 54 minutes. A local name assigned anywhere in a long function made a nested call to the module’s function of the same name an error on every cycle. A line inserted between an if and its else took the else for itself, and a one-time link was cleared just after it was made. A dead-code sweep of a page script missed a call written after a spread, and the page threw on load while every test that read the file’s text passed. And a backtick inside a double-quoted shell string ran the command it was only quoting.

The rule we keep: A diagnostic line must never be able to fail the cycle it describes. Put a new if before an if-else pair, never inside it. Load the page after any sweep of its script. Quote commands in logs through a single-quoted heredoc.

A diagram library measured on the real graph

We planned to draw our architecture diagrams with a popular diagram library at build time. On the real graph, 19 nodes and 25 edges with one loop, left to right it drew 3,600 units wide, text under 4 pixels in the page’s column; top to bottom, the loop put the web server at the bottom. A grid we placed by hand, with routed lines, worked.

The rule we keep: Measure a layout library on your real graph at your page’s width before committing to it.

A figure without its unit

A hunt for waste reported that each of 17 waiting deploy processes used 0.08 cores, and a feature was about to be built on it. Sampled twice, each one used 0.08 percent of one core.

The rule we keep: A sampled figure names its unit, and a figure that sizes a piece of work is recomputed from two samples before the work starts.

A truth written fast

Our customer content screen was measured against labels we wrote by eye from contact sheets of twelve pictures. On 91 pictures, 8 of our own labels were wrong, and they were found only after the run, by reading the model’s disagreements at full size.

The rule we keep: Score a truth twice, and read every disagreement at full size before stating a model’s precision.

Faster deploys: one train, then one change at a time again

We measured a day of deploys: 81 landings, 0 of them under a minute, the deploy lock held a median 274 seconds, 203 of them the smoke test before landing. So we tried shipping every tested change together in one train. One smoke over the whole train meant one bad change held the good ones for a second run, and the bisection that names the bad one read any skipped test as no answer, so it could not clear a file that always skips a sibling. Within a day we went back to one change at a time, each under ten minutes from queue to landing.

The rule we keep: Batching checked changes saves runs only while every change is green; one red change costs every rider. A skip matters to a verdict only when it is the checked test’s own.

From one scheduler that pushes to cards that pull

One scheduler on one machine decides what every card on the farm does. When it is slow, cold after a reload or waiting on a read, every card waits with it: one morning at most 2 of 10 reachable cards drew while 770 clips waited, and the scheduler’s cycle took 605 seconds. Looking back over a night of faults, every one sat on a seam where the centre pushed work to a card.

The rule we keep: Design for machines that fail: a card may reset at any moment, and a job is done only when its output has landed and been acknowledged.

Still open: Each card’s machine is moving to pull its own work from one database of pending jobs, by what its cards can do, rejoining by itself after a reset; the clip cards move first.

Added on 13 October

On 13 October, after the post’s previous update, we wrote down 129 more lessons. The 16 below tell 21 of them; the other 108 stay in our own notes, each with the reason it is not here.

Ask a vision model about a small thing on a crop, and ask for a state, not a count

We ask a small vision model questions about every frame of every clip. Asked whether a person’s mouth was open, on the whole tall frame where a face is a small patch, it read every mouth as closed: 0 of 3 open mouths read open. On a crop at head height, enlarged, with the answer worded as open, closed or not seen, it read 9 of 10 right. A second question asked how many arms the people in the picture showed. It answered 2 on every picture, the one where an arm had vanished included, so it could never have fired. Asked instead, for each side, whether that arm could be seen, it read 30 of 30 pictures right.

Fix: A question about a detail of a person is asked on a crop at head height, worded as its states plus not seen, and the second picture is counted for what it is: a second call. Its code has since been removed, with the part of the studio it served.

The rule we keep: Before a per-frame question goes into the frame call, run it on a kept defect and on clean cases and read whether the answer moves at all. A count gets the model’s prior, two arms and two hands, not the picture; ask for a state per place instead.

A lock everyone needs, held while something slow happens

Twice in one day a lock every worker needs was held while something slow went on. The farm keeps a record of every render job ever sent, and each claim of a job took one lock for the whole farm and, inside it, read and rewrote that record: 19 megabytes holding 85,179 sent jobs, about 0.95 seconds a claim. With ten cards claiming, a burst of waiting claims ran out of retries, and the farm sat idle with clips waiting. And when the dashboard’s feed reloaded its code, the old copy held the lock every request is claimed under while it finished a 329-second build, so for minutes no press on the page was taken.

Fix: The old copy now waits for the work in hand without the claim lock, and takes the lock only for a bounded wait, so the requests go on being claimed.

Still open: The record of sent jobs is split into small shards, each with its own lock, so a claim costs the same on the first day as on the hundredth; that change is written and not yet released. Of any lock, ask how long it is held at ten times today’s size, and who waits for it while its holder waits for something slow.

Kept answers read by yesterday’s rules

A check asks a vision model questions drawn from a character’s written look: is he wearing a head cloth, is he wearing trousers. The language model’s list of facts for a look is kept, keyed by the look’s words. A rule changed so that a head question is asked only when the look names something on the head, and the look was mended the same minute, yet the old questions were still asked and shown. The kept facts’ key had not moved when the rule did, so facts made under the old rule stood.

Fix: Kept facts are now read through today’s rules every time they are used, with no model call and no second key to forget. A cache keyed by its input does not notice a change in the rules applied to it, and a version string beside a rule is a second copy of the rule, and it drifts. Its code has since been removed, with the part of the studio it served.

A person-detector that found plaster, copper and a brazier

A rule checks that a rewrite does not lose the people a shot’s words name. It missed a technician, operators and dock workers. The first fix looked for words by their ending, -er and -or, and was counted on the open boards before it was built: of the 4,099 shots whose words ask for a number of people, it matched in 3,235, finding plaster, interior, copper, timber and a brazier.

Fix: The reader that works is a closed list of occupations, with the few endings only people have; on the same boards it found 12 shots, every one a real person the rule had missed. A detector of a kind of word by its ending is counted on the real data, with the matched words listed for a read by eye, before it is wired in.

A frozen server kept its port, and a note said the cure had shipped

One morning a render card read as down, while the image server on it still held its port, answered nobody, and the card sat at 8 percent busy drawing 53 watts. Our watchdog starts that server only when its port is not listening, so a server that holds its port and answers no one is up to it. A fix was written that morning: ask every listening server for its status, and end one that has stayed silent for several rounds while its card is idle. That evening the same server froze again and was not restarted. The note recording the fix read as if it had shipped; its commit had never reached the released code.

The rule we keep: A note that names a cure names its commit, and before anyone relies on it, or says it is fixed, the commit is checked against the released branch. A change withdrawn from a release line leaves its note claiming a cure that is not live.

Still open: Test the answer, with a bound, never only the port, and never take a busy card for a frozen one. That cure is not yet in the released code.

A dictionary two threads share, iterated while it grew

An episode’s page stopped updating: building it raised the error that a dictionary changed size during iteration. The page builder looped over a dictionary that other threads fill as media copies land. The race was old, and one reader had been given a copy eight days before while this one had not. A change that made a reviewed project post about 350 voice rows as their copies landed made the dictionary grow during every build, and the old race started to hit.

Fix: Every reader takes a snapshot through one accessor, under the lock its writers hold, and a test that reads the file’s syntax refuses any direct loop over the shared dictionaries. Of any change that multiplies the rows posted to a shared structure, ask who iterates it.

A log check that found its own command

A tool that reads a remote box’s previous boot reported a hardware error, a machine check, in the last lines of its log. The evidence it quoted was the system’s record of our own earlier read: the search’s command line carried the very words it searched for. The real picture was in the boot list beside it and went unsaid: eight boots in thirteen minutes and no orderly shutdown, a reset loop.

Fix: The verdict leaves out the log’s records of our own commands, and the boot list is read for a loop of reboots. Of any tool that searches a journal for words, ask whether its own command lands in that journal carrying them.

A wait with no bound, on a box that vanished

A deploy chain for one of our boxes was found alive after most of a day, with seconds of processor time to show for it. It sat in the SSH library’s wait for the server’s reply to a command. That wait has no timeout, since the timeout the tool passes bounds only the reads, and nothing set a keepalive, so when the box vanished the connection stayed open for 19 hours with the rest of the chain behind it.

Still open: The one function that opens our box connections sets a keepalive every 30 seconds, so a dead peer fails the next probe and every pending wait raises; the change is written and not yet released. Of any remote wait, ask what ends it when the other side is gone: a timeout on the read is not a bound on the request.

A cleanup by age that deleted a running test’s folder

Our test server trimmed its output folder to the 40 newest entries by date. A run’s temporary folder keeps the date it was made while its tests write inside it, so a slow run’s folder fell behind the newest ones once enough other runs had finished, and the trim deleted it under the running tests.

Fix: The trim now skips every entry of a run whose process is alive and has written no exit file. A cleanup by age never touches what a live process uses: ask the process list, not the file’s date.

A status line read after its first space was stripped

Our release tool reads git’s short status, where the first character of a line says whether a change is staged. Its helper stripped every answer at both ends, so the line of an unstaged edit, which starts with a space, read as staged, and the tool that removes finished working trees removed one that held an uncommitted edit. The edit was lost.

Fix: A parser of a column format reads the output unstripped, through its own helper; stripping is for words, not for a format whose first character can be a space. The test was watched failing on the old code.

A priority with no bound

The dashboard’s requests are taken in order of kind: a setting first, then a press, then a project’s script, first come first served inside each kind. That is a priority with no bound: a steady stream of presses from busier projects could leave a script request waiting for as long as the stream lasted. One request waited 11 minutes that day; its cause was another, but the order alone had the same hole.

Fix: A request that has waited 120 seconds goes before every request of a lower kind, timed on the feed’s own clock, never on a stamp from a server that may keep another zone’s time. A priority rule carries its ageing in the same function.

A tool tested only against its own fakes

A small tool that lists our pull requests asked the code host’s command line for a field it does not have, and its first live run failed. Every test of the tool had faked the command’s answer with that field in it, so the tool had never read a real answer before it shipped.

Fix: The list is asked only for the fields the command has, and the missing one is read from the web API; a test now holds the asked fields to the ones the command knows. A tool that wraps another command is run once against the real thing before its fakes are trusted, and each fake is built from a recorded real answer.

A new kernel on a box nobody can reach

Some of our new render boxes need a new kernel, and they sit where nobody can reach their screens at night. A failed boot of a new kernel leaves a box down until a person gets there. On one box a safety check stopped a driver update: it asked for the signed graphics driver of the kernel that was running, while the update had installed the next kernel, the one the reboot would boot. Later that day a trial kernel hung without a panic, and nothing rebooted it. A box whose network never comes up still needs a person. And the box whose card would not read turned out to need no new kernel at all: the signed driver module for the kernel it already ran had been on offer all along.

Fix: A kernel change on a remote box boots the new kernel once: the running kernel is saved as the default first, the new one is booted a single time with a panic made into a reboot, the arming is read back before any reboot is sent, and a hang or a soft lockup is now turned into a panic too. The guard reads the driver of the kernel that will boot. A check that guards a change reads the state after the change, not before it.

Still open: A card that does not read is judged against the driver module of the kernel the box runs, not the one the newest kernel’s package names, and the tool installs that kernel’s own module with no reboot and no kernel change. That tool is written and not yet released.

A report pinned by name, read by newer code

Our post on testing vision models was built from a scoring report named by its folder, reviewed, and sent to be released. While it waited in the line, a change to the scorer altered how a case is read when its own question was never put to the models. Rebuilt after landing, from the same report, the post refused to build: the report’s gallery gave one model a pass that today’s reading of its answers called no answer. The data had not moved; the code that reads it had.

The rule we keep: A report pinned by name is pinned only together with the version of the code that reads it: a reader should refuse a report made by another version, saying so in those words, before it reads a row. And a post’s hash after landing is checked by building it again before the word to publish is used.

Boxes that reset in the same minute, and two confident wrong calls

One evening four of our render boxes reset again and again, one of them eight times in 12 minutes, each a minute or two after its image server started. Their logs simply stopped, with no shutdown and no hardware error. Three died within the same minute, and the session that orchestrates our agents read that as a failure of the site’s power and said so. Then a fifth box, on a newer kernel, reset 9 times in 11 minutes, two or three seconds into loading a 15.6-gigabyte model onto its card, with no panic; a warning in its kernel log had been labelled a fault by our own tool, and that was repeated as the cause too. Two confident calls in one evening, both wrong, and the cause is still not known. Meanwhile the farm dropped 124 jobs on the dead cards.

The rule we keep: A log that just stops says only that the stop was abrupt; it never says power. Deaths in the same minute point at a shared trigger, and a shared driver, or a job started on every box at once, is one as much as a shared circuit. Read every resetting box’s previous-boot trace before naming a cause, and until a trace or a power log names one, say not known yet.

Still open: A job on a card that resets is given straight back to the farm; that change is written and not yet released.

A stop that killed whatever held a number

A vision server we lend to a render box failed to start, and the stop that cleaned up after it sent a terminate signal to the box’s image server, which nobody had asked to stop. The stop trusted a process-id file, which a failed start leaves behind, and by the time it was read its number belonged to another process.

Fix: Every stop and every liveness test that reads a process-id file on a shared box checks the process’s own command line first, and its test runs the real commands against a decoy process, because a test of strings cannot tell a guard from a comment. A process-id file names a number, not a program. Its code has since been removed, with the part of the studio it served.

Added on 12 October

Between 9 October and 12 October, after the post’s previous update, we wrote down 500 more lessons. The 47 below tell 53 of them; the other 447 stay in our own notes, each with the reason it is not here.

The checks became assistants, and a person approves every shot

Until this update the studio’s own projects ran on one rule: the checks are the approval. A shot that failed was rewritten and redrawn by the engine with nobody in the loop. For our own projects that rule is withdrawn. Every shot is drawn once, the checks only flag what they see, and a person watches all of it: 4,066 shots over the 15 episodes of the series in work. A shot is redrawn only when that person marks it wrong, and an episode is cut only on their word. The reason given is that it saves regeneration time: the models assist, and a person reviews every shot.

The rule we keep: For our own projects a person’s review is the approval, and the checks’ notes sit beside each shot and block nothing. Customers’ projects keep the checks as the approval. The person’s accepts and wrong marks also become the truth each check is scored against.

Still open: The review page, built for one tap on a phone to accept a shot, never a bulk accept. And the cost of asking only the small vision model: alone, it caught 44 of 73 hidden-face faults, against 52 to 53 with the large model as a second opinion.

A check measured alone, shipped inside a longer question

One question asks whether a face that should be hidden is showing. Measured on its own it flagged 0 of 7 clean pictures, on both vision models. The shipped check asked it inside one long prompt with every other fact, and there the small model flagged 3 of the same seven, the same ones in every run. The loop then moved its picks to worse takes on those false flags. The earlier measure was true, of a form the check never used.

The rule we keep: A check is measured in the form it ships in: the prompt around a question is part of the question. A gain on the set a wording was designed on is not a gain until a held-out set agrees. What cured this one was structural: the fact is asked alone.

Precision measured on survivors

Two new checks compared each person’s clothes with their written look. On our kept correct cases they flagged 0 of 22 and 0 of 30 clean pictures, and on those numbers they were switched to block. On the live episode, 3 of 4 judged findings of the first and 5 of 10 of the second were false by eye. A kept correct case is a take an earlier check passed and a person picked. The hard pictures, a back view or a frame that cuts through a head, were the ones the earlier check had sent back, so they were never in the set.

The rule we keep: A precision measured on survivors is an upper bound. Before a check blocks, the findings of its first live run are judged by eye at full size, per category, and the block waits for that. A question about a part of the body needs an answer for a picture that does not hold that part.

One model, two servers, opposite verdicts

A check asks our large vision model one question of a cropped picture. Served from one of our machines, the model flagged 2 of 9 clean takes, the same way in three runs of three. Served from the backup machine, the same model, asked the same question of the same stored crops, said no on both. Two servings of one model gave opposite verdicts on the same picture, and the first server went down before the cure could be measured where the fault lived.

The rule we keep: A check’s measure names the server behind every answer it reads, and a check blocks only when it passes its bar on every server the engine can send it to. A precision measured on one server is that server’s. A model’s name is not one instrument.

A style sentence that failed every shot

A reader writes one sentence of visual style for a project, and that sentence leads every picture prompt. For a documentary it wrote a style that named text overlays. A check further down refuses any prompt that names lettering, so all 51 shots failed it. Their own words were clean, so no rewrite could change them, and 35 went stuck with nothing drawn. The change had been called free, because nothing was drawn yet and no name could move. That was a claim about names; nobody had read the new sentence through the checks that read a prompt.

Fix: The style reader’s own check now applies the lettering check’s reader, never a copy of its word list, and a refused sentence is asked once more. A value one step derives and every later prompt carries is read by every check of every prompt, so the step that derives it runs those checks itself.

A repeated sentence that switched a check off

An engine step appended a sentence giving the number of people in the frame to words that already ended with it. The reader that checks the count, meeting two counts of the whole picture, read neither. With the count unread, a take that drew one person twice, once from behind and once facing the camera, was picked and passed: three people where the words wanted two. The copy seen from behind did not read as a repeat of the one facing the camera.

The rule we keep: A reader that meets the same fact twice, agreeing, reads it once; only a disagreement is unreadable. An engine step never appends a sentence the words already hold. And a reader’s answer that a fact is not said is a fault the run reports, never a pass.

The question was answered about the other person

A check asked what a woman, seen from behind, wore besides her main clothes. It flagged 6 of 6 clean takes. The frames held a second woman facing the camera, and the replies described her. A question about one person, asked of a picture that holds another person’s answer, is answered by the louder person: its yes is true of the picture and false of the person, so a high catch rate proves nothing.

Fix: Where the shot’s words give a person a side of the frame, the side goes into the question itself. On kept cases that cleared the false flags and kept 15 of 18 catches. A measure of a question about one person now needs clean controls in frames that hold a second person facing the camera.

Still open: It has been measured on one server only, so by the rule above it does not block yet.

A loop with no case for one kind of unit

Besides its shots, an episode has inserts: extra pictures laid under a long narration. One insert failed every take, and the loop that judges failures and orders redraws never saw it. The loop judged shots and skipped inserts, and an old test pinned that skip as intended. So the pick stayed provisional, its clip was drawn from it, and the cut waited on it. Of the episode’s 16 inserts, 15 had passed and this one waited.

Fix: A unit, a shot or an insert, has one reader, and the loop’s judge, its redraw, its hold and its page state all go through it. A failing insert is redrawn a bounded number of times and then shown as stuck. A guard that skips one kind of unit is a second copy of the rule.

A check that saw only what the model chose to quote

A script described a character with round ears, long furry arms and a curled tail. The model’s written look for him dropped all three. The rule meant to catch a dropped feature compared the look with the nouns of the character’s quote, and the quote was one the same model had chosen: only the paragraph’s first sentence, with one noun in it.

Fix: The comparison is made against the script’s own paragraph that holds the quote, over a closed list of features. Of 191 characters only 13 have a paragraph the rule can use, which is its limit, said plainly; on those its findings of a dropped feature were 6 of 6 real. When a check’s evidence is chosen by the thing it checks, widen the evidence to the source and say what the wider evidence still cannot reach.

Still open: The rule is off by default until it is measured.

Told not to count a hand, the model counted it

A close-up of a single hand went stuck: the count check saw one person where the shot wanted nobody. Three cures were measured against a truth written before the first run. Telling the model not to count a hand cleared 0 of 7 hand cases. Asking it to list every person and which part shows cleared all seven, and also lowered the count on four pictures that held a real extra person: a false clear, the dangerous direction. One question about what is there, whether any face or head is shown, cleared 5 of 5 and kept every real face.

The rule we keep: A model told to exclude something does not; ask what is there and decide in code. A cure that lowers a count is a clearing: it is measured first on the real cases it must not clear, and it gets the narrowest scope that holds.

A person with no picture borrowed the other person’s clothes

Two girls in one shot, one seen from behind. By design the prompt sent a reference picture only of the girl facing the camera, and through a gap in how looks were read, the words gave the other girl no colour at all. In 8 of 8 takes she came out in the first girl’s yellow head covering, a second copy of the first girl, and the shots went stuck after three redraws. The image model takes clothes from the words first and the reference second; a person with neither borrows the nearest ones it has.

Fix: Every person in a picture prompt is given a look in words, whether or not a picture of them is sent, and a reader that cannot parse a look falls back to the look’s own words, never to nothing. A person seen from behind is dressed in what a back view shows.

A hand from the side of the frame brings its head with it

Some shots must show a person only as a hand or a sleeve. When the sleeve entered at a side edge of the frame, the image model drew the head back in at the top of that edge on every take, even with words that said only torso and hands and with no reference picture sent. When the words brought two hands in from the bottom edge, the head stayed out on all three takes, even with the whole reference picture sent. A hand at a side edge implies a body just outside the frame at shoulder height; from the bottom it implies a body below the picture.

Fix: A person shown only by hands or a sleeve has the entry moved to the bottom edge. For a defect the model keeps making, change what the words imply, not only what they say or forbid.

The size of an egg, so it drew an egg

The written look of a small coffee cup gave its size as the size of an egg, and the image model drew the egg. The check for it fired, rightly, on six takes in a day. The check was right; the look’s own comparison had put the object in the picture.

Fix: A look gives a size in plain measure and never by naming another drawable object, and a likened size is rewritten by code when a look is written. Looks already stored keep their words, because a stored look is part of the name of every picture drawn from it.

The key recorded that something changed, not what

A ledger of four episodes’ render time showed 51.6% of it was repeats. Within that, 1,333 minutes, 518 clips, were clips made again because their key had moved, and nothing recorded said what had moved: a clip’s name is a hash of its picture, voice, prompt, length, size, model and seed, and keeps none of them. The audit could rule some causes out and could not see the rest.

Fix: The function that makes a clip’s key returns its parts beside the hash, and they are recorded for each clip name; every move of a pick is recorded too. The names stay byte for byte the same, so the change redraws nothing. When a key is a hash of parts, record the parts where the key is made.

Cards idle while jobs waited

With 30 jobs waiting, one render card stood idle 33% of an hour and another 24%. The scheduler was moving cards between stages for a handful of jobs at a time, and each move had a cost nobody had counted: a cold stage spends about 74 seconds gathering before its first render, and a card that comes back pays a model swap. The first plan named the wrong cause, that the waiting clips could not start yet; the stages’ own logs showed them rendering.

Fix: A card leaves a running stage only when the work done there is at least twice what the move costs, and a stage waiting for its first card is started at once, so its gathering overlaps the other’s rendering. A stage left with no card past a bound takes one at any cost, so none starves. The costs are named constants beside the log lines they were measured from.

No reading, shown as zero

A card was rendering, two clips back to back, while the read of its status failed. The watchdog’s code turned the missing reading into a zero, printed the card at nought per cent and nought watts, and was two minutes from a false alarm that its job was wedged. A false alarm on a working card is how a real one gets missed.

Fix: A lost reading is no reading: it is shown as not available, it counts as busy, it is never wedged, and a warning names it with the class of the failure, never its text. The verdicts for a card are one function, driven by a test with planted defects.

A loop that spun on one project for 22 hours

For 22 hours no project’s page was refreshed. The pass that builds the pages picks a project and moves on when it has nothing to build. A set of reorderers then put the project the queue served first back at the front, because it had no whole build on record, and the pass spun on that one project with 21 others behind it. The watch kept reporting the same step, lasting no time at all: a step that really lasts shows minutes, and one that reads as nothing every time is being marked again and again.

Fix: An item is marked handled at the pick, in one place, never in each exit branch. A pass over a list has a ceiling derived from the list’s length, enforced by the loop itself, which ends saying which item it picked most and how often.

Owed, by a rule the run could never satisfy

One project’s picture reads were started again every 120 seconds and never stopped being owed: 61 runs in a day. The state that said reads were owed listed every picture ever shipped, including one of a shot the board no longer had. The run reads only the shots the cut lays. So no run could read that picture, and each run asked the same 16 pictures again.

The rule we keep: A state that says owed must be a state the run it triggers can clear. Read the condition of every rule that says owed again, and ask whether the run changes it.

Still open: One reader of the set of pictures, used by both the state and the run, with a test that what is unread is always within what a run asks. It is written and not yet in the released code.

Two polls at once, and working machines read as down

The farm’s status page is built by a poll that gives each machine’s read its own thread and answers a read whose thread is still running with a fallback. At start-up the poll was called twice at once. The two polls took every second machine’s read from each other, and four working machines were published as down for five reads, one of them while it was answering work.

Fix: The poll as a whole runs one at a time: a second caller waits for the poll in hand and does not poll again. A guard that is single-flight for each part is right only if the whole is single-flight too; otherwise two callers turn each other’s parts into failures of the thing measured.

A lock judged by its age, wrong both ways

The release gate’s lock was judged stale by the age of its file alone. When the gate died with its machine, its lock kept five waiting releases held for 45 minutes. The same day the rule failed the other way: a gate that had been running longer than that was still alive when a second gate read its lock as old, took it over and ran beside it. Both runs broke off, and the verdict was lost twice.

Fix: A lock is stale when its holder is gone: the process no longer exists, or its number now belongs to a later process, told by a start time kept in the lock. A lock that names a live holder is not stale by age for hours, and a process removes only the lock that carries its own token.

A process that outlived its own code

A background process that tests each new version had been started from code that was later replaced. It kept looping in the code it had imported, running the whole suite on a machine the suite had since been moved off, over 13 versions. Every new run’s wake-up call was refused because the old process still held its place, so the new arrangement never ran, and nothing in the journal said so.

Fix: The process takes a fingerprint of its own files when it starts. Between two runs, never inside one, a process whose files differ from the live ones lets go of its place, starts the live code and ends.

Stuck, reported as stopped

The page said the studio’s feed had stopped, and the watchdog reported no sign of life for 1185 minutes, of a process that was alive and waiting on one call. The feed’s heartbeat had been tied to progress on purpose, so that a hung build could not keep beating. That cured a false alive by creating a false stopped.

Fix: The heartbeat goes for as long as the process lives and carries two facts: that the process lives, stamped by a thread of its own, and when the work last landed something. Its readers tell stopped, stuck and working apart from the two.

An approval started beside the steps that rewrite what it approves

Rewritten shots waited about 20 minutes on an approval while render cards sat idle. The approval pins one version of the storyboard, and the scheduler had started it in the same cycle as the steps that write the storyboard. Each approval took four tries, each refused because the board had changed after it was shown, and each refused try cost about 65 seconds. The retries had been logged for weeks as designed behaviour.

Fix: A step that pins a document is not started beside a step that writes it: while the approval runs no writer of that board starts, and while a writer runs the approval waits, with turns so that neither starves. A refusal that repeats is a measure: the tries per approval count how often the board moved under it, and should be one.

The gate’s fix was judged by the broken gate

The release gate runs new failures again, alone, and accepts as flaky a test that does not fail a second time. A run that never finished left markers in its list of failures. They are not tests, so there was nothing to run again, and they were cleared. A run cut at 1,014 of about 12,600 tests passed as no new failure and became the baseline the next runs were judged against. The fix for the gate was then shipped like any change, and the gate that judged it was the old one.

Fix: A marker of an unfinished run is always a failure and never flaky. A run under 90% of the baseline’s size is incomplete, never a pass and never a baseline, and an unfinished run is asked once more before any verdict.

The rule we keep: A change to a gate’s own code is judged by the new gate, or lands by an emergency path on a person’s word, never through the gate it fixes. The same holds for any check that guards itself.

A cleanup that deleted the job that was running

The whole test suite died twice about 1,015 tests in, and the server’s own log showed the run’s working folder gone. The deleter was the server’s cleanup, run by every finished run: it kept the newest three working folders by time and removed the rest, whether or not a run was still using one. The gate’s long run fell out of the newest three while shorter runs finished beside it.

Fix: The cleanup removes only finished folders, those with an exit record, or ones older than a long bound. A cleanup that keeps the newest few by time deletes a job that is still running whenever enough other jobs finish first; it must ask whether the thing is in use.

A fake that accepted anything pinned the bug

A small program at the edge of our network signs and serves media files. Its six unit tests passed, and the deployed one answered every signed address with an error. The code handed the platform’s fetch an option that platform does not implement and throws on. A unit test even asserted the option was there, against a fake that accepts any option.

The rule we keep: A test of code that runs in a restrictive runtime models that runtime’s strictness: a fake that throws on what the real one refuses, with its own test that it throws. And a unit test is not a check of the deployed thing: a refusal answered correctly is not proof that the allowed case works.

The test read the file; visitors got the cache

A change to the home page’s script was deployed, and a reader in a fresh browser still got the old link. The live folder had the new file. The network’s edge cache held the old one, aged 2180 seconds of the 14400 it was allowed to live. The test that was green had read the file from disk; the visitor is given what the route serves, after the cache.

Fix: The page links every file of its own by an address that carries a hash of the file’s content, and a file may be cached for long only at the address with its current hash. The test reads what the route serves, plants a changed file and shows the address change.

Three tests that failed at another machine’s midnight

The main branch read red on the test server, three failures of 13,354, and the gate sent back every waiting change with the same names, a change of documents only among them. The changes were innocent. All three tests read the wall clock’s date, and the server’s date had rolled over: its clock is in another time zone, so its midnight came at an hour when no code had changed.

Fix: The tests plant their own clock: dates relative to today, or a fixed time handed to the code. A guard fails any test file that runs the dated tool with a literally dated row and no clock of its own.

Still open: A run of the date-sensitive tests with the clock set a few days ahead, which would find the next one before midnight does.

A test that had never failed

A test asserted that a banned word was absent from a page. Its pattern was built inside a template string, where the mark for a word boundary is read as a backspace character. The pattern matched nothing, and the test passed on any page. It was found only because every assertion was run against its planted defect, and this was the first that missed.

The rule we keep: Each new test is run against its planted defect before it is trusted. A test that has never failed has not been shown to be a test.

A guard filed where no pre-release run reached it

Before a change is handed over, its author runs the fast tier of tests and whatever the change reaches. One author did, 1,021 tests passed, and the gate still refused the change. A new file had a drive letter written into it, and the test that reads every such file for one lived in the slow tier, because its neighbours in the same file run code. A new file is named by no test, so no reach finds it. The cost was one gate run, about 12 minutes, and everything queued behind it. The next night a test command copied into a handover note passed with the same count after a large merge, having missed the 84 tests the tier had gained.

Fix: A test whose answer is the repository’s own source belongs in the fast tier, and a guard fails a branch that adds one to a slow file. Until the 42 listed files are split, the fast tier also runs their 87 source-reading tests by name.

The rule we keep: A handover names the function that builds the list of tests, never the list written out.

Sent back by the gate, and held by nobody

A change that would unstick shots on the episode in work had been ready since the day before and was not released. The gate had rejected a batch of 14 for failures that belonged to two other changes, and had written down that the innocent ones were returned. The releaser sent some of them again by hand and not this one. For six hours three innocent changes sat in no queue: their owners believed the releaser held them, and the releaser’s batches were built from memory of the gate’s note.

The rule we keep: A change’s state is read off the ledger, never off anyone’s memory. Every returned change is released, queued again or withdrawn in writing, and one in none of the three is lost. A thing a machine moves out of a line and only a person’s memory moves back is in no line until something lists it.

Still open: One reader that joins the gate’s ledger, the queue and the released branch, and names every lost change, its owner and the hours since, each time the status is read. It is written and not yet in the released code.

What fills an agent’s context is its own output

The agents that build the studio each hold a long working context, and one that reaches its limit must save and start again. The session that directs the others was filling fast, and the guess was that the other agents’ reports filled it. Read from its own transcript, it had grown by 391.8 thousand tokens in 80 minutes; 43% of that was its own writing, 30% was what its commands printed back, and the other agents’ reports were 16%. In every coding agent the largest share was what its commands print back. The same day an agent was handed an eight-point job with its context at 332 thousand tokens against a limit of 350 thousand, and had to save with one point done.

The rule we keep: Measure before guessing: the transcript records the tokens sent at every call. Write a thing once, bound every read where it is typed, and keep reports short. A long job is weighed against the receiver’s remaining context before it is given; close to the limit, the save comes first and the job goes to the fresh session.

A count that named the wrong unit

A diagram for one of our own posts said that ten vision models were given the same 2,392 pictures. The answer key holds 2,392 cases, each a picture plus one question about it, over 1,862 distinct pictures. The same post said a person had decided each answer by looking; the key’s own author field names the keepers, and for 2,388 of the 2,392 rows it is one of our agents.

Fix: The post’s builder checks the diagram’s counts against the answer key at every build: cases, distinct pictures, and the first episode’s pictures. Before a public line counts a set or says who made it, count the distinct value of the thing the sentence names, and read the author field. Its code has since been removed, with the part of the studio it served.

A failure kept after its question changed

Our full quality check stores each drawing’s failure, so the engine knows what to redraw. It stored the picture and the reason, and kept the failure for as long as the picture stood, whatever question had produced it. Then the question about hidden faces was rewritten. In the first episode 1,269 failed drawings were held, and 849 of its 1,078 failures about a hidden face quoted a question nobody asks any more; on 51 shots every failed drawing was stale. Today’s question passed drawings the old one had failed, and the loop went on redrawing and sticking shots on verdicts that no longer applied.

Still open: A verdict is made of the picture, the question and the code that asks. So a stored failure carries the key of the question it answered; under another key it is neither a failure nor a pass but unread, owed a read when it ships, holding nothing open or shut meanwhile. The stale ones are counted before the rule lands, so the reads it owes are known. The change is written and not yet in the released code.

A per-shot reader that fetched the whole project every time

A new rule asks, for every check of every shot, whether a person or the machine reviews this project. To answer, it fetched the project’s settings from the store on every call. One status read then made between 205 and 355 store calls of 0.54 seconds each, where the old code made a handful. Every read ran past its 150-second bound, and nothing new started on 14 or more projects: one release had stopped the farm.

Fix: The reader takes the project’s settings as an argument from its caller, which already holds them, and fetches nothing itself. A reader that runs once per shot or per check never fetches the project; a test that counts the store calls of one status read is the test that would have caught this, where passing the quick tests did not.

A rejected change that came back within the minute

Our release gate tests a train of changes together and either promotes it or rejects it and puts the staging branch back. One train was rejected. Within the minute another ship landed that had merged staging a few seconds before the verdict. Its landing asked only whether staging was an ancestor of the new commit; it was, so the fast-forward put all seven rejected changes back, and the next gate rejected the same train again.

Fix: A rejection does not only reset a branch: every ship that merged staging before the verdict carries the rejected changes in its history. A rejected change’s staged commit is now dead unless the released code already holds it, a landing that carries a dead commit is refused by name, and the ship refuses it before it even takes a ticket. While a gate is rejected and not yet resolved, nothing ships.

A running process keeps the code it started with

Three vision steps held the vision lane for 70 to 85 minutes, alive and quiet, while the page could only say the checker was busy with another project. They were running the code they had loaded before a fix landed. A running process keeps the code it started with, so no release reaches a long step. The same day a rewrite loop ran 2.5 hours on old code with an empty log, after the step that had started it was no longer offered, so no rule about the offered steps could see it.

Fix: The scheduler brings a vision step onto new code itself: a step whose process was born 30 minutes or more before the last change to the files it runs is asked to hand its lane over at its next boundary, and one whose log is quiet for 45 minutes is stopped once, with its outcome written down. Nobody presses stop.

Still open: A rule about running steps must read the process list, not only the steps on offer now, because a process outlives the step that started it. That reader is written and not yet released.

A step offered for a change only another job can make

The stage that screens the drawings started 8 times in one afternoon and asked nothing each time: 413 of 413 shots already had a picked drawing, while the cut waited on 13 provisional picks. Two readers disagreed about the same pick. One called a provisional pick on a sound drawing owed a screen run; the screen run made it provisional again, because the full check had not yet read that drawing. The run changed nothing, so the next status offered it again.

Fix: Whether a pick is owed a screen has one reader now, and a pick that waits on the full check is not owed one until the check has read its drawing; a test fails on the old code. The question to ask of any rule that says a step is owed: if the step ran now, would it change what the rule reads? Its code has since been removed, with the part of the studio it served.

A percentage bar that let a whole line go missing

A short reel’s check passed when 90 percent of its caption words were heard in the audio, because the speech recogniser respells a few product names. The reel has 72 caption words; the scene in the middle of it is three short lines, the first only three words long. With that whole line muted, the file still read 69 of 72 words heard, over the bar, so a reel that had lost a line of its scene would have passed. We found it by planting the fault before the real clips existed.

The rule we keep: A percentage over a whole file is carried by its longest part, and the part that is new, short and the point of the piece weighs least in it. When a cut gains a part from another source, that part gets its own bar at every one of its own words, in order, beside the whole-file bar, and its own planted fault. Read a threshold by asking what is the largest whole thing that can go missing under it.

Two events in one minute are a question, not a cause

A producing agent kept a quality case on a shot, and within the same minutes the page showed that shot go from failing to passed, as two other shots had after earlier keeps. The agent reported it as a coincidence in time it could not explain. The session that orchestrates our agents wrote it down as a cause, stopped every keep, and reported it as a fact. It was wrong. The one reader that clears a drawing’s line takes only a case with a judgement and a finding, and this case had neither; what moved the cards was the full check’s own re-read of the episode, which had started a few minutes before. The same evening another agent credited a rewrite to the failing check shown beside it on the page. The rewrite came from marks a person had made on the review page.

The rule we keep: Before two events in one minute are written down as cause and effect, read the code that reads the record, not only the code that writes it. Say it as what it is: the page shows this after that, and whether one caused the other is not known yet. Carry a reporter’s own hedge; never drop it. The fix that lasts is a test that pins the property, and a card that says when this drawing was read.

A rewrite loop that deleted the people to pass its questions

In one of our short films the quality loop rewrote eleven shots, and every one of them lost its people. “A group of players in blue shirts hug each other” became “The green pitch is empty and still”. “A small child’s hands grip the long iron handle” became “The long iron handle rests at the top of its stroke”. A shot nobody is in passes every question about where people stand, look and face, so the loop’s own questions rewarded it for deleting them. The guard that keeps the cast kept only named characters, and this film’s people were a team, a child’s hands and some engineers.

Still open: One reader now says who is in a shot’s words, a rewrite that leaves nobody is refused for every writer of the loop, and a shot whose words lost their people is answered with its earlier words. It is written and not yet released. Of any loop that rewards a question, ask what the cheapest way to make the question pass is, and whether deleting the subject is one.

A hand-made fixture is a claim about the other side

Twice in one day a test passed on data built by hand while the real thing failed. A page harness built the server’s answer by hand, with a new field in it; the server computed the field and never put it on the object it returned, so every live card would have said the picture check had not looked yet. And three tests, each holding its own hand-made score table, passed while the studio refused the table the exporter really built.

Fix: Where one side builds a document and the other validates it, a test builds the document with the sender’s own code and runs the receiver’s own checker on it, and the same check runs on each real export before anything points at it. A new field the page reads is asserted on the object the server’s own builder returns, not only on a fixture. A fake that checks the receiver’s rules by hand is a second copy, and it drifts. Part of its code has since been removed, with the part of the studio it served.

A reply cut at its cap is asked in halves, never with a bigger cap

A film’s script reading failed on every start, 8 times in one morning. It asks our language model for the people, places and objects of the script and each scene’s place, and the reply ran past its cap of 4,000 tokens; a reply cut at its cap is an error that is never retried. The call log showed two scripts that had passed at 3,640 and 3,781 tokens of the 4,000: for any longer film the cap was a coin toss.

Fix: The cure is not a bigger cap, which only moves the length that fails. An answer that is cut is asked again as two halves of its scenes, each half told what the other parts already hold so the parts do not repeat each other, until each fits; a single scene that still does not fit raises. The cap stays one number, pinned by a test.

The answer key leaked onto the judge’s card

Our test of vision models shows a card for each case: what the model was sent, and under it what the check would have needed that no model was given. That second block was filled with the note of the person who kept the case, and the note states the answer. All 922 such entries were the keeper’s note, 103 of them stating a verdict, on 881 of 2,385 cards, and a sample of those cards was about to be judged blind. A producing agent found it by reading a card before ruling on it. Hours later the same leak turned up on the page built for reviewing every shot, where a keeper’s verdict for another drawing of the same shot stood on the card.

Fix: What the check needs is built from the facts (the shot’s cast and words, the scene a rule applies by, the other shots’ own words), never from the answer key’s explanation, and an invariant is red on a needs text that states a verdict or carries the note. On the page those words stay closed until the viewer has given a verdict on that card. Its code has since been removed, with the part of the studio it served.

The rule we keep: A field written by the person who judged a case is never shown, whole or in part, to a second person before that person’s own verdict. A page that asks for a blind verdict is read for the answer before the judge is sent to it, and the leak is counted at its source, not on a sample of cards.

A check measured high and left switched off

A short film’s script makes its hero a boy who turns into a monkey, with round monkey ears and a long curled tail. The step that writes each character’s look dropped those words, so the cast pictures showed a boy’s ears, hands and bare feet and no tail. A rule that finds exactly this had existed for two days, measured on a truth written by eye: it caught 6 of 6 real cases. It was left reporting until someone switched it on, and nothing applied a cure, so the same defect shipped in two films.

Fix: Once a check is measured and its precision is high, switching it on is part of the same release, not a later step that waits on a person. A finding whose cure is mechanical gets the cure in the same release: here the look gets the script’s own words back by code, so the model is asked only for what code cannot do.

This post’s own update, held, and a score that did not rank

This post’s daily update was held for three nights, and the catch-up became one job of 449 memories; the reading alone took 49 minutes of shared seats on our language model. Asked to score each memory from one to five for what an outside engineer would learn, the model gave one of the two top scores to 288 of 449, so the pick was made by eye. Asked instead to rank the memories of a batch against each other, each rank used once, it returned a clean ranking in 3 of 3 batches the same evening. Of the numbers it quoted from the memories, 701 of 714 were there word for word, and code dropped the rest.

The rule we keep: A held daily job does not go away; it compounds, so before holding it, say what a night adds. Ask a model to rank items against each other inside a batch, never to score each alone, and check every quote it gives against its source by code.

A gate that guessed who owns a card’s memory from its size

A new kind of render box joined the farm and took no clips, and two faults hid behind the one idle box. The list of cards able to make a clip was read from the farm page’s row of installed models, which lists none for the new boxes, though a probe of each box had already found all 17 of its pinned model files. And a gate meant to catch a second server on a card counted any memory beyond the image server’s own reservation, over 4 gigabytes, as someone else’s: the image server’s own leftovers read 12.6, 12.8 and 4.8 gigabytes, so three working boxes read as held by another server.

Still open: A gate that guesses who owns memory from a size is a guess; ask the process list which processes hold the card. And a list that decides who may do a job has one reader of whether a card has the model, never the page’s list for some cards and a probe for others. The threshold was raised to 16 gigabytes for the night; the process-list read and the one reader are not yet in the released code.

Added on 8 October

On 8 October, after the post’s previous update, we wrote down 31 more lessons. The 23 below tell 24 of them; the other 7 stay in our own notes, each with the reason it is not here.

One waiting read moved two cards for hours

Two of our render cards are lent to the vision checks when the checks back up. The rule counted every check waiting anywhere, so a single read that had waited 60 seconds took both cards off the episode in production, and they stayed on checks for hours: with 15-16 other episodes’ reads in the queue, the way back (no read waiting for a while) could never come true.

Fix: The demand is measured on the episode in production alone, and only the same read waiting at every look across 5 minutes counts as a backlog; the way back is none of its reads waiting for 3 minutes, whatever the other episodes do. A sample taken before the rule existed is no measure at all, never a clear. Its code has since been removed, with the part of the studio it served.

Green tests on a project shaped unlike the real one

A rule decided which pictures of an episode the checks should read before its cut. It passed seven tests, all on a test project that had a record brought in from the old pipeline and nothing else. The episode in production had that record and a cut made by the engine since, and the rule never offered its stills to the checks at all.

Fix: The rule asks whether the engine has cut the project since anything was brought in, and the tests carry both states. Before a test project stands for a live one, we list the live one’s states and give the test project every state the rule branches on.

A pass from a check that had not asked

An episode’s loop re-picked 12 of its 13 shots whose faces had failed, each to a take the full QA had never read. The still screen had passed those takes, but the screen does not ask the full QA’s blocking questions, so its pass meant only that nobody had asked yet.

Fix: A pick of a take the full QA has not read is provisional: its clip and the cut wait, and the full QA reads it within 1-2 minutes. Not yet asked is never passed. Part of its code has since been removed, with the part of the studio it served.

The same answer worked out again from nothing

The process that builds each project’s page spent 17.8 seconds of a 136-second build asking the whole board gate again, from a cold start, about a board the engine had gated a minute earlier. The same checks cost 0.3 seconds in the engine’s own process. Timing each check found it; a guess had not.

Fix: The engine hands its verdict to the page builder beside the storyboard. When it gives none, the gate is asked as before, under a label that says so, so the slow path cannot quietly become the normal one. On the next build that step took 0.0 seconds.

A fairness limit only one side obeyed

Calls to our language model take turns by priority, and a low-priority call that had waited long enough was meant to stop yielding. It stopped on its own side only: the higher call still saw nobody ahead of it, so both went for the freed slot at once, and the test of the limit failed 3 of 10 runs.

Fix: A call past the limit counts as the top priority in the one order every waiter computes, so the higher call yields back, and ties go by arrival: 0 failures in 30 runs. A fairness limit belongs in the order everyone computes, never in a rule one side applies to itself.

A test that read an improvement as a break

Two tests held that a stage owed nothing claims no work left, by asserting that it said nothing at all. The day every stage learned to end with a line saying what it did (the sixth mistake above), those tests went red on the live tree, though the behaviour they guarded still held.

Fix: They assert the property now, that no work is claimed left, through one helper that accepts a silent stage and one that says nothing is left. A test pins what a stage must not claim, not the absence of a message.

Twins counted as separate evidence

A picture is drawn from a shot’s words and a take number, so shots with identical words draw the identical picture at each take. A set of 54 rows judged by eye held only 37 distinct wrong pictures and 10 distinct right ones, so a rate counted by rows weighed some pictures several times, and a fix measured on one shot’s redraw said nothing about its twins.

The rule we keep: A held-out set is counted by distinct picture, and both counts are reported. A redraw meant to change twins changes their words or their take, or it changes one picture.

A retry loop that would turn a network blip into a redraw

To save slow restarts, the still screen was made to repeat its pass within one run while a second opinion was still owed. A reviewer saw the hole before it bit: when the model does not answer at all, the repeats would spend all of a picture’s tries in seconds, fail the take and pay for a redraw on the render cards, where the old pacing of one ask per run let an outage of a few minutes cost nothing.

Fix: A pass in which any ask got no reply ends the run’s repeats; only a reply the reader could not read is asked again at once. A retry loop repeats only on a failure that more asking can cure, never on one that only time cures. Its code has since been removed, with the part of the studio it served.

Still open: The counting screens ask the model by another path, which is not yet tallied this way.

A busy lock read as a refusal

A press on the page was refused because the queue’s lock had been held by another writer for 60 seconds: approving a board re-hashes it under that lock for tens of seconds, and many episodes were approving at once. The press had broken no rule. It had only waited.

Fix: A busy lock is a wait now: the request stays in hand and is tried again every 20 seconds, up to 12 times, before the page says, in words, that the lock was busy.

Still open: Why an approval holds the lock that long is not yet fixed.

A guard that forgot itself at every hand-over

The page builder rebuilds a project’s page out of turn when its board jumps, behind a guard so one project cannot take every turn. The guard was one timer for all projects, kept in the process’s memory. So the episode in production stood fifteen minutes behind its own new board while another episode’s jump held the guard; and since the builder hands over to a fresh copy at every code change, each fresh copy forgot the jumps already made.

Fix: The project served first has a short guard of its own and does not spend the others’. Every jump goes through one function that writes it to disk, and each new copy reads it once. A guard’s test now hands over between its steps, or it proves the guard only inside one process.

A ratio that carried an old board

New story was sized with a ratio of cut seconds to script seconds (the eleventh mistake above). Asked whether the episode in production would now reach its floor, the ratio said about 861 seconds, short of it. The cut’s own code, run on the voices already made, said 1230.5 seconds in one language and 1242.8 in the other, well above the floor. Checked first on the last cuts’ recorded shots, the same count matched the real cuts to a tenth of a second. The ratio had missed about 203 shots the board had gained since it was measured.

Fix: Whether a cut will reach its floor is counted before the cut is made, by the cut’s own code on the voices already made, after it matches the last cut’s recorded shots. The ratio is kept for when no voices exist yet.

A store that turned “not said” into “none”

An episode’s line on the page lost its words about the episode’s floor. The store wrote an empty floor on every film entry, including entries from an older feed that never sent the field, and the page read a stored empty value as an answer: this project has no floor. The page’s test was green because its stand-in handed the page a film with no field at all, a shape the store never produced.

Fix: A field with three meanings (a value, none, not said) is stored with all three: the key is written only when the feed sent it, and the test that watches it fail is on the store, not only on the page. In the same line, two writers rounded one length two ways, 3:46 beside 3:47; they round the same way now. Part of its code has since been removed, with the part of the studio it served.

A version read from words that had already dropped it

The page states which storyboard an approval was for, read from the approval’s own event. But the page translates every event into plain words when it loads, and a board’s version becomes “the storyboard”, since the studio never shows a hash. By the time the line was drawn, the version it needed was gone, and the line said nothing.

Fix: The version is kept as a field of the event before its words are translated, and the line says whether the approval was of the current storyboard or an earlier one. Anything read later from a string is taken before the page rewrites that string.

A judgement attached to whatever held its place

A reviewer judged 54 pictures by eye and asked the page to keep each one as a check case. The form sent only the take number. The requests waited in line 20-40 minutes while the engine rewrote and redrew some of the shots. Six cases were kept with a verdict, and its words, on a picture nobody had judged.

Fix: A request that records a judgement names its picture by the still’s own name, resolved against the board the person was looking at; a take the board no longer holds is said, and nothing is sent. A take number is a position, not an identity.

The loudest writer took the whole window

The page’s activity list was the newest 150 events of the account. One evening the agents’ check-case records were written by the hundred, filled most of that window, and crowded out the films’ own lines, which are what the list is for.

Fix: The records are a read of their own, with their own limit and their true count, and the activity is everything else; what counts as a record is defined in one place. On a test database of 200 records and 20 film events, all 20 film events come back, where the old read returned 0.

A second definition that silently replaced the first

A helper was added to a module of thousands of lines under a name the module already used, 3000 lines below the first. Python replaces the first definition without a word, so every full page build failed for about 13 minutes, and no test reached that path.

Fix: A fast guard over every tracked Python file refuses a top-level name defined twice in one module and names both lines; it was watched to fail on the commit that broke. Whether a name is taken is a guard’s job, not a reviewer’s.

Three launchers and one log

Three launchers can start the page builder. Each named its log by the second it started and opened it fresh, so two launches in the same second wrote over one file, and the copy that won kept no line of its first round. The page stood 8.2 minutes old, and the log could not say why.

Fix: A launch takes a claim before any copy starts, so there is one launcher per hand-over; each launcher writes a log of its own, with its first line, before the copy runs; and the builder says each minute which step it is still on. The alarm’s threshold was replayed on the day’s 575 page builds before anyone touched it, and it stayed.

A hold that arrived after the work it meant to stop

A project’s owner wanted to see its stills before any clip was drawn, and an agent watched the page to press Hold when the stills were done. The farm drew all 21 stills and then six of the seven clips within minutes, while the page’s count trailed behind; the Hold was pressed after the clips it was meant to stop, and minutes later it was still only queued.

The rule we keep: A hold is pressed at the first sign of the stage before the one to stop, and a hold is reported only when the page says it is done; queued is a request, not a hold.

Still open: The structure is a gate the farm keeps itself: no clip is drawn until the owner has seen the stills.

A pause that paused nothing

When a picture on a customer’s project failed a safety question, the engine published a safety pause, and the page showed the project as paused. No step of the scheduler read that field, so the farm kept drawing every other shot.

Fix: The pause sets the project’s own hold, the one hold every step already honours, and only a person’s release, in their words, lifts it; a new picture that fails holds it again. Of every “paused” on a page we ask which step reads it.

The terms kept a number the price table had changed

The free allowance moved from 60 to 300 seconds in the plan table that billing reads. The terms still said 60 seconds as typed words, a test still pinned the old line, and the live tree went red, which stopped every other agent’s release until it was fixed.

Fix: The terms name the allowance by a placeholder that the page’s build fills from the table, and a test compares the built page with the table and refuses any placeholder left unfilled. A number the customer is told, typed beside the table it comes from, is a second copy.

Every agent releasing, and a release of the wrong branch

Every agent released its own work, and with sixteen of them the line of releases became hard to follow. The same night, a release run from another agent’s working copy shipped whatever that copy held at the moment it started: its owner had just switched it to new, empty work, so a fix for a failing check did not go live, and the release still reported success.

Fix: Releases go through one agent that does nothing else. The others commit, push and hand it a ready line; it runs a smoke test and releases when the test passes.

Still open: The release tool refusing any branch but the one it was asked to ship, the release agent working from a copy of its own, and its confirming that the branch is in the live tree rather than trusting the exit code, are next.

A test loop running yesterday’s code

The full test suite was meant to run on a separate test server, and that split had landed hours earlier. It was still running on the development machine, 1-3.5 hours a run, because a loop started the night before ran the code it had imported at its start, and held the port every newer launch needed, for 22 hours. On the server the same suite takes 187 seconds.

Still open: The loop was stopped by hand. A loop that ends and starts again when its own files change is being built.

A yes that had to quote the text

A screen we are building asks a model whether a customer’s script holds content we refuse, and a yes must quote the script, checked by code. The parser of its replies swallowed a line break and read the next line as this line’s quote, so 17 of 36 test texts came back unread on the first run. And asked for a quote, the model sometimes quoted the question’s words instead of the script’s.

Still open: The fix is built and measured, and goes live with the screen: the parser reads only within its line, and a yes without a quote is asked again, up to 3 times, naming the line, then held with its reason.

The studio as of this writing: 5,318 lessons in its memory, 34,468 automated tests, 59 properties every production must answer for, and 29 agents building and running it.

Quick Search Our Blogs

Type in keywords and get instant access to related blog posts.