modus
Menu
On this page

The demonstration of each property

This document gives, for each of the 25 properties of Kernel properties, what the machine test shows, the picture, and what no test shows. A row changes when the system changes what the test shows.

A property is a promise of the system. A promise counts only when a test makes the machine keep it: the machine test (modustool test) starts real machines under QEMU, runs processes, and waits for the lines that prove each case. This table is the source of the page "Status" of the site: each row gives the promise, what the tests show of it, the pictures that the tests take, and what is not shown yet. Developer tools: The parts of the machine test, names the machines.

How to read a state

  • Shown: the machine test does the thing for real and checks the result. A picture exists.
  • Shown in part: the test shows the core of the property. A named part has no test.
  • Not shown: the system does not have the thing, or no test runs it.

The table

#PropertyStateWhat the test showsPictureWhat no test shows
1Small kernel with a small, counted interfaceShownThe kernel has 35 operations (op.Operation, 1 to 35): the first target of property 1 was 32, the control of a thread (Thread_Control) added one, a guest (Guest_Run) one more, and the copy of the own log ring of a process (Log_Read) one more. Each other new capability is a command or an argument of an existing operation: the fault ring, the kernel events and the control of a thread add no other operation, and a guest is a process that Memory_Map gives its memory. An unknown operation gives an error record that says so. rights asks for nine operations and reads each answerrights, errorsNo check counts the operations against a number in a document: a new operation fails no test
2Sandbox by defaultShownprobe in a call host asks for the machine with three handle numbers: the kernel refuses each one. rights: five refusals with No_Right. fault stops alone. The kernel never returns to a process state that the processor would refuse: an instruction address after the last page of the user half, a stack address that is not canonical, the flag nested task or the trap flag at a syscall: the process stops with its report, and the machine goes on (test return_fault). Thread_Control refuses a frame that a process cannot hold (the code selector of the kernel, the I/O privilege level, interrupts off) and a hostile extended stateisolated, rights, return_faultA process that tries each of the 27 operations with no grant
3No "everything is a file"Shown in partEach resource has its own handle kind: a handle of another kind is refused with the kind that the call needserrorsThe property is an absence. No test can show that no file interface exists
4Non-blocking command buffersShownrings: six processes pass records through six rings. flow: the records of one second and the kernel entries for one million recordsrings, flowA full ring under a writer that never waits
5Kernel off the data pathShown in partflow and time_page: 0 kernel entries for one million reads of the time page. net: 0.22 kernel entries for each datagram. TCP is a library in server and fetch, and QUIC a library in quic_echo and remote: 1 MiB goes each way with loss, reorder and duplicates against the peer of the tool; server also serves the TCP of libslirp, and quic_echo sends back a line of the QUIC client of OpenSSL (test tcp, test quic, test quic-real)flow, clock, network, server, quic_echoThe network service copies each UDP datagram and each TCP segment one time, and computes no checksum of them (the line "As built" of the property; The network: TCP as a library in the process: The path of a datagram and of a segment)
6One communication mechanism: shared memoryShownEvery service call of the test is a ring and a call region: connect("paint"), tally, manual, storage, monitor, remoteservices, remote—
7No drivers in the kernelShownThe block service, the frame service, the input service and the sound service are processes. disk measures the block service; net the frame service; tone plays a tone through the sound service at a time that it names, and the tool finds the tone at its frame in the sound output of the machine (test sound)disk, networkFixed hardware only: virtio under QEMU. No real machine. The IOMMU of Intel or of AMD holds a device in the memory and in the message interrupts of its service on the machines of test iommu and test iommu_amd only (iommu_device)
8No global, mutable, shared file systemShown in partstorage.size("note") from remote is refused: the caller has no grant for a private store. A tree is shared by a handle, not by a path: hierarchy shares one tree read-only; the share lists that tree only, cannot write or remove, refuses a name of another store, and each of its handles gives Gone after the unsharestorageAn absence, as property 3
9One private store per processShownEight machines with one data disk: the test process persistence_check keeps its text across restarts, a damaged block is found, a crash loses nothing that was flushed. A store limit is an error record. Versions: the storage service keeps the state before each commit; notes, the notes of the principal, commits a change when the keys pause, steps back through the versions of a note and restores one, and the host reads storage.versions, storage.compare, storage.restore and storage.clone. Loss of power: the tool serves the data disk itself, ends QEMU at a seeded moment, and checks many images of the disk with the writes after the last flush lost or torn: each opens with the objects of before or after the commit in flight, never a mix (test power). A dropped write: the disk answers Ok to the write of the block of data of a commit and does not keep it; the read back of that commit refuses it before its root, and the object reads its previous version on the same machine; for a write that a cache of the disk hides from the read back, a loss of power makes the open refuse that commit and use the root before it (test power). Trees: hierarchy makes 100 100 objects in 1100 trees, lists them in pages, renames a tree of 1000 objects in one commit, and finds them all after a remount (test hierarchy). Ranges: ranges writes 3 blocks of a sparse object of 8 GiB and commits 13 blocks; 1000 writes at scrambled offsets change only the nodes of their path; an old version keeps its bytes (test ranges)persistence_check, persistence_check_crash, persistence_check_damaged, notes, notes_versions, storage, storage_versions, power_lossA dropped write that the device hides behind its cache at the read back: a later commit carries it, both roots then name the wrong block, and the object reads Damaged (A dropped write in the repository)
10One code moduleShowntally is one module in three roles: a process, a service, a library in the console. load("math") then a direct call. sample is a library, a call host and a service with one description; the interface package as a module gives the same draw table as the package compiled inroles, modules, tables, interface_module—
11Reproducible system, identity by hashShownEach full check builds two times and compares each module, its LLVM IR and its object, and the boot program. modustool repeat all 100: 1 distinct result for each output of 61 modules and of the boot program, under a host load of 9.5 to 62. A replacement of an import by its hash. remote refuses a call that names another module hashreplacement, importsProved for one compiler (Odin dev-2026-05 with the patch of the flake) on one host. The rare differing builds came from a second thread of the stock compiler
12Module metadata in flat tablesShownmanual: 45 modules and 65 exports listed, who imports calendar, the console combines the tables. modustool call <key> "manual.modules()": 53 rows on one QUIC streammodule_information, manual—
13Data-oriented kernel internalsShown in partlocks: the counts of each lock kind, one run queue for each processor. scheduler: one pick reads the first 64 bytes of each thread record, 43 to 86 nslocks, schedulerNo test measures cache misses. The claim "one line for each thread in a pick" is by the layout assertion, not by a counter of the processor
14Memory is supplied by the callerShown in partbudget: memory objects until No_Budget, then all pages back. The call region of an isolated call is memory of the caller. The page tables of a process are paid by its budget and come back: 64 mappings of one page take 3 pages of tables and keep 0 after the unmap; a reservation, a large page, and 1000 rounds of a map and an unmap beside a page that another thread uses keep 0 too. A process grows its own stack: its fault handler commits each of 64 pages at its first touch (test fault_ring)budget, limits, address_spaceThe libraries (src/library/modus/*) are not checked for an allocation; the rule holds by reading
15Isolation inside a processShownisolate("probe"): the module runs in a call host; peek(0) stops the host and the console continues, with the stack trace; Escape ends a call that never returns. The stack trace names each frame by its procedure and its source line, from the debug image: peek + 0x4 in probe (src/modules/tests/probe/probe.odin:18); errors and inspect name the frames of fault (fault::three + 0x... in fault (src/modules/demonstrations/fault/main.odin:15)), and the tool checks the names against the debug object of the moduleisolated, errors, inspect_stopped—
16Removed conceptsShown in partNo standard input or output: flood writes to a terminal that the root service gave it. No global last error: an error is a record in the answer. No signals: a fault goes as a record to the fault ring of a handler thread of the same process, which repairs it or stops the process (test fault_ring, 36 cases): a page that is not committed, a write to a read-only page, a divide error, an invalid opcode, a breakpoint, a privileged instruction, int1, two int1 in a row, and the trap flag; a full ring, a handler that faults or ends, an answer with a wrong serial or from another process, and 10 000 answers at onceterminal, errors, fault_ringAn absence for the rest of the list (fork, environment)
17Trusted bootShown in partThe boot program verifies the description signature and the hash of the kernel and of each file of the boot image before the kernel starts; the root service checks the boot image again. One byte of console changed, or one bit of the signature changed: the boot stops with the file and both hashes on the boot display, and the kernel does not start. A changed kernel, a boot image with no description and a stated hash that differs are refused too. With a software TPM, PCR 11 holds the value that the tool computes from the system description, and another system gives another value. With Secure Boot on, the signed boot program starts and says that the firmware verified it; a signed boot program with one byte changed, and an unsigned one, never start. After a newer system started, the TPM floors make the boot program refuse the older system, and after a boot program of a newer key started, the boot program of the older key (test trusted_boot)boot_measured, boot_secure_boot, boot_fails_changed_module, boot_fails_changed_kernel, boot_fails_wrong_signature, boot_failsThe test keys only: no real machine with keys of its own. No remote attestation; PCR 4 is read by nothing
18One 2D interface: the draw tableShown in partEach window and the compositor draw through the draw table and the drawing module, on the processor; a full frame takes 1 to 3 msdesktopThe record of version 17 has the fields of its kind only, primitives only, one text kind, one gradient along any line, colors with alpha, edges inside a pixel, paths filled and stroked with antialiased edges, and a clip that is pushed and popped (The draw table: the 2D interface of the system in the repository). WebGPU for a GPU: not built
19A command is a functionShownThe console types and checks each call from the description of the module. The host calls an export and prints a typed table. The test reads log records as typed records (16 checks). A log record keeps the kind of each value of its text: log.value_runs(after) gives the runs, and the record of the process log with the size of the memory of the log has a run of the kind size; the window of the log draws each value in the color of its kind. A table goes into a call: in the console, from the host, and in three ways with the same answersconsole, records, log, remote, tables, table_argument, manual_tablesMost checks of the scenario still read text lines of the serial log
20No ambient accessShown in partA grant names one remote of the network. revoke("remote", "acts_for_principal") cuts the calls that act for the principal. A thread can only lower its weight. A budget record without the right Read says nothing of the budget. The control of a thread needs a thread handle with Inspect, and Write to change it: with Read and Control only, Stop, Read_Registers and Write_Registers give No_Right; 32 calls on a thread of another process are refused. The kernel events: a process reads the event table only with the machine handle and the right Events; after revoke, 0 records come and Events_Set gives Bad_Handle (test kernel_events). Inspect hides the bytes of a process: a frame of a stop report is given only when a module record holds its address, and Inspect_Kind.Pages answers for the process that asks onlyrevocation, network, rights, kernel_events, inspectremote does not know who its client is: the host proves no key over QUIC, so whoever sends and receives the datagrams of the gateway 10.0.2.2 calls as the principal (QUIC: Who may call). No debugger: no grant reads the memory of another process
21PrincipalsShown in partLayer 1: a caller acts for the principal of its session or not (CALLER_ACTS_FOR_PRINCIPAL), a grant of the root service that the console revokes. Layer 2: principal 0 is the machine, with the measure of the system. Layer 3: principal_create("alice") in the console, the passphrase typed two times in the window of unlock (dots); notes from the menu runs in the session of principal 1 and has a store of its own (notes.principal.1), apart from the store of notes of principal 0; the grants name the principal; the console acts for principal 0 only, and the storage service refuses it the store of principal 1 (open_store gives No_Grant, stores() does not list it); lock() stops the processes of the session; a wrong passphrase opens nothing; the right one starts the session again, and the note is there after a restart of the machine (test principals)principals_unlock, revocationNo seal by the TPM: the passphrase alone protects the keys, against tries on a copy of the disk. The stores of a principal are not encrypted. No recovery of a lost passphrase. Several principals, identity across machines: not built
22General mechanisms, and a plain expression for each frequent taskNot shownNo test runs a frequent task of a design: the examples of the property (facts(storage.Bad_Block), the filter of server.requests by its status, the copy of a record output to each reader) are designed, not builtThe expression of each frequent task that the designs of the log facts and of the record outputs list; no check of the tool finds an incantation, only a review
23A role is a contract; its implementation is replaceableNot shownNo role has a role contract yet: the root service gives each role to a module by its name, and the clients use the protocol of the holder of todayA second holder of one role that passes the conformance suite of its contract, and a machine test whose clients run the same with either holder (Roles and their contracts in the repository)
24Every input of a process passes through a channel that can be recordedNot shownNo test records a process: the record mode and the replay are designed, not built. Each kernel operation already writes its answer in the kernel ring or in memory of the caller, and the faults that already reach a process are records of the fault ringA recorded process and its replay; the trap of the cycle counter and of cpuid, which a process reads with no fault today; a shared writer that waits for an input point
25Take the gold, leave the debtNot shownNo machine test shows a reuse. modustool check compares the reuse list with the works that the repository holds, but no algorithm of the system is yet a rewrite checked against its reference by a fuzz test and a measureA reimplemented algorithm, such as the SIMD validation of UTF-8, with its reference, its fuzz test and its measure; the page "Credits and licences", checked by the tool

Counts

  • Shown: 11 properties (1, 2, 4, 6, 7, 9, 10, 11, 12, 15, 19).
  • Shown in part: 9 properties (3, 5, 8, 13, 14, 16, 17, 20, 21).
  • Not shown: 5 properties (18, 22, 23, 24, 25).

What removes each "in part" and each "not shown"

  1. 1. Property 5: a device queue for each endpoint, so that the network service leaves the data path. TCP and QUIC are already libraries in the process (The network: TCP as a library in the process, QUIC).
  2. 2. Property 13: processor counters for a process (cache misses of a pick, of a ring pass).
  3. 3. Property 14: a check of the tool that a support package calls no allocator.
  4. 4. Property 17: a remote attestation of the measure, and a start on a real machine with the keys of the publisher.
  5. 5. Property 18: the rationalised draw record, with alpha, paths and the clip stack (ROADMAP.md). WebGPU for a GPU comes after it (ROADMAP.md, "Later").
  6. 6. Property 20: a key of the client of remote, given to remote as a grant of the principal (QUIC: The next layers (designed, not built)).
  7. 7. Property 21: the research on identity across machines.
  8. 8. Properties 3, 8, 16 are absences. A test shows them only by a refusal of the nearest wrong use; each row names the one that exists.
  9. 9. Property 1: a check that compares the count of op.Operation with the number written in Kernel properties.
  10. 10. Property 22: the log facts and the record outputs, built, with a machine test that runs the expression of each frequent task that their designs list.
  11. 11. Property 23: the role contract of the display, a second holder that passes its conformance suite, and the machine test that runs its clients with each holder (ROADMAP.md).
  12. 12. Property 24: the first layer of the record and the replay, with a test module that is recorded, then replayed to the same end, and a planted rdrand that the replay finds as a divergence (Record and replay of a process: The layers in the repository).
  13. 13. Property 25: the SIMD validation of UTF-8, with the byte loop as its reference, a fuzz test that compares the two and a measure, and the page "Credits and licences" that the tool checks (ROADMAP.md).

Error_Record struct

A struct of the package errors: 56 bytes, aligned on 8 bytes, 0 bytes of padding. The error record: what a call that failed says about why, as seven integers.

  • kindi6408 bytes
  • uniti6488 bytes
  • operationi64168 bytes
  • argumenti64248 bytes
  • valuei64328 bytes
  • limiti64408 bytes
  • foundi64488 bytes

Field struct

A struct of the package module: 24 bytes, aligned on 4 bytes, 0 bytes of padding. One field of a record.

  • name_offsetu3204 bytes
  • name_countu3244 bytes
  • offsetu3284 bytes
  • typeu8121 bytes
  • unsignedbool131 bytes
  • integer_unitInteger_Unit142 bytes
  • detailu32164 bytes
  • kindu8201 bytes

and 2 more

clone procedure of the package storage_service

clone :: proc "c" (place: i64, name: ^string, new_name: ^string, error: ^errors.) -> i64

clone makes the object new_name under a place a copy of the object name under the same place: the two name the same blocks until one of them changes.

src/modules/system/storage/main.odin:992

table_argument procedure of the package console

table_argument :: proc "contextless" (command: string, value: Value, name: string) -> (table: Table, item: module., ok: bool)

table_argument reads the table argument of a command, and one of its.

src/modules/system/console/tables.odin:134

CALLER_ACTS_FOR_PRINCIPAL constant of the package isolated

CALLER_ACTS_FOR_PRINCIPAL :: u64(1) << 63

The bit of values[6] set when the caller acts for its principal.

src/library/modus/contract/isolated/isolated.odin:162

stores procedure of the package storage_service

stores :: proc "c" (result: ^[]u8, error: ^errors.) -> i64

stores gives the generation of the disk, its blocks in use, and the commits, the commits that a read back refused, the commits whose root write or read back failed on the device (not taken: the next open decides), the blocks written (those of refused commits too) and the blocks read back with the time of those reads since the start of the service (a measure of the cost of the read back of each commit), then the stores that the caller may name, one line for each, with its objects, its trees, its versions, its blocks (a shared block counted one time), the blocks that two names share, its limit, the count of connections that hold its grant now, and its damage.

src/modules/system/storage/main.odin:793

requests global variable of the package server

requests: system.Record_Output(Access_Record)

One request that the server answered.

src/modules/demonstrations/server/requests.odin:35