Skip to content
Design5 min readUpdated 27 Oct 2026

18. Programming at the scale of systems

18.1 The scale hypothesis#

Software in operation is growing faster than the teams that run it, for three reasons. Agents now write much of the code [185, 282]. One system now spans phones, browsers, edge isolates, servers and data engines. Each of those runtimes brings its own deployment, failure behaviour and debugger. Human attention does not grow with the system. Coordination costs grow faster than team size [41], and a system’s structure follows the structure of the communication around it [71]. We state the consequence as a hypothesis.

Scale hypothesis. Past a modest size, the effort that people and agents spend to make one correct change to a multi-runtime system grows with the size of the system when the system is known through its text. It stays nearly flat when the system is known through a typed graph that does three things: it answers questions with coverage, it checks changes before they apply, and it merges independent changes without review.

Figure 29 draws the hypothesis as a shape.

Figure 29

Figure 29. The scale hypothesis (H7), drawn as a shape to be tested, not as data. Below a modest size a typed graph is overhead. Above it, the effort of a change made through text grows with the system, while a typed graph keeps it nearly flat.

Section 20.4 turns this into the falsifiable hypothesis H7. Two observations motivate it. First, the authors measured their own repositories from agent transcripts, across 962 commits between July and October 2026:

  • a commit took about 119 model round trips and about 40 million tokens of input context;

  • 31–63% of those round trips were exploration and 9–11% were editing;

  • agents never called the structural query tools that were available.

The figures come from the local transcripts of two coding agents. A round trip is one model request, context is the sum of the requests’ input tokens, and a round trip counts as exploration or editing by the tools it called. We report them as motivation, not as evidence for H7. Second, the survey of Section 20.2 found one system modelled up to seven times inside a single tool, joined by names.

18.2 Raising the level again#

Each earlier step in programming raised the unit that people reason about, and moved a class of checking from people to machines:

  • compilers took over instruction selection;

  • type systems caught whole classes of runtime errors;

  • modules enforced the hiding of decisions [279];

  • managed runtimes made memory safe;

  • declarative infrastructure made fleets converge [47];

  • declarative interfaces kept screens consistent with state [242].

Each step was resisted as a loss of control. Each was accepted once its checks proved cheaper than the errors they prevented [96].

The next unit is the system itself: what runs where, talking to what, under whose authority, over which data, with what evidence. The next class of checks is cross-runtime: contracts, effects, authority, information flow and placement. A compiler for one runtime cannot see any of these. RG makes them the subject of types, rules and traversals.

18.3 What changes, dimension by dimension#

Table 25 summarises the change.

Table 25. Programming dimensions before and with RG.
Dimension Text-first practice With RG Measure
Understanding Read code and dashboards; reconstruct the system Typed queries that state their coverage; views; provenance that explains why (Section 8) Time to answer; agents’ share of exploration
Parallel development Branches merged as text; conflicts found late Independent patches merge without review; conflicts enumerable in advance; refs and proposals (Section 9) Conflicts per change; changes in flight
Review Textual diffs whose effect must be reconstructed Typed graph diffs ranked by risk, with computed impact Review minutes; invalid changes accepted (H6)
Execution Deploys and configuration written by hand per runtime Plans compiled from the graph; admission; code push (Section 9.5 and Section 13) Failed deploys; time to ship
Reliability Retries, timeouts and deduplication coded per call site Effect identity, fencing, outboxes and durable steps by construction Lost or duplicated effects under injected faults (H5)
Formal methods Separate models that drift from the code Specifications generated from the same graph; claims gate change (Section 15) Claims with fresh evidence per release
Observability Logs and spans joined by labels Observations joined by identity; coverage gaps explicit Unattributed spans; time to diagnosis
Authority Permissions in code and configuration Grants as data, labels on data, no self-approval (A5); tenancy and flow rules (A6, W11) Ungranted effects found statically

18.4 People and agents#

RG fixes a division of labour that lets the autonomy of agents grow safely.

  • People own intent, invariants, policy and approval.

  • Agents explore, propose patches, write code bodies and run analyses.

  • The kernel checks.

  • Executors apply.

No principal approves its own proposal. An agent’s autonomy is therefore a grant, widened as evidence of its reliability accumulates, rather than a switch. Its context is a traversal with a coverage claim, so it knows what it has not seen. People in the workbench and agents through tools ask the same typed queries, so neither has to reconstruct the system from files.

18.5 Formal methods as a by-product#

Lamport asks who builds a house without drawing blueprints [215]. In software the answer has been almost everyone, because blueprints drift from the building. In RG the blueprint is the graph: the building is elaborated from it and reconciled against it. Specifications are assembled from family templates (Equation 1). Claims are elements whose evidence goes stale when the code changes, and admission requires fresh evidence. Formal reasoning stops being a separate project and becomes a property of each release.

18.6 Risks#

Raising the level has four costs.

  • Ceremony. Over-formalising small features slows them. The common case must stay as easy as ordinary Kotlin.

  • Opacity. Opaque bodies limit what checks can see, and effect summaries are conservative.

  • Gaming. Measures such as review minutes invite gaming, so H6 and H7 pair them with the outcomes of injected defects.

  • Understanding. People who read less code may understand less of it. The graph must therefore explain as well as decide: provenance and why-queries are part of the design, not decoration.