LawVM as Mechanism Engineering

Turning failures into machinery for the next attempt

Elias Kunnas

Corpus frame

The corpus applies one lens to many domains: what mechanisms produce the outcome? It shares four methodological commitments and one explicit directional commitment. Each linked page argues for its part; the links are derivations and disputes, not evidence inherited by every page. The directional commitment does not by itself settle system boundary, distribution, sacrifice, or institutional authority.

  1. Mechanisms are what act. Incentive gradients, selection pressures, feedback loops, and capital stocks produce the distribution of outcomes. Intentions, labels, official categories, and stated values are evidence about mechanisms, or are themselves coordination mechanisms. They are not causal substitutes. — Mechanism Realism · Only Selection
  2. The reference telos is sustained flourishing. The broadest achievable adaptive safety margin over deep time — not the continuity of any incumbent state, coalition, institution, or doctrine. A mechanism's own stated goal can still serve as a local proof obligation — showing that its incentives defeat even the purpose it claims is a bounded finding — but meeting that goal establishes nothing about the margin. — Flourishing Is Maximum Safety Margin
  3. Law, rights, legitimacy, democracy, markets, and sovereignty are mechanisms under evaluation. They are constraints, carriers, or proxies inside the analysis. None is a terminal value or a boundary of what is real. Treating one as terminal ends the mechanism search before it starts. Evaluation carries current function, replacement cost, path dependence, uncertainty, capture risk, reversibility, and who bears model error into the ledger. — The Stack · Mechanism Space
  4. Optimization is a system function. A civilization has to build, exercise, and revise metamechanisms that search mechanism-space, discard dominated options, install, observe effects, and repair under uncertainty. Not running that loop leaves margin unrealized, and that is itself the failure. No single component — analyst, model, or institution — is presumed to contain a global optimum; the capacity is a property of the system. — From Telos to Policy · The Three-Layer Architecture
  5. Uncertainty is preserved, not spent. Partial orders, binding constraints, unknowns, and residuals stay explicit. An unmeasured effect is not a favorable default. — The Compression Paradox · Cargo Cult Epistemology

Each essay bears its own evidence. Links carry definitions, derivations, applications, and disputes; they do not transfer proof. Criticism is answered on its substance.

Where each commitment is derived

Worked examples: public LawVM snapshot, 12 July 2026. Later LawVM development is not the evidence for these claims.

A new rule could receive the strongest confidence classification because nobody had entered its classification. One repair made unknown rules fail explicitly. A related design derived the rules and their classifications from one catalog, removing a separate synchronization task. Both changed the burden on later contributors. The question was no longer only whether this rule was correct, but what would happen the next time someone added one.

Standard objections addressed in this essay
  • “This is just software engineering.” — §V (the methods have close counterparts; the contribution is an inspectable construction).
  • “Your checks only prove what you told them to check.” — §II and §III (declared population versus source population; presence of a reason versus its validity).
  • “More rules can make useful work impossible.” — §IV (derive away the failure where possible; test, narrow, or retire the guard).
  • “A ministry is not a compiler.” — §VI (candidate methods for public assurance, not a demonstrated institution).

I. Who must remember what

LawVM reconstructs legal text from published amendments. Fidelity to those sources is the working criterion, with unresolved cases left visible. That reconstruction is one engineering project. A second project organizes the people, models, representations, and checks that build and revise it. A single code patch can change either or both. The distinction is what future work inherits.

A forgotten requirement can be added to a prompt. It can become a regression test. It can also lead to a representation in which the troublesome operation is unavailable, or a separate check that refuses it. Each choice places a different recurring burden on later work.

A rule missing from a confidence registry could receive the most confident classification. The diagnosis was a split update: the rule in one place, its classification in another, and a missing classification treated as certainty. Three repairs were available. A reminder would have told every later contributor to keep the two places in step. A completeness test would have let them forget, then failed visibly. A single catalog would have removed the second place.

The public snapshot records two of those constructions, not a single chronology through all three. In one implementation, an unknown rule now fails explicitly. In a neighboring implementation, the rules and their confidence classifications are derived from one catalog, so that synchronization failure cannot arise through that route. The project's discipline record names the hierarchy: eliminate the trap, make the gap visible, or test for it.1

