Add macOS support specification and implementation roadmap#2
Merged
Conversation
Design for running ember on macOS using Apple Virtualization Framework (instead of Firecracker), APFS clones (instead of ZFS), and vmnet shared mode (instead of TAP+iptables). Includes backend trait architecture for compile-time platform selection and a phased implementation plan. https://claude.ai/code/session_01KZHZYm4XHXuZYeFq8jWnrK
Add a spec section and TODO items for verifying that APFS copy-on-write actually saves space (since du/Finder report clones at full size). Includes: - `ember debug storage-efficiency` command (logical vs actual disk usage) - APFS volume validation during `ember init` - `cp -c` failure detection with clear error messages - Timing-based sanity check on clone operations https://claude.ai/code/session_01KZHZYm4XHXuZYeFq8jWnrK
Point at MACOS-SPEC.md and MACOS-TODO.md as the current focus. Update architecture section with backend trait structure and platform annotations. https://claude.ai/code/session_01KZHZYm4XHXuZYeFq8jWnrK
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
This PR introduces comprehensive design documentation and implementation roadmap for macOS support in ember. Rather than porting Linux-specific tools (Firecracker, ZFS, iptables), the design leverages native macOS frameworks and tools to provide an identical CLI experience.
Key Changes
MACOS-SPEC.md: Complete technical specification for macOS support covering:
ember-vz, a Swift helper binary that shells out to AVF (matching ember's philosophy of using platform tools)MACOS-TODO.md: Phased implementation roadmap with 7 phases:
Updated CLAUDE.md: Clarified project scope (Linux + macOS), added macOS-specific guidance, updated architecture overview to reference both SPEC.md and MACOS-SPEC.md
Updated PROMPT.md: Redirected to MACOS-TODO.md as the current task list
Notable Design Decisions
ember-vz(Swift CLI) handles AVF complexity, matching ember's existing pattern of shelling out tozfs,iptables, etc.ember debug storage-efficiencycommand and timing-based sanity checks since APFS doesn't expose per-file CoW savings like ZFS does#[cfg(target_os)]for clean separation without runtime overheadhttps://claude.ai/code/session_01KZHZYm4XHXuZYeFq8jWnrK