Clarify prototype hardening posture#204
Merged
seanwevans merged 2 commits intoMay 13, 2026
Merged
Conversation
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.
Motivation
dev/compatibilitymodes.Description
README.md, adjust feature wording to label kernel enforcement and no‑GIL support as experimental/roadmap, and update examples to avoid implying enforcement.API.mdandpyproject.tomlto reflect prototype status and label theno_gilpytest marker as experimental.pyisolate-doctor(pyisolate/doctor.py) that reports missing no‑GIL builds, kernel features, and BPF toolchain availability and returns non‑zero in--mode hardened.installation_report()(pyisolate/provenance.py) and wireSupervisor(rollout_mode="hardened")to callassert_hardened_supported()before attempting to load BPF while preserving compatibility with test stubs via a_load_bpfshim inpyisolate/supervisor.py.Testing
python -m py_compile pyisolate/doctor.py pyisolate/provenance.py pyisolate/supervisor.py tests/test_provenance.pyand the command succeeded.pytest -q tests/test_provenance.py tests/test_supervisor.pyandpytest -q tests/test_bpf_manager.py, and these targeted suites passed.python -m pyisolate.doctor --mode hardenedwhich exited non‑zero on this host as expected because the host does not satisfy hardened requirements.pytest -q) currently exhibits failures unrelated to this documentation/doctor gate change (cross-test BPF manager stubbing and watchdog/thread lifecycle interactions); targeted tests validating this PR pass while the global suite requires addressing test isolation for BPF/watchdog mocks.Codex Task