DOCUMENTATION / V1.0.0 LTS
CHANGELOG
All notable changes to OrbitOne will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[1.0.0] - 2026-10-25 - OrbitOne v1.0.0 Long-Term Support (LTS)
Phase 16 — Serveur de Fichiers Réseau NFSv3 (RFC 1813) & Partage Réseau VFS (share)
Étape A : Serveur de Fichiers Réseau NFSv3 RFC 1813 & SunRPC (
src/nfsd.rs,src/commands/nfsd.rs):- Moteur NFSv3 pur
#![no_std]conforme RFC 1813 & SunRPC XDR v2. - Port d'écoute par défaut UDP/TCP 2049, table de points de partage et
contrôle des permissions (
ReadOnly,ReadWrite). - Implémentation des procédures RPC NFSv3 :
NFSPROC3_NULL,NFSPROC3_LOOKUP,NFSPROC3_READ,NFSPROC3_WRITE,NFSPROC3_READDIR. - Intégration VFS avec lectures et écritures de flux d'octets
atomiques via
read_file_bytesetwrite_file_bytes. - Commande shell
nfsd(Commande #166, aliasnfs) :nfsd status [--json]: statut d'activité, port d'écoute, compteurs d'opérations et inventaire des exports.nfsd start [port]/nfsd stop: démarrage et arrêt du démon NFS.nfsd export <chemin> <nom> [ro|rw]: création d'un partage local pour accès réseau distant.nfsd unexport <nom>: retrait d'un point de partage.nfsd exports [--json]: liste des partages exportés.nfsd test: auto-test automatisé avec requêtes SunRPC NULL procedure.
- Moteur NFSv3 pur
Étape B : Gestionnaire de Partages Réseau & Montage Distant (
src/commands/share.rs):- Gestionnaire unifié des partages réseau locaux et montages distants
sur le VFS (
share). - Commande shell
share(Commande #167, aliasshares,netshare) :share list [--json]: inventaire des dossiers partagés sur le réseau local.share add <chemin> [nom] [ro|rw]: partage rapide d'un dossier local.share rm <nom>: suppression d'un partage existant.share mount <ip> <partage> <point>: montage d'un partage NFS distant sur un point du VFS local.share test: auto-test automatisé du sous-système de partage.
- Gestionnaire unifié des partages réseau locaux et montages distants
sur le VFS (
Jalon Historique : OrbitOne v1.0.0 LTS Atteint
- Périmètre Fonctionnel de l'OS Complet :
- 167 Commandes Shell Intégrées réparties sur 12 domaines fonctionnels.
- 75 Primitives d'Appels Système POSIX avec barrière
d'isolation mémoire
usercopy, W^X et bac à sableprlimit. - Architecture 100 % Rust pur
#![no_std]avec zéro dépendance C ou assembleur externe non vérifié. - Multitâche SMP Préemptif distribué avec vol de travail (work-stealing), affinité CPU et migration dynamique.
- Bootloader Natif UEFI x86-64 PE32+
(
BOOTX64.EFI) avec GOP framebuffer et générateur Live ISO hybride (create_iso.sh). - Pilote Haute Performance PCIe NVMe 1.4 MMIO
(
/dev/nvme0n1). - Synchronisation & Multithreading POSIX :
Threads Ring 3, TLS (
arch_prctl), et primitives atomiques Futex (FUTEX_WAIT/WAKE/REQUEUE). - Démon SSH-2 Embarqué conforme RFC 4253 / RFC 8731
(
curve25519-sha256) avec shell interactif distant. - Pile Web Complète : Serveur HTTP/1.1 embarqué et
HTTPS TLS 1.3 natif (
httpd), client Web console (web). - Gestionnaire de Fenêtres Interactif VirtIO-GPU 2D
(
wm) avec souris USB xHCI et applications graphiques. - Chaîne de Développement C Auto-Hébergée
(
cc) compilant directement du C99 vers x86-64 ELF64. - Infrastructure Réseau d'Entreprise : Routage
dynamique CIDR (
route), pare-feu Netfilter (iptables), sockets brutes (rawsock), renifleur de paquets (tcpdump), serveur DHCP (dhcpd), serveur DNS récursif (named), synchronisation NTP (ntpd), horloge RTC CMOS (hwclock), serveur NFSv3 (nfsd).
- Assurance Qualité & Fiabilité Industrielle :
- 620 Tests Unitaires Hôte validés à 100 %
(
scripts/test_lib_unit.sh). - 686 Assertions de Couverture Hôte
(
scripts/test_host_coverage.sh). - 57 / 57 Vérifications E2E QEMU Headless passées
avec succès (
scripts/test_integration_e2e.sh). - Zéro avertissement Clippy sous
cargo clippy.
- 620 Tests Unitaires Hôte validés à 100 %
(
[0.11.0] - 2026-10-25
Phase 12 — Routage Dynamique, Pare-feu Netfilter, Sockets Brutes & Renifleur de Trafic tcpdump
Étape A : Table de Routage IP Dynamique & Longest-Prefix Match (
src/route.rs,src/commands/net.rs):- Implémentation du moteur de routage IPv4 dynamique
(
RoutingTable,RouteEntry, singletonROUTING_TABLE). - Résolution de destination par plus long préfixe (Longest-Prefix Match - LPM).
- Gestion des routes d'hôte (
/32), sous-réseaux CIDR arbitraires (/24,/16), passerelle par défaut (0.0.0.0/0) et bouclagelo. - Priorisation par métrique entière en cas de recouvrement de préfixe.
- Commande shell
route(Commande #156, aliasip route) :route: affichage tabulaire standard (Destination,Gateway,Genmask,Flags,Metric,Iface).route add [-net|-host] <dest/cidr> [gw <gw>] [dev <iface>] [metric <n>]: ajout dynamique de route.route del [-net|-host] <dest/cidr>: suppression dynamique de route.route test: suite de tests automatisée.
- Implémentation du moteur de routage IPv4 dynamique
(
Étape B : Pare-feu à Filtrage de Paquets Netfilter & iptables (
src/firewall.rs,src/commands/iptables.rs):- Moteur de filtrage de paquets inspiré de Linux Netfilter
(
Firewall, singletonFIREWALL). - Chaînes de traitement standard :
INPUT,OUTPUT,FORWARD. - Politiques par défaut configurables par chaîne (
ACCEPT,DROP). - Cibles de règles d'inspection :
ACCEPT,DROP,REJECT(avec envoi d'erreur),LOG(intégration directe avecsyslog). - Critères de correspondance fins : protocole (
tcp,udp,icmp,all), plages CIDR source/destination, ports source/destination, interfaces réseau d'entrée (-i) et de sortie (-o). - Compteurs de paquets et d'octets par règle et par chaîne.
- Commande shell
iptables(Commande #157, aliasfirewall) :-L: listage des chaînes et des règles avec compteurs de paquets et d'octets.-P <chain> <target>: définition de la politique par défaut.-F [chain]: réinitialisation / purge des règles d'une chaîne ou de toutes les chaînes.-D <chain> <rule_num>: suppression d'une règle par son numéro d'index (1-indexé).-A <chain> [matchers...] -j <target>: ajout d'une règle en fin de chaîne.
- Moteur de filtrage de paquets inspiré de Linux Netfilter
(
Étape C : Sockets Brutes POSIX & Inspection Réseau (
AF_PACKET/SOCK_RAW) (src/raw_socket.rs,src/commands/rawsock.rs,src/syscall.rs,src/fdtable.rs):- Prise en charge des sockets brutes au niveau des trames Ethernet
(
AF_PACKET= 17) et au niveau réseau (AF_INET= 2,SOCK_RAW= 3). - Intégration du descripteur VFS dédié
DescriptorKind::SocketRaw { raw_sock_id }dansFdTable. - Primitives POSIX
sys_socket,sys_bind,sys_read,sys_write,sys_sendto,sys_recvfrom,sys_close. - Intégration transparente avec le multiplexage d'E/S événementiel
polletepoll(POLLIN,POLLOUT). - Filtrage fin par interface de liaison (
eth0,virtnet0,lo) et par ethertype/protocole (ETH_P_ALL,ETH_P_IP,ETH_P_ARP,ETH_P_IPV6). - File d'attente de réception circulaire (16 paquets) avec éviction FIFO sous saturation et statistiques temps réel.
- Commande shell
rawsock(Commande #158, aliassockraw) :status [--json]: inventaire tabulaire ou JSON des sockets brutes actives, interfaces liées, compteurs RX/TX et pertes.create [domain] [type] [proto]: allocation d'une nouvelle socket brute.bind <id> <interface>: liaison de la socket à une interface réseau spécifique.send <id> <hex_payload>: injection directe d'une trame brute hexadécimale.recv <id>: lecture et vidage hex/ASCII du prochain paquet en file d'attente.close <id>: libération de la socket brute.test: auto-test automatisé du sous-système de sockets brutes.
- Prise en charge des sockets brutes au niveau des trames Ethernet
(
Étape D : Analyseur de Trafic Réseau & Capture de Paquets en Temps Réel (
tcpdump/snoop) (src/commands/tcpdump.rs):- Analyseur et renifleur de paquets temps réel basé sur les sockets
brutes
AF_PACKET/SOCK_RAW. - Décodeur de protocoles Ethernet, ARP, IPv4, ICMP, TCP (avec drapeaux SYN, ACK, FIN, RST, PSH, URG), et UDP (avec détection DNS).
- Vidage hexadécimal et ASCII complet (
-X) façon tcpdump/wireshark. - Système de filtrage dynamique en temps réel : par protocole
(
arp,ip,icmp,tcp,udp), par port source/destination (port <N>), par adresse IP (host <ip>), et par interface (-i <iface>). - Commande shell
tcpdump(Commande #159, aliassnoop) :tcpdump [-i <iface>] [-c <count>] [-X] [-v] [-n] [filters...]: capture et analyse en direct.tcpdump status [--json]: télémétrie des sockets brutes sous-jacentes.tcpdump test: banc de test de décodage des trames et de validation des filtres.
- Analyseur et renifleur de paquets temps réel basé sur les sockets
brutes
Phase
13 — Sysfs (/sys), Contrôleur Unifié CGroup V2 &
Limites de Ressources POSIX prlimit
Étape A : Contrôleur Unifié CGroup V2 (
src/cgroup.rs,src/commands/cgroup.rs):- Hiérarchie unifiée CGroup V2 avec gestionnaire
CGroupManager(CGROUP_MANAGER). - Arborescence de groupes de contrôle avec héritage et délégation de
contrôleurs :
cpu,memory,pids. - Contrôleurs implémentés :
cpu.max(quota CFS et période en microsecondes),cpu.weight(poids relatif 1-10000).memory.max(plafond d'allocation mémoire en octets, avec suivimemory.current).pids.max(nombre maximal de tâches/threads autorisés, avec suivipids.current).
- Déplacement et association des tâches (
cgroup.procs) et threads (cgroup.threads). - Commande shell
cgroup(Commande #160, aliascgroups) :cgroup list [--json]: inventaire complet de l'arborescence, contrôleurs et processus membres.cgroup create <name> [cpu=<max>] [mem=<max>] [pids=<max>]: création d'un groupe.cgroup set <name> <param=val>: mise à jour dynamique des plafonds.cgroup add <name> <pid>: rattachement d'un processus au groupe.cgroup rm <name>: suppression d'un groupe vide.cgroup test: banc de validation automatisé de la hiérarchie et des contrôleurs.
- Hiérarchie unifiée CGroup V2 avec gestionnaire
Étape B : Système de Fichiers Virtuel Sysfs (
/sys) & Procfs (/proc/<pid>/) (src/sysfs.rs,src/procfs.rs,src/fs.rs):- Système de fichiers virtuel
/sysexposant l'état matériel, les périphériques et les cgroups :/sys/kernel/:osrelease,version,hostname./sys/class/net/: interfaces réseau actives, adresses MAC, MTU et compteurs./sys/class/block/: périphériques blocs et géométrie de partition./sys/devices/system/cpu/: inventaire des coeurs CPU, fréquences et états./sys/fs/cgroup/: arborescence dynamique CGroup V2 manipulable parmkdir,rmdir,catetecho.
- Intégration VFS bidirectionnelle dans
src/fs.rspour la lecture et l'écriture de pseudo-fichiers/sys/fs/cgroup/<group>/<controller>. - Extension de Procfs avec répertoires par processus
/proc/<pid>/:/proc/<pid>/status: nom, état, PID, PPID, UID, GID, consommation mémoire./proc/<pid>/cmdline: arguments de lancement de la commande./proc/<pid>/stat: métriques d'ordonnancement et temps CPU./proc/<pid>/limits: limites de ressources POSIX en vigueur./proc/<pid>/cgroup: groupe CGroup V2 d'appartenance.
- Système de fichiers virtuel
Étape C : Limites de Ressources POSIX prlimit (
src/rlimit.rs,src/commands/prlimit.rs,src/syscall.rs):- Extension du sous-système POSIX RLIMIT avec gestion des limites de
temps CPU ticks (
RLIMIT_CPU). - Primitives
get_cpu_ticks_limitetset_cpu_ticks_limit. - Commande shell
prlimit(Commande #161, aliaslimit) :prlimit [--pid <pid>] [--json]: consultation tabulaire ou JSON des plafondssoftethard.prlimit [--pid <pid>] <RESOURCE>=<soft>:<hard>: ajustement dynamique des limites (CPU,FSIZE,DATA,STACK,CORE,RSS,NPROC,NOFILE,MEMLOCK,AS).prlimit test: banc de test de modification et de vérification des plafonds.
- Extension du sous-système POSIX RLIMIT avec gestion des limites de
temps CPU ticks (
Phase 14 — Serveur DHCP RFC 2131/2132 & Serveur et Cache Proxy DNS RFC 1035
Étape A : Serveur DHCP RFC 2131/2132 (
src/dhcpd.rs,src/commands/dhcpd.rs):- Moteur complet de serveur DHCP IPv4 pur
no_std(DhcpServer,DHCP_SERVER). - Prise en charge du cycle DORA (DHCPDISCOVER -> DHCPOFFER -> DHCPREQUEST -> DHCPACK) et libération DHCPRELEASE.
- Gestionnaire de baux IP avec table d'état (
Lease,LeaseState:Offered,Bound,Expired). - Options DHCP RFC 2132 supportées :
- Option 1 : Masque de sous-réseau (Subnet Mask).
- Option 3 : Routeurs / Passerelle par défaut (Routers).
- Option 6 : Serveurs de noms de domaine (Domain Name Servers).
- Option 51 : Durée du bail d'adresse IP (IP Address Lease Time).
- Option 54 : Identifiant du serveur DHCP (Server Identifier).
- Émission de réponses en diffusion broadcast Ethernet/IP conforme RFC 2131.
- Commande shell
dhcpd(Commande #162) :dhcpd status [--json]: état d'exécution, sous-réseau, plage d'adresses et baux attribués.dhcpd start/dhcpd stop: démarrage et arrêt du démon.dhcpd leases [--json]: liste détaillée des baux actifs (adresse MAC, IP attribuée, état, expiration).dhcpd pool <start_ip> <end_ip>: reconfiguration de la plage de distribution.dhcpd test: auto-test complet simulant un cycle DORA bare-metal.
- Moteur complet de serveur DHCP IPv4 pur
Étape B : Serveur et Cache Proxy DNS Récursif RFC 1035 (
src/dns_server.rs,src/commands/named.rs):- Serveur de noms DNS UDP port 53 pur
no_std(DnsServer,DNS_SERVER). - Décodeur de requêtes DNS : décompression et parsing de labels QNAME RFC 1035.
- Encodeur de réponses DNS : compression de noms par pointeurs de
décalage (
0xc000). - Prise en charge des types d'enregistrements :
- Type A (IPv4 Address).
- Type AAAA (IPv6 Address).
- Type CNAME (Canonical Name).
- Type PTR (Reverse DNS Lookup).
- Gestion de zone DNS locale et proxy de cache avec TTL dynamique.
- Transfert en amont (upstream relay) configurable vers DNS public.
- Commande shell
named(Commande #163, aliasbind) :named status [--json]: état du serveur, statistiques de requêtes et de cache.named start [upstream]/named stop: démarrage avec serveur amont optionnel.named records [--json]: liste des enregistrements de zone locale et du cache.named add <domain> <ip> [ttl]: injection d'un enregistrement DNS dans la zone locale.named test: auto-test complet vérifiant l'encodage, le décodage et la résolution de requêtes DNS.
- Serveur de noms DNS UDP port 53 pur
Phase 15 — Démon NTP RFC 5905 (ntpd) & Horloge Matérielle RTC CMOS (hwclock)
Étape A : Gestionnaire d'Horloge Matérielle RTC CMOS (
src/hwclock.rs,src/commands/hwclock.rs):- Module de gestion de l'horloge temps réel matérielle CMOS RTC
(
HwClockManager,HWCLOCK_MANAGER). - Prise en charge des conversions et du formatage ISO-8601
(
YYYY-MM-DD HH:MM:SS UTC). - Primitives de synchronisation bidirectionnelle :
hctosys: synchronisation de l'horloge système à partir du RTC CMOS.systohc: écriture et sauvegarde de l'horloge système dans le RTC CMOS matériel.
- Calcul déterministe du décalage (drift) entre l'horloge système et le RTC.
- Commande shell
hwclock(Commande #164, aliasrtc) :hwclock/--show/-r: affichage de l'horloge matérielle et de la dérive.hwclock --hctosys/-s: synchronisation système depuis le RTC.hwclock --systohc/-w: mise à jour du RTC depuis le système.hwclock --set "<date>": réglage manuel de l'horloge matérielle RTC.hwclock --json: télémétrie structurée JSON.hwclock test: banc de test automatisé de conversion et synchronisation.
- Module de gestion de l'horloge temps réel matérielle CMOS RTC
(
Étape B : Démon de Synchronisation Temporelle NTP v4 RFC 5905 (
src/ntpd.rs,src/commands/ntpd.rs):- Moteur complet de synchronisation horaire réseau conforme standard
IETF RFC 5905 (
Ntpd,NTPD). - Décodeur et encodeur de paquets NTP v4 48 octets (LI, Version, Mode, Stratum, Poll, Precision, Root Delay, Dispersion, RefID, Timestamps).
- Gestion du décalage d'époque NTP vers Unix
(
2_208_988_800secondes entre 1900 et 1970). - Écoute et génération de réponses serveur (Mode 4) sur le port UDP 123 pour requêtes clientes.
- Mode client et gestionnaire de serveurs pairs (peers) avec calcul de décalage d'horloge (offset) et temps de boucle (delay RTT).
- Commande shell
ntpd(Commande #165, aliaschrony) :ntpd status [--json]: statut du démon, stratum, intervalle de sondage, offset, RTT et compteurs.ntpd start [upstream]/ntpd stop: démarrage et arrêt du démon NTP.ntpd sync [server]: synchronisation pas-à-pas immédiate avec le serveur cible.ntpd peers [--json]: liste des serveurs pairs, strate, offset, latence et joignabilité.ntpd peer add <ip>: ajout dynamique d'un nouveau serveur pair.ntpd test: auto-test complet vérifiant l'encodage, le décodage et l'échange serveur.
- Moteur complet de synchronisation horaire réseau conforme standard
IETF RFC 5905 (
[0.10.0] - 2026-10-25
Phase 11 — Superviseur de Services PID 1, Runlevels & Sécurité Multi-Utilisateurs PAM
Étape A : Superviseur de Services & Init PID 1 (
src/init.rs,src/commands/service.rs,src/main.rs):- Implémentation du superviseur de démons système d'OrbitOne
(
InitSupervisor,INIT_SUPERVISOR). - Prise en charge des runlevels 1 à 4 :
RunLevel::SingleUser (1): Maintenance minimale console monocoeur.RunLevel::MultiUser (2): Console multi-utilisateurs standard.RunLevel::Server (3): Services réseau complets (httpd,sshd,dns).RunLevel::Graphical (4): Poste de travail graphique complet (wm, audio, hotplug).
- Gestion du cycle de vie des démons :
start_service,stop_service,restart_service,set_runlevel. - Surveillance avec redémarrage automatique (respawn) sur
panne/crash dans
tick(). - Intégration dans la séquence de démarrage de l'étape 9 du noyau.
- Commande shell
service(Commande #151, aliassystemctl) :service status [--json],service start <name>,service stop <name>,service restart <name>,service runlevel [1-4], et auto-testservice test.
- Implémentation du superviseur de démons système d'OrbitOne
(
Étape B : Authentification Multi-Utilisateurs & Sécurité PAM (
src/auth.rs,src/commands/login.rs,src/commands/su.rs,src/syscall.rs,src/main.rs):- Sous-système d'authentification inspiré des standards UNIX PAM
(
AuthManager,AUTH_MANAGER). - Base de comptes
/etc/passwd(UserRecord) et base d'empreintes sécurisées/etc/shadow(ShadowRecord). - Hachage cryptographique salé SHA-256 (
$6$salt$hash) sans dépendance externe (crate::tls::sha256). - Comptes d'amorçage créés par défaut :
root(UID 0),orbit(UID 1000),guest(UID 1001). - Gestion des sessions et élévation de privilèges :
login_user,switch_user,set_password,add_user. - Sémantique POSIX de contournement de mot de passe lorsque l'utilisateur appelant est root (UID 0).
- Syscalls POSIX implémentés :
SYS_GETUID = 71(sys_getuid)SYS_GETGID = 72(sys_getgid)SYS_SETUID = 73(sys_setuidavec vérification de privilège root)SYS_SETGID = 74(sys_setgidavec vérification de privilège root)
- Commandes shell :
login(Commande #152, aliaswhoami) : ouverture de session, affichage de l'identité active (--json), auto-testlogin test.su(Commande #153, aliassudo,passwd) : basculement d'identité, changement de mot de passe/etc/shadow, auto-testsu test.
- Sous-système d'authentification inspiré des standards UNIX PAM
(
Étape C : Système de Tâches Périodiques Cron (
src/cron.rs,src/commands/cron.rs,src/init.rs,src/main.rs):- Analyseur pur
no_stdd'expressions Crontab à 5 champs standard (CronSchedule,CronField). - Prise en charge des jokers (
*), valeurs exactes, pas (*/15), listes (1,15,30) et plages (1-5). - Gestionnaire de tâches planifiées
CronManager(CRON_MANAGER), calcul des déclenchements et dispatch automatique de commandes. - Tâches système par défaut chargées au démarrage
(
*/10 * * * * storage rescan,0 * * * * sync). - Démon système
cronenregistré dans le superviseurInitSupervisor(runlevel_min: MultiUser). - Commande shell
crontab(Commande #154, aliascron) :crontab -l,crontab status [--json],crontab add <expr> <cmd>,crontab rm <id>, et auto-testcrontab test.
- Analyseur pur
Étape D : Démon de Journalisation Système Unifié Syslog RFC 5424 (
src/syslog.rs,src/commands/logger.rs,src/commands/syslog.rs,src/syscall.rs,src/init.rs,src/main.rs):- Implémentation du protocole standard Syslog IETF RFC 5424 et BSD Syslog RFC 3164.
- Niveaux de sévérité standards :
EMERG (0),ALERT (1),CRIT (2),ERR (3),WARNING (4),NOTICE (5),INFO (6),DEBUG (7). - Facilités système :
KERN (0),USER (1),MAIL (2),DAEMON (3),AUTH (4),SYSLOG (5),LOCAL0..LOCAL7. - Calcul conforme de priorité :
PRI = (Facility * 8) + Severity. - Tampon annulaire en mémoire vive (512 entrées) avec horodatage système unifié et persistance.
- Démon système
syslogdsupervisé parInitSupervisor(runlevel_min: SingleUser). - Nouveau syscall POSIX / Linux :
SYS_SYSLOG = 75(sys_syslog, lecture et interrogation du tampon). - Commandes shell associées :
logger(Commande #155) : injection de messages logués avec sévérité et facilité (-p fac.sev -t tag <msg>), auto-testlogger test.syslog(Commande #156, aliasdmesg,journalctl) : consultation en temps réel (tail [N]), filtrage par niveau (--severity), formatage canonique (--rfc5424), statut en JSON (--json), et auto-testsyslog test.
Phase 10 — Démon SSH Interactif, Tubes Nommés (FIFO mkfifo), Mémoire Partagée (shm) & Multiplexage d'E/S (poll / select)
Option 1 : Démon SSH Réseau Réel avec Shell Distant Interactif (
src/ssh.rs):- Implémentation du shell interactif bidirectionnel complet au-dessus
du sous-système PTY (
PtyManager). - Envoi de la bannière d'accueil sécurisée
(
=== Welcome to OrbitOne Secure Shell ===\r\nroot@orbitone:~#) lors de l'allocation d'un pseudo-terminal (pty-req). - Transmission et traitement des frappes du client dans
SSH_MSG_CHANNEL_DATAvers l'esclave PTY (mgr.slave_write). - Détection automatique de fin de ligne en mode canonique
(
\n/\r), lecture de la ligne complète (mgr.slave_read), et exécution native des commandes shell (help,sysinfo,whoami,version,uname,status,exit). - Renvoi du résultat et du prompt interactif via le maître PTY vers le client SSH distant.
- Implémentation du shell interactif bidirectionnel complet au-dessus
du sous-système PTY (
Option 2 : Primitives IPC POSIX Complètes — Tubes Nommés (FIFO) & Mémoire Partagée (
src/fifo.rs,src/shm.rs,src/commands/mkfifo.rs,src/commands/shm.rs,src/fdtable.rs,src/syscall.rs):- Tubes Nommés FIFO (
mkfifo) :- Gestionnaire de files d'attente FIFO circulaires de 4096 octets
(
FIFO_CAPACITY) indexées par chemin VFS (create_fifo). - Modèle de synchronisation lecteurs/rédacteurs non-bloquant avec
gestion d'erreurs POSIX (
EPIPEsur écriture sans lecteur). - Descripteurs
DescriptorKind::FifoReaderetDescriptorKind::FifoWriterdans la table de descripteursFdTable. - Syscall POSIX
SYS_MKFIFO = 61, et intégration danssys_open,sys_close,sys_read_file,sys_write_file, etsys_dup2. - Commande shell
mkfifo(Commande #145) :mkfifo <path>,mkfifo list,mkfifo status [--json], et auto-testmkfifo test.
- Gestionnaire de files d'attente FIFO circulaires de 4096 octets
(
- Mémoire Partagée POSIX (
/dev/shm,shm_open,shm_unlink) :- Sous-système pur
no_stdd'objets mémoire partagée nommés (ShmSegment) avec verrouillage réentrant (SpinLock). - Opérations atomiques
shm_open,shm_unlink,truncate,read_at,write_at. - Descripteur
DescriptorKind::ShmdansFdTableavec curseur de position autonome pourread,write,lseek. - Syscalls POSIX
SYS_SHM_OPEN = 62etSYS_SHM_UNLINK = 63. - Commande shell
shm(Commande #146) :shm list,shm create,shm write,shm read,shm unlink,shm status [--json], et auto-testshm test.
- Sous-système pur
- Tubes Nommés FIFO (
Option 3 : Multiplexage d'E/S POSIX Événementiel (
src/poll.rs,src/commands/poll.rs,src/syscall.rs,src/fdtable.rs,src/unix_socket.rs,src/pty.rs):- Implémentation complète de la spécification POSIX
poll(2)etselect(2). - Structure
PollFdavec masques d'événements :POLLIN,POLLOUT,POLLPRI,POLLERR,POLLHUP,POLLNVAL. - Évaluation d'état en temps réel pour tous les descripteurs du noyau
: sockets TCP/UDP, sockets locales AF_UNIX
(
has_data_unix_socket,has_space_unix_socket), PTY maître et esclave (has_master_data,has_slave_data), tubes anonymesPipeet nommésFifoReader/FifoWriter, et fichiers mémoire partagéeShm. - Émulation de
select(2)au-dessus de l'infrastructurepollavec conversion bidirectionnelle des ensemblesfd_set. - Syscalls POSIX
SYS_POLL = 46etSYS_SELECT = 60. - Commande shell
poll(Commande #147) :poll status [--json], et auto-test de multiplexagepoll test.
- Implémentation complète de la spécification POSIX
Option 4 : Multiplexage d'Événements Scalable en O(1)
epoll(src/epoll.rs,src/commands/epoll.rs,src/syscall.rs,src/fdtable.rs):- Sous-système pur
no_stdde notification d'événements en O(1) (EpollManager,EpollInstance). - Prise en charge des drapeaux d'événements :
EPOLLIN,EPOLLOUT,EPOLLPRI,EPOLLERR,EPOLLHUP,EPOLLET(Edge-Triggered) etEPOLLONESHOT. - Intégration de
DescriptorKind::EpolldansFdTableet fermeture propre des descripteurs danssys_close. - Syscalls POSIX / Linux :
SYS_EPOLL_CREATE = 64,SYS_EPOLL_CTL = 65,SYS_EPOLL_WAIT = 66. - Commande shell
epoll(Commande #148) :epoll status [--json], et auto-test de multiplexageepoll test.
- Sous-système pur
Option 5 : Masquage & Synchronisation Atomique des Signaux POSIX (
src/sigmask.rs,src/commands/sigmask.rs,src/task.rs,src/syscall.rs):- Masque de signaux (
SigSet = u64) et ensemble de signaux en attente (pending: u64) gérés par tâche. - Sémantique complète des opérations
SIG_BLOCK,SIG_UNBLOCK,SIG_SETMASKavec respect strict de l'interdiction de masquerSIGKILLetSIGSTOP. - Interception dans
task::kill: mise en file d'attente automatique des signaux masqués (enqueue_pending_signal) et délivrance automatique lors du démasquage. - Syscalls POSIX :
SYS_RT_SIGPROCMASK = 67,SYS_RT_SIGPENDING = 68,SYS_RT_SIGSUSPEND = 69. - Commande shell
sigmask(Commande #149) :sigmask status [--json],sigmask block <sig>,sigmask unblock <sig>, et auto-testsigmask test.
- Masque de signaux (
Option 6 : Projection Mémoire Partagée VFS Complète (
mmap MAP_SHARED&msync) (src/mman.rs,src/commands/mman.rs,src/syscall.rs):- Moteur de gestion des projections de mémoire virtuelle
MmapManagersupportantMAP_SHARED,MAP_PRIVATE,MAP_ANONYMOUS, etMAP_FIXED. - Résolution des backings de projection : mémoire anonyme paginée,
segments
/dev/shmpartagés (shm_id), et fichiers VFS. - Synchronisation mémoire vers stockage : primitive
msyncavec drapeauxMS_SYNC,MS_ASYNC,MS_INVALIDATE. - Syscall POSIX
SYS_MSYNC = 70, et intégration dansSYS_MMAP = 30etSYS_MUNMAP = 31. - Commande shell
mmap(Commande #150, aliasmsync) :mmap status [--json], et auto-testmmap test. - Validation complète : 600 tests unitaires réussis, 663 assertions de couverture hôte, et 41/41 vérifications E2E QEMU validées.
- Moteur de gestion des projections de mémoire virtuelle
[0.9.0] - 2026-10-16
Phase 9 — Persistance VFS Avancée, Sockets Locales AF_UNIX, Swap & Environnement Utilisateur
- Session Shell & Historique Persistant
(
src/console.rs,src/line_editor.rs,src/commands/help.rs,src/commands/system.rs):- Persistance de l'historique des commandes dans
/home/root/.history. - Chargement automatique au boot et sauvegarde automatique à l'arrêt
(
shutdown) ou redémarrage (reboot). - Nouvelles commandes et options shell :
history -c(effacement),history -w(sauvegarde immédiate),history -r(rechargement depuis fichier).
- Persistance de l'historique des commandes dans
- Scripts de Démarrage Système & Profil Utilisateur
(
src/main.rs):- Exécution ordonnée au boot de
/etc/rc.local(script administrateur système) puis/home/root/.profile(script de session utilisateur).
- Exécution ordonnée au boot de
- Sockets Locales POSIX AF_UNIX / AF_LOCAL & socketpair
(
src/unix_socket.rs,src/commands/unixsock.rs,src/syscall.rs,src/fdtable.rs):- Sous-système pur
no_stdsans interblocage (locks indépendants par socket) avec tampons circulaires de 4096 octets (UNIX_SOCKET_BUF_SIZE). - Prise en charge des modes
SOCK_STREAMetSOCK_DGRAM, avec gestion des fermetures par le pair (EPIPE/SIGPIPEsur écriture,EOF 0sur lecture). - Primitives
socketpaircréant deux descripteurs connectés bidirectionnels en duplex intégral. - Liaison de sockets au système de fichiers VFS
(
bind_unix_socket,/tmp/demo.sock) et résolution de connexion client-serveur (connect_unix_socket,listen_unix_socket). - Nouvel appel système POSIX
SYS_SOCKETPAIR(Syscall #58) avec passage en Ring 3 et duplication de descripteurs (sys_fork,sys_dup,sys_dup2). - Nouvelle commande shell
unixsock(Commande #142, alias:socketpair) : sous-commandesstatus,list,pair,bind,testavec support--json. - Intégration complète dans le harnais E2E headless QEMU (32/32 tests validés).
- Sous-système pur
- Mémoire Virtuelle Étendue & Swap sur Partition Brute
(
src/swap.rs,src/commands/swap.rs,src/arch/x86_64/interrupts.rs):- Implémentation complète de la spécification standard
SWAPSPACE2(offset 4086 de la première page). - Gestion des slots de swap de 4096 octets (8 secteurs de 512B) sur partition brute ATA PIO ou NVMe.
- Politique d'éviction LRU (Least Recently Used) pour décharger automatiquement les trames physiques vers le swap sous pression mémoire.
- Résolution et rechargement transparent à la volée (swap-in) intégré
dans le gestionnaire d'interruption de défauts de page (#PF
page_fault_handler). - Commande shell
swap(Commande #143) avec sous-commandesstatus,on,off,evict,testet mode--json. - Intégration complète dans le harnais E2E headless QEMU (33/33 tests validés).
- Implémentation complète de la spécification standard
- Gestionnaire de Montage & Hotplug de Stockage
(
src/storage.rs,src/commands/storage.rs,src/fs.rs,src/vfs_catalog.rs):- Découverte et détection dynamique des périphériques amovibles (clés USB Mass Storage xHCI classe 0x08, disques ATA secondaires).
- Moteur d'auto-montage sous
/media/<device>intégré à la table dynamiqueDYNAMIC_MOUNTSdu VFS. - Journal circulaire d'événements hotplug (
PLUG,UNPLUG,MOUNT,UMOUNT) avec alertes noyau[storage-hotplug]. - Sous-commandes
storage [status|inventory|devices|hotplug|mount|umount|rescan|automount|test]avec support complet du mode--json. - Intégration et validation dans le harnais de tests unitaires (591 tests validés) et E2E headless QEMU (34/34 tests validés).
- Pseudo-Terminaux PTY (
/dev/ptmx,/dev/pts/) & Contrôle de Lignetermios(src/pty.rs,src/commands/pty.rs,src/devfs.rs,src/syscall.rs,src/fdtable.rs):- Implémentation complète de l'architecture Maître/Esclave conforme
POSIX.1-2008 / IEEE Std 1003.1 pour sessions SSH interactives, scripts
et émulateurs de terminaux GUI (
wm term). - Discipline de ligne complète avec modes canonique
(
ICANON, backspaceVERASE, killVKILL,VEOF), brut (RAW), écho automatique (ECHO,ECHOE,ECHOK), signaux d'interruption (ISIG,VINTRCtrl+C ->SIGINT,VQUITCtrl+\ ->SIGQUIT), et géométrie de fenêtreWinSize(TIOCGWINSZ). - Nœud multiplexeur
/dev/ptmx, sous-système de nœuds esclaves dynamiques/dev/pts/<id>dansdevfs, et descripteursPtyMaster/PtySlavedansFdTable. - Syscall POSIX
SYS_OPENPT = 59, routage danssys_read,sys_write,sys_close,sys_open, etsys_dup2. - Commande shell
pty(#144) avecstatus,list,create,close,write,read,termios,winsize,testet support--json. - Intégration et validation dans le harnais de tests unitaires (594 tests validés) et E2E headless QEMU (35/35 tests validés).
- Implémentation complète de l'architecture Maître/Esclave conforme
POSIX.1-2008 / IEEE Std 1003.1 pour sessions SSH interactives, scripts
et émulateurs de terminaux GUI (
- Intégrations PTY & Télémétries Système
(
src/gui/desktop.rs,src/ssh.rs,src/procfs.rs):- Émulateur de Terminal OrbitDesktop
(
wm term) : Raccordement automatique à un PTY esclave dédié/dev/pts/<id>; synchronisation bidirectionnelle du flux terminal avec la discipline de ligne et mise à jour de la géométrie de fenêtre (set_winsize). - Serveur SSH (
sshd) : Prise en charge des requêtes de canauxpty-req(RFC 4254) avec allocation dynamique de PTY, négociation des dimensions (ws_col,ws_row), transmission transparente des frappes et commandes via le maître PTY et empaquetage dansSSH_MSG_CHANNEL_DATA, avec clôture propre des canaux. - Télémétrie
/procÉtendue : Ajout des pseudo-fichiers/proc/swaps(statut, partition, capacité et utilisation swap),/proc/tty/drivers(pilotes console, ptmx, pts),/proc/tty/driver/pty(état du gestionnaire de PTY et canaux actifs) et enrichissement dynamique de/proc/mountsavec les disques ATA et clés USB découverts.
- Émulateur de Terminal OrbitDesktop
(
[0.8.0] - 2026-10-12
Phase 8 — SMP Multithreading, Pipeline C Userland, Bootloader UEFI Natif & Validation E2E
Étape 1 : Validation E2E & Tests QEMU Headless Complets (
scripts/test_integration_e2e.sh):- Intégration dans le harnais QEMU automatique de
nvme test,threads test,futex test,sshd testetuefi test. - Couverture validée à 31/31 marqueurs sans régression en environnement headless.
- Intégration dans le harnais QEMU automatique de
Étape 2 : Ordonnancement SMP & Multithreading POSIX (
src/thread.rs,src/sched.rs,src/syscall.rs,src/commands/thread.rs):- Liaison du sous-système de threads légers avec l'ordonnanceur
multi-cœurs SMP (
SmpScheduler). - Prise en charge de l'affinité processeur (
cpu_affinity) et de la migration de threads (assigned_cpu,migrate_thread). - Nouveaux appels système POSIX :
SYS_SCHED_SETAFFINITY(Syscall #56) etSYS_SCHED_GETAFFINITY(Syscall #57). - Nouvelles sous-commandes shell
threads affinity <tid> [cpu_id]etthreads migrate <tid> <cpu_id>.
- Liaison du sous-système de threads légers avec l'ordonnanceur
multi-cœurs SMP (
Étape 3 : Chaîne de Développement C Userland Complète (
src/vfs_catalog.rs,src/cc.rs,src/commands/cc.rs):- Exposition standard dans le VFS des en-têtes C système :
/usr/include/stdio.h,/usr/include/stdlib.h,/usr/include/orbit.h,/usr/include/unistd.h. - Résolution dynamique des directives
#include <...>dans l'arborescence/usr/include/. - Nouvelle sous-commande
cc run <source.c>compilant directement les programmes C et déclenchant leur exécution immédiate en Ring 3.
- Exposition standard dans le VFS des en-têtes C système :
Étape 4 : Amélioration Bootloader & Démarrage UEFI Natif x86_64 (
src/uefi.rs,src/commands/uefi.rs,scripts/create_iso.sh):- Implémentation complète de la spécification PE32+ pour application
EFI x86-64 avec sous-système
IMAGE_SUBSYSTEM_EFI_APPLICATION(10). - Générateur automatique d'exécutable
BOOTX64.EFIpurno_stdet structures GOP (Graphics Output Protocol). - Commande shell
uefi(Commande #141) :uefi status [--json],uefi test,uefi gop,uefi build-esp [path]. - Générateur d'image ISO hybride (
scripts/create_iso.sh) produisant une image amorçable en Dual BIOS El Torito + UEFI GPT ESP natif (efiboot.img).
- Implémentation complète de la spécification PE32+ pour application
EFI x86-64 avec sous-système
[0.7.0] - 2026-10-09
Phase 7 — Les 5 Options Majeures vers OrbitOne OS v1.0
Option 1: Applications Graphiques Natives pour le Window Manager (
wm term,wm view,wm edit):- Types d'Applications de Bureau
(
src/gui/desktop.rs):- Introduction de
AppType::Terminal,AppType::ImageViewer,AppType::TextEditorpour les fenêtres graphiques. - Émulateur de Terminal graphique fenêtré avec invites de commande interactives, historique d'affichage et buffer de rendu.
- Visionneuse d'images intégrée avec rendu de mire de calibration RVB, gradient 24-bit, damier alpha et métadonnées graphiques.
- Éditeur de texte graphique fenêtré avec numérotation de lignes, coloration d'en-tête et curseur d'édition.
- Introduction de
- Sous-commandes Shell
wm(src/commands/wm.rs):wm term [title]: Ouvre une fenêtre de terminal graphique.wm view [image_path]: Ouvre la visionneuse d'images.wm edit [file_path]: Ouvre l'éditeur de texte graphique.- Auto-test du gestionnaire de fenêtres étendu à 10 étapes de validation.
- Types d'Applications de Bureau
(
Option 2: Pilote de Stockage Haute Performance PCIe NVMe 1.4 (
src/nvme.rs,src/commands/nvme.rs):- Pilote NVMe pur
#:- Découverte PCI universelle (Classe
0x01Mass Storage, Sous-classe0x08NVMe, ProgIF0x02). - Gestion des registres MMIO NVMe (CAP, VS, CC, CSTS, AQA, ASQ, ACQ) et sonnettes de soumission/complétion (Doorbells).
- Files d'administration (Admin Submission & Completion Queues) et d'E/S (I/O Submission & Completion Queues) avec entrées 64-octets SQE et 16-octets CQE.
- Commandes d'administration : Identify Controller (Opcode
0x06), Identify Namespace (Opcode0x00), Create I/O SQ/CQ. - Commandes de données NVM : NVM Read (
0x02), NVM Write (0x01), NVM Flush (0x00). - Enregistrement comme périphérique de blocs standard
crate::block::BlockDevice(/dev/nvme0n1).
- Découverte PCI universelle (Classe
- Commande Shell
nvme(Commande #137,src/commands/nvme.rs):nvme status [--json],nvme list,nvme id-ctrl,nvme id-ns [nsid],nvme benchmark [blocks],nvme read <lba>,nvme test.
- Pilote NVMe pur
Option 3: Multithreading POSIX & Synchronisation Rapide Futex (
src/thread.rs,src/futex.rs,src/commands/thread.rs):- Sous-système Futex pur
#:- Opérations atomiques
FUTEX_WAIT,FUTEX_WAKE,FUTEX_REQUEUE,FUTEX_CMP_REQUEUEavec gestion de masquesFUTEX_BITSETet drapeauxFUTEX_PRIVATE_FLAG. - Gestionnaire
FutexManageravec files d'attente d'adresses virtuelles et réveil ciblé sans interblocage.
- Opérations atomiques
- Gestionnaire de Threads POSIX & TLS
(
src/thread.rs):- Blocs de contrôle de threads
ThreadControlBlockavec état (Ready,Running,Blocked,Exited), allocations de pile utilisateur isolées et enregistrement deTGID. - Support du Thread-Local Storage (TLS) via
sys_arch_prctl(ARCH_SET_FS=0x1002,ARCH_GET_FS=0x1003,ARCH_SET_GS=0x1004,ARCH_GET_GS=0x1005) configurant les MSR x86-64IA32_FS_BASE/IA32_GS_BASE.
- Blocs de contrôle de threads
- Appels Système Intégrés
(
src/syscall.rs):- Syscall #53 (
SYS_CLONE) : Création de threads légers partageant l'espace d'adressage virtuel (CLONE_VM), descripteurs (CLONE_FILES), signaux (CLONE_SIGHAND) et thread-group (CLONE_THREAD). - Syscall #54 (
SYS_ARCH_PRCTL) : Configuration de la base de segment FS/GS pour le TLS. - Syscall #55 (
SYS_FUTEX) : Multiplexage complet des primitives de synchronisation rapide.
- Syscall #53 (
- Commande Shell
threads/futex(Commande #138,src/commands/thread.rs):threads status [--json],threads list,threads spawn [n],threads test,futex test.
- Sous-système Futex pur
Option 4: Serveur SSH-2 Sécurisé Embarqué pur
#:- Pile Protocolaire SSH-2 Conforme RFC 4253 / RFC 8731
(
src/ssh.rs):- Chaîne d'identification
SSH-2.0-OrbitOne_1.0\r\n. - Échange de clés (KEX)
curve25519-sha256basé sur Curve25519 et SHA-256 sans allocation dynamique. - Dérivation de clés de session de transport conformes RFC 4253 Section 7.2 (IVs, Encryption Keys, MAC Keys pour client/serveur).
- Négociation de paquets (
SSH_MSG_KEXINIT,SSH_MSG_NEWKEYS,SSH_MSG_KEX_ECDH_INIT,SSH_MSG_KEX_ECDH_REPLY). - Service d'authentification utilisateur
(
SSH_MSG_USERAUTH_REQUEST,password,none). - Multiplexage de canaux et exécution distante de commandes du shell
(
SSH_MSG_CHANNEL_OPEN,SSH_MSG_CHANNEL_DATA).
- Chaîne d'identification
- Commande Shell
sshd(Commande #139,src/commands/ssh.rs):sshd start [port],sshd stop,sshd status [--json],sshd sessions,sshd test.
- Pile Protocolaire SSH-2 Conforme RFC 4253 / RFC 8731
(
Option 5: Préprocesseur C & Améliorations du Compilateur Auto-Hébergé (
src/cc.rs):- Préprocesseur C
(
src/cc.rs:preprocess):- Directives de compilation conditionnelle
#ifdef,#ifndef,#else,#endif. - Définitions de macros
#define NAME VALUEet expansion textuelle. - Inclusion d'en-têtes système
#include <stdio.h>,#include <stdlib.h>,#include <orbit.h>et fichiers relatifs VFS.
- Directives de compilation conditionnelle
- Extensions Lexicales & Syntaxiques
(
src/cc.rs):- Prise en charge des prototypes de fonctions (déclarations sans corps
se terminant par
;). - Prise en charge des paramètres de fonction
(void)et types pointeursvoid*. - Nouveaux mots-clés et opérateurs :
struct,switch,case,default,break,continue,do,.,->,:. - Stubs intégrés pour la bibliothèque C standard :
puts,putchar,malloc,free,exit.
- Prise en charge des prototypes de fonctions (déclarations sans corps
se terminant par
- Préprocesseur C
(
Chantier 1: Serveur TLS 1.3 Natif Embarqué pour
httpd(HTTPS entrant RFC 8446 & RFC 7748):- Moteur Cryptographique pur
#:- Arithmétique modulaire Curve25519
x25519dérivée de TweetNaCl sans allocation dynamique, validée à 100% sur les vecteurs officiels RFC 7748 (Alice, Bob et secret partagé). - Négociation de session TLS 1.3 côté serveur : analyseur de
ClientHello(extensions Supported Versions TLS 1.30x0304, KeyShare Curve255190x001d, CipherSuitesTLS_CHACHA20_POLY1305_SHA256). - Émission de
ServerHello(clé publique éphémère ECDHE), messagesChangeCipherSpecet records chiffrésEncryptedExtensions,Certificate,CertificateVerify, etFinished. - Dérivation de clés HKDF-SHA256 pour les clés de trafic de handshake
et d'application (
server_write_key,server_write_iv,client_write_key,client_write_iv). - Chiffrement et déchiffrement AEAD ChaCha20-Poly1305 avec calcul de
nonce dynamique
IV ^ sequence_number.
- Arithmétique modulaire Curve25519
- Serveur HTTPS dans
httpd(src/httpd.rs&src/commands/httpd.rs):- Support de la terminaison HTTPS native sur le port standard 8443 via
httpd start [port] [--tls [tls_port]]ouhttpd tls [port]. - Routage des requêtes HTTP/1.1 sécurisées (dashboard
/,/api/status,/api/health). - Télémétrie TLS complète (sessions actives, octets reçus/transmis chiffrés, handshakes réussis).
- Test 8 ajouté à la suite d'auto-test
httpd test.
- Support de la terminaison HTTPS native sur le port standard 8443 via
- Moteur Cryptographique pur
Chantier 2: Gestionnaire de Fenêtres Interactif VirtIO-GPU & Souris USB (
wm#135):- Intégration Matérielle & Souris Unifiée
(
src/arch/x86_64/mouse.rs,src/gui/mod.rs):- Prise en charge unifiée des événements de pointeur matériel (souris
PS/2 et contrôleur USB xHCI HID) et des injections logicielles
(
set_mouse_position,inject_mouse_delta). - API de gestion des fenêtres : création, destruction, déplacement
absolu (
move_window_to), focus Z-order (focus_window), minimisation et maximisation (set_window_state). - Détection automatique et accélération graphique matérielle VirtIO-GPU 2D / Bochs BGA VBE 2.0 avec composition en double-buffering.
- Prise en charge unifiée des événements de pointeur matériel (souris
PS/2 et contrôleur USB xHCI HID) et des injections logicielles
(
- Commande Shell
wm(Commande #135,src/commands/wm.rs):- Commandes
status,start [res],stop,list,move <id> <x> <y>,focus <id>,min <id>,max <id>,mouse <x> <y> [-c],demo,test. - Démonstration animée interactive pas-à-pas avec déplacement de fenêtres par glisser-déposer (drag-and-drop).
- Auto-test 7 étapes validant la résolution, la détection des fenêtres, le Z-order, le hit-testing souris et le rendu graphique.
- Commandes
- Intégration Matérielle & Souris Unifiée
(
Chantier 3: Compilateur C Minimal Auto-Hébergé vers ELF64 (
cc#136,src/cc.rs):- Compilateur pur
#:- Analyseur lexical (lexer) : mots-clés (
int,char,void,return,if,else,while,for), identifiants, littéraux entiers décimaux/hexadécimaux, caractères, chaînes et commentaires. - Analyseur syntaxique descendant récursif (parser) produisant un AST typé pour déclarations de fonctions, variables locales, affectations, boucles, conditions et appels de fonctions.
- Générateur de code x86-64 : respecte l'ABI AMD64 System V
(
rdi,rsi,rdx,rcx,r8,r9, retour dansrax), gestion de trames de pilerbp/rspalignées sur 16 octets. - Stubs Ring 3 intégrés : point d'entrée
_startappelantmain()puisexit(0), et fonctions système (write,read,exit,yield,getpid). - Assemblage et empaquetage direct en binaires exécutables autonomes
ET_EXECELF64 page-alignés avec protection W ⊕ X viasrc/assembler.rs.
- Analyseur lexical (lexer) : mots-clés (
- Commande Shell
cc(Commande #136,src/commands/cc.rs, aliastcc,ucc):- Sous-commandes :
status,build <src.c> <out.elf>,cc <src.c> -o <out.elf>,emit-asm <src.c>,eval "<expr>",demo,test. - Démonstration compilant et exécutant Fibonacci récursif et Hello
World avec appel système
write. - Auto-test validant la compilation de Fibonacci, Factorielle, évaluation d'expressions et conformité ELF64.
- Sous-commandes :
- Évolution de l'Assembleur Natif
(
src/assembler.rs):- Ajout de l'adressage mémoire relatif à un registre de base
[base + offset](mov [rbp - disp], regetmov reg, [rbp - disp]). - Ajout des instructions arithmétiques et de saut :
imul,cqo,idiv,jl,jge,jle,jg.
- Ajout de l'adressage mémoire relatif à un registre de base
- Compilateur pur
[0.5.0] - 2026-10-02
Roadmap Option 4: Générateur Live Bootable ISO Hybride (UEFI + BIOS MBR / Clé USB Bare-Metal):
- Script de Génération Autonome
(
scripts/create_iso.sh):- Extraction automatique du stub MBR bootloader (432 octets) depuis
l'image compilée
bootimage-OrbitOne.binpour satisfaire les contraintes-isohybrid-mbrdexorrisosans nécessiter de paquets externes isolinux/syslinux. - Création de
OrbitOne-bootable.iso(5.0 Mo) au format hybride ISO 9660 + DOS/MBR bootable El Torito. - Double amorçage universel : compatible UEFI et BIOS legacy.
- Déploiement direct sur clé USB par commande brute
ddet compatibilité amorçage direct QEMU via-cdrom.
- Extraction automatique du stub MBR bootloader (432 octets) depuis
l'image compilée
- Validation & Assurance Qualité:
- Harnais bare-metal E2E QEMU étendu à 24/24 vérifications
passantes (
scripts/test_integration_e2e.sh, Check #24 validé). - Image ISO générée et validée fonctionnelle en environnement émulé et physique.
- Harnais bare-metal E2E QEMU étendu à 24/24 vérifications
passantes (
- Script de Génération Autonome
(
Roadmap Option 3: Suite d'Applications Userland & Dépôt Officiel .opk (
calc#133,sysbench#134,pkg repo):- Catalogue de Dépôt Officiel & Déploiement Réseau
(
src/pkg.rs):- Intégration du catalogue officiel
repo.orbitone.org/pkgs/comprenant 4 paquets signés de référence :calc.opk,sysbench.opk,editor.opk, etnettools.opk. - Prise en charge des URL HTTP/dépôt distantes dans
pkg fetch <url> [dest]etpkg install <url>avec validation de signature et décompression directe dans le VFS. - Sous-commandes
pkg repo listetpkg repo install <app>pour installation directe en une seule ligne de commande. - Sous-commande
pkg run <app> [args]pour exécuter des applications userland installées.
- Intégration du catalogue officiel
- Applications Userland Intégrées:
- Calculatrice Scientifique & RPN
calc(Commande #133,src/commands/mod.rs) :- Moteur arithmétique 64-bit avec support de la notation polonaise inversée (RPN) et expressions standard.
- Opérateurs arithmétiques (
+,-,*,/,%,^), logiques (&,|,^,<<,>>). - Conversion instantanée des résultats en représentations décimale,
hexadécimale (
0x...) et binaire (0b...). - Mode interactif et évaluation directe d'arguments en ligne de commande.
- Suite de Benchmark Système
sysbench(Commande #134,src/commands/mod.rs) :- Benchmark CPU : calcul intensif d'entiers et crible d'Ératosthène avec restitution en MOps/s et MFLOPS.
- Benchmark Mémoire : débits séquentiels de lecture/écriture en
mémoire vive (
memcpy/memset) en Mo/s. - Benchmark VFS I/O : mesure du débit de lecture/écriture du système de fichiers en Mo/s.
- Benchmark Concurrence : mesure de la latence de commutation de tâches du noyau.
- Calculatrice Scientifique & RPN
- Catalogue Shell & Métriques:
- Enregistrement des commandes
calc(#133) etsysbench(#134) portant le total à 134 commandes shell. - Suite de tests unitaires portée à 563 tests unitaires (100% passants).
- Suite de couverture hôte portée à 619 assertions passantes (plancher 265).
- Harnais E2E QEMU étendu à 23/23 vérifications passantes (Checks #22 et #23 validés).
- Enregistrement des commandes
- Catalogue de Dépôt Officiel & Déploiement Réseau
(
Roadmap Option 2: Micro-Assembleur x86-64 Natif & Générateur ELF64 (
as64#132):- Moteur d'Assemblage 2-Passes pur
#:- Analyseur lexical et syntaxique complet pour instructions x86-64 sans dépendance libc.
- Encodage dynamique de tous les registres 64 bits
(
rax..r15), 32 bits et 8 bits avec génération automatique des préfixes REX (REX.W,REX.R,REX.B). - Encodage des octets ModR/M et SIB pour modes d'adressage direct, indirect et avec déplacement.
- Support des instructions fondamentales :
mov,push,pop,add,sub,xor,cmp,jmp,je,jne,call,ret,syscall,int3,nop. - Résolution des étiquettes (labels) relatives 32 bits en deuxième passe avec contrôle des symboles inconnus.
- Générateur d'Exécutables ELF64:
- Emballage direct en binaire ELF64 conforme (
ELFCLASS64,ELFDATA2LSB,ET_EXEC, machineEM_X86_64). - Alignement de segment de code sur frontière de page physique (4096
octets) avec drapeaux stricts W ⊕ X
(
PF_R | PF_X). - Validation native par l'analyseur de binaires du noyau
(
crate::elf::parse).
- Emballage direct en binaire ELF64 conforme (
- Commande Shell
as64(src/commands/as64.rs):- Sous-commandes
as64 status [--json],as64 demo,as64 build <source.s> <out.elf>, etas64 test. - Enregistrement de
as64(aliasasm) portant le catalogue à 132 commandes shell.
- Sous-commandes
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 560 tests unitaires (100% passants).
- Suite de couverture hôte portée à 616 assertions passantes (plancher 265).
- Harnais E2E QEMU étendu à 22/22 vérifications passantes (Check #21 validé).
- Moteur d'Assemblage 2-Passes pur
Roadmap Option 1: Résolveur DNS RFC 1035 / RFC 3596 & Résolution de Noms (
dns#131):- Moteur de Résolution DNS pur
#:- Encodage des trames de requêtes DNS UDP (ID de transaction
aléatoire, drapeaux
RD=1pour récursion désirée, encodage des étiquettes QNAME par longueur d'octet). - Prise en charge des types d'enregistrements : A (IPv4), AAAA (IPv6), CNAME (alias canonique), PTR (recherche inverse), MX (serveurs mail), TXT (enregistrements texte).
- Décodeur de paquets de réponses DNS avec décompression de pointeurs d'étiquettes (protection boucle infinie profondeur <= 8).
- Cache DNS en mémoire vive avec gestion du Time-to-Live (TTL) et politique d'éviction ordonnée FIFO.
- Fichier statique de surcharges d'hôtes (
/etc/hosts) et serveurs DNS configurables (Google 8.8.8.8, Cloudflare 1.1.1.1). - Intégration dans
src/commands/net.rspour la commandefetch(résolution automatique des noms d'hôtes HTTP).
- Encodage des trames de requêtes DNS UDP (ID de transaction
aléatoire, drapeaux
- Commande Shell
dns(src/commands/dns.rs):- Sous-commandes
dns status [--json],dns resolve <host> [type],dns server [ip],dns cache,dns flush, etdns test. - Enregistrement de
dns(aliasnslookup,dig) portant le catalogue à 131 commandes shell.
- Sous-commandes
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 557 tests unitaires (100% passants).
- Suite de couverture hôte portée à 613 assertions passantes (plancher 265).
- Harnais E2E QEMU étendu à 21/21 vérifications passantes (Check #20 validé).
- Moteur de Résolution DNS pur
Phase 5: Gestionnaire de Paquets VFS & Conteneurs Cryptographiques (.opk):
- Moteur de Paquets pur
#:- Format binaire conteneur
.opk(OrbitOne Package) avec en-tête fixe de 256 octets, signature magique\x7fOPK([0x7F, 0x4F, 0x50, 0x4B]), version 1, et métadonnées complètes (Nom, Version, Architecture, Auteur, Description, Horodatage, Compteur de fichiers, Taille de charge utile). - Moteur cryptographique RFC 8439 ChaCha20-Poly1305 AEAD : chiffrement et authentification forte avec clé de distribution 256 bits, nonce 96 bits et tag Poly1305 128 bits calculé sur l'en-tête (AAD) et la charge utile.
- Sûreté anti-altération (anti-tamper) : rejet immédiat et
étanche (
IntegrityCheckFailed) de toute archive dont ne serait-ce qu'un seul bit a été altéré ou corrompu, avant toute tentative d'extraction. - Sérialisation et désérialisation de flux de fichiers multi-formats
avec préservation des droits d'accès (
mode), types de fichiers (ELF, WASM, Scripts, Configurations) et chemins cibles.
- Format binaire conteneur
- Registre Système & Intégration VFS
Transparente:
- Registre singleton thread-safe
PackageManager(PKG_MANAGER) maintenant la base de données des paquets installés et des fichiers virtuels associés. - Résolution dynamique VFS : les fichiers de paquets déployés sous
/usr/bin,/bin,/etcou/tmpsont immédiatement visibles danslist_dir, lisibles viaread_file/read_file_bytes, et indexés dansstat. - Désinstallation propre et atomique avec nettoyage du registre et suppression des fichiers physiques et virtuels.
- Registre singleton thread-safe
- Outils Diagnostics Shell & Commande
pkg(src/commands/pkg.rs):- Nouvelle commande shell
pkg(aliaspackage,opkg) :pkg status [--json]: télémétrie du moteur de paquets, statut cryptographique, nombre de paquets installés et volume mémoire.pkg list [--json]: inventaire tabulaire et JSON de tous les paquets installés.pkg info <file.opk>: inspection sans installation des métadonnées, de la liste de fichiers et de la validité de la signature.pkg verify <file.opk>: vérification cryptographique formelle de l'authenticité de l'archive.pkg install <file.opk> [--force]: extraction sécurisée et enregistrement du paquet dans le système.pkg remove <nom>: désinstallation complète du paquet et suppression de ses fichiers.pkg create <nom> <ver> <dest> <src> [desc]: création et signature cryptographique d'un conteneur.opk.pkg demo: empaquetage et installation automatique d'un binaire script et d'un module WASM de démonstration.pkg test: suite d'auto-tests validant la création, le chiffrement, la détection d'altération, l'installation VFS et la désinstallation.
- Ajout de
pkgau catalogue de commandes pour atteindre 130 commandes shell intégrées.
- Nouvelle commande shell
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 554 tests unitaires (100% passants).
- Suite de couverture hôte portée à 610 assertions passantes (plancher 265).
- Harnais E2E QEMU automatisé étendu à 20/20 vérifications
passantes (
scripts/test_integration_e2e.sh, Check #20 validé).
- Moteur de Paquets pur
Phase 5: Machine Virtuelle WebAssembly (WASM MVP 1.0) & Bytecode Micro-Rust (#130):
- Moteur d'Exécution WebAssembly pur
#:- Décodeur binaire complet pour le standard WebAssembly 1.0 (MVP) :
vérification de la signature magique
\0asm(0x6D736100), version 1 (0x00000001), décodeur LEB128 pouru32,i32,u64,i64. - Analyse de toutes les sections de base : Type (signatures de fonctions), Import (liaisons hôte), Function (indices de types), Table, Memory (spécifications de pages), Global (variables globales mutables/constantes avec expressions d'initialisation), Export (fonctions, tables, mémoires, globales), Code (corps de fonctions, variables locales, bytecodes), et Data (segments d'initialisation de mémoire linéaire).
- Machine virtuelle à pile avec typage fort : valeurs
WasmValue::I32etWasmValue::I64, pile d'évaluation, cadres d'appelsCallFrameavec suivi des variables locales. - Flot de contrôle structuré : gestion conforme des blocs
block (0x02), bouclesloop (0x03), branchements conditionnelsif (0x04)/else (0x05), fins de blocsend (0x0b), sautsbr (0x0c)etbr_if (0x0d), retourreturn (0x0f), et appels de fonctionscall (0x10). - Instructions arithmétiques et logiques complètes :
i32.const,i64.const,i32.eqz,eq,ne,lt_s,lt_u,gt_s,gt_u,le_s,le_u,ge_s,ge_u,add,sub,mul,div_s,div_u,rem_s,rem_u,and,or,xor,shl,shr_s,shr_u,i64.add,sub,mul.
- Décodeur binaire complet pour le standard WebAssembly 1.0 (MVP) :
vérification de la signature magique
- Gestion de Mémoire Linéaire & Confinement Matériel
(Sandbox):
- Mémoire linéaire organisée en pages de 64 KiB
(
WASM_PAGE_SIZE = 65536 octets), initialisée à partir des limites du module et extensible dynamiquement avec l'opcodememory.grow. - Instructions d'accès mémoire sécurisées :
i32.load (0x28),i32.load8_u (0x2d),i32.store (0x36),i32.store8 (0x3a),memory.size (0x3f). - Sûreté totale et bac à sable : interception des accès hors limites
mémoire (
MemoryOutOfBounds), piège de division par zéro (DivisionByZero), plafond de profondeur d'appel (MAX_CALL_DEPTH = 64), et compteur de quota d'instructions / fuel (DEFAULT_FUEL_LIMIT = 200000) garantissant la terminaison stricte de tout programme non maîtrisé. - Fonctions d'import hôte pré-configurées :
env.print_i32,env.print_char,env.clock_ms.
- Mémoire linéaire organisée en pages de 64 KiB
(
- Outils Diagnostics Shell & Intégration VFS
(
src/commands/wasm.rs):- Nouvelle commande shell
wasm:wasm status [--json]: affiche les capacités de la machine virtuelle, la taille de page, les quotas et le nombre d'instructions autorisées.wasm test: exécute la suite d'auto-tests WASM validant le binaire, la pile, la mémoire linéaire, les pièges et le quota de fuel.wasm demo: instancie et exécute le module Fibonacci calculé sur la pile WASM (fib(10) = 55).wasm info <fichier.wasm>: inspecte la structure, les types, les fonctions et les exports d'un fichier WebAssembly du VFS.wasm run <fichier.wasm> [func] [arg]: charge et exécute une fonction exportée avec argument entier.
- Ajout de
wasmau catalogue de commandes pour atteindre 129 commandes shell intégrées.
- Nouvelle commande shell
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 551 tests unitaires (100% passants).
- Suite de couverture hôte portée à 607 assertions passantes (plancher 265).
- Harnais E2E QEMU automatisé étendu à 19/19 vérifications
passantes (
scripts/test_integration_e2e.sh, Check #19 validé). - Image hybride amorçable
OrbitOne-bootable.isomise à jour avec succès.
- Moteur d'Exécution WebAssembly pur
Phase 5: Sous-Système Wi-Fi 802.11 & Négociation WPA2 (#129):
- Pile IEEE 802.11 pur
#:- Décodage et émission des trames MAC 802.11 : champ
FrameControl16 bits (types Management, Control, Data ; sous-types Beacon, Probe, Association, Authentication), durée, adresses MAC (RA/DA, TA/SA, BSSID) et contrôle de séquence. - Décodeur d'Éléments d'Information TLV
(
InformationElement) : SSID (Tag 0), Supported Rates (Tag 1), DS Parameter Set / Canal direct (Tag 3), TIM (Tag 5), RSN / WPA2 IE (Tag 48) avec sélection des suites de chiffrement Pairwise CCMP/AES et AKM PSK.
- Décodage et émission des trames MAC 802.11 : champ
- Moteur Cryptographique Sans-Fil WPA2-PSK (IEEE
802.11i) :
- Implémentation complète de SHA-1 (FIPS 180-1, RFC 3174) et HMAC-SHA1 (RFC 2104) sans allocation dynamique.
- Fonction de dérivation de clé PBKDF2-HMAC-SHA1
(
pbkdf2_sha1) calculant la PMK (Pairwise Master Key) de 256 bits à partir du mot de passe et du SSID. - Fonction pseudo-aléatoire PRF-512 (
prf_512) pour l'expansion de clé 802.11i, générant les 512 bits de la PTK (KCK 128 bits, KEK 128 bits, TK 128 bits pour AES-CCMP). - Protocole 4-Way Handshake WPA2 : construction et désérialisation des
trames
EapolKeyFrame(M1 à M4), calcul et validation du MIC (Message Integrity Code) avec la clé KCK.
- Gestionnaire Wi-Fi & Outils Diagnostics Shell
(
src/commands/wifi.rs):- Gestionnaire
WifiManagersingleton thread-safe : balayage radio multi-fréquences 2.4 GHz / 5 GHz avec rapport de puissance RSSI en dBm, état de liaison (Disabled,Disconnected,Scanning,Authenticating,Connected), et attribution d'adresse IPv4 DHCP. - Commande shell
wifi(avec aliaswlanet80211) :wifi status [--json],wifi scan [--json],wifi connect <ssid> [pass],wifi disconnect,wifi on,wifi off,wifi firmwareetwifi test. - Auto-test complet
run_wifi_selftest()validant les vecteurs officiels RFC 3174 (SHA-1), RFC 2104 (HMAC-SHA1), la dérivation PBKDF2, le parsing de trames Beacon, et la négociation 4-Way Handshake. - Enregistrement de
wlandans le catalogue pour atteindre 128 commandes shell intégrées.
- Gestionnaire
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 547 tests unitaires (100% passants).
- Suite de couverture hôte portée à 602 assertions passantes (plancher 265).
- Harnais E2E QEMU automatisé étendu à 18/18 vérifications
passantes (
scripts/test_integration_e2e.sh, Check #18 validé). - Image hybride amorçable
OrbitOne-bootable.isomise à jour avec succès.
- Pile IEEE 802.11 pur
Phase 5: Système de Fichiers FAT32 / VFAT & Partitions ESP (#128):
- Pilote FAT32 / VFAT Natif pur
#:- Analyse complète du BIOS Parameter Block FAT32 (
Bpb32) : validation des signatures MBR/VBR (0xAA55), détection de la signature étendueFAT32(offset 82), calcul exact de la région réservée, tables FAT1 et FAT2, clusters de données (root_cluster,first_data_sector,lba_for_cluster). - Structure d'information FSInfo (
FsInfo) avec vérification des trois signatures matérielles standard Microsoft (LEAD_SIG = 0x41615252,STRUCT_SIG = 0x61417272,TRAIL_SIG = 0xAA550000), suivi du compteur de clusters libres et du prochain cluster alloué avec synchronisation sectorielle. - Gestion du chaînage de clusters FAT32 : masquage des 28 bits utiles
(
& 0x0FFFFFFF), reconnaissance des marqueurs spéciaux (FAT_FREE = 0,FAT_BAD = 0x0FFFFFF7,FAT_EOC_MIN = 0x0FFFFFF8), lecture/écriture atomique dans la table FAT et allocation dynamique de nouveaux clusters avec mise à jour FSInfo. - Moteur VFAT Noms Longs (LFN) et alias 8.3 (
LfnBuilder) :- Reconstitution ordonnée des fragments UTF-16LE à partir des entrées
d'annuaires VFAT (13 caractères par entrée, attribut
ATTR_LONG_NAME = 0x0F), conversion UTF-16LE vers UTF-8 enno_std. - Algorithme de hachage de checksum 8.3
(
compute_83_checksum) avec rotation à droite et accumulation pour garantir la liaison stricte entre le nom long et l'alias court.
- Reconstitution ordonnée des fragments UTF-16LE à partir des entrées
d'annuaires VFAT (13 caractères par entrée, attribut
- Moteur de système de fichiers
Fat32Fs<D: BlockDevice>:- Primitives de navigation :
open,list_dir,find_in_dir,lookup_pathavec gestion des chemins hiérarchiques absolus (/EFI/BOOT/BOOTX64.EFI). - Primitives de lecture :
read_file_data,read_file_by_path. - Primitives d'écriture et de création :
create_dir(initialisation des pseudo-entrées.et..),create_fileavec écriture de données, mise à jour des tailles et chaînage FAT.
- Primitives de navigation :
- Formatage natif FAT32 (
format_fat32) : création complète d'un volume amorçable (BPB, FSInfo, tables FAT vierges avec cluster 2 EOC alloué pour la racine). - Suite d'auto-test intégrée
run_vfat_selftest(): création en RAM d'un disque FAT32, écriture d'une arborescence EFI complète (/EFI/BOOT/BOOTX64.EFIet/ORBITONE.CFG), relecture et vérification d'intégrité byte-à-byte.
- Analyse complète du BIOS Parameter Block FAT32 (
- Outils Diagnostics Shell & Intégration VFS
(
src/commands/vfat.rs):- Nouvelle commande shell
vfat(avec aliasfat32) :vfat status [--json]: affiche les paramètres du volume (OEM, taille des secteurs, clusters, FATs, label, espace libre/total).vfat test: lance l'auto-test du pilote FAT32 / VFAT et vérifie les signatures.vfat format <périphérique> [label]: formate un support en FAT32 pour partition EFI ou support USB amovible.vfat ls [chemin]: liste le contenu d'un répertoire FAT32 avec affichage des attributs et tailles.
- Enregistrement dans le catalogue
commandsethelp(porté à 127 commandes intégrées).
- Nouvelle commande shell
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 543 tests unitaires (100% passants).
- Suite de couverture hôte portée à 597 assertions passantes (plancher 265).
- Harnais E2E QEMU automatisé étendu à 17/17 vérifications
passantes (
scripts/test_integration_e2e.sh, Check #17 validé). - Image hybride amorçable
OrbitOne-bootable.isomise à jour avec succès.
- Pilote FAT32 / VFAT Natif pur
Phase 5: Pilote Réseau VirtIO-Net 1.0 & Dual-Stack IPv6 (#127):
- Pilote VirtIO-Net 1.0 Spécification OASIS
(
src/virtio/net.rs):- Détection PCI pour les périphériques réseau modernes
(
VIRTIO_DEV_NET_MODERN = 0x1041) et legacy (VIRTIO_DEV_NET_LEGACY = 0x1000). - Négociation des bits de fonctionnalités :
VIRTIO_NET_F_MAC(0x20),VIRTIO_NET_F_STATUS(0x10000),VIRTIO_NET_F_MTU(0x80000). - Structure d'en-tête de paquet
VirtioNetHdrde 12 octets conforme au standard VirtIO 1.0 (flags, gso_type, hdr_len, gso_size, csum_start, csum_offset, num_buffers). - Architecture à Virtqueues scindées : file de réception RX (queue 0) et file d'émission TX (queue 1).
- Moteur d'émission
transmit_frameavec chaînage de 2 descripteurs (descripteur 0 pour l'en-tête, descripteur 1 pour la trame Ethernet) et notification d'anneau disponible (avail.ring). - Moteur de réception
receive_frameavec désencapsulation de l'en-tête VirtIO-Net et statistiques détaillées (VirtioNetStats). - Auto-test complet
run_virtnet_selftest()validant l'émission et la réception en boucle fermée via virtqueue simulée.
- Détection PCI pour les périphériques réseau modernes
(
- Pile Réseau Dual-Stack IPv6 RFC 8200 & ICMPv6 RFC 4443
(
src/ipv6.rs):- Type
Ipv6Address(16 octets) avec adresses canoniquesUNSPECIFIED(::),LOOPBACK(::1),LINK_LOCAL_ALL_NODES(ff02::1),LINK_LOCAL_ALL_ROUTERS(ff02::2). - Auto-configuration sans état SLAAC (Stateless Address
Autoconfiguration) selon EUI-64 (
from_mac) : inversion du bit U/L (Universal/Local) et insertion des octets0xFF, 0xFE. - Formatage texte conforme à la RFC 5952 avec détection et compression
de la plus longue séquence de zéros (
::), et analyseur de chaînesparse. - En-tête fixe IPv6 de 40 octets
Ipv6Header(Version, Traffic Class, Flow Label, Payload Length, Next Header, Hop Limit, Source, Destination) avec sérialisationemitet désérialisationfrom_bytes. - Primitives de checksums ICMPv6 avec pseudo-en-tête IPv6 (adresses
source/dest, longueur de charge, next_header 58) :
compute_icmpv6_checksumet validation stricteverify_icmpv6_checksum. - Messages de contrôle ICMPv6 Echo Request (type 128) et Echo Reply (type 129) avec identifiant, numéro de séquence et charge utile arbitraire.
- Type
- Outils Diagnostics Shell & Intégration VFS
(
src/commands/virtnet.rs,src/commands/net.rs):- Nouvelle commande shell
virtnetavec sous-commandes :virtnet status [--json]: affiche l'état du contrôleur, l'adresse MAC matérielle, l'adresse IPv6 link-local SLAAC, le MTU (1500) et les métriques de trafic TX/RX.virtnet test: exécute la suite d'auto-test du pilote et de la pile IPv6/ICMPv6.virtnet ping6 <adresse_ipv6>: envoie des requêtes ICMPv6 Echo Request et mesure la réponse.
- Extension de
ifconfig: affichage de la ligneinet6 <adresse_slaac> prefixlen 64 scopeid 0x20<link>pour les cartes réseau Ethernet etinet6 ::1 prefixlen 128 scopeid 0x10<host>pour l'interface de boucle locale. - Exportation de l'alias canonique
virtio-netdans le sous-système d'aideexplain.
- Nouvelle commande shell
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 539 tests unitaires (100% passants).
- Suite de couverture hôte portée à 593 assertions passantes (plancher 265).
- Harnais E2E QEMU automatisé étendu à 16/16 vérifications
passantes (
scripts/test_integration_e2e.sh). - Image hybride amorçable
OrbitOne-bootable.isomise à jour avec succès.
- Pilote VirtIO-Net 1.0 Spécification OASIS
(
Phase 5: Primitives POSIX Fork / Copy-on-Write (CoW) & Waitpid (#126):
- Gestionnaire de Références de Trames Physiques
(
src/frame_bitmap.rs):- Structure
FrameRefCount<const N: usize>: comptage de références par trame physique avec suivi thread-safe. - Gestion du cycle de vie complet : initialisation à 1 lors de l'allocation, incrémentation lors des forks CoW, décrémentation sur libération d'espace d'adressage et restitution au bitmap physique uniquement quand le compteur atteint zéro.
- Test unitaire hôte
frame_refcount_cycle_cowvalidant le cycle de partage et de restitution.
- Structure
- Pagination Matérielle Copy-on-Write
(
src/arch/x86_64/paging.rs):- Utilisation du bit 9 disponible pour l'OS
(
ENTRY_FLAG_COW = 1 << 9) dans les entrées de table de pages x86-64 (PTEs). - Table globale de compteurs de références
PHYS_FRAME_REFCOUNTsynchronisée avec le pool de trames physiques. - Primitives publiques
inc_phys_frame_ref(addr)etget_phys_frame_ref(addr). - Duplication paresseuse dans
clone_user_space: partage sans copie des trames physiques en lecture seule avec le drapeau CoW activé pour le parent et l'enfant. - Moteur de résolution de fautes CoW (
handle_cow_fault,handle_cow_fault_in_space) : duplication en trame privée lors d'un accès en écriture partagé (refcount > 1), ou réactivation directe du droit d'écriture si le processus est propriétaire exclusif (refcount == 1), avec purge TLB (invlpg). - Auto-test matériel et logique
run_cow_self_test()validant les transitions d'état, les refcounts et l'absence totale de fuites de trames.
- Utilisation du bit 9 disponible pour l'OS
(
- Interception des Fautes de Page & Résolution
Transparente (
src/arch/x86_64/interrupts.rs,src/arch/x86_64/user.rs):- Interception automatique dans
page_fault_handler(vecteur 14) sur violation d'accès en écriture (PROTECTION_VIOLATION | CAUSED_BY_WRITE). - Déclenchement préemptif dans
user::range_is_writable: dénoue le CoW avant toute écriture noyau en mémoire utilisateur (usercopy), évitant les fautes Ring 0 avecCR0.WP. - Programme de test assembleur Ring 3
ORBIT_USER_FORK_START: fork, écriture mémoire isolée dans l'enfant, synchronisation parent/enfant viawaitpidet validation de l'intégrité de la pile parent.
- Interception automatique dans
- Primitives POSIX & Bibliothèque Utilisateur
(
src/task.rs,src/syscall.rs,src/liborbit.rs):- Extension de
sys_waitpidetwait_for_child_optavec support de l'option non bloquanteWNOHANG = 1etWUNTRACED = 2. - Fonctions POSIX intégrées dans
liborbit:fork() -> Result<u32, i64>etwaitpid(pid, status, options) -> Result<u32, i64>. - Commandes de diagnostic shell :
paging cow-selftestetuser cow.
- Extension de
- Validation & Assurance Qualité:
- Suite de tests unitaires portée à 531 tests unitaires (100% passants).
- Suite de couverture hôte portée à 584 assertions passantes (plancher 265).
- Suite d'intégration Ring 3 validée à 100%
(
scripts/test_ring3.sh). - Harnais E2E QEMU automatisé validé avec 15/15 vérifications
passantes (
scripts/test_integration_e2e.sh).
- Gestionnaire de Références de Trames Physiques
(
Phase 5: Installateur Bare-Metal Ext2 Avancé & Déploiement FHS (
install):- Moteur de Formatage Ext2 Natif
(
src/ext2.rs):- Fonction
format_ext2: écriture directe du superbloc Ext2 (magic0xEF53, révision 1, bloc de 1024 octets), de la table de descripteurs de groupe de blocs, des bitmaps de blocs et d'inodes, et de la table d'inodes. - Initialisation de l'inode racine (Inode 2, permissions
0o755, typeEXT2_FT_DIR) et du bloc de données de répertoire racine avec les entrées.et...
- Fonction
- Abstraction de Tranche de Partition
(
src/block.rs):- Structure
PartitionSlice<'a, D>: adaptateur générique sans copie superposant une fenêtre logique[start_lba..start_lba + sector_count]sur n'importe quel périphériqueBlockDevice.
- Structure
- Déploiement Automatisé FHS & Fichiers Système
(
src/commands/installer.rs):- Arborescence FHS standard déployée sur la partition Ext2 :
/bin,/boot,/boot/efi,/dev,/etc,/home,/proc,/sys,/tmp,/usr,/usr/bin,/var,/var/log. - Fichiers système critiques configurés :
/etc/hostname("orbitone\n")/etc/os-release(métadonnées officielles d'OrbitOne OS)/etc/fstab(table de montage statique avec/dev/disk0p2en racine Ext2)/etc/resolv.conf(serveurs DNS par défaut)/bin/init.sh(script d'initialisation du premier processus)/boot/orbitone.cfg(configuration du chargeur de démarrage)
- Auto-test intégré
install test(run_installer_selftest) validant l'ensemble du cycle de partitionnement GPT, formatage Ext2 et lecture/écriture FHS.
- Arborescence FHS standard déployée sur la partition Ext2 :
- Validation & Intégration E2E:
- Suite de tests unitaires portée à 529 tests unitaires (100% passants).
- Suite de couverture hôte portée à 582 assertions passantes.
- Harnais E2E QEMU automatisé validant l'installateur bare-metal (14/14 jalons passants).
- Moteur de Formatage Ext2 Natif
(
Phase 5: Contrôleur d'Hôte USB xHCI 1.2 & Périphériques HID (#125):
- Pilote Contrôleur d'Hôte USB xHCI 1.2
(
src/usb/xhci.rs):- Découverte PCI universelle (Classe
0x0C, Sous-classe0x03, ProgIF0x30). - Structures de transfert de données et de commande (TRBs :
Normal,SetupStage,DataStage,StatusStage,Link,EnableSlot,AddressDevice,ConfigureEndpoint). - Gestion d'anneau de commandes séquentiel (
CommandRing) avec bit de cycle matériel (Cycle Bit) et gestion du rebouclage automatique. - Registres opérationnels et de capacité xHCI (CAPLENGTH, HCSPARAMS1, HCCPARAMS1, USBCMD, USBSTS, CRCR, DCBAAP, CONFIG, PORTSC).
- Auto-test xHCI matériel/logiciel validant les anneaux TRB, l'émulation de statut de port et le cycle de vie du contrôleur.
- Découverte PCI universelle (Classe
- Sous-système USB Générique
(
src/usb/mod.rs):- Prise en charge des vitesses USB (
LowSpeed,FullSpeed,HighSpeed,SuperSpeed,SuperSpeedPlus). - Définitions standard des descripteurs USB 2.0/3.0
(
DeviceDescriptor,ConfigurationDescriptor,InterfaceDescriptor,EndpointDescriptor). - Gestionnaire dynamique de périphériques USB
(
UsbManager,UsbDevice) avec suivi des adresses logiques et des classes d'appareils.
- Prise en charge des vitesses USB (
- Décodeur de Périphériques d'Interface Humaine USB HID
(
src/usb/hid.rs):- Support complet du protocole Boot pour clavier USB
(
KeyboardBootReport) avec gestion des modificateurs (Shift, Ctrl, Alt, GUI) et mapping scancodes USB HID vers ASCII. - Support complet du protocole Boot pour souris USB
(
MouseBootReport) avec gestion des 5 boutons et déplacements relatifs X, Y, molette Z.
- Support complet du protocole Boot pour clavier USB
(
- Commande Shell
usb(#125,src/commands/usb.rs):- Diagnostic et inspection avec sous-commandes :
usb status [--json]: affiche l'état du contrôleur xHCI, le mode opérationnel, le nombre de ports et de périphériques connectés.usb lsusb: liste tous les périphériques USB énumérés sur le bus avec vendor ID, product ID, classe et vitesse.usb ports: affiche l'état détaillé de chaque port xHCI (connecté, alimenté, vitesse négociée, reset).usb test: exécute l'auto-test complet de la pile xHCI et des décodeurs HID.
- Diagnostic et inspection avec sous-commandes :
- Extension du Catalogue Shell & Intégration E2E:
- Registre shell porté de 124 à 125 commandes
reconnues (
usb#125). - Suite de tests unitaires portée à 527 tests unitaires (100% passants).
- Suite de couverture hôte portée à 579 assertions passantes.
- Harnais E2E QEMU automatisé validant le pilote USB xHCI et la
commande
usb test(13/13 jalons passants).
- Registre shell porté de 124 à 125 commandes
reconnues (
- Pilote Contrôleur d'Hôte USB xHCI 1.2
(
Phase 5: Pilote d'Accélération Graphique VirtIO-GPU 2D & Commande
gpu(#124):Sous-système VirtIO Générique (
src/virtio/mod.rs):- Spécification VirtIO 1.0 (OASIS) : constantes d'état périphérique
(
ACKNOWLEDGE,DRIVER,DRIVER_OK,FEATURES_OK,FAILED). - Structure de file Virtqueue scindée
(
SplitVirtqueue<N>) : table de descripteurs (VirtqDesc), anneau disponible (VirtqAvail) et anneau utilisé (VirtqUsed). - Primitives d'allocation, chaînage de requêtes DMA, notification mémoire et libération de descripteurs.
- Spécification VirtIO 1.0 (OASIS) : constantes d'état périphérique
(
Pilote VirtIO-GPU 2D Natif (
src/virtio/gpu.rs):- Détection PCI standard (Vendor
0x1AF4, Device0x1050, classeDisplay Controller). - Implémentation complète du protocole VirtIO-GPU 2D :
RESOURCE_CREATE_2D,RESOURCE_ATTACH_BACKING,SET_SCANOUT,TRANSFER_TO_HOST_2D,RESOURCE_FLUSH,GET_DISPLAY_INFO. - Support des formats de pixels 32-bit
B8G8R8A8_UNORM,B8G8R8X8_UNORM,R8G8B8A8_UNORM. - Auto-test intégré matériel/logiciel validant la négociation de fonctionnalités, la création de ressources, l'attachement de backing store et le flush de balayage.
- Détection PCI standard (Vendor
Commande Shell
gpu(#124,src/commands/gpu.rs):- Diagnostic et contrôle matériel avec sous-commandes :
gpu status [--json]: affiche l'état du périphérique VirtIO-GPU, le mode actif, la résolution et le statut d'accélération 2D.gpu scan: interroge et liste les écrans et sorties vidéo détectées sur le bus VirtIO.gpu res <largeur>x<hauteur>: configure dynamiquement la résolution vidéo d'affichage VirtIO-GPU.gpu test: exécute la suite d'auto-test du pilote VirtIO-GPU et valide le cycle de vie 2D.
- Diagnostic et contrôle matériel avec sous-commandes :
Extension du Catalogue Shell & Intégration E2E:
- Registre shell porté de 123 à 124 commandes
reconnues (
gpu#124). - Suite de tests unitaires portée à 518 tests unitaires (100% passants).
- Suite de couverture hôte portée à 569 assertions passantes.
- Harnais E2E QEMU automatisé validant le pilote VirtIO-GPU et la
commande
gpu testen bare-metal.
- Registre shell porté de 123 à 124 commandes
reconnues (
Serveur Web HTTP/1.1 Natif Embarqué (
src/httpd.rs):- Parser et constructeur conforme HTTP/1.1 (RFC 7230, RFC 7231).
- Prise en charge des méthodes GET, HEAD, POST avec gestion Keep-Alive, Content-Length, Content-Type et codes de statut standard (200 OK, 204 No Content, 400 Bad Request, 404 Not Found, 405 Method Not Allowed, 500 Internal Server Error).
- Tableau de bord Web HTML responsive (
/,/index.html) avec métriques d'exploitation en direct (temps d'activité, mémoire physique, conteneurs actifs, syscalls & catalogue shell). - API REST JSON native complète pour la télémétrie :
/api/status,/api/system,/api/containers,/api/mounts, et endpoint de test POST/api/echo. - Serveur de fichiers statiques VFS avec détection automatique des
types MIME (
.html,.json,.txt,.bin). - Compteurs de trafic réseau et statistiques HTTP (total requêtes, octets reçus/émis, codes 2xx/4xx/5xx).
Commande Shell
httpd(#122,src/commands/httpd.rs):- Contrôleur de démon avec sous-commandes :
start [port](port 8080 par défaut),stop,status [--json],get <path>, ettest. - Auto-test intégré en 7 passes validant l'ensemble de la pile HTTP/1.1, les réponses HTML/JSON et le routage des erreurs 404.
- Contrôleur de démon avec sous-commandes :
Client Web Console & Navigateur Texte
web(#123,src/commands/web.rs):- Client HTTP console pour navigation locale ou distante avec
User-Agent officiel
OrbitOne-Web-Client/0.4.0 (Console/x86_64). - Extraction automatique des en-têtes et du corps de réponse, badge de
statut visuel ANSI (
[200 OK],[404 NOT FOUND]), rendu textuel épuré des balises HTML ou affichage structuré JSON. - Sous-commandes :
web get <url>,web <url>,web status,web test.
- Client HTTP console pour navigation locale ou distante avec
User-Agent officiel
Extension du Catalogue Shell & Intégration E2E:
- Registre shell porté de 121 à 123 commandes
reconnues (
httpd#122,web#123). - Suite de tests unitaires portée à 514 tests unitaires (100% passants).
- Suite de couverture hôte portée à 565 assertions passantes.
- Harnais E2E QEMU automatisé validant le serveur HTTP et le client web sous émulateur bare-metal.
- Registre shell porté de 121 à 123 commandes
reconnues (
[0.4.0] - 2026-09-24
Phase 4: Virtualisation & Conteneurs Légers, Namespaces & OverlayFS/UnionFS (#120-121):
- Axe A: Kernel Namespaces
(
src/namespace.rs):- PID Namespace (
PidNamespace,PidNamespaceManager): Arborescence de processus isolée avec mapping réciproque global <-> virtuel. Le premier processus démarré dans un conteneur reçoit le PID virtuel 1 (init de conteneur).SYS_GETPIDretourne automatiquement le PID virtuel dans le namespace. - Mount Namespace (
MountNamespace,MountNamespaceManager): Isolation de la racine du système de fichiers avec primitiveschrootetpivot_root. Résolution confinée empêchant toute évasion hors de la racine virtuelle via... - Network Namespace (
NetNamespace,NetNamespaceManager): Isolation de la pile réseau et du nom d'hôte UTS. Allocation d'adresses IPv4 virtuelles dédiées (ex: 10.0.100.X) et interface loopback locale propre à chaque conteneur. - Container Engine (
Container,ContainerManager): Moteur complet de gestion des conteneurs légers avec machine à états (Created,Running,Stopped,Paused), suivi des tâches attachées et allocation dynamique des namespaces.
- PID Namespace (
- Axe B: Système de Fichiers en Grappe OverlayFS / UnionFS
(
src/overlayfs.rs,src/fs.rs):- Empilement transparent d'une couche inférieure en lecture seule
(
lowerdir) et d'une couche supérieure en lecture-écriture (upperdir) sous un point de montage unifié (merged). - Sémantique Copy-Up: Toute écriture sur un fichier
hérité de la couche de base est automatiquement dupliquée dans
upperdirsans altérerlowerdir. - Gestion des Whiteouts: La suppression d'un fichier
hérité génère un marqueur
.wh.<nom>dansupperdir, masquant l'élément dans la vue fusionnée. - Intégration VFS native dans
src/fs.rspour un routage transparent deread,write,stat,rmetlist_dir.
- Empilement transparent d'une couche inférieure en lecture seule
(
- Axe C: Syscalls d'isolation & Bibliothèque Utilisateur
(
src/syscall.rs,src/liborbit.rs):- Syscalls
SYS_UNSHARE(47),SYS_SETNS(48),SYS_PIVOT_ROOT(49). - Constantes de drapeaux
CLONE_NEWPID = 0x2000_0000,CLONE_NEWNS = 0x0002_0000,CLONE_NEWNET = 0x4000_0000,CLONE_NEWUTS = 0x0400_0000. - Wrappers typesafe dans
liborbit:unshare,setns,pivot_root.
- Syscalls
- Axe D: Commandes Shell & Vérification E2E:
- Commande
container(#120) avec sous-commandeslist/ps(--json),create,start/run,stop,rm,inspect(--json) ettest. - Commande
overlayfs(#121) avec sous-commandeslist/status(--json),mount,unmountettest. - Registre shell étendu de 119 à 121 commandes reconnues.
- Nombre d'appels système étendu de 47 à 50 syscalls POSIX.
- Suite de tests unitaires étendue à 510 tests unitaires (100% passants).
- Harnais E2E QEMU automatisé validant le démarrage et l'isolation conteneur & OverlayFS.
- Commande
- Axe A: Kernel Namespaces
(
Phase 5: Dynamic Runtime Linker, TLS 1.3 / HTTPS, HD Audio / AC97, WAL Journaling & fsck (#115-117):
- Axis A: Dynamic Runtime Linker & TLS 1.3 / HTTPS Client
(
src/dl.rs,src/tls.rs,src/crypto.rs,src/commands/net.rs):- Pure
no_stdPoly1305 authenticator (RFC 8439 Section 2.5) with 26-bit limb modular arithmetic modulo 2130 − 5. - ChaCha20-Poly1305 AEAD authenticated encryption (RFC 8439 Section 2.8) verified against official IETF KAT test vectors.
- TLS 1.3 Record Layer framing (0x14, 0x15, 0x16, 0x17) with RFC 8446 ClientHello builder (SNI RFC 6066, Supported Versions 0x0304, Supported Groups x25519) and ApplicationData record encapsulation.
- Updated
fetchcommand with--httpsflag and automatic port 443 detection. - Dynamic Runtime Linker (
DynamicLinker,LibraryHandle,SharedLibrary) with reference counting,RTLD_DEFAULT, and shared object symbol resolution (libc.so.6,libm.so.6,libcrypto.so.3). - Syscalls
SYS_DLOPEN(43) andSYS_DLSYM(44) wired toliborbit::dl.
- Pure
- Axis B: High-Definition Audio Subsystem (Intel HDA / AC97
PCI DMA,
src/audio_hda.rs,src/wav.rs,src/devfs.rs,src/commands/playback.rs):- HD Audio / AC97 PCI DMA engine with 64 KiB cyclic ring buffer, software volume scaling, mute toggle, and sample scaling.
- Canonical RIFF/WAVE container header parser and generator
(
src/wav.rs) supporting PCM 8/16-bit mono/stereo. - VFS device nodes
/dev/dspand/dev/audiofor raw sample streaming and playback. - Built-in commands
playwav(#116) with--test440 Hz Concert A tone synthesizer, andmixer(#117) with volume controls, balance, mute, and--json. - Syscall
SYS_AUDIO_WRITE(45) andliborbit::audio_write.
- Axis C: Resilient VFS: WAL Journaling & Ext2 fsck
Consistency Checker (
src/journal.rs,src/fsck.rs,src/commands/fsck.rs):- Write-Ahead Logging (WAL) metadata journal
(
src/journal.rs) with sequential transactions (begin_tx,log_op,commit_tx,abort_tx), CRC32 validation, and automatic crash recovery on boot (recover_on_boot). - 5-pass Ext2 filesystem consistency checker and repair engine
fsck(src/fsck.rs,src/commands/fsck.rs) auditing inodes/blocks, directories, hierarchy connectivity, link counts, and block/inode bitmaps. - Built-in command
fsck(#115) supporting-y(auto-repair),-v(verbose), and--json.
- Write-Ahead Logging (WAL) metadata journal
(
- Axis D: Integration, Syscall Expansion & QEMU E2E
Verification:
- Built-in commands expanded from 114 to 117 commands
(
fsck,playwav,mixer). - Syscalls expanded from 43 to 47 syscalls
(
SYS_DLOPEN=43,SYS_DLSYM=44,SYS_AUDIO_WRITE=45,SYS_POLL=46). - Test suite expanded to 496 unit tests (100% passing, 0 compiler warnings).
- Updated headless QEMU E2E test harness
(
scripts/test_integration_e2e.sh) verifyingfsck,playwav --test, andmixerin headless QEMU.
- Built-in commands expanded from 114 to 117 commands
(
- Axis A: Dynamic Runtime Linker & TLS 1.3 / HTTPS Client
(
Phase 4: Dynamic Linker, CryptFS Storage Security, Hardware Audio & E2E Test Harness (#112-114):
- Dynamic Shared Libraries & Dynamic Linker
(
ldd,src/elf.rs,src/commands/ldd.rs):- Extended ELF64 parser with
ET_DYN = 3(shared object),PT_DYNAMIC = 2program header type, and dynamic array tags (DT_NEEDED,DT_STRTAB,DT_SYMTAB,DT_RELA,DT_SONAME). - Relocation parsing and relative address calculation for
R_X86_64_RELATIVE. - Added built-in command
ldd(#112) with dependency tree resolution and--jsonstructured formatting.
- Extended ELF64 parser with
- Cryptographic VFS & Anti-Bitrot Storage Encryption
(
cryptfs,src/crypto.rs,src/cryptfs.rs,src/commands/crypto.rs):- Pure
no_stdRFC 8439 ChaCha20-256 stream cipher implementation (quarter-round, 64-byte block generation, stream XOR). - Merkle-CRC32 integrity checksums and tamper detection against silent bitrot corruption.
- Transparent block virtualization layer for 512-byte sectors with unique LBA-derived nonces.
- Added built-in command
cryptfs(#113) withstatus [--json],test,benchmark, andverify <path>.
- Pure
- Hardware Audio Subsystem & PC Speaker Synthesis
(
sound,src/audio.rs,src/commands/audio.rs):- Hardware PC Speaker driver controlling PIT Channel 2 (Ports 0x42 / 0x43) and system control port 0x61.
- Calibrated musical note frequency table and melody sequencer
(
boot,alert,success). - PCI bus prober for multimedia audio controllers (AC97 and Intel High Definition Audio).
- Added built-in command
sound(#114) supportingstatus [--json],beep [freq] [ms],play <boot|alert|success>,mute, andpci.
- Automated Headless QEMU E2E Test Harness
(
scripts/test_integration_e2e.sh):- Automated headless runner executing QEMU with timed command injection and live serial output verification.
- Command registry expanded to 114 commands and test suite to 472 unit tests (100% passing, 0 compiler warnings).
- Dynamic Shared Libraries & Dynamic Linker
(
Job Control, Background Execution, Network Utilities & POSIX Inter-Process Streaming (#108-111,
src/jobs.rs,src/commands/job.rs,src/liborbit.rs):- Shell Job Control & Background Execution
(
&,jobs,fg,bg):- Added background execution operator
&parsed viasrc/shell_parse.rs::parse_background_operator. - Implemented thread-safe
JobTableinsrc/jobs.rswithJobStatusmachine (Running,Stopped,Done(code)). - Registered commands
jobs(#109) with-land--jsonformatting,fg(#110) to bring jobs to the foreground, andbg(#111) to resume suspended background jobs.
- Added background execution operator
- Enhanced Network User Utilities (
nslookup,ping -s,fetch/curl):- Officially integrated and registered
nslookup(#108) in the shellCOMMANDSregistry. - Added custom payload size (
-s <size>) and latency computation (min/avg/max ms RTT) toping.
- Officially integrated and registered
- POSIX IPC Streaming & Ring 3 Signals
(
pipe2,dup2,sigaction,sigreturn):- Exposed POSIX
pipe2,dup2,sigaction, andsigreturnsystem calls inliborbit. - Added
SigActionstructure and signal constants (SIGHUP,SIGINT,SIGQUIT,SIGKILL,SIGSEGV,SIGPIPE,SIGTERM).
- Exposed POSIX
- Expanded built-in commands inventory to 111 commands and test suite to 456 unit tests (100 % passing, 0 compiler warnings).
- Shell Job Control & Background Execution
(
POSIX Environment Variables, Variable Expansion & Scripting Engine (#104-107,
src/env.rs,src/commands/env.rs,src/shell_parse.rs):- Added thread-safe environment variable management subsystem in
src/env.rswith default POSIX variables (USER,HOME,PATH,SHELL,OS,TERM,PWD,HOSTNAME,?). - Added automatic shell variable expansion in
src/shell_parse.rssupporting$VAR,${VAR},$?(last exit code),$$(shell PID), and escape\$. - Added built-in shell commands:
export [KEY=VALUE | KEY]: Sets or lists exported variables.env [--json]: Lists all environment variables in plain text or JSON.unset <KEY>...: Unexports variables from the active environment.source <script>/sh <script>: Executes batch shell scripts from VFS line-by-line with comment skipping (#) and dynamic variable expansion.
- Expanded built-in commands inventory to 107 commands and test suite to 451 unit tests.
- Added thread-safe environment variable management subsystem in
POSIX Signals & Top-Level
killCommand (#103 Shell Command,src/commands/task.rs,src/shell_parse.rs):- Top-level built-in
killcommand supporting standard POSIX invocations:kill <pid>,kill -<sig> <pid>,kill -<SIGNAME> <pid>,kill -s <sig> <pid>, andkill -llisting all 31 POSIX signals. - Signal name parser
parse_signal_nameresolving both numbered signals (1..=31) and symbolic names (SIGHUP,SIGINT,SIGQUIT,SIGKILL,SIGTERM,SIGUSR1,SIGUSR2, etc.). - Kernel signal delivery hooked into scheduler task signals via
signal_task(). - Expanded built-in commands inventory to 103
commands in
src/commands/help.rswith dedicatedexplain killdocumentation.
- Top-level built-in
Unified Shell Pipeline Execution Engine (
src/console.rs,src/arch/x86_64/serial.rs):- In-memory stdout capture mechanism (
start_capture(),finish_capture(),is_capturing()) in serial driver for zero-loss output redirection. - Multi-stage pipeline execution (
cmd1 | cmd2 | ...) with automated cascading filter execution:grep [-i] [-v] <pattern>: Case-sensitive and case-insensitive line filtering, inversion mode.wc [-l] [-w] [-c]: Word, line, and character counter.head [-n <N>]/tail [-n <N>]: Line slicing from beginning or end.hexdump/hd: Hexadecimal/ASCII stream inspection.cat: Standard transparent stream forwarder.
- Full interoperability with file redirections:
cmd | grep pattern > /tmp/out.txt.
- In-memory stdout capture mechanism (
POSIX BSD Sockets Networking API in
liborbit(src/liborbit.rs):- Added
liborbit::netmodule providing typesafe, RAII-managedTcpStream,TcpListener, andUdpSocketfor Ring 3 binaries. - Added typesafe
sendto(SYS_SENDTO),recvfrom(SYS_RECVFROM), andsyscall5primitive for zero-cost userspace networking. - Automatic descriptor cleanup upon dropping streams, listeners, or sockets.
- Added
/proc/netVirtual File System Introspection (src/vfs_catalog.rs,src/vfs_render.rs):- Added
/proc/netdirectory hierarchy with/proc/net/tcp,/proc/net/udp, and/proc/net/dev. /proc/net/tcp: Renders active TCP connection states, local/remote IPv4 endpoints, and tx/rx queue buffers./proc/net/udp: Renders bound UDP sockets, local ports, queue lengths, and reference counts./proc/net/dev: Renders standard interface traffic statistics (bytes, packets, errs, drops) foreth0,lo, andwlan0.
- Added
Shell Commands Expansion (102 Built-in Commands,
src/commands/):netstat(src/commands/net.rs): Active network connection, TCP stream, and UDP socket inspector with human-readable and--jsonoutputs.watch(src/commands/system.rs): Periodic command execution and monitoring utility with configurable-n <sec>interval and-c <count>iterations.hexdump/xxd/hd(src/commands/storage.rs): Hexadecimal and ASCII byte viewer for files with-n <len>and-Csupport.- Advanced
COMMANDStable insrc/commands/help.rsto 102 commands with integratedEXPLAIN_ENTRIESmanual pages.
Ring 3 Network Demonstrator (
src/arch/x86_64/user.rs,src/commands/user.rs):- Added
Program::Net(net_demo) exercising userspace socket creation (SYS_SOCKET), port binding (SYS_BIND), descriptor closing (SYS_CLOSE), and clean exit with code 66. - Comprehensive unit test coverage across all integrated userland programs.
- Added
POSIX Quota Subsystem &
SYS_QUOTACTLSyscall (src/quota.rs,src/syscall.rs,src/liborbit.rs):SYS_QUOTACTL(42): POSIX/Linux-compatible quota control system call supportingQ_GETQUOTA,Q_SETQUOTA,Q_SYNC,Q_QUOTAON, andQ_QUOTAOFF.- Linux-compatible
struct if_dqblk(DqBlk) tracking disk space soft/hard limits, inode soft/hard limits, and grace period timestamps. - Multi-user and multi-group quota accounting table
(
USER_QUOTAS) supporting up to 32 active UIDs/GIDs with atomic reservations and deallocations. - Shell storage commands:
quota [-u <uid>] [-g <gid>] [-h] [--json],setquota, andrepquota [-a] [-h] [--json]. - Dynamic virtual VFS nodes
/proc/quotaand/sys/fs/quota/limitsproviding real-time system and per-user storage metrics. - Ring 3 userland demonstration ELF binary
Program::Quota(quota_demo) exercisingSYS_QUOTACTLfrom userspace.
Dynamic Memory Allocator for Userland (
src/liborbit.rs):liborbit::OrbitAlloc: Dynamic memory allocator implementingcore::alloc::GlobalAllocbacked bysys_brkexpansion for Ring 3 programs.- Linear bump/heap expansion with 8-byte alignment guarantees for zero-dependency userland dynamic allocations.
Built-in Ring 3 POSIX Demonstration Programs (
src/arch/x86_64/user.rs,src/commands/user.rs):Program::FsUtil(fsutil): Ring 3 ELF binary exercisingSYS_GETDENTS64,SYS_RENAME,SYS_TRUNCATE,SYS_CHMOD,SYS_GETCWD, andSYS_CHDIR.Program::Signal(signal): Ring 3 ELF binary demonstrating POSIX signal registration (sigaction), signal triggering (kill/raise), custom handler execution, and stack restoration (sigreturn).- Integrated shell commands
user test-fsutilanduser test-signalfor kernel-level verification of Ring 3 execution.
POSIX Signal Dispatch Frame & Non-Fatal Delivery (
src/task.rs):- Enhanced
task::killdispatch logic supporting custom userlandSigActionhandlers without unhandled task termination. - Safe signal lifecycle handling supporting both default handlers and custom handler transitions.
- Enhanced
Dynamic DNS Configuration & VFS Node (
src/vfs_catalog.rs,src/vfs_render.rs):- Added
/etc/resolv.confvirtual VFS node dynamically generated from the network configuration with configured nameserver IP rendering. - Foundation for userland DNS domain lookup and HTTP/network utilities.
- Added
POSIX VFS & Userland Automated Test Suite (
scripts/test_posix_vfs_suite.sh):- Automated test runner verifying all 451+ unit tests, VFS operations,
syscall contracts, and bare-metal compilation
(
x86_64-unknown-none).
- Automated test runner verifying all 451+ unit tests, VFS operations,
syscall contracts, and bare-metal compilation
(
POSIX Ring 3 Directory & File Management Syscalls (
src/syscall.rs,src/liborbit.rs):SYS_GETDENTS64(32): Linux-compatible directory traversal readinglinux_dirent64records (d_ino,d_off,d_reclen,d_type,d_name).SYS_RENAME(33): Atomic file/directory move and rename across VFS paths.SYS_RMDIR(34): Safe directory removal ensuring directories are empty.SYS_FSTAT(35): RetrieveStatbuffer metadata directly by open file descriptor (fd).SYS_TRUNCATE(36) &SYS_FTRUNCATE(37): Truncate or extend file length by path or open file descriptor.SYS_CHMOD(38) &SYS_CHOWN(39): Modify file permission modes (octal) and user/group ownership (uid/gid).SYS_GETCWD(40) &SYS_CHDIR(41): Inspect and change current working directory with existence validation.- Automatic relative path resolution against caller task's CWD across all path-accepting syscalls.
Per-Task Current Working Directory (CWD) Architecture (
src/task.rs):- Synchronized
TASK_CWDStable mapping task IDs to canonical working directories. - Automatic CWD inheritance on
forkand proper default initialization onspawn. - Process exit lifecycle cleanup on
reap_taskandsys_waitpid.
- Synchronized
Ext2 Directory Creation & VFS Write Operations (
src/ext2.rs,src/fs.rs):Ext2Fs::create_dirallocating directory inodes and blocks with standard.and..directory entries.- Dynamic VFS routing for
touch,mkdir,write_file,write_file_bytes,append_file,rename,truncate, andrmdirsupporting/mnt(ext2),/tmp(ramdisk), and/disk(ATA).
TmpFS Storage Primitives (
src/tmpfs.rs):TmpStore::rename: Moves files and directories in ramdisk with quota-neutral accounting.TmpStore::truncate: Resizes file contents in-memory with precise global quota recalculation.
Shell Storage Utilities & Manual Pages (
src/commands/storage.rs,src/commands/help.rs):du: Recursive file/directory disk usage calculation with-h(human-readable),-s(summary), and--json.df: Filesystem disk space and inode reporting across/,/tmp,/disk,/mntwith-hand--json.file: Inspects binary signatures to classify files (ELF 64-bit/32-bit x86-64 executables, ASCII text, UTF-8 text, raw data).ln: Hard and symbolic link creation (ln [-s] <target> <link_name>).- Expanded integrated command catalog to 97 commands with
comprehensive manual pages (
explain).
[0.2.1] - 2026-09-09
Added
Dynamic Userland & ELF Loading from VFS (
execve,exec):- Implementation of POSIX
SYS_EXECVE = 15(src/syscall/process.rs). - Interactive shell command
exec </path/to/elf> [args...]to execute ELF64 binaries dynamically loaded from/disk,/tmp, or/mnt(Ext2). - Validation of structural invariants: Ring 3 isolation, W ⊕ X verification, segment canonicity, zeroed BSS sections.
- Implementation of POSIX
Linux Ext2 Filesystem Full Write Support (
src/ext2.rs):- Dynamic block and inode allocation algorithms with block/inode bitmap manipulation.
- Creation and writing of files and directories with directory entry
(
ext2_dir_entry_2) insertion. - Immediate write-through via 32-line (16 KiB) LRU sector cache.
Dynamic VFS Mounts (
mount,umount,/proc/mounts,/etc/fstab):- Module
src/mount.rssupporting up to 8 simultaneous mount points. - Interactive shell commands
mountandumount.
- Module
SMP Multi-Core Distributed Scheduler (
src/smp_sched.rs):- Per-CPU runqueues for up to 16 logical cores.
- Work-stealing load balancing algorithm.
- Inter-Processor Interrupts (IPI) via Local APIC for immediate rescheduling and TLB shootdown.
- Interactive shell command
smp.
AArch64 (ARM 64-bit) Multi-Architecture Subsystem (
src/arch/aarch64/):- 4-level MMU translation tables (L0..=L3, 4 KiB granularity) with
W ⊕ X enforcement
(
UXN/PXN). - ARM Generic Interrupt Controller (GICv2/GICv3) for SGI, PPI, and SPI interrupts.
- ARM Generic Timer for 100 Hz preemptive scheduling.
- ARM PrimeCell UART PL011 MMIO driver and PSCI power management
(
SYSTEM_OFF,SYSTEM_RESET).
- 4-level MMU translation tables (L0..=L3, 4 KiB granularity) with
W ⊕ X enforcement
(
Interactive Full-Screen Text Editor (
src/commands/editor.rs):- In-kernel editor
edit(aliasnano) with dynamic text buffer, cursor positioning, viewport scrolling, and atomic VFS persistence (Ctrl+O,Ctrl+X).
- In-kernel editor
MBR & GPT Partition Tables Parser (
src/partition.rs):- Automatic parsing of MBR partition tables (offset
0x1BE, 4 primary partitions) and GUID Partition Tables (GPT). - Shell commands
fdiskandpartitions. - Partition block device nodes
/dev/disk0p1../dev/disk0p4.
- Automatic parsing of MBR partition tables (offset
Virtual Memory Allocation Syscalls (
SYS_MMAP= 30,SYS_MUNMAP= 31):- Module
src/mmap.rssupporting anonymous and file-backed virtual memory mappings.
- Module
POSIX Permissions & Ownership Syscalls (
SYS_CHMOD= 28,SYS_CHOWN= 29):- Module
src/permissions.rswithchmodandchownshell commands.
- Module
Full TCP Transport Stack (
src/tcp.rs) &SOCK_STREAMstream sockets:- RFC 793 TCP state machine, 1KB circular Rx/Tx FIFO buffers, sequence & ACK numbering, windowing, and IPv4 pseudo-header checksum.
SYS_CONNECT = 22,SYS_LISTEN = 23,SYS_ACCEPT = 24.- Userland HTTP daemon (
httpd) and shell HTTP client (fetch).
Shell Command Expansion & Test Suite:
- Shell command catalog expanded to 83 commands.
- Host test suite expanded to 440 passing unit tests (0 failures, 0 warnings).
Each machine can now have its own persisted computer name. The shell exposes
chostname [name],hostname [name], and the short aliascn.- Without an argument, the command prints the current name. With an argument, it validates and applies the new name immediately.
- Names are limited to 32 ASCII letters/digits/hyphens, and cannot
start or end with
-. - The value is saved in a dedicated NVRAM slot and restored at boot.
/etc/hostnamenow renders the same live value, so scripts can read it through the VFS withcat /etc/hostname.
Linux-style network probes around the existing IPv4/e1000 stack.
pingalready sent one ICMP echo request; the shell now also exposesarping,ifconfig,ip addr,ip routeandroute.arping <ipv4>sends an ARP request and waits for the ARP cache to learn the target MAC address. This tests layer 2 separately from ICMP.ifconfig,ip addr,ip routeandrouteare read-only compatibility views over the current static/DHCP network configuration.pingandarpingacceptgateway/gwandself;pingalso acceptslocalhost. These are local aliases, not DNS names.- The route view derives the network prefix from the configured
netmask instead of assuming
/24. - Not added:
ping6, DNS names,tracerouteandnetstat; the kernel does not yet have IPv6, DNS resolution, TTL/time-exceeded reporting or sockets.
Long shell output is paged. During command execution, every complete line printed through the normal serial/local output path is counted. After 22 lines the console shows
--More-- ENTER=line SPACE=page q=quit: Enter prints one more line, Space prints the next page, andqsuppresses the rest of the command output before returning to the shell prompt.- The pager sits below commands, in the output path, so it applies to
help all,explain all,commands,tree, largelsoutput, longcatoutput and future multi-page commands without each handler growing its own copy of the rule. - Pagination is enabled only while a shell command runs. Boot logs, background logs and prompts are not paged.
--jsonoutput is left unpaged, otherwise the--More--prompt would corrupt machine-readable payloads.- The pause reads Enter/Space/q directly from serial input or from the PS/2 scancode queue; it cannot rely on the normal line editor because the line editor is suspended while the command is still printing.
- If the last output fragment does not end with a newline — for
example a long
cat— the pager emits one before the shell prompt, so the next prompt never lands on the last content line. A pause at the page boundary also marks the prompt as needing a fresh line.
- The pager sits below commands, in the output path, so it applies to
Redesigned, compact and innovative interactive prompt. The shell prompt has been redesigned for greater clarity, ergonomics, and alignment with the OrbitOne identity:
- Formatted as
[orbitone] [ok] [/] [aqua] >(22% shorter than previous prompt). - Puts the computer hostname first (
[<hostname>]), dynamically populated fromcrate::hostname::current(). - Removes the redundant
|kernelsubsystem label. - Features compact health markers (
[ok]/[warn]), current directory ([/]), active theme indicator ([aqua],[gold],[ice]), and theme-accented prompt arrow (>). - Cleanly rendered on both ANSI serial terminals and 80x25 VGA local consoles.
- Formatted as
Cross-platform macOS & Linux test suite portability.
scripts/test_regression_all.shand all individual test scripts now run out-of-the-box on macOS (Apple Silicon & Intel) and Linux.- Replaced non-portable GNU regex (
grep -oP) with POSIXsedfor module discovery and parsing. - Replaced BSD-incompatible
sed -iwith portable multi-platform buffer replacement. - Added portable
run_with_timeouthelper with automatic fallbacks (timeout,gtimeout,perl alarm). - Fixed free list allocator unit test
(
deux_regions_disjointes_ne_sont_jamais_soudees) to use guaranteed disjoint memory offsets on host memory allocators. - Included
hostnamemodule in dynamic VFS regression test harness.
clearnow leaves the prompt alone on the first line. The command clears the screen, homes the cursor and renders the prompt itself; the shell loop is told not to render a second prompt afterwards. This avoids the extra blank line that appeared when the automatic post-command prompt ran afterclear.- The VGA backend now implements the two CSI sequences this path
depends on:
ESC[2Jclears the text buffer andESC[Hhomes the cursor. On real hardware, such as the HP Pavilion deployment, the serial terminal handled those bytes but VGA previously ignored them, soclearrendered the prompt at the old cursor position.
- The VGA backend now implements the two CSI sequences this path
depends on:
seek, so returning to the start no longer means reopening.SYS_SEEK(7) takes(fd, offset, whence)with 0 for the start, 1 for the current position, 2 for the end. Before it, a program that had just written had to close its descriptor and reopen the file — revalidating a path for an operation that concerns only the cursor.- The arithmetic lives in
fdtable::seek_target, beside the table it serves and away from the syscall boundary: 8 more host tests. Counter-proof performed: withchecked_addweakened towrapping_add,un_deplacement_hors_bornes_est_refuse_sans_deborderis the only test that fails. - Seeking past the end is allowed. A read there returns end-of-file and a write is brought back to the end, so neither fabricates bytes; refusing would force the caller to know the size before asking for it.
- The size is consulted only for an origin that depends on it. Going back to the start must not fail because the file has since disappeared.
- New refusal:
-11, for an unknown origin, a target before the start, or one that does not fit in a cursor.
- The arithmetic lives in
A ring 3 program can write a file. Since 0.1.18 user code could read the filesystem and not touch it; every byte it produced went to the serial port and nowhere else.
SYS_WRITE_FILE(6) takes(fd, buf, len)and writes at the descriptor's cursor.- Creation is a flag on
open, not a seventh call. A separatecreatetaking a path would have made two boundaries to validate and confine for an operationopenalready performs.OPEN_CREATEgoes throughfs::touch, hence through the same containment and quota rules as the shell. - The store holds
Strings, so the result is checked for UTF-8, not the incoming bytes. Writing half of a multi-byte character over its other half is therefore refused — which a check on the incoming bytes alone would let through. New refusal:-9. - A cursor past the end — the file having shrunk since the open — is brought back to the end. POSIX would fill the gap with zeros, that is, put bytes into a text file that nobody wrote.
src/file_edit.rsholds that arithmetic, and holds it alone. Left inline insyscall, none of it could have been exercised without booting a kernel; as a pure module it takes 11 host tests. Counter-proof performed: with the cursor clamp removed,a_cursor_beyond_the_end_appends_rather_than_making_a_holeis the only test that fails.- Cost is
O(size of file)per call, notO(len): there is no block-level write beneath this boundary, so the file is re-read, spliced and rewritten. Recorded rather than hidden. user run savecreates/tmp/ecrit.txt, writes seven bytes, seeks back to the start and reads them. The file exists nowhere before the run, so what it reads can only come from what it wrote. Exits with 7.- The two existing
opencall sites now zerordx. The third argument was previously whatever the register happened to hold.
- Creation is a flag on
A sector cache, written through and not deferred. Every
diskfsoperation walks the inode table, so listing a directory cost sixteen PIO reads of the same sectors.src/sector_cache.rskeeps 32 lines — 16 KiB, enough for the superblock, the bitmap and the whole inode table.- Writes reach the disk before the call returns. That is slower than a
write-back cache, and it is the point: every ordering argument made in
disk_storeanddiskfs— superblock written last, blocks released before being reclaimed — assumes the requested order is the executed one. A cache that reordered or delayed writes would silently void them all. Test: after writing through the cache, the raw device alone tells the same story. - A line is invalidated before the write and reinstalled only on success, so a failed write leaves an empty line rather than one asserting content the disk does not hold.
- Direct-mapped on
lba % 32. An associative cache would retain more, but its replacement policy would be one more piece of state to justify; here a sector's line is computed, and the eviction test computes it too. fsdisk dfreports hits, misses and writes.fsdisk formatinvalidates everything first, the previous volume's lines being void by then.
- Writes reach the disk before the call returns. That is slower than a
write-back cache, and it is the point: every ordering argument made in
/diskis a mount point, not a second vocabulary. The durable filesystem answersls,cat,stat,mkdir,touch,write,append,rmandrmdirlike any other path.fs.rsroutes on the prefix before its/tmpchecks;fsdiskkeeps onlyformatanddf, which have no equivalent elsewhere.- Mounted beside
/tmpand not in its place:/tmpis counted by the quota and bounded by the heap,/diskby the disk's bitmap. The two limits do not translate into one another, and merging them would mean refusing a write to disk because memory is full. - The superblock is read on every operation. That is a sector, and it is what lets an unformatted disk answer not formatted where a blank inode table would otherwise read as an empty directory.
staton/diskreads the size from the inode. The genericstatderives it from the content, so it would re-read up to 8 KiB over PIO to report an integer already written on the disk.- Confinement comes for free:
canonicalizeruns first, so/disk/../etcis/etcand never reaches the disk routing.
- Mounted beside
A file now owns its blocks. The snapshot below made
/tmpoutlive a power cut, but it wrote and read the whole thing: changing one byte cost the rewrite of everything.src/diskfs.rsreplaces that with an allocating filesystem — superblock, block bitmap, inode table, data blocks.- Generic over
BlockDevice, likedisk_store. No line names ATA, so allocation, naming and reclamation are demonstrated on the host: 30 tests against the in-memory disk now shared fromsrc/block.rs. - Directories carry no data blocks. Each inode holds its own name and its parent's index, so listing a directory is a walk of the 64-entry table. Slow, and deliberately so: a separate directory format would be a second structure to keep consistent with the first.
- The superblock is written last during
format. An interrupted format therefore reads as unformatted rather than as a valid disk in front of a half-written inode table — the same ordering argument as the snapshot store, and measured the same way. - Old blocks are released before the new ones are claimed on rewrite.
Otherwise rewriting a file of unchanged size would fail as soon as the
disk was half full, for want of holding two copies at once. Test:
rewriting_a_file_reuses_its_blocks_rather_than_leaking_themkeeps the block count flat across ten rewrites. - Four inodes share a sector, so
write_inodereads before it writes. Without that, creating one file would erase its three neighbours. - The snapshot region moved to the last 1 MiB of the data disk. Both formats used to start at LBA 0, so each would have written its superblock over the other's. Sharing is now imposed by the layout rather than left to the order of commands.
- Generic over
The filesystem now survives a power cut. Until now
/tmpwas snapshotted into a ramdisk and copied into NVRAM — a static kernel buffer that only outlives QEMU's simulated reboot. The bytes never reached a disk. They do now.src/disk_image.rs: the on-disk container — a superblock (magic, version, payload length, CRC32) at LBA 0, the payload from LBA 1. A pure module: it names no driver and allocates nothing, which is what makes offset arithmetic and the rejection of damaged images decidable on the host.src/disk_store.rs: sector-level save and load, generic overBlockDevice. Being generic is not decoration — the host tests drive it through an in-memory disk that can be told to fail mid-write, so the crash-ordering claim below is measured rather than asserted.disk [status|save|restore|erase]in the console, and a save onrebootandshutdownbeside the existing NVRAM one.
Changed
- The ATA driver addresses a chosen drive rather than the
primary master.
read_sector/write_sectortake aDrive, andAtaPioimplementsBlockDevice— the trait declared insrc/block.rssince 0.2.0 with no implementor and no caller.- The data disk is the primary slave, never the master. Under QEMU the master carries the boot image; writing there would destroy the kernel currently executing.
- Added the 400 ns settle after a DRIVE register write. With one drive it was invisible; with two, a read can return the previous drive's status.
flushissues FLUSH CACHE after a save. Without it a sector is only promised, and the power cut that follows returns the disk to its prior contents — which is precisely the failure this milestone exists to remove.
- Boot prefers the disk over NVRAM. NVRAM is consulted only when the disk restored nothing, so an absent data disk degrades to the previous behaviour instead of failing.
Fixed
- Writes are ordered erase-superblock, payload, superblock. An
interruption therefore leaves a zeroed superblock, which reads as no
snapshot rather than as a corrupt one. Measured: with the ordering
reversed, the host test
an_interrupted_save_leaves_absence_not_a_half_snapshotreports a checksum mismatch instead of a clean absence. net::tests::checksum_matches_known_headerasserted0xb861for a header whose Internet checksum is0xb955. The implementation was right and the expectation wrong; the test had been failing the host suite.- Two DHCP tests bound a transaction identifier to an unannotated
integer literal and called
to_be_byteson it before inference could resolve it (E0689). The suite did not compile.
Testing
- Host tests: 265 → 371. They cover the container format (round trip,
foreign magic, future version, length bound, single flipped bit,
truncation, sector boundaries), the snapshot store (multi-sector
reassembly, offset placement, refusal before any write when the region
is too small, a shorter snapshot not inheriting the tail of the previous
one, interrupted save) and the filesystem (block reuse across rewrites,
two files never sharing a block, inode and bitmap exhaustion, name
limits and separators, the same name in two directories, refusal to
remove a populated directory or the root, interrupted format) and the
cache (repeated reads reaching the device once, eviction between two
sectors sharing a line, a failed write leaving no stale line, a
filesystem behaving identically through it) and the write splice
(replacement, extension, a cursor beyond the end, a multi-byte character
cut in half, the size bound and an in-place rewrite of a file already at
it) and the cursor (each origin, a target before the start, one past the
end, an offset that would overflow, an unknown origin code) and pager
state (page boundary, Enter/Space/q, unpaginated mode, final-fragment
newline handling) and network target aliases (
gateway,gw,self,localhost). scripts/test_ring3.sh: 23 → 24 assertion groups. The new one asserts the creation, the seven bytes written at offset 0, the cursor brought back without closing the descriptor, the bytes read back and the exit code that can only be reached by a complete round trip.
Known limitations
/diskis not the backing store of/tmp: the snapshot path still goes to the in-memory store. Two persistence mechanisms coexist, on disjoint regions of the same disk.- A ring 3 write costs a full re-read and rewrite of the file, and
refuses any result that is not UTF-8. There is still no
truncate: a file can only be shortened from the shell. - The sector cache is not shared with the snapshot path, which writes to the disk directly. This is safe only because the two regions are disjoint.
- 64 inodes, 48-byte names, 8 KiB per file (16 direct pointers, no indirection).
- The data disk must be attached explicitly
(
-drive format=raw,file=data.img,index=1,media=disk) and must exceed 1 MiB, the snapshot reservation. Without it the kernel logsprimary slave unavailableand falls back to NVRAM. - Snapshot payloads are bounded at 512 KiB, the size of the ramdisk that produces them.
[0.2.0] - 2026-08-27
Added
- PCI discovery with ATA-PIO block I/O for QEMU's primary IDE disk.
- e1000 Ethernet support with MMIO, DMA RX/TX rings, interrupts, ARP, IPv4, ICMP echo, DHCP, lease renewal and NVRAM persistence.
- RTC CMOS reading for DHCP lease expiration across reboots.
- Wi-Fi controller detection, model-checked firmware staging and diagnostics.
net,ping,dhcp discoverandwificonsole diagnostics.
Fixed
- macOS smoke-test timeout fallback using
timeout,gtimeoutor Perl.
Known limitations
- Wi-Fi radio initialization, association and WPA2/WPA3 are not implemented; they require a specific controller and matching firmware.
- The legacy
/tmpsnapshot path still uses ramdisk/NVRAM; the persistent/diskfilesystem uses the ATA data drive and is covered by a two-boot QEMU regression.
[0.1.19]
Added
- File descriptors, and therefore a cursor.
openreturns a small integer,readtakes it,closegives it back. The point is not the numbering: it is that the kernel now remembers where a program stopped reading.user run catoffers an 8-byte window for a 25-byte file and still exits with 25, which is only possible if each read resumes where the previous one ended. The buffer no longer bounds the file.src/fdtable.rs: a pure module holding one task's table — four descriptors, a 64-byte path and a cursor each. It knows nothing of user memory or of the filesystem, which is what makes it verifiable off-target: 15 host tests.- Descriptors are numbered lowest-free-first, as under Unix, so a program that closes and reopens can predict what it gets.
- The cursor saturates instead of wrapping. A cursor that returned to zero would make a program re-read the beginning of a file while believing it was advancing — a silent wrong answer rather than an error.
Changed
readno longer takes a path. It would have been additive to keep the 0.1.18 form beside the new one, but that would have left two boundaries that both write into user memory and both have to be kept in step. There is one way to read a file.SYS_OPEN(4) andSYS_CLOSE(5) joinSYS_READ(3), which now reads(fd, buf, len). No current call needs a fourth argument, so ther10plumbing described in 0.1.18 is unused; it is kept because removing it would mean editing the assembly stub the day an argument is added.openchecks the path exists so a typo is reported immediately, but a descriptor does not pin the file: the content is re-read on each call, and a file deleted between two reads makes the next one fail. Holding a snapshot would let a program tie up as much heap as it can open files. The limitation is recorded in the module rather than left to be discovered.- A read returning
0now means end of file, which is a valuereadcould not previously produce. - Refusals gained two levels:
-7for a descriptor the task does not hold,-8for a table already full.-6disappeared with the all-or-nothing rule it served.
Fixed
- A descriptor table does not outlive its task. A
scheduler slot is reused, so
spawnclears the table of the slot it hands out. Measured, not assumed: with that line removed,user run steal— a program that opens nothing and reads descriptor 0 immediately — obtains[syscall] read fd=0 bytes=8 depuis=0and exits with 8 instead of-7. It reads a file opened by the previous occupant of the slot.
Testing
scripts/test_ring3.sh: 22 → 23 assertion groups. The read group now asserts the cursor itself (bytes=1 depuis=24, reachable only by resuming), and a new group covers descriptor isolation withuser run steal.scripts/test_regression_full.sh: 16 → 17 structural checks. Counter-proof performed: turningsaturating_addintowrapping_addmakes check 17 fail.- Host tests: 250 → 265, and the floor moves with them. Unlike 0.1.18, this milestone does add pure logic — descriptor allocation, reuse and cursor arithmetic are decidable without a page table.
Known limitations
- Four descriptors per task, a 64-byte path, 1024 bytes per read.
- Still no way for a ring 3 program to write a file, and no user heap.
opendoes not deduplicate: opening the same path twice gives two independent cursors and re-reads the file twice.
[0.1.18]
Added
- A ring 3 program reads a file. Until now a user
program could only speak (
write), name itself (getpid) and stop (exit). Every byte it handled was either in its own image or invented on its stack.readgives it a third source: the filesystem.user run catasks for/tmp/lu.txt, gets 25 bytes in a buffer taken from its own stack, writes them back and exits with 25 — and those bytes are in neither the program nor the kernel.SYS_READ(number 3) takes four arguments, which is one more than the boundary carried. The fourth passes inr10rather thanrcx, following the Linux convention:syscalloverwritesrcxwith the return address. We enter throughint 0x80, which does not, but adopting the convention now avoids rewriting every program the daysyscallreplaces the interrupt gate.- All or nothing: a file larger than the buffer is refused, not truncated. There is no cursor, so a truncated read could not be resumed — it would hand back a fragment indistinguishable from a whole file.
- Refusals keep their own level, so a failure says where the chain
stopped:
-2for a pointer the boundary will not accept,-5for a path the filesystem does not have,-6for a file that does not fit. Confinement to/tmpis not re-implemented here;fs::read_filealready canonicalises and refuses what leaves the root, and duplicating the rule would create two copies to keep in step.
Changed
- The kernel now writes into user memory, and that is a new
direction. Every previous validation asked whether a page was
present and reachable from ring 3 (
range_is_readable). That question is the right one when the kernel only reads what it is shown: a wrong address leaks. It is not the right one for a destination.range_is_writabledemands the W bit in addition to U/S. Measured, not assumed: replacing it with the read-side check and running a program that names its own read-only code page as the destination produces[page_fault] acces=ecriture mode=noyau,page_fault_fatal=1,KERNEL HALTED.CR0.WPis armed, so the kernel is itself subject to the W bit — an unvalidated destination does not let a program rewrite itself, it lets an unprivileged task stop the whole system with one call.- Worth recording: the kernel never writes
CR0, it inherits that bit from the bootloader. If it were ever cleared, this refusal would stop being a guard against a halt and become the only thing preventing ring 3 from having the kernel rewrite its code. range_is_readableandrange_is_writablenow share one page walk parameterised by what it demands, so the two cannot drift apart.- Two new built-in programs:
catreads and restitutes,pokeasks for the refusal.pokeis to writing whatpeekis to reading — the program whose only job is to make the boundary say no where it counts.
Testing
scripts/test_ring3.sh: 19 → 22 assertion groups. The new ones cover the read itself, the refusal of a non-writable destination (withpage_fault_fatal=0asserted alongside, so the group fails if the kernel was hurt), and the distinction between a pointer refusal and a missing path.scripts/test_regression_full.sh: 15 → 16 structural checks. Counter-proof performed: droppingmapping.writablemakes check 16 fail. The earlier checks also stopped announcing/14— a numbering left inconsistent by 0.1.17.- Host tests stay at 250. This milestone adds no pure logic: what it establishes is enforced by the MMU and can only be observed on the target.
Known limitations
- No file descriptors, no cursor, no way for a program to write a file.
- A read is bounded at 1024 bytes and a path at 128.
[0.1.17]
Added
- The kernel runs a program that is not part of it.
Until now every ring 3 program was assembled together with the kernel:
running one proved the loader worked, not that the system could execute
software it had never seen. A 136-byte ELF64 image is now produced
outside the build (
scripts/gen_min_elf.py), typed at the shell in hexadecimal over four lines, and run. It exits with 7 — a code no built-in image produces, so the result cannot come from a fallback to an internal copy. Deleting the file is enough to make the program disappear.src/hex.rs: a pure transcription module (encode/decode), 22 host tests. It exists because the/tmpstore holdsString, not bytes. Making the store carry raw bytes would have touched the quota accounting, the snapshot format, NVRAM persistence andcat— none of which belongs to this milestone. Text costs two characters per byte, and keeps the limitation visible: the file can becat-ed and typed by hand.- ASCII whitespace is ignored on input. This is not politeness: a
shell line is capped at
line_editor::CMD_BUF_SIZE(128 bytes), so an image has to be written across several lines. Everything else is refused, including a0xprefix and:/-/,separators, as is an odd number of digits. user run /cheminanduser image /chemin: an argument starting with/designates a file rather than a built-in program. No built-in name starts with/, so the rule cannot hide one.user export <prog> <chemin>: writes a built-in image to a file as hexadecimal. It exists to make the round trip observable, not to be useful.append <path> <content>: adds to the end of an existing file. Without it a file written from the console could never exceed what one shell line carries, and no image would fit.
Changed
user::load_bytesis the single loading path.user::load(Program)is now a wrapper around it. A file therefore undergoes exactly the same validation as a built-in image, because it is the same code — not because two code paths were kept in step.- A file's size is bounded by
user::MAX_IMAGE_BYTESbefore any allocation: the kernel decides how much heap a/tmpfile may cost it, not the file. - Refusals stay at their own level, so a failure says where the chain
stopped:
hex: caractere non hexadecimalfor bad text,elf: image plus courte qu'un en-tetefor valid hexadecimal that is not an image.
Testing
scripts/test_ring3.shgoes from 17 to 19 assertion groups. Counter-proof performed: changing the exit-code byte inscripts/gen_min_elf.pyfrom 7 to 0x63 makes group 15 fail, and only that group — the assertion observes the bytes that were typed, not the fact that something ran.scripts/test_regression_full.shgoes from 14 to 15 structural checks.- Host tests: 250 (was 223). The floor in
scripts/test_host_coverage.shwas raised accordingly.
Known limitations
- A program still has to be transcribed to hexadecimal:
/tmpcarries text. - The image is read entirely into the heap before being examined; there is no streaming and no demand paging.
- No loader for a program compiled by an external toolchain: nothing consumes relocations or dynamic linking.
[0.1.16]
Added
- Ring 3 programs are ELF64 images. The shape of a
user program used to be a constant of the kernel: one page, at a
hard-coded address, with one set of rights. The entry point was
USER_CODE_ADDR— not something anybody read. Each program is now a real ELF64 image, assembled together with the kernel but described by its own header, and the loader obeys it.src/elf.rs: a pure reader. It performs no I/O, allocates nothing and does not depend on the target, so all 37 of its tests run on the host. It loads nothing either: it turns bytes into a checked description of what will have to be mapped. The virtual window is an argument (Bounds) rather than a constant, which is precisely what makes the containment rule testable off the target.- Twenty distinct refusals, each with its own message. The ones that
carry a security property rather than a well-formedness check:
SegmentHorsFenetre(an image may not choose addresses outside the user region),InscriptibleEtExecutable(no segment may ask for W and X at once),SegmentsSuperposes(two segments may not share a page, which would let the later one impose its rights on the earlier),TropDePages(an image may not exhaust physical frames on demand from ring 3),PointEntreeHorsCode(the entry point must land in an executable segment). user image <prog>reads a program's header and prints what the kernel found — entry point, segments, pages, rights, sizes — without running it and without allocating anything. A rejected image prints the reason instead.- Restrictions stated rather than hidden: only
PT_LOADis honoured,p_vaddrmust be page-aligned, onlyET_EXEC, no relocations, no dynamic linking, at most 8 segments and 16 pages.
Changed
- The loader maps several segments with distinct
rights.
user run dataruns a program whose image carries read-only executable code alongside a writable non-executable data page that declares 4096 bytes in memory for 45 in the file. The program checks itself, in ring 3, that the part of its page the file does not cover arrives zeroed, writes to it, reads it back, and exits with 42. No single-rights blob could express that. - The user stack moved past
USER_IMAGE_LIMIT, outside the window submitted to the parser, so no image can declare itself astride it. user mapnow loads the two-segmentdataimage, which makes the two rights sets and the hole between them visible in one listing.
Fixed
- Information leak, real and now closed.
alloc_phys_framedoes not clear the frames it hands out, and the user stack page was never zeroed. A fresh task could read, in its own stack, whatever a dead task had left there.fill_frameclears every frame before it is handed to ring 3. - Regression that variable-size images would have
opened. The user region now contains pages no segment covers.
range_is_useronly bounds an interval; the kernel would have taken a page fault in ring 0 — therefore fatal — on a pointer chosen by ring 3.range_is_readableadditionally checks that every page the range crosses is present and carries U/S in the active space.
Added (tests)
scripts/test_ring3.shgrew from 13 to 17 assertion groups: the header is read rather than guessed, a W+X image is refused with no task created, the data segment is loaded and zero-filled past the file, and unclaimed pages stay absent. Counter-proof: declaringdata's data segment RX instead of RW in its header turns the page intowritable=false executable=trueand the program faults on write instead of exiting with 42. The header therefore drives the hardware rights.scripts/test_regression_full.shgained a 14th structural check.scripts/scenarios/elf.txt: serial comparison scenario replaying the six images. Its output depends only on the image bytes — no physical address, no task id — so it catches an unintended move of a segment that no assertion spells out.- Host unit tests: 186 → 223.
[0.1.15]
Added
- One address space per process. Ring 3 worked, but
every user task shared the kernel's single set of page tables. That made
"process" a word without a referent: two user tasks would have shared
the same code page and the same stack page, at the same addresses,
overwriting each other. Only one could be allowed to exist at a time,
and the kernel enforced exactly that. Each task now carries its own
CR3.src/arch/x86_64/paging.rs:AddressSpace,create_address_space,destroy_address_space,map_user_page. A new space copies all 512 top-level entries from the kernel's, except one. Sharing the entries rather than duplicating the tables means later kernel mappings are visible in every space, which is what allows an interrupt taken in ring 3 to land on kernel code that is actually mapped.- The user region moved from
0x4000_0000to0x80_0000_0000, which is P4 entry 1. The old address lived in P4 entry 0 — the same entry as the kernel image and the low heap. Copying that entry, as every space must, would have shared the user pages along with it. Entry 1 was measured to be unused (info memunder QEMU shows the kernel occupying entries 0, 2 and 3), so isolation comes from the kernel simply never mapping anything there. src/task.rs:TASK_SPACEholds each task's root, published inside the same critical section as the saved stack pointer. Publishing it afterspawnreturned left a window in which the task could be elected while still on the kernel'sCR3, and would have jumped to an address not mapped there.enter_task_contextinstalls the root before the stack switch, and only when it changes, since reloadingCR3flushes the whole TLB.destroy_address_spacewalks only the user entry's subtree and returns every frame, then the root itself. A task's space is released inreap, never while it is the elected one.
Changed
- W^X is now structural rather than sequential. The
user code page used to be mapped writable, filled, then made read-only.
There was therefore an instant — brief, but real — where a page was both
writable and executable. The program is now written through the kernel's
physical-memory window, so the user mapping is created read-only and
executable and never changes.
set_page_writableandupdate_vm_mapping_writablewere removed with it. user statusreportsuser_tasks=<n>instead ofuser_active=<id>: several user tasks can now exist at once.user mapbuilds a throwaway address space, shows it, and destroys it. It additionally reports how many of the 512 top-level entries are shared with the kernel, which makes the isolation rule observable rather than asserted.- The software mapping table stays kernel-only. Two tasks at the same
virtual address would otherwise collide in it; user mappings are read
back from the page tables of a given space through
query_user_mapping.
Added (tests)
user run own/user run own2: a program that stores its own pid on its own stack, spins long enough to be preempted several times, then reads back what it wrote and exits with it. Two instances at the same virtual address exiting with different codes is the direct proof that their stacks are distinct pages.scripts/test_ring3.shgrew from 9 to 13 assertion groups. Counter-proof: removing theCR3reload fromenter_task_contextmakes no user program start at all. Noted as negative and not to be repeated: copying all P4 entries, user entry included, breaks nothing — the kernel puts nothing there, so the copy is zero. The explicit clearing is a guard, not the mechanism.scripts/test_regression_full.shgained a 13th structural check.
[0.1.14]
Added
- Ring 3 (user mode) and a syscall boundary. Every
thread used to run in kernel mode, in ring 0, with full access to every
page. A bug in any of them could reach the whole kernel. The kernel now
runs code at privilege level 3, on pages the CPU itself refuses to let
ring 3 read outside of.
src/arch/x86_64/gdt.rs: user code and data descriptors, and a mutable TSS.rsp0is rewritten before each entry into ring 3: on an interrupt the CPU reads it from the TSS and switches to it before pushing anything, which is what keeps the kernel from ever executing on a user-controlled stack. The descriptor order (kernel code, kernel data, user data, user code) is the one theSTARMSR requires, sosyscall/sysretcan be added later without moving descriptors.src/arch/x86_64/paging.rs: the U/S bit is propagated across all four page table levels, because reachability from ring 3 is the AND of the four entries.query_mappingreports exactly that AND, not the leaf alone.src/arch/x86_64/user.rs: the user pages, three test programs assembled in.rodata, and theiretqtransition. The code page is mapped writable, filled, then made read-only (W^X).src/syscall.rs: theint 0x80boundary.exit,write,getpid. Every pointer coming from ring 3 is checked against the user range before the kernel dereferences it, andwritefilters non-printable bytes so a user program cannot inject escape sequences into the serial log.src/arch/x86_64/interrupts.rs: a page fault, a general protection fault or an invalid opcode raised in ring 3 no longer halts the kernel. The trap frame is rewritten to a kernel exit path, the task dies, the shell keeps answering.- New shell command
user:status,--json,map,run hello,run fault,run peek.run peekexists to be refused: it asks the kernel to read kernel memory on its behalf.
scripts/test_ring3.sh: integration test in QEMU. Asserts ring 3 execution, the syscall round trip, the clean exit and page reclamation, the absence of U/S on kernel pages, a user fault absorbed with the kernel alive, and the refusal of an out-of-range pointer. Counter-proofs recorded in the header.scripts/test_regression_full.sh: twelfth structural check on the ring separation guards.
Known limitations
- A single set of page tables, therefore one user task at a time. Per-process address spaces are the next step.
- No ELF loader: user programs are assembly blobs copied from
.rodata. - Three syscalls only.
[0.1.13]
Added
- Preemptive kernel multitasking. Until now the
kernel had a single thread of execution: the main loop drove every
subsystem in turn, and a long-running command froze the shell. It now
runs real kernel threads, each with its own stack, switched by the timer
interrupt.
src/sched.rs: the ordering policy alone — round-robin over 8 slots, quantum accounting, sleep and wake, per-task counters. It knows nothing about stacks, hardware or allocation, which is what makes it testable on the host. 33 tests.src/sync.rs: preemption counter andSpinLock. Holding a kernel lock now suspends preemption instead of risking a deadlock against a task spinning on the same lock. A refused preemption is not lost: it is recorded as deferred and taken at the first tick after the lock is released. 8 tests.src/arch/x86_64/context.rs: the context switch itself, in naked assembly. Saves the callee-saved registers plus rflags, swapsrsp. The volatile registers of a preempted task were already pushed by the interrupt prologue onto that task's own stack and are consumed by the eventualiretq.src/task.rs: stack allocation,spawn/yield_now/sleep_ticks/ exit / reap, and the timer entry point. A boot self-test proves the switch works before the shell accepts its first command.- New shell command
task: list, stats, yield, spawn, burn, quantum,--json.task burn 300starts a thread that never yields voluntarily; the shell staying responsive while it spins is the direct proof that preemption works.
scripts/test_scheduler.sh: integration test in QEMU. Asserts the boot self-test, the create/sleep/wake/exit cycle, a non-zero preemption count under a non-cooperative load, stack reclamation, and the absence of any fault or reboot loop. Counter-proof recorded in the script header.scripts/scenarios/scheduler.txt: serial comparison scenario, restricted to the outputs that do not move with the clock.- New shell command:
wai(Where Am I), prints the path tree from/to the current working directory. src/free_list.rs: the allocator core (free list, block header, merging) extracted into a module with no globals, no lock and no interrupt handling, so it can be unit-tested on the host. 18 tests, plus an invariant checker used by the tests.scripts/test_host_coverage.sh: ratchet on the number of host unit tests (floor 85, override withHOST_TEST_FLOOR). Wired into CI and intotest_regression_all.sh. Also reports the host-testable share of the code, for information only.scripts/compare_serial.shplusscripts/scenarios/: builds the kernel at a given git reference and at the working tree, replays the same commands in both, and diffs the serial output. Not a CI gate on purpose.
Changed
- Timer interrupt handler: the end-of-interrupt is now sent explicitly before calling into the scheduler. The previous RAII guard sent it on drop, which after the change would only have happened at the end of a full scheduling round, leaving the PIC masked for the duration.
/tmp(src/fs.rs), the ramdisk, the boot journal and the paging tables moved fromspin::Mutextocrate::sync::SpinLock. These are the only locks reachable from more than one task with interrupts enabled. The others (serial,memory,PICS,console,local_console) are taken undercritical_sectionand were already immune, since masking the timer interrupt already forbids preemption.scripts/test_host_coverage.sh: host test floor raised from 145 to 186.- Allocator: freeing a block no longer sweeps the whole free list. The block is merged with its immediate neighbours at insertion time. The previous behaviour scanned every block twice on each free, with interrupts masked.
- Allocation header reduced from four words to three (32 to 24 bytes
per live allocation): the
block_sizefield was always equal toconsumed_size. - Toolchain pinned to
nightly-2026-07-27inrust-toolchain.toml, withx86_640.15.5 andbootloader0.9.35. These four are coupled; see the comment inrust-toolchain.tomlbefore changing any of them. - Documentation updated across README and VFS guides to cover:
cd+wainavigation workflow- relative path usage (
.,..,./foo,../foo) - parent traversal with
cd ..
Fixed
- CI: the clippy budget check failed precisely when the budget was
respected.
grep -cexits non-zero when it counts nothing, whichset -o pipefailthen turned into a step failure. scripts/test_regression_full.sh: the "free block merging" structural check looked forcoalesce_free_listinsrc/memory.rs. That function no longer exists; the check was passing only because a stale doc comment still named it. It now checksinsert_and_mergeinsrc/free_list.rs, and fails if removed.- Removed every
cargo +nightly/rustc +nightlyinvocation from scripts and docs. The command-line override ignoresrust-toolchain.toml, so it silently built with a different compiler than CI.
Releases 0.1.5 to 0.1.11
These releases are not itemised in this file. Their contents are
recorded in the version table in README.md and
in the release notes under docs/. Entries below resume at
0.1.4.
[0.1.4] - 2026-07-02
Added
FHS-lite Filesystem Implementation
- Standard Linux directory hierarchy (
/,/boot,/dev,/etc,/home,/proc,/run,/sys,/tmp,/usr,/var,/mnt) - Pseudo-filesystems for kernel state exposure (
/proc/*,/sys/*pseudo-files) - Dynamic file storage in
/tmpwith runtime creation support
- Standard Linux directory hierarchy (
VFS Navigation Commands
ls [path]- List directory contents with directory suffix notationcat <path>- Display pseudo-file and virtual file contentsstat <path>- Show file/directory metadata (type, size/entries)tree [path]- ASCII tree visualization (max depth 5)mount- Show mounted pseudo-filesystems and types
Dynamic File Operations (in /tmp)
mkdir <path>- Create directory in/tmpwith validationtouch <path>- Create empty file in/tmpwith validation- Both commands support
/tmponly for safety and consistency
Architecture Enhancements
- DirEntry refactored to use String names for dynamic entry support
- DYNAMIC_ENTRIES Mutex-protected storage for runtime files
- list_dir() returns Vec
with mixed static+dynamic filtering - Two-level lookup: dynamic entries checked first, then static fallback
Pseudo-files for Kernel Introspection
/proc/version,/proc/uptime,/proc/cpuinfo,/proc/meminfo/proc/tasks,/proc/paging,/proc/bootlog,/proc/faults/sys/kernel/*,/sys/console/*,/sys/power/mode,/sys/memory/*,/sys/paging/*/etc/os-release,/etc/hostname,/etc/fstab
Documentation Updates
- New "Systeme de fichiers (FHS-lite)" section in README.md
- Comprehensive VFS examples and usage patterns
- Full release notes in docs/release-notes-v0.1.4.md
- Help text integrated for filesystem commands
Changed
help shellnow includes filesystem command documentation- Updated example commands to showcase VFS operations
- Console command count increased from 41 to 43
Fixed
- Type safety for dynamic directory entries (String vs &'static str)
- Consistent handling of mixed static/dynamic directory listings
Technical Details
- Safe concurrency: DYNAMIC_ENTRIES protected by spin::Mutex
- Memory efficiency: Static entries use &'static str tuples until conversion
- Current limitation: /tmp supports only single-level creation (no nested paths yet)
[0.1.3] - 2026-07-02
Added
- Console stability enhancements for dual output (serial + local VGA)
- Improved command dispatch reliability
- VM mapping safety hardening for paging diagnostics
Fixed
- QEMU dual-console output consistency
- Command execution edge cases
- Paging diagnostic robustness
[0.1.2] - 2026-06-28
Added
- Local VGA text console backend (src/local_console.rs)
- Runtime backend visibility and controls (
outputscommand) - Keyboard diagnostic counters and status reporting
- T1: Boot diagnostics with stage tracking and progress logging
- T5: Bare metal validation workflow and BIOS checklist
- T2: Dual console backend architecture (serial + local)
- T3: Keyboard event monitoring and status
Fixed
- Boot stage tracking improvements
- Hardware validation capabilities
[0.1.1] - 2026-06-20
Added
- Memory allocator self-tests
- Frame pool management with bitmap tracking
- Paging stress testing with full-pool alloc/free cycles
- Paging soak mode for non-blocking stress testing
- Health monitoring with multi-check aggregation
- Power mode control (real/sim) for safe testing
- Enhanced diagnostic framework
Changed
- Improved console stability and reliability
- Refined paging test infrastructure
- Better error reporting for VM operations
[0.1.0] - 2026-06-15
Added
- Initial minimal bare-metal Rust kernel for x86_64
- Serial console with PS/2 keyboard input
- Bootloader integration via bootimage 0.9
- No_std environment with custom allocator
- Basic interrupt handling (IDT, PIC)
- Timer IRQ and task scheduler foundation
- CPU identification and feature detection
- Memory management with linked-list allocator
- Paging support with frame pool management
- Health monitoring and status reporting
Technical Foundation
- Bootloader: 0.9.34 with physical memory mapping
- CPU target: x86_64 with soft-float ABI
- Memory: ~512 MB heap via bootloader-provided memory map
- Concurrency: spin::Mutex and atomic primitives (no async/await)
- Build: cargo +nightly bootimage (nightly-only)
How to Read This Changelog
- Added: New features
- Changed: Changes in existing functionality
- Fixed: Bug fixes
- Removed: Removed features
- Deprecated: Soon-to-be removed features
- Security: Vulnerability fixes
Version Naming
Versions follow Semantic Versioning:
- MAJOR.MINOR.PATCH (e.g., 0.1.4)
- 0.x.y indicates early development (no stability guarantees between minor versions)
- Breaking changes documented in release notes
Reporting Issues
Issues and enhancement requests: contact the maintainer.