Skip to content

Grade Landlock network egress and microVM readiness#279

Merged
seanwevans merged 1 commit into
mainfrom
claude/grade-network-microvm
Jul 21, 2026
Merged

Grade Landlock network egress and microVM readiness#279
seanwevans merged 1 commit into
mainfrom
claude/grade-network-microvm

Conversation

@seanwevans

Copy link
Copy Markdown
Owner

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 confine connect() 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/kvm are 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 --grade now reports all ten components.

Full suite: 493 passed, 6 skipped. black/isort/flake8/mypy clean.

🤖 Generated with Claude Code


Generated by Claude Code

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
@seanwevans
seanwevans merged commit 8891587 into main Jul 21, 2026
18 checks passed
@seanwevans
seanwevans deleted the claude/grade-network-microvm branch July 21, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants