feat: add Plan 20 Slice 2A Meson native translation, DX CLI (init/clean/doctor/graph/--native-foreign), and expansion roadmap
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s

This commit is contained in:
faumaray committed 2026-11-27 06:14:48 +03:00
1 parent d3d2666965
commit fe0d1a6483
12 files changed
+1317 -41

No files matched your search

@@ -1,6 +1,6 @@
# 20 — Later native foreign execution and platform ports
Implementation status: **Slice 1 implemented & verified** (bounded single-config C++ CMake File API codemodel audit, native `Graph::BuildGraph` translation, equivalence & restored-mtime mutation tests, and explicit `RequireNative` / `FallbackToForeignBuild` policy in [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp) and [Translator.cpp](../../src/Provider/Translator.cpp)); **extended foreign rules (custom commands, foreign C++20 module fileSets, Meson translation), Windows/MSVC & macOS/Apple Clang ports, and remote execution remain planned scope**. See [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md).
Implementation status: **Slices 1 & 2A implemented & verified** (bounded single-config C++ CMake File API codemodel and Meson `intro-targets.json` + `build.ninja` audits, native `Graph::BuildGraph` translation, unified `resolve_foreign_with_translation`, CLI `vbs build|test --native-foreign`, equivalence & restored-mtime mutation tests, and explicit `RequireNative` / `FallbackToForeignBuild` policy in [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp) and [Translator.cpp](../../src/Provider/Translator.cpp)); **Slices 2B/2C (C driver, custom-command translation, foreign C++20 module fileSets), Slice 3 (Windows/MSVC & macOS/Apple Clang ports), and remote execution remain planned scope** — see [21-expansion-roadmap.md](21-expansion-roadmap.md), [STATE](../agent-workflow/STATE.md), and [VERIFICATION](../agent-workflow/VERIFICATION.md).
## Requirements and ownership
+87
View File
@@ -0,0 +1,87 @@
# 21 — Post-v1 Expansion Roadmap
Status: Planning & active execution guide (Plans **01–19** and **Plan 20 Slices 1 & 2A** are implemented and verified; see [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)).
This roadmap defines five orthogonal expansion tracks for taking VoidBuildSystem from a verified self-hosting Linux C++26 build system into a multi-platform, distributed, daily-driver ecosystem. Each track preserves core architectural invariants: ordinary C++ descriptions, hermetic content-verified snapshots, isolated profiles, immutable CAS publication, and explicit diagnostics over silent approximation.
```mermaid
flowchart LR
V1["Verified Core (Plans 01–19 + Plan 20 Slice 1/2A)"]
V1 --> TA["Track A: Full Zero-CMake Self-Host"]
V1 --> TB["Track B: Foreign Translation (2B/2C)"]
V1 --> TC["Track C: Cross-Platform & Cross-Compile"]
V1 --> TD["Track D: Remote Cache & Attestations"]
V1 --> TE["Track E: Workspaces, Daemon & DX"]
```
---
## Track A — Full Zero-CMake Self-Hosting & Native Test Suite
**Goal**: Make `VoidBuildSystem` build `VoidLibrary` and all of its own binaries **and** full test suites purely via `vbs test` without invoking CMake at all.
| Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- |
| **A1 — Native VoidLibrary Recipe Integration** | Expose a `project.native_recipe(...)` or built-in `Void::Build::Recipes::add_void_library_native` hook callable directly from root `build.cpp` so `build.cpp` does not even need the CMake provider for `VoidLibrary`. | `vbs build` builds `VoidBuildSystem` + `VoidLibrary` with a trapped `cmake` on `PATH`. |
| **A2 — Full `VOID_TEST` (`VL-009`) Suite Migration** | Port `tests/{SdkDeclarations,ExampleContexts,CoreEngineTests,FullV1Tests,RegistryTests,SelfHostTests}.cpp` to VoidLibrary's self-registering `VOID_TEST(suite, name)` macro and declare all 5 test binaries in root `build.cpp`. | `vbs test` runs every unit, integration, registry, and self-host test directly without CMake or `VoidTestScanner.cmake`. |
| **A3 — Reproducible Stage 2 == Stage 3 Bit-Identical Bootstrap** | Build `stage1/vbs` -> `stage2/vbs` -> `stage3/vbs` with fixed `SOURCE_DATE_EPOCH` and verify `sha256(stage2/vbs) == sha256(stage3/vbs)`. | Automated bit-for-bit equality check in CI. |
---
## Track B — Foreign Build Translation Expansion (Plan 20 Slices 2B & 2C)
**Goal**: Expand bounded native translation beyond single-config C++ libraries/executables while never silently dropping unsupported rules.
| Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- |
| **B1 — Native C Compiler Driver (`C` + Mixed `C`/`C++`)** | Extend `ToolchainCapabilities` with `c_compiler` (`gcc`/`clang`), C standard flags (`c11`/`c17`/`c23`), and multi-compile-group lowering in `Graph.cpp` + `Translator.cpp`. | Mixed C/C++ CMake and Meson projects (e.g., zlib/sqlite3-style fixtures) translate natively and match official tool outputs. |
| **B2 — Bounded `build.ninja` Custom-Command Translation** | Parse configured Ninja `rule` / `build` edges for hermetic `add_custom_command` / `custom_target` code generators into VBS `ActionKind::Custom` nodes, strictly rejecting unverified side-effecting rules. | Generated-header CMake/Meson fixtures execute natively under VBS CAS caching and rebuild correctly under generator-input mutations. |
| **B3 — Foreign C++20 `CXX_MODULES` Translation & Conan2 Binary Adapter** | Lower CMake `CXX_MODULES` `fileSets` onto VBS's P1689 scanner + `ModuleBmi` pipeline; implement live Conan2 `conan install --format=json` consumer adapter when `conan` is available. | Foreign CMake C++20 module fixture builds natively under GCC 16 and Clang 23; Conan2 fixture verified in a container with `conan` installed. |
---
## Track C — Cross-Platform Portability & Cross-Compilation (Plan 20 Slice 3)
**Goal**: Bring Linux-grade process supervision, filesystem atomicity, and toolchain probing to macOS and Windows without weakening invariants.
| Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- |
| **C1 — Platform Backend Split** | Split `src/Platform/` into `Linux/`, `MacOS/`, and `Windows/` behind clean interfaces (`FileOps`, `ProcessSupervisor`, `DirectoryWatcher`), delegating to `Void::System` as upstream adds OS backends. | Zero Linux regressions; clean platform abstraction boundary. |
| **C2 — macOS / Apple Clang & `ld64`** | Apple Clang toolchain probes, `.dylib` + `@rpath`/`@loader_path` install-name lowering, `FSEvents` watcher, Mach-O deterministic timestamps. | Real macOS CI runner passing all SDK, core, module, and install tests. |
| **C3 — Windows / MSVC & `clang-cl`** | MSVC (`cl.exe`, `lib.exe`, `link.exe`, `/showIncludes`, `.pdb`, `/FS`, `.dll`/`.lib` import libraries), Job Object process-tree kill, `ReadDirectoryChangesW` watcher, case-insensitive path conflict detection. | Real Windows CI runner passing process-tree kill, header-shadowing, and install relocation tests. |
| **C4 — True Host-vs-Target Cross-Compilation** | Dual-context evaluation (`host` profile for code generators and `build_dependency` tools vs `target` profile for cross-compiled products), sysroot & `--target=` triple propagation. | `linux-x86_64` host cross-compiling `linux-aarch64` fixture while executing host-compiled generator natively. |
---
## Track D — Distributed Caching, Remote Execution & Supply-Chain Security
**Goal**: Enable CI/team-wide action reuse and verifiable provenance without compromising local hermeticity.
| Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- |
| **D1 — Shared HTTP Content-Addressed Action Cache (CAS)** | Push/pull action records and output blobs (`PUT/GET /v1/cas/blobs/{sha256}`, `/v1/cas/actions/{action_key}`) against `vbs-registry` or any compatible HTTP CAS server with bearer auth and digest verification on every read. | Cold CI build populates remote CAS; second clean machine achieves 100% cache hit with verified SHA-256 outputs. |
| **D2 — Fast Hashing & Parallel Snapshot Pipeline** | Adopt `Void::Crypto` BLAKE2b / hardware-accelerated SHA-256 (when available) + parallel snapshot hashing across `Void::Concurrency::ThreadPool` + optional `Void::Sqlite` indexed state store for >10k-file monorepos. | Sub-second warm no-op on 5,000-file synthetic benchmark fixture (`vbs_benchmarks`). |
| **D3 — Supply-Chain Provenance & Signed Packages** | Emit SPDX/CycloneDX SBOM JSON from `vbs.lock` + `BuildGraph`; optional Ed25519 package & binary signature verification in `vbs publish` and `vbs build --locked`. | Tampered archive or signature fails closed before extraction. |
---
## Track E — Developer Experience, Workspaces & Ecosystem
**Goal**: Make VBS effortless for multi-package teams, editors, and everyday C++ workflows.
| Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- |
| **E1 — Everyday CLI Ergonomics (Implemented in Wave 8)** | `vbs init` project scaffolding, `vbs clean`, `vbs doctor` environment diagnostics, `vbs graph --format dot|json`, and `vbs build --native-foreign`. | End-to-end CLI & integration tests passing in `vbs_cli_contract` and `vbs_v1_tests`. |
| **E2 — Multi-Package Workspaces (`workspace.cpp`)** | Shared `vbs.lock`, shared CAS, cross-member local target linking, and affected-target graph selection (`vbs build --member <pkg>` / `--changed-since <ref>`). | 3-package workspace fixture building shared library + app + tests with unified lockfile. |
| **E3 — Background Build/Metadata Daemon & IDE Integration** | Optional local Unix-socket daemon (`vbs daemon`) holding warm `StateStore`, `RunDigestCache`, and `DirectoryWatcher` so editor `compile_commands.json` refreshes and incremental `vbs build` respond in <50ms. | Daemon auto-restarts on binary upgrade, honors `SignalWatcher` graceful shutdown, and preserves ticket ordering. |
| **E4 — Transport & Storage Upstream Alignment** | Adopt `Void::Net` (`VL-004`/`VL-005`) and `Void::Sqlite` (`VL-011b`) when lightweight/bundled builds become available in minimal Nix toolchains, reducing VBS transport code further. | All `vbs_registry_tests` and `vbs_core_tests` pass on both minimal and full toolchains. |
---
## Recommended Next Execution Order
1. **Track A1 + A2** (highest ROI for VBS itself): zero-CMake self-build + full `VOID_TEST` native suite via `vbs test`.
2. **Track B1 + B2**: C compiler driver + bounded Ninja custom-command translation so real-world C/C++ CMake/Meson dependencies execute natively.
3. **Track D1 + D2**: shared HTTP CAS cache on `vbs-registry` + parallel snapshot hashing for large repos.
4. **Track E2**: multi-package `workspace.cpp` support.
5. **Track C1–C4**: macOS / Windows platform ports + dual-profile cross-compilation once host CI runners are provisioned.
+4 -3
View File
@@ -1,7 +1,7 @@
# Roadmap and delivery graph
Plans **01–19** and **Plan 20 Slice 1** (bounded native CMake graph translation on Linux) are implemented and verified in the native codebase and CTest
suites; **Plan 20 Slice 2+** (extended custom-command/Meson translation, Windows/macOS ports, remote execution) remains future architectural design scope. For implemented
Plans **01–19** and **Plan 20 Slices 1 & 2A** (bounded native CMake & Meson graph translation on Linux) are implemented and verified in the native codebase and CTest
suites; **Plan 20 Slices 2B/2C & 3** and the five post-v1 expansion tracks in [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) define the next phases. For implemented
commands, targets, and workflow usage, see the [project README](../../README.md) and
[verification record](../agent-workflow/VERIFICATION.md).
@@ -31,7 +31,8 @@ Authority: [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md),
| [17 — Registry web administration](17-registry-ui.md) | Implemented & Verified | [registry/web/](../../registry/web/index.html) |
| [18 — Native self-hosting and VoidLibrary migration](18-self-host-voidlibrary.md) | Implemented & Verified | [VoidLibraryRecipe.cpp](../../recipes/VoidLibrary/VoidLibraryRecipe.cpp), [TestRegistryGen.cpp](../../src/SelfHost/TestRegistryGen.cpp) |
| [19 — Quality, performance and CI](19-quality-performance-ci.md) | Implemented & Verified | [tests/](../../tests/CMakeLists.txt), [EngineBenchmarks.cpp](../../benchmarks/EngineBenchmarks.cpp), [.github/workflows/ci.yml](../../.github/workflows/ci.yml) |
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | Slice 1 Implemented & Verified; OS ports planned | [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp), [Translator.cpp](../../src/Provider/Translator.cpp) (bounded CMake native translation + fallback); Windows/macOS ports & extended foreign translation planned |
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | Slices 1 & 2A Implemented & Verified; 2B/2C & OS ports planned | [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp), [Translator.cpp](../../src/Provider/Translator.cpp) (bounded CMake & Meson native translation + unified fallback + `--native-foreign`); C driver, custom commands, Windows/macOS ports planned |
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Track E1 Implemented; Tracks A–E Planned | Five-track expansion roadmap (zero-CMake self-host & full `VOID_TEST`, extended foreign translation, cross-platform/cross-compile, remote HTTP CAS & attestations, workspaces/daemon/DX) |
## Dependency graph