The difference is who must remember what. With a reminder, every future contributor must remember to update two places. With a completeness test, the contributor can forget and receive an error. With one authoritative catalog, there is no second update to forget. The gain is not that the two records sit near each other. It is that they are no longer independently maintained. The original judgment about a particular rule may still be wrong. A class of failure has been removed rather than checked.

Later attempts encounter a different work path: the silent default is gone, or the second register is gone. The motivating defect — an uncataloged rule treated as certain — is rejected or cannot be represented. A valid neighboring case, a rule whose classification was entered, still works.

The same question applies when models do much of the work. A model can produce an elaborate candidate without acquiring the right to decide what that candidate proves. LawVM's public Agent Guide states a separation of proposal, validation, and execution. A recovery heuristic may search broadly; a separately defined check is supposed to decide whether a proposed change may enter replay. The existence of that rule is not evidence that every implementation path enforces it.2

A useful requirement is therefore more specific than “be careful”: name the object, the allowed change, the evidence required, and the test that should reject the motivating failure. A guard, in this sense, is a check or restriction that can intercept a specified failure on a named path. Its immediate achievement is to make a previously silent move explicit, rejectable, and open to inspection in the ordinary work path. The maintainer still controls the repository.

II. What the checker never saw

A changed path is still only as strong as the proposition its checks actually establish.

A checker can approve every item it receives while the system has already lost part of the work. Asking another reviewer to inspect the same items leaves the missing part just as invisible.

One of LawVM's public accounting checks starts with a declared list of source effects — amendment instructions in that list — and records what happened to each. An effect must produce operations, a named rejection, or an observation. Saying that an effect was handled while emitting nothing is an error; so are duplicate records and records for effects outside the declared list.3

The boundary is easy to demonstrate on the public module. Declare two source effects, account for only one, and the checker rejects the result. Remove the missing effect from the declaration as well, and the checker accepts the remaining account. Both behaviours are correct for the question the checker was given. The second input contains no evidence that anything is missing.

Accounting for every declared input is a different task from establishing that every relevant input was declared.

A public development change addresses this blind spot in document ingestion. In the affected paths, checks examined the units extracted from a document; a dropped section or column could produce no unit and therefore no unresolved item. The snapshot includes an optional coverage comparison for born-digital material: text regions on the source page against the regions claimed by extracted units. Unclaimed text and gaps in section sequences become findings. Tests for that pass were inspected, not executed here. The comparison changes later attempts only on paths that actually run it. It is not the default production path, and it cannot see omissions that never appear as text or geometry.4

Where it does run, the object under inspection has changed. Instead of asking only whether the extracted work was acceptable, the pass asks what happened to the source material from which that work should have come. That is a construction of the same family as the catalog. It is also a reminder that a passing check, including a new one, still proves only the proposition it was given.

III. The checker is also on trial

A recorded explanation can be empty ceremony. A field named “evidence” does not establish that the evidence supports the result.

LawVM's public receipt checker requires a nonempty source-warrant pointer for an emitted operation. A minimal test can supply a meaningless nonempty string and satisfy that requirement. The checker has established that a pointer was supplied, not that its target exists or justifies the operation.3

The same issue appears when a blocking finding is downgraded. Sometimes a finding is mistaken: a structural rule can misread a numbering convention, for example. LawVM permits reclassification but requires a named rule and a reason. Its small public checker rejects a missing rule or missing reason. It accepts an arbitrary nonempty explanation, because judging the explanation is outside that check.5

A reclassification procedure must retain the decision for inspection and determine whether its reason defeats the original finding. This checker establishes only that the supplied record contains the required fields. Preserving the record and evaluating the reason remain separate operations.

The test machinery must be developed with the same care as the machinery it tests.

This work includes discovering the proposition a check should establish. Is the input population complete? Does the source support this operation? Did the operation stay within its permitted target? Is an earlier result still applicable after its dependencies changed? These are different questions. Agreement on one cannot silently authorize a conclusion about another. Reusing a result introduces another: whether the inputs and conditions under which it was checked still hold.

