Repository navigation
native v1 P06: hardware service image with boot-disk model inference (aienos#34, gate N3) - #331
Merged
Merged
Conversation
aien-dev
force-pushed
the
native-v1/service-disk-model
branch
3 times, most recently
from
October 12, 2026 19:14
1e6887d to
1a13324
Compare
aien-dev
marked this pull request as ready for review
October 12, 2026 19:14
…e (aienos#34, gate N3) The resident service image may now be built with CK_HARDWARE_STAGING and CK_INFER_LIB: it compiles core/infer.c with CK_INFER_DISK_ONLY, so the QEMU fw_cfg model reader is not in the image and the only model source is MODEL.MAP read by the UEFI stub from the boot disk. Every other inference + staging combination stays refused (one-shot probe, test keys, fw_cfg test source, CK_TEST_*, CK_RUST_LIBS, unsafe DMA, console session, no owner files). - scripts/stage_one_time_boot_ck_service.sh: --dry-run|--apply staging for the service image (two clean builds, pinned model, MODEL.MAP, every write printed with its sha256), host mode or --target-image for a disk image. - scripts/qemu_ck_service_disk_test.sh: SERVICE_DISK gate (rows 200-210): make refusals, dry run byte-identical, two cold boots on one emulated disk with generated owner files and recovery secrets, two negative controls. --build-only runs in CI. - tools/ck_gpt_image.c: esp-model-aienos layout (ESP, model, blank AIENOS). - README Owner provisioning: the supported build line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Drake Stapleton <drake@aienos.com>
…gate N3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Drake Stapleton <drake@aienos.com>
…put change (#330) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Drake Stapleton <drake@aienos.com>
…#34) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Drake Stapleton <drake@aienos.com>
aien-dev
force-pushed
the
native-v1/service-disk-model
branch
from
October 12, 2026 19:51
1a13324 to
2fb1255
Compare
…ex digit f flips to 0) The image-sha512, makefile-digest and image-ld-digest tampers replaced the first hex digit with f; when the digest already started with f the record was unchanged and the refusal check failed (CI on this branch: image-sha512 accepted). Each now flips f to 0 and anything else to f. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Drake Stapleton <drake@aienos.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Drake Stapleton <drake@aienos.com>
aien-dev
force-pushed
the
native-v1/service-disk-model
branch
from
October 12, 2026 20:24
2fb1255 to
f512b73
Compare
This was referenced Oct 12, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #34 (gate N3; aien-dev/aien-architecture#190). Base: main 3c07242. Full QEMU gate run at 0022b01 (this branch on 3c07242, after #330 changed the lifecycle input path); an earlier run on ff5da2d also passed (99 checks, before the row-205 input check was added).
What changes
CK_INFER_LIB+CK_HARDWARE_STAGINGis now allowed for exactly one image, the resident service image (CK_SERVICE=1), compiled with-DCK_INFER_DISK_ONLY=1. Supported line:make -C native/kernel full CK_SERVICE=1 CK_HARDWARE_STAGING=1 CK_OWNER_PUBKEYS=<file> CK_MACHINE_ID=<file> CK_INFER_LIB=<libaienos_infer_kernel.a> CK_FB_HOLD_S=120Still refused with hardware staging: the one-shot probe (no
CK_SERVICE),CK_SERVICE_TEST_KEYS,CK_TEST_FWCFG_ARTIFACTS, every otherCK_TEST_*,CK_RUST_LIBS,CK_QEMU_UNSAFE_DMA,CK_CONSOLE_SESSION, missing owner files.fwcfg_checkrefuses a staging inference image that containsfw_cfg,opt/aienos/modelorfw_dma_read.CK_INFER_DISK_ONLYthe fw_cfg reader is not compiled; with no MODEL.MAP the kernel printsinfer: ingest REFUSED (no boot-disk model ...)and the lifecycle refusesprompt. QEMU probe and test-keys images unchanged.--dry-run|--apply, two clean builds with equal digests, MODEL.MAP checked against the pinned model sha, every write printed aswrite <dest> bytes=N sha256=H;--target-image IMG --extents ...stages a disk image (used by the gate). The machine mode is never run by this PR.--build-only(make refusals) added to CIck-kernel.yml.esp-model-aienoslayout (ESP, model in 3 out-of-order extents, blank AIENOS partition).core/lifecycle*.cor console receive edits.Results
bash scripts/qemu_ck_service_disk_test.sh(QEMU TCG, ~25 min)cmp), apply writes the announced digestsqemu_ck_infer_test.sh(fw_cfg probe image, at e56830c; infer.c unchanged since)qemu_ck_infer_test.sh --disk(probe image, MODEL.MAP, at e56830c)--build-only;ck_gpt_imageslots, esp-model, esp-model-aienos layouts after merging #326Owner files and recovery secrets in the gate are generated per run (fresh Ed25519 public key with the private half discarded, random machine id / Store uuid / secrets); no
CK_TEST_*constant is used. Evidence: serial logs of the four boots kept locally by the worker (AIENOS_LOG_DIR), checked rows in GATES.md 200-210.Remaining for N3 on hardware: attended Spark boot with the staged service image (docs/ATTENDED_SESSION_N1.md item B2), console receive path (w-console), owner key ceremony.
🤖 Generated with Claude Code