An open-source operating system being built to run Windows applications — kernel, userland and installer, all from scratch.
Spotlight NT is the NT kernel. Spotlight X is the operating system built on it. Spotlight PE is the installer and recovery environment.
Spotlight NT ██████████████░░░░░░ 85% kernel: M0–M2 closed, M3 75%, M4 72%, M5 92%, M6 99%, M10 37%
Spotlight X █░░░░░░░░░░░░░░░░░░░ 15% GPT image boots hello; sptdm graphical supervisor proof (SPDR 2, pe-auto-ok)
Spotlight PE █░░░░░░░░░░░░░░░░░░░ 16% installer core, GPT boot, spotinit/sptdm supervisor, SVC1 probe groundwork
Spotlight ████████░░░░░░░░░░░░ 57% the project as a product (target: L3)
Spotlight is not a Linux distribution, not a Wine wrapper and not an emulator.
It is a clean-room operating system in three parts: a new NT kernel, a new
userland with a Win32 layer, and an installer environment — being built so
ordinary Windows .exe files can run on bare metal.
| Piece | Role | Repository |
|---|---|---|
| Spotlight NT | kernel, boot chain, drivers, ABI specifications | spotlight-nt |
| Spotlight X | userland, Win32 layer, GUI, distribution | spotlight-x |
| Spotlight PE | minimal installer / recovery environment | spotlight-pe |
The target ABI is frozen at Windows 10 x64 22H2 (build 19045). One reference, one truth, no guessing.
Four independent scales, so nobody confuses a working kernel with a working OS.
| Scale | What it measures | Progress | Works today | Next |
|---|---|---|---|---|
| Spotlight NT | kernel, loader, HAL, drivers, ABI | 85% (M0–M2 ✅, M3 75%, M4 72%, M5 92%, M6 99%, M10 37%) | boots on UEFI, COM1 klog, descriptors, interrupts, ACPI/APIC, PCI, PFN/paging/VAD, anonymous, file-backed and SEC_IMAGE NT sections with demand paging, 98 NT syscalls, ring-3 SYSCALL with stack arguments, preemptive scheduler, user thread creation (NtCreateThreadEx), thread exit/dequeue, non-consumptive post-exit wait and ThreadBasicInformation through a kind-12 handle, user APC delivery through a ring-3 trampoline, PE32+ loader with IAT/TEB/PEB/process CR3, internal executable-child PML4/initial-thread parent → child → parent bootstrap with rollback/cleanup (test-exec-process), public zero-thread SEC_IMAGE process DTBs (test-process-image), public process/initial-thread parent → child → parent execution with stack/KUSER/DTB cleanup (test-public-process-thread), NtCreateUserProcess with real child PEB/TEB/process parameters and NtResumeThread, including ring-3 non-System parent coverage (test-create-user-process), Spotlight PE payload INIT.CFG → PEP2 → PEP5 → PEP6 → PEP4 launch (test-pe-payload-launch), normal opted-in PE diagnostic auto-launch (test-pe-auto-boot), polling AHCI (READ/WRITE DMA) + FAT32 read/write behind a VFS volume with synchronous whole-image flush, rename and delete-on-close, file disposition modes, FAT32 subdirectory paths and DOS creation/write timestamps surfaced as FILETIMEs (FileBasicInformation, FileAllInformation, FileNetworkOpenInformation), event/mutant/semaphore/timer objects with named opens, single- and multi-object scheduler-blocking waits (test-blocking-wait), object namespace (\KnownDlls, \BaseNamedObjects, directory and symbolic-link objects), I/O completion ports, direct virtual-memory read/write, in-memory registry, token queries and timed delays, NTFS parser |
M4: working sets/COW; M5: priorities/idle/thread join (stack reclamation); M6: APC FPU/exception context and broader dispatch; M8: hives; M10: ext4, partial/async flush, write-back cache, nested-path creation |
| Spotlight X | userland, Win32 layer, GUI, distro | 15% (sptdm graphical supervisor + ntdll syscall surface) | freestanding PE32+ hello.exe, 98-stub ntdll.dll, GPT/FAT32 boot, and QEMU-proven spotinit+sptdm graphical supervisor (GOP fb, SPDM/SPDR/SPDO, config-driven restart, pe-auto-ok) |
ntdll loader/heap/RTL, compositor IPC, Win32 |
| Spotlight PE | installer / recovery environment | 16% (installer core + graphical boot supervisor + SVC1 probe groundwork) | host-tested installer/recovery stack, GPT/ISO media, freestanding INIT.EXE payload, QEMU-proven spotinit+sptdm supervisor with config-driven restart/policy, and SVC1.EXE probe payload (real svc1 launch blocked by active VFS FAT32 write issue) | real svc1 process launch, bootable PE session, real disk adapter, interactive installer |
| Spotlight | the project as a product | 57% | reproducible kernel bring-up, graphical sptdm supervisor proof, installer groundwork | L2: ntdll + kernel32 + CRT and our own programs |
The kernel is ahead of the OS. That is expected: userland and the installer need a broad, stable syscall surface, not a handful of handlers.
No screenshots, no promises. These lines are produced by the kernel in QEMU:
Spotlight loader 26.1.4280.0.1-dev
loader: read 7680 bytes
loader: image at 0x7bd37000 relocs 32
loader: stack 0x7bd37000 block 0x7e4b6000 map 5280
I [boot] KiSystemStartup entered
I [boot] loader block accepted
I [boot] image_base=0x7bd37000
I [ke] GDT, TSS and IDT loaded; exceptions report to debugcon
I [ke] KPCR installed at GS base
I [ke] syscall-armed
I [ke] irql=0x0
I [ke] irql_raised=0x2
I [acpi] lapic_base=0xfee00000
I [acpi] ioapic_base=0xfec00000
I [hal] lapic_id=0x0
I [hal] ioapic_version=0x170020
I [hal] PIC and PIT ready; enabling interrupts
I [hal] pit_ticks=0x3
I [hal] PIC and PIT masked; LAPIC timer is the time source
I [hal] lapic_timer-ok
I [hal] lapic_timer_ticks=0xa
I [hal] lapic_bus_hz=0x3b735060
I [hal] ioapic_gsi0=0x2
I [hal] ioapic_irq-ok
I [hal] ioapic_irq_ticks=0x5
I [pci] devices=0x6
I [pci] first=0x29c08086
I [mm] free_pages=0x7ac8f
I [mm] paging-on
I [mm] cr3=0x100000
I [mm] alloc-free-ok
I [mm] pool-ok
I [mm] vad-ok
I [mm] mappings=0x1
I [mm] demand-ok
I [serial] loopback self-test passed
And the machine itself proves the rest:
| Test | Command | Result |
|---|---|---|
| Boot regression | v run mk/build.vsh -- test-boot |
38/38 serial expectations |
| Page fault | v run mk/build.vsh -- test-pf |
PF cr2=0x100000000, bugcheck 0x50000020 |
| Demand paging | v run mk/build.vsh -- test-demand |
three faults above 4 GiB, demand-ok |
| Syscall entry | v run mk/build.vsh -- test-syscall |
syscall=0x0, syscall=0x1000, syscall-ok |
| Ring-3 round-trip | v run mk/build.vsh -- test-ring3 |
ring3-buf, syscall-arg1=0x1dc7ab192810000, syscall-user-ok |
| Misc services | v run mk/build.vsh -- test-misc |
timer-resolution=, open-process=, open-thread=, misc-ok |
| First handler | NtQuerySystemTime (0x5a) |
reads KUSER_SHARED_DATA, writes the user buffer |
| PS skeleton | boot log | ps-ready, dtb=0x100000, syscall-stack=0x... |
| Threads + CR3 | v run mk/build.vsh -- test-threads |
cr3-b, cr3-a, sched-tid=0x1, thread-b-running, thread-a-resumed |
| Preemption | v run mk/build.vsh -- test-preempt |
two volatile counters advance, preempt-ok |
| PE32+ parser | v -path "kernel;@vlib" test tests/unit/image |
host suite: headers, sections, RVA, DIR64 |
| PE user entry | v run mk/build.vsh -- test-pe-user |
image-base=0x140000000, entry=0x140001000, pe-exec-ok |
| PE imports/TEB | v run mk/build.vsh -- test-exe |
imports=0x1, iat=0x180000000, teb=0x170000000, IAT call, exe-ok |
| File-backed .exe | v run mk/build.vsh -- test-exe-file |
file-fat32=0x800, IAT call, exe-file-ok |
| Rename / delete-on-close | v run mk/build.vsh -- test-file |
rename and delete-on-close through FAT32/VFS |
| Named events | v run mk/build.vsh -- test-event |
named create, open and duplicate |
| Waits | v run mk/build.vsh -- test-sync |
finite timed single- and multi-object waits (WaitAll/WaitAny) |
| User APCs | v run mk/build.vsh -- test-apc |
queue → NtTestAlert trampoline → routine/resume (apc-routine-ok, apc-resume-ok) |
| Object namespace | v run mk/build.vsh -- test-namespace |
directory and symbolic-link objects, named sections, seeded roots |
| I/O completion | v run mk/build.vsh -- test-iocp |
queue, set, remove and query completion packets |
| Thread/process exit | v run mk/build.vsh -- test-exit |
termination paths |
| Registry | v run mk/build.vsh -- test-registry |
in-memory keys/values under HKLM\Software\Microsoft\Windows NT\CurrentVersion |
| NTFS parser | v -path "kernel;@vlib" test tests/unit/fs |
VBR, FILE, USA, attributes, FILE_NAME |
| LAPIC timer | v run mk/build.vsh -- test-lapic |
lapic_timer-ok, PIC/PIT masked |
| Timer interrupts | v run mk/build.vsh -- test-timer |
10 PIT ticks, pit_timer-ok |
| Exception routing | v run mk/build.vsh -- test-exception |
EXC 3 on debugcon |
| Bugcheck path | v run mk/build.vsh -- test-bugcheck |
BUGCHECK 0x50000001 |
| Host unit tests | v run mk/build.vsh -- test |
PE, memory, SSDT/symgen, scheduler, RTC, image and FAT32/NTFS suites green |
- sptdm / graphical boot: GPT server+spotinit boots under QEMU/OVMF with GOP framebuffer published in KUSER_SHARED_DATA (
0x7FFE07C0..0x7FFE07E8),sptdmdraws desktop/mouse markers (SPDM/SPDS/SPDD/SPDR/SPDO/SPDW), and spotinit supervises it with clean restart/exit markers (SPTC,SPTS,SPSV,SPTL,SPTP,SPTR,SPRS,SPRE,pe-auto-ok). - Config-driven supervision:
SPOTPE.CFGrestart=Nand multi-service policy keys (svc.count,svc1.enabled,svc1.restart) are parsed by kernelpe_auto, published to KUSER0x7FFE07F0..0x7FFE07FC, and consumed by spotinit/kernel supervision. QEMU proofs: restart=1 SPDR 2; restart=2 SPDR 3; multi-service policy marker execution (svc1-start/exit/restart/end) in kernel-safe path. - svc1 real-process probe (WIP, reverted): freestanding
SVC1.EXEprobe payload added to PE image. Real kernel launch/wait/restart attempt blocked by active VFS FAT32fat32_set_size_atfailure on publish (svc1-pub-write=0, file size 0,NtCreateUserProcess0xc000000d). Path reverted to marker-only for boot safety.
- Boot chain:
SPOTBOOT.EFIchain-loadsSPOTLDR.EFI, which loadsntoskrnl.exe; the kernel reaches HAL initialization under QEMU/OVMF. The smoke run reportsSPOTBOOT true,SPOTLDR trueand the kernel markertrue. - 98 NT syscalls / 98 SSNs registered (up from 74; the earlier count missed the
token/thread SSNs 0x24, 0x2f, 0x41 and the new 0xc2): file I/O
(
NtCreateFile,NtReadFile,NtWriteFile,NtQueryInformationFile,NtSetInformationFile,NtQueryAttributesFile,NtQueryFullAttributesFile,NtFlushBuffersFile,NtQueryVolumeInformationFile,NtQueryDirectoryFile), memory (NtAllocateVirtualMemory,NtFreeVirtualMemory,NtProtectVirtualMemory,NtReadVirtualMemory0x3f,NtWriteVirtualMemory0x3a,NtLockVirtualMemory0x10e,NtUnlockVirtualMemory0x1cd,NtFlushVirtualMemory0xec,NtCreateSection,NtQuerySection,NtMapViewOfSection,NtUnmapViewOfSection,NtOpenSection0x37), events (NtCreateEvent,NtOpenEvent0x40,NtSetEvent,NtResetEvent0x17a,NtQueryEvent), object information (NtClose,NtQueryObject,NtOpenProcessandNtOpenThread0x12f returning the current-process/thread pseudo-handles,NtDuplicateObject0x3c with reference-counted aliases), thread information (NtQueryInformationThread,NtSetInformationThread), named objects and opens (NtOpenEvent0x40,NtOpenMutant0x125,NtOpenSemaphore0x12c,NtOpenTimer0x130), process/thread control (NtTerminateProcess0x2c,NtTerminateThread0x53 — a created thread's kind-12 handle records the exit code and leaves the ready queue, the current-thread pseudo-handle logs and parks —NtTestAlert0x1c2,NtAlertThread0x6f,NtAlertThreadByThreadId0x70;NtQueueApcThread0x45 queues a user APC that is delivered atNtTestAlertor an alertable wait through a mapped ring-3 trampoline — the routine receives 3 arguments and execution resumes at the interrupted RIP,test-apc;NtCreateThreadEx0xc2 allocates a user stack and a dynamic ETHREAD slot, inserts the thread into the ready queue and starts it in ring 3 —test-thread-create; after exit the same handle is waitable (non-consumptive) and queryable throughNtQueryInformationThreadclass 0ThreadBasicInformation—test-thread-exit), timing and waits (NtDelayExecution,NtQueryPerformanceCounter,NtQuerySystemTime,NtWaitForSingleObjectblocking on its own syscall stack and resuming on signal or the TSC deadline,NtWaitForMultipleObjects0x5b,NtWaitForMultipleObjects320x1a — WaitAll/WaitAny over events, mutants, semaphores and timers —NtQueryTimerResolution,NtSetTimerResolution), process/system queries (NtQueryInformationProcess,NtSetInformationProcess0x1c for priority class and execute flags,NtQuerySystemInformation,NtQueryVirtualMemory,NtYieldExecution), mutants (NtCreateMutant0xb4,NtReleaseMutant0x20,NtQueryMutant0x156 withMutantBasicInformation), semaphores (NtReleaseSemaphore0x0a,NtCreateSemaphore0xc0,NtQuerySemaphore0x15e withSemaphoreBasicInformation), timers (NtCreateTimer0xc3,NtSetTimer0x62,NtCancelTimer0x61,NtQueryTimer0x38 withTimerBasicInformation), object namespace (NtCreateDirectoryObject0xa7,NtOpenDirectoryObject0x58,NtQueryDirectoryObject0x144,NtCreateSymbolicLinkObject0xc1,NtOpenSymbolicLinkObject0x12e,NtQuerySymbolicLinkObject0x15f; named sections with one-level link resolution; seeded\KnownDlls,\BaseNamedObjects,\Deviceand\??), I/O completion (NtCreateIoCompletion0xad,NtSetIoCompletion0x1a3,NtRemoveIoCompletion0x09,NtQueryIoCompletion0x153), in-memory registry (NtOpenKey0x12,NtCreateKey0x1d,NtQueryKey0x16,NtQueryValueKey0x17,NtEnumerateKey0x32,NtEnumerateValueKey0x13,NtSetValueKey0x60,NtDeleteKey0xd4,NtDeleteValueKey0xd7,NtFlushKey0xea; seeded fromHKLM\Software\Microsoft\Windows NT\CurrentVersion, no hives yet), tokens (NtOpenProcessToken0x129,NtOpenProcessTokenEx0x30,NtQueryInformationToken0x21; classes 8/10/18/20:TokenType→TokenPrimary,TokenStatistics,TokenElevationType→TokenElevationTypeDefault,TokenElevation→ not elevated) and instruction-cache maintenance (NtFlushInstructionCache, a validated no-op on x86). Path-based attribute queries (NtQueryAttributesFile0x3d,NtQueryFullAttributesFile0x147) returnFILE_BASIC_INFORMATIONandFILE_NETWORK_OPEN_INFORMATION;NtSetInformationFileclass 4 updates file attributes,FileRenameInformationrenames andFileDispositionInformationdeletes on close (proven bytest-file).NtCreateFilehonoursFILE_SUPERSEDE/OPEN/CREATE/OPEN_IF/OVERWRITE/OVERWRITE_IFwith FAT32 cluster allocation and growth. File handles carry DOS creation/write timestamps (set on create, overwrite and write) and return them as FILETIMEs throughFileBasicInformation,FileAllInformationandFileNetworkOpenInformation;test-fileasserts a non-zero write time and a non-zero directory-creation time. Info classes cover file 4–9/14/16/17/21/22/34/35/39, process 0/2/3/4/5/7/12/18/20–22/24–34/36/43, system 0/1/3/5/7/8/9/23/35/103 and token 8/10/18/20. Signaled, zero-timeout and finite timed waits work, including multi-object waits (test-sync);NtWaitForSingleObjectacquires an unowned mutant or one owned by the current thread, decrements a positive semaphore count and fires when a timer expires; releasing past a semaphore's maximum returnsSTATUS_SEMAPHORE_LIMIT_EXCEEDED. An unsignaled non-zero-timeout wait dequeues the thread and resumes on the same syscall stack after a signal or the TSC deadline;test-blocking-waitobserves zero poll iterations. User APC delivery restoresRAX(NTSTATUS),RBP,RDX,R8,R9andR10; XMM/FPU and exception context are still missing. - Storage: polling AHCI (
READ DMA/WRITE DMA, SPOTFAT port selection), FAT32 read and in-place write with cluster allocation on growth, FAT32 path resolution through subdirectories for open/read/query (creation and writes remain root-only), DOS creation/write timestamps in directory entries, and a published VFS volume over a 64 KiB disk image.NtWriteFilewrites through to the cached volume;NtFlushBuffersFilesynchronously writes the whole 64 KiB image to the SATA disk. - Memory: anonymous, file-backed and
SEC_IMAGENT sections with demand paging, a user VA allocator above 8 GiB, and direct user-memory access throughNtReadVirtualMemory/NtWriteVirtualMemory. - Ring 3: the PE loader (IAT/TEB/PEB) runs at CPL3, and a multi-argument
SYSCALLentry — including arguments passed on the stack — is proven bytest-svc3. The internal executable-child bootstrap creates a distinct child PML4 and initial thread, switches parent → child → parent with CR3/PID/PEB/TSS/GS publication, executes the hello syscalls, and releases the child pages, page tables and dynamic slots (test-exec-process). PublicNtCreateProcesskeeps null-section object-only lifecycle and creates zero-threadSEC_IMAGEchild DTBs (test-process-image). PublicNtCreateThreadExhandles now complete parent → child → parent with child-only stack/KUSER mappings and cleanup (test-public-process-thread); the Spotlight PE payload runs throughPEP2→PEP5→PEP6→PEP4(test-pe-payload-launch). - Scheduling: preemptive round-robin with the LAPIC timer.
- ABI: syscall numbers re-checked against the 19045 reference, correcting
NtOpenThreadto 0x12f andNtResetEventto 0x17a; host assertions cover RTL types andOBJECT_HEADER, andkpcr_initrefuses to boot if the documented GS offsets drift from the V layout.
39 QEMU test targets plus the host FAT32 and unit suites are green, including
test-boot, test-disk, test-file, test-section, test-event,
test-namespace, test-iocp, test-sync, test-blocking-wait, test-x-hello, test-x-image, test-process, test-process-image, test-public-process-thread, test-pe-payload-launch, test-exec-process, test-apc,
test-thread-create, test-thread-exit, test-exit, test-registry, test-svc,
test-svc3, test-misc and test-preempt. There is still no real Windows .exe (L3),
no ntdll/Win32/GUI, no installer session running on the kernel, no per-thread TEB, no SMP,
and no COW or pagefile. Nested-path file creation and writes are not implemented.
What this means: our own UEFI boot manager chain-loads our loader, which reads a PE32+ kernel, allocates pages, applies
relocations, exits boot services, builds its own page tables, switches CR3, installs
a kernel stack and enters KiSystemStartup. The kernel brings up COM1, GDT, TSS,
IDT, exception handling, the per-CPU GS base, hardware interrupts, the first
M3 pieces — ACPI/MADT, LAPIC/IOAPIC and IRQL — and finally hands timekeeping to
the LAPIC timer while retiring the 8259 and PIT.
M0 ████████████████████ 100% Bare-metal V: UEFI app boots in QEMU/OVMF
M1 ████████████████████ 100% Loader: PE32+, ExitBootServices, own CR3, handoff
M2 ████████████████████ 100% Kernel bring-up: serial, GDT/IDT, KPCR, IRQ, bugcheck
M3 ███████████████░░░░░ 75% HAL: ACPI/MADT, LAPIC/IOAPIC, IRQL, timers, PCI
M4 ██████████████░░░░░░ 70% Memory manager: PFN, paging, VAD, NT sections, demand
M5 █████████████████░░░ 85% Processes/threads: child round-trip, blocking waits, TSS RSP0, CR3, APC
M6 ███████████████████░ 99% Syscalls: 98 NT handlers, NtCreateUserProcess/NtResumeThread, namespace, IOCP, waits, APCs
M7 ░░░░░░░░░░░░░░░░░░░░ 0% I/O manager, PnP, power ← gate G2
M8 ░░░░░░░░░░░░░░░░░░░░ 0% Registry, hives, transactions
M9 ░░░░░░░░░░░░░░░░░░░░ 0% Security: tokens, ACL, integrity
M10 ███████░░░░░░░░░░░░░ 37% Storage: AHCI, FAT32 read/write, subdirectory paths, DOS timestamps, whole-image flush, NTFS parser
M11 ░░░░░░░░░░░░░░░░░░░░ 5% ntdll: 98 generated syscall stubs, host-validated only
M12 ░░░░░░░░░░░░░░░░░░░░ 0% Win32 layer, application corpus → L3
M13 ░░░░░░░░░░░░░░░░░░░░ 0% Track A research: real MS drivers/userland
M14 ░░░░░░░░░░░░░░░░░░░░ 15% X GPT image boots hello; spotinit+sptdm graphical supervisor proof; no full service runtime
| Stage | Scope | State | Evidence |
|---|---|---|---|
| M0 | UEFI app on V, zero libc | ✅ closed | banner + memory map in QEMU/OVMF |
| M1 | loader, PE32+, ExitBootServices, CR3 | ✅ closed | EXIT / PGON / JUMP on debugcon |
| M2 | COM1, GDT/TSS/IDT, KPCR, PIC/PIT, bugcheck | ✅ closed | serial log, EXC 3, BUGCHECK 0x50000001, pit_ticks=0x3 |
| M3 | ACPI/MADT, LAPIC/IOAPIC, IRQL, timers, PCI | 🟡 75% | lapic_bus_hz≈998MHz, ioapic_irq-ok, pci devices=6 |
| M4 | Mm: PFN page database, kernel pool, page tables, VAD, sections | 🟡 72% | paging-on, vad-ok, demand-ok, anonymous, file-backed and SEC_IMAGE NT sections (test-section, test-section-file, test-section-image), child PML4 construction, explicit-root 4 KiB mapping and page-table-tree teardown |
| M5 | Ob/Ps: objects, processes, threads, scheduler | 🟡 92% | preempt-ok, sched-tid=0x1, cr3-b/cr3-a, thread-a-resumed, test-thread-create ring-3 start, test-thread-exit, test-blocking-wait (block, signal/timeout resume, zero polls), test-exit, test-apc, test-process-image zero-thread SEC_IMAGE child DTB/refcount/rollback/cleanup, test-public-process-thread identity-based initial-thread round-trip, and test-create-user-process native bootstrap from System and ring-3 non-System parents |
| M6 | Syscall entry + dispatch, ring 3, PE loader | 🟡 99% | 98 NT handlers; public null-section and SEC_IMAGE process lifecycle; NtCreateUserProcess with real PEB/TEB/process parameters and NtResumeThread; test-svc3; APC GPR restore; events, namespace, IOCP, blocking waits, registry, timestamps, ABI checks; test-x-image automatically launches \X\hello.exe; test-pe-auto-boot launches the opted-in PE diagnostic payload |
| M10 | Storage: VFS, FAT32/ext4/NTFS/btrfs, Cc | 🟡 37% | test-disk/test-file/test-flush: AHCI + FAT32 read/write with cluster growth, subdirectory path resolution, rename and delete-on-close, DOS creation/write timestamps exposed as FILETIMEs, VFS volume, 64 KiB image, whole-image flush re-read; NTFS parser |
| M7–M9, M12 | Io, Cm, Se, Win32 | ⬜ | — |
| M11 | ntdll syscall surface | 🟡 5% | 98 generated stubs + exports; table/CSV/kernel-constant/stub-byte host suites green; no loader/process caller |
| M13 | Track A: Microsoft drivers and userland | 🔬 research | gated by G2 |
| M14 | X bootstrap image | 🟡 15% | GPT/FAT32 image boots hello; spotinit+sptdm graphical supervisor proof; real svc1 process launch WIP |
The public project is not the kernel alone. X now boots its full GPT image and automatically runs
hello.exe in a separate process context; the kernel completes internal and public
parent → child → parent process/thread round-trips, creates zero-thread SEC_IMAGE process
DTBs with eager image mapping and cleanup, and provides NtCreateUserProcess with real child
PEB/TEB/process parameters plus NtResumeThread from System and ring-3 non-System parents.
PE has a host-tested installer/recovery stack and bootable installation media with a freestanding
\SPOTPE\INIT.EXE diagnostic payload. NT test-pe-payload-launch loads it with INIT.CFG,
observes PEP2 → PEP5 → PEP6 → PEP4 and returns to the parent. Normal boot now honors an explicitly opted-in
\SPOTPE.CFG; the real 64 MiB GPT server image reaches pe-auto-ok. A full PE console/installer
session and ISO auto-launch remain absent.
| Spotlight X | Spotlight PE | |
|---|---|---|
| Today | freestanding PE32+ hello.exe seed, 98 host-validated ntdll stubs, GPT/FAT32 bootstrap image, and automatic launch from the full X GPT image into a separate process context (syscall=0x5a, XELL, x-image-ok) |
installer/recovery design, host console/init, state machine, journal, dry-run/file-backed apply, no-gpt rollback, GPT/FAT32 image, unsigned ISO 9660/El Torito media, unattended answer plans, and a freestanding INIT.EXE payload launched through exact INIT.CFG I/O and PEP2 → PEP5 → PEP6 → PEP4; the opted-in 64 MiB GPT server image reaches pe-auto-ok, while ISO auto-launch and a full PE session remain absent |
| Blocked on | ntdll loader/heap/RTL and Win32 | bootable PE userland on the kernel, then real disk adapter and interactive flow |
| Next | ntdll loader/heap/RTL | boot spotpe-init, explorer/UI, physical disk adapter |
| Progress | 15% | 16% |
Spotlight X keeps Windows binary compatibility but not Windows' internal choices:
X:\is the native root. Win32 processes seeC:\as a per-process bind alias ofX:\, so.exeinstallers keep working without a separate volume.- Multi-filesystem VFS. ext4 is the default root, FAT32 is the ESP, NTFS is a read-only (later rw) compatibility backend, btrfs comes after VFS stabilisation. NTFS is one backend, not the centre of the OS.
- Terminal fallback.
spotinitstarts the desktop session; if it is absent or crashes,spottermstarts on the console (framebuffer or COM1). Recovery never leaves a black screen. - Graphics without WDDM. Own kernel GPU drivers + a DRM-like UAPI for upstream Mesa (RADV/ANV/NVK, MIT) and DXVK/D8VK (zlib) / VKD3D-Proton (LGPL-2.1+, isolated). Windows WDDM drivers are not the path: they are closed, version-locked and a larger subsystem than the current kernel.
- Details: ADR-0010 (namespace/filesystems), ADR-0011 (graphics), ADR-0012
(session fallback) in
spotlight-nt/docs/adr/.
That is why the overall project sits at 57% while the kernel is at 85%: the OS needs the kernel to finish first, not the other way around.
"Compatible" is not a feeling. It is a ladder with measurable rungs.
| Level | Meaning | State |
|---|---|---|
| L0 | our loader + our kernel boot on UEFI | ✅ done |
| L1 | ring-3 process, syscall round-trip | ✅ X hello.exe from FAT32 (test-x-hello) |
| L2 | our ntdll + kernel32 + CRT, our own programs | ⬜ |
| L3 | 20 third-party .exe files pass checklists — the 1.0 target |
⬜ |
| L4 | real Microsoft drivers (acpi.sys, storport.sys, ntfs.sys) |
⬜ |
| L5 | real Windows 10 userland on our kernel | 🔬 research |
L3 is the product. L4 and L5 are proof of depth, not a release condition.
flowchart TD
FW[UEFI firmware] --> BM[SPOTBOOT.EFI<br/>boot manager]
BM --> LD[SPOTLDR.EFI<br/>PE loader + paging]
LD -->|ExitBootServices<br/>own CR3, stack, block| K[ntoskrnl.exe<br/>Spotlight NT]
subgraph K[Spotlight NT kernel]
KE[Ke: scheduler, IRQL, DPC]
HAL[HAL: CPU, ACPI, PCI]
MM[Mm: pages, sections]
OB[Ob / Ps: objects, processes]
IO[Io / PnP / Po]
CM[Cm: registry]
SE[Se: security]
SC[Syscall / SSDT]
end
K -->|syscalls| U[Spotlight X userland<br/>ntdll · Win32 · GUI]
U --> EXE[Ordinary Windows .exe]
Detailed design lives in spotlight-nt/docs.
You will get a serial log and the kernel's self-tests — not a desktop. That is the honest state.
git clone --recursive https://github.com/fluidmstr/spotlight-x.git
cd spotlight-x/kernel
v run mk/build.vsh -- test # host unit tests
v run mk/build.vsh -- run-efi # build everything and boot in QEMUExpected tail of build/serial.log:
I [boot] KiSystemStartup entered
I [ke] GDT, TSS and IDT loaded; exceptions report to debugcon
I [ke] KPCR installed at GS base
I [ke] syscall-armed
I [ke] irql=0x0
I [ke] irql_raised=0x2
I [acpi] lapic_base=0xfee00000
I [acpi] ioapic_base=0xfec00000
I [hal] lapic_id=0x0
I [hal] ioapic_version=0x170020
I [hal] PIC and PIT ready; enabling interrupts
I [hal] pit_ticks=0x3
I [hal] PIC and PIT masked; LAPIC timer is the time source
I [hal] lapic_timer-ok
I [hal] lapic_timer_ticks=0xa
I [hal] lapic_bus_hz=0x3b735060
I [hal] ioapic_gsi0=0x2
I [hal] ioapic_irq-ok
I [hal] ioapic_irq_ticks=0x5
I [pci] devices=0x6
I [pci] first=0x29c08086
I [mm] free_pages=0x7ac8f
I [mm] paging-on
I [mm] cr3=0x100000
I [mm] alloc-free-ok
I [mm] pool-ok
I [mm] vad-ok
I [mm] mappings=0x1
I [mm] demand-ok
I [serial] loopback self-test passed
Requirements: Windows x64, V 0.5.2, LLVM/clang + lld, QEMU with OVMF.
Step-by-step: docs/Installation.md.
| Guide | What is inside |
|---|---|
| Installation | toolchain, clone, first boot |
| Building | targets, flags, artifacts, freestanding profile |
| Running in QEMU | firmware, serial, debugcon, environment |
| Boot Testing | expectation harness and regression matrix |
| Architecture | boot chain, components, ABI contracts |
| Roadmap | M0–M14, L0–L5, gate G2 |
| Compatibility | what runs today, path to .exe |
| Troubleshooting | known failures and fixes |
| Contributing | rules, scopes, good first tasks |
| Legal | licensing, clean room, symbols |
| Reference Windows | how a licensed Windows is used as an ABI oracle |
| FAQ | short answers to hard questions |
| Changelog | what shipped, with evidence |
A kernel is not a feature. It is a contract with every program you will ever run.
No magic. If we cannot explain why it works, it does not work.
No lying stubs. Unimplemented means
STATUS_NOT_IMPLEMENTED, not "success".
Boot, observe, prove. Every milestone ships with a log line or a test that fails without it.
One ABI. Windows 10 x64 19045. Everything else is a branch.
Spotlight is GPL-2.0-or-later. It contains no Microsoft code or binaries.
It is not affiliated with Microsoft. Names are used descriptively only.
See docs/Legal.md and spotlight-nt/docs/06-risks-legal.md.
Build the kernel. Earn the applications.