Code can exist before it is wired into the production path. A test can pass before the broader claim it was meant to support is settled. A design can specify a needed account before that account is implemented. Preserving those states lets construction continue without pretending that every remaining question has already been answered. Later work should inherit exact checks and the limits of those checks, rather than a general reputation for having been tested.

IV. The cost of a guard

A process that rejects everything can make a defect count look excellent. Useful construction has to preserve the work the mechanism was built to enable.

LawVM's discipline record includes rejected guard designs. A broad static rule against swallowed exceptions matched many legitimate best-effort operations and was dropped as too noisy. The retained rule targeted a narrower operation: changing a blocking finding to nonblocking without recording why. Tests exercised both its firing case and its permitted case.1

A protective rule creates maintenance work, exceptions, false positives, and incentives to route around it. If those costs overwhelm its function, keeping the rule can reproduce the original problem in a different form.

The relevant comparison is between possible repairs to the same failure. A reminder may be sufficient for a rare, reversible mistake. A test may protect a stable invariant. A redesigned representation may eliminate an entire synchronization problem. An explicit exception path may preserve legitimate work that an overbroad ban would suppress.

A guard also needs a test of its own operation. Introducing the motivating defect should make it fire; a valid neighboring case should pass. If the guard belongs on the production path, a direct call to its helper function is insufficient evidence that production actually reaches it. If an override remains possible, the override must preserve enough of the original finding to be challenged later.

The method therefore includes retiring machinery. A bad check should not become permanent merely because it was introduced in response to a real failure. The lesson worth retaining is the reason for the protection, together with a way to detect when the protection has ceased to serve that reason.

V. Inventing the acceptance machinery

The difficult work is not limited to implementing a known specification. The missing-input example required discovering that the successful output population was the wrong denominator. The reclassification example requires distinguishing the presence of reasons from their validity. The process has to invent part of the acceptance machinery while it invents the system being accepted.

That is why a newly exposed failure is already a construction task. “This checker cannot see that omission” names the next object. So does “this guard rejects the valid case,” or “these two supposed authorities answer different questions.” Increasing participant capability is one lever. Changing the task representation, access to evidence, division of labor, admissible operations, and cost of checking can make a different range of work possible.

These practices have close counterparts in existing engineering work. Proof-carrying code separates an untrusted producer from checking. CompCert composes explicit preservation guarantees across compiler passes. Continuous-assurance research treats evidence, arguments, and their possible defeaters as maintained objects. Ryan Lopopolo's OpenAI note on harness engineering, and Nicholas Carlini's Anthropic report on a C compiler built with parallel agents, describe redesigning environments, tests, and coordination so agents can perform longer and more complex work.6

The examples here show particular changes to the work path and the limits of the checks involved. One further construction problem is to keep a result attached to the exact question and conditions under which it was checked: reject an account that does not justify that result, and reconsider reuse when a relevant dependency changes.

I pursue LawVM for substantive learning and invention, as well as for the prospect of an inspectable demonstration. Learning, demonstrated capability, and adoption are different results. A builder can reproduce a boundary case, supply an independent check, or help construct the next one without endorsing a finished institution.

VI. One institutional question

A proposed public arrangement for testing mechanisms, preserving findings, and connecting them to an answerable correction process would also be produced by fallible participants. They would need to know which question they are answering, what population their evidence covers, what follows from a finding, and who may authorize the next action. Those are design problems, not qualities conferred by calling a body independent.7

The LawVM cases are a source of candidate methods for that work, not a demonstrated institutional implementation. One exact transfer question is already live in the software examples:

When an institution reports that every finding received a disposition, who establishes the population of findings against which that completeness claim is checked?

A source inventory can be finite and machine-readable; a public problem population may be disputed or only partly observable. A software check can reject an operation immediately; a policy evaluation may require competing causal models and years of observation. A repository owner can authorize a merge; public authority has to come from the relevant institutional arrangement. A public body that copies the labels has acquired none of those functions. Whether any such transfer works has to be shown with its own cases.

