Files
LithosAnanake/docs/lithosananke
Robert Allan JamesandClaude Sonnet 5 cbe7b49a59 Documentation debt sweep: 5 of 6 items resolved, 1 confirmed accurate
- docs/lithosananke/ROADMAP.md + M7.1.md: fixed stale "Branch: lithosananke"
  (no such branch post-split), M7.1's "Design Complete" status (shipped
  and live, redirected to FABRIC*.md), the M8/success-criteria
  self-contradiction (OBSOLETE marking vs. unqualified live criterion),
  and the stale AHCI/SATA claim for M9 (real implementation is
  virtio_blk.c) -- also corrected BLOCK/BUFFER/UPDATE/FLUSH and block
  device abstraction to [x] since both are confirmed live in
  src/word_source/block_words.c and block_subsystem.c.
- Top-level ROADMAP.md: marked OBSOLETE (Captain Bob's call -- more than
  "stale," the architecture/branch topology/terminology it describes no
  longer exist), pointing to docs/lithosananke/ROADMAP.md and
  FABRIC*.md for current status.
- docs/03-architecture/word-acl/DESIGN.md: fixed the ACL Phase 7
  contradiction -- Phase 7 (LithosAnanke kernel parity) is independently
  verified complete per .claude/CLAUDE.md, not "remaining"; removed the
  stale lithosananke-branch-parity framing.
- VM-FLEET-ATTRACTOR-DESIGN-20260705.md's doe-campaign.4th "broken" claim:
  investigated, ran SMOKE-CAMPAIGN live (completes clean, fleet heat
  conserved) -- initially read as contradicting the claim, corrected
  directly by Captain Bob: a clean execution trace doesn't disprove the
  doc's actual argument (no real controlled-experimental-factor
  mechanism). Confirmed accurate, left untouched.
- Isabelle/HOL pipeline-metrics model/C-struct mismatch: confirmed a real
  proof-modeling gap (pm_last_accuracy_num/den has no analogue in the
  real PipelineGlobalMetrics struct), not stale prose -- tracked here
  rather than fixed, matching the .thy file's own scope boundary and
  this project's standing caution that each Isabelle gap needs its own
  subsystem model.

ACL-RWT DoE overhead re-measurement (the 6th item) intentionally not
started -- a full multi-architecture DoE campaign, not a doc-text fix,
holding for explicit confirmation given the scale.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CXjAPTEKrgY2Mrk25KoLDn
2026-08-26 06:30:36 -04:00
..

LithosAnanke — StarForth Kernel Branch

Branch: lithosananke Status: M7 Complete (VM Parity Validation) Parent: master (hosted StarForth)


What is LithosAnanke?

LithosAnanke is the kernel branch of StarForth — a UEFI-bootable microkernel with the StarForth VM as its native execution engine.

Etymology: Lithos (stone/foundation) + Ananke (necessity/inevitability)

The name reflects the project's nature: a necessary foundation for StarshipOS.


Architecture

┌─────────────────────────────────────────────────────────────┐
│  UEFI Firmware                                              │
│  • ExitBootServices → handoff to kernel                     │
└─────────────────────┬───────────────────────────────────────┘
                      │
                      ↓
┌─────────────────────────────────────────────────────────────┐
│  LithosAnanke Boot (M0)                                     │
│  • UEFI loader collects BootInfo                            │
│  • Memory map, ACPI tables, framebuffer                     │
└─────────────────────┬───────────────────────────────────────┘
                      │
                      ↓
┌─────────────────────────────────────────────────────────────┐
│  LithosAnanke HAL (M1-M6)                                   │
│  • PMM: Physical Memory Manager (bitmap)                    │
│  • VMM: Virtual Memory Manager (4-level paging)             │
│  • IDT: Interrupt Descriptor Table                          │
│  • APIC: Timer + IRQ routing                                │
│  • Heap: kmalloc/kfree                                      │
│  • Console: Serial UART                                     │
└─────────────────────┬───────────────────────────────────────┘
                      │
                      ↓
