DEV Community

Randall Gossett
Randall Gossett

Posted on Originally published at Medium

The Loop, the Game, and the Contract

On Loop Theory, a notation for whether the loop came back, and the three older disciplines it borrows from without pretending to replace.

Feedback is the oldest pattern in engineering and the least measured pattern in ordinary life. A governor held a steam engine steady in the eighteenth century. Cybernetics gave feedback its mathematics in the twentieth. Yet there is still no standard page on which a person, a firm, or a peace process can write down whether its own loop came back and got acknowledged. Promises close or fail to close inside prose, and prose has no empty slot where a missing measurement belongs, so the failure leaves no mark. The argument that follows is made of two private memories, and an argument that cannot shrink to the size of one beat cannot settle.

Loop Theory, the paper this article introduces, proposes the missing page. Its instrument is the Loop Score: a notation modeled on the musical staff that writes a loop down as counted beats in four phases, claim, act, measure, close, against a reference line, with a strict rule for when a cycle counts as closed. The paper borrows openly from three disciplines, and it is worth walking through the borrowings one at a time, because each source supplies something real and each one stops short of the thing the notation exists to add.

The governor knew. The promise does not.

Watt's centrifugal governor, fitted to steam engines in the late seventeen eighties, regulated an engine by letting its output act back on its input: as speed rose, the flyballs swung out and throttled the steam; as speed fell, they dropped and admitted more. Maxwell wrote the first mathematical analysis of governors in 1868, and control theory began there. In the nineteen forties Wiener named the whole subject cybernetics. Control theory formalized the governor's secret as the error signal: the measured output compared against the reference, with the comparison driving the correction.

The Loop Score takes three things from this line. The loop itself as the unit of analysis, not the actor and not the intention. The reference, carried out of the engine room into domains where it is a fence line, a number in an account, or the words of an agreement. And the error signal's discipline: correction is the distance between a claim and a measurement, and nothing else earns the name.

What the formalism lacks is a record of the return. A control diagram assumes the feedback path exists; the mathematics begins after the return has arrived. Ordinary loops fail precisely before that point. The return never arrives, or arrives and is never looked at, or is looked at and never acknowledged by a second reading, and the failure leaves no trace in any document the loop's keepers hold. Control theory can say, of an engineered loop, whether it will settle. It has never pretended to say, of a promise between neighbors, whether the promise came back. The score is a formalism for the part control theory assumes away.

The close has a rule, and the rule is the theory

On the page, a loop does not count as closed because it stopped, went quiet, or everybody got tired. A close is a seal, and a seal has three conditions that must hold in the same beat: the voice is back on its reference line, the measure beat is present with a result somebody could state, and a second mark exists on that return, a reading of the same event written down by something other than the voice claiming it. Any condition missing, the cycle is drawn open, with the gap showing. A beat that never happened is drawn as an empty beat at its true position, so a later reader trips over the hole instead of reading past it.

The comparison that governs the whole instrument is stated early and never withdrawn. The score is a ruler. A ruler records and displays; it does not prove the thing is the length it ought to be, it does not grade the thing, and it needs no backup. One person alone with a page has the whole instrument. Nobody's cooperation is required to write a score or to read one, and nothing in the system is a mechanism of consensus or attestation. Where two marks at the same beat disagree, the page has done its sharpest work: at least one cannot be right, and every reader can see which beat and which claim the wrongness hangs on.

The repeated game, written down

Game theory enters through its simplest and most stable results, and no further. The mapping is direct. Voices are players. A mark is a committed move: once written at its beat, it cannot be quietly rewritten, because copies of the page can be compared mark by mark. The score as a whole is a repeated game with a public record, the setting Axelrod's tournaments made famous, in which strategies that condition present conduct on the recorded past outperform strategies that treat every round as the first.

The prisoner's dilemma serves as the reference case. Its sting is not that defection exists; it is that in the one shot game, with no record and no future, defection is the rational move and both players know it. The score attacks the conditions, not the players. It lengthens the game by writing it down, makes defections legible at their beats, and in the contract application prices them in advance through remedies: the consequence of a hollow mark is written into the page before anyone has missed, so executing the remedy is not an escalation. It is the next beat, played as written. The paper does not claim the dilemma is solved, or that gaming a score is impossible. The claim is narrower: a public record changes which strategies pay.

