Arthur Yakymenko
Arthur Yakymenko

Current research

Configuration as Law

Testing the hypothesis: results of the first cycle and a second version

Status: Version 2 — replaced by version 3 before its checks, see Paper 3

Paper 2 · 20 November 2026

Download PDF The same text as on this page · PDF, 433 KB · Evidence on GitHub

Abstract

In the first paper, we proposed the “Configuration as Law” hypothesis—a definition of a declarative operating system through seven properties—and, before the checks began, fixed five checks and the conditions under which each is considered to have failed. This paper consists of two parts. In Part I, we report the outcomes of these checks strictly according to the fixed conditions. A census of objects on clean virtual machines running Debian, Fedora CoreOS, NixOS, and Guix System, as well as on two personal machines, yielded outcome 0: both classifications assigned the personal selection of packages saved by the package manager to two classes with different consequences, and the text of the definitions does not resolve the disagreement over whether kernel threads should be treated as separate components or as code within the kernel. The checks of law, reproducibility, the lifecycle of a derivative, and authority yielded outcome ?: the testbeds revealed violations, but these have not been shown to follow from the properties themselves. Part II, explicitly separated from Part I, presents what was formulated after these results and is not confirmed by them: a test separating the definition of a declarative system from the design of a system built on the hypothesis; a second version of the hypothesis; a worked example; open problems; and a preliminary plan for checking the second version. The core of the second version consists of three properties: everything that is part of the system and is in force on the computer is recorded in the declaration or is in force within a corridor recorded in it; after application of the declaration, everything recorded is in force; the system provides no paths for changing itself past the declaration. Changing the system past the declaration outside the system's built-in tools, through the power of superuser privileges, constitutes breaking—a violation on the person's part that refutes none of the properties. The checks of the second version have not yet been conducted: their final failure conditions will be fixed and published before the checks begin, once observable criteria for the corridor's frame, completed application, and an unambiguous line have been selected, and the checks themselves will be conducted on machines and objects that the first cycle has not seen.

Keywords: declarative configuration, configuration management, operating systems, check conditions fixed in advance, reproducibility.

Paper

1. Introduction

In declarative configuration, a person describes the required final state of the system, and a tool derives the actions leading to it; Anderson and Couch define declarative configuration as specifying the desired final state [3]. A number of operating systems call themselves declarative: NixOS lists this word among its main properties on the project's home page [11], and GNU Guix builds a system from an operating system declaration [5]. We ask: what is a declarative operating system, and what properties must it possess?

In the first paper [18], we did not find in the literature a definition of a declarative operating system as a list of mandatory properties and proposed such a definition—the “Configuration as Law” hypothesis, consisting of seven properties. There, before the checks began, we also described five checks, fixed a failure condition for each, and stated a rule: definitions changed after the results become known constitute a new version of the hypothesis, which is checked on objects and machines not seen by the previous version.

This paper reports the outcomes of the checks and presents what we formulated after them. It is divided into two parts, and the division is fundamental. Part I reports the outcomes of the five checks strictly according to the conditions fixed in the first paper: without new classification rules, without new thresholds, and without restating the outcomes in terms of the second version. Part II, identified in its heading, presents what was formulated after the results: what was changed and why, the second version of the hypothesis, an example, open problems, and a preliminary plan for checking it. A hypothesis constructed from results cannot be presented as though it had been proposed before them; Kerr calls this substitution HARKing [9]. The second version is therefore not presented as having been checked and receives its own plan for checks; here the plan is preliminary, and the final failure conditions will be fixed and published before the checks begin.

The first paper [18] reviews work on declarative configuration, configuration management, functional operating systems, and image-based systems; here we cite only the sources needed for the exposition. Section 2 briefly presents version 1 and its plan for checks—in sufficient detail to assess the outcomes of Part I. Part I comprises Sections 3–5, and Part II Sections 6–10. Section 11 discusses limitations, and Section 12 concludes.

2. What was checked

This section presents version 1 of the hypothesis and its plan for checks as recorded in the first paper [18]; the arguments, worked example, and comparison with existing systems remain there. The definitions of version 1 and the failure conditions are reproduced unchanged from the English version of the first paper. This English text was used in the checks; a copy of it was fixed before they began [19].

2.1. The hypothesis, version 1

The concepts of version 1:

  • Declaration—a collection of files that a person has designated as the primary description of the computer. A declaration may consist of many files, but it forms one description and one source of truth about the system.
  • Running components—users and the rules under which they operate, programs, drivers, and services.
  • Derivative—an object that a described program has created itself because the object is needed for the program's operation: saved Wi-Fi networks for a network management service, extensions for a browser, a cache, a log. Code executed within a program is its derivative.
  • Data—what a person has created: photographs, documents, databases, and their own settings files, such as a text editor configuration.
  • Generation—a version of the system resulting from a new application of the declaration; it is possible to return to saved generations.
  • Bypass—a change to running components that is not recorded in the declaration.

The seven properties of version 1 are summarized in Table 1; the full formulations are in the first paper [18].

Table 1. Properties of version 1 (in brief)
PropertyContent
P1. CompletenessEverything that runs on the computer is recorded in the declaration; the exception is an explicit bypass through a line in the declaration or manual actions by a person with root privileges.
P2. GuaranteeEverything explicitly recorded in the declaration is present on the computer.
P3. Classification of the remainderEverything that is on the computer and is not recorded in the declaration is either a derivative of a recorded program or the person's data.
P4. LawThe system provides no path for changing running components by bypassing the declaration; a program, including one running with root privileges, changes the system only through the declaration; a bypass is possible only explicitly—through a line in the declaration or manual actions by a person with root privileges.
P5. InclusionAny derivative and any data can be recorded in the declaration; they then become subject to it on the same terms as everything else recorded.
P6. Lifecycle of a derivativeA derivative exists as long as its program is present in the current generation or in one of the saved generations; if the program is absent from the current generation, the derivative is moved to an archive; a shared derivative exists as long as at least one of its programs is present; whether to keep the archive or delete it is a setting in the declaration. P6 says nothing about data.
P7. AuthorityThe root declaration belongs to root; users' personal declarations cannot contradict it; by default, a user's permissions are ordinary Unix permissions, and root can restrict the personal declaration with an allowlist or a denylist; root's own privileges are not restricted.

Consequences of version 1: if no explicit bypass has occurred, reading the declaration is sufficient to find out what runs on the computer; the same declaration on another computer yields the same recorded components. The open problems of version 1 referred to in Part I are: O1—a criterion for a derivative; O2—the boundary between data and a derivative, including a configuration written by a person and executed by an editor; O3—the status of recorded data; O4—how to distinguish manual actions by a person with root privileges from a program with the same privileges; O5—whether a program launched by another program becomes its derivative; O6—an archive without instructions; O7—rollback and compatibility; O8—transfer of derivatives; O9—whether running components include everything installed or only what is running.

2.2. Five checks and their failure conditions

Table 2 lists the checks. The procedure is summarized, while the failure condition is reproduced unchanged.

Table 2. Checks of version 1 and their failure conditions
CheckWhat is checked and howFailure condition (unchanged)
1. Census (P1, P3)An inventory, on real machines, of running components and of stored objects that belong to no package, compiled using system facilities; each object is classified twice, independently, using the written definitions; agreement is measured by the proportion of matching decisions and Cohen's kappa.An object is found on either machine that, under the definitions, belongs to no class or belongs to two classes with different consequences, or the two classifications assign the object to different classes and the text of the definitions does not resolve the disagreement.
2. Law (P4)A Linux prototype in a virtual machine; installation and launch channels—the system package manager, programming language package managers, application packages, direct downloads, building in the home directory, user services and schedulers, interpreters, and extensions within programs. Under P3, extensions within programs are derivatives and do not count as bypasses; execution of scripts by an interpreter is a case of open problem O5, and its outcome is recorded as ? if the definitions do not resolve it. The virtual machine has no Wi-Fi or Bluetooth hardware, so these actions are checked on a real computer.At least one channel installs or launches a program although the declaration does not permit it and the person did not do it manually with root privileges; or explicit permission through a line in the declaration does not take effect; or an ordinary action by a person—installing a program, updating the system, connecting to a Wi-Fi network, connecting a Bluetooth device, working in a browser—cannot be performed without bypassing the declaration.
3. Reproducibility (consequence)The same declaration, without lines permitting a bypass, is applied to two clean machines; the running components are compared.The running components differ, and the difference is not explained by differences in hardware.
4. Lifecycle of a derivative (P6)On the prototype. A program with derivatives is removed from the declaration; all saved generations in which it was present are then deleted; a derivative needed by two programs is checked separately when one of them is removed. The experiment is repeated with two values of the archive setting: keep indefinitely and delete.A derivative is deleted while its program is present in the current or a saved generation; or a derivative remains active even though no program that needs it is present in the current generation, and it has not been moved to an archive; or a shared derivative is moved to an archive, deleted, or made inaccessible while a program that needs it is present in the current generation; or the fate of the archive differs from the setting.
5. Authority (P7)On the prototype. A user adds a program to their personal declaration, then attempts to record something in it that contradicts the root declaration; root restricts the personal declaration using an allowlist and a denylist.The personal declaration was able to contradict the root declaration; or a list-based restriction does not take effect; or, in the absence of lists, the user cannot do what ordinary Unix permissions allow; or the system restricts root's own privileges.
2.3. General rules for checks

The rules of Section 9.1 of the first paper, unchanged: For each check, its failure condition is fixed before it begins. The outcome of each check is 1 (the hypothesis withstood the check), 0 (it did not), or ? (insufficient data). We distinguish two kinds of failure. A counterexample to the definitions—an object that the definitions cannot classify (Check 1), or a requirement that contradicts another requirement—yields 0 for the hypothesis. A prototype failure yields 0 for the hypothesis only if it is shown to follow from the property itself rather than the prototype's design; otherwise, it is an implementation defect, and the outcome for the hypothesis is ?. If the definitions change after the results become known, this produces a new version of the hypothesis; it is checked against objects and machines that the previous version has not seen. All records of checks are dated and are not deleted. Checks 2, 4, and 5 are performed on one prototype, so their failure, without proof that it follows from the property itself, indicates a defect in the prototype rather than the falsity of the hypothesis.

Part I. Results of the checks of version 1

3. How the checks were conducted

Version 1 was checked according to the plan in Section 2 [18, 19]. The failure conditions were fixed before the checks began and were not changed after the results were obtained; no new classification rules or agreement thresholds were introduced. Success in a limited experiment does not replace the outcome of the full check, and we report it separately.

The experiments were conducted on disposable virtual machines: on a testbed—a Linux prototype built solely to check the properties—and on clean installations of existing systems. The census also covered two of the author's personal machines; information from them is reported only as aggregate numbers and is not published, and the public evidence for the outcome of Check 1 consists of the records from clean virtual machines. In the censuses, each object was classified twice, independently, using the written definitions of version 1. Each outcome was rechecked independently of whoever conducted the check: the numbers were recalculated from the original files, and a sample of the evidence was compared with the records [20, 21]. The records are dated and are not deleted; references to them are collected in the list “Records of the checks of the first cycle.” In Section 4, the observations for each check are presented first, followed by their interpretation under the fixed condition.

4. Outcomes of the checks

4.1. Check 1: census. Outcome 0

Observations. Inventories were compiled of packages, services, processes, accounts, kernel components, and stored objects that belong to no package. Rows assigned to a class automatically under the general inventory rules were excluded from the agreement calculation; the two independent classifications were compared on the remaining rows. Decisions were compared across five categories: recorded component, derivative, data, “no class,” and “two classes.” In the census of three clean systems—Debian, Fedora CoreOS, and NixOS—398 rows were compared; agreement was 63.32% (Cohen's kappa κ = 0.45480) [20]. In the census of a clean Guix System, 178 rows were compared; agreement was 80.34% (κ = 0.63346) [21]. On the two personal machines, 695 rows were compared: 477 on the workstation and 218 on the server; labels matched exactly in 215 rows (30.94%; κ = 0.27011), and across the five categories in 391 rows (56.26%; κ = 0.30135) [22]. Three further samples covered 262 rows from Ubuntu and Alpine, 510 rows from Arch Linux, Fedora Silverblue, and FreeBSD, and 235 rows from a Debian desktop system. For the first sample, agreement across the five categories was 29.77% (by literal labels, 6.11%); for the second and third, exact label agreement was 12.94% and 7.23% [24]. An agreement threshold was not a condition of the check, and none was introduced.

Outcome and its basis. The condition for Check 1 (Section 2.2) has three branches: an object belongs to no class; an object belongs to two classes with different consequences; the two classifications disagree, and the text does not resolve the disagreement. Outcome 0 was obtained on clean machines under the second and third branches.

On Guix System, both classifications assigned the same object to two classes—the persistent personal selection of packages: a user profile with its manifest, created by the command guix install. The profile is generated by the package manager as its working state, which fits the definition of a derivative, and stores the person's own selection, which fits the definition of data. The consequences differ: under P6, a derivative is moved to an archive when its program is removed, whereas P6 says nothing about data. The text gives neither reading priority, so the outcome of the Guix census is 0 [21]. The premise concerning the declaration is established here: the machine has declaration files for the system and the user's home environment, the selection was made by an ordinary user, and the hashes of the declaration files were unchanged before and after [21].

In the census of three systems, outcome 0 was obtained for each under the third branch. On Debian and Fedora CoreOS, one classification assigned kernel threads to derivatives of the kernel as code executed within a program, while the other assigned them to a recorded component; the definitions do not specify what counts as a separate component and do not resolve the disagreement. Both classifications assumed that the kernel was recorded, but these censuses did not establish that the person had declared the kernel to be recorded: membership in a package or image served only as an approximation, and the disagreement concerns what counts as a separate component under this shared premise [20]. On NixOS, the classifications disagreed over the user's package profile: whether it is the package manager's working state or the person's personal setting [20]. Shell and editor settings files (.bashrc, .vimrc) also remained unresolved: they are written by a person and executed by a program (O2) [20].

On the personal machines, the decisive case was a personal text editor configuration: its contents include both settings and executable expressions. Under the definitions of version 1 (Section 2.1), personal editor settings are data, while code executed within a program is its derivative; problem O2 explicitly identifies this overlap, and P6 gives the two classes different consequences [22]. This case has a limitation concerning its premise: the editor is present in the package inventory, but no declaration designated by the person as the primary description was checked on the personal machines, and no execution trace of the file was collected [22]. An analysis of the definitions in which the recorded editor is specified explicitly reproduced the same overlap [23]; it confirms the failure of the written rules under this premise but is not an additional empirical census. The censuses of clean machines therefore serve as public evidence for outcome 0: on Guix System, the premise concerning the declaration is established, whereas on Debian and Fedora CoreOS the disagreement about kernel threads arises under the premise, shared by both classifications but not established, that the kernel is recorded.

For the three additional samples, the outcome is ?. In the Ubuntu and Alpine sample and the Debian desktop sample, most disagreements involved a refusal to classify or missing premises [24]. For the Arch Linux, Fedora Silverblue, and FreeBSD sample, outcome 0 was initially recorded, but a subsequent review established that this decision had treated refusal to classify as a class; under the literal condition, the outcome for this sample is ? [24, 25].

Experiments observing the provenance of changes improved the matching of files to the processes that created them: in one set of 2058 created files, a single observed creating process was established for 2053 [26]. This establishes neither ownership in the sense of the definition of a derivative nor a program's need for an object. The inventories are incomplete and are not instantaneous snapshots: process visibility is limited, some reads are denied, objects are grouped, and firmware state was not observed [20, 21]. Such omissions do not prove that an object belongs to no class, but neither do they eliminate the observed contradiction in the definitions.

All decisive cases lie at the boundaries of the concepts of version 1: between data and a derivative (personal package selection, executable settings) and between a derivative and a recorded component (kernel threads). The definitions of a derivative and data, and property P3, which relies on them, did not withstand the check. The main open problems are a criterion for a derivative (O1), the boundary between data and a derivative (O2), and the composition of running components (O9); generated representations also concern the status of recorded data (O3).

4.2. Check 2: law. Outcome ?

Observations. Package installation, direct program downloads, building from source code, application packages, user services and schedulers, interpreters, and browser extensions were checked on the testbed; granting and revoking permission were checked separately. The everyday-work scenario included editing documents, working in a browser, an actual change of package version through the declaration, and data exchange through virtual Wi-Fi and Bluetooth devices; both network experiments received two responses out of two [27]. Launching a native executable could be denied, explicitly permitted, and denied again after permission was revoked [27]. Across 64 installation and launch channels checked in the same way on the testbed and on a clean NixOS installation, the testbed produced 40 denials, 21 observed effects, and three cases in which the required tools were absent; one denial concerned an already recorded program, so the number of denials is not equal to the number of successful applications of P4 [28]. Three methods of installing applications through recorded interpreters created installed files without changing the declaration [28]. After permission was revoked, execution that had already begun continued, while a new launch was denied [28]. A second, independent implementation of the testbed, in 104 runs involving permission changes and file replacements, showed that permission specified before a file was created took effect in one implementation and did not in the other; during a storage failure, an incomplete copy of an executable was accepted, and a permitted launch ended in denial twice [29]. In experiments with privileged sessions, an automated command simultaneously possessed all five measured indicators of a manual action: a login identifier in the audit log, a controlling terminal, fresh sudo authentication, an ancestor chain through an interactive shell, and membership in a login session [30].

Outcome and its basis. The testbed's restrictions did not cover arbitrary privileged programs, and denying the launch of an intermediate program does not prove control over all paths to the same operation. Installations through recorded interpreters are a defect in the testbed's controls, but this defect has not been shown to follow from P4 itself; moreover, under version 1, code executed within a program is its derivative, and the text does not resolve the disagreement over the classification of these cases. For script execution by an interpreter, the procedure for Check 2 required outcome ? in advance while problem O5 remained open, and under the same procedure, extensions within programs did not count as bypasses (Section 2.2). Virtual devices do not replace the checks on physical Wi-Fi and Bluetooth hardware required by the same procedure. The five indicators checked did not distinguish a person's manual action from an action by a program with root privileges (O4). The outcome is ?. The decisive unresolved boundaries are: a person and a program with root privileges (O4), launching and creating (O5), and the composition of running components (O9).

4.3. Check 3: reproducibility. Outcome ?

Observations. Two independent installations of the testbed retained the same 324 package records of the base system and independently added 777 records each before applying one declaration without lines permitting a bypass. There were matches for 1101 package records, 31 accounts, 43 active service units, 138 unit-file states, 52 modules, eight PCI devices, and 20 user-process records. The number of kernel tasks—68 and 69—and the names of kernel worker threads differed; the hardware was identical [31]. Three further pairs—NixOS, Guix System, and Debian—were independently installed on empty disks from pinned inputs. Within the pairs, the contents of 580 and 353 reachable store objects and 168 Debian package records with verified contents of installed files matched; these are different units of measurement and cannot be added together [32]. Eight clean-installation attempts with alternating hardware profiles, seven of which were measured, produced 140 of the 160 planned inventories and 14 of the 16 final observations [33]. When transferred between two clean systems, a number of applications were restored only after explicit state export and corrections to hardware addresses, external database paths, and encrypted credentials [33].

Outcome and its basis. Congruence of the inventories does not resolve whether a kernel worker thread is a separate running component or an internal instance of the same kernel; the difference is not explained by hardware and was not excluded as permissible nondeterminism. Generated identifiers and kernel worker-thread records also remained unresolved for the three pairs. Installation from shared prebuilt binary packages was checked; independent building was not checked. The outcome of all parts is ?. State transfer concerns problem O8 rather than reproduction of what is recorded in the declaration. The open problems involved are O1, O8, and O9.

4.4. Check 4: lifecycle of a derivative. Outcome ?

Observations. Programs with derivatives assigned to them were removed from the declaration, saved generations containing them were deleted, and access to shared state was checked after removing one owner; both archive settings were checked. In the initial experiment with two programs, all 102 checked conditions were met. An experiment with random sequences of generations included 512 transitions and 253 deletions of saved generations and passed all 805 checkpoints [34]. Owners in these experiments were assigned in advance. Outside its assigned directory, the browser created a 40-byte crash-report settings file that survived removal of the program and its generations. A later positive assessment was withdrawn because the calling test, rather than the system, specified the location of application state; its 94 met conditions describe behavior only with that placement [34]. In 48 sequences of ordinary browser and editor use on two implementations of the testbed, application state outside the archive persisted after the programs were actually removed; in the shared-access experiment, 40 of the 60 main sequences lost required access after restoration; during a storage failure, a reference from a saved generation was deleted before deletion of the archive on a read-only filesystem ended in failure [35]. Old versions of the browser and the synchronization program did not start with state written by newer versions [36].

Outcome and its basis. Individual failure conditions were met on the testbeds, but the violations have not been shown to follow from P6 rather than from the testbeds' design; the outcome is ?. The experiments provide no observable criterion for a program's need for an object and do not resolve the questions of an archive without instructions (O6), rollback compatibility (O7), and transfer (O8).

4.5. Check 5: authority. Outcome ?

Observations. Personal installation of a program, contradiction of the root declaration, allowlists and denylists, ordinary Unix permissions, and preservation of root privileges were checked. In the final run of 54 scenarios, 53 expectations were met; one unmet expectation—direct launch of the unrecorded original file—was retained [37]. In four cases, access to a file permitted by ordinary Unix permissions was denied when it was included through a personal declaration; experiments with concurrent application retained ten contradictions of the designated declarations and four cases of lists not taking effect; in recovery experiments, the condition concerning the absence of lists was violated on both implementations of the testbed, with 216 final observations on each [38].

Outcome and its basis. The testbeds' contracts were violated under the applicable conditions, but whether the violations can be eliminated while retaining all requirements of P4 and P7 has not been established; the outcome is ?.

5. Summary and limits of the conclusion

5.1. Summary
Table 3. Outcomes of the checks of version 1 under the fixed conditions
CheckOutcomeDecisive evidence or remaining limitationOpen problems of version 1
1. Census0On a clean Guix System, both classifications assigned the personal selection of packages to two classes with different consequences; on Debian, Fedora CoreOS, and NixOS, the text of the definitions does not resolve the disagreements between classifications (on Debian and Fedora CoreOS, under the unestablished premise that the kernel is recorded). On personal machines, an executable editor configuration; the declaration was not checked there.O1, O2, O3, O9
2. Law?A finite set of prohibitions and permissions on the testbed; unresolved interpreter cases, incomplete control over privileged programs, no checks on physical hardware; indicators of a manual action are reproduced by an automated command.O4, O5, O9
3. Reproducibility?Recorded contents and user processes matched; whether kernel worker threads are separate components remains unresolved (68 and 69 kernel tasks on identical hardware).O1, O8, O9
4. Lifecycle of a derivative?The experiment with owners assigned in advance passed all checkpoints; during ordinary use, application state remains outside the archive, and restoration disrupts shared access; the inevitability of the violations has not been proved.O1, O2, O6–O9
5. Authority?Limited success with permissions; on the testbeds, contradictions of declarations, lists not taking effect, and denials of access permitted by Unix permissions; the inevitability of the violations has not been proved.O4, O9
5.2. Limits of the conclusion

Outcome 0 applies to the written definitions of version 1. Analysis of the definitions shows that other difficult cases—an archive after the last owner disappears, irreversible state changes, and distinguishing manual from programmatic privileged actions—constrain possible implementations but do not prove the inevitable failure of each of them [23]. Finite formal representations revealed contradictions only under particular interpretations of scope, ownership, and permissible transitions, while comparison with the documented rules of existing systems retained outcome ? for all five groups of cases analyzed: the documentation provides examples of solutions, but no rule that eliminates the ambiguity of the definitions of version 1 [39]. Outcome 0 therefore cannot be restated as proof that a declarative operating system is impossible. Outcome ? means neither acceptance of a property nor an established refutation. What was formulated after these results is presented separately, in Part II.

Part II. Formulated after the results

This part was formulated after the results of Part I became known. Those results do not confirm it: they were obtained for version 1, while the second version has not yet been checked. It will be checked according to the plan in Section 10 on machines and objects that the first cycle has not seen; the final failure conditions of that plan will be fixed before the checks begin.

6. What changed and why

6.1. Starting point

Under the rule in Section 2.3, definitions changed after the results become known constitute a new version of the hypothesis; it is checked on objects and machines not seen by the previous version. Outcome 0 of Check 1 remains the outcome for version 1, and the second version does not cancel it. Each change below rests either on a result from Part I or on an argument that we present. The results of Part I explain why the definitions were changed but do not confirm the new definitions: constructed with these results in mind, they agree with them by construction.

6.2. What answers the question and what concerns system design

Version 1 mixed two kinds of statement: what makes a system declarative and how to design a system that is declarative. We apply one test to each item: if a system does this differently or does not do it at all, does it cease to be declarative? If it does not, the item concerns the design of a system built on the hypothesis rather than the definition. The same boundary separates the Nix deployment model from the NixOS system built on it: the former answers a question about software deployment, while the latter is one possible operating system design based on it [6, 7].

Under this test, the following are removed from the definition:

  • classification of what is unrecorded into program derivatives and the person's data (P3), together with the concepts of a derivative and data: a system may handle contents that are not part of the system in different ways, or not classify them at all, and the truth of the declaration about what is in force does not depend on this;
  • inclusion (P5): the ability to record any derivative or any data in the declaration is a convenience rather than a condition of being declarative;
  • the lifecycle of a derivative and the archive (P6): whether to keep the files of a removed program, move them to an archive, or delete them is a design decision; inert leftovers of a removed program do not make the declaration false, while leftovers that remain in force are already covered by P1;
  • the structure of authority (P7): the superuser's root declaration as a constitution, personal declarations, default Unix permissions, allowlists, and denylists are one way of designing a system; all that remains of P7 in the definition is the requirement for one source of truth, which is already contained in the concept of a declaration;
  • generations and rollback: a system without saved generations remains declarative if the declaration is true after each application;
  • transfer of accumulated state to another computer: the declaration describes the system, not accumulated data.

The removed items are not discarded but become problems for the design of a future system based on the hypothesis. Classification of what is unrecorded moves there together with outcome 0 of Check 1, that is, as an unresolved problem rather than a ready solution.

We explicitly state that Check 1 refuted precisely this classification. Its removal from the definition was not undertaken to save the hypothesis: the test of relevance to the question was applied equally to all items, and under it, parts that the checks did not refute were also removed from the definition—inclusion, the structure of authority, generations, and transfer. The new boundary—what is part of the system—itself becomes the subject of Check 1 of the second version (Section 10.2) and can refute the second version just as the boundary between data and a derivative refuted the first.

6.3. Changes to the core

The system boundary includes code. In version 1, one sentence required describing everything that runs (P1), while another classified code executed within a program as its derivatives. Under the latter, a script executed by an interpreter became a derivative of the interpreter and did not have to be described; version 1 recorded this discrepancy as problem O5, and Check 2 yielded ? for it [28]. Check 1 showed that the same sentence assigns executable settings to both data and a derivative, while the text does not resolve which reading takes precedence [20, 22]. We remove this sentence. Code capable of changing the computer beyond the program executing it—python or bash scripts, shell startup files, executable editor configurations—is part of the system in the second version and must be recorded in the declaration or be in force within a corridor. The argument is this: such code changes the computer just as a program does, and if it is in force past the declaration, reading the declaration no longer tells us what is in force on the computer. Code locked within its own program, such as a web page's JavaScript in a browser, remains the contents of that program. Problem O5 is closed.

“Is in force” instead of “runs.” The word “runs” suggested that the subject was running processes and gave rise to question O9: whether running components include everything installed or only what is running. A rule, such as the right to become superuser or a firewall rule, executes nothing but is in force. In the second version, the properties concern what is in force. Question O9 then becomes moot. What exactly must be in force—a program installed, a service enabled, or a setting specified—is stated by the declaration line itself, rather than by the definition. There is no need to choose between the readings “installed” and “running.” For what is recorded, the line specifies the required state. For what is unrecorded outside corridors, “not recorded” means “absent,” and absence requires both conditions simultaneously: the program is not executing—the removed program has been stopped—and is unavailable for a new launch (Section 7.1). The corridor and breaking are the same under either reading. The difference of 68 versus 69 kernel tasks in Check 3 [31] would not violate any line: the declaration contains a line about the kernel but no line about the number of its worker threads. If the firmware version is recorded in the declaration, the firmware must be in force; if it is not recorded, the declaration promises nothing about it. Problem O9 is closed. The outcome of Check 3 of version 1 does not change as a result: the second version is checked anew (Section 10.4).

A corridor instead of a line permitting a bypass. In version 1, bypassing the declaration was permitted by a line that stated only that a bypass was allowed but did not enumerate what was launched through it. In the second version, such a line is a corridor: it permits what is unrecorded to be in force within an explicitly delineated frame, for example to execute scripts in a project folder, and is itself a line of the law, like a line about any program. A corridor need not name every script: a general explicit line for the entire frame is sufficient. A declaration with a corridor remains true: the reader sees the corridor and its frame, while outside the frame what is unrecorded is not in force.

Breaking instead of a manual bypass with root privileges. Version 1 allowed a person with root privileges to bypass the declaration manually, but not a program with the same privileges, and problem O4 asked how the system would distinguish these cases. The first-cycle experiment showed that all five checked indicators of a manual action are simultaneously reproduced by an automated command [30]. In the second version, there is no need to distinguish them: changing the system past the declaration outside the built-in tools, through the power of superuser privileges obtained by any means—in a full superuser session or through sudo—constitutes breaking, that is, a violation on the person's part rather than a property of the system. The distinction is between the system's built-in tools and bypassing them through the power of superuser privileges, rather than between a person and a program. This rule applies to all properties. If it applied only to P4, a superuser who manually deleted a recorded browser would refute P2, although this is a person's action rather than a property of the system. The system does not promise protection from the superuser and is not required to detect breaking: the superuser can disable any check. Problem O4 is closed in both its parts.

There is no partial declarativity. Version 1 did not say whether a system could be partly declarative. In the second version, the properties admit no degrees. A partial guarantee forces one to check the entire computer, as in an imperative system: if the declaration is true only for part of the system, one has to inspect the computer itself to find out what is in force.

After application of the declaration. The properties of the second version apply to the computer after application of the declaration. This provides an answer to the question of what happens when a line is removed: after application of the declaration without it, nothing that this line introduced is in force unless covered by the remaining lines or corridors; a removed program that is not named by another line has been stopped, and its executable is unavailable for execution.

6.4. Open problems of version 1
  • O1 (a criterion for a derivative) and O2 (the boundary between data and a derivative) move with P3 to system design.
  • O3 (the status of recorded data) is unnecessary: whatever is recorded is subject to the law, regardless of what it is.
  • O4 (a person and a program with root privileges) is closed by the rule on breaking; the system is not required to detect breaking.
  • O5 (launching and creating) is closed by the rule on code: code capable of changing the computer beyond its own program is part of the system.
  • O6 (an archive without instructions) leaves with P6, O7 (rollback and compatibility) with generations, and O8 (transfer of derivatives) with state transfer.
  • O9 (what “runs” means) is closed: the declaration line states what must be in force.
6.5. What counts as an answer and the plan for checks

In the first paper, a list of properties satisfying three conditions counted as an answer to the research question, and the first condition required that the properties allow any object on a real computer to be assigned to a definite class [18]. In the second version, the first condition requires that, for any object on a real computer, it be possible to decide whether it is part of the system, that is, whether the declaration must cover it. The other two conditions are retained: a system possessing the properties can be built and used in everyday work; existing systems that call themselves declarative can be assessed against each property separately. Accordingly, Check 1 is redirected toward the system boundary (Section 10.2). In the condition for Check 2, the exception for manual actions by a person with root privileges is replaced by an exception only for breaking in the sense of Section 7.1—a change past the declaration outside the built-in tools through the power of superuser privileges obtained by any means; the built-in tools, including those invoked with superuser privileges, are checked on the same terms as the other channels; comparison of each declaration line with the required state (P2), corridor checks, and removal checks are added, while the requirement of suitability for everyday work is separated out as a check of the second condition for an answer (Section 10.3). Check 3 is retained in its previous form: one declaration without corridor lines on two clean machines (Section 10.4). Checks 4 and 5 checked properties P6 and P7, which have been removed from the definition, and are removed from the plan for checking the hypothesis (Section 10.5). The account of novelty is restated without P3 and P6 (Section 11).

6.6. Summary
Table 4. Items from version 1 in the second version
Version 1Version 2Basis
Declarationunchanged; several declarations together form one descriptionone source of truth—the remainder of P7
Running componentsparts of the system: code capable of changing the computer beyond its own program is added; “is in force” replaces “runs”Checks 1–3; problems O5 and O9 are closed
Derivative, data; P3 Classification of the remaindermoved from the definition to system designCheck 1 = 0; test of relevance to the question
Generationremoved from the definitiontest of relevance to the question
Bypass through a line in the declarationa corridor—a line of the law with a visible frameargument about the truth of the declaration
Manual bypass with root privilegesbreaking—a change past the declaration outside the built-in tools, through the power of superuser privileges obtained by any means; a general rule for all propertiesexperiment with indicators of a manual action; problem O4 is closed
P1 CompletenessP1: everything that is part of the system and is in force is recorded or is in force within a corridorcorridor; system boundary
P2 GuaranteeP2: after application of the declaration, everything recorded is in forcerule on breaking; application
P4 LawP4: the built-in tools, including those with superuser privileges, change the system only through the declaration; a corridor replaces a permission line, and breaking replaces a manual bypassexperiment with indicators of a manual action
P5 Inclusionremoved from the definitiontest of relevance to the question
P6 Lifecycle of a derivativeremoved from the definitiontest of relevance to the question; Check 4 removed
P7 Authorityremoved from the definition; the requirement for one source of truth is in the concept of a declarationtest of relevance to the question; Check 5 removed
“Understanding” consequencea report based on the declaration alone names recorded parts of the system and corridors with their frames; it does not enumerate what is in force within corridorsP1, P2, P4
“Reproducibility” consequencethe same declaration yields exactly the result described; state transfer is outside the definitiontest of relevance to the question
—new “Removal” consequence: after application of the declaration, what has been removed is not in force unless covered by the remaining lines or corridorsP1 after application

7. The “Configuration as Law” hypothesis, version 2

The hypothesis likens the declaration to a law. What is recorded in the declaration is what is in force on the computer. Nothing changes the system past the declaration except through a corridor explicitly recorded in it. Changing the system past the declaration outside its built-in tools, through the power of superuser privileges, is a violation of the law on the person's part rather than a property of the system. These statements are formulated precisely below.

7.1. Concepts
  • Declaration—a collection of files that a person has designated as the primary description of the computer. A declaration may consist of many files, but it forms one description and one source of truth about the system. If the system has several declarations, for example a superuser declaration and user declarations, together they form one consistent description.
  • Parts of the system—what the declaration must cover with a line or a corridor: users and the rules under which they act, such as the right to become superuser; programs, drivers, and services; code capable of changing the computer beyond the program executing it—scripts executed by an interpreter (python, bash), shell startup files, and an editor configuration if it is executable code. Code locked within its own program, such as a web page's JavaScript in a browser, is the contents of that program rather than a separate part of the system. The remaining contents of the computer—documents, photographs, and records that programs maintain for their operation, such as saved Wi-Fi networks, caches, and logs—are not part of the system, and the definition does not require them to be described.
  • Is in force. We say that a part of the system is in force rather than “runs”: a rule, such as the right to become superuser or a firewall rule, executes nothing but is in force. For a recorded part of the system, its line states what state is required—a program installed, a service enabled, or a setting specified; unless the line requires otherwise, whether the recorded program is currently running does not matter. For a part of the system that is not recorded and is not within a corridor, “is not in force” means two things simultaneously: it is not executing and is unavailable for a new launch. A program is not executing—none of its processes continues to run, the removed program has been stopped—and is not installed, that is, its executable is unavailable for execution; a service is neither running nor enabled; an account or rule is absent. Only files that are not parts of the system can be inert leftovers: data, state, or settings of a removed program that none of the existing parts of the system reads. A test case: if, after application of the declaration without the program's line, its previous process continues to run or its executable remains available for execution, and the program is not covered by another line or a corridor, P1 is violated.
  • Corridor—a declaration line that permits what is unrecorded to be in force within an explicitly delineated frame, for example to execute scripts in a project folder. A corridor need not enumerate what is in force within it: explicitly specifying the frame is sufficient. The corridor is itself part of the law: a declaration with a corridor remains true, its reader sees each corridor and its frame, and outside the frame what is unrecorded is not in force.
  • Application of the declaration—a working definition whose criterion for completion remains open problem O14: an action of the system that begins after the declaration is changed and must bring the computer into conformity with it.
  • Breaking—a change to the system past the declaration, made outside the system's built-in tools through the power of superuser privileges obtained by any means (in a full superuser session or through sudo): by writing directly to files, deleting, or disabling system mechanisms. It does not matter who makes the change—a person at the keyboard or a program they have launched. Breaking is a violation on the person's part rather than a property of the system.
7.2. Properties

We retain the property numbers from version 1 so that the versions can be compared; the omitted numbers P3, P5, P6, and P7 belong to items moved to system design (Section 6.2). The properties apply to the computer after application of the declaration.

P1. Completeness. Everything that is part of the system and is in force on the computer is recorded in the declaration or is in force within a corridor recorded in it.

P2. Guarantee. After application of the declaration, everything recorded in it is in force on the computer.

P4. Law. The system provides no path for changing itself past the declaration. The system's built-in tools, including those executed with superuser privileges, change the system only through the declaration: an installer does not install a program past the declaration but adds it to the declaration. What is unrecorded can be in force only within a recorded corridor. A change past the declaration outside the built-in tools through the power of superuser privileges constitutes breaking (Section 7.3).

P4 is refuted by a path past the declaration provided by the system's own tools—with or without superuser privileges: for example, a command that allows an ordinary user to install a program past the declaration, or an installer that installs a program past it even when invoked with superuser privileges. Breaking is a bypass of the system's tools, while a refutation of P4 is a path provided by its tools; one event therefore cannot be both. Where the boundary lies between a built-in tool for changing the system (a package manager, account management, a service manager) and a general-purpose means by which the superuser writes files directly is open problem O13.

The properties admit no degrees: a system either possesses P1, P2, and P4 or it does not. There is no partly declarative system: a partial guarantee forces one to check the entire computer, as in an imperative system.

7.3. General rule on breaking

Breaking refutes none of the properties. If the superuser has manually deleted the files of a recorded browser, P2 is not refuted: this is a violation on the person's part. The system does not promise protection from the superuser and is not required to detect breaking: the superuser can disable any check. There is therefore no need to distinguish a person from a program with superuser privileges. The consequences in Section 7.4 are asserted for a computer on which no breaking has occurred.

7.4. Consequences
  • Understanding. If no breaking has occurred, the declaration names everything that is in force on the computer outside corridors, and each corridor together with its frame (P1, P2, P4). A report based on the declaration alone, without inspecting the computer, therefore lists every recorded part of the system and every corridor with its frame. Such a report does not enumerate exactly what is in force within corridors: it shows only where what is unrecorded is permitted. This consequence distinguishes the definition from systems in which the declaration is a wish toward which the system merely strives, and from systems in which installation past the declaration is a built-in capability: in both cases, a report based on the declaration differs from what is in force, and the person checking has to inspect the machine.
  • Reproducibility. The same declaration on another computer yields exactly the result described in it (P1, P2, P4). The conditions are: the description is unambiguous; differences explained by hardware are excluded; what happens within corridors is not described and is therefore not promised. Transfer of accumulated state is not part of reproducibility (Section 6.2).
  • Removal. After application of a declaration from which a line has been removed, nothing that this line introduced is in force unless covered by the remaining lines or corridors: a removed program that is not named by another line has been stopped, and its executable is unavailable for execution (P1, Section 7.1). This also applies to a corridor line: after its removal, what was unrecorded and in force within the frame is not in force unless covered by another corridor. What to do with the other files of a removed program—data, state, and settings—is a question of system design; such inert leftovers do not make the declaration false.
7.5. Relation to established concepts

Properties P1 and P2 together correspond to Traugott and Brown's congruence, applied to parts of the system [17]; P1 together with P4 is close to what Anderson calls “proscriptive” configuration [2]. We distinguish the hypothesis from these concepts in three respects.

First, the boundary of what the declaration must cover is drawn according to whether an object can change the computer, rather than according to its storage location or who controls a part of the disk. Traugott and Brown's baseline describes the root-owned part of the disk, excluding user data and logs [17]; the authors of NixOS place mutable state outside the scope of the model [7]. Under the hypothesis, a script in a home directory executed by an interpreter is part of the system, while a document, wherever it is stored, is not. The requirement to describe all executable code has a predecessor in Singularity, where code without a manifest does not run [8].

Second, property P4 makes the prohibition on changes bypassing the declaration a property of the system itself for all paths of change, rather than an administrative discipline. Changing the system by bypassing its description ceases to be a permissible mode of operation, as it is in Kubernetes [10], when installing programs with the nix-env command in NixOS [12], and in aconfmgr, where direct changes are subsequently captured in the description [1]. In the first-cycle census on a clean Guix System, an ordinary user installed and launched a program with the guix install command without changing the declaration files [21]; we do not revise the first paper's assessment of Guix here. Unlike Stateless Linux, where even root is restricted [15], and Talos, where even privileged processes have their capabilities restricted [16], the hypothesis does not require restricting superuser privileges: a change past the declaration outside the built-in tools, through the power of these privileges, constitutes breaking, for which the person is responsible.

Third, exceptions to the law exist only as corridors—lines of the declaration itself with a visible frame. The exclusion rules in aconfmgr are also written by the user, but they determine which files are not compared with the description, while direct changes are permitted everywhere [1]. A corridor, by contrast, is an exception to a prohibition: outside its frame, what is unrecorded is not in force.

The name of the hypothesis echoes the established expression “Configuration as Code,” which is close to infrastructure as code [14]: there, the point is that configuration is written as code; here, it is that what is recorded is mandatory and nothing gets past it. Couch concluded that a configuration description can be only a statement of intent rather than a statement of fact [4]. The hypothesis names the properties under which the declaration is a fact, that is, a law rather than an intention.

8. Worked example

Suppose a computer's declaration records a user, the Firefox browser, a text editor, a network management service, and a graphics driver, as well as a corridor: scripts may be executed in the user's projects folder. The notation does not matter for the example. Table 5 shows how the second version of the hypothesis determines whether an object is part of the system and what follows from that.

Table 5. Objects and events on a computer under the second version of the hypothesis
Object or eventPart of the system?BasisConsequence
Firefox browseryes: a program, recordedP1, P2After application of the declaration, the browser is in force.
An extension installed from within Firefox itselfno: code locked within the browser is the browser's contents7.1Does not violate the truth of the declaration. A separate program that the extension launches outside the browser is part of the system (O10).
A Wi-Fi network saved by the network management serviceno: data processed by the recorded service7.1The declaration promises nothing about saved networks. If the service's line requires it to connect to a named network, this requirement must be met after application of the declaration (P2).
A document created by a person in a text editorno: data7.1The definition does not concern it.
An editor configuration that is executable codeyes: code capable of changing the computer beyond the editorP1Must be recorded in the declaration or be within a corridor; otherwise, it cannot be in force.
A Python script in a project folderyes: code; is in force within a corridorP1, P4Executes within the frame; the same script outside the projects folder is not in force. The reader of the declaration sees the corridor and its frame.
A program downloaded from a website and launched without being recorded in the declaration and outside a corridoryes: a programP4The system provides no such path.
A program recorded by a user in their declarationyes: a program, recorded7.1, P2The superuser and user declarations together form one consistent description. Who may record what is a question of system design.
The superuser manually deletes bootloader filesbreaking7.3A violation on the person's part; refutes none of the properties. The system is not required to detect it.
The Firefox line is removed from the declarationafter application, is not in force unless the browser is covered by another line or a corridor7.4After application of the declaration, nothing from the browser is in force: its processes have been stopped, and its executable is unavailable for execution. What to do with its profile and cache is a question of system design; inert leftovers do not make the declaration false.

9. Open problems

The open problems of version 1 are closed, unnecessary, or have left with the parts removed from the definition (Section 6.4). The second version leaves the following questions of the core open. We continue the numbering from version 1 and name the problems explicitly because these are precisely where the checks may refute the hypothesis.

  1. O10. The boundary of locked code. Code locked within its own program is its contents, while code capable of changing the computer beyond it is part of the system. An observable criterion is needed to resolve borderline cases: a browser extension exchanging messages with an external program; a virtual machine disk containing a guest system and programs; container images and layers [23]. One possible criterion is whether the code, under the restrictions actually imposed on it by the executing program, can change anything outside that program; such a criterion has not been formulated precisely or checked.
  2. O11. The boundary of rules and hardware. Users and the rules under which they act are parts of the system, while records that programs maintain for their operation are not. A criterion is needed to resolve borderline cases: account access keys stored in the account's home directory [21]; records outside the disk that the operating system changes, such as UEFI variables specifying boot order [23]; device firmware that the declaration does not name and therefore promises nothing about (Section 6.3). One possible criterion is that a rule determines who is allowed to do what; under this criterion, access keys are a rule, while a saved Wi-Fi network is a service record.
  3. O12. The corridor's frame. What defines the frame—a directory, a process tree, an account—and how does the system contain within it the effects of what executes inside it? A script executed in a project folder can write a shell startup file outside the folder, which then executes outside the frame; writing such a file as an ordinary user and executing it were observed on the first-cycle testbed [28]. If the frame does not contain the effects, what is unrecorded begins to be in force outside it, and P1 is violated.
  4. O13. A built-in tool and a general-purpose means. A criterion is needed for considering a program a built-in tool for changing the system—in which case a path past the declaration that it provides refutes P4—or a general-purpose means whose use with superuser privileges past the declaration constitutes breaking. A borderline case is a service-manager command that enables a service and the same symbolic link created manually; the result is identical, but the former is a built-in tool and the latter is a direct write to files. Under this reading, creating accounts with the useradd command in NixOS with mutable accounts also constitutes use of a built-in tool [13]; NixOS was assessed in this way in the first paper as well, where it received a negative assessment for the “law” property because nix-env and useradd operate by bypassing the description [18]. The text provides no criterion that would resolve such cases unambiguously; in Check 2, borderline cases are recorded separately (Section 10.3).
  5. O14. Completed application. The properties apply to the computer after application of the declaration, but when application is complete has not been defined. On the first-cycle testbed, stopping the machine immediately after a successful response to an operation—application of the declaration, rollback, or deletion of saved generations—lost the operation's result in all six experiments, whereas stopping it after flushing data to disk preserved the result in all six [40]. It is necessary to decide which declaration is in force while application is incomplete, after an interrupted application, and between changing the declaration files and applying them, and whether the system must ensure that either the previous or the new declaration is in force in its entirety.
  6. O15. An unambiguous description. Reproducibility is promised for an unambiguous description. A line naming a program without a version and source may yield different results on different machines and at different times. In Check 3 of version 1, inputs were pinned, and no claim was made about future results for unpinned sources [31, 32]. A criterion for an unambiguous line is needed; without it, Check 3 cannot distinguish a violation of reproducibility from an ambiguous description.

10. Preliminary plan for checking version 2

10.1. General rules

The plan is preliminary. The rules in Section 2.3 are retained: the failure condition for a check is fixed before it begins. Below, the conditions are stated in the form that the text of the second version permits, but they depend on three concepts for which observable criteria have not yet been selected: the corridor's frame (O12), the moment of completion of application, independent of whether it is successful (O14), and an unambiguous line (O15). The final failure conditions will be fixed and published before the checks begin, after these criteria have been selected. The outcome of each check is 1 (the hypothesis withstood the check), 0 (it did not), or ? (insufficient data). A counterexample to the definitions—an object for which the definitions do not allow a decision as to whether it is part of the system (Check 1), or a requirement that contradicts another requirement—yields 0 for the hypothesis. A prototype failure yields 0 for the hypothesis only if it is shown to follow from the property itself rather than the prototype's design; otherwise, it is an implementation defect, and the outcome for the hypothesis is ?. Insufficient information about an object—its origin or what it does is unknown—yields ?; 0 is yielded by an object about which information has been collected but for which the definitions provide no decision. If the definitions change after the results become known, this produces a new version of the hypothesis; it is checked against objects and machines that the previous versions have not seen. For version 2, these are machines and objects that did not participate in the first cycle. All records of checks are dated and are not deleted.

10.2. Check 1: the system boundary

Aim. Check that, for every object on a real computer, the concepts in Section 7 allow a decision as to whether it is part of the system, that is, whether it must be recorded in the declaration or be within a corridor (P1).

Objects. Two levels, as in version 1: parts that are in force—packages, services and timers, processes, accounts and access rules, kernel modules and drivers; and stored objects that belong to no package, grouped by directory, with a separate list of executable code outside packages—scripts, shell startup files, and executable program settings. The machines and objects did not participate in the first cycle; the machines include clean installations with a recorded declaration.

Procedure. The inventory is compiled using system facilities: the package database, service manager, process list, account database, and a list of files that belong to no package. A decision is made for each object twice, independently, using the written definitions in Section 7: whether it is part of the system and, if so, whether it is recorded or is within a corridor. Agreement is measured by the proportion of matching decisions and Cohen's kappa coefficient; an agreement threshold is not a condition of the check.

Failure condition. An object is found on any of the machines for which the definitions do not allow a decision as to whether it is part of the system, or allow either decision; or the two classifications reach different decisions, and the text of the definitions does not resolve the disagreement.

Weaknesses. The two classifications may share errors; their independence reduces this possibility but does not eliminate it. The system facilities used for the inventory may not see some objects, such as state outside the disk. The most likely points of failure are the boundary of locked code and the boundary of rules (O10, O11).

10.3. Check 2: law

Aim. Check that a system with properties P1, P2, and P4 and with corridors can be built and used in everyday work.

Object. A Linux prototype in a virtual machine.

Procedure. The paths by which a program or code reaches the computer are derived from a list of installation channels: the system package manager; programming language package managers (pip, npm, and others); application packages (Flatpak, AppImage); direct downloads of programs and archives; building from source code in the home directory; user service managers and schedulers (systemd --user, cron); interpreters executing user scripts; shell startup files and executable program settings; and extension mechanisms within programs. Code locked within its own program is not part of the system, and its execution does not count as a bypass; scripts executed by an interpreter are parts of the system and are permitted only through a record in the declaration or within a corridor. After each completed application of the declaration in which no breaking occurred, each declaration line is compared with the state it requires: a recorded program is installed, a service is enabled, a rule is in force (P2). Separate checks cover the corridor—what is unrecorded is in force within the frame and is not in force outside it, including through the effects of what executed inside—and removal: after application of a declaration from which a program, service, or corridor line has been removed, nothing introduced by that line is in force unless covered by the remaining lines or corridors; in particular, a program whose line has been removed has been stopped—none of its previous processes continues to run—and its executable is unavailable for execution. The built-in tools for changing the system—the package manager, account management, and the service manager—are also checked when invoked with superuser privileges. Changes made by general-purpose means with superuser privileges constitute breaking and are not included in the outcome; borderline cases between built-in tools and general-purpose means are recorded separately as material for problem O13.

Failure condition for the check of the properties. At least one channel installs or launches a part of the system although the declaration does not record it and there is no corridor for it, and this change is not breaking in the sense of Section 7.1 (P1, P4); in particular, a built-in tool for changing the system, including one invoked with superuser privileges, changes the system past the declaration (P4); or, after completed application of the declaration without breaking, at least one of its lines is not fulfilled: what it requires is not in force (P2); or a corridor is not in force within its frame (P2), or what is unrecorded from the corridor is in force outside the frame (P1); or, after application of the declaration without a line, something introduced by that line and not covered by the remaining lines or corridors is in force, including a previous process of the program whose line has been removed continuing to run or its executable remaining available for execution (P1).

Failure condition for the check of suitability for everyday work. This is a check of the second condition for an answer (Section 6.5)—the system can be built and used in everyday work—rather than a refutation of P1, P2, or P4: an ordinary action by a person—installing a program, updating the system, connecting to a Wi-Fi network, connecting a Bluetooth device, working in a browser, editing documents—can be performed only through a corridor opened for that action or through breaking.

Weaknesses. The virtual machine has no Wi-Fi or Bluetooth hardware, so these actions are checked on a real computer; the virtual devices of the first cycle do not replace this. The prototype covers part of the operating system rather than the entire system. The conditions concerning the corridor and completed application remain preliminary until criteria for the corridor's frame and completion of application have been selected (Section 10.1).

10.4. Check 3: reproducibility

Aim. Check the “Reproducibility” consequence (Section 7.4).

Procedure. The same declaration without corridor lines, in which program versions and sources are pinned, is applied to two clean machines that did not participate in the first cycle; what is in force under each declaration line is compared.

Failure condition. What is in force under the declaration lines differs between the two machines, and the difference is not explained by differences in hardware.

10.5. What was removed from the plan

Checks 4 (lifecycle of a derivative) and 5 (authority) of version 1 checked properties P6 and P7, which are removed from the definition in the second version. They are removed from the plan for checking the hypothesis; their experiments and records remain material for the design of a system built on the hypothesis. Check 2 is performed on one prototype, so its failure, without proof that it follows from the property itself, indicates a defect in the prototype rather than the falsity of the hypothesis (Section 10.1).

11. Discussion and limitations

Two parts. Part I does not confirm Part II. The outcomes of Part I were obtained for version 1 under conditions fixed before the checks; the second version was constructed after them and with them in mind, so agreement with them cannot serve as its confirmation. Only the checks in Section 10—after their final conditions have been fixed—on machines and objects that the first cycle has not seen can confirm or refute the second version.

Novelty. Individual properties of the second version have predecessors: full control of configuration [2], prohibiting code without a manifest from running [8], an immutable root [15] and restricting the capabilities of even privileged processes [16] as ways to prohibit changes bypassing the description, the semantics of absence, and user-written exclusion rules [1]. What we consider new is their combination into a definition of an operating system and what we did not find in the predecessors: the prohibition on changes bypassing the declaration as a property of the system itself for all paths of change (P4), under which exceptions exist only as corridors recorded in the declaration together with their frames, while a change past the declaration outside the built-in tools, through the power of superuser privileges, is considered breaking, that is, a person's action rather than a property of the system. The second version asserts neither the classification of what is unrecorded (P3) nor the lifecycle of derivatives across generations (P6), which the first paper considered new. This is an assessment of the sources read, not proof of novelty: a search does not prove that no such source exists.

Truth, rather than detail. The definition guarantees that the declaration is truthful, but not that it is detailed. A corridor as wide as the entire home directory leaves the declaration truthful but tells the reader little. The width of corridors is a visible choice by the person: the reader sees each corridor and its frame and judges for themselves how detailed the declaration is.

Superuser privileges. The hypothesis requires neither restricting superuser privileges nor leaving them unrestricted: this is a system design decision, and a system that restricts them can possess P1, P2, and P4 just as a system that does not restrict them can. The cost of the rule on breaking is that the hypothesis promises nothing about protection from whoever has obtained these privileges, while the conclusion about what is in force on the computer holds on condition that no breaking has occurred; the system itself is not required to certify this condition.

The system boundary. Version 1 was refuted at the boundary of its concepts. The boundary of the second version—what is part of the system—is new and unchecked, and it is precisely this boundary that is the most likely point of failure: borderline cases of locked code and rules (O10, O11) may prove just as contentious. Check 1 of the second version targets precisely this boundary.

What was moved to design. Items removed from the definition do not become false or unnecessary: a system built on the hypothesis must decide what to do with data, derivatives, generations, authority, and state transfer. But these decisions are no longer conditions of being declarative, and checking them is a task for the project developing such a system.

Evidence. The evidence base of this paper consists of the records of the checks of the first cycle. Records from the author's personal machines are not published; their outcomes are reported only as aggregate numbers, while outcome 0 of Check 1 in the public records rests on the censuses of clean virtual machines.

Scope. The hypothesis is formulated for an individual computer. We have not considered its applicability to clusters or distributed systems.

Quotations. Every quotation has been checked against the original source.

12. Conclusion

We asked what a declarative operating system is and what properties it must possess, and subjected version 1 of the “Configuration as Law” hypothesis to five checks whose conditions were fixed in advance. The census of objects yielded outcome 0: the definitions of a derivative and data, and the classification of what is unrecorded based on them, did not allow objects on clean machines to be classified unambiguously. The checks of law, reproducibility, the lifecycle of a derivative, and authority yielded outcome ?. After these results, we formulated a second version of the hypothesis and presented it separately from the report of the checks. In the second version, the definition answers only the question of what makes a system declarative; classification of what is unrecorded, the lifecycle of derivatives, generations, authority, and state transfer move to system design. The core of the second version consists of three properties: everything that is part of the system and is in force is recorded in the declaration or is in force within a recorded corridor; after application of the declaration, everything recorded is in force; the system provides no paths for changing itself past the declaration. A change past the declaration outside the built-in tools, through the power of superuser privileges, constitutes breaking, which refutes none of the properties. The results of the first cycle have not confirmed the second version. The plan for checking it in Section 10 is preliminary: the next step is to select observable criteria for the corridor's frame, completed application, and an unambiguous line, fix and publish the final failure conditions, and conduct checks on machines and objects that the first cycle has not seen.

References

  1. aconfmgr: A configuration manager for Arch Linux. README. https://github.com/CyberShadow/aconfmgr/blob/master/README.md
  2. Anderson, P. (2006). System Configuration. Short Topics in System Administration 14. USENIX Association. https://2459d6dc103cb5933875-c0245c5c937c5dedcca3f1764ecc9b2f.ssl.cf2.rackcdn.com/books/14_sysconfig.pdf
  3. Anderson, P., Couch, A. (2004). What Is This Thing Called System Configuration? Talk, LISA 2004. https://usenix.org/legacy/publications/library/proceedings/lisa04/tech/talks/couch.pdf
  4. Couch, A. (2010). Configuration Management Phenomenology. ;login: 35(1), pp. 10–15. https://files.usenix.org/s3fs-public/cdn/103-couch.pdf
  5. Courtès, L. (2017). Code Staging in GNU Guix. GPCE 2017. https://arxiv.org/abs/1709.00833
  6. Dolstra, E. (2006). The Purely Functional Software Deployment Model. PhD thesis, Utrecht University, p. 15. https://edolstra.github.io/pubs/phd-thesis.pdf
  7. Dolstra, E., Löh, A., Pierron, N. (2010). NixOS: A Purely Functional Linux Distribution. Journal of Functional Programming. https://www.cs.tufts.edu/~nr/cs257/archive/andres-loeh/nix-os-jfp.pdf
  8. Hunt, G., Larus, J. (2007). Singularity: Rethinking the Software Stack. Operating Systems Review. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/osr2007_rethinkingsoftwarestack.pdf
  9. Kerr, N. L. (1998). HARKing: Hypothesizing After the Results are Known. Personality and Social Psychology Review 2(3), pp. 196–217. https://doi.org/10.1207/s15327957pspr0203_4
  10. Kubernetes documentation. Kubernetes Object Management. https://kubernetes.io/docs/concepts/overview/working-with-objects/object-management/
  11. NixOS, home page. Accessed 18.11.2026. https://nixos.org/
  12. NixOS Manual, section Package Management. Accessed 18.11.2026. https://nixos.org/manual/nixos/stable/
  13. NixOS, nixos/modules/config/users-groups.nix, parameter users.mutableUsers. https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/users-groups.nix
  14. Rahman, A., Mahdavi-Hezaveh, R., Williams, L. (2019). A Systematic Mapping Study of Infrastructure as Code Research. Information and Software Technology 108, pp. 65–77. https://akondrahman.github.io/files/papers/ist18_iac_sms.pdf
  15. Red Hat (2004). Introduction to Stateless Linux: Proposal for the Fedora Project. Internet Archive copy of 18.09.2004. https://web.archive.org/web/20040918071252id_/http://people.redhat.com:80/~hp/stateless/StatelessLinux.pdf
  16. Sidero Labs. Talos Linux documentation v1.14: Philosophy; Process Capabilities; Debug Shell. https://docs.siderolabs.com/talos/v1.14/learn-more/philosophy; https://docs.siderolabs.com/talos/v1.14/learn-more/process-capabilities; https://docs.siderolabs.com/talos/v1.14/troubleshooting/talosctl-debug
  17. Traugott, S., Brown, L. (2002). Why Order Matters: Turing Equivalence in Automated Systems Administration. LISA 2002. https://www.usenix.org/legacy/events/lisa02/tech/full_papers/traugott/traugott_html/index.html
  18. Yakymenko, A. (2026). Configuration as Law: A hypothesis on what a declarative operating system is. Preprint, 18 November 2026; hypothesis, version 1. https://yakyman.com/configuration-as-law-v1.pdf

Records of the checks of the first cycle

  1. Copy of the English text of the first paper (hypothesis, version 1), fixed before the checks began and used in them; matches the source of the published text. 19.11.2026. configuration-as-law/first-paper/PAPER.html
  2. Census of three clean virtual machines (Debian, Fedora CoreOS, NixOS): comparison of two classifications, decisive cases, inventory method, and rechecking of the outcome. 19.11.2026. configuration-as-law/check-1-census/debian-fedora-coreos-nixos/RESULT.md; configuration-as-law/check-1-census/debian-fedora-coreos-nixos/REVIEW-2.md; configuration-as-law/check-1-census/debian-fedora-coreos-nixos/METHOD.md
  3. Census of a clean Guix System virtual machine: comparison of two classifications, the decisive case involving personal package selection, inventory method, and review of the outcome. 19.11.2026. configuration-as-law/check-1-census/guix/RESULT.md; configuration-as-law/check-1-census/guix/REVIEW.md; configuration-as-law/check-1-census/guix/METHOD.md
  4. Census of the author's two personal machines (workstation and server): comparison of two classifications, the decisive case involving an editor configuration, review of the outcome, and excerpts from the configuration and package inventory. Records from personal machines are not published; only aggregate numbers are reported in the text. 19.11.2026.
  5. Analysis of the written definitions of version 1 using documented types of real objects, without execution on machines; list of primary sources and review of the analysis. 19.11.2026. configuration-as-law/definitions-analysis/documented-objects/ATTACK.md; configuration-as-law/definitions-analysis/documented-objects/SOURCES.md; configuration-as-law/definitions-analysis/documented-objects/REVIEW-2.md
  6. Additional classification samples on virtual machines: Ubuntu and Alpine; Arch Linux, Fedora Silverblue, and FreeBSD; a Debian desktop system. Comparisons of two classifications and reviews of them. 19.11.2026. configuration-as-law/check-1-census/samples/ubuntu-alpine/E6C-RESULT.md; configuration-as-law/check-1-census/samples/ubuntu-alpine/REVIEW-E6C.md; configuration-as-law/check-1-census/samples/arch-silverblue-freebsd/X1C-RESULT.md; configuration-as-law/check-1-census/samples/arch-silverblue-freebsd/REVIEW-X1C.md; configuration-as-law/check-1-census/samples/debian-desktop/X2C-RESULT.md; configuration-as-law/check-1-census/samples/debian-desktop/REVIEW-X2C.md
  7. Review of the summary report of the first cycle and corrections to it, including reassessment of the outcome of the Arch Linux, Fedora Silverblue, and FreeBSD sample under the literal condition of Check 1. 19.11.2026. configuration-as-law/check-1-census/report-check/REPORT-CHECK.md; configuration-as-law/check-1-census/report-check/REPORT-FIX.md
  8. Observation of processes creating files: matching created paths to the processes that created them, and review. 19.11.2026. configuration-as-law/check-1-census/provenance/X9-STATE.md; configuration-as-law/check-1-census/provenance/REVIEW-X9.md
  9. Checks of law on the testbed—a Linux prototype in a virtual machine: initial and additional runs, an everyday-work scenario, changing a package version through the declaration, virtual Wi-Fi and Bluetooth devices; reviews of the outcomes. 19.11.2026. configuration-as-law/check-2-law/stand/RESULTS.md; configuration-as-law/check-2-law/stand/REVIEW-2.md; configuration-as-law/check-2-law/stand/Q-RESULTS.md; configuration-as-law/check-2-law/stand/Q-REVIEW-2.md
  10. Comparison of 64 installation and launch channels on the testbed and on a clean NixOS installation: commands, return codes, effects, continued execution after permission was revoked; review. 19.11.2026. configuration-as-law/check-2-law/channels/RESULTS.md; configuration-as-law/check-2-law/channels/REVIEW.md; configuration-as-law/check-2-law/channels/raw/d2-classified-results.json
  11. Second implementation of the testbed, permission timing (104 runs), and storage failure during acceptance of an executable; reviews. 19.11.2026. configuration-as-law/check-2-law/second-implementation/X3-RESULTS.md; configuration-as-law/check-2-law/second-implementation/REVIEW-X3.md; configuration-as-law/check-2-law/second-implementation/P3-1.md; configuration-as-law/check-2-law/second-implementation/REVIEW-P3-1-2.md; configuration-as-law/check-2-law/second-implementation/P4-8.md; configuration-as-law/check-2-law/second-implementation/REVIEW-P4-8.md
  12. Indicators of a manual action with root privileges: measurement of five indicators on a disposable Debian 12 virtual machine, and review. 19.11.2026. configuration-as-law/check-2-law/root-signals/E2.md; configuration-as-law/check-2-law/root-signals/REVIEW-E2.md
  13. Two independent installations of the testbed and comparison of what runs on them: summary and full comparison of inventories. 19.11.2026. configuration-as-law/check-3-reproducibility/stand-pair/Q-REPRO.md; configuration-as-law/check-3-reproducibility/stand-pair/raw/q/repro/summary.json; configuration-as-law/check-3-reproducibility/stand-pair/raw/q/repro/comparison.txt
  14. Three pairs of independent NixOS, Guix System, and Debian installations on empty disks from pinned inputs; review. 19.11.2026. configuration-as-law/check-3-reproducibility/clean-install-pairs/X5-REPRO.md; configuration-as-law/check-3-reproducibility/clean-install-pairs/REVIEW-X5.md
  15. Clean installations with alternating hardware profiles and transfer of application state between two clean systems; reviews. 19.11.2026. configuration-as-law/check-3-reproducibility/hardware-profiles/P6-3.md; configuration-as-law/check-3-reproducibility/hardware-profiles/REVIEW-P6-3-2.md; configuration-as-law/check-3-reproducibility/state-transfer/E4.md; configuration-as-law/check-3-reproducibility/state-transfer/REVIEW-E4.md
  16. Checks of the lifecycle of a derivative on the testbed: initial experiment, withdrawal of a positive assessment, experiment with random sequences of generations and its coverage; reviews. 19.11.2026. configuration-as-law/check-2-law/stand/RESULTS.md; configuration-as-law/check-2-law/stand/Q-RESULTS.md; configuration-as-law/check-4-lifecycle/stand/Q-FIX-1.md; configuration-as-law/check-4-lifecycle/random-generations/X6-LIFECYCLE.md; configuration-as-law/check-4-lifecycle/random-generations/REVIEW-X6.md; configuration-as-law/check-4-lifecycle/random-generations/raw-X6/coverage.json
  17. Ordinary application use, shared access, and storage failures on two implementations of the testbed; reviews. 19.11.2026. configuration-as-law/check-4-lifecycle/stands/P7-1.md; configuration-as-law/check-4-lifecycle/stands/REVIEW-P7-1.md; configuration-as-law/check-4-lifecycle/stands/P7-3.md; configuration-as-law/check-4-lifecycle/stands/REVIEW-P7-3.md; configuration-as-law/check-4-lifecycle/stands/P4-3.md; configuration-as-law/check-4-lifecycle/stands/REVIEW-P4-3.md
  18. Return to previous versions of the browser and the synchronization program with state written by newer versions; review. 19.11.2026. configuration-as-law/check-4-lifecycle/rollback/E3.md; configuration-as-law/check-4-lifecycle/rollback/REVIEW-E3.md
  19. Extended check of authority on the testbed for a user's own file: final run of 54 scenarios; review. 19.11.2026. configuration-as-law/check-5-authority/stand/Q-AUTHORITY.md; configuration-as-law/check-2-law/stand/Q-REVIEW-2.md; configuration-as-law/check-5-authority/stand/raw/q/authority/final-owner-authority.jsonl
  20. Access under Unix permissions, concurrent application of declarations, and recovery on two implementations of the testbed; reviews. 19.11.2026. configuration-as-law/check-5-authority/stands/P2-4.md; configuration-as-law/check-5-authority/stands/REVIEW-P2-4.md; configuration-as-law/check-5-authority/stands/P3-2.md; configuration-as-law/check-5-authority/stands/REVIEW-P3-2-2.md; configuration-as-law/check-5-authority/stands/P8-1.md; configuration-as-law/check-5-authority/stands/REVIEW-P8-1.md
  21. Finite formal analysis of the definitions of version 1 and comparison with the documented rules of existing systems; reviews. 19.11.2026. configuration-as-law/definitions-analysis/formal-and-literature/X4-FORMAL.md; configuration-as-law/definitions-analysis/formal-and-literature/REVIEW-X4-2.md; configuration-as-law/definitions-analysis/formal-and-literature/RESOLUTIONS.md; configuration-as-law/definitions-analysis/formal-and-literature/REVIEW.md
  22. Preservation of applied state after a successful response to application when the testbed virtual machine is stopped abruptly; review. 19.11.2026. configuration-as-law/open-problems/apply-crash/P4-2.md; configuration-as-law/open-problems/apply-crash/REVIEW-P4-2.md

Log

  1. —

    Hypothesis, version 1.

  2. —

    Prior-art search: in the sources found, no system or text contains the hypothesis as a whole.

  3. —

    Paper 1: position paper with the test plan, failure conditions fixed in advance.

  4. —

    Checks of version 1: census 0, the other four checks ?. Records of the checks.

  5. —

    Paper 2: results of the checks of version 1 and a second version of the hypothesis, formulated after these results. Version 2 has not been checked yet.