┌─────────────────────────────────────────────────────────────┐
│  StarForth VM (M7+)                                         │
│  • 295 FORTH-79 words                                       │
│  • Parity validation (hash=0x684bbf2fa1d96d55)              │
│  • Physics-driven adaptive runtime                          │
│  • Init capsule system (M7.1)                               │
└─────────────────────────────────────────────────────────────┘

Current Milestones

Milestone Description Status
M0 UEFI Boot + Serial Output Complete
M1 Physical Memory Manager Complete
M2 Virtual Memory Manager Complete
M3 IDT + Interrupts Complete
M4 APIC Timer Complete
M5 Timer Calibration Complete
M6 Kernel Heap Complete
M7 VM Parity Validation Complete
M7.1 Init Capsule Architecture Design Complete
M8 REPL + Interactive Forth Planned
M9 Block Storage Planned

Build & Run

# Build kernel with VM integration
make -f Makefile.starkernel ARCH=amd64 STARFORTH_ENABLE_VM=1

# Run in QEMU
make -f Makefile.starkernel ARCH=amd64 STARFORTH_ENABLE_VM=1 qemu

Output artifacts:

  • build/amd64/kernel/starkernel_loader.efi — UEFI loader
  • build/amd64/kernel/starkernel_kernel.elf — Kernel binary

Documentation

Core Design

Document Description
M7.1.md Init Capsule Architecture
ROADMAP.md Milestone roadmap
amd64-isr-fix/README.md APIC timer ISR fix + kernel 3-arch acceptance test
hosted-acceptance-test/README.md Hosted VM 3-arch acceptance test (amd64 native, aarch64/riscv64 under QEMU user-mode)

HAL (Hardware Abstraction Layer)

Document Description
hal/overview.md HAL architecture and principles
hal/interfaces.md HAL interface specifications
hal/lithosananke-integration.md Kernel-specific HAL implementation
hal/platform-implementations.md Platform implementation guide
hal/migration-plan.md Migration from hosted to kernel

Key Concepts

One Truth Per VM

Every VM has exactly one birth capsule — its identity and provenance.

PARITY:BIRTH vm_id=42 capsule_id=0xA13F mode=p capsule_hash=0x... dict_hash=0x...

DOMAIN vs PERSONALITY

DOMAIN is a construction concept that exists only in Mama FORTH. It's how Mama classifies, composes, and selects capsules. DOMAIN is never visible to baby VMs.

PERSONALITY is the result of executing a production (p) INIT capsule. It's what the baby VM is — its vocabulary, invariants, capabilities. PERSONALITY is immutable and defines the VM's entire worldview.

Production (p) vs Experiment (e)

  • (p) capsules are truth-bearing — they can birth VMs
  • (e) capsules are Mama-only workloads — experiments that never touch babies

A baby VM never sees, executes, or knows about (e) capsules.

Content-Addressed Capsules

Capsules are identified by content hash, not names. Names lie. Hashes don't.

Mama FORTH

The root VM that holds all truths, manages child VMs, and enforces the birth protocol. Mama:

  • Maintains the capsule directory
  • Selects (p) capsules for birth
  • Executes (e) capsules for experimentation
  • Logs all births and runs for provenance

Directory Structure

src/starkernel/
├── boot/               # UEFI loader, ELF loader
├── hal/                # Console, host services
├── memory/             # PMM, VMM, kmalloc
├── arch/amd64/         # x86_64 specific (APIC, IDT, timer)
├── vm/                 # VM integration
│   ├── arena.c         # VM memory arena
│   ├── parity.c        # Parity validation
│   ├── bootstrap/      # sk_vm_bootstrap
│   └── host/           # Host services shim
└── kernel_main.c       # Entry point

Contributing

The lithosananke branch is experimental. Changes should:

  1. Maintain parity validation (M7 baseline)
  2. Pass QEMU boot test
  3. Not break hosted StarForth (master branch)

References