The contract that keeps its own log

A contract is a loop somebody tried to write down in prose, and prose contracts contain only the loop as promised. Nothing in the document records whether the loop closed. A contract written as a score carries its performance history on its own page: filled marks where delivery was measured, open marks where it was only claimed, empty beats standing visibly empty where a promised measurement never occurred.

This is where the paper meets Szabo's smart contracts, and the meeting demystifies both sides. In Szabo's original framing, a smart contract embeds contractual clauses in the hardware and software of a transaction so that performance is automatic and breach is expensive. On contact with the page, a smart contract is a measure beat that executes itself: the delivery is measured, the seal lands, the payment settles, one beat, drawn once. Prose contracts separate those events by weeks and departments, and the familiar disputes, delivered but not accepted, accepted but not paid, paid but not recorded, live in the gaps between them.

The paper is cooler about automation than the sales literature is. Code that settles on a measurement does not remove trust. It relocates trust to the measurement, to the question of who or what reports that the delivery matched the claim. Where the measured thing is physical, a gate hung on a line, the settlement inherits its measurer whole, with all his interests, and the score draws that inheritance instead of hiding it.

Underneath the contract application sits the property the author calls probably the best part of the system. A musical score exists before its performance. A contract score is written while it is played: the acts, measurements, seals, and empty beats can only be entered as the beats happen, so the finished document is simultaneously the instruction the parties performed from and the recording of how they performed it. Law has contracts, and it has performance logs. What it has never had is the log and the promise as one object. The document's authority curve inverts the prose contract's: weakest at signing, when it is mostly claims, and strongest at the end, when it is mostly record.

Precedent, on this account, is a library of prior performances, and the paper defines the test that library has always implied. The replay test: hand a score to people who have never met the author and receive no coaching beyond the page itself. They perform the loop from the page. Then compare, beat for beat: a seal where the original sealed, open where the original was open. A mismatch is not a disgrace. It is a measurement, pointing at the exact beat where the score was secretly relying on its author standing next to it explaining.

A thousand-year-old proof that notation works

The format is music's, entire: the staff as the field of one voice, voices stacked on a shared beat grid, bars as one complete pass, left to right reading that lets shape accumulate. The staff lines themselves are Guido d'Arezzo's, set out in the Micrologus around 1025: the invention that first let a chant be read by a stranger who had never heard it sung. Before notation, a chant lived in memory, changed at every handoff, and when two monasteries disagreed there was no object the argument could be about. Notation gave the dispute an object, and smaller disputes can end. The notation's modern practice is codified in Gardner Read's manual of 1979, cited the way Wiener is cited: as standing proof that a professional class will learn a notation when the page pays better than memory does.

What music does not supply is a semantics of closure. Music's cadence ends a phrase by convention and sonority. The seal ends a cycle only when a state has returned to a reference and a second reading has signed the return. The format is an inheritance. The marks are the invention. Sight-reading, the trained ability to perform from a page at first sight, answers the objection that judges, lawyers, and mediators will not learn a new page. Literacy is a skill, not an objection. The thermometer charged it, the staff charged it, double entry charged it.

What is not claimed

The paper states its limits in the same marks it uses on everything else, and this article will not soften them.

The dishonesty doctrine, that lying in a score is self-defeating because a false entry is a prediction the replay fails, is labeled in the paper as a prediction, not a finding. The price of lying has been derived and stated in advance. It has not been collected, because the replay test has not been run: no strangers have yet performed these loops from these pages under test conditions, and the paper says so without decoration. Its kill condition follows directly. If strangers cannot reproduce a loop's shape from its page materially better than from a prose description of the same loop, the notation has failed at the one job that justifies it, and the correct outcome is to say so on the record and stop.

And the limit that matters most. A score tallies whether a thing did what was written down. It does not choose the aim when people are genuinely split about what should be written down, and no record settles that second question. Where the aim is contested, the honest instruments are the older ones, argument and the vote, and the score's job begins only after an aim exists in writing. Any use of a tally of past performance to silently decide a contested aim commits the exact substitution the theory exists to catch: a receipt treated as a license to stop looking.

Score one loop. The rest of the instrument is practice.


Randall S. Gossett, "Loop Theory: A Notation for Whether the Loop Came Back," v1.0. DOI: https://doi.org/10.5281/zenodo.24616222

Top comments (0)