Releases
Every release of the system, newest first: 94 releases, from 0.0.0 to 0.97.0. The merge of step N on master is the release 0.N.0.
A release lists its changes by type, in the form of Keep a Changelog: Added, Changed, Deprecated, Removed, Fixed, Security. Each change is written once, in the commit that made it, as one fragment; modustool changelog release gathers the fragments into the release. Under a release, a line links to each news entry that names it: the news tell in prose what a reader can now see, and this page lists each change.
Read from CHANGELOG.md.
What is planned: the roadmap, with 0 entries in work now, 36 next and 82 later.
Download
modus-0.97.0-x86_64.img.zst: the disk image, compressed with zstdSHA256SUMS.txt: the SHA-256 of the image, in the form of sha256sumSHA256SUMS.txt.sig: the release signature of the checksum list
The release signing key: EV1ub2Pm5AkZQVtLjy0PEWJASiFHHI7b6RrBRJk13pw (text, PEM).
The certificate of the firmware signing key, which the firmware needs for Secure Boot: DER, PEM.
Verify the files before you write the USB key:
nix develop -c modustool verify modus-0.97.0-x86_64.img.zst SHA256SUMS.txt
The steps with no tool, the USB key and the setting of the firmware: Install: 2. Verify the files.
0.97.0
Added
- A module declares its record outputs and record inputs: a package variable
requests: system.Record_Output(Access_Record),orders: system.Record_Input(Order, .Many)orsource: system.Record_Input_With_Terms(system.Any_Record, Condition)becomes a row of the new tablesRecord_OutputsandRecord_Inputsof the module file (format version 4), with its record description, its line of help, its pairing or its count of wirings, and its wiring terms;system.Any_Recorddeclares a generic one. The build refuses a declaration that is not a package variable of the module, a record with padding or a Handle field, two streams with one name, and a generic record output with no generic record input. The contract packageoutputgives the compartments of an output ring and the border that checks each one; no process writes a record output yet. - The module file writer. The contract package
modus:contract/module_file_writerwrites a module file from its parts into memory that the caller gives, and refuses a part that a loader or a reader would refuse with a record that names the part; the tool writes each module through it with the same bytes as before, and a program of modus can write a module with the same code. - The wiring ring and the type check of a wiring: the contract
outputdescribes the ring on which the root service gives a process each end of a wiring, one command for each end with its output ring, its index, its pace or its wiring terms, with the border that refuses each word that names nothing and the completion of the process, and it compares the record descriptions of the two ends of a wiring field by field. The context of a process grows from 16 to 18 handles: the handle 16 is the wiring ring of a process whose module declares a record output or a record input. - The command
Wireand the wiring list ofStart: a process of the console or the start policy can ask the root service to join a record output of a process that it started, or of a service for which it acts for the principal, to a record input of another process or to itself; aStartfrom the console can carry the wiring of its child, which the root service applies whole before the first instruction of the child, or refuses whole. The asker writes its list in a list page that the root service owns, so a revocation by the asker cannot fault the root service. The root service checks that the two record descriptions are equal, pays each ring from the budget of the asker within limits for each asker, each process and the machine, writes the end of each wiring in an end page that the two sides read and cannot write, and records the wirings as the grantwirings, whichrevokeends. Two records whose one field differs by its sign are no longer equal. - A process writes and reads its record streams:
system.output_writewrites one record into the ring of each reader, whole or refused,system.output_endends the stream, andsystem.input_readgives the next record, the joined record, a gap record or the end, with the end word of a writer that stopped; each reader checks each record against a description file that the root service gives it. A side refuses a ring whose counters no honest side writes and closes it, and a process that closes an end gives it back to the count of the root service, while the other side reads the end wordSide_Closed. A module declares at most 64 record outputs and 64 record inputs. The module format is version 5: each record output and record input names the place of its variable, where each loader writes the index of its row. The machine testoutput_wiringchecks each refusal of a wiring with the budget of its asker unchanged, the joined record at 0 and at 5, the end words of a writer, a reader and an asker that stop and of a revocation, and an end refused withBusyfor a wiring ring that its side never reads. - An assembler module. The module
assemblereads a subset of x86-64 assembly in the syntax of AT&T, with anexportdirective that gives the types of each export, and writes a module file into a memory object that its caller lends; a text that it does not assemble whole is refused with its line and its column. The console commandisolate_memory(name, memory, size)isolates the module that such an object holds, soadd(2, 3)of a module assembled in the console gives 5. - The margin of the handle table of the root service: the root service writes its handles and its mappings after the stop of each process that asks for wirings, and the measure record shows the count after the stop of the asker of the main test, so each run shows how close the table of 128 handles is to full. A start that a full table refuses now names the table in its line.
- The editor
edit.start("edit")opens a window that edits one text of its private store, with no modes and no save action: a character goes in at the caret, Shift with the arrows, Home, End or the pages selects, the pointer places the caret and selects with a drag, a long line goes on more rows, and a gutter numbers the lines. Each word, line end, or change before a move to another line is one commit, so Ctrl+Z restores the version before from the store, also after a restart, and Ctrl+Y goes forward again. A text holds at most 32768 bytes, and an invalid sequence from the store shows as the replacement character. The clipboard, Ctrl+F and the edit of another object are not built yet. - A C compiler and a thin libc. The module
c_compilerischibicc, ported:compile(source, output)writes a text of assembly that the moduleassembletakes, with anexportfor each function that is notstatic, over a thin libc with no path and no standard stream. In the console,int add(int a, int b) { return a + b; }is compiled, assembled, isolated, andadd(2, 3)gives 5. The assembler takesmovsxd; the rest of whatchibiccemits past+and-is refused with its line and its column. - The measures of the log facts. In a measure run,
log_readerprints the time ofsystem.logand ofsystem.log_factfor the same line, of the operationLogfor each form, and of the render of a fact for 30 rows of the window of the log. After the main machine, the tool prints the log records up to the start of the desktop, the bytes of the module files of the root service and of the compositor, and the records that the lines would take in a record of 128 bytes; the measure record keeps the first two.modustool measure-compare <record> <record>prints each measure of two measure records and the ratio of each number. No test asserts these numbers. - A merge queue by batches.
modustool queue <branch>...merges a batch of branches intomasterafter one full check of the whole batch, each branch with its own merge commit, then pushesmasterand removes the merged branches and their worktrees. When the check fails, it checks the halves of the batch to name the branch at fault and merges the halves that pass: one branch at fault costs at most 1 + 2⌈log₂ n⌉ full checks, 9 for 12 branches, and a batch never passes its budget of min(2n − 1, 1 + 4⌈log₂ n⌉) full checks. - Record streams in the console: a line names a record output or a record input of a process by its typed name,
output_counter.counts, and reads a record output as a value of the kindStream:wherechecks a condition on each record, and its first condition goes with the wiring so the writer writes only the records that pass it, and the console refuses a record that fails it as a fault of the writer;columns,first(s, n)andtable(s)work on it,stream_counts(s)gives the counts that the writer published, and aStreamat the end of a line draws each row as it comes, with its joined record and its gaps, until its end or Escape.wire(from, to)gives a row of a wiring list,+joins two lists, andstart(module, list)starts a module with its wirings made before its first instruction.record_outputs(module)lists the record outputs of a module. - The scale factor of the reference screen. The contract package
scale_factorholds the scale of the desktop in eighths, from 1.25 to 2, with one border that refuses each other count and refuses a scale past 1.375 until every window fits its logical screen; the execution of a draw table draws each kind of record at a scale, with each edge rounded to the nearest pixel of the screen, so two boxes that share an edge meet with no gap. No window draws at a scale yet: the desktop at 1.25 is the next step. - The rename of the library as a command.
modustool rename-librarymoves the folders of the source library into its two source libraries withgit mv, rewrites the import lines, the comments and the documents, and names each string of a source that still holds an old form. A second run changes nothing, so each branch runs it after its merge ofmaster, and the rename waits for no branch. - The counted kernel.
modustool fuzz operationsnow runs on the test kernelkernel_edge_counters, which counts the edges of the kernel code that each operation sequence reaches, for the runner and its children only, on one processor, in counters that only the tool reads through the memory file of the machine; the tool keeps each sequence whose two runs agree on a new edge class, mutates the kept ones, writes the smallest set of them as the reach inputs of the corpus at the end of the run, and checks in each run that the counters stay at 0 outside the sequences and past the guards of the linked kernel. The release refuses that kernel by the hash that its description must name, by the test signing key of its volume, and by the textkernel: TEST BUILD:in the bytes of a kernel module, which refuses each test kernel; each build checks that the kernel that ships lacks that text and that each test kernel holds it, and a machine test of another volume fails when its log has the boot line of the counted kernel. The hashes ofkernelandkernel_without_return_checkchange only through the line numbers in the messages of their bounds checks. - The whole log of a process, kept, and the whole log as it comes: a starter wires the record output
logof its child in the list of its start, and the reader then receives each log record of the child from the first one, while the kernel log still refuses what passes its budget of each second; a reader that acts for the principal wireslog.followand receives each record of the whole log as it comes, with one gap record where the kernel wrote over records before the log service passed them on. - A failed wait says what the host gave the machine, and the parts at once fit in the memory of the host: the line of a step of a machine test that ends at its bound gives the processor time that the host gave the machine over the wait, the time that its threads waited for a processor and the memory stall of the host, and ends with "the host starved the machine", "the machine was idle" or "the machine had the processor"; the processors report gives the run state of QEMU.
modustool testandmodustool screenshotsrun at most as many parts at once as the available memory of the host holds, less 4 GiB, at 1 GiB for each part, besides the bound by processors, so the host no longer swaps the memory of a machine. - The kinds of a log fact for every line: a fact type can have no field, and its sentence is its template; a fact type can be a distinct type of a shared record, as
errors.Error_Record_Fact_Fields, the seven values of an error record with the kind and the unit by their names. A field writes 16 hexadecimal digits (Hexadecimal_Sixteen_Digits), the head of a hash (Hash_Head,1a2b3c4d…), hundredths (1.05), nanoseconds as microseconds (812.4 us), and a status ofoperation.Status,errors.Kindorerrors.Unitby the name of its member, also in a word type of 8 bytes (operation.Status_Word). A template has up to 512 bytes, and each reader of a log file in the tool reads the sentences of the facts. - Text views and facts of several records: a log fact holds texts of any length up to 1 KiB as text views of 16 bytes (
value_kinds.Text_View), each with its length and its first bytes in the record and the rest in the out-of-line area of the fact, which takes up to 9 records in a row and one line on the serial port; a reader that loses a record of a fact shows its records raw with a mark, never a wrong sentence, andwherecompares a view by its length and its start first. A load error is a fact of one shape for each stage (module.Load_Find_Fieldsand the others). New field kinds write tenths (12.3), an address with no leading zero (0x1a2b) and a time of day (07:04), and a status ofoperation.Object_Kind,module.Load_Stage,module.Error,module.Difference,block.Status,storage_status.Status,call_status.Call_Statusand the problems of a pointer theme is written by the name of its member, each also in a word type of 8 bytes;storage.Statusandsystem.Call_Statusmoved into the contract packagesstorage_statusandcall_status. - Utility modules: merge and filter:
mergejoins several record streams of one record into one, andfilterkeeps the records of a stream that pass one condition; each works on a stream of any record, whose record the first wiring fixes and the root service checks for each later source. In the console,start("merge", wire(a, merge.sources) + wire(b, merge.sources))thenmerge.mergedreads the joined stream. - A machine for a viewer on the host:
modustool run --remote-display <viewer key>runs the machine with no window, startsremote_display, prints the port of the UDP relay of the peer to its port 7101 and the public key of the service, and allows the viewer key for the view and the input. The native viewer then connects withviewertool machine <port> <key>. The machine stops when the viewer has ended. The UDP relay of the peer now reaches any port of the machine that its start names. - Record literals, named arguments,
let,withand the placeholder_in the console: a line writes a record by its fields,area({x = 0, y = 0, width = 11, height = 3}), typed by the parameter that receives it; gives a parameter by its name,grow(r, by = 2); changes some fields of a record,r with {width = 10}; names values for one expression,let s = {…} in area(s) + area(s); and puts the value on the left of|>in another place,3 |> grow(r, _). An unknown field, a missing field, an unknown or missing parameter and a_out of its place are refused with the name and the place.let,in,withand_are no longer names. - Record outputs and record inputs of a module: a start list holds, after its start rows, wiring rows that join a record output of a row to a record input of an earlier row, and the default start policy gives them with the start of the writer, so the reader reads every record from the serial 0. The tool refuses at the build a row whose reader starts after its writer, a row that loops, an end that a start policy does not hold, a writer row with restarts, and a stream that the module files of the two rows do not declare or whose records differ; the root service takes from a start policy no other row, so a start policy from the disk reads no stream of its children. The default start list wires the demonstration pair
wired_writerandwired_reader. - One test part from a range of its steps.
modustool test main steps 1270 to 1280boots the machine, runs its boot steps, the setup steps that eachwith <first> to <last>names and the steps of the range, then ends the part, with the time of each as a measure;of <log name>names another machine of the part. A range that names no step, ends before it starts or passes the steps of the machine is refused, and so is a step that needs a mark or the key ofremotethat no selected step gives, with the step to add. - A check of the waits of the scenarios before any machine runs. After its build,
modustool check without_machinesandmodustool testhold each text of the log that a step waits for, and that starts with the prefix of a fact template, against the fact templates of the module files and the text lines of the system; a fact whose sentence changed, a fact split into two or a list that became one fact for each row fails there with its file, its line and the nearest template, not at the hang bound of a machine.modustool fact_waitsruns it alone; the 1879 fact waits of the scenarios pass it. - A full check that names every failed part.
modustool screenshotsand the workflows build the check of the flake with--keep-going, so every test part runs past the first one that fails, andmodustool failed_partslists the host checks and each part that failed or did not run, with its first failed step, its machine and its whole build log inbuild/failed_parts/. - The display text of a member, apart from its name: a module file (version 7) holds a table of display texts by member and language tag of BCP 47 (
en,fr-CA), which a module declares in its source apart from the enum:@(member_texts = "en"). A reader follows the tags of the principal as the Lookup of RFC 4647 does (fr-CA,fr), thenen, then the name of the member. The palette shows "settings.set scale to 1.75" and the button "1.75" for the scale.fourteen_eighths, the completion lists.fourteen_eighths 1.75, and a line still types the name. The settings give texts for the scale, the subpixel order (RGB,BGR), the pointer theme and the keyboard layout (US). A row that names no member, a text past 24 bytes, a text with a character that a reader does not see or that changes the order of the text, a text of spaces only, a tag that is not well-formed or not in its canonical case, and two texts for one member and one tag are refused, and the build refuses a row of the palette that would miss a button. - Functions, lists and
mapin the console: a line writes a function,(x) => x * 2, names it withletand calls it,let double = (x) => x * 2 in double(21); writes a list,[1, 2, 3]; and calls a function on each item,map([1, 2, 3], (x) => x * 2)gives[2, 4, 6]. A function reads the bindings of its line where it is written, and its body runs only in a call. A wrong count of arguments, a call of a value that is no function, a parameter named twice, and a function or a list given to a command or kept by a variable are refused with their place. A line that nests deeper than 512 KiB of stack of the evaluator, as a recursion, stops with an error: the console runs its lines on a thread of 640 KiB of stack, where the deepest lines of 200 bytes took more than its 64 KiB before. - Comments in Lex:
//outside a text starts a comment to the end of the line,area(r) // the area of r. The console draws it in the color of a comment and runs the line before it. A line of only a comment, or of only spaces, now does nothing, where a line of spaces said that the line ends too soon.//inside a text stays a part of the text, anda / / bstays an error. - Each angle is in turns. The package
modus:support/trigonometrygives the sine and the cosine of an angle in turns (1 is a whole circle, 0.25 a right angle), exact at each whole quarter turn, and each angle of the system, its guides and its site now counts in turns.toneand the sine table ofplasmause it in place of a series in radians and an approximation of Bhaskara. - Vector fuzzy matching and frecency ranking. Console completion and the desktop palette now rank matches with a bounded frecency bonus (0 to 8 points, use-counted decay of 1/32, capacity 64, rebuilt from the line history in the console and kept in compositor memory for the palette) and match ASCII names with a portable 128-bit vector form verified score-for-score against the scalar reference. Measured on the host (
-o:speed -microarch:x86-64, load 6.90), the vector form matches 51.9 to 60.6 million names a second over 100 names (6.0x to 7.2x scalar), 32.4 to 66.2 million over 10 000 names (4.8x to 8.2x), and 34.3 to 64.9 million over 100 000 names (4.7x to 7.5x). - Swiss tables and rapidhash V3 for in-memory lookups. The support packages
modus:support/hash_table(Hash_TableandHash_Index, 16-slot groups with SSE2 tag matching, 7/8 load bound, in-place tombstone rebuild, and seeded hashing) andmodus:support/fast_hash(rapidhash V3, keeping BLAKE3 for identity and security) give modules fixed-capacity, zero-allocation tables for outside keys. On the host (-o:speed -microarch:x86-64, load 3.71), random-key lookups measure 1.46 ns hit / 1.29 ns miss at 16 entries, 2.21 / 1.82 ns at 1 000 entries, and 4.11 / 5.88 ns at 100 000 entries, and rapidhash V3 hashes 8 B and 16 B keys in 2.68 ns, 32 B in 3.71 ns, and 64 B in 6.19 ns. The private glyph cache (text_rendering.Private_Cache) now useshash_table.Hash_Indexin place of its chained bucket table, keeping the same 354-page glyph memory budget. - The page Credits and licences.
docs/CREDITS.mdnow unifies reused code, reimplemented algorithms, design inspirations, and upstream funding links in one tool-checked document, rendered on the site atdocs/reference/licenses/and linked from the footer of every page. - Role contracts, root role registry, and Display conformance suite: added the
role_contractcontract package with the closedRoleenum, deterministic BLAKE3 contract hashing,module_fills_contractverification, and theDisplayrole contract; added the root service role registry and purerole_policyenforcing per-scope single holders, trusted-path principal 0 rules, and caller-scoped local service bindings; and added the holder-agnosticdisplay_conformancesuite with host tests. - Immutable trees with a domain-separated tree hash and mark-and-sweep collection of
module_files. The storage service freezes mutable subtrees bottom-up into canonical immutable tree objects named by a domain-separated BLAKE3 tree hash (freeze_tree,tree_read,tree_entry), and collects unreachable content-addressed objects inmodule_files(collect_garbage) while keeping every hash reachable from signed system modules, kept applied plans, disk grant modules and pinned trees, refusing corrupt or over-deep graphs with zero deletions. - Kernel record and replay of one thread (layer 1). Added the
input_historycontract package, the pure kernel partreplay_filter, threeThread_Controlcommands (Record_Start,Record_End,Replay_Start) requiring theDebugright with no new kernel operation, kernel trapping and emulation ofrdtsc/rdtscp/cpuidviaCR4.TSDand CPUID faulting, point copies for read-only shared pages, single-processor pinning, one-stint bound and immediate revocation end, thereplay_probetest module, and a tool rule check refusingrdrandandrdseedoutsiderandom.entropy_gather. - The clipboard, the search and any object in the editor
edit: the clipboard carries multi-line UTF-8 text (LF line ends and tabs) and Control+X cut while single-line fields keep refusing line ends;editadds Ctrl+A, Ctrl+C, Ctrl+X, Ctrl+V, incremental Ctrl+F search with match highlights and wrap-around navigation, andedit(store, name)in the console to edit any text object of a store of the principal. - Supervision contracts, restart window, and client call retry rules: added the
supervisioncontract package with explicit-value enums and transport borders, the fixed-layoutConnection_Pagewith atomic seqlock transitions across holder restarts, theRequest_Serial_Logdeduplication table for at-most-once execution, and the single-retryClient_Call_Trackerstate machine; added the pureSupervision_Treewith restart strategies, optional sliding restart window, dependency cycle refusal, and bounded escalation tostart_policy_rules, with host tests. - Declarations in the console. Lex adds
blake3:hash literals, multi-line.lexfiles,if ... then ... else ..., comparisons,filter, call on a record literal (plan { ... },project { ... }), and a pure lazy evaluator that runs in the zero-authority moduledeclaration_evalwith cycle detection, step and depth bounds, and deterministic canonical output. - Powerbox Layer 1 consent contract, policy engine, and service: added the
powerboxcontract package with closed enums, 16-item grouped consent batches, sealed trusted display dialogs, and strict border validators; addedRole.Powerboxandpowerbox_contract()torole_contract; added the purepowerbox_corepolicy state machine enforcing window ownership, 3-dialog per-session queue caps, 250 ms anti-clickjacking arm delay, 500 ms rate limiting, 60 s expiry, hash-boundAlwaysgrants for disk modules only, isolated store pickers, and whole-or-nothing plan difference dialogs; and added the freestandingpowerboxservice module. - Work budget contract and per-connection work thread probe: added the
work_budgetcontract package with closedWork_Account_StateandWork_Budget_Refusalenums,Work_Budget_Requirements, border-validatedAccounting_Snapshotrecords,work_budget_check, and theConnection_Worker_Tablestate machine isolating client exhaustion and revocation; added thework_accounting_probetest module spawning one work thread and scratch memory per connection strictly on the client's offered child budget withSpendright, with adversarial host tests. - Language-neutral module ABI and hardened ELF converter: the build tool now converts freestanding System V AMD64 relocatable ELF objects (
ET_REL) paired with a plain-textModule_Manifestdirectly into validated modus module files without Odin AST scraping or dynamic linking, and hardens ELF header, string table, symbol, and relocation checks across both object and linked converters. - The C of the C compiler past addition. The assembler now encodes 8- and 16-bit registers and moves (with REX handling for
%spl/%bpl/%sil/%dilversus%ah/%ch/%dh/%bh), scaled indexed SIB addressing, bitwise and shift instructions (and,or,xor,not,shl/sal,shr,sar),test,imul,idiv,div,neg,inc,dec, all 16setccconditions, sign- and zero-extending moves (movsbl/movzbl/movswl/movzwl/movslq/movzb/movzxand kin), zero-operand sign extensions (cbw,cwtl,cltq,cwd,cdq,cqo),rep stosb, and indirectcall/jmp. C functions compiled byc_compilerwith loops, comparisons, recursion, multiplication, division, bitwise operations, local initializers, and byte/short arrays now assemble into valid modules and run on modus. - Object cache wire protocol, signed realisations, substitution policy, and host cache server. Added the freestanding contract package
modus:contract/object_cachewith strict binary framing, domain-separated Ed25519 signing payloads for realisations and uploads, and puresubstitution_checkverification (hash-only trust for blobs and canonical trees, explicit trusted-signer verification for realisations), together with the content-addressed host server andmodustool cache-servecommand intools/modustool/cache_server. - Semantic tree records in the draw table. Version 20 of the draw record adds
Element_PushandElement_Popwith the WAI-ARIA 1.2 element roles, states, live modes, and 16-byte detail records validated by the unified clip-and-element order border (damage_of_draw_table_20andexecute_draw_table_in_rectangles_20). Theaccessibilitycontract package reconstructs, audits, and diffs flat semantic trees directly from a draw table, and the interface widgets (button,text_input,text_input_line,list_with_choice,list_of_rows,scroll_bar,action_bar,card,draw_heading,bar_with_value, andcase_lines) emit semantic elements in the same draw table that draws their pixels. - Collector hash-chained act verifier and Wide Grants Layer 1: added the
wide_grantscontract package with closed enums, bounded window-scopedWide_Grant_Terms, passphrase and host-key principal proofs, domain-separated BLAKE3"modus act record v1"hash-chainedAct_Recordvalidation and chain verification, and sensitive-action principal-proof guards; added the purecollector_coreappend-only act collector and fail-closedWide_Grant_Manager; and added the freestandingcollectorsystem service module. - Interface messages contract, MessageFormat 2 evaluator, and MODLANG1 binary language packs: added the freestanding
interface_messagescontract package with canonical BCP 47 language preference lists (at most 8 tags) and RFC 4647 Lookup resolution, a zero-allocation W3C MessageFormat 2 parser and evaluator supporting.input,.local,.matchselectors with CLDR cardinal plural rules and:integer/:number/:stringfunctions, and the BLAKE3-verifiedMODLANG1binary language pack format with O(log N) sorted lookup and adversarial host tests. - Zero-allocation LZ4 block codec, Binary Fuse8 filter, and commit-driven bigram store search index. Three freestanding packages join
modus:contract:lz4(up to 5.8 GiB/s compress and 12.2 GiB/s decompress on repetitive 64 KiB text),xor_filter(9.5 bits per key at 100 000 keys, 0% false negatives, 2.5–3.4 ns lookup), andstore_search(103x–189x faster than brute-force search across 200 files, with O(1) subtree index reuse bytree_hash). - Declarative plans, recipes, and projects contracts and services: added the
plans_recipescontract package with canonical plan hashing, grant-difference computation feedingpowerbox(Show_Plan_Difference),applied_plansstore records and rollback validation, domain-separatedrecipe_hashandSubstitution_Policycache verification, deterministicpins.lexformatting and strict parsing, unified source resolver records, andprojects.enter/exitconsole specifications; added the pureplans_core,recipes_core, andprojects_corestate machines with adversarial host tests; and added the freestandingplans,recipes, andprojectssystem service modules. - Machine mesh contract, CPaceRistretto255 PAKE, signed cross-principal grants, and store delta sync. Added the freestanding contract package
modus:contract/machine_meshwith monotonic offline-root-signed machine lists (per-machine keys, instant revocation without changing principal identity, and default non-TPM join refusal with opt-in warning), off-by-default keyed BLAKE3 local address hints, signed cross-principal grants bounded by a one-day lifetime or monotonic revocation lists, CPace PAKE over RFC 9496 Ristretto255 with mutual key confirmation, and the store delta sync wire protocol with three-way fast-forward and conflict-fork reconciliation. - An absolute pointer in a virtual machine. The input service drives
virtio-tablet-pcialongside the PS/2 fallback, batchesABS_X,ABS_Y, button, and wheel updates untilSYN_REPORTso the pointer never steps along one axis before the other, and scales axis ranges onto the screen with exact integer arithmetic clamped at the edges. - The pointer of a viewer and the echo of its input. Remote display protocol version 2 adds
Pointer_Shape,Pointer_Picture, andPointer_Warpmessages together with a monotonic 64-bitinput_echo_counton everyViewer_Frame_StartandPointer_Warp, so a viewer renders its own local cursor with zero wait and measures exact input-to-display latency. - The uses of a viewer key across a restart. The disk grant table (format 3, 1168 bytes) persists each client key's
Calls,View, andInputuses alongside its Ed25519 key under the BLAKE2b tag, so an allowed viewer reconnects with its screen and input permissions after a machine restart until revoked. - SDK packager, verifier, and language-neutral module converter:
modustool sdk-pack,modustool sdk-verify, andmodustool sdk-convertassemble and cryptographically verify a self-contained SDK directory with BLAKE3 per-file and root digests plus Ed25519 signatures, and build outside modules in Odin or any compiled language emitting freestandingET_RELobjects with no repository checkout and no access tointernal:ormodulus:. - Sandboxed guest builder contract and freestanding module. Added the freestanding contract package
modus:contract/guest_builderwith fixed-layoutGuest_Build_Spec, closed border enums, canonicalMODGBD1disk image packing and recursivetree_hashoutput extraction, and the pureGuest_Sandbox_Runnerenforcing read-only input disks, zero network, frozen epoch time, and exit-code-0 output extraction, together with the freestandingguest_buildersystem module wired toGuest_Run. - The guide of Lex, rich and whole: added
docs/LEX.mdand linked it fromREADME.mdand the site, covering both evaluation modes, the full grammar and value kinds, integers with units, pipes and_, list and table transforms, plans, recipes, projects andpins.lex, record stream short forms and the body region, ASCII evaluation diagrams, all error refusal kinds with fixes, and a frequent tasks reference table. - Body region contract and record stream short-form expansion: added the fixed-layout
Body_Region_HeaderandBody_Referencering-buffer contract (body_region_write,body_region_read) inmodus:contract/outputwith border validation for bounds, alignment, wrap generations, zero length, and serials; added pure wiring-list expansion and validation foraudit,audited,keep,merge, andcollector.verifyininternal:console/console_stream; and refusedcollectorservice calls in modedeclaration. - Data evolution contract package (
data_evolution). A freestanding, zero-allocation contract package provides canonical stored type descriptions with reader-computed domain-separated BLAKE3 description hashes, theMODTYPE1self-describing typed object format with strict border validation, derived forward and backward migration planning and fail-closed execution, stated-loss accounting, and pre-flight rollback checks for 1.0 store evolution without forcing pre-1.0 stores into migrations yet. - Host agent bridge contract and stdio JSON-RPC adapter. Added the freestanding contract package
modus:contract/agent_bridgewith canonical"MODAB1"binary framing, closed border enums, Lex sensitive-action detection, and pure authorization rules that require explicit principal approval for grant-adding plans, together with themodustool agent-bridgestdio JSON-RPC 2.0 adapter, remote QUIC call transport wrapper, and append-only BLAKE3 act log enforcement. - Browser machine software MMU and x86-64 user-mode processor. Added the freestanding contract package
modus:contract/software_machinewith a 4-level x86-64 software MMU matching the page-table format ofmodulus(including 2 MiB large pages, canonical checks, W^X/NX enforcement, atomic page-straddling memory accesses, and a software TLB), a user-mode x86-64 interpreter withgs:base support,syscalltrapping, strict step budgets, and core SSE2 operations, and the browser machine configuration border supporting single-worker fallback without cross-origin isolation and optional bring-your-own link relay URLs. - VirtIO-GPU 2D scanout, Venus framing, and WebGPU subset contracts. Added the freestanding
virtio_gpuandwebgpu_subsetcontracts (including strict precompiled SPIR-V validation and binary GPU command stream checks) and thegpu_devicePCI device service for VirtIO-GPU 2D scanout setup and Venus capability probing. - Self-hosting verification command and bootstrap recipe chain harness.
modustool self-hostcompilestools/modustoolin two isolated staging directories where Stage 1 compiles Stage 2 with identical deterministic flags, proving exact BLAKE3 fixed-point equality or reporting the first diverging byte offset, andbootstrap_chain_verifyvalidates the stage-by-stagechibiccself-host,hex0-to-odinguest bootstrap, and SQLite, Lua, and zstd C-world recipe DAGs. - Root delegation contracts, services, and 14-role BLAKE3 catalog. Added border validators for
Start_From_Bytes,Disk_Rows_Set, and PCI device identity/grant specifications, the delegateddisk_processesanddevicesservices, the pure daytime appearance rule insettings, and canonical BLAKE3 role contracts for all 14 remaining core roles. - Venus Vulkan wire protocol, draw-table WebGPU translator, and processor 3D rasterizer. Added the freestanding
venus_vulkanpackage and itswebgpu_stream_to_venustranslator forvirtio_gpu.Submit_3D, plusdraw_table_translate_to_webgpuand thesoftware_3d_executeprocessor rasterizer inwebgpu_subsetwith 24-bit depth testing, scissor clipping, and linear-light alpha blending. - Text grid benchmark against text runs.
interfacenow includes a pixel-for-pixel verification and opt-in-define:MEASURE=truebenchmark comparingText_Gridagainst equivalentTextandRectangleruns across 104 by 32 terminal frames and a full 1 920 by 1 080 terminal (240 by 67 cells). In the 104 by 32 worst case (one color and fill per cell), runs require 6 656 records (past the 4 096-record bound) and 322 816 bytes against 1 record and 53 296 bytes forText_Grid, soText_Gridstays its own draw record kind. - Stall-deadline revocation for full holding rings. The
wiringservice now tracks monotonic stall deadlines (wiring_stall_observe,wiring_stall_expire) for activeAlways_Holds_Writerwirings whose output ring stays full without readerread-cursor progress, resetting the deadline immediately when the reader advances. Once a ring remains full forSTALL_HANG_BOUND_MS(60 000 ms),wiringrevokes only that stalled wiring, writesEnd_Word.Revokedand wakes its end word so the blocked writer unblocks immediately, and leaves healthy sibling wirings andNever_Holds_Writerwirings intact. - Host test seam for the
system.output_writering loop. A host-only seam seeds full rings at and past their largest gap count so host tests runsystem.output_writeitself: stalled rings close with aClosedcompletion,rings_past_gapincrements, and sibling healthy rings still receive the exact record. - Current and peak handle and mapping counts in
Process_Report. The kernel tracks current and peak handle and mapping counts per process and reportshandle_count,handles_peak,mapping_count, andmappings_peakinInspect(.Process)andmonitor.processes(), allowing the root service to read its table counts in one inspection call. - Optional typed error record on failed or refused process stops.
Process_Stopaccepts a readableerrors.Error_Recordaddress for aFailedorRefusedself-stop, stores it inStop_Report.error, and refuses any non-zero error address onDone,Stopped_On_Request, or holder stops;system.stoppasses the optional record and the console prints it on call-host failure. - Pure engines for replay shared-writer gating and debugger reverse checkpoints.
replay_filteradds theShared_Writer_Gatestate machine enforcing input-point gating, the one-stint wait bound, and immediate revocation override;input_historyaddsCheckpoint_Ring,step_back_plan, andwatch_back_planfor reverse stepping and reverse data watchpoints. - Multi-stream sound mixer and C11 SDK headers. Added the freestanding
sound_mixercontract package for 8-stream saturating 48 kHz stereo PCM mixing, mandatory microphone capture indicator tracking, and integer device clock drift estimation, and addedmodustool c-headersto generate C11 contract headers with_Static_assertsize and offset checks derived from Odin layouts. - Palette selection and clipboard. The palette search bar and argument form fields support keyboard text selection (Shift+Left, Shift+Right, Shift+Home, Shift+End, Control+A) with visible selection highlighting, and copy (Control+C), cut (Control+X), and paste (Control+V) through the compositor clipboard.
- The list of the viewers from the mark. Pressing the remote display viewer mark in the bar opens a compact popover listing each connected viewer with its key prefix, grant role (
vieworinput), and an explicitdisconnectbutton that ends that viewer's connection throughCapture_Disconnectwithout opening the console. - Resizable terminal grid core and headless memory screen contract. Added the freestanding terminal grid resize package (
internal:terminal/grid_resize) wired into the terminal service withterminal.Input.Resizednotifications, and the freestanding headless virtual framebuffer contract (modus:contract/memory_screen) with strict geometry, stride, damage, and atomic viewer-resize validation. - Project console session lifecycle:
projects.enterandexit()manage bounded, nested child project consoles per principal without modifying the applied plan or installing modules globally, requiring verified trusted display consent when entering adds module or store grants outside the current session and revoking all temporary connections and store shares on exit. - Console
logwiring andlog.followloop breaker: the console supports naming a module's implicitlogoutput inwire(server.log, collector.sources)and pipinglog.follow |> where(level = Warning), protected by a self-feedback loop breaker that suppresses render echoing into the kernel log and excludes the console's own process slot by default. - The other records at the addresses of the kernel operations. The kernel operation fuzzer now writes typed valid, boundary, and invalid records for
Event_Rule,Guest_Registers,Thread_Schedule,Process_Schedule,Thread_Placement, andAddress_Rangetables, verified by deterministic host tests against each contract border. - Browser machine WebAssembly runtime exports and runner page: the software machine exposes a freestanding, zero-allocation C-ABI WebAssembly export surface (
modus_vm_init,modus_vm_load_bytes,modus_vm_step_budget,modus_vm_framebuffer_ptr,modus_vm_framebuffer_bytes,modus_vm_push_key,modus_vm_push_pointer,modus_vm_pop_serial, andmodus_vm_state_word) that builds cleanly forfreestanding_wasm32,freestanding_wasm64p32, andfreestanding_amd64_sysv, paired with a self-contained browser runner asset (browser_machine.html) supporting single-processor execution without cross-origin isolation and an optional bring-your-own link relay URL field. - Canonical bootstrap and C-world recipe catalog with native x86-64 compilation proofs: added typed reproducible
plans_recipes.Recipe_Specandguest_builder.Guest_Build_Speccatalog definitions forchibicc_stage1/chibicc_stage2,sqlite,lua,zstd, and the 6-stagelive_bootstrap_chain(hex0toodin), verified alongside deterministic bit-for-bit BLAKE3 tests of the native x86-64 assembler and C + assemblyET_RELto.modusconversion. - A recovery key for a named principal on a machine with no TPM. Named principals sealed under a passphrase alone can now seal and open an authenticated recovery-key copy bound to their principal number and public keys, allowing recovery after a lost passphrase on machines without a TPM or with Secure Boot off.
- Accessibility semantic checker, forced high-contrast colors, and speech queue contract. Added direct draw-table semantic auditing and role/name/state widget querying in
modus:contract/accessibility, WCAG AAA forced high-contrast color token palettes with pure integer luminance checks inmodus:graphics, and the freestandingmodus:contract/speech_outputannouncement queue and element utterance formatter bridged tosound_mixer. - Remote display agent settle and browser gateway token contracts. Added freestanding agent capture and settle tracking (
Agent_Capture_Mode,Settle_Tracker), signed 1-day browserDisplay_Tokenverification and renewal with an immutable absolute expiry ceiling andToken_Revocation_List, and shared WebTransport/WebSocket binary gateway framing inmodus:contract/remote_display. - SSE2 vector spans for translucent blends, horizontal gradients, and path coverage. Added bit-for-bit SSE2 vector forms for translucent solid span blending (
blend_span_simd), horizontal gradients (horizontal_gradient_span_simd,horizontal_gradient_with_alpha_span_simd,mix_with_alpha_span_simd), and path coverage scanline accumulation and compositing (path_coverage_span_simd) inmodus:graphics, wired intoblend_fill,gradient,gradient_with_alpha, and draw-table path and gradient execution. - TLS 1.3 over TCP record layer and handshake library. Added the freestanding zero-allocation
modus:tls_tcppackage implementing RFC 8446 record framing, SHA-256 HKDF key schedule, X25519 key exchange, Ed25519CertificateVerify, and full client/server handshakes overTLS_AES_128_GCM_SHA256andTLS_CHACHA20_POLY1305_SHA256reusingmodus:cryptography_primitives. - Freestanding PNG and baseline JPEG decoders with SSE2 vector forms. Added zero-allocation
modus:contract/image_decodesupporting PNG (bit depth 8, color types 0, 2, 3, 4, and 6, CRC-32, PLTE/tRNS, concatenated IDAT zlib/DEFLATE stored, fixed, and dynamic Huffman, Adler-32, and SSE2 scanline filters) and baseline JPEG (DQT, DHT, SOF0 grayscale and YCbCr 4:4:4/4:2:2/4:2:0, DRI restart intervals, SOS byte stuffing, SSE2 integer 2D IDCT, and SSE2 YCbCr-to-RGBA conversion), with strict dimension/bomb bounds and zero pixel writes on refusal. - HTTP/1.1 client, HTTP/3 framing bridge, and per-principal web store. Added the freestanding
modus:contract/http_clientpackage with strict HTTP/1.1 smuggling and chunked-decoding guards, RFC 9114 HTTP/3HEADERS/DATAframing, and per-principal partitionedCookie_JarandResponse_CacheenforcingSecure,HttpOnly,SameSite,Domain,Path, andCache-Controlwithout cross-principal reads or eviction. - WHATWG-subset HTML parser and CSS block, inline, and flex layout engine. Added the freestanding
modus:contract/html_csspackage with a fixed-pool iterative HTML tokenizer and origin-isolated DOM builder bounded at 512 nodes and depth 64, CSS specificity cascade and inheritance, block/inline/flex pixel layout, and canonicaldraw_recordprimitive emission. - TPM 2.0 salted session, remote quote verifier, and rollback floor contracts. Added freestanding
modus:contract/tpm_attestationwithKDFa/HMAC-SHA-256 salted session parameter encryption (constant-time AES-128-CFB and XOR stream), strictTPMS_ATTESTquote verification over PCR 7, 11, and 12, and monotonic grant-table counters withTPM2_PolicyAuthorizefloor enforcement. - NVMe 1.4+ queue pair and command protocol contract. Added freestanding
modus:contract/nvmedefining exact 64-byte submission and 16-byte completion entries, closed opcode and status enums,Queue_Pair_Statewith phase-tag wraparound and in-flight command ID tracking, doorbell offset overflow guards, and validated Admin and I/O command builders. - Whole-store snapshot history and atomic rollback contract. Added freestanding
modus:contract/store_historyproviding a bounded immutable snapshot DAG with canonicaltree_hashcommits, historical object lookup, atomic whole-store rollback that preserves newer snapshots, and sorted snapshot diffs. - An SSH client. Added the freestanding zero-allocation
modus:ssh_clientpackage andssh_clientlibrary module implementing RFC 4253/4252/4254 SSH-2 transport (curve25519-sha256,ssh-ed25519with strictKnown_Hostsverification and no silent TOFU,[email protected]), Ed25519 public-key authentication, interactive session channels (pty-req,shell,window-change), and a bounded VT100/ANSI escape sequence parser. - Desktop notifications, window edge snapping, and workspaces contracts. Added freestanding
modus:contract/desktop_layoutimplementing non-focus-stealing reserved-corner system notifications with per-sender quotas and TTL expiry, floating window snap-to-edge/maximize/minimize with saved-rect restore, and 9 isolated workspaces with per-workspace focus memory. - Unicode Latin NFC, grapheme stepping, line breaking, and French/English collation. Added freestanding
modus:contract/unicode_latinchecking and composing Latin NFC names, stepping by UAX #29 extended grapheme clusters, wrapping lines by UAX #14 opportunities, and sorting French and English words in multi-level reader order. - USB HID boot parser, UAX #9 RTL bidi engine, and sandboxed WebAssembly 1.0 interpreter. Added freestanding contract packages
modus:contract/usb_hid(boot keyboard rollover/diff and clamped pointer reports),modus:contract/rtl_bidi(Arabic/Hebrew UAX #9 visual reordering and RTL interface layout mirroring), andmodus:contract/wasm_runtime(WebAssembly 1.0 binary validator and bounded fuel/memory/capability interpreter). - The boot program named in the processors of a failed step. The boot program logs its UEFI loaded image base address and size, and the tool parses that range when reporting processors on a failed step so an instruction inside the boot program names the boot program and its offset instead of "no known code".
- CJK input method, VNC/RDP gateway framing, and document picker / drop-only drag-and-drop contracts. Added freestanding contract packages
modus:contract/ime_cjk(Pinyin/Romaji candidate window and UAX #11 double-width cell widths),modus:contract/vnc_rdp_gateway(RFC 6143 RFB 3.8 and RDP TPKT/X.224 framing), andmodus:contract/document_picker(capability grant registry and drop-only inter-window drag-and-drop). - Freestanding
libghostty-vtdesign and fixed-arena C-ABI allocator bridge. Recorded thelibghostty-vt(MIT) integration design insrc/md/features/ghostty_vt.md(keeping the small Odinterminalin the Zig-free bootstrap seed) and addedmodus:contract/ghostty_vtimplementing the bounded fixed-arenaGhostty_Allocatorvtable and validated terminal options. - Intrinsic layout, screen video codec, cross-thread profiler, external pager, and driver-domain keeper contracts. Added freestanding contract packages
modus:contract/layout_measure(bottom-up intrinsic sizing),modus:contract/video_codec(lossless 16x16 tile-delta + LZ4 screen streaming),modus:contract/processor_profiler(hardware counter delta/IPC profiler and W^X external pager), andmodus:contract/driver_domain(resilient class-ring restart keeper and Linux driver-domain frame proxy). - Desktop notifications, separable blur, zero-copy large-page buffers, screen reader / magnifier / Braille, CLDR en/fr localization, and complex script shaping. Added freestanding contracts
notifications,blur_filter,zero_copy_buffer,screen_reader,locale_cldr, andcomplex_shaping. - PCIe bridge/multi-root topology, AMD-Vi IOMMU isolation, MCE/NMI containment, encrypted store pages, multi-machine sync/relay, and browser VM runtime contracts. Added freestanding contracts
pci_topology,kernel_fault_isolation,store_crypto,machine_sync, andbrowser_vm_runtime. - Freestanding
ghostty_vtandweb_enginelibrary modules, compositor desktop features, and browser machine OPFS/WebAudio/non-COI support. Added shared library modulessrc/modules/libraries/ghostty_vtandsrc/modules/libraries/web_engine, wired workspaces/notifications/magnifier intocompositor, and upgradedbrowser_machine.htmlwith OPFS persistent disk initialization, WebAudio unlock, and automatic COI vs non-COI mode reporting. - Full-system Linux/NT guest contracts, rich-toolkit outside-module imports, resilience/TPM contracts, supervision/governance contracts, and C-world reproducible recipes. Added freestanding contracts
guest_os,rich_toolkit,serial_ring, andconsole_prompt, plus reproduciblechibiccStage 1/2, SQLite, Lua, and zstd recipes intools/modustool/build/c_world_recipes.odin. - The bar at the bottom of the screen:
compositor.bar_position(2)or the item "Bar Position Bottom" of the context menu of the desktop moves the whole bar to the bottom: the mark, the buttonsstartandwindows, the hint of the palette, the clock, the mark of a viewer, the window plates and the tray badges. The start menu, the menu of the windows, the viewer list and the preview of a window plate open up from the bar; a maximized or snapped window, the notifications, the context menu and the trusted dialogs stay off the bar. A bar at the top keeps each place that it had. - The services of the declarations count their work.
plansexportsdiff_count,apply_generation(the newest generation that an apply committed, which a rollback keeps) androllback_generation(the generation that a rollback with no target selects, with no change),recipesexportsbuild_countandcache_hits, andprojectsexportspin_count, the pins of the lastpins.lexthat it read whole. - The debugger records the debugged process.
record_start(),record_end(),replay_status(),replay_checkpoint(thread)andreplay_step_back(points), as exports ofdebuggerand as console commands, ask the kernel to write the input history of the attached process, show its input points, its bytes and why it ended, keep checkpoints of a held thread, and give the nearest checkpoint and the input points of a step back; each refusal of the kernel, such as a process that ran already, is the error record of the export. - The language list in settings. A principal orders the languages that it reads with
settings.set_languages, a table oflanguage_tag.Localerecords, or with the row "languages" of the window ofsettings, andsettings.languages()gives the list with the canonical tag of each; each tag is read once into a typed record, its case and its deprecated language made canonical (iwishe), and a damaged list on the page or in the store is refused whole. - Live compositor notifications, viewport magnifier zoom, supervision generation tracking, and console
roles()command.compositornow renders active desktop notification banners in the top-right corner, applies live 1.5x-8x viewport magnification insidescreen_copy, and exportsnotify(title, body)andmagnifier(zoom_eighths);rootadvances role supervision generations when role holders stop;consoleadds theroles()built-in table command. - A binary of the tool for each machine test part. In the check of the flake, each test part runs a binary of the tool that holds the core of the tool and the scenario files of that part alone, which
tools/modustool/machine/test_part_files.jsonnames. A change of the scenario of one test part then runs that part again and takes every other part from the store, so a developer who works on one scenario waits for one part. A binary of one part refusestestof another part and the whole test, andmodustool part_cachenow also proves that a line more in the scenario of the partdebuggerchanges the derivation of that part only. - Every act of the desktop with the keyboard. Control+Shift+F7 moves the window in front with the arrow keys and Control+Shift+F8 resizes it, by 16 logical pixels or by 1 with Shift: Enter keeps the result, and Escape gives back the old place and size; the palette offers the same as "move window" and "resize window". Control+Shift+F10 gives the bar the focus of the keys: Left and Right reach the heron button, the button of the windows, each window plate and the viewer mark, Down and Up walk the lines of the start menu and of the menu of the windows, Enter acts and Escape returns to the window. The element with the focus in a window, the item of the bar and the window that the arrows hold now show a 2 pixel outline in the strong text outside them, whose contrast a host test computes at 7.3 to 1 or more on each surface of the dark, light and two high contrast sets.
- The debugger records a process from its first instruction, with its shared writers.
record("clock")starts a module held before its first instruction through the new root commandDebug_Start, records it, then lets it run. Memory that the process and another process both map with Write is now recorded: the kernel lets that writer run only while the recorded thread is at an input point, at most one stint at a time, and writes what it changed into the history.replay_start()runs the module again from the history with the context of the record, andreplay_status()shows the replay and the input point of a divergence, also after the debugging ended. - A restart window for a start row. A start row can name a restart window in seconds: its count of restarts then holds inside each window, so a holder with a rare fault keeps its role for a run of months, and a holder that stops in a loop ends with one line. A row with no window keeps its count for the whole run and reads no clock. A needed row past its bound after the machine is usable now stops the default start policy with
Failed, with one line that names the row, its count and its window. The start list is now the version 3, and its border refuses a window on a row with no restart. - Per-view independent zoom in
scale_factor. AddedView_Zoom(0.5xto4.0xin eighths),view_zoom_step,view_screen_pixel, andview_logical_pixelto compose per-view zoom with the desktop scale factor in one exact rounding step, and recorded the design insrc/md/features/desktop_to_browser.md. - The screen through the virtual GPU. The compositor attaches its framebuffer read-only to
gpu_deviceover the VirtIO-GPU 1.2 PCI control queue, binds the 1920 × 1080 2D scanout, and presents damaged rectangles to the host virtual GPU (compositor.gpu_info()reports live scanout and present counts). - Exports of plans, recipes, projects, the guest builder and the collector: a caller that acts for its principal now calls
plans.difference,plans.apply,plans.rollbackandplans.generationson its own plans, with a stale or unconsented apply and a rollback with no earlier generation refused by an error record;recipes.register,recipes.build,recipes.cache_lookup,recipes.buildsandrecipes.realisations, where a second build of a recipe comes from the cache and a recipe of the inputs tree builder builds in the service;projects.load,projects.update, which gives the one changed line ofpins.lex, andprojects.pins;guest_builder.statusandguest_builder.disks_check; and the bounded spaces of the collector (space_open,record_append,records_read,spaces,space_verify,source_count,record_count), where a full audit space or a full forward queue refuses a record in place of a loss and a source never reads its own space. - The layout tree of
modus:layout: a window can describe its elements as layout boxes with sizes in pixels, a measured text, a percent of an ancestor or the sum of the children, and one solver gives each box its rectangle in whole logical pixels, with the room shared by strictness, alignment, clipping and scrolling; the package also keeps the state of each box across frames, gives the input of a box in one frame, and gives the colors and the spacing of an element by its role from the one table of the color tokens, which host tests check for contrast in the dark, light and high contrast appearances. - A font for the missing Greek letters, Cyrillic and Latin Extended-A. Noto Sans, as the subset "Noto Sans LGC" (87 172 bytes), is the last font of each fallback chain: every window and every cell draws the 49 Greek letters (Π and ρ too), the 96 basic Cyrillic letters (U+0400 to U+045F) and the 128 letters of Latin Extended-A (U+0100 to U+017F), and the compositor names no Greek or Cyrillic letter as missing on its log. A bold face draws these letters in the regular weight of Noto Sans.
- The assembler takes floating point, atomics and tables of addresses:
assemblenow takes the scalar SSE2 instructions (movss,movsd,movq,addsd,ucomisd,cvtsi2sd,cvttsd2siand the others) on%xmm0to%xmm15,xchgandlock cmpxchg, numeric local labels (1:,1f,1b), andquad label + offsetin the data, which the module rebases at its load. Socompileturns C withfloat,double,alloca, the atomic builtins and global tables of functions or of strings into a module that runs; a floating constant andlong doubleare still refused. - The C compiler takes floating constants:
compilenow reads decimal, scientific and hexadecimal floating constants (3.141592653589793,.5,2.5E+10,0x1.8p+1,1.5f) and gives each the nearestdoubleorfloat, so a C source with a constant of floating point is no longer refused. - Built-in per-view zoom in
modus:interfaceand live delegated service supervision inrootandconsole.frame_begininmodus:interfacenow handles independent per-viewCtrl++,Ctrl+-, andCtrl+0zoom automatically;roottracks and supervises all 8 delegated services (disk_processes,principals,devices,settings,powerbox,plans,recipes,projects) on stop; andconsoleadds thedelegated_services()table command. - The console reads a language tag into its record:
language("fr-CA")gives theLocalerecord of a BCP 47 tag in its canonical form, whichsettings.set_languages([language("fr-CA"), language("en")])takes, andlanguage()gives the first language of the principal. A refused tag names the byte of the subtag at fault and the reason. - The console shows the work of services for each connection:
work("console")gives one row for each connection of the console to a service, with the state of its work account. No service charges a work budget yet, so each row saysunaccounted, and another process than the console is refused with the reason. - The requested grants in the menu of the windows. The menu of the windows lists, under each window, each grant that its process asked for and that the principal allowed, with a button Revoke: a press on it, or Enter on the row, ends the grant at once with no console.
compositor.window_grants()lists the same grants andcompositor.revoke_grant(number)ends one.compositor.plan_diff_ask(name, added, removed)shows the difference of a plan on the trusted display, which the principal accepts or refuses whole. - Triangles of the WebGPU subset four pixels at a time: on the processor, the back end of the WebGPU subset computes the edge functions, the coverage with the top-left rule, the depth and the colors corrected for perspective of four adjacent pixels in one SSE2 register, with the same color bytes and depth values as the scalar form. The host tests compare the two forms on a cube in perspective, translucent triangles, shared edges, scissor rectangles and degenerate triangles.
- TPM pins and signed-policy commands, ahead of their indices: the TPM attestation contract now holds the payloads that pin the form of the record of the machine key and the current file of each named principal, refusing a downgrade from a sealed form to
MACHINEK, an older epoch or generation, a zero or mismatched digest and a damaged payload, and the exact commandsTPM2_PolicyAuthorizeandTPM2_HierarchyChangeAuthwith a strict read of their answers. The TPM service has the steps that use them; no command runs them yet. - Typed objects at the border of the storage service: the storage service now holds the border of a typed object for the owner of a store: it copies the object, checks its descriptions, its records and the description hash that the owner expects, and runs a derived forward migration or the checked backward migration of a rollback, which refuses the whole object (no clamp, no cut text, no byte written) when a value does not fit. Host tests run one stored type through three releases and back. No module declares a stored type yet, so no store migrates.
- Byte layouts of the other formats. The guides show the record of a ring, the error record, the context, the log record, the fault ring and each block of the data disk byte by byte, from the offsets of the compiler. A field of more than 8 rows, such as the 480 rows of the stores of the root block, is drawn folded, with the offsets of its first and its last row.
- The principals service holds a mirror of the principals: the root service starts
principalsbefore the start policy, within three starts, and keeps it told of each named principal, each lock and unlock, the machine passphrase, the whole set of rows of each disk grant table and each allow or revocation of a client key, with no wait in its loop. Aprincipalsthat stops is started again and gets the whole state again; a refusal is one line and changes no grant. - The assistive face of the compositor:
compositor.assistive_attach(nickname, kind)records a screen reader, a magnifier or a switch input that reads the semantic trees, and the bar shows a mark in the warning color with the wordassistiveand the nickname for each holder while it reads; several holders read at once, andassistive_detach,assistive_holders,assistive_magnifyandassistive_magnify_endcomplete the face. A conformance suite of host tests checks that hostile tables are refused with no fault, that an action that the element did not declare never runs, that a protected field publishes nothing of its value, the order of the utterances of a reader, and that a magnifier keeps the box of the focus in its view. - A light browser window:
start("browser")opens a resizable window with back, forward, an address field and the document origin of the page; the pages built into it (modus://welcome, modus://properties, modus://guide, modus://forms) are HTML and CSS that the contract html_css parses, styles, lays out and paints into the draw table, with links, a history of 32 pages, a form whose values come back in the query, and a refused read of the state of another document origin. The window has no grant but its window: an address of HTTP or HTTPS shows that it has no network. - Console record-stream short forms (
keep,audit,merge) and live root role connection accounting. Addedkeep(stream),audit(service), andmerge(a, b)wiring list short-form commands inconsole;rootnow resolves role names onConnect/Disconnectthroughrole_target_resolveand tracks per-connection work budgets, supervision generations, and service time attribution viaconnection_accounts.odin. - The debugger finds the last input that wrote some bytes.
watch_back(address, size)in the console, anddebugger.watch_back(address, size, before_point), read the input history of the caller and give the input point whose point copy, shared page or kernel copy last wrote a byte of the range, with the values written, the instruction of the thread there, and the checkpoint before it with the input points of a replay to that write. A damaged history is refused as a whole, and a range with no such write is the errorAbsent,Recorded_Writes. A write by an instruction of the process itself is not an input, so it is not in the history. - Guest processors, long mode and injected events.
Guest_Runtakes the index of one of four guest processors of a guest, so that several threads run one guest at once. Its record carriescr0,cr3,cr4andefer, a load of real, protected or long mode, and an event that the kernel delivers at the entry.Memory_Mapmaps guest memory at the guest physical address 0 (At_Address_Zero), and guest memory made withWrite,ExecuteandNo_Accessswitches betweenWriteandExecutewithMemory_Protectand the process handle. The count of kernel operations does not change. - An HTML parser that fuzz targets try to break. The fuzz target
html_cssgives any page of up to 16 KiB to the parser, the style sheet and the layout of the light browser core, and checks the bounds and the links of the tree and of the boxes, and that the border of the drawing takes each draw record of the paint. The fuzz targetsoftware_machineruns any x86-64 code on the software processor of the browser machine, and checks that a fault changes no register and no byte, and that no step writes a page that the user cannot write. - The wire borders of TLS and QUIC in the module
tls_tcp. The module now reads and writes the header of a TLS 1.3 record, reads and writes the variable-length integers of QUIC, and reads the form and the version of a QUIC packet header, over bytes and tables of the caller. Each refusal gives an error record and writes no byte: an unknown content type, a legacy version other than 0x0303, a record longer than 16 640 bytes, a negative integer or one over 2^62 - 1, and a short buffer. - Unforgeable trusted-display Powerbox grant dialog and Wide-Grant bar mark in
compositor. Addedpowerbox_dialog.odinrendering a modal trusted grant dialog (keyboardEnter/Escape) above all windows, an unforgeableAGENT GRANTindicator badge in the system bar with instantCtrl+Shift+Escaperevocation, and principal-gatedcompositor.powerbox_askandcompositor.wide_grant_indicatorexports. - Tray widgets on the bar: a button of the control center and a bell left of the clock, and the clock itself, open a card from the bar. The control center moves the bar and turns the magnifier on or off with a press on a tile, says the appearance and the display in force, and starts
settings,monitor,browserandedit. The bell lists the last 6 notifications withClear all, and a coral square on it says that the list is not empty. The clock opens the month of today, with the time zone and the time since the boot. One card shows at a time, Escape or a press outside closes it, the keys of the bar reach each part, andcompositor.tray_widget_open(widget)opens one from the console. - The audit spaces of the collector, served to the principal only. The collector refuses each view of a space to its source: the source cannot read its records, read its state with the new
space_stats, find it inspacesor set its terms.records_readtakes a limit of 1 to 64 records after a serial, and the newact_records_readgives the act records of a wide grant by grant and by a range of sequences. The counts and the chain check of the act records now refuse a caller that does not act for the principal. - The record and the replay of one thread at its kernel entries. A replay now also checks how its process stops: a process that stops where its input history goes on, or a history that ended for another reason than the stop of the process, is a divergence at that input point. Each divergence names its exact input point, also at a damaged or missing record, and
replay_status()shows what differed, the value of the history, the value of the replay, and the instruction address of the record there. The machine test of the debugger records a process and replays it to the same end. - Shared writers of a recorded process. A process that shares a page with Write with another process is recorded and replayed: the input history names each such mapping, and a replay maps private pages at the same address, so it needs no peer and reads, at each input point, the bytes that the peer wrote during the record. The machine test of the debugger records a process while another one writes their shared page each round, replays the history with no writer to the same end, and replays a copy with one changed byte to its first divergence.
- chibicc builds itself to the same bytes.
modustool c-self-hostcompiles the 14 C sources of the C compiler withchibiccbuilt by clang, makes a module of their texts with the assembler of modus, runs that module on the host to compile the same sources again, and checks that the two modules have one BLAKE3 hash (354 972 bytes, one run). The assembler takes a program of several sources as one text, with the new directivesunit,globalandalign, and the instructionud2; the output ofcompilenow starts withunit, givesgloballines, and treats along doubleas adouble. - A Linux machine for the guest builder.
Guest_Registerscarries the 64-bit system state of a guest processor (star,lstar,sfmask,fs_base,gs_base,kernel_gs_base; 240 bytes), andGuest_Runrefuses an address that is not canonical there. The new process-side machine ofmodus:contract/guest_osloads a bzImage or a vmlinux by the 64-bit boot protocol of Linux and gives it a serial port, a timer, a read-only virtio disk of inputs, a writable virtio disk of outputs and a virtio console, with no network. Thebuildexport ofguest_builderruns it and reports the BLAKE3 hash of the output disk. Checked by host tests only. - Window minimize/maximize/resize grip, CSD borderless mode, urgency-badged notifications, positionable taskbar/tray contract, and filterable fuzzy context menu. Added minimize/maximize/close title-bar buttons, bottom-right resize triangle grip, optional client-side decorations (
compositor.set_decoration), urgency icons and balanced padding on notifications,modus:contract/desktop_shell(Top/Bottom/Left/Right bar, window grouping, system tray), and the reusable filterable fuzzy right-click menuinterface.Context_Menu_State. - Vulkan commands in the Venus format of Mesa, and a Venus context on the virtual GPU.
venus_vulkannow writes and reads the real Venus wire of Mesa and virglrenderer (the instance, the device and its queue, buffers, memory, command pools and buffers, copies, clears, render passes, draws, submits and the Venus ring), and the GPU device service creates a Venus context with its ring blob on a device that carries Venus, takes client streams withVenus_Submit, and keeps its 2D scanout unchanged on a device that does not. The VirtIO-GPU contract now has the command words of the Linux header: the blob commands are0x010Cand0x010D, map and unmap are0x0208and0x0209, and theSUBMIT_3Dheader is 32 bytes. - The kernel compiles for WebAssembly. The kernel builds for
freestanding_wasm64p32from the same source as for x86-64: an architecture layer gives the instructions, the entries and the return to a process on the software processor, and its only imports are the procedures of the page. It is the base of a browser machine; it does not run modus in a page yet. - Machines talk over the streams of remote:
remotenow answers the frames of paired machines on its QUIC streams, beside the calls of the host, chosen by the first word of each stream. A machine pairs by a one-use code that ends after ten minutes (a wrong code ends the pairing on both machines); a paired machine then reaches only the uses that the plan of the principal gives it. It fetches an object by its BLAKE3 hash and keeps it only when its bytes hash to it, presents a signed grant of another principal (one day at most, or a revocation list), exchanges a store with a three-way merge that keeps both writes of an object as a conflict value until the principal resolves it once (a lost reply and a write during the exchange lose nothing), calls a role held on the other machine (a broken link or a faulty holder gives Unknown_Outcome, never a false refusal), and deposits sealed datagrams on a relay machine for the one receiver of its route, which sees only a routing token and the sealed bytes. - Plans give the roles of the machine. When a principal accepts a plan of principal 0 on the trusted display,
plansgives the root service the whole set of its role holders with the root ring commandPlan_Rolesbefore it commits, and the root service takes the set whole or refuses it whole;plans.rollback()gives back the holders of the generation that it selects.plans,recipesandprojectsnow start with their own private store, andplanswith Connect to the trusted display and the start grantPlans. - The kernel for WebAssembly copies process memory and keeps time: on a browser machine, the copy of the kernel with the memory of a process walks the page table of the process with the checks of a user access (present, user, write) on each page before the first byte moves, and a controller in software gives each processor its interrupts and a timer on the clock of the page. The kernel for WebAssembly exports only
entry,modus_processor_loop_runand its memory, and in Node a boot record with a memory map starts it to the start of the root service. - SQLite, Lua and zstd as modules over the thin libc: the real SQLite 3.54.1, Lua 5.4.7 and zstd 1.5.7, fetched at the hashes of their recipes, now build into modules with no import and no instruction that reaches the host (1 067 905, 233 497 and 602 137 bytes), and a host test runs SQL with a rollback and
PRAGMA integrity_check, Lua scripts with coroutines, metamethods andpcall, and zstd frames that the zstd of the host reads. The thin libc gainsexp,log,log2,log10,powand the circular functions, each within one unit in the last place of the C library of the host (two fortan). - Multi-unit C compilation and program-tier assembly in system modules.
c_compiler.compile_unitcompiles named translation units with caller-supplied headers and export lists into an on-demand arena, andassemble/assemble.assemble_programdynamically scale up to the program tier (512 KiB code, 16,384 labels, 4 MiB text) and return the BLAKE3 hash of the built module. - The kernel of a browser machine starts its root service from a page:
modustool browser-machinebuilds the kernel for WebAssembly, refuses a file whose imports and exports are not the border of the page, and writes a page that runs it in a worker, with the serial port, the PS/2 keyboard and mouse, the clock and a canvas of 1280 × 800.modustool browser-machine bootstarts the same host in Node 24 and prints the serial port: the kernel reacheskernel: okand runs the first thread of the root service on the software processor. - The audit spaces of the collector in its store. The collector writes each record of an audit space into its private store, as audit segments of 16 records chained by their BLAKE3 hash, before it keeps or forwards that record; a record that the store refuses is neither kept nor forwarded. A start of the collector reads each audit space back, checks each audit segment and the chain between them, goes on with the next serial, and refuses each step with
Store_Damagedwhen one byte of the store changed. - The light browser parses HTML after the WHATWG and keeps each origin apart: the parser follows the insertion modes of the WHATWG with the adoption agency algorithm, tables with foster parenting, comments, doctypes and every numeric character reference, in fixed pools; the CSS engine reads descendant and child selectors with the specificity of the standard, borders, text-align and table layout; an address of HTTP or HTTPS shows the request that the worker of its origin writes; and the storage, the cookies, the form values and the cached style sheet of each origin cross a border of messages that refuses every request for the state of another origin.
- A recorded process maps memory that it receives after its start: a process that is recorded can now map a ring or a window surface that another process gives it, in place of a refusal. The input history holds the mapping right after its
Memory_Map, with its first bytes and each later change by the peer, and a replay maps private pages at the same address, so the console and a window process can be recorded and replayed alone. A mapping that a replay could not hold (more than 96 stand-in mappings or 96 pages, a second mapping of the same object,Execute) gives itsMemory_Mapa status. - A frozen time stamp counter in a guest.
rdtscandrdtscpof a guest exit to its process as an exitOther(codes 0x6E and 0x87) with the next instruction, and the machine of a Linux guest answers them from its virtual clock, so a build in a guest reads no time of the machine and no processor number. - The interrupt shadow of a guest in its record.
Guest_Registerscarriesinterrupt_shadow(0 or 1) in and out, andGuest_Runrefuses an external interrupt or the non-maskable interrupt to inject while it is 1; the machine of a Linux guest waits for the end of the shadow, so no interrupt of a modelled device comes one instruction early afterstiormov ss. - The record output
logandlog.followby name in the console.log.follow |> where(level = Warning)draws the warnings of the whole log as they come and never shows the rows of the console itself, so a follow cannot feed on its own lines;first(n)and Escape end it.wire(server.log, reader.input)names the log of the module thatstartstarts, a typed name whose owner has more than 31 bytes is refused, andstartrefuses a list row that repeats an earlier row, whose reader then takes each record twice. - The pairs of the collector, and its store: a wiring list gives
collector.forwardone ring for each source that asks to forward, named by the new fieldpaired_rowof its row, and the collector keeps each record of a source in its audit space, in its private store, before the ring of its pair receives it; a full space or a full ring holds the writer, and no record is lost. A pair has the paceAlways_Holds_Writer, and a consumer that does not read, or a pair that never comes, holds its own source only, never the forward of the other sources. The collector starts on demand with the grantsServeandStore, so its audit spaces live in a store on the machine. - A browser machine takes keys. A process with ports runs
inandouton the software processor, checked against the port map of its processor, and the PS/2 controller of the page raises line 1 for the keyboard and line 12 for the mouse. So the input service runs, andmodustool browser-machine boottypeshelp()on the PS/2 keyboard once the machine is usable and requires the answer of the console in Node. - Plans/Recipes/Projects/Display role conformance suite, trusted Powerbox Store Picker, and delegated stop notice ring. Added canonical role contracts and conformance tests for
Plans,Recipes,Projects,Display, andPowerboxinmodus:contract/role_contract, wired the trusted Store Picker dialog (compositor.powerbox_pick_store) andcompositor.bar_positionexport intocompositor, and added bounded stop-notice recording inroot/delegated_services.odin. - The plan of principal 0 at the start. The root service starts
plansbefore the start policy and waits, within the hang bound, until it gives the roles of the current plan of principal 0, so the role holders that principal 0 applied hold from the first start of the machine. A machine with no data disk and a rescue start with no wait; a stored plan that a newer boot image cannot hold, or a damaged store, keeps the role holders of the image with one line, and the nextplans.applyis no longer refused. - The outbound link and the distributed builder:
remoteopens a QUIC link to a paired machine that pins its identity key, and sends it requests for objects, role calls, store offers and the steps of a pairing, each of which ends Answered, Refused, Unknown_Outcome or Unreachable; on that link, a graph of up to 32 recipes is built across paired builders and caches, each realisation checked by its signer and each output byte by its hash, a lost builder replaced by the next one or by this machine, and the mode Verify refuses two output hashes with Determinism_Mismatch. Checked by host tests only. - Mesa Venus Vulkan pipeline objects, barriers, and draw-table translation.
modus:contract/venus_vulkannow encodes and decodesvkCreateImage,vkBindImageMemory,vkCreateImageView,vkCreateRenderPass,vkCreateFramebuffer,vkCreateShaderModule,vkCreatePipelineLayout,vkCreateGraphicsPipelines,vkCmdPipelineBarrier,vkCmdCopyImageToBuffer,vkCmdUpdateBuffer,vkCmdPushConstantsandvkCmdSetViewport, with the replies of the new create commands. A 2D draw table becomes, through the WebGPU subset, the Venus stream of one frame: the upload of its vertices, the layout transitions of the image, the render pass with a scissor for each clip, and the readback of the image. The drawing module gives this stream with the new exportdraw_table_to_venus_20; the draw into pixels does not change. - The Linux boot of the guest builder, checked on a real kernel and on a program of 64 bits: the guest builder places an initial archive beside the kernel, starts Linux with
nokaslrandnolapic, decodesmovsxon a device, and answerswbinvdand the registersPAT,MTRRCAP,MTRRdefType,MISC_ENABLEand the time stamp counter with no fault. Host tests load the bzImage of Nixpkgs (Linux 6.18, protocol 2.15) by the boot protocol, and run a whole build of a program of 64 bits through the loop of the builder, from its read-only input disk to the tree hash of its output disk; a write to the input disk refuses the build. - The console without a desktop, live. A boot image with no compositor now runs the console in a renderer that draws no window: serial_terminal on the second serial port (COM2, so the log of the kernel on COM1 never mixes with it), or grid_terminal on the screen, with the keys of the PS/2 keyboard. The root service chooses it from the modules of the image and the screen, and a desktop image runs as before.
modustool browser-machine consolewrites a console page and its signed console image, with no compositor, drawing module or font; the host of the browser machine plays COM2. - An initial archive in the spec of a guest build. The spec of a guest build names a cpio initial archive by its BLAKE3 hash and its size, and the export
buildofguest_buildertakes its bytes: the builder copies them to their place in the memory of the guest, checks the hash on that copy before the boot, and refuses a tampered, cut or oversized archive before the guest runs. A build can now run theinitof its recipe with a kernel of Nixpkgs that carries none. The wire of the spec is version 2, 3240 bytes. - The exchange of a Venus command and its reply through the ring.
venus_vulkansends one command with the reply flag and its seek of the reply stream in one ring write, and reads the reply once the head of the renderer passes it, withvenus_ring_submit_commandandvenus_ring_poll_reply. It refuses a full reply stream, a fatal ring and a reply that it already read, and the decoder of the physical device properties refuses a name that is not UTF-8. Host tests only: no process maps the memory of the device yet. - Live VirtIO-GPU 1.2 PCI discovery and on-demand export serving for
plans,recipes,projects,collector, andpowerbox.rootnow scans PCI bus 0 for VirtIO-GPU (0x1AF4:0x1050) and startsgpu_deviceautomatically at boot, and startsplans,recipes,projects,collector, andpowerboxon demand with livesystem.service_openexport rings callable directly fromconsoleandremote. - Live VirtIO-GPU scanout bridge in
compositorand one-stepcompile_ccommand inconsole.rootnow hands the VirtIO-GPU client ring tocompositor(GRANT_GPU_RING), which probesDisplay_InfoandProbe_Venus, attaches its framebuffer, flushesPresent_Rect, and exposescompositor.gpu_info();consoleaddscompile_c(name, source)chainingc_compiler(chibicc),assemble, andisolate_memoryin one Lex call. - Pairing state in the remote service:
remotenow holds the state of pairing by a one-use code (CPace over Ristretto255, bound to the connection and to both machine identity keys), a bounded table of paired machines, the newest signed machine list with removal of each machine that a newer list drops, the check of signed grants (one day at most without a revocation list), and a store that keeps an object from a paired machine only when its bytes hash to the requested hash. - The console page runs its machine in a worker, with the trust of its image, and reads an HTTPS object cache.
browser_machine_console.htmlstarts the machine in the worker of the browser machine, so the page keeps its scroll and its keys while the kernel runs, and it gives the root service the hash of the description ofconsole.imagefromconsole.image.trust. With?cache=<address>, the host fetches blobs and realisations by hash from that object cache over HTTPS with no relay, and the system checks each byte by its BLAKE3 hash and each realisation by its Ed25519 signer; the device through which a process asks for an object comes later. - The console page drawn with the document of the browser. The console image of the browser machine now runs dom_terminal, which writes one JSON line for each change of the terminal on the second serial port, and the console page draws it with plain elements: output lines that the browser selects, copies and wraps, the edit line with its colors of code and a caret, the hint of the call with its parameter marked, a status bar, and a completion list that a click chooses. A dark and a light theme color the whole output again at once. A paste types its text. The page needs no canvas and no library. serial_terminal on the serial port and grid_terminal on the screen stay as they are.
Changed
- The root service writes log facts: each start and each stop of a process, a connection made or ended (for a client key of
remotetoo), a grant revoked or given to debug, and the start of a device service are records of fields, whose sentences are those of before. In the console,log.records(0) |> facts(root.Process_Stopped) |> where(outcome = Done)gives the clean stops of the processes, with the stop cause and the stop outcome as columns, and the window of the log writes each sentence. The two new contract enumsStop_CauseandStop_Outcomename the members in a condition; a sentence writes the words of a stop, "itself, done". - The compositor and the windows write log facts: a surface made, a window shown, in front or closed, the events that a window lost, a refused word of a ring and the element lines of each window and of the palette are records of fields, whose sentences are those of before. In the console,
log.records(0) |> facts(compositor.Window_In_Front) |> where(window = "console")gives each time that the console came to the front, and a machine test presses an element from the fields of its last element line. The module file of a process lists only the fact types that its code writes. - The storage service and the block service write log facts: a disk that does not answer, the read back of a commit and its root, a check of a commit that fails, the open of the disk with its damaged blocks, a share, a store at its limit, the erase of versions, the stop of the removal of a tree and the commit of range writes are records of fields, whose sentences are those of before. In the console,
log.records(0) |> facts(storage_service.Disk_Opened) |> where(wrong > 0)gives each open of the disk that found blocks with a wrong check. - The device services, the network service, remote and remote_display write log facts: a device found, a device that does not answer, a refused request, record, word or extend, the bytes and records that the input service lost, an endpoint made and ended, a client key or a viewer key that a handshake refuses or takes, a stream that a bound resets, and a read of the entropy device that the root service counts as refused are records of fields, whose sentences are those of before. In the console,
log.records(0) |> facts(remote_service.Client_Key_Refused)gives each client key that no principal allowed, andlog.records(0) |> facts(network_service.Endpoint_Ended) |> where(owner = "server")the end of each endpoint ofserver. - The copy of the cryptography of Odin has its own package names. Each package of
support/cryptographydeclares the name of its origin aftermodus_(package modus_sha2,package modus__subtle), so a host program imports both the copy andcore:cryptoin one build. The imports and the calls do not change: the code calls a package by the last element of its import path.modustool cryptography-originchecks the new package line of each taken file as a listed change. - A shorter serial line for a log fact. The serial port writes a fact as
#<module tag>:<key tag> <values>: the first 4 bytes of the module hash, the first 3 bytes of the fact key, and each value byte that is not zero as two hexadecimal digits, with each run of zero bytes as one letter fromg(1 byte) toz(20 bytes). On the facts of the logs of one full check, the lines take 79 713 bytes in place of 155 820, and on the machinesquic,tcpandremote_displaythey take 0.94 to 0.98 times the bytes of the same lines as text, in place of 1.9 times. The build refuses two module files with one module tag and two fact types of one module with one key tag. - Machine test parts as derivations. The check of the flake runs each test part in a derivation of its own, on the test inputs of a whole build named by the hash of their bytes, so a change of a document or of a host test runs no machine again and Nix takes each part from the store.
modustool screenshotsprints how many parts Nix took from the store and how many ran, and runs at most one part for each four processors.modustool part_cacheproves the cache: after a change of an intent file or of a host test, each test part has the same derivation. A change of the sources of the tool or of the system still runs every part. Each part names the files of the build that it reads, and the whole build refuses, before any machine starts, a part that reads a file that its inputs lack. The test of the debug objects against the linked files moved from the parthost_modulestomodustool check. - The demonstrations from address_space to heron write log facts: their cases, their measures and their failures are now records of fields with the sentence of before, so
facts(disk.Run_Measured)orfacts(debugged.Breakpoints_Removed)in the console gives their values as columns. The measure record and the print of a measure run read the sentence of a measured fact, as they read a text line. - The test modules write log facts: each line of the test modules is a record of fields, but the record of
log_readerand of its children, whose text the test reads back, the two lines that measure the write of a text, the long text ofprobe, and three lines that only a copy ofvisitorbuilt outside the sources writes. Each case ofhierarchyandrangesis a fact type of its own whose last field is its verdict, so a case that fails now ends with "WRONG" (hierarchy: a tree cannot move inside itself: WRONG), andwhere(verdict = "WRONG")keeps the failed cases. A status of the kernel, of the storage service, of the block service and of a call, an error kind, an object kind and a record form that a line wrote as a number are now the names of their members (debug_target: the second thread did not start: status No_Slot).log_readeralso checks a fact of several records through the kernel: a fact of 145 value bytes and one at the bound of a call read back record by record and joined whole, and a child whose log limit refuses whole each fact of more records than it has left. - unlock writes log facts: each line of unlock is a record of fields, whose sentence is the line of before, the lines with no value too. A status of a kernel operation or of the root service is written by the name of its member ("status No_Right", where the line said "status 7"); an erase of versions that the store refused writes the fields of its error record ("kind Too_Long, unit Bytes, ..."), where the line wrote the sentence of the console. In the console,
log.records(0) |> facts(unlock.Passphrase_Wrong_Counted_By_Tpm) |> where(principal = 1)gives each wrong passphrase of principal 1 that the TPM counted. - The console evaluates a line with the evaluator of Lex: each part of a line is computed once, its calls run in the order of the data as before, and an evaluation stops past a budget of 1048576 steps with the column where it stopped. The remainder of the least integer by
-1is now 0, where the console refused it as a division that does not fit. - The other lines of the root service are log facts. The root service writes each of its lines as a log fact, the lines with no value too: the budgets and the mappings of a start, the devices, the debugging, the resources, the replacements, the refusals of a start from the disk, the disk grants of a nickname, the disk grant tables, the client keys of remote, the principals, the trust of the boot and the start policy, so a reader filters them by field, as
log.records(0) |> facts(root.Table_Written) |> where(principal = 0). A status of the kernel names its member ("status No_Memory", not "status 7"), the refusal of the entropy service, of the network service and of the storage service gives the fields of its error record, the machine parts page writes one line for each part, and a load that the loader refuses gives a line of the start that failed, then a fact of the fields of its stage (root.Load_Find_Failedand the others), in place of the sentence of the loader. No line of the root service is text any more. - The demonstrations from imports to workers write log facts. Each of their lines is now a record of fields, so
facts()andwhere()in the console filter them by field: for examplefacts(net.Round_Trip_Measured),facts(kernel_events.Operations_Counted) |> where(verdict = "WRONG"),facts(scheduler.Strategy_Shares_Measured). The measure record, its page and the checks of a measure run read the sentence of a fact as they read a line. Most sentences stay as before; these changed. A status is written by its name wherelocks,rights,toneand the call host oftableswrote its number, a status of an isolated call oftablesby its name too, andtoneandnetwrite the kind of an error record by its name. A share ofscheduler, the times of a call and of a bind ofimportsand the rate of the generator ofrandomnesshave two decimals (12.34 %), in the log and in the window ofrandomness. A refusal ofnet,notesandtableswrites its error record as its seven fields (kind No_Grant, unit Endpoint, operation 2, ...). A long line is several lines: each strategy ofscheduler(its wakes, then its shares), its weight limit and the rounds under it, the counts of the server ofquic_echo, the costs of the rules ofkernel_events, the lock waits oflocks(one line for each lock) and its frame caches (one line for each processor). A child ofkernel_events, a process of the share policy ofschedulerand the call host oftablesthat did not start write a fact of the status and of the budgets, then a fact of the stage of the load error, with the names and the hash heads of the modules that it concerns (facts(tables.Call_Host_Load_Find_Failed)). - The windows of the system write log facts. The compositor, the console, the terminal,
edit,manual,settings,inspect,debugger_window,monitorandlogwrite each of their lines as a log fact, and a reader filters them by field, aslog.records(0) |> facts(settings_process.Values_Changed) |> where(font = "spleen"). Most sentences stay as they were; a line of the console, a debug place, a link of the manual and the text of a field of the palette are text views, whole up to the area of a fact. A status is written by the name of its member ("status Bad_Handle"), an error record by its fields ("kind Too_Long, unit Bytes, operation 3, ..."), the problem of a pointer theme file by the names of its part, its field and its rule, the menu of the windows as one line for each window, the list of the palette as its count and one line for each of its first rows, and the stop thatinspectshows as one line for the fault and one for each frame of the stack. - The facts of the other system modules. The debugger, the start policy, the module file service, the date service, the call host, the windows
bootandpages,assembleandc_compilerwrite their lines as log facts, and so do the lines that the TPM, storage, sound, entropy, frame, block, input and network services,remoteandremote_displaystill wrote as text: the stop of a service with its failure, the lines with no value, the response codes of the TPM, the public keys and the listen ports, the measures, and one fact for each fault of a debug object. A reader filters them by field, for examplelog.records(0) |> facts(debugger.Thread_Stopped) |> where(thread = 0). Each sentence is the line of before, but for four forms: a status of the kernel or of a client of the storage service is written by the name of its member (status No_Memory, notstatus 4), a refusal of the writer of module files inassembletoo (refusal Name_Twice, notrefusal 3); a refused request ofremote, a refusal of the block service and a refusal of the store ofmodule_fileswrite the values of their error record (kind Too_Small, unit Bytes, operation 0, argument 0, value 20, limit 104, found 0) in place of its sentence; and a load error of the call host is one fact of its stage, with the names, the heads of the hashes and what failed (host: cannot load the module: the kernel refused to map probe (1a2b3c4d…): status No_Memory). The path of a request ofmodule_filesis a text view of its fact, whole up to its 200 bytes. A line of the diagnostic ofc_compilerlonger than 143 bytes is one fact for each piece of 143 bytes. No line of these modules stays text. columnstakes the names of fields:columns(t, slot, name)in place ofcolumns(t, "slot name"). Each name is a field of the record, checked before the line runs when the console knows the record on the left of|>, colored as a field and offered by the completion; a text of names is no longer taken.- Every line of the demonstrations from address_space to heron is a log fact, but the sentences of the error records that the process
errorsshows: a line with no value, an address, a time with one decimal and the head of a hash are facts now. Some sentences changed: a refusal ofdisk,fetchandaddress_spacewrites its error record as fields (kind Out_Of_Range, unit Blocks, operation 3, ...), a status that a failure wrote as its number writes the name of its member, the times in tenths of a nanosecond and the rates offetchhave two decimals, the instruction sets ofextended_stateare three lines, and its parts of a save are one line each. - The access records of
serverare a record output, and a slow reader slows or loses with a count:serverwrites the record of each request into its record outputrequests, which a reader wires, in place of a line of the log with a limit of 100 in each second. In the console, afterconnect("server"),server.requests |> where(status = 404) |> first(5)gives the requests of the status 404 from the next one on, and "joined after N records" counts those before.servernever waits for a reader of the console: a full ring refuses the next records withFull, andstream_counts(server.requests)now saysheldbesidewritten,discardedandrefused: the writes that a full ring held until it had room, which a write that then gaveFullcounts in both. It also saysrings_past_gap: the readers whose gap reached its largest count, whose ring the writer closed. On a ring with a condition, a gap counts 2^31 − 1 records at most, so a reader always tells a record ahead from one behind. A reader wired with the paceAlways_Holds_Writerholds the server and loses nothing; one wired with the paceNever_Holds_Writerreads a gap record with the exact count of the records that it lost, and the other readers are not touched. The log has no access record ofserverany more. - The desktop at the scale factor. The desktop of the screen of 1920 × 1080 is drawn at 1.25 by default, a logical screen of 1536 × 864, and at 1.375 with
settings.set(scale = .eleven_eighths)or the new row of the settings window: the windows, the bar, the menus, the palette, the text and the pointer, each edge rounded to the nearest pixel of the screen; a scale from 1.5 to 2 is refused withOut_Of_Rangeuntil each window fits it. At a change of the scale each window lets its surface go and makes one at the scale that the compositor names, from its own budget; the compositor answers each request, a resize too (a refused one leaves the window at the size that it shows, with a line), never loses an answer, refuses a picture of a surface that it does not hold, and cuts each surface to its window, so no window draws over another between two scales.Surface_Createnames the logical size and the scale of the surface, and a page that the read refuses keeps the scale in force. The pointer and the places of the compositor are logical pixels; a window that draws by hand shows a picture of its logical size; the text size of a draw record is at most 128 logical pixels (version 19, the exportsdamage_of_draw_table_19andexecute_draw_table_in_rectangles_19); the window pages are counted at 1.375, and each module with a window states its window, so the least budget stays 2048 pages. - A failed machine test part prints its whole log. The tool prints each line of the log of the machine that failed, with its facts written as sentences, in place of its last 25 raw lines;
nix logof the part keeps it whole after the check. - Enum parameters: one description for the completion, the check and the palette: an export takes a value of a closed set as an enum, and its module file (version 6) names the members and the getter of the value in use. The console completes the members,
.french, refuses a wrong one at its place before the call, and the palette shows one row of buttons for each such parameter, with the member in use marked.settings.settakes one optional argument for each setting,settings.set(keyboard_layout = .french), each setting has its getter,settings.font(), and the time zone hassettings.set_time_zoneandsettings.time_zone. The commandsetting,settings.getand the setting entries of the palette are gone; the rows of the settings appear afterconnect("settings"). - Property 23: a role is a contract, and its implementation is replaceable. The display, the console, the storage and each other role of the system become a typed contract that the root service gives to one process, and no other process depends on the module that fills it. The designs of the roles, of their contracts and of the split of the root service into a core and delegated services are written; nothing of them is built yet.
- Every input of a process passes through a channel that can be recorded. Property 24 is a rule of the system: a process learns nothing from outside its own code except through a channel that the kernel can record, so a replay can run one process again alone with the same inputs. The design names the four exceptions (a process that holds a device, the root service, a process that runs a guest, and the few instructions that no fault catches), and the cycle counter and cpuid, which a process reads with no fault today, become channels that the kernel traps while a process is recorded.
- Take the gold, leave the debt. Property 25 is a rule of the system: modus takes the proven algorithms, structures, standards and lessons of other systems, leaves their compatibility layers, text formats and ambient rights, and wires each idea where its foundations give it more. Each reuse names its source and its first user, a rewritten algorithm keeps a reference, a fuzz test and a measure, code is reused as it is when a rewrite adds nothing, and an idea that contradicts another property stays out.
- The check of a text reads sixteen bytes at a time.
text_valid, which each border calls on a text from another party, now checks UTF-8 with no control character with the algorithm of Keiser and Lemire, with the same answer for every input. On the host, with the target of a module and a load of 1.7: 5949 MiB/s in place of 341 MiB/s on 1 MiB of French and CJK text, and 17742 MiB/s in place of 480 MiB/s on 1 MiB of ASCII. - Two terms renamed: start grant set and stint. What the root service gives a process at its start is now a start grant set (the table
start_grant_sets, insrc/modules/system/root/start_grant_sets.odin), so "role" means only a contract. The time that a thread runs on a processor from its pick until it leaves is now a stint, so "turn" means only the unit of angle: the guides, the log lines of the root service and ofscheduler, and the view ofscheduleruse the new words. - The kernel is named
modulus. The project now uses three names across its documentation and glossary:modusfor the operating system,modulusfor the kernel, andlexfor the language and runtime. - Delegated wiring service. Record-stream wiring now runs in a separate
wiringsystem service holding only attenuated grants (read-only boot image,Spend-only per-asker child wiring budgets,Give-only process tokens, and wiring rings) and consumingProcess_Stop_Noticerecords from the root core'sstopsoutput. A fault in wiring validation or state stopswiringalone rather than the root service. - The two source libraries: the public library and the internal parts. The repository now separates the public library
modus:(src/library/modus, includingcontract/andmodus:cryptography_primitives), the internal partsinternal:(src/library/internal, refused by the compiler in the kernel and in outside modules), and the kernel source librarymodulus:(src/modulus), so each source library name matches its folder name. - A palette with any count of entries. The palette provider protocol (version 8) replaces the fixed 256-entry cap with a header carrying
entry_countandbyte_lengthover a memory object sized for the actual entries, growing on demand throughOutcome.Table_Replaced. The palette ranks any count of entries off the main thread with SIMD fuzzy matching and frecency, and draws only the visible viewport window in O(visible rows) per frame. - The SipHash of the tool from
core:crypto. Fact key calculation inmodustoolnow callscore:crypto/siphashdirectly in place of its hand-rolled SipHash-2-4 implementation, producing identical fact keys. - One QUIC server of the services.
remote,remote_display, andquic_echonow share one freestanding support package (modus:quic_server) for the datagram endpoint, held-command queue, validation tags, and QUIC server exchange loop, replacing three duplicated copies. - Single-writer settings page and delegated principals service. Moved appearance day-edge scheduling and date-page wakeups out of the root service into
settingsso the shared settings page has one writer, and added the freestanding delegatedprincipalsservice and pureprincipals_corestate machine for principal sessions, disk grant tables, remote client keys, and principal 0 start policy choices. - The records of the states of Thread_Control. Every
Bad_Staterefusal ofThread_Controlnow returns a specific error record (Absent,State,Over_Limit, orObject_Sharedwith exact unit and argument) instead of genericRefused, naming missing threads or processes, stopped targets, unheld threads, active recording, or exhausted stop counts while respecting handleReadrights. - A word in place of the enum fields that are left. The remaining shared-record enum fields (
Event_Rule.kind,date.Page.source,remote.Request.kind,module.Function.parameter_directions,module.Described.direction,module.Load_Errorstage/error/difference, andboot_infomemory kind, pixel format, verifier, signing key kind, and measure state) are now raw unsigned words read through strictenum_word.member_of_wordborders. - A faster switch between threads. Each processor now tracks the thread whose x87, SSE, and AVX registers it last saved via
modulus:extended_switchand skipsxrstor/fxrstorwhen switching back to the same unmodified thread on the same processor, while invalidating on guest runs,Thread_Controlwrites, teardown, and cross-processor migration. - The host tests of the check in the measure record.
modustool checknow counts every passing host test across all host test folders into the check total written todocs/measures/measures.txt, so the measure record and site show the count of host tests beside the machine tests. - The roles of the device classes.
rootnow resolves PCI vendor/device identities throughroot_delegation.Device_Identity_Tableinto closedDevice_Class_Rolevalues and maps system roles to holder module names through a central role-holder table instead of hardcoding VirtIO device IDs beside module names. - Core service resolution by role in the root service.
rootnow resolvesDisplay,Input,Terminal,Storage, andNetworkholders throughrole_holder_nameandis_role_holderinstead of hardcoded module names across startup, connections, and disk-process loading. - Fresh bytes pages for device services, TPM, input, and terminals. The root service now maps a fresh-bytes entropy page into device services, the TPM service (also resolved by
Role.Tpm),input, and everyterminal, anddate.zone_offset_seconds_readuses.Acquireload ordering. - Start policy, network plan endpoints, and console palette provider resolved by role.
rootnow resolvesStart_PolicyandRemote_Displayby role, supports plan-supplied network endpoint rules viaplan_endpoint_set, wiressupervisiongeneration advancement andwork_budgetchecks intorole_holders.odin, andcompositorraises the active palette provider window instead of hardcodingconsole. - Live kernel fault-isolation hooks, sound mixer/capture/drift wiring, per-endpoint network RX queues, encrypted storage page wiring, test-free release filter, and tagged-union scenario steps. Wired
kernel_fault_isolationandserial_ringintosrc/modulus,sound_mixerintosound, per-endpoint RX intonetwork,store_cryptointostorage, and added test-free release filtering and tagged-union named-section scenario steps intools/modustool. - The fuzz targets of
modustool checkrun at once: the check runs the children of several targets at the same time, at most one for each processor and at most 8. It prints each target in the order of the targets, as before, and gives the time of all the targets as a measure. The host tests of the heaviest packages of the tool now start first, so none of them runs alone at the end. - The context menu of the desktop takes the pointer and shows its keys: the line under the pointer is chosen, a press on it acts, and a press outside closes the menu. Each line shows at its right the keys that do the same act (Ctrl+Shift+M for the magnifier), the new items snap the window in front to the left or the right half or maximize it, and the item of the edge that the bar holds now is disabled. The card has the gradient of the cards with a line of light, the input line of the interface as its filter, and a line under each matched character.
- The trusted grant dialog and the store picker in the look of a window: a sharp shadow, the frame and the title plate of a focused window, the stores in a list with a chosen plate, and two buttons that name their keys,
Allow Enter(orShare Enter) andRefuse Esc, in place of a line of text. - Live service integration across remote display, console, debugger, GPU device, and unlock. Wired
video_codecintoremote_display,console_promptandlocale_cldrintoconsole,processor_profilerand external pager intodebugger,blur_filterintogpu_device, and TPM lockout/session encryption intounlock. - The heron button, a start menu in two panes and module icons: the bar starts with a heron button that opens the start menu, then a button with the icon of a list that opens the menu of the windows, then the window plates; the labels
startandwindowsand the hintpalette: superare gone. The start menu has the pinned modules and two quick actions (the bar to the other edge, the magnifier) in its left pane and every other module in its right pane. A module icon of 16 by 16 pixels marks each title bar, each window plate, each line of the menus and the pills of the tray. The log line of the interface font of the bar now gives the widest name only. - Live event-loop wiring in compositor, sound, and console. Connected workspace tracking,
Ctrl+Shift+1..4workspace switching,Ctrl+Shift+Left/Right/Upwindow snapping,Ctrl+Shift+Mmagnifier tracking, and notification expiration directly intocompositor; connected crystal clock-drift observation intosound; and added the livelocalebuilt-in command toconsole. - The wiring service and the tests of the record outputs write log facts. The lines of
wiring, of the pairwired_readerandwired_writer, and of the test modules of the record outputs, of generic wirings, of the pace of requests and oflog.followare typed facts now: a reader filters them by field, and each sentence reads as before, except that a status of the kernel shows the name of its member in place of its number. - The devices service classifies the bus. The root service starts
devicesbefore any device service, asks it once for the class of each device of the bus, and arms a device only at a place thatdevicesclassified with the class of its service. Each start and each stop of a device service is a binding ofdevices. Adevicesthat does not answer within three starts leaves the machine with no device service, with one line. - The escalation of a needed holder after the machine is usable. A start policy that stops after
Machine_Usable, as the default one does when a needed row is past its restart bound, now gives way to the rescue start policy: the root service stops each process that it asked for and starts the rescue, which gives a principal the console. A stop of the rescue after its ownMachine_Usableleaves the machine with no start policy, with its line. - The last lines of the root service are facts. The lines of the tables of the root service, of the wait of its loop and of its bridge to the wiring service are log facts with the same sentences, so
facts()filters them by field. - The windows of monitor and settings take their places from a layout tree. Each frame lays out the cards, the rows of buttons, the graphs and the columns of the table of processes at the size that the window has then, in place of places written by hand. At their size of start the two windows look as before, except that the processor bar of each process in monitor is 200 pixels wide, not 190, so its share ends at the right margin. A button of a setting is as wide as its label at least.
- Larger sources for compile and assemble:
compiletakes a C source of up to 256 KiB andassemblea text of up to 256 KiB, in place of 64 KiB each. A text thatassembletakes now holds up to 128 KiB of code, 128 KiB of data, 2048 labels and 4096 references, in place of 64 KiB, 64 KiB, 512 and 2048. - Log facts in place of formatted lines. Every system service, demonstration, and output test module (including
root,wiring, and the remaining output/wiring tests) now emits typedlog_factrecords verified by host fact-rendering tests, leaving raw text log calls only in tests that explicitly verify raw text log records. - The editor and the window of the debugger resize, on the layout tree. The principal drags an edge of
editor ofdebugger_window, and each part follows: a top band with the fields and a state label, panes with a divider that a drag moves, a status band whose sentence is never cut, and the action bar.editgets a scroll bar and a pane of its versions (Ctrl+H);debugger_windowshows its threads and its variables in columns. - The windows of notes, inspect and log take their places from a layout tree. Each frame lays out their parts at the size that the window has then: the lines and the action bar of notes, the list of the processes, the address space, the modules, the threads and the bytes of inspect, and the counts and the table of the records of log. The tables take their columns from the layout, and the colors come from the element tokens of the appearance in force. At their size of start the three windows look as before.
- monitor and browser get cards, bookmarks and a richer welcome page: monitor shows three metric cards with large numbers and segmented gauges for the memory, the processor and the kernel, three graph cards with the value now and the peak of the minute, and a table card with column bands and zebra rows. browser has a reload button, a recessed address well, an origin badge with its mark, a bookmarks band that opens each page built in with one press, and a welcome page with a hero block, feature cards, badges and figures.
- The clients of the display on its contract only. The start list names the role
displayand the root service starts and routes the module that holds it, each window gets its work area from that holder in the new display eventWork_Area, the window bound counts no bar, and the machine tests of the other parts wait for the factdisplay: <title>: the holder of the display took the window, which each holder of the display gives. - The disk processes service. The service
disk_processesreads the module file ofstart_from_disk, and the files of its import scan, from the storemodule_filesthrough a connection that reads only, into memory that the root service lends. The root service ends each loan before it checks the hash, so it reads no module file from a disk and waits for no storage service during a load; a module file of up to 4 MiB loads as before, and each line of the log of a load keeps its words. - A plan commits only after the trusted display:
plans.applyshows the difference of a plan withcompositor.plan_diff_askand gives a ticket, andplans.apply_poll(ticket)commits the plan only when the principal accepted it, whichcompositor.plan_diff_pollgives; a refused difference changes nothing. The servicesplans,projectsandrecipeskeep their applied plans, their projects withpins.lex, and their realisations in their private store, and read them back after a start; until the root service gives them that store, each commit is refused withStore_Failed. - Resize grip rendered above resizable surfaces, live debugger replay checkpoints, and
tree_hashconsole command. Moved the bottom-right resize triangle grip into an overlay draw part above resizable client surfaces incompositor, wiredinput_historyrecording and reverse-step checkpoint lookup intodebugger, and added the canonicaltree_hash(name, content)built-in command toconsole. - Live
module_gcsweep and request-serial idempotency instorage, plus bar vertical positioning incompositor. Wiredinternal:storage/module_gcreachability garbage collection andsupervision.Request_Serial_Logduplicate-call protection directly intostorage, updated taskbar pills and tray badges incompositorto followdesktop_bar_y(), and pruned 7 verifiedNextentries fromROADMAP.md. - Browser machine fast paths,
rep movs/stosword forms, and slim desktop image. Added a fetch page cache, chunkedmmu_read_bytes/mmu_write_bytes,rep movsw/d/qandrep stosw/d/q, shadow stack reset on unwind, and a slim 14 MiB desktopboot.imageinmodustool browser-machine, reducing Node 24 WebAssembly boot from 56.1 s to 42.1 s (desktop) and 64.6 s to 46.7 s (help()via PS/2 IRQ 1 with 1,024,000/1,024,000 pixels drawn). - Kernel-theme visual polish for window controls, notifications, and taskbar in
compositor. Made minimize and maximize buttons seamless on the steel-blue title-bar gradient with crisp 1px hairline glyphs and hover highlights, replaced the notification icon box with a beveled gradient card and 3px vertical urgency rail, and refined taskbar window plates with beveled steel gradients, a 1px specular top edge, a 2px active bottom accent line, and hairline dividers. - Frame-1 taskbar plate redraw and faster multi-threaded tool host tests.
compositornow damages the bar immediately when a window opens or closes so its taskbar plate renders on frame 1, andmodustoolruns the heavy tool test suites (build,site,machine,checks) with 8 test threads (cuttingsitefrom 116 s to 32 s andbuildfrom 159 s to 103 s). - Export service rings for delegated system services. Granted
ServebesideSystem_Parttopowerbox,collector,plans,recipes,projects,disk_processes,devices, andprincipalssorootsupplies their export rings and callers such asconsolecan invoke their exports live. - The plan dialog reaches any holder of Display.
plansconnects to the roledisplay, not to the modulecompositor, and reads the exports of the holder from the boot image by the hash that the connection gives, so a plan that gives Display to another module keeps the trusted dialog of each apply and rollback. - grid_terminal holds Terminal only. In a console image with
grid_terminal, the role Display has no holder, as with the two other renderers: a start or a connection ofdisplayis refused, and no caller reaches a module that does not fill the display contract.grid_terminalstill gets the framebuffer and is the one screen writer.
Removed
- The glyph cache file out of the system. The format of a glyph cache, its builder
vector_font.glyph_cache_build, its fuzz targetglyph_cacheand the tests that took a cache as their reference are gone: the character index is now the contractfont_characters, the candidate fonts ofvector_glyphsand ofbuild/fonts/candidates.pngdraw through the face of the cells of a font set of their own (text_rendering.font_file_open,graphics.character_of_set), and the tests take their glyphs from a face, whose golden hashes prove the pixels. A face is the one way to a glyph.
Fixed
- The prepared modules give their handles back: a start or a wiring no longer fails because the root service holds the shared code of up to 64 modules for later starts. Before each start and each wiring, the root service closes the prepared modules used least recently until the work has room; a closed module is prepared again at its next start. The line of the tables of the root service also says how many of its handles are prepared modules.
- A long command survives a new build of the tool. A command such as
modustool screenshotsstarts the tool again for each step of a module, and it named the filebuild/tool/modustool; when another command compiled the tool again while it ran, every module step failed with "cannot start …/build/tool/modustool (deleted)". Each step now runs the binary of its command, whatever happens to that file. - A row that fails at once is started again each time. The start policy no longer misses the stop of a process that it has just started again when that process stops before the start completes: each restart that the row allows now happens.
- A record that each reader refused counts as discarded, not as written: when each reader of a record output had a full ring of the pace
Never_Holds_Writer, the writer counted the record aswritteninstream_counts, though no reader received it. It now counts asdiscarded, as a record with no reader; each of those readers still reads a gap record with the count of the records that it missed. - The list of the failed parts names the parts that ran.
modustool screenshotsevaluates the check of the flake once and builds that derivation, sofailed_partsreads the derivations that the build built: a work tree that changed during the check made it call every part "did not run", the parts that passed too, with no log. A failed host check with no failed step now gives its last failed line, as "odin failed (code 1)", and a list of derivations that nothing built says so. - One drawer at a time in the private glyph cache. An atomic single-drawer guard in
text_renderingrefuses a second thread that draws or mutates the private glyph cache while another thread holds it, keeping the cache lists intact and writing one warning line on the log at the next frame. - The hint line of a call after the pipe operator. The hint line under the console edit line now marks the parameter after the piped value for calls on the right of
|>, shifting by one when no top-level placeholder_is present. - The bus master off before a device service stops. The root service now clears PCI Bus Master on a device before calling
Process_Stopon every device service, preventing memory accesses between service stop and reap on machines with or without an IOMMU. - A firmware that hangs in the end of its services. The UEFI boot program arms the firmware watchdog for 30 seconds immediately before the final memory map read and
ExitBootServices, so a firmware hang during boot exit restarts the machine instead of freezing it. - In-place plan difference without IR blowup.
plan_diff_compute,plans_core.compute_difference, andplans_core.apply_planwritePlan_Differenceinto a caller-supplied pointer instead of returning the 11 KiB record by value, shrinking freestandingplansLLVM IR from 17.57 MB to 0.77 MB (31.95 MB to 3.14 MB with debug info) and compiling withllc -O3in 0.43 s. - A check of the share policy that the load of the host does not set.
schedulernow normalizes each process's accumulated ticks per virtual processor against that processor's busy ticks (internal:scheduler/share_order), so uneven host scheduling across cores does not skew the share-policy ordering check. - The preview of a window plate shows when the pointer reaches the plate: the compositor draws the plates and the preview again when the pointer moves to another plate, so the card no longer waits for another change of the screen. The card has the gradient of the cards, a line of light, the name of the group and the square of the focus before the window in front.
- No dark frames in the light appearance: a window that reads its events one by one, such as
ringsandmonitor, now draws itself whole after a change of the appearance, so no band or block of the dark background stays around its light content. In the light appearance the menus of the bar and the dialog of the powerbox have a light shadow and a grey edge in place of a black box, a card has a tinted border in place of a near black one, and the titles of the notifications, of the preview of a plate, of the plate in front, of the window in front in the menu of the windows, and of the asker of the powerbox, with its button "Refuse", are black on their white card in place of white. A chosen value of a form of the palette is a reversed plate that shows on the white card. - A fault of the software processor changes no register and no flag. An add, a shift, a negation, an increment, an exchange and an add or compare and exchange whose write to memory faults left the flags or a register changed; the processor now gives back the state before the instruction, as an x86-64 processor does. A
cmpxchgwhose compare fails now writes its destination back, so a destination that the user cannot write faults in both cases. The fuzz targetsoftware_machinefound the first fault. - Characters of two columns and lines that always run: the terminal gives a CJK ideograph, a kana, a syllable of Hangul or a fullwidth form two cells, wraps it whole at the right edge, and never leaves half of it on the screen; the console cuts its output at the same columns. A key typed ahead, Enter or Escape, is no longer dropped by the console when the call of the running line ends at the moment the console takes the key, a line no longer waits for the save of the line history of the line before, and the input service no longer turns without a wait when a key with an accent finds one place in its ring.
- Stricter answers of the machine of a Linux guest. A write of
EFERthat changesLMEwhile paging is on gives the guest a general protection fault, as the processor does;rdmsrandwrmsrcomplete at the next instruction that the kernel gives; and a relocatable kernel whose preferred address wraps at its alignment is refused withBad_Alignment. - A guest build counts only the exits of its guest: the interrupts of the timer of the host no longer count toward the bound of exits of the spec, no longer end a build after 1000 in a row, and no longer change the count of exits of the report, so two builds of one spec report the same count on a slow or a fast machine.
- The GPU device service replaces a scanout only once the new one is on the screen: a refused attach leaves the old picture and its memory as they were, the memory of a client is closed on each refusal, the old memory is closed only after the device released it, and a device that does not answer a control request stops the service in place of reusing its descriptors.
- One faulty cache never stops a build. A paired cache that gives a bad realisation, withholds the output or sends bytes that do not hash to it leaves the run, and the next cache, a builder or this machine gives the output;
Cache_Onlywith no other cache names the fault of the last cache.
Security
- A handle given into a shared memory only to a process that agreed to receive one.
Handle_Givetargeting a memory object now transfers a handle only into another process that mapped that memory withMap_Flag.Receive_Handles, and refuses mappings without consent withNo_Right(Refused) while leaving every handle table untouched. Output rings, list pages, wiring rings on the wiring service side, and root rings without handle-lending grants never accept unsolicited handles. - A budget for each source of a QUIC flood. QUIC servers now enforce a per-IPv4-/24 admission token bucket and active handshake cap with fixed capacity and LRU eviction before performing connection cryptography, so a flood from one address range spends only that range's budget while clients from other ranges still connect immediately.
- A new file under the passphrase alone is opened again before its write. During a passphrase change or recovery reseal of a
PRINCIPLfile,unlocknow re-derives the passphrase key and decrypts and verifies the newly built record against the sealed keys and public keys before replacing the stored file, keeping the old file intact on any fault. - The number of the principal in the start of a change. The root service now passes the requesting principal number in
unlock's start context for passphrase and recovery key changes, andunlockrefuses any stored principal file belonging to another principal. - The devices bridge refuses a stale or partial binding:
devicesrefuses aBind_Devicewhose record names another device than the command, the recorded grant leaves out the MSI-X BARs as the real grant does, a 64-bit BAR past the page limit is refused rather than cut, only an identity with no class counts as an answer of a lookup, and a service that floods its ring no longer holds the wait of the root service. - The principals service. The root service holds no key of a disk grant table and calls no storage service: it passes each key that
unlockgives on toprincipals, keeps only its BLAKE3 hash, and makes for each read and each write a connection ofprincipalsto the storemodule_filesof the principal.principalsadds or checks the tag, and the root service reads each table that it gives again with the decoder of the disk, so a hostileprincipalsgives no row that the disk could not give. Aprincipalsthat starts again holds no key: a change of a table is then refused until the next unlock. - The table that the principals service gives the root service is the table that it verified.
principalscopies a disk grant table out of the call region of the storage service once, checks its tag on that copy, and gives the root service only that copy, so a storage service that changes the bytes after the check forges no row.plansand the root service stay on one generation of the roles of the machine after a lost answer, a late set or a failed compensation, and aprincipalsthat does not answer a call in time is stopped and started again. - Security hardening from independent review across
root,store_crypto,machine_sync,serial_ring, andkernel_fault_isolation. Resolved role names once before sender grant checks inroot(eliminating confused-deputy mismatch), reserved canonical role names against disk-process nicknames, removed the leaky separate connection-account table in favor of per-Connectiontracking, bound monotonic versions and nonces instore_crypto(blocking page replay andmax(u64)floor DoS), enforced peer/local identity, role enum borders, TTL caps, and nonce replay checks inmachine_sync, fixed SPSC atomics and endpoint dequeue/unregister inserial_ring, and enforced Intel SDM Vol. 3BMCG_SER_P/OVER/EN/ARchecks inkernel_fault_isolation. - A guest build refuses a kernel image larger than the memory of the guest before any arithmetic on its size: a count near the largest 64-bit value no longer wraps the size of the copy to 0, and an absent spec or kernel buffer is refused.
- The GPU device service refuses a client Venus stream that holds a command of the ring or of the reply stream, or asks for a reply: a client can no longer point the renderer at the command ring of the service or write over its replies.
- The TPM service checks the lockout hierarchy again after a failed read: one silent read of the state of the TPM no longer leaves an empty lockout authorization value for the whole run, so the count of wrong passphrases keeps its limit.
- An agent can no longer approve its own calls through the agent bridge.
eval_lexruns a line at once only when it is exactly one call of an export on a short read-only list; each other call,plans.applyandplans.rollbackamong them, waits for the principal, and a line with a comment, a second line, a pipe or a nested call is refused. The bridge no longer readssensitive_actionorplan_difffrom a request, andread_screenno longer writes to theoutput_pathof the agent: a snapshot goes to a file only in the folder that the operator gives withmodustool agent-bridge --snapshot-dir, under a name of the bridge. - A wide-grant proof can no longer be forged. The proof of a wide grant carries a keyed BLAKE3 tag under the key of the unlock authority, with its origin and a serial inside the tag, so a process without the key cannot make one, a changed field is refused, a proof from the remote display is refused, and one proof gives one grant. The collector refuses each wide grant when its start gave it no key, refuses an unknown act kind, sensitive action or revocation reason on its ring, and only the collector can clear the wide-grant mark of the compositor.
- The form of the record of the machine key pinned in the TPM. On a machine with the TPM service and Secure Boot on, an index of the TPM that only this system writes now holds the form and the SHA-256 digest of the record of the machine key, and
unlockrefuses a record that a writer of the disk replaced, removed or rolled back: the log says "the record of the machine key is not the record that the TPM pins", the disk grants of principal 0 stay absent, and no other record is tried. A stop during a write leaves a record that the pin names, and the next start settles the pin so the record of before is refused from then on. A pin that cannot be read refuses the record. A machine with no TPM works as before. - The file of a named principal pinned in the TPM. On a machine with the TPM service and Secure Boot on, an index of the TPM now holds the SHA-256 digest of the current file of each named principal, and
unlockrefuses a file that a writer of the disk put back after a change of the passphrase, so an older passphrase opens nothing: the log says "the file of principal 1 is not the file that the TPM pins". A removed file of a pinned principal is no missing principal:principal_createis refused until a clear of the TPM. - A rollback asks the principal.
plans.rollback()now shows the difference back to the older plan on the trusted display and gives a ticket;plans.rollback_poll(ticket)commits it only when the principal accepted, so a console that an agent drives can no longer take back a grant or swap the holder of a role in silence. The exports that read a generation take the principal of the caller, never a principal as an argument. - The root service checks what principals gives it. A disk grant table that
principalsread passes the border ofDisk_Rows_Setbefore the root service takes a row, and an error record of the storage service must name a kind and a unit, so a faultyprincipalscannot give a grant outside the disk grant classes or a record that names nothing. - No idle copy of the key of the machine in remote. The outbound links of
remotecopy the private key of the machine from the server only for the start of one connection, and erase that copy at once; no copy waits in the memory of the links.
0.96.0
Added
- Paths in the draw record. Version 16 of the draw record has a
Pathkind: lines and quadratic curves from points in the text table, filled by the nonzero rule and stroked with butt ends and bevel joins, each pixel by the exact part of it that the shape covers, the same pixels in each damage rectangle. A line is now the stroke of a path: across or down it keeps its pixels, at an angle it has antialiased edges, as in the rings ofringsand the folded gaps ofinspect, and the kindLineand its word 10 leave the format. The window ofringsdraws an arrow on each ring from an outline. The exports of the drawing module aredamage_of_draw_table_16andexecute_draw_table_in_rectangles_16. - A start policy from the disk. On a machine whose machine key the TPM seals with no passphrase,
start_policy_choose(nickname, hash)in the console of principal 0 makes a module of the storemodule_filesthe start policy of the next start, andstart_policy_default()ends the choice. At that start the root service reads the choice before any start policy runs, checks the hash of the file, and starts it with the start grantStart_Policyonly; a file that is absent, has another hash or fails gives way to the rescue start policy. Each start policy, the default one and the rescue too, is measured into PCR 12 before it runs, and the log gives the value of PCR 12, so an attestation sees which one ran; the seal of the machine key still reads PCR 7 and PCR 11 only, so a new choice changes no unseal. A machine with a machine passphrase refuses the choice. - The films of the tutorial:
modustool film desktop,film consoleandfilm programfilm the desktop, the console and the start of the moduleplasma, and each film now writes its film cues tobuild/films/<name>.cues: the time of each named state of the film, so that the captions of the tutorial appear when their state is on the screen. - A picture of the rescue start policy: the guide of the trusted boot and the gallery show the console of a machine started with the key R, with its table of the processes of the rescue list.
- The pipe operator
|>of the console:a |> f(b)isf(a, b), soprocesses() |> where(name = "server") |> columns("name slot")reads in the order in which its calls run. The operator adds no meaning: the line checks and runs as the same line with calls in calls. A fault of the operator (no value on its left, no call on its right, a command that takes no argument or has 12 already, a|alone) fails the line before any call runs. After|>, the completion list offers the commands whose first parameter takes the value on the left. - The window of
monitorshows the last minute and colors its bars by intensity: three sample graphs over the grid of points of the desktop show the memory in use, the processor time of all the processes and the kernel entries in one second for the last 120 samples, and the memory bar and the processor bar of each process take the color of their intensity step: the color of what they measure, the warning color from 60 %, and the new color tokennear_limitfrom 85 %. The window is 520 × 640. - A field of a record states its kind, the second step of log facts: a record description takes a hexadecimal Integer (
value_kinds.Hexadecimal_32and the other sizes), a status of a contract enum (operation.Status,operation.Log_Level), a module name (value_kinds.Module_Name_Field) and a hash (value_kinds.Hash_Field, a field of the type Bytes), in the bytes ofmodule.Fieldthat were reserved, so the format version stays. The console and the palette draw a hexadecimal Integer as0xand two digits for each byte, a status by the name of its member in the color of a status, a module name in the color of a module and a hash in hexadecimal in the color of a version;where,sortandjoinrefuse a hash field. Each compile of a package ofsrc/now accepts the attributelog_factof a fact type (-custom-attribute:log_fact). - A process writes a log fact:
system.log_fact(.Info, Probe{...})writes the values of a record type whose attributelog_factholds its sentence, in one record of the log with no text; the module file holds the sentence and the record in its new tableFacts(format version 3), the serial port gets the raw bytes of the fact, and the tool writes its sentence for the machine tests. The build refuses a fact type with padding, a handle, more than 144 bytes, a sentence that leaves a field out, or a key that the code does not hold, andLogrefuses each wrong fact with its error record. - The remote display. The service
remote_displaysends the screen to a viewer on another machine over QUIC, as lossless screen pieces of the damage of the compositor, one viewer frame in flight, with no pointer in the pixels; a viewer allowed for the input sends keys and a pointer, which take the path of the keys. A principal allows a key withremote_display_allow(key, "view")or"view_and_input",remote_disallowends the session at once, and the bar shows the markviewerwhile a viewer is connected. A key sees the screen only while the session of its principal is in front: a key of principal 0 sees nothing while a named principal is unlocked. A key allowed for the view alone makes no call ofremote. The test partremote_displayuses the peer of the tool as the viewer and compares the screen that it rebuilds with a picture of QEMU. - The readers write the sentence of a log fact: the console, under a line, and the window of the log show each log fact as the sentence of its fact template, each value in the color of its kind, from the module file of the boot image that the fact names, and its raw form when the image has no such module.
log.records(0) |> facts(log_reader.Fact_Probe)gives the fields of one fact type as the columns of a table; the console refuses, before any call, a fact name that no module of the image writes, and completes the fact names. A row oflog.recordsgives its level and its record form as members ofLog_LevelandLog_Record_Form, andlog.fact_recordsgives the 144 value bytes of each fact. The console, the window and the tool write a sentence with one procedure,module.fact_sentence_write; the tool now writes the unit of a size or a time. The window of the log has the grantimage. - A machine test waits for a log fact by its fields: the step
Factnames a fact type, a process and a condition on one field, ascondition = "value = 42", and passes at the first line of that fact whose values pass the condition, whatever its sentence. Before a machine starts, the tool checks each such step against the fact tables of the build and stops with one line for each fault: no process, a fact type that no module writes, a field that the fact type lacks, an operator that the field does not take, a value of another kind or out of the range of its field. The condition has the form of the condition ofwherein the console, and the same package reads it. The main test reads the fact oflog_readerthis way, and withfacts()in the console.
Changed
- The tool in packages. The tool
modustoolis one command over eight packages, one folder each undertools/modustool:foundation,resources,build,checks,fuzz,similarity,machineandsite. A developer reads one concern in one folder, andmodustool checkruns the host tests of each package in its own process. The commands and their arguments do not change. - The test machines show 1920 × 1080. The boot program asks the firmware for the mode of the reference screen, so the desktop, the screenshots and the pictures of the site gallery are 1920 × 1080 in place of 1024 × 768, at scale 1: the windows keep their sizes. The compositor flips between two screen pages of 8.3 MB in the 16 MiB of the standard VGA, and its budget grows by 2526 pages for its frame, its background and their page tables. A firmware with no mode of 1920 × 1080 gets the largest mode inside it, and the boot program writes one line with the mode that it keeps; a screen that the budget of the compositor cannot pay stops the compositor with one line, and the rest of the system runs. The measure of a full frame of the compositor has a new sentence that names the size, so its chart starts again at the reference screen. The scale factor from 1.25 to 2 is the next step.
- The steps of the boot display in their order. The boot display lists the boot image before the kernel module, as the boot program checks them, and the boot program checks each file of the boot image before the kernel: a failure of the kernel shows the boot image as done, which it is.
- A start policy in place of the fixed list of the root service. The root service now starts one process, the start policy, which reads the start list of the boot image in its order and says when the machine is usable; a start policy that stops before, or that says nothing within the hang bound, gives way to the rescue start policy, which starts the input, the compositor, the console and
remote, so a failed console no longer stops the machine. The key R held at the start, or the boot entry "modus (rescue)" that the boot program writes in the boot menu of the firmware, starts the rescue at that start, and the build refuses a start list that names no module of its image. - A boot display at the scale of the screen. The boot display takes the largest scale among 1, 1.5, 2 and 4 whose panel fits the screen with a margin of 8 pixels, keeps its proportions and stands in the middle of the screen: 1.5 on the screen of 1920 × 1080, a panel of 1464 × 1062 in place of 976 × 708. Each scale is a size of Spleen, the font of the display, as the console of Linux takes a font by the resolution: 8x16, 12x24, 16x32 and 32x64, so each letter fills its cell. Each card, bar, gap, mark and text is drawn at that scale, each edge rounded once to the nearest pixel. The boot program, the root service and the process
bootdraw every text of the display in Spleen, the titles too, so they show the same pixels.modustool fontmakes the three new sizes from the files of Spleen, 70 656 bytes in the boot program and the root service. A screen that holds no larger scale keeps scale 1. - A clip stack in the draw record. Version 17 of the draw record has the kinds
Clip_PushandClip_Popin place of theClipthat replaced the cut: a clip inside a clip keeps the outer one, at most 16 clips are open, and a clip is a rectangle of whole pixels. The drawing module refuses a table whose pushes and pops do not match with an error record before it draws, and a table that changes during the call still draws no pixel outside a clip that it pushed. The two lists of the interface package push the clip of their area, so a list never draws past it. The exports of the drawing module aredamage_of_draw_table_17andexecute_draw_table_in_rectangles_17. - Spacing tokens in place of the grid of 8. A window goes where the principal drops it and takes the size that the principal drags, to the pixel, and a part of its title of 8 pixels stays on the screen. The spaces between the elements are the named spacing tokens
gap8,margin16 andtitle40, and a width that a text gives is that width: the columns of the start menu, the value buttons of the palette and the columns of a row are no longer rounded up to a multiple of 8. - Text at any size. A glyph that no glyph cache holds, such as a Greek letter or a box-drawing character, is now drawn by the process that shows it into its own private glyph cache, which the process takes from its budget at its first such glyph, with the pixels of today. A text that is wider than its box now breaks its lines between two whole characters only. The packages
fallback_glyphsandtext_shapingare now one package,text_rendering. A frame whose glyphs fill the cache still draws each glyph right, and writestext_rendering: the glyphs of one frame fill the private glyph cacheonce on the log. - The table of the processes starts its service:
processes()works at once in each start policy, the rescue included, because the root service startsmonitorat its first connection;start("monitor")is no longer needed first. - The kernel records why a process stopped: each stopped process has a stop cause that no other process can forge: itself, a holder of its process handle, the end of its last thread, the close of its last handle, a fault, a page that is not committed, a return that the processor refused, or a fault that no thread can answer.
Process_Stategives it as its second result,monitor.processes()shows it in its columncause, and the lines name it: "root: net stopped: a holder", "error: the process calendar stopped: a fault, page fault". The codes 0x100 to 0x500 of the kernel are gone. The demonstrations and the tests give their results through memory that they share with their parent, never in their stop. - What a process says about its work when it stops. A process that stops itself names its stop outcome: done, failed, refused or stopped on request, as in
system.stop(.Done); the stop code is gone. The kernel refusesProcess_Stopof the caller with no outcome, and of another process with one, withBad_Operationand the recordBad_Valueof the argument 2, so no holder can make a process look done.Process_Stategives the outcome as its third result,monitor.processes()has the columnoutcome, and the lines read "root: settings stopped: itself, done" and "error: the process calendar stopped: refused". A process with no seed, no grant or a word of its context that names nothing stops with refused; the start policy starts no row again after done or refused.system.process_stop,system.process_stop_waitandsystem.process_placeare new, and the tool refuses a conversion to a stop enum and a raw call ofProcess_StoporProcess_Stateoutside their packages. - The measure of every character from its font file: a text is measured at any text size from the advances and the pairs of its font file, not from the tables of a glyph cache, with the same numbers at the sizes of the glyph caches; an advance is kept within one line and a pair within half a line at each size, in place of 64 pixels. The library module
text_shapingbecomestext_rendering: its exportsshape_text,measure_textsand the newbreak_texttake the font outlines as bytes, a face and a text size, and refuse a face that names no member and a size out of 256 to 16 384. - Every glyph drawn by its process. The boot image no longer holds the five glyph caches of Paper Mono and B612, more than 1.3 MB, nor their five fixed ranges: each process draws each glyph of its text from the font outlines into its private glyph cache, the setting
grid_fitchooses a face of the cells, and each stated budget of a process that draws text holds 354 pages of glyph memory for each copy that draws. A text of the interface font at the scales 2 and 3 now stands at the nearest third of a pixel, not at a whole pixel. wheretakes a condition on a field:where(t, block = 12),where(t, level = Warning),where(t, number >= 100), in place ofwhere(t, "block", 12), which the console no longer takes. The field is a name of the record, checked before a row is read, and before any call in a line with|>when the console knows the record; a status takes the name of a member of its enum, with=and!=only. The operators are=,!=,<,<=,>and>=.where,sortandjoincompare an unsigned field as unsigned, sowhere(key > 0)keeps a key of 2^63. In a line with|>, the completion offers the fields and the members.- A text size in the draw record. The draw record is version 18: a text record and a text grid carry a text size in 1/64 pixel, from 4 to 256 pixels, in place of one of three scales, and the border refuses a size out of that range, 0 too, with no clamp; the exports of the drawing module are
damage_of_draw_table_18andexecute_draw_table_in_rectangles_18. A text of the interface font takes its bold weight at each size, and the pictures of the desktop do not change. - The elements at the text size tokens. The caption of a card is at 14 pixels on the baseline of its title, the one number of a card at 32 with its label as a caption under it, and each page of
manualhas its title as a heading at 24 over its rows, which stays when the rows move. The help line of the palette and the hash prefix after a nickname are captions too, and the result of the palette stays at 48. The interface package givesdraw_caption,draw_headingand the fonts of the tokens, and each element takes the height of its lines at its size.
Removed
- No demand cache and no font service: the shared demand cache, its fixed range and the process
glyphsthat drew it at each start are gone, with their 1 073 shared pages. Each process draws each glyph past the glyph caches itself, into its private glyph cache, with the same pixels; the compositor now writes on the log what each fallback chain lacks, and the terminal tells once for each font of its fallback chain that it drew a cell from it. - The log channel leaves, the first step of log facts: a log record no longer carries a name that its writer chooses to group it, and the text of a record has 168 bytes in place of 152.
system.logtakes the level as its first argument,system.log(.Warning, "storage: ..."), andsystem.log_inis gone; the operationLogis(log, address, length, level, runs), and its free last value lets it take a table of error details, as the other operations do. A line of a process on the serial port starts with[name], the rows oflog.recordshave no fieldchannel, the stepRecordof a machine test reads the process and the level, the console groups the records of a line by process, and the windowlogcounts the records of each process.
Fixed
- The tool checks itself as packages: a change of a package of the tool that the tool imports now builds each module again, a change of a source in any folder under the tool gives the fuzzing of
modustool checkanother seed, git no longer ignores a folder namedbuildbelow the root, andmodustool checkrefuses a code span of a guide that names a file of the tool that does not exist. - A disk that stops to answer. A block request that the disk does not answer in 60 s fails, the block service stops with its line, and the storage service writes "storage: the disk does not answer" and refuses each call that needs the disk at once, so the console,
settingsandunlockget a refusal orGonein place of a wait with no end. - A machine with no screen. A machine with no screen at its start no longer ends its start on a failure that nobody sees: the root service writes
root: no screen: no console, no window; the other services start, starts no input service, no compositor and no console, gives no process a window, refuses a process that needs a terminal, and starts the other services of the boot. Anunlockthat needs a typed key writes one line and stops. A compositor that stops later gives one line, refuses the later terminals, and starts nothing. - A frame service that stops. The network service ends its wait when the frame service stops, writes one line and stops, and the root service writes one line and refuses each later process with an endpoint while the other processes start; a machine with no network device gets the same line and runs on.
- No PS/2 controller. On a machine with no PS/2 controller the input service no longer reads its status port for ever on one processor: a status of all ones, or a drain that reaches 100 000 bytes, gives
input: no PS/2 controller: no keyboard and no mouseand a stop with the code 1, and the desktop runs with no keyboard and no mouse. - An entropy read that never completes. A read of the entropy device has a deadline, the hang bound of the system, from its ask: past it, the reads in flight count as refused, the root service writes one line and stops the entropy service, and the seed keeps the sources of the processor, so the fresh bytes no longer stop in silence.
- A readable stop of the boot program. When the boot program cannot go on, for memory, for the memory map of the firmware or for a kernel module that it cannot load, its message stays on the boot display with the watchdog of the firmware off, in place of a power off at once; with no screen it stays on the console of the firmware. The buffer of the memory map takes the size that the firmware asks with a margin of 8 descriptors, in place of 16 fixed pages, and a map whose reserved ranges pass the 1024 ranges of the boot record gives one line with their count and their pages, while each usable range is kept.
- A start of the kernel without a part. A machine with no 8254 no longer hangs its first processor: the kernel takes the frequency of the cycle counter that CPUID states on a processor of Intel, or writes its line and stops with the code 1 when the processor states none. An IOMMU unit that does not finish its first invalidation leaves the machine with no IOMMU in place of a stop, a missing table of the APIC writes
kernel: the firmware lists no APIC table: one processor, and a failed proof of xsaveopt makes the kernel save with fxsave. A serial port that takes no byte and an interrupt that the controller does not send no longer hang a processor: each wait has a bound, and the log counts what was dropped. - A module that states too many parameters is refused. The sentence of an error of such a module no longer stops its process: the description of its export is refused, as a damaged description.
0.95.0
Added
- The loop of the kernel fuzzing with no counters.
modustool fuzz operations <executions> [seed]runs generated operation sequences on machines of the kernel that ships, one machine at a time, and boots a new machine after 1024 sequences or after a fault of the kernel: a stop of the machine, a sequence that does not end within the hang bound, a stop ofoperation_fuzzingor of the root service, or a broken oracle. It keeps each fault one time for its signature, with no number that changes from run to run, minimizes it by machine lives and by steps in at most 256 boots, and writes it tobuild/fuzzing/operations/<seed>/. A run with no count, or a count of 0, is refused. - Memory that grows with the data, paid by the budget. A process holds data with no known bound in an arena of the support package
system:arena_createreserves an uncommitted object,arena_pushcommits the next pages as the arena grows and gives backNo_Budgetwith its error record when the budget cannot pay,arena_resetkeeps the pages for the next frame, andarena_endgives every page back to the budget at once. The test modulearenagrows an arena until its budget refuses, and checks that it keeps running and that its budget comes back whole. - Windows that the principal resizes. A process declares its window resizable with its least and largest size (
display.resizable_set). The principal drags an edge or a corner, with the resize pointer shapes and an outline of the new frame. At the release the process gets the eventResized, makes the surface of the new size with its own budget (display.surface_resize) and draws its next frame in it; the compositor shows the old surface until that frame. The compositor takes only the asked size, once, so a process cannot resize its window by itself. A budget that cannot pay givesNo_Budgetand keeps the old size, with one line.clockis the first resizable window. - Copy and paste between windows. Control+C copies the text of the field that has the focus in the window in front, and Control+V pastes it into the field of another window, or into the line of the console as typed characters. The compositor takes both keys, so no process sees them or sends them. A copy is memory of the process that copies, paid by its budget; a paste lends the window in front a handle with Read for that paste only, and the reader copies the text, then checks that it is UTF-8 with no control character and no character that a reader does not see or that changes the order of the text. A text holds 1 to 4096 bytes and ends with the process that copied it.
- The corpus of the kernel operations. The regression inputs of the operation sequences are in
tools/modustool/fuzzing_corpus/operations/regression/: each holds a minimized life of a fixed finding and the answer of each step of its last sequence on the kernel that ships, its status, its error record and its table of error details. The test partoperation_sequencesruns each one after the seed sequences and checks each answer, so a changed refusal fails the part.modustool fuzz regression operations <finding>writes one from a finding folder, and refuses a finding that still breaks an oracle. The three findings of the first long run are regression inputs; their variants, the word 0 and the word past the last operation with and without a table, the commit and the decommit, stay seed cases with their answers. - The measure of a frame at 1920 × 1080 on the processor. The measure run of
modustool measurenow starts the processprocessor_frame, which draws in memory at the reference screen, with no GPU, three parts of a frame: a clear and a present, a frame of the compositor with 4 windows in full and in its damage, and the execution of a draw table of a desktop with texts in both fonts, pictures and alpha. Each part gives one line with the least and the median of 21 frames in microseconds and the frames in one second at the median; the measure record and its history keep the four lines. The tool checks the form of the lines only, and the process checks a pixel of each part. - Sound, a timed stream. A process with the start grant
Sound_Deviceplays sound through the new sound servicesound, the device service of a virtio sound device: it writes its samples in memory of its own, lends it with the right Read only, and sends records that each name the time of their first frame by the system clock. The service plays each frame at its time, 48000 frames in one second of two channels of signed 16-bit samples, with silence between the records and a latency of 30 to 40 ms. A record that comes late, more than 10 s ahead, over the record before it, of an unknown format or past its region is refused whole with its error record, and one process plays at a time: a second one does not start. The processtoneplays a tone of 440 Hz, andmodustool test soundfinds it in the sound output of the machine at the frame of its time. The error records gain the unitsNanosecondsandFrames. - The measures of the standard of quality. The compositor writes at its start the quality profile that it chose, the processor profile with the reason "the system drives no GPU device", and measures with the clock of the system the three numbers of the standard: the time of a frame from the first record that it reads in the turn that draws it to the page flip, with no wait of its own rate of one frame each 16 ms, the time of a key from the input service to the flip of the frame that shows its character in the console, and the start of each window from
Process_Startto its first frame. The console names each key that it puts in its line, its terminal names it with the picture, and the compositor ties the two, so a frame that only came after a key is never counted as its effect. The measure run waits for each line, the tool checks their form only, and the measure record and its history keep them. - The records at the addresses of the kernel operations. The generator of the operation sequences writes a table of
Page_RangewhereMemory_Commitreads one, and a register image, a breakpoint image or the legacy part and the header of an extended state area where a write command ofThread_Controlreads one, in place of plain bytes, so a sequence reaches the code behind the first check of each record. Of 16 records, 12 are valid, 3 hold one edge value of a field, and 1 holds a word that names nothing, so the refusals of each field still run; half of the steps ofThread_Controlname one of the three write commands. A seed still gives the same sequences, byte for byte.
Changed
- The look of the system out of the draw record: the grid of points and the folded gap are elements of the interface package, drawn with a rectangle that repeats, rectangles and lines, and the kinds
Point_GridandFolded_Gapare gone; the border refuses their words as unknown kinds. ARectanglerecord can hold a pattern: a cell placed on the surface, its size and its steps, cut to the box. The draw record is version 12, the drawing module has the exportsdamage_of_draw_table_12andexecute_draw_table_in_rectangles_12, and each window of the system draws the same pixels: a folded gap narrower than 6 pixels, a grid of points left of or above the pixel -10, and a folded gap whose line ends past 32 768 pixels, where that line is left out, are the only places that can differ. - One text kind in the draw record: a text in the font of the cells and a text in the interface font are one record
Text, with its font as a field: the draw record is version 13, and the drawing module exportsdamage_of_draw_table_13andexecute_draw_table_in_rectangles_13. Each text draws the same pixels. The word 11 of the kindInterface_Textnow names no kind, and a text in the font of the cells that starts past the coordinate limit has no record. - Colors with alpha in the draw record: a color of a record is
0xAARRGGBBwith straight alpha, and a rectangle, a pattern, a vertical and a horizontal gradient and a picture with the formatStraight_Alphablend over what is drawn before them by one rule in linear light, the rule of the text. The interface package writes them withdraw_rectangle_with_alpha, the two gradients with alpha anddraw_picture_with_alpha. The draw record is version 14, and the drawing module exportsdamage_of_draw_table_14andexecute_draw_table_in_rectangles_14. A record with opaque colors draws the same pixels as before; a text and a line stay opaque, and the border refuses a color with alpha 0 that is not 0. - Edges inside a pixel and a gradient along any line in the draw record: a rectangle and a gradient can have a box whose edges lie between two pixels, and the part of an edge pixel inside the box scales its alpha (
draw_rectangle_in_units,draw_gradient). The vertical and the horizontal gradient are oneGradientkind with two points and two colors, along any line; a gradient down keeps its pixels, and a gradient across, as in the title bars and the scroll bar, mixes in the steps of 1/255 of a gradient down, so a channel can differ by up to 2. A gradient that is longer than 32 768 pixels is not written, and the frame says that a record was refused. A text takes a color with alpha in each font (draw_text_with_alpha). The draw record is version 15, and the drawing module exportsdamage_of_draw_table_15andexecute_draw_table_in_rectangles_15; the words 2 and 3 of the old gradients name no kind. - The file is a module. The button of the bar that opens the menu of the modules to start is
start, and the palette shows a module to start asplasma (module)under the headingmodules. The module file service ismodule_files(module_files.receive,module_files.list,connect("module_files")), and its store is the storemodule_files. The command of the tool that writes a data disk of module files ismodustool module-disk. The boot display, the module pages of the site and the module graph name a module with an entry export a module with an entry. - A process in place of a program. What runs is a process, and the file of code is a module. The kernel operations keep their numbers and change their names:
Process_Create,Process_Start,Process_Stop,Process_StateandProcess_Module, and the kindProcess_MappingsofInspect. The contract, the guides, the glossary and the lines of the log say process for what runs and module for the file, so a reader never takes one for the other. A process of the host that the tool starts is a host process, and the argument ofbuild,fuzzandrepeatthat counts them ishost_processes. The boot program keeps its name, because it is no process of the kernel.
Fixed
- The kind 0 names no operation: a command record of the kind 0 (
None) is now refused withBad_Operationand the error recordUnknown_Operation, as a kind past the last operation is. The kernel answeredOkto it before, so a command record that a process never filled passed as a success. - The budget of a commit is always read: the form of the budget of
Memory_Commitinop.OPERATIONSis now a handle, not a handle or 0, andop.argument_is_readsays that a commit reads a budget of 0. The kernel refuses that budget with a detail of its own, and the contract now agrees with it. A decommit still reads no budget.
0.94.0
Added
operation.module_writer_of_word: the border of the word of the writer of a module record. It refuses a word that names no writer, andmodule_writer_namenames each writer with no default.- The first signed release image. Release 0.93.0 is the first release whose disk image is built with the keys of the publisher of the system, and whose checksum list carries the release signature. A principal checks both with modustool verify and the public key in resources/keys/release_signing_key.public.
- A window memory for each window. A program with a window declares one
interface.Window_Memory(RECORDS, TEXT)record, with its drawing and its two draw tables, and starts each frame withinterface.window_frame_start: one declaration and one line replace the four buffers, the drawing and the start that each program wrote. The 43 programs that wrote them use it. - Fuzzing of the other readers of the system:
modustool fuzzand the fuzz check ofmodustool checknow also give hostile inputs to the remote protocol (the call request, the call answer, the client table) and toisolated.decodeof a call region, to the records that a program reads from a ring (the input events, the terminal input, the service commands, the root commands and their refusals), to the disk grant table behind its tag, to the system description and a boot image built and then changed by one byte, to the vector font reader, the glyph caches and the font outlines, to the pointer theme, and to the ACPI tables DMAR, IVRS and MCFG. Each of the 13 new targets has a seed of each form and its edges, and a round trip through its writer where one exists. - A machine case for each refused ring word. The machine test now sends
None, the word one past the last command and the largest word to the block service and to the network service, which answer each one withBad_Commandand the recordUnsupportedand serve the next command, and to the compositor on the ring of a window and to a terminal, which each write one line at the first word and the count 3 at the end. The new test programhostile_terminalwrites the words to its terminal. - Fuzzing of the last readers of the system:
modustool fuzzand the fuzz check ofmodustool checknow also give hostile inputs to the sentences of the error records, the palette table, the demand cache, the value runs, the text encoding check, the kept stop reports, the kept settings, the answers of the TPM, the shaping tables of the fonts, and the list of the processors in the ACPI table APIC, whose reader moved from the kernel into a package of its own, with host tests. The instrumented build now counts the edges of a package by the name that its sources declare, so the terminal records count too. - A check of the tool for a cast of a word to an enum.
modustool checkrefuses a cast of a word to an enum that the code keeps, passes or switches on, with its file, its line and its form, and accepts a cast only as one operand of==or!=with a member. Each such cast of the system and of the tool now reads its word through a border. - The format of the operation sequences and their generator: the contract package
operation_sequencegives the format of the fuzz input of the kernel operations, whose reader refuses each damaged sequence with its problem and its step, its area or its argument.modustool fuzzand the fuzz check ofmodustool checkhave two new targets:operation_sequencegives hostile bytes to that reader, andoperation_sequence_generatedchecks that each sequence that the tool builds from the forms of the kernel operations is one that the reader accepts. - A fuzz target of the root ring. The fuzz check sends records of the root ring with each word and each edge of each argument, from any role of the sender, to
root_ring.dispatch_decide, the decision of the border and the sender that the root service now takes from its contract, and to the borders of the words of the commands and the records of a refused Replace. It checks each refusal against a model of the table of the senders, and that nothing changed:modustool fuzz root_ring. - The processors at a failed step. When a step of a machine test fails while QEMU runs, the tool first reads the registers of each processor through the monitor of QEMU, writes them beside the log of the machine (
<log>_processors.txt), and prints for each processor its instruction address, whether it is halted, and the code that holds the address: the procedure of the kernel from its debug object, the firmware, the firmware in system management mode, a program, or no known code. A step that ended at its bound then says where the machine stalled. - The machine of the operation sequences: the test part
operation_sequencesruns a seed sequence of each kernel operation, and the seed cases, on the kernel that ships, each in a new program with a new budget, and checks each answer against the statuses of the reference, the forms of the operations, the table of error details and the budget of the sequence.modustool fuzz replay operations <file>runs one sequence the same way.
Changed
- One table of the context slots, and a start that refuses a taken slot. The root service writes each handle of a program that it starts through one write that refuses a context slot that holds a handle already: a role whose grants take one slot twice does not start, with one line of the log, and loses no handle in silence. The text region of a terminal moved from the handle 7, the call ring of the private store, to the handle 4.
- The root service reads the role of a sender, never its name. Each command of the root ring goes through one border that refuses a word that names no command, then the table of its senders by the start grants that the program received at its start. A rule no longer reads a table by the name of the program after its start, so the nickname of a disk program can never meet a rule of a privileged program; a disk program receives no root ring.
- A glyph cache with a reserved field that is not 0 is refused:
glyph_cache.validaterefuses the last reserved field of the header and the reserved field of a size withBad_Count, and the reserved field of a pair withBad_Pair. The tool writes each of them as 0. - One type for a QUIC connection identifier: the QUIC library holds each connection identifier as a
quic.Connection_Identifier, made byconnection_identifier_makeorconnection_identifier_of_chosenand read withconnection_identifier_bytes, in place of an array and a separate_lengthfield. The optional identifiers of the transport parameters are aMaybeof it, and the fieldshas_original_destination_connection_id,has_retry_source_connection_idandhas_initial_source_connection_idare gone.transport_parameters_writeno longer refuses an identifier, andretry_token_makeno longer givesToo_Long. - A fuzz run always has a count. modustool fuzz with no count of executions runs the count of the check, and refuses a count of 0, so a forgotten argument never starts a run with no end. A long run names its count.
- The bars of
crowd,disk,flowandbudgetare the bar of the rules. Each bar has the gradient of the design rules and a full part of 2 pixels at least for a value above 0, with its value after it in its own cell: the new elementinterface.bar_with_value. The windows of these four programs and oforigin,rightsandframesplace their lines with the layout of the interface package, so a text that is longer than its cell no longer runs over the next one. - The machine test runs its parts at once, and the full check runs it once.
modustool teststarts its test parts together, at most one for each four processors of the host, the longest first, each part on a new data disk of its own, and prints the time of each part as a measure. One table of the tool holds the parts, and the guide follows it; the persistence, the self tests of the kernel, the start that fails and the tests of the loader on the host are parts too.modustool screenshotstakes the pictures and the logs from the check of the flake, which Nix keeps in its store, so a full check runs each machine once in place of twice; the pictures then show the pointer theme of the system. - A word in place of each enum field of a shared record. The tone and the code kind of a run of the terminal, the kind of a value run of the log, the kind of an entry of the palette table, the scope of a replacement row and the writer of a module record are now words that each reader takes through its border. A byte that names no member is refused, and the tables of
inspect.modules(),manual.running()andprogram_modules()leave the writer empty, with a line of the log, where they wrote "unknown" before. - A word in place of the other enum fields of a shared record. The kind of a code run of the terminal, the result and the parameter kinds of an entry of the palette table, the types of a module file, the kinds of an event record and of a fault record of the kernel, the mode of the lockers board, the kind of a storage entry and the self test and the floor states of the boot information are now words that each reader takes through its border, with the same bytes in each record. A value of a setting that the setting does not have now refuses the whole settings page or kept record, where it read as the value 0 before.
- The kernel parts. The formats of the IOMMU, the ACPI table of the processors, the debug exception and the processor counters are pure packages of the kernel with host tests, in folders under
src/kernel, imported askernel:iommuthrough a second source library that only the kernel, its host tests and the tool get: a module or a package of the library that imports one, by its name or by a relative path, does not build, and the tool names its file and its line. The tool also refuses, in a kernel part, a package variable that is not@(rodata), a variable marked@(static)or@(thread_local), a foreign block, an asm template and an intrinsic that reads the machine, so each kernel part keeps host tests that need no machine. - The bound of a glossary term in the check.
modustool checkandmodustool siterefuse a term of the glossary whose explanation has more than 100 words, as they refuse a term with no short definition: the fault names the term, its file, its line and its count of words. The count takes the words between the short definition and the line "Do not use", so a term stays a definition and its guide holds the detail. Ten terms that passed the bound are shorter now. - The tool built once.
nix develop -c modustool <command>runs the binarybuild/tool/modustool, which compiles itself again only when the build key of its sources changes, and prints the time of each compile as a measure. The check of the flake and the release shell run a binary that Nix builds once for each change of the sources of the tool, so a change of a guide or of a host test no longer compiles the tool. - The glossary in one file for each group. The glossary is the folder
docs/glossary/: one file for each of its 14 groups, and aREADME.mdwith the introduction and the list of the groups in their order. A pointer to a term names the file of its group, as (docs/glossary/storage.md, "Commit read back"), and finds a term of that group only. The site keeps the same pages and the same anchors of the terms, and the tool refuses a file that the list does not name, a listed file that is missing and a file whose name is not the slug of its group. - The host tests of the check at once.
modustool checkruns the host tests of each folder at the same time as the others, at most one process for each processor, and writes the log of each folder tobuild/host_tests/. It prints the time of each folder as a measure, and for a folder that fails the end of its log. - Each context of the root service through the check of a taken slot. The input service, the compositor, each device service, the TPM service, the font service and
shortagenow get their handles throughsystem.grant_put, as each other program does, and every value of every context goes throughsystem.value_put,system.values_putorsystem.range_mapped_put, which refuse an index that holds a value, an index of the seed or of the fixed ranges, and a fixed range stated twice. A start with a handle or a value written twice does not run, a device service before its device is armed, and the log says which: "root: cannot start NAME: two parts of its start write the value N of its context, and a value would be lost". - The grants and the terms of a role in one table. The role of each program of the boot image is one row of
program_rolesinsrc/programs/root/roles.odin: its start grants, the services that it connects to, its store, its terminal and the reason of each. The build stops when a program of the boot image has no row, a row names no program, a program has two rows, or the grant System_Part is on a row that is no part of the system or missing from a part of the system, and the page of the grants on the site shows each row with its grants and its other terms. - The private parts of a module. The 16 packages of the library that one module alone compiles in leave
modus:supportformodus:private/<module>/<part>, with their host tests:modus:private/storage/storage_treeand the three other parts of the storage service, the bar and the palette of the compositor, the language and the results of the console, the three parts of the manual, and the parts ofinspect,debugger,kernel_events,inputandroot. The tool refuses a private part that another module imports, and a support package that fewer than two modules reach, with the folder and the one module that reaches it. - One folder of modules by group. The programs and the other modules are one folder,
src/modules, in four groups by what each module is for:system(the root service, the services, the desktop and the tools of a principal),libraries(the modules with no entry that other modules import),demonstrations(the programs that each show a property) andtests(the test modules that only a machine test starts). The path of a source in a stop report, a stack trace and the debugger names its group:src/modules/demonstrations/fault/main.odin:15. - The code of the module cryptography is a private part of the library:
modus:private/cryptography/cryptography_primitivesholds the code of each export butargon2id, and the module exports it with the same names, signatures and error records. The QUIC peers of the tool and the host tests of QUIC import that part, and the check of the imports refuses a relative import that lands in the folder of a module, fromsrc/and fromtools/. - The draw record in one tagged form: a draw record is 48 bytes, a header with its kind, its element and its box in 1/64 pixel, then the fields of its kind only, in the contract package
draw_record. One border reads each record and refuses a word that names no kind, a reserved byte that is not 0, an inverted box, a color with a high byte and a field past its bound; places stay inside 2^23 pixels. The drawing module has the exportsdamage_of_draw_table_11andexecute_draw_table_in_rectangles_11, every window draws the same pixels, the site shows the byte layout of each kind, and a fuzz target tries the border.
Removed
- The rule of a bridge as a contract of its own. The contract package
modus:contract/bridge_requesterholds the rule that gives the devices behind a conventional bridge of PCI one requester, which the kernel and the root service share. The four packagesmodus:contract/iommu,modus:contract/acpi_processors,modus:contract/debug_exceptionandmodus:contract/processor_countersleave the source librarymodus: only the kernel reads them, and a program outside the repository can no longer import them.
Fixed
Machine_Stoprefuses a code that the host cannot receive: a code aboveMACHINE_STOP_CODE_MOST(255) givesBad_Operationwith the error recordBad_Valueof the code, and the machine runs on. Before, the kernel wrote the whole code on the log and gave the host its low byte, so the code 256 ended the machine with 0, the code of a normal end.- The error records of the root ring say the cause.
machine_seal()on a machine whose firmware did not verify the boot program now gives the record Refused of the principals, and no longer a missing grant; a refusedMachine_Keyfromunlocknow has an error record; and an error record that names no command of the root ring now reads "an unknown command". ring.openrefuses a count of pages whose capacity wraps: a count of pages near the top of its type made the capacity wrap to 0, with a mask of every bit, or to a small power of two, andopengave a ring. It now refuses each count past the ring ofCAPACITY_LIMITrecords.- The cost of a memory object never wraps:
operation.memory_list_pagesgave 1 list page for a count of pages near the top of its type, andoperation.memory_costwrapped to a small cost. The list pages are now exact for each count, and a cost past the type is the largest value, which no budget holds. - The runs of memory of the boot report: a run of no page from the firmware is now counted and not kept, and a run whose end passes the top of the addresses joins no run. Before, the end of a run at the top wrapped to a low address and joined a run there that did not follow it.
- Each enum read from a word at its border: an input record of the compositor or of the terminal, a status of the kernel or of the root service, a command of the service ring, a word of an error record, a kind of a value, of a code run, of a list icon, of a palette answer and a scope of a replacement row now name a member or are refused with a line of the log or an error record; no word that names no member is read as a member, and each switch on a closed set of the support library and of the contracts other than the kernel operations names each member. The sentence of a failed call with an error record of zeros says that the call wrote no record, not "no error". The answers of the storage service are one enumeration with the same numbers, a place of a storage connection is its own type,
system.memory_sizegives the status of the kernel, andring_openanswers each cause with its own status. - A network grant with an unknown bit is refused: the word of the grant of an endpoint with a bit from 51 to 63 was read as a grant with fewer rights. The network service now refuses such a word with
Bad_Valueand makes or changes no endpoint, and each network program stops at its start when its grant has one. ring.poprefuses counters that say more records than the queue holds: a writer that wrote its counter more than the capacity past the counter of the reader madepopgive a record for each count.popnow gives no record and changes no counter, aspushrefuses such counters.- No press of the pointer lost while test parts run at once. The compositor writes the place of each press of the left button and the first picture of each window. A machine test that moves the pointer with no other way to read it presses again from the place that the compositor wrote, and opens the menu of the windows only once the window is in it.
- A refused palette table gives no generation. When an entry of the palette table is refused, the snapshot holds no entry and the generation 0, so a reader that keeps the generation of its last snapshot reads the table again.
- A call answer with a status that names no status is refused:
remote.answer_checkaccepted an answer of the remote service whose status word named no member ofremote.Status, and the host then held a status that the service did not name. The host now refuses such an answer as it refuses an answer whose bytes are not its header and its total. - A module page of a program with no row of the roles links to no row. The page of the root service and of a disk program names its grants with no link, where it pointed to a row of the page of the grants that does not exist, and the build of the site stopped.
- Each enum of the programs and of the kernel read at its border. A program that writes a word of no member in a ring, a context or a shared page now gets a refusal from the block, frame and network services, the compositor, the console, the terminal and the test programs, with its error record, a line of the log or a stop of the reading program, where it was ignored or read as another member before. Each choice of the programs, of the boot program, of the kernel and of the operation contract now names each member, so a new member stops the build at each place that must choose its case.
- A refused Integer argument of the palette gives no value:
palette_table.argument_unpackrefused an Argument command of an Integer with a length of text, but still gave its parameter and its value with the refusal. It now gives the parameter 0 and the zero value, as each other refusal of the palette table does. - The diagrams of the guides are drawn. The site showed each mermaid diagram of a guide as its text; it now draws each one as a picture in the page, in the light and the dark form, with its text under it, and
modustool sitestops on a diagram that it cannot draw, with its file and its line. The diagrams and the pictures of a guide fit the column of the page. - A command push that the ring refuses is never ignored. A thread that leaves the completion queue of its kernel ring full loses no answer: the kernel leaves the next command unrun in the command queue and returns with no wait, then runs it after the thread reads its completions.
system.commands_callis the one path ofsrc/library/support/systeminto the kernel ring, under each kernel call and each wait, and runs a batch of commands in one entry: on a kernel ring that holds other records it givesBad_Operationwith the error recordBusyand runs nothing, a wait then ends at once, and an answer with another tag than its command givesRefused.system.stopends the program whatever its kernel ring holds. - A budget no longer pays for the time that the host took. Under KVM the kernel reads the steal time of each processor and no longer charges a thread, its budgets or its strategy for the time in which the host ran no code of that processor. On a loaded host, the program
limitsread 327 ms used by a budget with a limit of 50 ms in one second, and its check failed. The boot linekernel: steal time:says how many processors registered, or why none did.
Security
- A damaged disk stopped the storage service: a branch of a tree, or a root of a tree, with no block and any check in a Pointer made the commit of a change take that check for the number of a slot of its pool, and the storage service stopped on a bounds fault. The storage service now refuses that node or that root as a damaged tree, and writes nothing; the open of the disk marks its store damaged.
0.93.0
Added
- Three more formats of a file of the mark:
modustool mark still --format icowrites an icon file with one PNG entry for each size,--format svgwrites the cells variant as rectangles, with the rule of the dark scheme on request, andmodustool mark animation --animation <name>writes one animation as an animated PNG file, each frame for its time. The smooth variant as a vector file is refused with a sentence. - A share of the processor for each program: the program
schedulerhas a share policy. Withscheduler.policy(1)it gives each program one program weight and divides it between the threads of the program that are ready or that ran, one round each 100 ms, so four programs with 1, 2, 4 and 8 threads that compute have the thread weights 1024, 512, 256 and 128.scheduler.share("paint", 256)gives the programs with a name another program weight, from 32 to 1024. A thread keeps a weight that its program lowered, and gets its weight back when the policy goes off. The key S of the window opens the view of the shares: one row for each program, with its share of the processors in the last period. The kernel has no new operation. The policy is off at the start, and it does not see threads that a program creates and ends between two rounds. - The palette sets the scheduling strategy: the palette has one entry for each scheduling strategy, "set strategy to eevdf", and the strategy that the machine uses says so. The console has the command
strategy(name), withround_robin,fairoreevdf: it calls the new exportstrategy_setof the programscheduler, which holds the right to change the strategy and must run. A press of the pointer in a field of the form of a command puts the caret there, and a press on a candidate takes it. - The pointer on the scroll bars of the palette and of a completion list: the scroll bar of the palette, of the candidates of its form and of the completion list of the console takes the pointer: a press on an arrow button moves the rows by one, a press on the track by one page, and the thumb follows the pointer. The chosen row follows the view. The wheel of a pointing device is not read yet.
- A module from a source outside the repository:
modustool module-build <folder>builds a module whose source is in a folder of another project, with the steps of a module of the system. The folder holds one Odin package and a filemodule.txtwith the name of the module, its imports, its settings of the compiler and whether it is a library module, onekey: valueon each line. The tool finds the system with--systemor with the environment variableMODUS_SYSTEM, writes<name>.moduleand<name>.debugin the folderbuildof the module, and prints the hash of the module and the names of its exports. A source of such a module is in its folder, in the source librarymodusor in the libraries of the compiler: the tool refuses each other place. The tool does not yet put such a module in the boot image of a machine. - Programs from a disk: the console command
start_from_disk(name, hash)starts a program whose module file is an object of the storeprogramsof the storage service, and not a file of the boot image. The root service reads the bytes without waiting for the storage service, starts them only when their BLAKE3 hash is the hash of the command, and gives the program the log and a window and no grant, whatever its name.modustool test disk_programswrites the data disk and runs the machine. - Kind icons in the completion list of the console. Each row of the completion list starts with the kind icon of its name, as each row of the palette does: a command, an export, a command that makes a record, a module, a variable or a line of the history. A reader tells them apart before reading the name.
- Two rules of the system are checks of the tool.
modustool checknow compares the count of the kernel operations with the count that the properties state, and refuses a source of the system that calls an allocator.modustool rule-checksruns the two checks alone. - A step over a call in the debugger. The command
step_over(thread)of the console, and the exportdebugger.step_over, run a thread to the next source line of its procedure: a call of the line runs to its end, and the thread does not stop inside it.step_linestill enters the call. - Keyboard layouts. The setting
keyboard_layoutchooses the layout of the keyboard:us(QWERTY) orfrench(AZERTY). The window ofsettingsshows it as a row of buttons, andsettings.set("keyboard_layout", "french")sets it; a change holds from the next key. A key whose character is outside ASCII in a layout gives no character yet. - A window for the debugger. The program
debugger_windowshows the threads of a program, the stack of the chosen thread, and the variables and the source line of the chosen frame. A key does each act: hold a thread, let it run, one instruction, one line, one line over each call, detach. - A film of the boot.
modustool film bootfilms the start of a machine: the check of the boot program on the screen, the boot display held at its stage, the desktop, and the window of the boot display with the records of the kernel. The machine of a film has a display with no window, and the scenario starts it, so each state stays readable. - The window of the debugger sets breakpoints. In the window of the debugger, the key
bputs a breakpoint at the source line of the chosen frame, the keys0to3remove the breakpoint with that number, andgshows the registers of the chosen thread. - An outside module in a machine. The command
modustool program-diskwrites a data disk whose store of the programs holds module files, and prints the line of the console that starts each one. A machine with that disk starts a module that was built from a folder of another project withstart_from_disk, with no grant and no change of the boot image. - The palette builds its form from the descriptions. A setting is one row of the palette with a button for each value and a line under the value in use: Left and Right choose, Enter or a press sets it; the scheduling strategy is such a row too. A field of a command with a few closed values, such as the field of
strategy, is a row of buttons. The input band says the mode of the chosen entry: "enter: run", "enter enter: destroy", and "shift enter: go to" when an open window acts on the same thing. Shift and Enter then bring that window to the front with the focus on its element: the window ofsettingsnames the button of the value in use of each setting, andschedulerthe tile of the strategy in use. A program names an element withelement_act_name, and writes no other code for it. The palette table is at version 4. - Grants for a disk program. The principal gives a disk program a grant by its nickname, the name of its entry in the store
programs:allow("visitor", "store")gives it a store of its own,disk-visitor, from its next start, anddisallowtakes the grant. The disk grant table binds each nickname to one hash: a start of the nickname with another hash is refused before any read, andstart_from_disk("visitor", "")starts the file of the row.nickname_move(nickname, hash)points the nickname to a new file, and its grant and its store follow. The root service refuses the ring of the root service, a right over the machine or a device, and the right to act for the principal. The table of principal 0 lasts until the machine stops; the store stays on the disk. - The IOMMU. On a machine with the IOMMU of Intel, a device reaches only the memory that its device service declared with
Memory_Physical, and an access to another page is refused and written on the log as a DMA fault, with the device and the address; no program stops. A machine with no IOMMU writes one line at its start and runs as before.modustool test iommuruns the system on such a machine, with a test device service whose read into a page that it did not declare does not arrive. - The palette shows a size or a time as a number with its unit. A field of a command that counts a size or a time shows its unit after the number, also while the field is empty:
buffer(count: 4 pages),wait_stop(milliseconds: 3000 ms), and the prompt says "an Integer, in pages". A press and a release on a button of a field take its value, as Tab does. The palette table is version 5, with an integer unit for each parameter. - The machine passphrase.
machine_passphrase()sets an optional passphrase of principal 0, the machine, typed two times in the window ofunlock. With it, the disk grant table of principal 0 is kept in the storeprograms, signed by the machine key, and a grant of a disk program survives a restart: the window ofunlockasks for the passphrase at each start, and until it is typed the machine runs and its disk programs start with no grant. A table that another key signed is refused with a line of the log, gives no grant, and is kept on the disk: only a new passphrase on a machine with no record writes over it.disk_persistence(nickname, setting)sets how long a row lasts:persist,forget, or the global setting. With no machine passphrase, the table lasts until the machine stops, as before. - The window of the debugger takes a typed place and a click. A debug place field and the buttons break at, watch and memory put a breakpoint at a procedure or at a file and a line, a watch on an address or a global, and show 128 bytes of the program from a place, in a new card that the window reads again with the threads. A click on a row does what a key does: a row of the threads or of the stack chooses it, a row of the source puts a breakpoint at its line, and a row of the breakpoints removes it. A developer then needs the console for no act of the debugger.
- An export states the unit of a number. An Integer parameter of an export can count a size or a time: its source gives it a type such as
value_kinds.Size_In_Bytesorvalue_kinds.Time_In_Milliseconds, and the description of the export holds the unit. The palette shows the unit after the number of the field, as for a built-in command of the console:hkdf_sha256_expandtakes a length in bytes,debugger.memoryanddebugger.watchbytes,debugger.wait_stopmilliseconds,storage.set_sizebytes. The unit is part of the meaning of the export: a replacement whose export counts in another unit fails the check of the loader, and an import declaration with another unit, or with a plaini64, stops the build. - A disk program without the tool. The module file service
programsputs a module file in the storeprogramson a machine that runs:programs.receive(nickname, path)fetches the file from a web server (10.0.2.100 port 80, the address that QEMU gives to a server of the host), stores it under the nickname, and gives the BLAKE3 hash of its bytes to type instart_from_disk.programs.list()gives each module file of the store with the hash of its bytes, which the service reads again. The service needs no new kind of grant: its private store is the storeprograms, and it serves a caller that acts for the principal of the store only. The root service still checks the bytes at each start. An import of a disk program from the same store is not built. - The console writes a character from its code point:
character(233)gives the text of é, two bytes of UTF-8, so a line of ASCII can build a text of another language before the keys type it. A control character, a surrogate and a number past 1114111 are refused. - The releases page has a Subscribe menu. On the pages Releases and News of the site, a button "Subscribe" under the heading opens a menu with the Atom feed of the page and a link to watch the releases on GitHub. The menu works with no script, and Escape or a click outside closes it.
- A disk program imports a module of the store of the programs. When a disk program imports a module that the boot image does not hold, the root service reads the files of the store
programsof the principal, computes the BLAKE3 hash of the bytes of each, and gives the loader the file whose hash the import names, under any nickname. The imports of that file are found the same way, with bounds of 64 entries, 8 modules and 4 levels, inside the deadline of the load. The bytes are paid by the budget of the disk programs. A hash that no file has refuses the start with one line of the log that names the import. - A guest. A program runs another system on the processor, with the AMD virtualization support: the new kernel operation
Guest_Run(the kernel has 34 operations now) runs the guest processor of a program that no thread ran, whose mappings are the guest memory, and gives each exit (a port write or read,hlt,cpuid, an access to memory) as its completion record. The programguest_demoruns seven bytes of 16-bit code that write 42 to the port 0x80, and receives the write; a machine with no support givesUnsupported. - Interrupt remapping on Intel. On a machine with the IOMMU of Intel whose units offer interrupt remapping, a device sends only the message interrupts that
Device_Createmade for it: a device service can no longer make its device write another vector into the interrupt addresses. A refused interrupt is a line of the log with the device, the entry and the reason, and a count of its own; nothing stops.Device_Createof the kindMessagenow takes the base of a memory base address register of the device, and the kernel tells each unit to forget an entry through its queue of invalidations.modustool test iommuruns the system with remapping on, and a test device service whose forged messages are refused. - The debug object of an outside module in a machine.
modustool program-diskputs the debug object of each module file beside it in the storeprograms, under the hash of the module, and refuses one that names another module. Atattach, the debugger service reads it through a connection that reads only, which the root service gives with the debug access (the commandDebug_Storeof the root ring), checks that it names the module, and names the procedures, the lines and the variables of a disk program:outsider entry outsider/main.odin 81. A connection of a service can now read only (isolated.CALLER_READS_ONLY, bit 47; the amount has bits 0 to 46). - A stop report of a disk program names its procedures and its lines. The root service keeps the stop report of a disk program that stopped on a fault, with only the frames that a module record holds, 8 reports at most and 4 for one principal, until a run of the nickname ends with no fault, and writes
root: kept the stop report of <nickname>, a disk program of principal 0: stop_report("<nickname>") names its frames.stop_report("<nickname>")in the console calls the new exportstop_reportof the debugger service, with no attach: the service receives the report with the connection that reads only to the storeprograms(the commandDebug_Store, with the flag values[6]), reads the debug object of the module, and gives one row for each frame with the procedure, the file and the line:outsider_fault visitor::fault_three outsider/main.odin 169. The caller must act for the principal of the program. The error unitStop_Reportsnames a nickname with no kept report. - The grants of a disk program of a named principal persist across a restart. A console that the desktop starts during the session of a named principal acts for that principal: its
allow,disallow,nickname_moveanddisk_persistencechange the disk grant table of that principal. The root service keeps that table as the objectgrant_tableof the storeprograms.principal.1, with a tag under a key thatunlockderives from the unlock key of the principal and gives withPrincipal_Unlock(values 0 to 3, and its origin in value 5). The root service reads the table at the first unlock of a run; a table that does not verify gives no grant, and is written over only at the creation of the principal. - A key sealed by the TPM, and a recovery key: on a machine with Secure Boot on,
machine_seal()gives principal 0 a machine key that the new TPM service seals to PCR 7 and PCR 11, so the disk grants of the machine persist with no passphrase, and an older or a changed system, or a copy of the disk on another machine, opens nothing. Before each unseal the TPM proves that it made the sealed object under the PCR values of its policy, so a record that another system on the machine wrote is refused. The window ofunlockshows a recovery key one time; when the TPM refuses, that key opens the machine key, and with Secure Boot onunlockseals it again to the system that runs. - The nickname of a disk program with its hash in the monitor and the menu. The menu of the windows, the palette and the monitor show a disk program by its nickname, with the hash prefix of its file (its first 16 hexadecimal digits) faded beside it, both from the root service that checked the bytes; the title bar shows the nickname alone. A mapping that does not fit in the 12 mappings of a start is dropped with one line of the log, no longer in silence. The record
Client_Addof the control ring of the compositor holds the nickname and the first 8 bytes of the hash; the window of a disk program takes its nickname as its title, whatever title the program asks for. The new disk program page (modus:contract/disk_program_page, the fixed rangeDisk_Program_Page) holds the program slot, the program serial, the nickname and the whole hash of each disk program that runs; the root service maps it read-only into each program that it starts with the right Inspect.Program_Stategives two more results: the program slot and the program serial. The monitor is 520 by 560 pixels, wraps a long name inside its column, and counts the programs whose rows do not fit; the menu of the windows is as wide as a nickname of 23 bytes with its hash prefix. - The IOMMU of AMD, with its interrupt remapping. On a machine with the IOMMU of AMD, which the firmware lists in the ACPI table IVRS, a device reaches only the memory that its service declared with
Memory_Physical, and sends only the message interrupts thatDevice_Createmade for it, as on Intel: the same domains, declarations, device windows, end of a grant and lines of the log, behind one switch on the vendor. Each device with no service has an entry of the device table that refuses every access and every message. A refused access comes from the event log of the unit as the line of a DMA fault, with the device, the address and a count.Device_Createof the kindMessagegives, on AMD, the address of the first processor and the index of the entry of the interrupt table of the device as the value. The virtual wire of the 8259 and the NMI of the chipset pass by the settings that the firmware gives their device. A reserved memory range of every device or of a range of devices, or two units that name one device, leave the IOMMU off, with one line. The line of a machine with no IOMMU now names both tables.modustool test iommu_amdruns the system on QEMU withamd-iommu,dma-remap=on,intremap=on. - A block device that drops a write, as a test.
modustool test powernow runs the storage service on a disk that answers Ok to the write of one block of a commit and does not keep it. At the next start, the service refuses that commit with one line of the log and uses the commit before it, and the object reads its previous version. - The keys of a named principal sealed by the TPM, and their recovery key: on a machine with the TPM service and Secure Boot on,
principal_create()has the TPM seal the keys of the new principal to PCR 7, PCR 11 and the passphrase together, so another system, another machine or a copy of the disk opens nothing, and the TPM counts each wrong passphrase and then limits the rate of the tries, while its lockout hierarchy has an authorization value that an attacker does not know. The window ofunlockshows a recovery key one time; when the TPM refuses, or when the passphrase is lost, that key opens the keys, and a new passphrase seals them again to the system that runs. The TPM service sendsTPM2_Shutdownafter each use of a passphrase that is not a counted failure, so a stop of the machine after an unlock counts no failure. - Keys that type characters outside ASCII. A key record carries a code point: the layout of France gives é, è, ç, à and ù from their keys, and â, ê, î, ô, û, ë, ï, ü and ÿ from the dead keys
^and¨. The line of the console, its history file, the search of the palette and a passphrase are UTF-8, and each key moves over or removes a whole character. Each glyph cache and Spleen draw the Latin-1 Supplement U+00A0 to U+00FF: the glyph cache is version 3, keyed by a character index of 191 characters, and the moduletext_shapingtakes 191 advances. - The same object is kept one time. The storage service finds the current object of a store by its hash, so two entries of one store with the same bytes take their blocks one time: an object of 1 MiB written under two names holds 261 blocks of the store, and the second commit writes no block of it. A change of one name copies only the path of the blocks that it changes, and a removal of one name keeps the other. The index is in the memory of the service and the open of the disk makes it from the entries, so a loss of power leaves nothing of it to repair; each candidate is confirmed from its blocks before an entry names it. While a store has a writable share of one of its trees open, its commits write their own blocks and add no root that a later write can find, so the holder of the share cannot learn what the rest of the store holds.
- The wheel of a pointing device moves a view. The input service asks the PS/2 mouse for the IntelliMouse protocol and reads its wheel; each wheel notch over a view moves it by three lines: the lines and the completion list of a terminal, the text of
manual, the cards ofhall_of_fame, a list, and the rows of the palette. Only the window in front gets the notches, as it gets the rest of the input. The log lineinput: okis nowinput: ok, the mouse has a wheel, and a pointer record has a fourth value, the notches. - The hash of a disk program in the exports of the monitor. Each row of
monitor.programs(), and ofprograms()in the console, has a new fieldhash: for a program that the root service started from a disk, the whole BLAKE3 hash of its module file in 64 hexadecimal digits, from the disk program page, with its nickname as itsname; for each other program, an empty text. The console and the host then read the file of a disk program that the window of the monitor shows, andjoinit with the rows ofmanual.running()by the hash. - A release publishes a disk image of the system.
modustool release imagebuilds the release volume with the keys of the publisher of the system, puts it in a GPT disk for a USB key, compresses it with zstd, and writesSHA256SUMS.txtand its Ed25519 release signature indist/; it refuses the test keys and every boot image of a test.modustool verifychecks the signature, then the hash, anddocs/INSTALL.mdgives the same check with OpenSSL, the write withdd, and the setting of Secure Boot. The release workflow publishes the files at each tagv<release number>, the check workflow runsnix flake checkat each push, and the home and the page of the releases name the files and the release signing key. - A release in one command, with a signed tag:
modustool ship step(orcorrection, or a release number) writes the release from the fragments, commits it, makes the annotated and signed release tagv<release number>, and pushes the commit and the tag tomasterin one atomic push. It refuses a branch other thanmaster, a tree with changes that are not committed, and amasterbehindorigin. Whenoriginmoved during the release, the push is refused and nothing goes out:shipundoes its commit and its tag, mergesorigin/master, and tries again with the next number, three times at most.--dry-runprints the number, the commands and the release, and writes nothing. - The console colors each field by its value kind. An Integer field of a record states its integer unit in its description, from a type of the contract such as
value_kinds.Size_In_Pages, and the checks of a record, of a replacement and of an import declaration compare it. The console draws a size and a time of a table or a record in the color of its kind, a time in the color of the boot program and a size and a number in the color of memory, with the unit once in the head of a column (time (ms)) or after the value of a record (120 ms). The palette shows the same colors.memory(),modules(),measure_completion()andmonitor.programs()state their units: their fields are nowmemory,free,used,reserved,budgetsandfree_no_budget_holdsinmemory(),sizeinmodules(),collect,rank,rowsandcolorsinmeasure_completion(), andresidentin place ofpagesinmonitor.programs(). - AltGr on the layout of France. With the layout of France, AltGr (the right Alt key) with the keys of the row of the digits types
#,{,[,|,\,^,@,]and}, and with the key of$types¤. AltGr with the key of 2 and of 7 gives the dead keys~and, which type ã, ñ, õ, à, è, ì, ò, ù and their capitals, such as À. AltGr withe` types no euro sign yet: the fonts do not draw it. - An entropy device. A machine with the entropy device of virtio (
virtio-rng-pci) starts the entropy service, and the root service mixes 64 bytes of the device into the generator that seeds each program after it, beside the sources of the processor and never in their place. A read of zeros, of one value, with no byte, or equal to the read before adds nothing and counts as refused; the seed strength does not change. A machine with no such device starts as before and says so on the log, and the window ofrandomnessshows the device. - The program
manualopens the links of a page. A link to a term of the glossary or to a heading of a guide opens its link page, which the boot image carries in the new resourcemanual_pages, and a link to a record opens the page of the module that describes it. Tab and Shift+Tab move the focus between the links that open, Enter opens the link with the focus, and Backspace goes back to the page before. An address of another host is shown after its link and does not open. The table of all the modules moved from Tab to the keyo. - A change of the passphrase of a named principal. In a console of the session of a named principal,
passphrase_change()opens the window ofunlock, which asks for the current passphrase (the TPM counts a wrong one) and then for a new one two times;recovery_key_change()asks for the current passphrase and shows a new recovery key one time, and writes the file only after Enter. The window and the line of the console both give the end of the change: what changed, or why nothing changed. The keys stay the same keys. The console of the machine cannot ask, and a lock during a change stops it. - Error details for the kernel operations. A kernel command can name a table of error details: bit 31 of its kind, and the address of the table in its last value (
system.call_with_error_details). When the kernel refuses the command, the table gets the error record, then one error detail for each other argument that the kernel finds wrong: a handle, a count above its limit, an unknown flag, a choice out of its range. A table that is too small holds the first details and counts each one. A command with no table runs the same lines of the kernel as before: only the default branch of the dispatch, which already refused an unknown operation, reads the bit.LogandGuest_Runtake no table. No kernel operation is added. - The euro sign. Each font of the system draws €, and AltGr with
etypes it on the layout of France, so a principal writes a price such as5 €. € is the first added character past the Latin-1 Supplement: the glyph cache is version 4, with 192 characters, and the moduletext_shapingtakes 192 advances. - The history of each measure, release by release. Each release keeps a copy of the measure record in
docs/measures/releases/, whichmodustool changelog releasewrites when a full check measured the release, andmodustool measure-historygives the old release tags their copies. The page of the measured numbers draws one chart for each measure over the releases, from zero, with each number, its commit and the noise of the host. - The program
manualshows a declaration that no module describes. A link of the documentation of a module to a procedure, a type, a constant or a global variable of a support package or of a contract package, such assystem.word_wait, opens its page: its file and its line, its one line of Odin and its comment. The build takes the page from the source, and the resourcemanual_pagesholds one page for each such link. - A dropped write found before the next commit. Each commit of the storage service now reads back the blocks that it wrote before it writes its root, then reads back its root. When the disk answered Ok to a write and did not keep it, the service refuses the commit with
Device, unitDropped_Writes, writes one line, and goes on at once from the commit before it, with no restart: the program loses that one commit, never the state of an object, and no root of a refused commit reaches the disk. The erase of versions reads back its second root and its zeros too, and counts as zeroed only the blocks that read back as zeros.storage.stores()gives the commits refused, the blocks read back and the time of those reads as a measure. - Glyphs drawn on demand: the new font service
glyphsdraws characters past the 192 of the glyph caches into a demand cache that each program maps read-only. It draws its whole subset, the 47 Greek letters of B612, at its start, so the cache tells no program what another draws. The programinterface_fontshows the Greek letters. - Processor counters for a program. A thread counts the instructions retired, the cycles, the cache misses and the branch misses of its own code, in user mode only, with three new commands of
Thread_Control:Start_Counters,Read_CountersandStop_Counters(system.thread_counters_start,system.thread_counters_read,system.thread_counters_stop). The start and the read take the machine handle with the new rightCounters, which the root service gives by the new start grantCounters: a count of the misses of a shared cache is a side channel, as a precise clock is. The stop needs no right: it only takes a capability away. The kernel keeps the counts of a thread at each switch, so no count of another thread or of the kernel reaches it. The kernel programs the general counters of Intel (leaf 0xA) and of AMD Zen (the core counter extension); on a machine with neither, the commands giveUnsupported. The programcounterscounts a loop of 1 000 000 turns and the same reads of 2 MiB in two orders. No kernel operation is added. - The deepest stack of the kernel, measured. Each build prints the deepest chain of calls on the kernel stack of 16 pages, procedure by procedure, with the bytes that stay free, from the frames that
llcwrites and the calls of the linked kernel. It counts the two frames ofexecuteof a command with a table of error details and one interrupt over the idle wait, and the build fails when less than 4 pages stay free. - A dark and a light appearance of the desktop: the setting
appearancetakesauto, the default,darkorlight(settings.set("appearance", "light")). Withautothe desktop is light from 07:00 to 19:00 and dark at night, by the hours of UTC until the time zone is a setting. At a change each window draws once in the new colors: the background, the bar, the windows, the palette, the console and the windows of the interface package. The colors of the design rules are one table with a value in each appearance, and host tests compute each contrast that the rules name in both. The boot display stays dark, and the colors that a program owns keep their dark value. A test machine now has a real-time clock at 01:00 UTC of the day of the host, so the pictures of the tests are dark at any hour. - A program reads its own log records. A caller of the log service that does not act for the principal now receives its own records from
log.records(after)andlog.value_runs(after), in place of a refusal: the records with its program slot and its program serial, which the kernel now writes in each log record with the own number of the record among the records of its program. Its rows, itsafterand itslostcount its own records only, so it receives no number or count of the records of other programs, and a new program in the same slot does not read the records of the program before it. A reader of the log never keeps a record that the kernel was writing over during its copy. The programlog_readerchecks it in the machine test, in two runs. - The action bar. The line of keys at the bottom of a window is now the action bar of the interface package: each item is its key combination drawn as keycaps, then the name of its action, with a divider between two items, in the colors of both appearances. A press on an item runs its action, as its key does. The items that do not fit go into a list behind a button
more, by the priority that the program gives; the list opens upward and takes Up, Down, Enter and Escape. A window can wrap its items on two rows instead.manual, the terminal,settings,notes, the debugger window,unlock,interface_elements,tally,ringsandpaintuse it. - A starter reads the log records of its children. The log service has two new exports,
program_records(program, after)andprogram_value_runs(program, after). They give the records of the program whose program handle the caller lends with the right Read, numbered by the own numbers of that program, and no record of another program. A starter holds the handle of each child, so a test reads what its children wrote without the right to read the whole log. A grandchild is read only with a handle that the child gives. A handle that names no program gives the error recordHandle_Kind. The programlog_readerstarts two children and checks that it reads the one record of each child, and none of an earlier run. - A measure of the similarity of the code.
modustool similaritygives a similarity score from 0 to 1 to the code pieces of the Odin sources, groups the similar ones in families with the factoring template that a procedure can take and its blanks, and ranks the families by the syntax nodes that a factoring saves, each node counted once, with a home that obeys the import rules.similarity near <file>:<line>lists the procedures most similar to one, andsimilarity pairgives the score of two. It never edits a source; a family kept on purpose is a line oftools/modustool/similarity_kept.txt. - The machine passphrase and the TPM together. On a machine with a TPM and Secure Boot on,
machine_passphrase()has the TPM seal the machine key with the passphrase, in the recordMACHINEP: the TPM counts each wrong machine passphrase, another system opens nothing even with the right one, and a recovery key, shown one time, opens the key and then seals it again to a new machine passphrase. A machine with no TPM, or with Secure Boot off, keeps the record under the passphrase alone, and a machine key sealed by the TPM with no passphrase keeps its form. - The time zone as a setting: the setting
time_zoneis a fixed offset from UTC, from-12:00to+14:00by quarters of an hour, with+00:00as the default (settings.set("time_zone", "+08:00"), or a row of four buttons in the window ofsettings). The bar shows the local date and time, and the settingappearanceautoturns light at 07:00 of the local time. The zone has no summer time: a principal in a zone with summer time changes it twice a year. The date of the system stays in UTC. The kept record of the settings has a new version, so the settings of an older disk read as the defaults once. - A machine test of zeros that the disk does not keep: in
modustool test principals, the disk of the change of the passphrase answers Ok to the write of zeros over the old file of the principal and keeps its bytes. The test checks the line of the storage service that reports the block, checks that the row of the erase counts only the zeros that the disk kept, and finds no part of the old file outside that block of the image. - Fresh bytes for a running program. Every 30 seconds the root service reads 32 bytes of the entropy device, mixes them into its generator, and writes 32 bytes of its stream for each program in that program's own fresh bytes page (
modus:contract/fresh_bytes, the fixed rangeFresh_Bytes_Page), which it maps read-only into each program that it starts by its name, into the compositor and into each disk program. The generator of a program mixes a new change of its page into its key at its next refill and before a key or a child seed, never at each draw, so a key that a program makes late in its life has bytes newer than its start, and a reader who copied the state of a generator once loses it at the next mix. The first refresh writes one line of the log, a refused read one warning, and after 3 refused reads in a row the root service reads no more; a machine with no entropy device writes no fresh bytes. The window ofrandomnessshows the mixes of its generator in a new row. - The recovery key of a named principal with no wrong try. The passphrase prompt of a named principal whose keys the TPM seals has the item Ctrl+R "recovery key" in its action bar, as the prompt of the machine passphrase has: it asks for the recovery key at once, so a lost passphrase costs no try that the TPM counts against the principal and the machine. Enter with nothing at the recovery key goes back to the passphrase.
- The font of the cells on demand. The font service also draws the 128 box-drawing characters, the 32 block elements and the five Greek letters of Paper Mono (Λ, Ω, λ, μ, π) at its start, in Paper Mono with and without the grid fit and in Paper Mono SemiBold, and the terminal draws them in its cells:
character(9472) + character(955)in the console shows ─λ. The demand cache keeps the glyphs of each of these glyph caches apart, and grows from 1 150 976 to 4 395 008 bytes. - The client keys of
remoteacross a restart. A client key that a principal allowed withremote_allowis now also a key of the disk grant table of that principal, under the tag of the table, so it lasts across a restart of the machine as the other grants of the principal do. After the read of the table, at the unlock of a named principal or when principal 0 gets its machine key, the key holds again with no new allow. A key that two principals allowed, one in the run and one in its table, is contested: it acts for neither of them, andremoterefuses it in the handshake, until one of them revokes it.remote_disallowtakes the key out of the table and is never refused: it starts the writes of a table whose writes failed again, a read of the run takes out a key revoked before it, and its result is now a sentence that says when the key can come back from the disk at the next start. An allow is refused while the table takes no change, as a change of a disk grant is.remote_clients()has a new columnstate:holds,lockedorcontested. The persisted table has the format 2, with 1136 bytes; a table of the format 1 is refused as an older format that this system does not read. - The byte layout of each record of the module file: the guide of the module contract shows the header, the table directory and one record of each table as a diagram in rows of 8 bytes, with each field as a rectangle over its bytes, its type and its comment under the pointer. The tool takes the offsets and the sizes from the compiler and the types from the source, writes the same layouts as text in the guide, and
modustool checkfails when that text differs from the code. - One shared domain for the devices behind a conventional bridge. The devices behind an older bridge of PCI, which give their accesses one shared requester, now work with the IOMMU on: they have one domain, which the kernel makes at the first declaration of a service only when that service holds the registers of each of them, and ends when it no longer holds one of them. A declaration that misses one gives
Bad_State, with one line of the log that names the device. A device of the group whose registers come later, and that the service does not hold, ends the domain, and the message interrupts of the group arrive only while the domain lives. The root service gives every device behind such a bridge to the service of the first one that it starts: the registers of each other device come in the grants after its own BARs (pci.GRANT_BRIDGE_DEVICE). On AMD, the alias of the table IVRS to the shared requester is accepted when each of its sources is behind the bridge. The machine ofmodustool test iommu_amdhas its disk of the measures and an entropy device behind a conventional bridge. - Fuzzing of the borders of the system:
modustool fuzzgives the readers of the module file, of the debug object, of the storage format, of QUIC and TLS, of TCP and of HTTP millions of inputs on the host, guided by the edge counters that LLVM adds to their packages, and minimizes each fault that it finds.modustool checkruns the corpus of each fuzz target and a fixed count of new inputs with the seed of the sources. - A fallback chain of fonts by script. A character past the glyph cache takes the first font of the chain of its script that has it, drawn on the baseline and at the cap height of the first font: the cells of the terminal draw the Greek letters of B612 that Paper Mono lacks (
character(945)shows α), and the interface draws the box-drawing characters of Paper Mono. At its start the font service writes what each chain draws: 47 of the 49 Greek letters (no font has Π and ρ) and none of the 96 Cyrillic letters.
Changed
- One source library for a program of a third party: everything that becomes the system is in the folder
src, and the code that the programs share is one source library,modus, insrc/library. A source imports a package by one name,import "modus:support/system"orimport "modus:contract/ring", in place of"support:system"and"contract:ring", and the compiler gets one flag,-collection:modus=src/library, in place of two. A program outside the repository writes the same import lines and gives the same flag. The kernel gets the same library as a program, so the tool, not the compiler, now refuses an import of a support package in the kernel or in a contract package: each build stops on it with the file and the line, andmodustool library-importsruns that check alone. - The icons of the site from the generator of the mark: the icon file, the vector icon, the icon of a phone and the icons of the manifest are rows of the one table of the files of the mark, which
modustool mark usesprints. The vector iconicon.svgis now the cells variant, one rectangle of one color for each run of cells, so the browser computes no color of the heron; the other icons keep their pixels. - The tool of the project is
modustool. The commandkerneltooland the foldertools/kerneltoolhave the name of the system:nix develop -c modustool <command>, intools/modustool. The tool builds the whole system, not only its kernel. Each line that the tool prints starts withmodustool:. - The QUIC library follows two more rules to the letter. Each PATH_CHALLENGE of a peer gets its own PATH_RESPONSE, for at most 8 challenges that wait; before, a second challenge replaced the first. A known extension of TLS in a message where the standard does not specify it now fails with illegal_parameter, and no longer with unsupported_extension.
- A module states the budget that it asks for. A module file has the new table
Budget: the pages, the programs and the threads that its source states in the constantMODULE_BUDGET, with the reasons in its comment. The root service gives a program of the boot image its request up to 16384 pages, 8 programs and 32 threads, writes a line on the log when it gives less, and keeps two exceptions, each with its reason; a module with no request gets 2048 pages, one program and one thread. A disk program gets its request up to 8192 pages, one program and 4 threads, from one budget of 16384 pages, 4 programs and 16 threads that pays all disk programs, so a file of a disk cannot take what the programs of the system need. A start that fails for the budget names the part that is short. The new table changes the hash of each module. - The focus of a button is a white frame. A button with the focus has a white frame of 2 pixels inside it. A button that is open, or that shows the value in use, is blue already, so the blue of the focus alone did not show where the focus was: after a go to of the palette, the frame shows the button that the palette went to.
- The tool counts the parts of the budget that a module asks for. The constant
MODULE_BUDGETof a source now has the typesystem.Stated_Budgetand states only what the tool cannot count: the working memory, the programs, the threads and the size of the window, as the constantsWIDTHandHEIGHTthat the program passes todisplay.open. The build adds the pages of the module and of each module that it imports, 68 pages for the first thread and 19 for each other one, and the two pictures of the window, and writes the sum in the tableBudget; a module that grows asks for more with no change of its source.modustool test descriptionsprints the four parts of each request, and the measure of a build has one line with the request of each module. The 39 programs that state a budget ask for the same totals as before. - A send with no copy in the network service. The network device reads the data of each datagram and segment that a program sends from the datagram region of that program: the network service copies only the first 8 bytes of the header, for the check of the ports, and writes the headers of IPv4 and Ethernet. The frame service holds each datagram region with the right Read only, as a read region (the commands
Read_Region_AddandRead_Region_Removeof the frame contract), so on a machine with the IOMMU the device reads it and cannot write it. The completion of aSendnow comes when the device read the datagram, not after a copy: a program writes its place again only after it. When an endpoint ends, the log says how many bytes of the data the network service read on send: 0. - The programs that show a picture import the drawing module. A Picture record now names its pixels by values: the number of its picture memory, the index of its first pixel there and its stride, in draw record version 8. The drawing module reads one picture memory of the program in place, and its exports are
damage_of_draw_table_8andexecute_draw_table_8, which draws one damage rectangle for each call.heron,life,paint,plasma,processors,temple,threadsandworkersdraw their windows through it: 32 programs in all. The terminal and the compositor keep the interface package compiled in. - The terminal and the compositor import the drawing module. A Text_Grid record now names its cells by values:
draw_text_gridcopies the cells into the text table of the frame, and the record holds their first byte, their bytes and the columns, in draw record version 9; the exports aredamage_of_draw_table_9andexecute_draw_table_9, with the same six parameters. The compositor draws its screen table in parts, one call for each window that a damage rectangle meets and one for the bar, each with the one picture memory of its surface. 34 programs draw through the module; the interface package hasdifference_through_moduleanddraw_part_through_modulefor a program with no window layer. - An export takes more than six parameters: an export takes up to 12 arguments, its parameters, the buffer of a result and the error record included; the first six go in registers and the others on the stack, as the C convention of the machine passes them. The console, the call from the host, a call host and a service call such an export, and the tool describes it and checks the declaration of its import. The module format is version 2, with a description of 168 bytes for each export, so a module of an earlier release does not load. The palette lists no command with more than six parameters: the console line calls it.
- Text is UTF-8 in every contract: the palette table (version 6), the result runs, the candidates, the typed values of the palette, the records of the terminal and the names of the objects of a store hold UTF-8 in place of the bytes 32 to 126, checked at each border by one rule that refuses an overlong form, a surrogate, a code point above U+10FFFF, a broken sequence and a control character. A writer cuts a text after a whole character, the cells of the terminal hold one character each (a cell of a text grid is a code point of 16 bytes: draw record version 10, exports
damage_of_draw_table_10andexecute_draw_table_10of the drawing module), and a character that the font lacks draws one replacement glyph, a box, never a byte. The names that are identifiers of the system (modules, exports, fields, settings, programs, channels of the log, and the name, act name, setting row and value of a palette entry) stay ASCII. A name of an object of a store with a control character or bytes that are not UTF-8 is now refused. - The IOMMU covers several units, bridges and reserved ranges. The kernel programs up to 4 remapping units of Intel, as a real machine has, and gives each device the unit that the firmware names for it. A device behind a bridge of PCI Express has its own domain; a device behind a conventional bridge gets none, with one line on the log, because every device behind it shares one requester. A device that a reserved memory range of the firmware names keeps that range, so a machine with such ranges runs with the IOMMU on, and no program gets the range. An invalidation forgets only the domain of the device that changed. A domain lives while its service holds or maps the registers of the device. On a machine with the IOMMU,
Memory_Physicalaccepts a memory object that is not contiguous and gives a device window where its pages follow each other, so the datagram region of an endpoint no longer needs 512 KiB of contiguous memory when the unit of the network device gives such windows;Device_Createof the registers of a device says whether it has a domain and windows, andBoot_Report.iommu_unit_countsays whether an IOMMU is in use.Memory_Maprefuses to map the registers of a device with a domain into another program. The test machine with the IOMMU has its disk of the measures behind a root port. - The drawing exports take the rectangles of a frame in one call. The draw export of the drawing module is now
execute_draw_table_in_rectangles_10: it takes the shape of the canvas (Canvas_Shape) and a table of up to 8 damage rectangles, refuses more withToo_Long, and draws them in order with the same pixels as one call for each rectangle;execute_draw_table_10is gone. A window crosses the border of the module 2 times for a frame with damage, where it crossed it up to 9 times, and draws all the rectangles of one frame in one font. The compositor makes one call for each part of its screen with all the rectangles that the part meets: at most 18 calls for a frame of 8 rectangles over 17 windows, where it made up to 144. - The temple of Jon is now a Hall of fame: the program
hall_of_famereplacestemple. It shows the 16 people whose work inspired modus, each on a card with the name and one line on what they made, in whole rows that the arrows, Home, End, the pointer and a scroll bar move. Five cards have a portrait with its author and its license under it; the others have no picture. The commandmodustool portraitsreplacesmodustool portrait, and the page of the licenses has one row for each portrait. - The machines of the TPM run in the full check.
modustool test trusted_bootnow runs the two machines of the measure, andmodustool test principalsruns the six machines of the machine key sealed by the TPM; the formstest trusted_boot tpmandtest principals tpmare gone. The lost answer of the software TPM was a fault of QEMU 10.2 with its io_uring main loop, and the development shell now builds QEMU without io_uring: in two runs of each part, each of the 16 machines of the TPM had oneStartupand no abandoned command. - A release gives its time: the heading of a release in the changelog gives the day and the minute in UTC,
## [0.93.0] - 2026-11-15 18:48, so two releases of one day keep their order. The releases page shows the time with "UTC", and the feedreleases.xmlgives the true time in place of 00:00. Each release has a release link at the end of the changelog, to its release tag.modustool changelog timesgives an old heading the time of the commit of its release, and adds the missing links; an old release whose commit is not known keeps its day alone. - The reuse list of the properties is checked. The reuse list of
docs/PROPERTIES.mdnow names each work of others that the system ships or copies: the font subsets, Spleen, the Posy pointer theme, the cryptography of Odin and fiat-crypto, the runtime of the Odin compiler andcore:reflect, and each portrait of the hall of fame, with its SPDX license and its license file. The candidates that the system does not use, the designs and the tools of the host left the list.modustool checkrefuses a work with no row, a row for a work that the repository does not hold, a license that is not the recorded one, and a missing license file. - The machines of Secure Boot with a TPM. The machines of
modustool test principalsthat seal the machine key and the keys of a named principal now run the firmware with Secure Boot on and a software TPM, on signed volumes, so the seal is tested on the rule of a real machine. The test build of the root service that sealed with Secure Boot off, and its two boot volumes, are gone. One machine starts the same system with Secure Boot off: only PCR 7 differs, the TPM refuses, and no new seal is made. - A release image holds the pointer theme of the system only.
modustool release imagebuilds its boot image with the MIT pointer theme of the system, and refuses to package a boot image that holds the Posy theme, by its resource name or by the CC-BY-NC-4.0 license in the header of any pointer theme file. The release workflow and the checks of the flake no longer fetch the Posy theme; the default development shell keeps it. - Every service gives an error record. Each export that fails now gives an error record, not a bare negative number:
manual.show,fill,totalandspan_totalofsample,keep,holdandlookofhostile_exports, and the six draw exports ofinterface_module. The console prints why the call failed, aserror: manual.show: the argument name names none of the modules (-1). A refusal of the kernel inside an export names the argument of the export.modustool checkrefuses an export that gives -1, a negated status or a negative constant with no error record. - A name that names nothing gives an error record.
manual.about,manual.signature,manual.problemandsettings.getwith a name or a number that names nothing,storage.storesfor a caller that does not act for a principal, andnext_primeabove 2^40 fail with an error record, where they gave an empty text, 0 or the text "no grant to see the stores". The console then writes the sentence, for example "error: manual.about: the argument name names none of the modules (-1)", and a caller tells an empty answer from a failure. - The pointer theme of the system has smooth edges, two forms and accents. Its 15 shapes are outlines that the build draws with exact coverage at 24 and 48 pixels, in place of grids of squares: a fill inside an edge of 1 pixel at both sizes, with each level and upright edge on whole pixels. The dark form is white in a dark edge, the light form dark in a white edge; the compositor draws the form of the appearance in force, and changes it with the appearance at the next frame. The arc that turns in
waitandbusy_with_arrowand the question mark ofhelpare in the blue of the focus, the slash offorbiddenin the red of "stop a program", the dot ofcrosshairin amber. A pointer theme file has the version 2, with a form count, and a pointer manifest names its layers by role and its colors by token. - The light values of the colors that programs own. Each window of the twenty programs that drew colors of their own (
monitor,clock,log,manual,ringsand others) now takes each color from the color tokens by its meaning, so it follows the light appearance with 4.5 to 1 for each text: the kernel entries are in the kernel blue, the pages in the color of memory, a wrong answer in the color of a failure. Three tokens are new: the warning color, the link color and eight series colors that tell apart the threads, the programs of the log, the records of a ring and the protections of a page. The boot display and the stage ofheronstay dark. - The window of the log tells the records gone before its start from the records that it lost: its top line and its line "log: ok, ..." now give two counts in place of one. "Gone before its start" counts the records that the ring no longer held when the window started, and says only how long the machine ran before it. "Lost since" counts the records that the window was too slow to read, and only that count is red when it is not 0. The main machine test requires "0 lost since", so a new line of the log before the window starts no longer fails it. The window no longer writes its count of the records of the kernel in the channel boot, which depended on the same length; it writes the records and the size of the memory of the log in its place.
- The pushes and the indirect tail calls in the measure of the kernel stack: the build now follows the stack pointer through each compiled procedure of the kernel. It adds the arguments that a caller pushes outside its frame before a call (32 bytes before
thread_createinexecute), and it takes a jump through a register where no frame stays as a tail call that needs a row with its targets. A chain in the measure line shows "(... bytes pushed for the call)". Aretor a tail call that finds bytes on the stack stops the build, so the scan proves its own reading. The margin of a quarter of each stack is now only for a chain of the graph that no input runs. - A machine whose hypervisor refuses the counters that it lists still starts: each processor tries each access to the registers of the performance counters once at its start, before any thread runs, and a protection fault of that access is an outcome and not a stop of the machine. When the processor refuses an access, when a counter does not keep the value that the kernel wrote, or when the firmware left a counter on for another user, the kernel uses no counters, names the register on the line of the boot, and the commands of the thread counters give
Unsupported. The self test 7 of the kernel proves the way back from a refused register on the test machine. - The roadmap has a section Maybe: an optional last section holds what may be done one day and is not decided, and each of its entries says the ways open and what each waits for. The page Roadmap of the site shows it under the three columns, and the work that waits for a machine, a host or another project moved there from Next and Later.
- The screen shows each frame of the compositor whole: on the standard VGA of the test machine, the compositor writes each frame into the one of two screen pages that the display does not show, then a page flip of the display registers of Bochs shows it in one step, so a window that changes many times a second never shows a cut between two frames. The compositor reads each flip back, and goes back to one screen page with one line of the log when the display refuses it.
compositor.screen()givespage_flipsandframes_on_the_shown_page, which the main machine test requires to be 0.Device_Createhas the kindDisplay_Memory: device memory over the video memory of a display, mapped with the page attribute of the framebuffer of the firmware and not with no cache, and accepted only for a range that holds that framebuffer. QEMU has no vertical blank to wait for. - Every window draws characters on demand. Each program draws a character past the glyph caches itself, from the font outlines of the boot image (the new resource
font_outlines), into a private glyph cache that its own budget pays and that no other program reads, so the labels, titles, menus and cells of every window, of the compositor and of a program from a disk show the Greek letters of B612 and the box-drawing characters of Paper Mono. The advance of such a character comes from its font file, and a frame never waits for another program. The font service draws its fixed subsets into the demand cache at its start, then ends; the request ring of each program and its budget of requests are gone. The first draw of a glyph costs 3 to 46 µs, once in each program (on an AMD Ryzen 7 5800X), and the cache keeps 256 KiB of glyphs, which it evicts in the order of their last use. - The check of the imports covers the whole system:
modustoolnow reads each source ofsrc/, refuses a package ofcore:in a source that is not a test, and refuses a test that imports one with no#+build !freestandingas its first build line, with the file and the line of each breach. The files that the manifest of the cryptography of Odin names keep the imports of their origin. - The transport parameters that a side sends have a record of their own:
transport_parameters_writeofsupport/quictakes aSent_Transport_Parameters, which has a field only for each parameter that the system sends, so a value that the writer would lose cannot be set. The writer refuses, and writes nothing for, each record that would not read back to itself: an identifier that only a server sends in the record of a client, a server with nooriginal_destination_connection_id, an identifier length out of range, and a value that the reader refuses.transport_parameters_of_sentgives the record that a reader finds in the bytes. - An idle timeout that QUIC cannot carry is refused at the start:
connection_start_client,connection_start_serverandserver_initofsupport/quicgiveBad_Valuewith the unitMillisecondsfor anidle_timeout_millisecondsover 2^62 - 1, in place of aToo_Longof the transport parameters later. A record of transport parameters that the writer refuses is nowBad_Valuetoo;Too_Longmeans only that the parameters do not fit.
Removed
- The record documents are gone: each design is in its intent file. The records of the decisions, of the choices of each step, of the reviews and of the hand-off are removed from the repository. The status page shows each property with what the test shows of it, with no list of gaps, the home shows no count of steps, and the planned work of those records is on the page Roadmap.
Fixed
- A window never shows a picture that is being drawn. The surface of every window has two pictures: its program draws one while the compositor reads the other, and the compositor shows a picture only when it is complete. Before, 48 of the 51 programs with a window drew in the memory that the compositor read, and the screen could show a part of a new picture with a part of the old one. A program writes no code for the rule, the option
two_picturesofdisplay.openis removed, andcompositor.windows()gives for each window the countpictures_drawn_again, which is 0 for a program that keeps the rule. - The pointer over the scroll bar of a terminal is the arrow: the pointer kept the text shape over the scroll bars of a terminal window, such as the window of the console. It is now the arrow over a scroll bar and while a scroll bar holds the press, and the text shape over the text.
- No text over a text, and no cut text, in five windows. A text that is wider than its place in a window now goes on more lines: a line ends at a space, and a path or a long name ends a line after a
/, a:or a_. The programmanualdraws a long name of its list on two lines and no fact of a page over another;errorsandinspectshow each frame of a stack trace whole;notesshows its keys and a version of 60 characters whole. The same rule holds in the other windows that had the fault: the answers offetch,net,importsandtables, the sentences ofquic_echo,return_faultandfault_ring, the targets of the requests ofserver, the columns ofpages, the measures ofinterface_font, and the name of the processor on the boot display. The window oflogshows each text whole and breaks a line at a space, where it cut a text at 80 characters and showed a word in two parts. The windows ofextended_stateandfault_ringfit the screen with their borders. A card that cannot show each of its rows says how many it does not show. - The picture of the program
notesafter a stop shows its note. The picturenotes_crashwas taken before the program drew its first picture. The program now writes a line after that picture, the test waits for it, and the gallery of the site shows the picture. - A picture of the screen waits for the terminal that draws a window. The tool took a picture when the program of each window was at rest. The window of the console is drawn by a terminal, which the condition did not read, so a picture could miss the completion list. The condition now reads each terminal too.
- A machine test takes no picture while a window owes one: a program that draws on its own clock, such as a terminal, now tells the compositor when a change waits for its next picture (
display.picture_due_set), andcompositor.windows()gives it in the fielddue. The condition of a picture of the machine tests waits until no window has a due picture. Before, a picture of the console could show the head of a table without its row. - A virtio device service takes the places of the registers only inside its memory: a capability whose registers are not inside the memory of its BAR, or a notify register of a queue outside the notify registers, is refused, and the block, frame and entropy services stop with a line that names it, in place of a fault on an address that is not mapped. The size of each queue is a power of two, so its counters stay in order when they wrap.
- The tail of the arrow pointer sits on its axis. The tail of the system arrow now leaves the head centered on the bisector of its point, in place of hugging the notch, in the arrow, the busy arrow and the help arrow.
- The share policy counts a thread that starts and ends between two rounds. A program could create threads just after a round of the share policy that ended before the next one: no round saw them, and each one had the whole program weight. A thread and a program now each have a new-thread weight limit, which only the machine handle writes: a new thread gets the smaller of the two as its weight limit, and
Thread_Createrefuses a weight above it. Two new commands ofThread_Control,Read_Program_ScheduleandWrite_Program_Schedule, read and write the value of a program. The share policy writes the program weight divided by 32 to each program before it reads its threads, so after the first round of a program the threads that no round saw sum to under one program weight.op.Thread_Schedulegrows from 12 to 16 bytes, and a new-thread weight limit above 1024 is refused. The kernel still has 33 operations. - A log record is never read half written. A reader of the log, the window
logandlog.recordsincluded, could keep a copy of the oldest record of the ring while the kernel wrote the next record over it: the head of one record with the text of another. Such a record now counts as lost, as the records that the kernel wrote over do, so a reader copies the last 2046 records at most. - A word that names no choice is refused, and never read as a known one:
unlockstops with a line of the log for a mode that names no mode, where it ran an unlock; a seed whose strength names no strength is refused, where it was read as the strongest; the root service refuses a word of the root ring that names no action, state, change or origin; the console says that a state of a client key or a cause of a refused change names nothing, where it showed "holds" or "the mode is not a change"; a twin offramesstops for a mode that names no mode, where it slept.modustool rule-checksrefuses a family of integer constants that the code uses as a closed set of choices. - A terminal that always draws the end of an output: a record that comes while the terminal draws a picture now makes a due picture before the terminal waits for its next frame. Before, the terminal waited up to 16 ms with that change and said that no picture was due, so a machine test could take a settled picture of the console that showed a running call and not its result. The stop of the program of a terminal now ends its wait at once, where it waited up to 250 ms, and a frame whose
Presentdid not reach the compositor is drawn again at the next frame, where the older picture stayed until the next record or key. - The serial port keeps up with an idle machine: since
Logstopped writing the serial port, only the ticks wrote it, 100 µs at each, about 4.5 KB in each second for a processor under KVM, where a port write costs 22 µs; the boot writes about 120 KB of lines, so the serial port lagged the system by seconds, and a test that acted on the moment of a line acted too late. A processor with nothing to run now writes the serial port at the rate of the port, with a window for interrupts after each byte, and leaves at once when a thread becomes ready or an interrupt comes. On a machine with an idle processor, a line reaches the serial port about when its program goes on. A machine whose processors are all busy still drains at the ticks only. The measure line of the drain now says the bytes of the idle loop and of the ticks, and the serial port ends each run with the largest lag of a line. - One debug record for each int1 under KVM on AMD: KVM with SVM before Linux 7.3, on some AMD processors, gives an
int1whose delivery it cut again as a fault at theint1itself, so the program got two Debug records, the first at the address of the instruction with the status 0. The kernel now drops a debug exception with no status at a byte F1 whose byte before is not F1 or cannot be read: the thread runs theint1again and gets its one record. A cutint1after any byte F1 (anotherint1, or an instruction such as89 F1), or with a prefix, still gives its record two times. The root service no longer sizes the base address registers of the standard VGA while the screen shows it: that turned its memory off, and under KVM it threw away every nested page table of the machine, which made the caseint1oftest fault_ringfail at each run on an AMD host. - The cut of a loss of power at a counted commit: in
modustool test power, the disk that the tool serves counts the commits itself and loses its power at a commit that the case names, so the cut falls in the loop of range commits ofranges, in the count ofnotesand in the records ofsettings.repeat(1000)whatever the speed of the machine and the lag of its serial port; before, the tool cut a few writes after it read a line of the log, and the cut ofrangesoften came after the end of its loop, so no write came and the test failed.
Security
- A module replacement needs a signature. The root service no longer writes any pair of modules that the console names into the replacement table: a replacement puts the code of another module into each importer, such as the drawing module into the compositor and the terminal, with all their memory and handles. It writes a replacement only for a replacement row of the boot image, the resource
replacement_list, whose Ed25519 signature over the old hash, the new hash and the importer scope verifies under the signing key of the system. The build signs the rows with the key that signs the system description.replace("calendar", "math")is refused with "root: refused the replacement of calendar by math: no signed row of the replacement list names it", a row signed by another key with "... the signature of its row does not verify under the signing key of the system", and the importer keeps the module that its import names. - The kernel checks the text of a line of the log: a program that called the operation
Logitself could write a carriage return, an escape sequence or a control character of C1 to the serial port, and forge or hide a line on a terminal of the host; a program could also name a child program with such bytes, and that name starts each line of the child. The kernel now writes?in place of each byte of each invalid sequence of UTF-8 in its copy of the text, ends a record of the log after a whole character, andProgram_Createrefuses a name with a byte outside the visible characters of ASCII (Bad_Operation). - A share of a tree no longer reaches the root of its store. The holder of a share of one tree could call
storage.open_storewith the name of the store of its maker, get a place on the root of that store, and read and change the whole store. A share now names no store:open_storerefuses it withNo_Grant, unitActs_For_Principal, as for any other store. - A share of a tree sees the counts of its own tree only.
storage.usage()through a share of a tree gave the counts of the whole store, so its holder could learn whether the rest of the store holds the bytes of an object of its tree, or whether the maker wrote bytes that it guessed. It now gives the objects, the trees, the versions and the blocks of that tree only, from a walk of at most 4096 reads; a larger tree givesUSAGE_NOT_COUNTED. A root that the storage service finds damaged now leaves the hash index, so a rewrite of the damaged object can share its blocks again. - A lockout authorization value that the TPM service sets: before the first seal or unseal with a passphrase in a run, when the lockout hierarchy of the TPM has an empty authorization value, the TPM service sets a random one that nothing keeps, and at each start it writes the count limits of the TPM on the log. Before, any other system on the machine could reset the count of the wrong passphrases of a named principal, or change its limits, with
TPM2_DictionaryAttackLockResetorTPM2_DictionaryAttackParameters, and then guess in the window ofunlockat the cost of Argon2id alone; now the TPM refuses both to every system. A start that uses no passphrase with the TPM leaves the lockout hierarchy as it found it, a value that is set already is left as it is, and a clear of the TPM needs the menu of the firmware. - A system description that cannot be rolled back: a signed system description stayed valid for ever, so an older system with a known flaw, or a system that a stolen signing key signed, started on each machine. Now the TPM keeps floors that only rise: the boot program refuses, before the kernel starts, a boot program whose key number is below the key floor, and a system description whose security version is below the version floor of its key number. With Secure Boot on, the boot program then raises the floors to its own numbers before it measures the system, under a policy that no kernel or program satisfies, and it replaces an index that another system planted. The header of the system description has the security version (format 2, 24 bytes), and
resources/keys/key_numbersgives each signing key its number, the key of the publisher 2 (docs/TRUSTED_BOOT.md, "10. The TPM floors"). - The old versions of the file of a principal are erased. A change of the passphrase or of the recovery key of a named principal, and the new seal after a recovery, left the file from before as a version on the disk, which opened with the old secret. Now
unlockerases the versions of the file after each such write and after each unlock that the current file opens: the new exportstorage.erase_versions(place, name)ends each version of an object in one commit, reads its blocks back, writes the root again so that no root on the disk names a freed block, and then writes zeros over each freed block that no other state names. Only a program with the new start grantVersions_Erasemay call it; today that isunlock. A loss of power leaves the versions or none. A copy that the disk device or the host keeps under the blocks is not reached. - A grant for the key of a client of
remote. A client ofremotenow proves an Ed25519 key of its own in the QUIC handshake (mutual TLS 1.3 with raw public keys), andremotetakes only a key that a principal allowed withremote_allow(key)in a console that acts for it. Each call of that client acts for that principal, and for no other. A key that no principal allowed is refused in its handshake with access_denied, before any call, with one line of the log.remote_disallow(key)and a lock of the session of the principal end the grant: the root service ends the connections to services of that key, andremoteends the open connection of the client with the code Revoked.remote_clients()lists the keys of a principal; one principal allows 4 keys at most, of the 8 of the machine. Before,remoteadmitted the host by its address alone, and each program of the host called as the principal of the session ofremote.modustool runprints the key of the client of its peer, which the console allows. - A log ring for each program. The kernel keeps the last 64 log records of each program in a ring that only that program fills, paid by its own budget, and the log service reads the own records of a caller there with the new kernel operation
Log_Read(the kernel has 35 operations). A log storm of one program no longer pushes out the records of another, so a reader of its own records learns nothing of how many records the other programs wrote; the whole log keeps every record, in order, for a reader that acts for the principal. - Two reads of hostile bytes that a bound did not catch. A module whose import slot names a place near the top of the address space no longer passes the check of the loader and stops the root service; a node of the disk whose reference to a slot is out of the pool is a damaged node, and no longer reads before the pool. The fuzzing of the borders pointed at both.
- A log limit and a log time that the other programs do not set: a program that read its own log records could still learn how much the other programs wrote, from a
Logthat the kernel refused while its own count was low, or from the time of aLog. The log records of each second are now an amount that a budget holds, as its pages: a child budget takes them from its starter with its part of the count of this second, and gives both back at its end; a budget counts only its own records, and aLogspends each record that its text takes.Budget_Readgives the records that a budget still holds after its children. A program still gets 1000 records in each second, and a starter divides its own among its children. The kernel writes at most 64 records of its own in each second.system.lognever waits: a refused line is dropped and counted, the next accepted line comes after one record "<count> lines of this program were refused by its log limit", and the kernel writes the count at the stop of a program whose refusals no later line said.Logno longer writes the serial port: the tick of each processor writes the lines of the new records in their order, only while the device takes bytes and for 100 µs at most, and the kernel writes the lines that are left before the machine stops, before the report of a fault, and in a wait for a lock longer than 1 s. In a flood the serial port can lose lines: it says how many, and each scenario of the tool fails on that line. - Module records protected from their program. A program could remove or replace the module record that its starter wrote, or unmap the code of that module and map its own code there, so a report named its code by the hash of another module. The kernel now writes the writer of each module record (
op.Module_Writer:starterorprogram; the record grows from 80 to 88 bytes), and refuses withNo_Rightand the new error kindStarter_ModuleaProgram_Module, aMemory_Unmapor aMemory_Mapof a program in itself over a record of its starter; an address that the kernel chooses avoids such a record. The starter keeps each right. A program handle thatHandle_Givecopies into the program that it names loses Control and Give, so a program cannot pass the authority of its starter to a child. A disk program built before this change must be built again:Stop_ReportandModule_Reportgrew, andProgram_Statewrites the new size.inspect.modules(),manual.running()andprogram_modules()have a fieldwriter, and the programimportswritesimports: the module record of the root service: 4 of 4 changes refused with Starter_Module, writer starter; calendar, loaded by this program: writer program. The kernel still has 35 operations. - No window of
unlockoutlives a lock. A lock now also stops the window ofunlockthat the session asked for: the setting of the machine passphrase, the seal of the machine key, a change of the passphrase or a new recovery key. Before, anyone at the keyboard of the locked machine could read the recovery key of a new machine passphrase or set the machine passphrase. Each window that shows a new recovery key writes its record or its file only after Enter, so a lock, a close or a fault before Enter leaves the disk as it was, and no recovery key that nobody wrote down opens anything. The creation of a principal starts its session after Enter too. - A module table of records of no byte is refused. A module file of 80 bytes could state 67 million segments of no byte: the check of the loader accepted it, then each loop over the table ran for minutes, and the start of the program never ended. The loader now refuses a table that has records and states a record size of 0, so the bytes of the file bound the count of its records. The fuzzing of the module file found it.
0.92.0
News: The scroll bar takes the pointer, The site shows the planned work, A program of the system plays the animations of the heron, The home shows where the time of a start goes, The heron squashes and stretches on its grid, The heron of the home has fifteen animations, The site has a gallery of every picture of the screen, The bar of the site has three buttons and one menu, Each row of the palette has the icon of its kind, A program stops a thread and writes its registers, The palette: one panel for the programs and the windows, The log shows each value in the color of its kind, The drawing of a window is one module that 23 programs import, The console debugs a program, The share of a thread changes while it runs, A thread can be kept on chosen processors, A stop report names the procedure and the line, The module graph, on the site and in the running system, The manual shows bold, lists, code and links, An object of 8 GiB that holds 13 blocks, and a commit that hashes what changed, The glossary has a page for each group, The name of the mark is a font, A command of the console gives a result, The reference pages read as documentation, The test checks by count, a measure run measures by time, The boot verifies the system before the kernel starts, A store holds trees of a hundred thousand objects, The calls of the host go over QUIC, A named principal, unlocked by its passphrase, An unmap gives its page tables back, A fault handler gets every kind of fault, not page faults only, The documentation has one door, The console shows code in colors, The boot display names the files of the boot image
Added
- The boot verifies a signed system description and measures it: before the kernel starts, the boot program verifies the Ed25519 signature of the system description, the list of the kernel and of each module and resource with its BLAKE3 hash, then compares each file with it. One changed byte or a wrong signature stops the boot, with the file and both hashes on the boot display. The firmware then extends PCR 11 of the TPM with the SHA-256 hash of the description, and the root service checks the boot image again before the first program starts. The boot display says which key signed the system, and says "not trusted" for the test signing key of the repository. Nothing verifies the boot program itself until Secure Boot is built.
kerneltool key newwrites a signing key outside the repository;kerneltool test trusted_bootruns four machines, two of them with a software TPM. - Secure Boot verifies the boot program: the build signs the boot program with a firmware signing key, an RSA key and its certificate, because the firmware cannot verify Ed25519. With Secure Boot on and that certificate enrolled, the firmware starts only the signed boot program, and the boot display says "verified by: the firmware (Secure Boot), then the boot program". A signed boot program with one changed byte, and an unsigned one, never start.
kerneltool key newnow also makes the firmware signing key. Beside each boot volume, a file says which key signed it, and that a volume signed by the test keys must not be installed on a real machine. - The console colors its code: the line that the person types, the line that it writes back, and the signatures in the completion list show functions, types, texts, numbers and punctuation in the colors of code of the site, from one table of the system. A name that the console does not know is marked quietly once the person typed past it, and a text with no end quote keeps the color of a text while it is typed.
- The foot of each page names the maker: "modus · by Froment Software", with a link to its site.
- Every fault kind of a thread can go to the fault ring: a fault handler names the kinds that it takes (divide error, invalid opcode, protection fault, breakpoint, the floating-point errors, and page faults), and a fault of such a kind becomes a record with its kind and its error code in place of a stop. A breakpoint answered Resume goes on after its int3; Resume after a fault other than a page fault is refused, so a handler cannot make a thread fault again forever, and Stop gives the report of the fault. A handler that asks for nothing gets page faults only, as before. A program with no handler that runs int3 now stops on a breakpoint, not on a protection fault.
- A program stops one of its threads, reads and writes its registers, and resumes it: the new kernel operation
Thread_Control(33) has six commands:Stop,Resume,Read_Registers,Write_Registers,Read_Extended_StateandWrite_Extended_State. A stop is a count: two stops need two resumes. A thread of another program needs a thread handle withInspectto stop, resume and read it, and withInspectandWriteto write it;Control, the right to end a thread, gives neither. The kernel refuses a written frame with the code selector of the kernel, an I/O privilege level, interrupts off, an instruction address that is not canonical, or an extended state that the processor would refuse, and nothing changes.Thread_Stategives the stop count and the size of the extended state area. After a write,Fault_AnsweracceptsResumefor every fault kind: a handler can skip a divide error. The kernel has 33 operations. - Principals: the machine, one named principal, its unlock and its session: principal 0 is the machine, with the measure of the system.
principal_create("name")in the console creates a named principal whose passphrase is typed in the window ofunlock; Argon2id derives the key that seals its keys, a wrong passphrase opens nothing, andlock()stops the programs of its session. A program that the desktop starts during the session has stores of its own, andgrantsnames the principal of each program. The seal by the TPM, recovery and the encryption of the stores are not built (docs/PRINCIPALS.md). - Code spans link to the declarations of the sources: a procedure, a type, a constant or a global variable that a guide, a news entry or a source comment names links to its line or its module page, with the icon of its kind and a card that shows its line of Odin and its comment; a span that is a fragment of Odin is colored.
- A stop report names its procedures and its source lines: the build writes a debug object for each module (its procedures and its line table, made from the DWARF of the compiler) and puts them in a debug image beside the boot program, not in the boot image. The console,
errorsandinspectnow show a frame asfault::three + 0x8 in fault (programs/fault/main.odin:15); the module bytes are the same with and without debug information, andkerneltool checkproves it with a third build. - The module graph on the site: a page of the reference draws each module and program of the build as a bar as long as its bytes, and each import as a line, in columns by the depth of the imports; a pointer or the focus on a module marks its imports and its importers and shows its identity card, and a table under the picture gives every import. Each module page shows its identity card and a figure of what it imports and what imports it.
- The imports of what runs:
manual.edges()gives one row for each module of each program that runs, with the module of the same program that imports it and the module that a replacement put it in place of; the console combines it withwhereandcolumns. - The log shows each value in the color of its kind: a log record keeps where each number, size, time, module, hash and status of its text is, and the program
logdraws each one in the color that the site gives its kind, with a legend, and without the start of a text that repeats its program and channel.log.value_runs(after)gives these runs as a table. The text of a record and the serial port do not change; a record now has 152 bytes of text, and the operationLogtakes the runs in its seventh value. - The reference pages render the source comments as Markdown: bold, italics, lists, examples in code and links to operations, exports, declarations, terms and guides. A link that names nothing stops the build of the site. The 33 kernel operations,
manual,cryptographyand the exports ofstoragehave a full text: arguments, results, statuses and the rights in bold. A module carries the same text with the marks removed, somanualand the help of the console show plain lines as before. - The debug object of a module describes its variables and its types: beside the names of the procedures and the source lines, it now holds the types, the global variables, and the parameters and the local variables of each procedure, each with its range of instructions and where its value is (a register, or memory at the frame pointer, the stack pointer or another register plus an offset; "not readable" when the compiler gives no such location). It also holds the BLAKE3 hash of the content of each source file at the build, so a reader shows a source line only from the same version of the file, and it is used only for the module whose hash it names. The module file does not change, and two builds give the same debug object.
- A program sets the weight and the request of a thread that runs:
Thread_Controlhas two new commands,Read_ScheduleandWrite_Schedule, with the recordThread_Schedule(weight, request, weight limit). A program lowers the weight and the request of its own threads, and never raises them; a thread handle reads with Inspect and lowers with Control; the machine handle with Schedule and Inspect names any thread by its machine number, which the thread report now gives (Thread_Report.machine_number; the record grows from 72 to 80 bytes), and it alone raises a weight or a request (a raised thread starts again as a new thread for its strategy) and writes the weight limit of a thread: the thread and the threads that it creates then stay at or under that weight.Thread_Createrefuses a weight above the weight limit of the calling thread. The kernel still has 33 operations. - The kernel parts of a debugger: a program with the right
Debugon the handle of another program becomes its debugger. It receives the debug exceptions and the breakpoints of that program, sets four breakpoints for each thread (an instruction, or bytes that the thread writes or reads) with no write to the shared code, runs a thread one instruction at a time, and reads the memory of the program, one page at most in each read. When the debugger ends or detaches, the kernel gives the program back each thread that the debugger held. The kernel still has 33 operations. The commands of the console are not built yet. - The placement of a thread on the processors: each thread has a set of the processors that can run it, which
Thread_Controlreads and writes while the thread runs (Read_Placement,Write_Placement; no new kernel operation). A program only narrows the set of its own threads. The holder of the machine handle withScheduleandInspectwrites any set and a limit, which a new thread and a started program get from their creator: two programs whose limits share no processor never run on the same processor. A thread that never gets a placement is scheduled as before. - The debugger: a service, and its commands in the console:
debug("clock")attaches the servicedebuggerto a program, andbreak_at,watch,threads,hold,resume,continue_all,registers,stack,locals,value,source,step,step_line,debug_memory,events,wait_stopanddetachgive tables with the procedures, the lines, the types and the variables of the debug objects. The root service gives the debug access by one rule over grants, with no name of a program: the caller acts for the principal of the program, and holds each grant that the program holds; a program with no grant can be debugged, and a service, a device service and a program with a private store, a terminal or an endpoint of the network cannot. A revocation of a grant of the caller ends a debugging that the rule no longer gives. The same exports are called from the host throughremote(kerneltool call <key> "debugger.stack(0)"), and the tool prints the source line from the repository when the file has the hash of the build. The kernel did not change. - A news entry can show a film: an entry names a film with the line
film: docs/films/<name>.webm, and the page of the news plays it when the reader starts it, with the picture of the entry in its place before that.kerneltool film <name>now writes a WebM file with AV1 beside its MP4 file, and puts it in the repository when an entry names it: for the film of the palette, 36.8 s of the whole screen, 1 572 784 bytes, half of the MP4 file. The entry of the palette has its film; the feednews.xmlnames it as an enclosure. - Each row of the palette has the icon of its kind: a window, a program, a command, an export, a setting and an entry that destroys each have their own picture of 12 by 12 pixels at the left of the row, and the word of the kind stays at the right. The color of the icon says one fact, as the square mark did: a program that has a window is green and one that has none is dim, the window that has the focus is blue, the value of a setting in use is in the text color. The candidates of a field of a form have the icon of a module or of a grant. The icons are one table of cells,
support/kind_icons, that the site draws too: a module or a command has the same picture on the site and on the desktop. - The program
heronplays the animations of the mark: start it from the menu of the programs or withstart("heron"). The heron stands in its water in a window and plays its fifteen animations by the rule of the home of the site: each one once in a round, in an order of chance, still for about 40 % of the time. In the dash it leaves the window by the right and comes back by the left. A squash, a stretch and a travel are in whole square cells; the keygdraws them in a free way to compare. The keys1to9andatofplay one animation, Space pauses,.shows the next frame,splays slower,lshows the lines of the cells and the cells that a frame changes,zchanges the cell size. The exportsheron.play("dash"),heron.animations()andheron.grid(1)do the same from the console. - The site has a gallery, and the home a carousel: the page Gallery shows 109 pictures of the screen in 11 groups, each with a caption of one sentence and a link to its guide; a picture opens at its full size. The home shows 8 of them in one row, one picture in view, with a numbered link to each; it works with no script and never changes its picture by itself. A picture of
docs/screenshotsthat the table of the gallery does not name stopskerneltool site. - The program
heronhas a film:kerneltool film heronfilms the heron while it plays, the dash at full speed and four times slower, the dash frame by frame with the changed cells outlined, one frame in the free way and on the grid, and the three cell sizes. The news entry of the program shows the film. - One generator for the pictures of the mark:
kerneltool markwrites the still mark, a frame of an animation, a tile map or its table, in the smooth variant (each pixel takes the gradient at its own place) or in the cells variant (each cell is one color), at a cell size and in a color scheme that the command names. The head of the home of the site and the window of the programheronkeep the smooth variant; the bar and the icon of a tab are the cells variant, one pixel for a cell. The files of the mark of the repository and of the site are now one table, whichkerneltool mark usesprints, and each PNG file of the mark is written at the smallest size that loses no pixel. A request with no sense, as the smooth variant at one pixel for a cell, is refused with a sentence. - The roadmap: the planned work of the system is one file,
ROADMAP.md, in three sections: what is in work now, what comes next, and what comes later. Each entry says what the work gives the user. The site shows it on the new page Roadmap, beside the page Releases, and the search finds each entry by its summary.kerneltool roadmap checkchecks the form of the file, andkerneltool checkruns it.
Changed
remoteover QUIC: the calls of the host go toremoteover QUIC, one stream for each call, up to 8 at one time, with the public key ofremotepinned by the host; its own datagrams are gone. Its listen grant admits the address of the host only, and a Retry proves that address, where one forged datagram made a call before.kerneltool callnow takes the public key that the window ofremoteshows, and gives the call to the peer of the tool on a socket that only its user reaches.- The bar of the site stays at the top. On every page of the site, the bar with the sections and the search stays at the top of the window while the page scrolls. A link to a heading or a symbol lands under the bar, not behind it.
- References to documents on the site: a comment of the source that names a document, as
(docs/ARCHITECTURE.md, "Kernel systems"), is now a link with the title of the guide and the heading ("Architecture: Kernel systems") in a line "See:" after the text, with an icon of its own; code in backticks in a comment is shown as code; a guide that names another guide links to the heading too; the page ofkernel_without_return_checksays that it is the kernel built with a test setting; andkerneltool sitestops on a pointer whose heading does not exist. - The tables of the site have their natural width, and a link goes to its anchor at once. A table is as wide as its content needs, so a column of numbers or of names no longer holds empty room. The page no longer scrolls by itself to an anchor: it is there at once, also after a reload.
- A chosen row keeps 4.5 to 1: the chosen line of the completion list, of the menus of the bar, of the launcher and of the lists of the interface is now a slightly darker blue, where its white text has 4.67 to 1 in place of 4.29. A matched character on a chosen row of the completion list is drawn as the chosen blue on a white cell.
- One Docs section on the site: the bar names Docs, Status, News and Releases; the guides are now at /docs/guides/ and the reference at /docs/reference/, and each old address, in the .html form or the folder form, sends the reader to the new page. The new page /docs/ is the home of the docs: a large search field over the whole site, what the search knows, a card for the guides and a card for the reference with their counts. The bar of that page has no search field; every other page keeps the field of its bar.
- A chart of what the search finds on /docs/: the paragraph of counts under the search field is gone. Under the cards of the guides and of the reference, a bar chart gives the count of each kind of entry of the search, the largest first, each with the icon and the color that the list of results now shows for it, and a link to the page that lists the kind. While the field holds a text, each row shows how many entries of its kind match, and a press on a row keeps the list of results to that kind.
- The cards of /docs/ list everything: the card of the guides shows every guide with one line that says what it holds, and the card of the reference every reference table with its count. The chart of the search is under the reference, and no card has an empty part.
- The card of the boot image names its files: a size strip shows the bytes of each file by kind, and one row for each kind (programs, modules with no entry, resources) gives its count, its bytes and the whole names of its largest files; the boot image of the last build shows 12 names, where the grid of tiles showed 2. A line "check" counts the verified files, or names the file that failed its hash whole and in red, also in the strip and on its tile.
- No test depends on the speed of the computer that runs it: a time in a test only ends a test that hangs, with one generous bound (120 s for each step of a machine test, 60 s in the checks of a program, a stall of 60 s with no progress for a long case), and a number of speed is printed, never checked. The idle end of a QUIC connection and the bounds of a call stream of
remotenow check only that the end came no earlier than its bound, and print how late it came;schedulerchecks that a wake ends turns under EEVDF and none under round robin, and prints how many times as often EEVDF woke as a measure. - A store holds trees of entries, and a program can give a part of it: a store names one tree, and a tree holds objects and trees inside it, each tree a B+ tree on the disk with no limit of entries but the disk (the table of 39 objects is gone; the disk format is
STORAGE3). Each export of the storage service takes a place (0 is the root of the connection) and a name of one step:..,.and/are refused. New exports:open,close,add(256 entries in one commit),list(a page in the order of the names),rename,shareandunshare,open_store(the exports of versions take a place of it in place of the name of a store) (a connection rooted at a tree, read only or not, revoked by the kernel),usage;removeof a tree frees its blocks in steps after its commit;objectsis gone. The programhierarchymakes 100000 objects in 1100 trees and checks them after a new start (docs/STORAGE.md). - The grant person is acts_for_principal:
revoke("remote", "acts_for_principal")in place ofrevoke("remote", "person");isolated.CALLER_PERSONisCALLER_ACTS_FOR_PRINCIPAL, and the grant of a connection carries the number of the principal of the caller in bits 48 to 62. A refusal says "to act for the principal".floodwrites "flood: Space: ...", and the console "error: Escape stopped the call of ...". - The chart of the search is under the search field of the docs home: one bar of colored segments and one row of chips, one for each kind of entry, over the whole width, so the reader sees it change while typing; the list of results opens under it.
- The scroll bars of the site have the form of those of the system: a button with a triangle at each end, a square thumb with a grip, blue under the pointer, in both color schemes; Firefox shows their colors.
- An object of a store is a tree of blocks, written by ranges: an object can hold 4 TiB, and a block of zero bytes is a hole that costs no block (an object of 8 GiB from three writes holds 13 blocks; the limit of 32 blocks and the format
STORAGE3are gone, the disk format isSTORAGE4). New exports of the storage service:read_range,write_rangeandset_size(pending changes of the connection, with no commit and no hash) andcommit(one commit of the pending changes, with the counts of the blocks that it hashed and wrote). A commit hashes the blocks that it changed and the nodes above them, never the whole object: 1000 writes spread over an object of 8 GiB hash 1001 blocks and 1018 object nodes. The check of a block of data is its BLAKE3 chaining value at its place, and the hash of an object comes from those values; a hole counts as zero in it.writeandreadof a whole object use the same mechanism. The programrangesandkerneltool test rangestest it, and a third loss of power comes in a loop of range commits (docs/STORAGE.md, "Large objects"). - The glossary explains each term: a term is an entry with a short definition that stands alone, then what it is for, how a program gets and uses it, what it is not, an example and a reference to its design. The groups Code, Running code, Access and Communication are written this way (201 terms), and a link to a term on another page shows its short definition as a tooltip.
- The glossary is one page for each group, with an index from A to Z: the single page had passed 1 MB. The index lists every term with its group and its short definition; each link to a term opens the page of its group, and an old address of an entry at the index goes on to it.
- A table of the site is readable on a phone: under 720 pixels of width a row is a block, with its first cell as its title and each other cell under the name of its column. A table no longer scrolls sideways there, and no column is squeezed to a few words a line.
- A command of the console gives a result, and the console draws it by its kind: no built-in command prints.
help,programs,modules,grants,principals,replacements,variablesand five more give a table thatwhere,sortandcolumnstake;memory,load,isolate,connectandunloadgive a record; an error shows its sentence, then the values of its error record. One drawer for each kind (number, text, record, table, handle, bytes, error) colors each value by its value kind, draws 20 rows of a table and says how many it does not show, and cuts no value. The log records of the programs that a line calls show under the line, read from the servicelog.programs()is now the exportmonitor.programs(). An integer of a line that does not fit in 64 bits is an error, not a wrapped number. New commands:describe,program_modules,locks,loaded,bytes,skip. - The manual reads the Markdown of the documentation of a module: the program
manualshows a bold word in the bold weight, a word in italics with a thin line under it, code in the font of the cells, a list item with its mark and its indentation, an example as a block, and a link as a colored name. A click on a link to a module or to an export of the boot image shows that page. A module now carries its documentation text with the marks of its comment; the line of help of an export stays plain, sohelp()in the console prints the same lines. A new library,support/source_comment_markdown, reads that part of Markdown with no allocator. - A program checks by count in a test and measures by time in a measure run:
clock,flow,crowd,disk,locksandschedulerno longer measure a rate for a fixed time at each start. Their windows and their log lines show the counts of their checks (for example "200000 records read in order, 0 lost"), and the rates in one second are in a measure run:kerneltool measure,kerneltool measure schedulerand the newkerneltool measure clock|crowd|disk|flow|limits. A measure run uses the same modules as the test; the value 22 of the context tells a program that it runs for a measure. - The console holds 256 commands: the command table of the console has 256 places, where it had 192, for the 20 commands of the debugger and the exports of the service
debugger. - The machine test takes a picture when the screen is settled: the fixed time of 400 ms before each picture is gone. The compositor has the export
screen(), and each row ofwindows()says how many pictures its program sent and whether one waits for a frame. - The site writes the name of the system in the letters of the mark: the bar, the foot and the title of the home show "modus" as text in a font made from the cells of the mark (
resources/logo/modus_mark.ttf, written bykerneltool logo). The pictures of the mark on a page are the heron alone, and the heron of the home plays an animation each 2.4 s on average, in place of each 4.7 s. - The trees of the site show tree lines: in the documentation tree and in "On this page", a line of 1 pixel runs down from each parent and a branch goes to each item under it, as in a file tree, in place of indentation alone. The lines from the top of the tree to the current page are in the color of a link. "On this page" now puts each heading of level 3 and each symbol under its heading of level 2.
- The network service computes no checksum of UDP or TCP, and reads each byte of a datagram or a segment one time: the program checks the checksum of what it receives (
support/tcpfor a segment,network.udp_data_readfor a datagram) and writes the UDP header and the checksum of what it sends (network.udp_header_write), so aSendand aReceiveof a datagram endpoint now name the whole datagram, with its header of 8 bytes, 1480 bytes at most. The network service still refuses, in its own copy of the header, a source port that is not a local port of the endpoint and a remote that the grant does not name; a datagram or a segment with a wrong checksum now reaches the endpoint of its port, and the program drops it and counts it. When an endpoint ends, the log has the passes of the network service over its bytes: one on receive and one on send, where the passes were two on receive, and two on send for UDP. - The palette replaces the launcher: the key super opens one panel that lists the programs and the windows in one ranked list, with the fuzzy match of the console and each matched character marked. Enter starts the chosen program or brings the chosen window to the front; the close of a window asks for a second Enter. The input band is the top of the panel, flush with its top, left and right edges, and the typed part is at twice the size of the font. The pointer chooses and runs a row too. The commands of the console are in the list too: a command with no parameter runs from the panel, which shows an Integer, a Text of one line, a Record or an error, and a Table brings the console to the front; a command with parameters gets a form in the input band, one typed field for each parameter, with the candidates that the console gives (programs, modules, grants); each value of each setting is an entry ("set font to spleen"); a first character restricts the list (
>commands,@windows,:settings,?the manual);shutdown,lockandhistory_clearask for a second Enter. The console has a new grant,palette:revoke("console", "palette")leaves the programs and the windows in the palette. The fieldlauncherofcompositor.pointer()is nowpalette, the state of the panel as a number, and the hint of the bar is "palette: super". - The drawing of a window is a module: 23 programs with a window no longer hold a copy of the code that finds the damage of a frame and draws its records, its text and its blends. They import the module
drawing, which has two exports,damage_of_draw_table_7andexecute_draw_table_7: a window calls them two times for a frame, with its draw tables and the pixels of its surface by address, with no copy. The elements, the layout and the input stay in each program. The hash of each of these programs changed, and the module graph has one edge from each of them todrawing. The moduleinterface_modulekeeps its six element exports and lost its two drawing exports. The build now refuses aforeigndeclaration of an import that does not agree with the description of the export: before, it built with no error. In a build of two programs alone, the file ofclockwent from 92 112 to 72 864 bytes and the file ofmonitorfrom 114 688 to 94 208 bytes (one build, QEMU with KVM for the times: the draw time ofclockstayed inside the spread of two runs of the same code). - The heron of the home of the site has fifteen animations and moves most of the time: eight animations are new: a dash in which the heron runs out of the window by its right edge and comes back by its left edge, with a squash at its start and at its stop; a hop; a fish that jumps in front of it; a doze; a stretch; the wind in its crest; a change of the leg it stands on; a flap of its wing. The heron is still for about 40 % of the time. Each animation plays once before one plays again, in an order of chance, and a visit keeps what was played from one page to the next. A reader who asks for reduced motion sees a heron that does not move.
- The heron of the home squashes and stretches on its grid: a cell of the heron is now a square of one size in every picture. Before, the dash, the hop, the stretch and the flap made the whole picture wider or higher, so the cells became rectangles. Now a squashed or a stretched heron is another drawing in whole cells (ten forms, from 20 to 32 columns and from 19 to 26 rows; the head, the eye and the beak are the same in each), and the heron travels by whole cells. The times of the animations did not change.
- The bar of the site has three buttons and one menu: Docs, Gallery and News are buttons, and a button "Project" opens a panel with Status, Releases and Roadmap. The six sections fit one line from a window of 720 pixels, with the search field. The gallery is one click from each page. The menu opens and closes with no script; under 720 pixels its three sections are lines of the site menu.
- The scroll bar has arrow buttons, a thumb with a grip, and the pointer: each scroll bar of the system is one element, 17 pixels thick, with an arrow button at each end, a track and a thumb with a border, a gradient, an inner line and a grip. The bar takes blue tones under the pointer. In a terminal and in
manual, a press on an arrow button moves the view by one line and repeats while it is held, a press on the track moves it by one page, and the thumb follows the pointer. The scroll bars of the site have the same sizes and colors, from the same table, in the dark and in the light form. - The same module with and without debug information: the build asks the compiler for a kind of debug information that adds no instruction to the code,
-debug-info:same-code, an option of the fork of Odin that the flake pins. Each of the 89 modules is the same bytes with and without debug information, so the full check passes again. A debugger loses little: forinspect, the locations of the local variables cover 0.3 % fewer bytes. - The home of the site shows a line of time, charts and a release band, and every control shows its state: the start of the machine is a line of time with two bars, each on a scale that the page states, a row with the name and the time of each stage, and a card for each stage that says what it does, which code runs it and where its guide is. The measures of the home are bar charts of one unit (the kernel entries with 1, 2 and 4 programs, the time of one glyph); a measure that is not such a chart is on the page of the measured numbers only. The newest release is a band with its number, its counts and its first changes as links. A news card with no picture has its text at its top. A click, a tap, Enter or Space on the heron plays an animation at once. Each button, door, numbered link and line of a menu shows the pointer, the focus and a press, in the colors of the desktop.
Fixed
- The search of the site finds the types. A type of the contract, such as
Time_Record, is now an entry of the search, and the result opens its card on the page of the types. - The tiles of the boot image show whole names. On the home of the site, a tile of a small module was narrower than its name, and the name was cut. A tile is now at least as wide as its name.
- Typing in the search of the site no longer scrolls the page. Each key in the search field moved the page up a little.
- The published site shows the measured numbers: the page of the numbers and the start of the machine on the home said "Not measured in this build." for every number, because the site is built on a clean checkout with no machine test. They now come from the measure record that the last full check commits, and each row says which full check and which commit measured it.
- The measure record names its commit. The first record held bytes of a screen in place of the commit that it was measured on.
- A refused measure is said, and the boot display shows whole names: when the TPM refuses to measure the system description, the boot program tries 4 times, then the boot display says "TPM refused the measure" in red and the root service writes a warning, where before the display said "not measured" as for a machine with no TPM. The tiles of the boot image show the whole name of each module or no name, never a cut name, and the trust record takes one line under them. No text of the boot program lies over the boot display any more.
- The icons of the values show with the page: the style sheet now holds the 16 icons of the kinds of values, so a page asks for no file to draw them. Before, a browser asked for each icon alone after the style sheet, and on /docs/ an icon arrived up to 635 ms after the start, after the first paint.
- An unmap gives back the page tables that it empties: a page table that a mapping made returns to the budget that paid for it when the last mapping in it ends, at each level of the table. Before, it stayed until the program ended: a program that mapped at many addresses lost one page for each 2 MiB that it ever used, and a parent was one page short after its first child. An Uncommitted object of 1 GiB now keeps 0 pages after its unmap, where it kept 513.
- The reference pages of the site show a list of names as a list, never as source code: on the page of the grants, each grant of a program is a link to its row and the column of the reasons keeps its place; the imports of the modules, the edges of the module graph, the statuses of an operation, the parameters of a command and the gaps of a property wrap between their names. No page shows the bare name of a document any more, and a page that a cache kept from an older build says so, with a button that reloads it.
- Faults of the QUIC library: a server gives the remote of each connection that ended, also when the caller has few places for them; the handshake gives no packet keys after its secrets are erased; the bytes of the streams are erased when their connection ends; a server that names its preferred groups in EncryptedExtensions is accepted; a ClientHello with a session identifier closes with PROTOCOL_VIOLATION; a
preferred_addressthat is malformed is a TRANSPORT_PARAMETER_ERROR; a connection closes for reserved bits only on a packet that proved authentic; and each error record names the argument at fault with the value that it had. - Small faults that a reading of the code found:
Memory_Maprefuses a flag that the kernel does not know withBad_Operationand a recordBad_Flags, as the other memory operations do;kerneltool test <word>refuses a word that is not a part, lists the parts and ends with the exit code 2, where it ran the whole test; a virtio device that does not finish its reset stops its device service with "the device did not finish its reset" after 1 000 000 reads of its status, where the service waited with no end;life.gliderrefuses a negative column or row,paint.writerefuses a place that is not on the paper (x 0 to 479, y 0 to 295), andmath.gcdrefuses the most negative integer, each with an error record; the help ofsettings.setandsettings.getsays "a setting of the system". - A
Stopand aResumeofThread_Controlno longer forgive what a thread owes: a thread that aStoptook out of its run queue came back as a new thread, so a thread that had run more than its share ran again before the threads that waited. It now leaves the queue as a thread that starts to wait, and comes back as a woken thread. - The program
clockno longer fails when its thread leaves its processor between two reads of the time: it checked that a kernel entry and a read of the time page were at most 1 ms apart, which a busy machine does not give. It now checks that the time of a kernel entry is between two reads of the page around it. - A queue of threads that cannot run no longer keeps the other processors idle: a processor that looks for work tried only the busiest other run queue. When that queue held only threads whose budget had no processor time left, the processor took nothing and went idle while threads waited in a third queue. It now tries the next busiest queue, each queue one time.
- Keys typed while a line of the console runs keep their meaning: a line ends when its result is drawn, and the save of the line history no longer holds the keys after it. Escape typed during a line that is in no call of a sandboxed program or of a service now waits in order with the other keys and acts on the edit line; before, it was taken out of order as a stop of the line, so a list that the keys before it opened stayed open.
- A damaged TCP segment no longer ends a connection of
server: a segment from the remote of a live connection with a wrong checksum or a malformed option madeserverask the network service to forget that remote, and the connection ended by a timeout.servernow releases a remote only when no connection has it. The network service also keeps a listen port taken after a revocation until its endpoint is removed, and ends a Send that waits for the answer of ARP when the grant of its endpoint changes. - No key is lost in silence: four queues between the keyboard and a program dropped a key with no count and no log line when they were full, and a typed line was lost once in a machine test. The input service now leaves the bytes in the keyboard controller while its ring to the compositor is full. The compositor keeps 256 records for a window whose ring is full and sends them in order. The console leaves the keys in its terminal ring while 128 keys wait for the end of a line. Where a writer cannot wait, each lost record is counted, and the log has one line when the loss begins and one with the count when it ends;
compositor.pointer()andcompositor.windows()give the counts (keys_refused, 0 on a system that works). - A refused debug access names the grant:
debug("notes")in the console, anddebugger.attachfrom the host, now print "the debug access to this program: the grant Store of the program refuses it". Before, the sentence gave a number ("the grant 7 of the root service") that changed when a grant was added, and only the log of the root service gave the name. The list of the start grants and their names is now a contract,contract/start_grant, which the root service and the reader of an error record both read; the number of a start grant no longer changes. - The window of the program
heronno longer shows a half-drawn heron: during a fast move, one picture of the screen could show the head of the heron and none of its body, which a reader sees as a flicker. The program now draws a picture that the screen does not read, and the screen takes it when it is complete. Each key of the program also writes one line on the log: the pause, the speed, the cell size, and the frame that the window holds.
Security
- A program no longer reads where the kernel placed its tables: on a processor with UMIP,
sgdt,sidt,sldt,smswandstrof a program give a protection fault, where they gave the addresses of the segment table and of the interrupt table of the kernel; the kernel now writes its own control registers on each processor (an x87 error and an alignment check are faults of the thread on every machine, no breakpoint of the firmware stays on), and a boot line says whether UMIP is on. - A debug trap at the entry of the kernel no longer runs on a stack or with a gs that a program chose: a program that runs
mov ssorpop sswith the trap flag set, just beforesyscall,int3,int1or an instruction that faults, could, on a processor that gives the held trap at the first instruction of the kernel, make the processor push the frame of the trap on the stack of the program at privilege 0, or run the kernel with the gs of the program: the machine stopped, or values that the program chose went to an address of the kernel that it chose. The debug exception, the non-maskable interrupt and the machine check now have their own stack on each processor. The kernel drops each such trap with no code that reads gs; afterint1the frame of the program is lost, and the kernel stops that program with the stop code of a debug exception. An NMI, a machine check or a double fault runs with the gs of the kernel and stops the machine with its line. - A program no longer sees the data selectors of the program before it: the kernel did not keep
ds,es,fsandgsfor a thread, so a value that one program loaded stayed for the next program on that processor, a channel of a few bits between programs. Each return to a program now loads the null selector in each.
0.91.0
Added
- The site shows the state and the reference of the system: a status page gives each property with its status, the evidence and the gaps that name it, then every gap and the next steps; reference tables list the kernel operations, the context, the error kinds and units, the grants, the fixed ranges and the commands of the console, each row read from the file that defines it; each module has a page with its documentation and the signatures of its exports; the home shows the tiles of the boot image.
- The documentation of the system as a site:
kerneltool sitewrites static pages inbuild/site: a home that shows the system, a guide for each document ofdocs/, reference tables (the glossary, the commands of the tool, the measured numbers, the licenses) and every release. Each page names the files and the commit that it comes from; the command checks every link, title and picture before it writes a page. - The mark on a transparent background:
kerneltool logoalso writesresources/logo/modus_transparent.pngandmodus_light_transparent.png, and the README shows the one that fits the color scheme of the reader. - The news of the system: a dated report in prose of each thing that a person can now see or use, one file of
news/for each, beside the technical list of the changelog.kerneltool news newandkerneltool news checkwrite and check them; the site shows them on its page News, the three newest on the home, a link from each release, and the feednews.xml. Eleven entries tell what the system shows from the vector font to the QUIC server. - A search on the site: a box at the right of the bar finds a page, a module, an export, a kernel operation, an error kind, a command, a term, a section of a guide, a news entry or a release with the fuzzy match and the order of the console of the system, with no server and no request to another host. Up, Down, Enter and Escape work as in the console,
/puts the focus in the box, and a search can be linked with?q=. With no script, the box is not shown and every page is reachable by its links. - What other sites read of the site:
kerneltool site --address https://<host>/<path>gives each page its canonical address, Open Graph with the picture of the mark, and one JSON-LD graph built from the page (the system, its source code, the guides as articles, the glossary as defined terms, the modules as a list, the news as posts), and writessitemap.xmlandrobots.txt; the command checks all of them. With no address it writes none of them and says so. Each page also names a manifest, the new feed of the releasesreleases.xmland the guides before and after it, the site has anllms.txt, and the site writes each picture of the repository compressed, with the same pixels: a screen picture of the repository is stored with no compression. - The site on a phone, its author, and its publication: under 720 pixels the sections and the search of the site are behind one square menu button, with one list of links and no inline script; the news cards of the home line up their titles, pictures and texts in a row; each page names its author from the line
CopyrightofLICENSE, in its head, in its JSON-LD graph and in the feeds; a GitHub workflow builds the site withkerneltooland publishes it on GitHub Pages at each push tomaster; the head of the home shows one short tagline, with the rest of the first paragraph ofREADME.mdlower on the page; and the site has afavicon.icoat its root, an SVG icon, an icon for a phone and a maskable icon, each drawn from the cells of the heron at a whole scale; and each table of the site gives each column the least width of what it holds (a date never breaks, a line of a log has room for about 60 characters), keeps the first column in view, and scrolls sideways in its own box, which the keyboard reaches, when it is wider than the page. - The heron of the home moves: the large mark of the home of the site and the icon of its tab play seven small idle animations (a blink, a look, the raised leg, a ripple of the water, a dip of the neck, a preen of the back, a scratch of the ground) between still times of 2.2 to 5.5 seconds. Nothing moves for a person who asks for reduced motion, and nothing runs in a hidden tab.
kerneltool logowritesbuild/mark_animations.pngwith every frame. - A program can repair its own page faults: a program names one of its threads as its fault handler (
Fault_Handler_Set); a page fault of another thread then does not stop the program but becomes a record in the thread record of the handler, and the thread waits until a thread of the program answers (Fault_Answer: resume, or stop with the report of today). Guard pages, a stack that grows and memory committed at its first touch need no policy in the kernel. The kernel has 31 operations; a full ring, a fault of the handler itself, and the end or the change of the handler while a thread waits stop the program, with a report. Only the program of a thread can answer for it. - The kernel records its own work for a program that has the grant: a program with the new right Events on the machine gives the kernel a table of up to 16 rules (
Events_Set, the 32nd operation of the kernel). The kernel then writes one 64-byte record into a ring for each processor for each operation of a kernel entry, switch of threads, fault or wait for a kernel lock that a rule accepts, filtered by program, detail, least duration or one in N. A full ring counts the records that it loses; the table ends with the program that gave it, or when its right is revoked; the address of a page fault is given only for a rule that names the program. With no rule, each event point costs one branch. The programkernel_eventschecks the exact counts. - The types of the site have a card, and the code has colors: the new reference page Types shows each type of the contract, each wire form of the module contract, each record of a module and the basic types, with the size, the alignment, the fields with their offsets and padding, or the members with their values, all from the compiler. Each type in a signature, a declaration, a fact or a table of the reference opens its short card with a click, a tap, the keyboard or a pointer that rests on it. The declarations, the signatures and the Odin blocks of the guides are colored by the tokenizer of the Odin compiler when the site is built, with no script. The scroll bars, the selection, the focus and the marks of the site follow the palette of the system in both color schemes.
Changed
- The kernel runs its small instructions in place: the ports, the model-specific registers, the control registers,
invlpg, the read of the record of the processor and the copy ofuser_copyare instruction templates of Odin, which the compiler puts in the code of each caller with no call and no return; the code that owns the stack or the frame stays in the assembler file. - Shorter addresses on the site: each page is now at a folder, as
https://modus.froment.software/reference/licenses/in place of.../reference/licenses.html; each old address of a page opens a small page that sends the browser to the new address, so that links from before keep working; a site written with no address keeps links that a browser opens from a disk. - The documentation of the site has the layout of a documentation site: each guide, reference page and module page uses the whole window, with the tree of the documentation at the left, the text in the middle and "On this page" at the right, which marks the part in view. Each kernel operation, command and export of a module is documented on its own with its signature, the text of its source comment and a link to its source line. The working record
FIRST_MILESTONE.mdis no longer a guide, and a new build never shows an old style sheet behind the cache of the proxy. Each technical value of the reference, the module pages and the status page (a handle, a number, a status, a type, a module, a file and the others) is in the monospace font, in the color of its kind, with a small pixel icon of its kind; the reference index has the legend of the kinds. - The pictures of the screen are compressed PNG files: the kernel tool writes each PNG file with the encoder of the Odin standard library, so a picture of 1024 by 768 pixels is no longer 2.36 MB of stored data. The same pixels give the same bytes.
kerneltool screenshots compressconverts the pictures that are not compressed yet, with no machine, and checks each pixel of each converted file.
Security
- A program can no longer stop the machine at the return from the kernel: a
syscallin the last two bytes below the half of a program (its return address 2^47 is not canonical), or the flag nested task set withpopfqbefore asyscall, made the processor fault in the kernel at its return, and the kernel stopped the machine. The kernel now checks the frame of each thread before it returns to it and stops that thread's program as its own fault, with the stop code 0x400 and the refused address in its stop report; it clears nested task at eachsyscall; and a fault at the return instruction itself is a fault of the thread.
0.86.0
Changed
- The desktop names things in B612 too. The buttons of the bar, its menus, the titles of the windows and the launcher are in the interface font B612, and the clock, the date and what the person types stay in Paper Mono; the buttons are as wide as their names in that font. The display of the boot, after its first screen, has its titles and names in B612 too.
0.85.0
Fixed
- A QUIC server frees the connection of a client that went silent at its idle timeout: a client that vanished while the server had data in flight kept its connection, and its place in the table of
quic_echo, for about two hours, because each unanswered probe pushed the idle timeout further. It now ends after 30 s, whatever the probes. A replayed packet can no longer keep a silent connection alive, a server can no longer be started with no idle timeout, andquic_echologs how long each idle end took against its bound.
0.84.0
Fixed
- No text of the system is cut in silence: a log line longer than 512 bytes was cut with no sign, and so was each text that a program formats in a buffer too small; the log now takes a text whole, in several lines, and a text that a place cannot hold ends with "... and N bytes more". The console refuses a program name longer than 31 bytes, which the root service cut before.
0.83.0
Added
- The console keeps its line history across a stop: after each line, the history goes to a store of its own in the storage service (4 blocks, apart from the store of the person), and at the next start Up and Control-R find the lines of before, also after a stop of the machine. history_clear() forgets it, in memory and on the disk.
Fixed
- The console prints a long result whole: a result of more than 256 bytes was cut in the terminal and in the log with no sign, and a line of more than 192 bytes was cut in the log; the console now prints each result at any length.
0.82.0
News: Windows name things in B612 and show values in Paper Mono
Changed
- Windows name things in B612. The titles, captions, labels, buttons and lists of every window drawn with the interface package are in the interface font B612, and their values (numbers, typed text, tables, terminals) stay in Paper Mono; a window with no interface font draws everything in Paper Mono with the same layout.
0.81.0
News: Programs can use AVX, and a kernel entry is faster
Added
- Programs can use AVX and AVX-512: the kernel saves the extended state of each thread with
xsaveopt(x87, SSE, AVX, and AVX-512 when the processor has it; one save writes at most 832 bytes with AVX and 2688 with AVX-512, and each thread entry of the kernel holds an area of 2688 bytes), setsCR4andXCR0itself on each processor, and logs what it saves at boot. A processor withoutxsavekeeps the save withfxsave. A program reads what it can use withsupport/instruction_sets, and the programextended_stateshows that each register of each thread is kept.
Changed
- A kernel entry no longer saves the vector registers of a program: the kernel saves and restores the x87, SSE and AVX registers of a thread only when a processor leaves it for another thread, and the kernel itself has no instruction that uses them, which the build proves on each kernel that it makes. One kernel entry takes 120 to 124 ns where it took 176 to 178 ns (the machine of the test, two runs each), and one hand-over between two threads takes 125 to 133 ns with the registers saved and restored.
Fixed
- A program that used AVX no longer gets the high halves of its ymm registers from another thread: before, the kernel saved only 512 bytes with
fxsaveand kept theXCR0that the firmware left, so AVX could work with wrong values and no error. Now a register state component is enabled only when the kernel saves it. - A reset QUIC stream no longer closes the whole connection: when a stream was reset while flow control still held back some of its bytes, the reset named the bytes written instead of the bytes sent, and a correct peer closed the connection. The bytes of a stream are now erased from memory when the stream ends.
0.80.0
News: A QUIC connection carries several streams
Added
- Several streams in one QUIC connection: a client of
quic_echocan open 4 streams at once, and each one is echoed on its own, with its own flow control and its own reset; a lost datagram of one stream no longer holds the others.kerneltool test quicruns one client with 4 streams.
Security
- A QUIC server can no longer be stopped by a few dozen real addresses: the budget of Initial checks of each address can no longer be renewed by addresses that take turns, so 33 hosts no longer stop every new client of
quic_echo. A new address gets no check while the table of 1024 addresses is busy, andquic_echocounts it.
0.79.0
News: The zero of Paper Mono has a slash
Added
- The interface font is drawn. The program
interface_fontshows B612 Regular and Bold placed with their pairs at a third of a pixel: a paragraph, three pairs with and without their adjustment, one word at the three positions of a pixel, the digits in columns, and the time of one line.
Changed
- The zero of the system is slashed. Every window, the console and the terminal draw the character 0 as the slashed zero of Paper Mono, which its feature zero gives, so a 0 no longer looks like the capital O.
- The caches of the interface font come with the system. The two glyph caches of B612 are in the boot image, checked once by the root service and shared read-only by every program with a window, and a program learns which shared ranges it received from one value of its context; the program
interface_fontno longer builds its own caches.
0.78.0
Added
- The time of one key of the completion list is measured: measure_completion() in the console gives the collect, the rank and the rows of one key, for the names of the console and for 512 names of 128 bytes; in the quotes of connect and stop, a key no longer reads the programs that run again.
Changed
- The text of the console no longer moves when the line under the input comes or goes: the terminal keeps one free row under the edit line, and draws the hint there; a hint that is too long for the window shows its short form.
Fixed
- The status line of a terminal names the lines of the text in view: after a clear it said "line 738 of 737", because it counted the edit line as a line of the text; it now says "lines 709 to 736 of 737", or "none in view".
- An export that fails in a sandboxed program or a service no longer changes a table of the console: the console copied back the rows that a failed export wrote in a Change table; it now copies back only the table of error details, as the contract says.
- A completion list shows only the rows that its program gave for it: a list with no rows of its own showed the rows of the list before; when more names exist than the list reads, the line under the input says so.
- A failed isolated call keeps the reason of its failure: when the table of error details came back wrong, the error record of the export was replaced by a record about the table; it now stays, and a separate status says that the details are missing.
Security
- Long names of one length no longer slow each key of the console: the order of two names in the completion list read whole names, up to 64 times for each name, so a service with long export names of one length made each key slow; it now reads at most 256 bytes of a name, and one key has a fixed bound.
0.77.0
News: The heron is in the bar and on the boot display
Added
- The mark in the system: the heron is at the left of the bar of the desktop, in the place of the word "kernel", and the heron with the name modus is in the head of the boot display. Both are drawn from the data of
support/mark, with no picture file in the boot image.
Security
- The program
settingscan no longer make the keys of the person get lost. A new count of changes on the settings page with the same values made the compositor send one record into the ring of each window, the ring that also carries the keys and the pointer; it now tells the windows only when the values differ from the values that it told last.
0.76.0
News: A QUIC server answers on the network
Added
- A QUIC server on the network:
quic_echolistens on the UDP port 4433 with QUIC in the program, writes back each stream, shows its public key, its connections and what it refused in its window, and makes no key when the random seed of the program is weak;kerneltool test quicruns a client of the host against it through the network service, with loss, many clients and a flood of forged packets. - A program can listen on a UDP port: the network service gives a listen grant of UDP, which answers only the remotes that sent a datagram of 1200 bytes at least to the port, as the listen grant of TCP does for a SYN.
- A test of QUIC against OpenSSL:
kerneltool test quic-realconnectsopenssl s_client -quicof the host toquic_echothrough QEMU user networking, pins the key that the machine printed, and checks the echo; the development shell has OpenSSL.
Changed
kerneltool test quic-realreaches the machine through the peer of the tool: QEMU user networking dropped every UDP datagram of the machine, so OpenSSL never received the Retry. The test now goes through a UDP relay of the peer on the loopback of the host, and on a failure prints each datagram that the relay carried and the close of the connection.quic_echologs why a connection ended: the error code and the frame type of the close, and the reason phrase that the client gave.quic_echoresists a flood of new connections better: one host with a valid token can no longer stop the new clients of others, each token of a Retry takes a connection once, and the budgets of work for new connections refill continuously, so a burst at the turn of a second no longer gets twice the budget. Its log and its window count the Initials over the budget of one address and the tokens used again.
Fixed
- Two datagrams of a new QUIC connection that arrive together are both taken:
quic_echolost the second one, and the client waited for its probe timeout. A connection whose client came back just after the server released it is now validated by the network service, so it is no longer held to 3 times the bytes that its client sent.
Security
- A QUIC server keeps nothing for a client that did not prove its address:
quic_echoanswers a first Initial with a Retry and takes a connection only for a client that came back with its token, so forged source addresses no longer hold its handshake places; the work of new connections has a budget in each second. - The network service limits what a UDP listen grant sends to an unproven address: at most 3 times the bytes that came from the remote, until the program marks it validated with the new command
Validate; a send no longer keeps a remote admitted.
0.75.0
News: The mark of the system is a heron
Added
- The mark of the system: a heron of square cells with one gradient in each part, and the name modus under it.
kerneltool logowrites its files inresources/logofrom the data ofsupport/mark, at 1024 pixels on a dark and on a light background and at the sizes 24 to 768.
Changed
- Text over a gradient or a picture is drawn with the SSE2 blend. The text of every window over a title bar or a picture takes the SSE2 form of the blend, with the same pixels as before.
Security
- No program chooses where another program reads its glyph caches. The program
settingscould write the address and the size of the glyph caches on the settings page, and so make each program that started later read and draw memory thatsettingscontrolled; the caches are now at fixed addresses with their sizes in the context that the root service writes, mapped read-only for every program. A program also no longer waits for ever on a settings page left in the middle of a change. - A hostile font file no longer stops the reader. A glyph made of thousands of empty parts made the font reader run for an unbounded time; the reader now stops at 64 parts, and a glyph cache whose monospace glyphs leave their cells, or whose header has unknown flags or a name with no end, is refused.
0.74.0
News: The settings are kept across a stop, Paper Mono is the font of the system
Added
- The pointer theme and the grid fit are settings. The window
settingsandsettings.set("pointer_theme", "system")orsettings.set("grid_fit", "off")change them while every program runs. - Settings survive a stop. The font, the order of the color stripes, the pointer theme and the grid fit of the text are kept in the store of the program
settingsand come back at the next boot; a loss of power gives the old settings or the new ones, never a mix. - A module of text shaping, and the interface font B612 as data. The module
text_shapingplaces the characters of a text with the advances and the pair adjustments of a proportional font, and measures many texts in one call; the build makes the glyph caches of B612 Regular and Bold, which no window draws yet.
Changed
- The titles of the cards are bold. Each card of a window and of the boot display draws its title in the SemiBold weight of the font of the system.
- Text on cards and in the console draws faster. A glyph of the vector font over a plain background costs 109 ns in place of 181 ns on the host (the least of many runs), with the same pixels.
- Paper Mono is the font of the system. The console, the terminal and every window draw their text in Paper Mono on the same grid of 8 x 16 pixels, in place of JetBrains Mono, and the titles of the cards in Paper Mono SemiBold.
0.73.0
News: The console completes names with a fuzzy match
Added
- A caret in the line of the console: Left, Right, Home, End, Delete and Backspace edit the line at the caret, and a character goes in at the caret.
- A completion list in the console: while the person types, a list under the line shows the commands, the exports, the services, the variables and the modules that match by a fuzzy match (
mcntfindsmonitor.count), the matched letters lit, each name with its signature; Tab or Enter takes one, and the line under the input shows the signature of the call at the caret. - A longer line history in the console, with a search: 256 lines in place of 8; Control-R opens a search over them with the same fuzzy match, Control-R and Control-S move to an older and a newer line, and Enter puts the line in the input.
Changed
- A terminal gives its program the modifiers of each key, so that Control with a key reaches the console; a cell of the text grid of the interface package can have a fill color (draw record version 5).
0.72.0
Changed
- BLAKE3 hashes four chunks at a time: in an input of more than 4096 bytes, the four chunks of each subtree of four chunks are compressed side by side in the SSE2 registers, with the same hash as before. The root service checks the hash of each module and resource at its start with it.
- The text of the vector font is blended four pixels at a time: the blend of a glyph over a pixel, in linear light with the three subpixel bands, runs in the SSE2 registers and gives the same pixels as before.
- The pointer picture is blended four pixels at a time, in the SSE2 registers, with the same pixels as before.
0.71.0
News: A failed call names each thing that went wrong
Added
- A table of error details: an export can give each thing that went wrong, not only the first, in an optional table of error records that the caller gives. A caller with no table gets the one error record of before.
monitor.counts_namednames each row that names no count, and the console andkerneltool callprint each detail on its own line after the error. - A load names each missing import: when
loadin the console fails because a module is missing or has the wrong hash, it prints a line for each import of the whole graph that is missing or wrong, not only the first.
Changed
- The call request of
remotehas 112 bytes: it names the place of the table of error details, and the answer of a failed call carries the details and their count. The remote service refuses a request of a tool built before this change.
0.70.0
News: A module of cryptography for every program
Added
- A cryptography module: the module
cryptographygives ChaCha20-Poly1305, AES-128-GCM, SHA-256, HMAC, HKDF, X25519 and Ed25519 to each program, from the code of Odin'score:cryptowith a check that proves each changed line; a tag or a signature that does not verify is an error with no byte given, and the programcryptography_vectorsruns the published vectors through it and shows the speed of each primitive. - QUIC packet protection: the library
support/quicreads QUIC version 1 packet headers as hostile input, derives the Initial keys of a connection, and seals and opens packets with header protection, with AES-128-GCM or ChaCha20-Poly1305 from the modulecryptography; it gives the packets of RFC 9001 appendix A byte for byte. - A program chooses how strong its random seed must be: a key drawn with
random.fill_for_a_keynames the least seed strength that the program accepts (weak, processor or entropy), and a weaker seed gives the error "the random seed of this program has the strength ..." with nothing made; QUIC and TLS ask for processor at least. - TLS 1.3 for QUIC with raw public keys:
support/quicruns the handshake of TLS 1.3 for a client and a server, with X25519, Ed25519 and ChaCha20-Poly1305, and a client accepts the server only when it proves the public key that its caller pinned; no certificate authority and no X.509 are used. - A QUIC connection over memory:
support/quicruns one connection of QUIC with acknowledgements, loss detection, the probe timeout, flow control, one bidirectional stream, the idle timeout, the anti-amplification limit and the close, with the TLS 1.3 handshake inside; a test sends 1 MiB each way through a channel that loses 5 % of the datagrams.
Changed
- The context of a program has 24 values: the values 16 to 23 are for the roles that the system fixes for every program, and the strength of the random seed is the value 16. The 16 values before were full, and two roles wanted one number.
- TLS for QUIC refuses a configuration that would accept a weak seed or that pins no key, and takes a large ClientHello: a least seed strength under processor, or a client pinned key of zeros, stops the start with an error; the transcript holds 8192 bytes; handshake bytes left at a level whose keys were replaced close the connection.
Fixed
- A QUIC packet no longer stops the program with its header protection sample: a ChaCha20 sample that starts with
ff ff ff ffgives its mask, and an Initial packet with a token of up to 2008 bytes is sealed and opened. - A thread with a short stack stops at its guard page: the erasure of the stack after a cryptographic call writes from the top down, so no memory under the stack is written first; a thread that calls the module
cryptographyor draws random bytes needs 24 KiB of stack. - A QUIC connection no longer stops for ever when its data has many holes, and a forged Initial no longer takes a server: data that had no place is not acknowledged, so the peer sends it again; a server takes a client only with an Initial that opens, and a handshake that does not complete within 10 s ends; an old packet whose number was forgotten is refused; a peer cannot move a timer into the past.
Security
- One datagram could stop a program that uses ChaCha20 for QUIC header protection: the ChaCha20 code taken from Odin refused the block with the last counter, and the sender of a packet chooses that counter. The taken file has the correction as listed adjustments, and the correction is offered to Odin. No program used this path yet.
0.69.0
Added
- A line in the draw table: a straight line between two points with a thickness of 1 to 32 pixels.
rings,threads,workersandprocessorsnow draw through the interface package.
Fixed
- The window of
crowdhas the same margin at its right as at its left. - A dragged window stays reachable: a window dragged to an edge of the screen keeps 8 pixels of its title on the screen, so a person can always take it again. Before, a drag to the right or bottom edge could put the whole window off the screen. A window wider than the screen now opens with its close button on the screen.
- A new font reaches every window: after a change of the font in
settings, the terminal, the console and the manual draw their whole window again. Before, these windows mixed the old font and the new one. - The status line of a terminal stays readable: in a terminal with no rates, the keys hint no longer runs over the status of the program, and a status with a very large total no longer gives a wrong bar.
- No old pixels after a full command ring: when a window cannot send its picture to the compositor, its next picture is drawn whole, so the screen never keeps the old pixels of that part.
Security
- The compositor takes only a surface that the program gave: a program could name, in its command to create a surface, a handle that the compositor holds for another program. The compositor then showed the memory of the other program and closed its handle. The compositor now asks the kernel to prove that the handle came through the ring of the program, and closes each handle that it was given, also when it refuses the command.
0.68.0
Fixed
- A build in an empty folder could fail: two module processes of the parallel build made the same folder at the same time, and one of them stopped with "cannot create ... Exist".
- The report of a fault of the kernel no longer reads through the
gsregister (with thegsof a program that read faulted again, with no end and no report), a fault inside the report stops the machine with one line, and the wait for a line of another processor is bounded in time, not in loops.
Security
- One program could stop the machine: a thread made with a first instruction that is not an address of a program made the processor fault in the kernel when the thread first ran, and the kernel stopped the machine. The kernel now refuses such a thread, and such a stack.
0.67.0
News: Every program gets versions of its data
Added
- Every program gets versions of its data. The storage service keeps the state of an object before each change, with no save action and no code in the program: a program, or the person through the console or the host, lists the versions of an object, reads one, compares two, restores one (the state before the restore stays a version) and clones an object, which shares its blocks until one side changes. Each version is kept for 10 minutes, then one an hour for a day, then one a day, by the smaller of its age by the date and its age in running time, so a clock that was wrong on one start thins nothing; at the limit of a store the oldest versions go first, and a change that cannot fit with no version is refused. A version that a damaged block makes unreadable is dropped at the next change of its object, which still works. A disk of the earlier format is not read.
- Undo to any earlier note in notes. Up and Down step through the versions of the note, with the date of each, Enter restores the version shown, and Escape goes back to the current note.
- The system knows the date. The bar shows the date and the time of day in UTC, the HTTP server sends the field Date, and each version keeps the date of its change. The date comes from the clock of the machine, read again each 10 seconds; the service date gives it to a caller with now(). The clock gives the years 2020 to 2099; a clock with an empty battery, or a reading that is not a date, gives no date, and the bar then shows the time since the start.
0.66.0
Added
- A program drives its own virtual memory: a memory object made
Uncommittedholds a range of addresses (1 GiB in one mapping) and its budget pays only for the pages that the program commits;Memory_Commitcommits and decommits tables of ranges, and a decommit gives the pages back to the budget at once;Memory_Protectchanges the protection of pages, withNo_Accessfor a guard page; an object madeLarge_Pagesis mapped with pages of 2 MiB. The programaddress_spaceshows each case with its numbers. - A test of the real shortage of page frames: a machine of the test gives one program nearly all the memory; its four threads take every frame, the kernel takes back the frames that sit in the stacks of the processors, and every frame returns.
Changed
- Two new kernel operations and a narrow right on budgets: the kernel has 29 operations (
Memory_Commit28,Memory_Protect29). A commit names the budget that pays for the object; the new rightCommiton a budget handle lets another program commit pages of that object and nothing else, so a program can let another one grow its object without letting it create objects on its budget.
Fixed
- A program that maps and unmaps no longer grows its page tables: a mapping with no address takes the first free range between the mappings of the program; before, each such mapping took a new range and new page tables until the budget refused (a call host refused its 61st call).
0.65.0
Added
- Tables and bytes as parameters: an export takes a table of records or a run of bytes, to read, to change or to append to, in memory of the caller. The same description works in a direct call, in a call host and in a service; the console,
kerneltool callandremotetake a table as an argument. A table of 65536 records can pass as a memory object, with no copy. - The interface package as a module:
interface_modulegives the elements of the interface through exports that append to the draw table of the caller, andinterface_through_moduledraws its window with it.
Fixed
- A picture or a text grid that changed its index in the draw table, with the same size, was not drawn again.
0.64.0
News: The same source gives the same bytes on all threads of the compiler
Changed
- The compiler runs on all its threads, with no patch: with the release dev-2026-11a of Odin, the same source gives the same module for any count of compiler threads (20 builds of each of the 64 modules, one result each). The patch of 0.59.0 and the option
-thread-count:1are removed.
0.63.0
Changed
- The compiler is Odin dev-2026-11a, pinned by the flake itself: the system used the release of May through Nixpkgs. The instructions
rdrandandrdseedareasmtemplates of the new compiler, inline in the code, and the copied ChaCha20 is taken again from the new release.
0.62.0
Added
- The changelog:
CHANGELOG.mdlists what each release of the system brings, from the first milestone (0.0.0) to step 59 (0.59.0). A branch adds one fragment inchangelog.d/for each change;kerneltool changelog new,check,assemble,releaseandnoteswrite, check and release them, andkerneltool release_numberprints the release number.
Changed
kerneltool buildbuilds the modules in parallel: one process of the tool for each module, each with one compiler on one thread, as many at once as the processors. The modules and the boot image are the same bytes as with one process.
Fixed
- The kernel reports its own fault as whole lines: the report took no lock, and a line of another processor arrived mixed with it on the serial port, so nobody could read the fault. The processor that reports is now the only writer.
- The machine test lost typed keys on a loaded host (
start("fetch")arrived asstart("ETCH")). The tool now sends a key only after the compositor received the key before it.
0.61.0
Added
kerneltool measure windowsstarts each window of the interface package alone and prints the time of its pictures with the load of the host; above a load of 8 it says that the table is not valid.
Changed
- The compositor draws its screen as one draw table of the interface package: the frame of each window, its surface, the bar and the menus. The terminal draws its view as one text grid, and
paint,plasma,templeand the boot display use the package too. - Windows sit on the grid of 8 pixels: a new window, and a window that the person moves, has its corner on the grid.
Fixed
- The terminal showed rows of two frames: with two pictures, a frame presented only its difference with its own picture, and the screen showed the other one.
- A card cuts its caption to the room between its title and its count, and the boot display cuts a fact after its last whole word.
0.60.0
Added
- Each program has a random generator: ChaCha20 with fast key erasure, in the memory of the program. A draw makes no kernel entry and no call. The starter of a program writes its seed of 32 bytes in the context values 9 to 12, and a start with a seed of zeros is refused.
- The seed of the system: the root service gathers it at its start from
rdseed,rdrandand samples of the cycle counter, mixed with BLAKE3, and logs its strength: "entropy", "processor" or "weak". A machine with neither instruction starts and says "weak". The programrandomnessshows these facts. - ChaCha20 from
core:cryptoof Odin, copied intosupport/cryptographywith only its imports changed.kerneltool cryptography-origin, which the check runs, proves that each copied file is its origin, pinned by its hash, with the listed changes only.
0.59.0
Added
kerneltool repeat all <count>builds every module and the boot program again and again, and gives one row for each: the count of distinct modules, LLVM IR files and objects.kerneltool checkandkerneltool repeatkeep each distinct result beside the first one.
Changed
- The rewrite of the LLVM IR of 0.53.0, which fixed the names of static variables, is removed: the cause is corrected.
Fixed
- One source gives one module: the Odin compiler started one worker thread beside its main thread also with
-thread-count:1, and the two threads changed the order of the declarations. A module could differ from one build to the next (hostin 1 build of 12 to 39,consolewith 3 distinct LLVM IR files in 60 builds). The flake applies a patch of 91 lines to the compiler: with-thread-count:1the main thread runs each task.kerneltool repeat all 100gave one module, one LLVM IR file and one object for each of the 61 modules and the boot program.
0.58.0
News: The text of the system is a vector font
Added
- A vector font is the text of the system: every window, the console, the terminal and the boot display draw JetBrains Mono (SIL OFL 1.1) with subpixel bands, blended in linear light. The font is monospace on the grid of 8 by 16 pixels, so no window changes its size; the scales 2 and 3 are drawn from the outline.
- A glyph cache in the boot image: the build draws each character 32 to 126 at three scales, in fixed point, into one file of 390 624 bytes. The root service checks its hash once and maps it read-only into each program. One glyph from the cache takes 309 ns, against 35 ns for Spleen 8x16 (in the machine of the test).
- The program
settings: the person chooses the font (the vector font or Spleen 8x16) and the order of the subpixel bands (rgb,bgr,none), and every window draws again while it runs.settings.set("font", ...)does the same from the console. The setting is not kept across a stop of the machine. kerneltool vector_fontsmakes ASCII subsets of six candidate fonts (14 to 21 KB each, with their licenses inresources/fonts) and a picture that compares them.
Changed
- The default font is the vector font (owner, 2026-11-11). Spleen 8x16 is the fallback and a choice of the person. The value 13 of the context of each program with a surface names the settings page.
- The rasterizer of the vector font works in fixed point. It replaces the prototype in floating point of 0.51.0.
0.57.0
Added
- A loss of power, tested: the kernel tool serves the data disk over NBD and sees each write and each flush. At a loss of power during the commits of
notes, it builds the 306 images that a real disk can hold (72 with a torn write) and opens each one on the host: 227 give the last durable commit, 79 the commit in flight, none a mix. A second machine starts on a hard image, andnotesrestores its text.kerneltool test powerruns it. - Error records in the other calls: a ring completion that fails holds an error record (the block, frame, datagram, network control and root rings), and the wrappers
display.open,terminal.openandsystem.ring_opentake one.start,stop,connectandrevokein the console write the cause of a refusal of the root service. errorshas 25 cases on two pages: one case for each family of calls.
Changed
paint.line,paint.writeandtally.addrefuse with an error record what they cut or dropped with no word before.
Fixed
log.records(0.47.0) left places of its result empty. It fills each place now, and a long text comes in two rows with a continuation mark.
0.56.0
Changed
serveraccepts the absolute form of a target, reads HTTP/1.2 as HTTP/1.1, and ignores two empty lines before the request line (RFC 9112). Each answer saysX-Content-Type-Options: nosniff, and an answer to HTTP/1.0 with keep-alive saysConnection: keep-alive.
Fixed
- The body of a request that is not
/sinkwas read as the next request. The server now ends that connection after its answer. - A refused
server.putchanged the bytes that the server served, and a refusedserver.removegave 404. Both now ask the store first.
Security
- One segment held a connection record of
serverfor ever: a whole request and one more byte. 24 such connections from each of two addresses took the 48 records. The bytes left after an answer now start the time limit of the next head: 408 after 10 s. - A
server.putorserver.removewhile a remote read that page made the server read past the page and stop, or serve mixed bytes. Each page has a generation now, and an answer whose page changed ends with a RST. - A connection that the server had closed had no time limit. The limits now run until its last byte leaves.
0.55.0
Added
- Pointer pictures: the compositor draws the pointer from a theme file, with its hot spot, and chooses the shape from what is under the pointer. A program asks for a shape over its own surface (
display.pointer_shape_set). The programpointersshows each shape of a theme. - Posy's Cursor is the default pointer theme. The build converts it from an input of the flake; no file of it is in the repository, because its license is CC BY-NC 4.0. The theme of the system, 15 shapes as grids of squares, is the fallback.
- Resources of the boot image: a file with a name and a hash, which the root service checks and gives read-only to one program. The pointer themes are the first ones.
kerneltool pointersconverts a text manifest (resources/pointers/*.manifest) and a folder of Xcursor files to a pointer theme file. It reads the Xcursor files as hostile input.
Changed
- The log keeps 2047 records (1023 before).
0.54.0
Added
- Draw records version 2:
Folded_Gap, andPicture(the pixels of a picture of the program, with a generation that the damage sees).lifedraws its board as one picture, and a frame with no change draws nothing.
Changed
- The interface package draws the windows of 19 more programs:
inspect,scheduler,manual,life, andlocks,net,errors,monitor,budget,rights,origin,limits,frames,imports,flow,crowd,disk,tally,notes. None of them has a direct drawing call left.
Fixed
- In a text input, Enter after typed characters now activates the text so far, and the keys after Enter in the same frame are not taken.
- A frame with more than 16 keys lost the keys after the 16th. They now wait for the next frame.
- A
Presentof the whole surface from a place of its own damaged the screen past the window. It damages the window only. - The prototype of the vector font wrote a cell outside its row for a vertical edge on the last column.
0.53.0
Added
- A cache of free page frames on each processor: a stack of at most 256 frames under its own lock, so a page on first use takes its frame with no frame lock. With 4 programs that work at once, the waits on the frame lock fell from 303 382 to 405 521 to under 2 000, and pages on first use rose from 4.79 to 6.49 million to 7.3 to 8.1 million in one second (
locks, the machine of the test). kerneltool measure scheduler Nruns the programscheduleralone N times.kerneltool measure without_checksandkerneltool run without_checksbuild the kernel with no check of the lock order and of the sums of the frames.
Changed
- The test build checks the sums of the frames at each report; the measure build has none of the checks of the kernel. The checks cost about 30 % of the rate of system reports.
Fixed
- The name of a static variable changed from one build to the next, so two builds of one source could give two
kernel.modulefiles. It is the same now.
0.52.0
News: An HTTP server in the system answers the host
Added
- An HTTP/1.1 server:
serverkeeps connections open, answers pipelined requests in order, answersHEAD, and gives the statuses 400, 404, 405, 408, 413, 414, 431, 501 and 505. Its pages are in its private store:server.putandserver.removechange them from the console, for a caller that acts for the person.PUTandDELETEover the network give 405, because the network has no authentication. No TLS, no chunked body, no ranges. web.request_readreads a request head as hostile input (8192 bytes, 64 fields, 1024 bytes of target at most), with host tests of each bound and of 50 000 damaged heads.- The window of
serverhas a table of the last requests, and each request has a log record.
Fixed
GET /hellofromfetchtook 43 ms:fetchwaited for its own ACK timer of 40 ms. It takes 2.7 ms.- A full command ring lost places in
serverandfetch. A command that the ring does not take now waits for the next pass. - A simultaneous open never ended, and a passive open that a RST ended gave no event.
- A SYN to a full table of connections now takes the oldest record in TIME-WAIT at once. With a new connection for each request,
serveranswers 239 to 250 requests in one second, against 4 before.
Security
- A listen port could be closed for good: any segment admitted its sender, so a bare RST from 64 source ports took the 64 places of the admitted remotes. Now a remote is admitted only on a SYN, when a Receive waits, from an address that can answer. A place with no segment for 60 s serves again.
- 32 silent connections from one host filled
server: it never freed a connection that made no progress. It now ends one after 10 s, and one address holds at most 24 of its 48 records. - A RST with data was accepted after the cut, zero-window probes never gave up, and a half-open connection held a record for about 243 s. Each is closed; 18 host tests cover the hostile cases, and 15 of them failed before their correction.
0.51.0
Added
- The interface package (
support/interface): a program describes each frame as a table of draw records of 40 bytes in its own memory. The damage is the difference of two tables, the layout is one pass on the grid, and Tab, Enter and the arrows reach each element.clock, the window ofremoteand the launcher use it:clockdraws one picture in 12 to 14 us, against 109 us before. - The program
interface_elementsshows each element of the package live, the draw table of the last frame, and the damage of each frame. display.present_rectangle: a program names the part of its surface that changed, and the compositor draws only that part again.- A prototype of a vector font, as research: the program
vector_glyphsshows DejaVu Sans Mono at 13, 16 and 32 pixels beside Spleen 8x16, from a reader of a TrueType subset that checks each read.
Changed
- The close button of a window is a deep red (
0xB82232), brighter under the pointer and quiet on a window that is not in front: the color of the concept "stop a program" (owner, 2026-11-11).
0.50.0
Added
- The developer tool
inspectshows one program live: its address space as a band with folded gaps, its mappings with the pages that have a frame, its modules with their hashes, its threads with the fields of the scheduler, the stop report of a stopped program asmodule + offset, and a hex view of its own memory. It reads no byte of another program. A sample takes 34 to 63 us. - Four reports of the kernel for the right Inspect:
Program_Mappings,Threads,StopandPages. The exportsinspect.mappings,inspect.threadsandinspect.modulesgive the same facts tokerneltool call. errorskeeps its stopped programfaultuntil the next run of its case, so that a developer tool can show its stop report.
0.49.0
Added
- The system has its own copy and fill of memory (
runtime/memory.asm) in every module, in the kernel and in the boot program:copy_bytes_without_overlap,copy_bytes_with_overlapandfill_bytes_with_value, with forms chosen by measure. A copy of 4096 bytes takes 34 ns in the machine, against 1170 ns with the loop of 0.45.0. The first use of a page went from 830 ns to about 700 ns.
Changed
- 20 programs take the colors of the design rules from
support/graphics.
0.48.0
Added
- TCP, as a library in the program (
support/tcp): an open from each side, reassembly, the retransmission timer of RFC 6298, Reno with NewReno, zero-window probes, the FIN states, RST, and the challenge ACKs of RFC 5961. A connection is one record of 400 bytes in the memory of the program, and one calltcp.stepserves a batch. - A segment endpoint in the network service, with a client grant (one remote, 64 local ports) or a listen grant (one port, and the remotes that send to it). The network service checks the TCP checksum and the ports of each segment, and keeps no state of a connection.
- The programs
serverandfetch: a small HTTP server (GET /,GET /large,POST /sink) and a client with eight cases. The TCP of the host fetches 1 MiB fromserverthrough QEMU user networking (libslirp), a stack that this project did not write. - The test runs a TCP client in the kernel tool against
server, with seeded loss, reorder and duplicates. 1 MiB fromservertook 52.9 ms in one run, under load.
Changed
- The network service is also on the data path of TCP segments (one copy, the IPv4 header, the checksum, the grant). The note of property 5 says so.
0.47.0
Added
- The compositor is a service:
compositor.pointer()andcompositor.windows()give the place of the pointer, the windows, the focus, the keys, the open menu and the launcher. The kernel tool reads the pointer before each press of the test, and moves it again until it is at the place of the step. log.records(after)gives the log as a table of typed records. The test reads 11 of its checks through it.monitor.counts()gives the scheduling strategy and its changes.
Changed
kerneltool callreads and hashes each module file one time: a call that confirms the place of the pointer takes 0.3 ms, not 3.7 ms.monitorwrites no log line for each call, andremotewrites one sentence for a refusal.
0.46.0
Added
- Three scheduling strategies behind one interface of six functions: round robin, fair (the idea of CFS: a virtual time and weights) and EEVDF. A program with the right
Schedulechanges the strategy while the machine runs (Strategy_Set, operation 27). - Wake preemption, also on another processor: a woken thread no longer waits for the end of a slice of 10 ms when each processor is busy.
- A thread has a weight and a request, given at
Thread_Create. A program can only lower its weight. - The program
schedulermeasures four cases under each strategy and changes the strategy 100 times under load. Two threads that wake each other beside a spinner on each processor: round robin 80 to 84, fair 461 732 to 498 800, EEVDF 313 601 to 332 954 wakes in one second (three runs, while other tests ran on the host). docs/SCHEDULING.md: the research note on CFS, EEVDF andsched_ext.
Changed
- EEVDF is the strategy at boot.
- The machine handle has one more right,
Schedule. The kernel has 27 operations.
0.45.0
Added
- The launcher: the left Super key opens a panel, each typed key narrows the list of programs, the arrows move the choice, Enter starts the program, and Escape closes it.
- The title bar of the window in front goes from the blue
0x3F7CC4to a darker blue at its right.
Changed
- The desktop follows the design rules: the bar, the menus as cards, the window frame, the pointer and the background are rectangles on the grid, in the colors of one table (
support/graphics/rules.odin). The close button is no longer red, because red means "failed" in the rules. support/launcheris nowsupport/bar.
Fixed
graphics.copycalled thememcpyof the freestanding Odin runtime, which copies one byte at a time. A full frame with 15 windows took 26.6 ms; it takes 2.1 ms.
0.44.0
Added
- A call from the host:
kerneltool call "monitor.programs()"calls an export of a service of the machine thatkerneltool runstarted, and prints the typed result. The programremoterelays the call to the services that its grant names (manual,monitor,storage), and refuses a call for another module hash. The calls go over UDP with no authentication: whileremoteruns, a program of the host that sends to its port acts for the person. monitoris a service:programs(),counts(),count()andserved().- The person starts
remotefrom the menu, andrevoke("remote", "person")cuts its right to act for the person. - The test step
Callchecks typed results in place of lines of the log.
0.43.0
Added
system.nanoseconds()gives a fine time from the cycle counter, with no kernel entry. The time page has the cycle counter at the time 0.
Fixed
- The milliseconds of the time page lost the ticks that came late on a loaded host. They now come from the cycle counter:
clockshows the page 0 to 3 ms behind it.
0.42.0
Added
- Errors that diagnose: a kernel operation that fails gives an error record of 56 bytes in its completion record: the kind, the operation, the number of the argument, its value, the limit, and what the kernel found. An export gives one through its last parameter. There is no global last error, and a call that succeeds runs none of this code.
- A fault gives a stack trace from the frame pointers, one line for each frame (
module + offset). - The storage service, the manual and
mathgive error records, and the console writes each record as a sentence. - The program
errors: 19 cases, each one an error made for real, with the sentence of its record. kerneltool repeat <module> <count>builds one module again and again and compares each build with the first.
Changed
- Each module is compiled through LLVM IR and
llc, to keep the frame pointers. A call through a slot takes 4.1 to 4.8 ns, against 3.6 to 3.7 ns before.
0.41.0
Added
- The program
locksmeasures kernel entries, pages on first use and the word wait with 1, 2 and 4 programs that work on their own objects, then stops 120 programs under stress.kerneltool measureruns it with only the desktop.memory()andmonitorshow the takes and the waits of each kind of lock.
Changed
- The kernel lock is split by data: eight kinds of lock in one order that the kernel checks at each take, a lock for each program, and a run queue for each processor. No kernel entry takes a lock for all the kernel; the control lock serves only the paths that cross programs. With 4 programs at once, kernel entries went from 2.78 to 3.25 million to 6.68 to 7.24 million in one second, and pages on first use from 1.62 to 1.82 million to 3.32 to 3.63 million (three runs, only the desktop).
- An idle processor, or one with less load, takes a waiting thread from the queue of another processor.
0.40.0
Added
- The first layer of the network: a frame service drives the virtio network device, and the network service speaks Ethernet, ARP, IPv4, ICMP echo and UDP. A program gets an endpoint whose grant names one remote. The kernel has no network code.
- The program
netshows ten cases with their answers, and its measures: the round trip of a datagram of 64 bytes in 60 to 88 us at least, and 57 886 to 81 733 datagrams in one second with 64 in flight, 0 lost (ten runs). - A frame from the wire never faults the network service: a malformed frame is a refused row of an endpoint or of the machine, which
netreads with the right Inspect. revoke("net", "network")ends the endpoint of a program that runs.- The time page has the frequency of the cycle counter.
0.39.0
Added
docs/DESIGN.md: the design rules, taken from the boot display. Each thing on the screen is a fact of a record, each form is a rectangle, one color is one concept, one font in three sizes, a grid of 8 pixels.
Changed
- A new boot display: a path of ten steps of the start, the stages as one tube on a line of time, cards, and a tile for each module of the boot image in the color of its hash. No form has a round corner.
0.38.0
Fixed
- One build gives one hash: the threads of the compiler changed the order of the functions, and 13 of 48 modules differed between two builds in one folder. The compiler now runs on one thread, and 0 differed in three builds.
kerneltool checkbuilds the modules two times and compares them.
0.37.0
Changed
- The format of the data disk is a contract (
contract/store), which the storage service and the kernel tool read.
Fixed
- A wrong block under a valid root damages one object, not the storage service. Before, it stopped the service for every program. The service takes the root before the newest one when only the newest names a wrong block.
- A damaged object is never read as an empty object:
sizeanswers -8, and the client gives the statusDamaged. Before,noteswrote over its note after a disk error. - A data disk whose first format a stop cut is formatted again. Before, the service refused it for good.
Security
- A program could change the name of an object in the call region between the check of the storage service and its use. The service now copies the name one time, then checks and uses the copy.
0.36.0
Added
- Functions that give the information of the modules: the manual serves tables of the modules, their exports, their imports, who imports a module, the replacements, and what runs, read from the flat tables and from the module records of the kernel. All 45 modules and their 65 exports take about 150 us. The system has no SQLite.
- The console combines tables with
where,sort,joinandcolumns. - A description can have a Table result, and Text fields of a fixed size in a record.
- A malformed module gives a
Problemwith its sentence, never a fault.
0.35.0
Added
- The code of an imported module is one copy for all the programs that one starter starts, at any base. The program
importsstarts two programs that importcalendarat two places.
0.34.0
Added
- Replacement of an import: after
replace("calendar", "calendar_fixed"), each next load uses the corrected module in place of the faulty one, and the module that imports it does not change. The loader checks the description of each export that a slot uses, and refuses a module whose description changed. - The kernel keeps the module records of each program (
Program_Module, operation 26), and the stop report names the module that ran. - The program
importsshows the loader in its cases: a call through an import slot takes 3.5 ns.
Changed
- The kernel has 26 operations.
0.33.0
Added
- A program loads a module with imports: the loader finds each import by its hash in the files that the program was granted, loads each module one time, and binds its slots. The console loads
agenda, which importscalendar. - A failed load gives a record with its detail (
Load_Error): the stage, the module, the import, and the hash that the load source does not have.
0.32.0
Added
- A persistent program:
noteskeeps a note and a count in its private store across a restart of the machine; each key is one commit. The test runs four machines on one data disk: a clean stop, an end of QEMU during 1000 commits, and a cut root block.
0.31.0
Added
- The storage service: each program has a private store on the data disk, named by the root service, with a limit in blocks. The engine is new: copy on write, two places for the root block, and a check in each pointer.
- The storage service starts at the first connection.
storage.stores()lists the stores for the person, andrevoke(name, "store")cuts the grant of a program.
0.30.0
Added
- A block service: a program drives a virtio disk through device memory, a message interrupt, and memory with a physical address. The root service finds the device on the bus and gives it.
- The program
diskmeasures it: with 32 requests in flight, 165 000 to 300 000 blocks read in one second, with one kernel entry for 10 to 20 requests (two runs). Memory_Physical(operation 25) gives the physical address of a memory object to a holder of the right Physical.
Changed
Device_Createmakes device memory and message interrupts. The kernel has 25 operations.
Fixed
- A Ports handle that a program received while its ports were open on the processor did not open its ports, and the program stopped on a protection fault.
0.29.0
Added
- Shared code: the programs of one module map the same pages of code and constants with no Write, each with its own writable data. Four programs
twinuse 311 pages in place of 320. - The programs
framesandtwinshow ten cases of pages on first use and of shared code, each with the answer of the kernel.
0.28.0
Changed
- Pages on first use: a memory object reserves its pages in its budget at its creation, and gets each page frame at its first use. There is no overcommit. An object of 8192 pages is ready in 74 us, against 2 560 us with all its frames at once; the first use of a page takes 722 ns.
- The frames of a memory object are in a frame list, not contiguous. The reports and
memory()show the reserved pages.
0.27.0
Added
- The menu of the windows in the bar: a press on the title of a window brings it to the front.
Fixed
- The kernel tool read lines of the log that QEMU had not finished. It was a cause of a machine test that failed sometimes.
0.26.0
Added
- Limits of a budget: a limit of processor time and a limit of log records for each second. The kernel counts processor time with the cycle counter and applies the limit in each period of 100 ms. A limit counts in each budget above.
thread_starttakes a budget. The programlimitsruns three threads at 5 %, 20 % and 60 % of one processor.
0.25.0
Added
- Revocation of a grant: the kernel keeps the origin of each handle and each mapping, and
Handle_Revoke(operation 24) ends all that came from a handle. A lent handle is revoked after its call. - The root service records its grants:
grantsandrevokein the console. The programoriginshows twelve cases. Handle_Givewith the target 0 copies a handle in the same program.
Changed
- The kernel has 24 operations. A lent handle costs its caller 5 kernel entries and 2000 ns (2 entries before).
Fixed
- The compositor wrote past its table of windows when it removed a window with 17 programs open, and stopped on a bounds check.
0.24.0
Added
- Records and handles in a description: an export takes a Record (bytes with described fields) and a Handle, which is lent with the rights of the description and ends with its call. The console has Record and Handle values:
Rectangle(1, 2, 30, 4),buffer(1),byte(b, 4095). Handle_State(operation 23) proves where a handle came from.- The module
sampleshows a record and a lent handle in an isolated call.
Changed
- The kernel has 23 operations.
0.23.0
Changed
- The console runs in a terminal and has no surface. The terminal sends key records to its program, and the program owns its edit line. The root service starts a program and its terminal together.
- A terminal draws after a change only.
0.22.0
Added
- The command
kerneltoolin the development shell.
Changed
- Two source libraries:
contract:(what two parties agree on; the kernel compiles with it only) andsupport:(what a program compiles in). An import names its library; no relative import is left.
0.21.0
Added
- One module in each role:
tallyruns as a program, as a service, as a library in the console and as a sandboxed program, with the same hash. - A module carries its documentation, and the program
manualshows it: the exports, their parameters, and the ways to use the module. unloadin the console removes a module.
0.20.0
Added
- The time page: the kernel writes the time in one page that each program reads, so
system.time()does not enter the kernel.clockreads it 879 to 1 491 million times in one second, against 1.9 to 2.4 million with a kernel entry (four runs).
0.19.0
Added
- A shared queue: several writers and several readers with no lock, and an event that several threads wait on.
crowdmoves 33.9 million records in one second with 1 writer and 1 reader, with 2 to 6 kernel entries for one million records (alone in the machine).
0.18.0
Added
- The terminal: a program sends typed records of text with a style, with no escape sequence. A reader thread and a drawer thread show them, and the display does not slow the program:
floodwrites 1.7 to 3.0 million lines in one second (five runs). - A surface can have two pictures.
kerneltool filmfilms the terminal.
Fixed
- A ring of 0.17.0 could lose a wake.
0.17.0
Added
- A ring has a capacity, chosen at its creation: one wake serves many records, and
wait_spinspins a short time before it waits.flowmoves 29.8 million records in one second with a capacity of 1024 andwait_spin, with 56 kernel entries for one million records (one run).
Changed
- A full ring slows its writer to the speed of its reader: a ring does not grow.
0.16.0
Added
- A program that runs serves its own exports:
connect("paint")in the console, thenpaint.line(...). The root service makes each connection, and a call has the same description and the same form as the call of a module.paintandlifeserve exports.
0.15.0
Added
- The log is records in channels: each record has a time, a program, a thread, a level, a channel and a text. The kernel is the one writer; a reader maps the records with the right Read. The program
logshows them.
0.14.0
Changed
- The launcher is a menu: one button in the bar opens one line for each program.
0.13.0
Added
- Paging protects the kernel from itself: guard pages around each kernel stack, no page writable and executable, the direct map not executable, SMEP and SMAP, and one place where the kernel uses the memory of a program (
user_copy). - Six tests of the kernel on itself: each one does a thing that the page tables refuse, and checks the report of the fault. The program
pagesshows what the page tables give.
0.12.0
Added
- The boot display: a boot record with the stages of the start, drawn by the boot program, then by the root service, then by the program
boot. A start that fails keeps the display, with its cause.
0.11.0
Added
- Several processors: the kernel runs on each processor under one kernel lock, with a processor record and a timer for each.
processorsshows four processors that run one program: a picture takes 404 ms with 1 thread and 148 ms with 4 (one run).
0.10.0
Added
- Budgets: no kernel operation creates an object from nothing. A memory object, a program and a thread take a budget handle with the right Spend.
Budget_CreateandBudget_Readare operations 21 and 22. The programbudgetshows each page come back. - The log is an object:
Logtakes a Log handle with the right Write.
Changed
- The kernel has 22 operations.
0.9.0
Added
- Rights on handles: each handle has a set of rights,
Handle_Givecopies a handle with fewer rights, and an operation without its right givesNo_Right. The machine is one object with the rights Inspect, Devices and Stop. In the programrightsthe kernel does four operations and refuses five.
0.8.0
Changed
- Descriptions come from the source: the kernel tool reads the name of each parameter and the help from the comment of each export, and the test checks them.
0.7.0
Added
- The console runs a line in a second thread: it keeps the keys during a call, and Escape stops an isolated call.
Removed
- The limit of 2000 ms of an isolated call. The person decides with Escape.
0.6.0
Changed
- One wait: rings wait on words, and each thread has an event word.
Removed
- The operation
Wake(memory). The kernel has 20 operations.
0.5.0
Added
- The word wait and a lock:
Word_WaitandWord_Wake(operations 19 and 20) on a word in shared memory, andsystem.Lockas a library over them.workersshows four threads on one number, and one queue of 140 tiles. - The kernel tool writes the boot volume itself.
Changed
- The kernel has 21 operations.
0.4.0
Added
- Several threads in a program, each with its own kernel ring:
Thread_Create,Thread_StopandThread_State.threadsdraws one square from each of five threads.
Changed
- The kernel has 19 operations.
0.3.0
Added
- Text results: an export writes text into a buffer of the caller and gives a count of bytes.
0.2.0
Added
- The program
rings: six programs pass records through six rings, drawn live from the shared memory. A stopped program takes no record: the records wait in its ring.
0.1.0
Added
- The isolated call:
isolate("probe")in the console runs a module in a call host, a sandboxed program with no handle, and calls its exports through a ring. A module that faults or loops stops alone.
0.0.0
Added
- The system boots under QEMU to a desktop: a UEFI boot program loads the kernel module and the boot image. The kernel has one entry point and runs the operations of the kernel ring of each thread (16 operations). The root service starts the other programs in user space and grants their handles.
- The console: integers, texts, variables, arithmetic and typed commands.
load("math")makes the exports of a module commands. - The desktop: the compositor with a bar, a clock, windows, focus, drag and close; it draws only the damaged rectangles. The programs
monitor,plasma,life,paintandtemple;faultshows that a fault stops one program only. - The module format: a module is named by the BLAKE3 hash of its content. The kernel tool converts a linked ELF image to a module, builds the boot image, and tests the machine under QEMU.
