Imported from tuanngocfun/agentic-os-harness (
harness-engineering/.agent/skills/compile-and-run/SKILL.md). Install upstream withnpx skills add tuanngocfun/agentic-os-harness --skill compile-and-run. Copyright stays with the author.
compile-and-run
Use this skill when the task is to build, run, or validate the x86 teaching OS boot path.
Inputs
Makefileboot/boot.asmkernel/entry.asmkernel/*.cinclude/*.hlinker.ld.agent/skills/compile-and-run/scripts/boot_test.sh
Contract
make allmust createbuild/boot.bin,build/stage2.bin,build/boot_config.inc,build/kernel.elf,build/kernel.bin, andbuild/os.img.build/boot.binmust be exactly 512 bytes.build/stage2.binmust fit 32 reserved sectors and the kernel must begin at LBA 33.- Automated QEMU test must use a dedicated serial file:
-serial file:build/serial.log -monitor none -nic none. - Required markers are exact lines:
STAGE2_OK,BOOT_OK,KERNEL_INIT_OK,SHELL_READY. - Failure markers are exact lines:
BOOT_DISK_ERROR,KERNEL_PANIC.
Steps
- Run
make all. - Run
.agent/skills/compile-and-run/scripts/boot_test.sh. - Report command exit statuses, artifact sizes, marker verdict, QEMU status, and evidence file path.
- Do not claim success from partial output, stale logs, or substring marker matches.
Evidence
The boot test script appends machine evidence to build/evidence.jsonl.