Repository navigation
Releases
Releases · sachahjkl/modus
v0.96.0
[0.96.0] - 2026-11-19 20:51
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 i...
v0.93.0
[0.93.0] - 2026-11-17 06:56
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 expor...