Grade Landlock network egress and microVM readiness#279
Merged
Conversation
The `doctor --grade` / conformance score covered eight guarantees but not the two boundary features added recently, so a host running them got no credit in the score CI and admission checks read. Add two grade components: - `landlock_net_egress` -- active when the kernel's Landlock ABI is >= 4, so the process backend's TCP-egress rules can confine connect() to the policy's ports. - `microvm_ready` -- active when a supported VMM and an accessible /dev/kvm are present, so the microVM hardware boundary can be launched; evidence carries the full readiness probe (vmm kind/path, kvm, blocking reasons). The grade is now a 10-point score. README and the grade test are updated, and each new probe has a focused test covering the active and inactive paths. Full suite: 493 passed, 6 skipped. black/isort/flake8/mypy clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PbbJc7Ntj159D9LNGevwC2
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
doctor --grade/ the conformance score covered eight guarantees but not the two boundary features added recently (#273 Landlock TCP-egress, #276 microVM). A host that actually provides them got no credit in the score that CI and admission checks read. This closes that observability gap.New grade components
landlock_net_egress— active when the kernel's Landlock ABI is ≥ 4, so the process backend's TCP-egress rules can confineconnect()to the policy's ports. Evidence carries the detected ABI and the minimum required.microvm_ready— active when a supported VMM and an accessible/dev/kvmare present, so the microVM hardware boundary can be launched. Evidence carries the full readiness probe (VMM kind/path,kvm, and any blocking reasons).The grade is now a 10-point score. Both probes are pure host probes (no side effects) and degrade gracefully — inactive with evidence on hosts that lack the feature, exactly like the existing components.
Docs & tests
README's grade description is updated to 10 points and lists the two new guarantees. The aggregate grade test is updated (max_score 8 → 10, new labels/keys in order), and each new probe gets a focused test asserting both the active and inactive paths. Verified end-to-end:
python -m pyisolate.conformance --gradenow reports all ten components.Full suite: 493 passed, 6 skipped. black/isort/flake8/mypy clean.
🤖 Generated with Claude Code
Generated by Claude Code