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
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
This commit is contained in:
1 parent
d3d2666965
commit
fe0d1a6483
12 files changed
+1317
-41
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
Updated: 2026-11-27
|
||||
Branch: main
|
||||
Stage: VERIFIED — Plans 01–19 + Plan 20 Slice 1 (bounded native CMake graph translation) + VoidLibrary `VL-001`..`VL-013` adoption + self-building/self-testing `vbs test` + cache/digest performance hardening complete
|
||||
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1 & 2A (bounded native CMake & Meson translation) + Everyday DX CLI (`init`/`clean`/`doctor`/`graph`/`--native-foreign`) + Post-v1 Expansion Roadmap complete
|
||||
|
||||
## Completed delivery waves
|
||||
|
||||
@@ -39,9 +39,14 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slice 1 (bounded native CMake graph
|
||||
- Verified VoidLibrary's upstream `VL-009` `VOID_TEST(suite, name)` self-registering test macro directly with zero CMake and zero scanner across colliding basenames (`alpha/Unit.cpp`, `beta/Unit.cpp`) in `tests/SelfHostTests.cpp`.
|
||||
- Hardened warm-build caching in `src/State/StateStore.cpp` (stat-validated in-memory `DatabaseSnapshot` cache across `lookup_action` / `load_db_locked` / `save_db_locked`) and `src/Execution/Scheduler.cpp` (run-scoped thread-safe `RunDigestCache` with output invalidation), reducing 16-file warm no-op latency from `16ms` to `4ms` and 39-action Debug self-test warm verification from `18.82s` to `12.16s`.
|
||||
|
||||
- **Wave 8 (Plan 20 Slice 2A Bounded Native Meson Translation, Everyday DX CLI, & Post-v1 Expansion Roadmap)**:
|
||||
- Implemented Plan 20 Slice 2A in `include/Void/Build/Provider/Translator.hpp` and `src/Provider/Translator.cpp`: configure-only Meson setup (`configure_meson_for_translation`, never `meson compile`), strict `meson-info/intro-targets.json` completeness auditing (`audit_meson_introspection`), internal `build.ninja` link-edge recovery and native `Graph::BuildGraph` lowering (`translate_meson_to_native_graph`), and unified `resolve_meson_with_translation` / `resolve_foreign_with_translation` (`RequireNative` vs `FallbackToForeignBuild`), verified end-to-end with C++ native execution and `custom_target` fallback in `tests/FullV1Tests.cpp`.
|
||||
- Wired opt-in `--native-foreign` on `vbs build`/`vbs test` plus four everyday DX subcommands (`vbs init`, `vbs clean`, `vbs doctor`, `vbs graph --format dot|json`) into `Void::Argparse::Parser` in `src/Main.cpp`, verified end-to-end in `tests/FullV1Tests.cpp` and 32 CLI contracts in `tests/CliContracts.cmake`.
|
||||
- Authored comprehensive 5-track post-v1 expansion plan in [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) (Track A zero-CMake self-host & full `VOID_TEST` suite; Track B extended foreign translation; Track C macOS/Windows/cross-compilation; Track D shared HTTP CAS & supply-chain provenance; Track E workspaces, daemon & DX).
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Plan 20 Slice 2+ ([20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Extended foreign rule translation (custom commands, foreign C++20 module fileSets, Meson translation), Windows/MSVC & macOS/Apple Clang platform ports, and remote execution remain planned architectural design scope.
|
||||
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Track A (zero-CMake self-build + full `VOID_TEST` migration), Track B (C driver, custom-command Ninja translation, foreign C++20 modules, Conan2), Track C (macOS/Windows ports + cross-compilation), Track D (remote HTTP CAS + parallel hashing + SBOM/signatures), and Track E2–E4 (`workspace.cpp`, local daemon, `Void::Net`/`Void::Sqlite` alignment).
|
||||
|
||||
## Environment notes & upstream boundaries
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Task graph and ownership
|
||||
|
||||
Updated: 2026-11-27
|
||||
Base HEAD: `363fb82`
|
||||
Base HEAD: `d3d2666`
|
||||
|
||||
| Wave | Scope | Status | Primary Deliverables |
|
||||
| --- | --- | --- | --- |
|
||||
@@ -14,4 +14,5 @@ Base HEAD: `363fb82`
|
||||
| Wave 5 (VoidLibrary Reuse & End-to-End Closure) | `Void::Argparse::Parser` across all CLIs, `Void::Algorithms`/`Unicode`/`Async`/`Str`/`Hex`/`Url`/`Scope`/`Stopwatch` adoption, Plan 08 graph lowering (GCC+Clang modules/partitions, unity, header units, sanitizers), live `RegistryClient` + `vbs publish`, full Stage 1 -> Stage 2 `VbsSelfHostRecipe` | COMPLETE & VERIFIED | `src/Main.cpp`, `src/Graph/Graph.cpp`, `src/Package/RegistryClient.cpp`, `recipes/SelfHost/VbsSelfHostRecipe.cpp`, expanded test suites |
|
||||
| Wave 6 (Upstream `VL-001`..`VL-013` Pin Bump, Self-Building `vbs build`, Live Logs & Generated CLI Help) | Bump VoidLibrary pin to `3e254055e081a104f08df68dde39711bc7813518`; adopt `Void::Crypto`, `Void::Archive`, `Void::Data::Toml`, `Void::Semver::parse_range`, `Void::FileSystem::FileLock`/`DirectoryWatcher`/`reflink_copy_file`/`atomic_symlink_swap`/`set_canonical_mtime`, `Void::Process`, `Void::Argparse::Parser` subcommands + `option_many` + `parse_detailed`; full self-building root `build.cpp`; live `Void::Log` console progress | COMPLETE & VERIFIED | `CMakeLists.txt`, `cmake/VoidDependency.cmake`, `build.cpp`, `src/Main.cpp`, `src/Describe.cpp`, `registry/service/Main.cpp`, `benchmarks/EngineBenchmarks.cpp`, `src/Util/Sha256.cpp`, `src/Package/{Toml,Solver,Archive,Fetch}.cpp`, `src/Platform/{FileOps,ProcessSupervisor}.cpp`, `src/Watch/Watcher.cpp`, `src/Provider/Provider.cpp`, `src/Graph/Graph.cpp`, `src/Execution/Scheduler.cpp`, `recipes/`, updated contracts & docs |
|
||||
| Wave 7 (Plan 20 Slice 1 Bounded CMake Native Translation, Self-Testing `build.cpp`, `VL-009` `VOID_TEST`, & Warm Cache Hardening) | Bounded single-config C++ CMake File API audit + native `Graph::BuildGraph` translation + explicit fallback; self-test target `vbs_self_smoke` in `build.cpp`; `VL-009` `VOID_TEST` zero-CMake basename-collision test; stat-validated `StateStore` cache + `Scheduler` `RunDigestCache` | COMPLETE & VERIFIED | `include/Void/Build/Provider/Translator.hpp`, `src/Provider/Translator.cpp`, `tests/SelfBuildSmoke.cpp`, `src/State/StateStore.{hpp,cpp}`, `src/Execution/Scheduler.cpp`, `build.cpp`, `CMakeLists.txt`, `recipes/SelfHost/VbsSelfHostRecipe.cpp`, expanded tests & docs |
|
||||
| Future (Plan 20 Slice 2+) | Extended foreign translation (custom commands, Meson) & Windows/macOS ports | PLANNED (unimplemented) | [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
| Wave 8 (Plan 20 Slice 2A Meson Native Translation, Everyday DX CLI, & Expansion Roadmap) | Bounded Meson `intro-targets.json` + `build.ninja` native translation & unified `resolve_foreign_with_translation`; `vbs build\|test --native-foreign`, `vbs init`, `vbs clean`, `vbs doctor`, `vbs graph`; 5-track post-v1 expansion roadmap | COMPLETE & VERIFIED | `include/Void/Build/Provider/Translator.hpp`, `src/Provider/Translator.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, `tests/CliContracts.cmake`, `docs/roadmap/21-expansion-roadmap.md`, updated docs |
|
||||
| Future (Tracks A–E / Plan 20 Slices 2B–3) | Zero-CMake self-host & full `VOID_TEST`, C driver & Ninja custom-command translation, macOS/Windows/cross-compile, shared HTTP CAS, `workspace.cpp` & daemon | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -36,17 +36,17 @@ dev cpp-gcc -c clang-format --dry-run --Werror \
|
||||
```sh
|
||||
dev cpp-gcc -c ctest --test-dir build/dev --output-on-failure
|
||||
```
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 103.96 sec**:
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 107.03 sec**:
|
||||
|
||||
| # | CTest Name | Scope Verified | Result | Time |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 1 | `vbs_sdk_tests` | 17 tests (`SdkDeclarations` 14 + `ExampleContexts` 3 for 7-target self-building/self-testing `build.cpp` and pin `3e254055...`) | Passed | 0.01s |
|
||||
| 2 | `vbs_core_tests` | 6 tests: `Void::Crypto` SHA-256 NIST vectors, `Void::Process` exec-fail & stubborn grandchild `SIGKILL`, profile inheritance/cycles, snapshot mutation/symlinks/header-shadowing (`Void::FileSystem`), stat-cached `StateStore` CAS recovery/GC, end-to-end native frontend + deterministic build + `RunDigestCache` | Passed | 11.61s |
|
||||
| 3 | `vbs_v1_tests` | 9 tests: CompDB ticket races & `atomic_symlink_swap`, `Void::FileSystem::DirectoryWatcher` + `MetadataOnly` boundary, `Void::Data::Toml` + `Void::Semver::parse_range` PubGrub solver + CAS `vbs.lock`, `Void::Archive` `.tar` determinism & security rejection, real CMake & Meson providers + `VbsDeps.cmake` bridge + relocatable install + CLI `vbs install`/`vbs uninstall`, GCC 16 P1689 modules + full Plan 08 graph integration (sanitizers, partitions, unity, header units), AND **Plan 20 Slice 1** bounded native CMake graph translation (equivalence vs official `cmake --build`, adversarial restored-mtime header mutation rebuild, explicit `RequireNative` error + `FallbackToForeignBuild` delegation on `add_custom_command`/`UTILITY`) | Passed | 14.05s |
|
||||
| 4 | `vbs_registry_tests` | 2 tests: `vbs-registry` HTTP/1.1 security/RBAC/CSRF/XSS/tar-422/backup-restore + full live CLI E2E `vbs publish` -> `vbs deps resolve` -> `vbs build --locked` | Passed | 4.07s |
|
||||
| 5 | `vbs_selfhost_tests` | 4 tests: basename-collision-safe `vbs gen-tests`, strict non-CMake native `VoidLibrary` (including `Crypto` + `Archive`) + `VoidBuildSdk` + Stage 2, full Stage 0 -> Stage 1 native `VbsSelfHostRecipe` (`stage1/bin/vbs`, zero CMake) -> Stage 2 `stage1/bin/vbs test` with trapped `cmake` on `PATH`, AND **`VL-009` `VOID_TEST(suite, name)`** zero-CMake zero-scanner test binary across colliding basenames (`alpha/Unit.cpp`, `beta/Unit.cpp`) | Passed | 74.12s |
|
||||
| 1 | `vbs_sdk_tests` | 17 tests (`SdkDeclarations` 14 + `ExampleContexts` 3 for 7-target self-building/self-testing `build.cpp` and pin `3e254055...`) | Passed | 0.02s |
|
||||
| 2 | `vbs_core_tests` | 6 tests: `Void::Crypto` SHA-256 NIST vectors, `Void::Process` exec-fail & stubborn grandchild `SIGKILL`, profile inheritance/cycles, snapshot mutation/symlinks/header-shadowing (`Void::FileSystem`), stat-cached `StateStore` CAS recovery/GC, end-to-end native frontend + deterministic build + `RunDigestCache` | Passed | 11.16s |
|
||||
| 3 | `vbs_v1_tests` | 11 tests: CompDB ticket races & `atomic_symlink_swap`, `Void::FileSystem::DirectoryWatcher` + `MetadataOnly` boundary, `Void::Data::Toml` + `Void::Semver::parse_range` PubGrub solver + CAS `vbs.lock`, `Void::Archive` `.tar` determinism & security rejection, real CMake & Meson providers + `VbsDeps.cmake` bridge + relocatable install + CLI `vbs install`/`vbs uninstall`, GCC 16 P1689 modules + full Plan 08 graph integration (sanitizers, partitions, unity, header units), **Plan 20 Slice 1** bounded native CMake translation (equivalence, restored-mtime mutation, `add_custom_command`/`UTILITY` fallback), **Plan 20 Slice 2A** bounded native Meson translation (zero `meson compile`, `custom_target` `RequireNative` rejection + `FallbackToForeignBuild`), AND **Wave 8 DX CLI** E2E (`vbs init` -> `vbs test` -> `vbs graph --format dot\|json` -> `vbs doctor` -> `vbs clean`/`--all`) | Passed | 19.82s |
|
||||
| 4 | `vbs_registry_tests` | 2 tests: `vbs-registry` HTTP/1.1 security/RBAC/CSRF/XSS/tar-422/backup-restore + full live CLI E2E `vbs publish` -> `vbs deps resolve` -> `vbs build --locked` | Passed | 3.98s |
|
||||
| 5 | `vbs_selfhost_tests` | 4 tests: basename-collision-safe `vbs gen-tests`, strict non-CMake native `VoidLibrary` (including `Crypto` + `Archive`) + `VoidBuildSdk` + Stage 2, full Stage 0 -> Stage 1 native `VbsSelfHostRecipe` (`stage1/bin/vbs`, zero CMake) -> Stage 2 `stage1/bin/vbs test` with trapped `cmake` on `PATH`, AND **`VL-009` `VOID_TEST(suite, name)`** zero-CMake zero-scanner test binary across colliding basenames (`alpha/Unit.cpp`, `beta/Unit.cpp`) | Passed | 71.96s |
|
||||
| 6 | `vbs_sdk_registration` | 17 SDK test registrations verified; named JSON case executed | Passed | 0.01s |
|
||||
| 7 | `vbs_cli_contract` | 27 native CLI & auto-generated `Void::Argparse::Parser` help/subcommand/error contracts verified (`vbs`, `vbs-registry`, `compdb`, `deps`, `build`, `install`, `publish`, etc.) | Passed | 0.04s |
|
||||
| 7 | `vbs_cli_contract` | 32 native CLI & auto-generated `Void::Argparse::Parser` help/subcommand/error contracts verified (`vbs`, `vbs-registry`, `build --native-foreign`, `init`, `clean`, `doctor`, `graph`, `compdb`, `deps`, `install`, `publish`, etc.) | Passed | 0.05s |
|
||||
| 8 | `vbs_description_contract` | Four runtime profile/compiler contexts (`debug`/`release` x `gcc`/`clang` for 7-target `build.cpp`), auto-generated `vbs_describe --help`, and five error contracts verified | Passed | 0.04s |
|
||||
|
||||
## Real Self-Build & Self-Test of VoidBuildSystem (`vbs test`)
|
||||
@@ -56,22 +56,26 @@ dev cpp-gcc -c ctest --test-dir build/dev --output-on-failure
|
||||
VBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidBuildSystem/build/voidlibrary-pinned \
|
||||
dev cpp-gcc -c build/dev/bin/vbs test --build-dir build/vbs-self --jobs 4
|
||||
```
|
||||
- Exit status: `0` — **`vbs: [debug] built (39 executed, 0 cached)`** in `42.73s` -> **`vbs test: PASSED 'vbs_self_smoke' (4 ms)`**.
|
||||
- Exit status: `0` — **`vbs: [debug] built (39 executed, 0 cached)`** in `42.23s` -> **`vbs test: PASSED 'vbs_self_smoke' (4 ms)`**.
|
||||
- Built `libVoidBuildSdk.a`, `libVoidBuildCore.a`, `libVoidBuildRegistry.a`, `bin/vbs`, `bin/vbs-registry`, and `bin/vbs_self_smoke` with live progress logs across all phases.
|
||||
|
||||
### Stage 2: Self-built `vbs` verifies warm cached build & self-test
|
||||
### Stage 2: Self-built `vbs` verifies warm cached build, self-test, `doctor`, and `graph`
|
||||
```sh
|
||||
VBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidBuildSystem/build/voidlibrary-pinned \
|
||||
dev cpp-gcc -c build/vbs-self/profiles/debug/out/bin/vbs test --build-dir build/vbs-self --jobs 4
|
||||
dev cpp-gcc -c build/vbs-self/profiles/debug/out/bin/vbs doctor
|
||||
dev cpp-gcc -c build/vbs-self/profiles/debug/out/bin/vbs graph --build-dir build/vbs-self --format dot
|
||||
```
|
||||
- Exit status: `0` — **`vbs: [debug] built (0 executed, 39 cached)`** in `12.16s` (down from `18.82s` prior to `StateStore` stat-validated caching and `RunDigestCache` output invalidation, verifying ~220 MB of `-O0 -g` debug artifacts byte-for-byte via pure-C++ SHA-256) -> **`vbs test: PASSED 'vbs_self_smoke' (3 ms)`**.
|
||||
- Exit status: `0` — **`vbs: [debug] built (0 executed, 39 cached)`** in `12.21s` -> **`vbs test: PASSED 'vbs_self_smoke' (3 ms)`**.
|
||||
- `vbs doctor` exited `0`, confirming GCC 16.2.0 (`c++26=yes, reflection=yes, p1689=yes`), `ar`, `git`, `cmake` 4.4.4, `ninja` 1.13.2, `meson` 1.12.1, `clang-scan-deps`, `clang-format`, `Void::Crypto`, and `Void::Archive`.
|
||||
- `vbs graph --format dot` exited `0`, emitting the 7-target Graphviz DOT dependency graph for `VoidBuildSystem`.
|
||||
|
||||
## Clang 23.1.3 Target Matrix (`dev cpp`)
|
||||
|
||||
```sh
|
||||
dev cpp -c build/dev/bin/vbs_v1_tests --no-color --filter clang23
|
||||
```
|
||||
- Exit status: `0` — `1 tests: 1 ✔ in 876.7ms` (`clang23_target_toolchain_and_p1689_module_scan`).
|
||||
- Exit status: `0` — `1 tests: 1 ✔ in 780.0ms` (`clang23_target_toolchain_and_p1689_module_scan`).
|
||||
- Verified inside `dev cpp`: Clang 23.1.3 + `clang-scan-deps` target probing, C++20 compilation, and full `Graph::lower_project_graph` + `Execution::execute_graph` build of module partition (`vbs.clangcalc:part`) + primary interface (`vbs.clangcalc`) + consumer `main.cpp` using two-step `--precompile` `.pcm` -> `.o` with transitive `-fmodule-file=`.
|
||||
|
||||
## Benchmarks (`dev cpp-gcc`)
|
||||
@@ -81,9 +85,8 @@ dev cpp-gcc -c build/dev/bin/vbs_benchmarks --files 15
|
||||
```
|
||||
- Exit status: `0`:
|
||||
```json
|
||||
{"fixture_files":16,"compiler":"g++ (GCC) 16.2.0","snapshot_ms":25,"cold_build_ms":486,"cold_executed":17,"warm_noop_ms":4,"warm_executed":0,"warm_cached":17}
|
||||
{"fixture_files":16,"compiler":"g++ (GCC) 16.2.0","snapshot_ms":19,"cold_build_ms":335,"cold_executed":17,"warm_noop_ms":5,"warm_executed":0,"warm_cached":17}
|
||||
```
|
||||
(`warm_noop_ms` improved 4x from `16ms` to `4ms`.)
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
@@ -91,4 +94,4 @@ dev cpp-gcc -c build/dev/bin/vbs_benchmarks --files 15
|
||||
2. **Conan2 live installation**: `conan` is absent in `dev cpp-gcc`; automated testing verified explicit missing-prerequisite failure (`FullV1Tests.cpp`).
|
||||
3. **Optional external VoidLibrary modules (`Void::Net`, `Void::Sqlite`)**: `Boost`, `OpenSSL`, and `SQLite3` are not installed in `dev cpp-gcc`, so VBS continues using its pure-C++/POSIX loopback HTTP adapters (`HttpServer`, `RegistryClient`) and journaled atomic CAS store (`StateStore`), while retaining optional `Void::Sqlite` CMake detection.
|
||||
4. **CI workflow & Web UI browser**: [.github/workflows/ci.yml](../../.github/workflows/ci.yml) has not been executed on remote GitHub Actions runners, and `registry/web/` was verified via HTTP/header/static-serving/API/XSS/CSRF tests without a headless browser runner.
|
||||
5. **Plan 20 Slice 2+ ([20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Extended foreign rule translation (custom commands, foreign C++20 module fileSets, Meson translation), Windows/MSVC & macOS/Apple Clang platform ports, and remote execution remain unimplemented planned scope.
|
||||
5. **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Track A (zero-CMake self-build + full `VOID_TEST` suite), Track B (C driver, Ninja custom-command translation, foreign C++20 module fileSets, Conan2), Track C (Windows/MSVC, macOS/Apple Clang, dual-profile cross-compilation), Track D (shared HTTP CAS, parallel hashing, SBOM/signatures), and Track E2–E4 (`workspace.cpp`, local daemon, `Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user