feat: implement NixReflect with various examples - #1
Merged
Conversation
hyperfinitism
force-pushed
the
feature/nixreflect
branch
from
July 29, 2026 09:32
2e0279d to
cef1e0c
Compare
- Python transpiler (`nixreflect` CLI / library) emitting mutually-referential standalone .nix files via Kleene's second recursion theorem - examples: quine, mutual_quine, trinity_quine, and mutual_quine_ne — TTP-less mutual attestation as two AWS Nitro Enclave images - Nix flake with end-to-end checks (transpile drift, quine properties, hardware-free enclave verification) - CI: ruff, SPDX license, and E2E test workflows Signed-off-by: Takuma IMAMURA <takuma.imamura@acompany-ac.com>
hyperfinitism
force-pushed
the
feature/nixreflect
branch
from
July 29, 2026 09:34
cef1e0c to
a7b28d2
Compare
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.
Summary
nixreflectCLI / library): resolves mutual source references à la Kleene's second recursion theorem and emits standalone, mutually-referential.nixfiles — the Nix-targeting sibling of PyReflect.quine,mutual_quine,trinity_quine, andmutual_quine_ne— two Nitro Enclave images that each reconstruct the other's reference PCR values intrinsically (no TTP, no network).Testing
nix flake check -L— all 8 checks pass on x86_64 and aarch64.m6a.xlarge/m6g.xlarge): each enclave's reconstructed peer PCRs match the peer's build-timepcr.jsonand the hypervisor's non-debug measurements.