Skip to content

feat: implement NixReflect with various examples - #1

Merged
hyperfinitism merged 1 commit into
mainfrom
feature/nixreflect
Jul 29, 2026
Merged

feat: implement NixReflect with various examples#1
hyperfinitism merged 1 commit into
mainfrom
feature/nixreflect

Conversation

@hyperfinitism

Copy link
Copy Markdown
Member

Summary

  • NixReflect transpiler (nixreflect CLI / library): resolves mutual source references à la Kleene's second recursion theorem and emits standalone, mutually-referential .nix files — the Nix-targeting sibling of PyReflect.
  • Examples: quine, mutual_quine, trinity_quine, and mutual_quine_ne — two Nitro Enclave images that each reconstruct the other's reference PCR values intrinsically (no TTP, no network).
  • Flake checks cover every example end to end, including a hardware-free re-run of the enclave entrypoint.

Testing

  • nix flake check -L — all 8 checks pass on x86_64 and aarch64.
  • Verified on real Nitro hardware (2026-07-29, m6a.xlarge / m6g.xlarge): each enclave's reconstructed peer PCRs match the peer's build-time pcr.json and the hypervisor's non-debug measurements.

@hyperfinitism hyperfinitism self-assigned this Jul 29, 2026
@hyperfinitism hyperfinitism added the enhancement New feature or request label Jul 29, 2026
@hyperfinitism hyperfinitism changed the title feat: implement the NixReflect with various examples feat: implement NixReflect with various examples Jul 29, 2026
- 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
hyperfinitism merged commit 3e6e068 into main Jul 29, 2026
3 checks passed
@hyperfinitism
hyperfinitism deleted the feature/nixreflect branch July 29, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant