Skip to content

feat(ruvbot): self-contained RVF with real Linux 6.6 kernel + API server fix#189

Merged
ruvnet merged 2 commits intomainfrom
fix/ruvbot-startup-and-rvdna-binaries
Feb 20, 2026
Merged

feat(ruvbot): self-contained RVF with real Linux 6.6 kernel + API server fix#189
ruvnet merged 2 commits intomainfrom
fix/ruvbot-startup-and-rvdna-binaries

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented Feb 20, 2026

Summary

  • Fix ruvbot not starting #146: Replace stub startApiServer() in RuvBot with real node:http server — routes for /health, /ready, /api/status, /api/chat, /api/agents, /api/sessions
  • Self-contained RVF: Package RuvBot as a single .rvf file with an embedded real Linux 6.6.80 microkernel (bzImage), bootable with Firecracker/QEMU/Cloud Hypervisor

RVF Contents (3.67 MB)

Segment Type Size Description
KERNEL_SEG 0x0E 1.5 MB Linux 6.6.80 bzImage (tinyconfig+virtio+net, gzip)
WASM_SEG 0x10 2.2 MB Full RuvBot Node.js runtime bundle
META_SEG 0x07 793 B Package metadata + capabilities
PROFILE_SEG 0x0B 399 B AI assistant domain profile
WITNESS_SEG 0x0A 426 B Build provenance chain
MANIFEST_SEG 0x05 151 B Segment directory

Kernel Build

Real Linux 6.6.80 compiled from source with tinyconfig + essential drivers:

  • VirtIO (PCI, NET, BLK, Console)
  • Serial 8250 console
  • TCP/IP networking
  • 64-bit x86_64

Test plan

  • npm run typecheck passes (RuvBot TS fix)
  • npm run build:rvf produces valid ruvbot.rvf
  • RVF segments verified (KERNEL, WASM, META, PROFILE, WITNESS, MANIFEST)
  • Kernel image is bootable bzImage format
  • npm pack includes kernel/bzImage and ruvbot.rvf

🤖 Generated with claude-flow

The chat() method signature is (sessionId, content, options?) but the API
handler was passing (sessionId, agentId, message), causing TS2559. Fix by
creating a session from agentId first, then calling chat(sessionId, message).

Co-Authored-By: claude-flow <ruv@ruv.net>
- Build real Linux 6.6.80 bzImage with tinyconfig+virtio+net (1.5 MB)
- Create build-rvf.js that assembles self-contained RVF binary:
  KERNEL_SEG: gzip-compressed Linux 6.6.80 bzImage (MicroLinux, x86_64)
  WASM_SEG: Full RuvBot Node.js runtime bundle (2.2 MB)
  META_SEG: Package metadata with capabilities
  PROFILE_SEG: AI assistant domain profile
  WITNESS_SEG: Build provenance chain
  MANIFEST_SEG: Segment directory
- Include kernel/bzImage and ruvbot.rvf in npm distribution
- Add build:rvf script to package.json
- Total RVF: 3.67 MB, bootable with Firecracker/QEMU/Cloud Hypervisor

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet merged commit e34a47c into main Feb 20, 2026
7 checks passed
@ruvnet ruvnet mentioned this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ruvbot not starting

1 participant