LawVM is a research setting in which some of this work can already be made exact. Each attempt can leave behind something more capable of producing, checking, and revising the next attempt.

The enduring product of a repair is what the next attempt no longer has to rediscover.


Related:

Sources and Notes

1. Changing and retiring guards

LawVM Discipline Gates (12 July 2026) records the eliminate / fail visibly / test hierarchy, the unknown-rule confidence default and its raise, the derived catalog alternative, witnessed reclassification, the rejected broad exception lint, and tests of guard liveness. These are the project's engineering records at that pin. They document design choices and stated verification; they are not a controlled estimate of project-wide effectiveness.

2. Declared objective and authority boundaries

The public LawVM Agent Guide at the same pin makes source-faithful text-state the objective, treats comparison text as fallible, and separates candidates, validated operations, and replay. Its rules are an operating contract; the existence of a rule is not evidence that every implementation path enforces it.

3. The declared-population boundary

The public replay-conservation module defines per-effect records and a ledger checked against source_effect_ids. Missing, duplicate, and foreign records are detected relative to that supplied population. A nonempty warrant is required for an emitted operation; the module does not inspect the referenced source. The two adverse controls in §II and §III follow directly from these interfaces and were reproduced against the byte-verified module. They are not claims about the complete LawVM pipeline.

4. Omission detection

The 12 July 2026 omission-census commit records the extracted-unit blind spot and the optional born-digital coverage pass. The tests include a deliberately dropped section, unclaimed text, sequence gaps, and a clean-page control. The implementation concerns the text-layer and geometry available to it. Those full ingestion tests were inspected, not executed here. The pass is an opt-in consumer of already-produced pages; the no-census path is intended to remain byte-identical.

5. The reason-presence boundary

The public downgrade-witness module checks that a specified reclassification carries both a rule identifier and a reason. Missing-field and arbitrary-nonempty-reason controls were reproduced against the byte-verified module. The checker enforces required fields in the supplied record. It does not establish the reason’s truth or ensure that the record remains available for later review.

6. Predecessors

George C. Necula and Robert R. Schneck, Proof-Carrying Code with Untrusted Proof Rules (ISSS 2002; DOI), is a predecessor for separating production and checking. The CompCert manual states its semantic-preservation theorem, the composition of compiler-pass proofs, and the phases outside that guarantee. Neither is evidence for LawVM's correctness.

Srivatsan Varadarajan and colleagues, Enabling Theory-based Continuous Assurance (2024), presents maintained claims, evidence, argument validity, and explicit defeaters with tool support. Adjacent work in the same family — Goal Structuring Notation, Claims-Arguments-Evidence, Assurance 2.0 — distinguishes recording evidence from showing that it supports a claim.

Ryan Lopopolo's Harness engineering (11 February 2026) describes building the environment, tools, and enforced boundaries around agent work. Nicholas Carlini's Building a C compiler with a team of parallel Claudes (5 February 2026) describes a neighboring experiment in tests, work allocation, and agent coordination. These are primary engineering reports, not controlled comparisons with LawVM.

This review has not established a historical impossibility claim that these examples overturn. It has identified particular implemented checks, documented process changes, and further constructions whose implementation remains open.

7. Institutional scope

The Corrigible State supplies the full functional trace of challenge-to-correction; The Fourth Branch proposes one organizational topology. Both are in the Related list. The transfer question in §VI concerns a function already visible in the software cases. It does not transfer the repository owner's powers to public life.

Construction, assurance, and continuation

The public code used here is pinned to 12 July 2026 (e5f5f696). The larger LawVM development programme continues beyond that snapshot. An implemented guard, a direct test, a live production path, and an independently confirmed outcome are different evidence classes. The claims above rely on the particular class stated.

The two adverse controls can be reconstructed from the public modules at that pin: omit a declared source effect and the conservation checker rejects; omit it from the declaration as well and the same checker accepts; supply a nonempty nonsense reason to the downgrade witness and it accepts. A useful next comparison would give separate builders the same bounded defect under a reminder-only process, a regression-test process, and a changed representation. That comparison is proposed work, not a completed result.