From d1cd937c33564818fcd3361ee7e3ae11880c9819 Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sat, 5 Dec 2026 08:57:12 +0300 Subject: [PATCH] feat(migration): describe nine more VoidLibrary modules natively --- .../build-support/vl/VoidLibraryModules.cpp | 11 +++++++++++ docs/agent-workflow/STATE.md | 2 ++ docs/agent-workflow/TASKS.md | 1 + docs/agent-workflow/VERIFICATION.md | 19 +++++++++++++++++++ docs/roadmap/22-superiority-and-gaps.md | 2 +- recipes/VoidLibrary/VoidLibraryRecipe.cpp | 11 +++++++++++ 6 files changed, 45 insertions(+), 1 deletion(-) diff --git a/contrib/voidlibrary-migration/build-support/vl/VoidLibraryModules.cpp b/contrib/voidlibrary-migration/build-support/vl/VoidLibraryModules.cpp index a4e0b9f..0e348d8 100644 --- a/contrib/voidlibrary-migration/build-support/vl/VoidLibraryModules.cpp +++ b/contrib/voidlibrary-migration/build-support/vl/VoidLibraryModules.cpp @@ -34,6 +34,17 @@ const std::map> &known_modules() { {"Log", {{"Async", "Core", "Data", "Functional", "Memory", "Time", "LogState"}, true}}, {"Testing", {{"Core", "Functional", "Time", "LogState", "Async", "Configuration", "Text"}, true}}, + {"Containers", {{"Core", "Memory"}, false}}, + {"Binary", {{"Functional", "Memory"}, false}}, + {"IO", {{"Core", "Functional", "Time", "Memory", "Async"}, false}}, + {"Service", {{"Core", "Functional", "Time", "Async", "LogState"}, false}}, + {"ObservabilityHooks", {{}, false}}, + {"Resilience", {{"Functional", "Time", "ObservabilityHooks"}, false}}, + {"Storage", {{"Core", "Functional", "Time", "Memory", "Binary", "IO", "Async"}, false}}, + {"IPC", + {{"Core", "Functional", "Memory", "Time", "Binary", "Async", "IO", "Resilience"}, + false}}, + {"Fsm", {{"Async", "Core", "Data", "Functional", "Time", "Log", "Service"}, false}}, }; return kDefs; } diff --git a/docs/agent-workflow/STATE.md b/docs/agent-workflow/STATE.md index 0550cd2..396359e 100644 --- a/docs/agent-workflow/STATE.md +++ b/docs/agent-workflow/STATE.md @@ -310,6 +310,8 @@ Stage: VERIFIED โ€” Plans 01โ€“19 + Plan 20 Slices 1โ€“2C + Track A + Track B (B - **Wave 108 (Native RPM Generator)**: `vbs install --archive FILE --archive-format rpm` writes a real RPM (lead, signature header with header SHA-256, main header with name/version/release/summary/description/build/size/license/group/OS/arch/file metadata/payload tags, and an uncompressed newc cpio payload). Validated with rpm 6.1: `rpm -qip`, `rpm -qlp` and `rpm2cpio | cpio -it` all accept the package; the install test asserts the lead/header magic and cpio payload markers. +- **Wave 109 (VoidLibrary Migration: Pure Module Expansion)**: the native module table gained Containers, Binary, IO, Service, ObservabilityHooks, Resilience, Storage, IPC and Fsm. In the separate clone at `0002e74`, `vbs build` compiled and archived all of them (18 actions) with no CMake; upstream [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61) was updated with the result and what remains (externally dependent modules and further table entries). + ## Remaining future scope - **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order. diff --git a/docs/agent-workflow/TASKS.md b/docs/agent-workflow/TASKS.md index 6a95a18..e8f13e1 100644 --- a/docs/agent-workflow/TASKS.md +++ b/docs/agent-workflow/TASKS.md @@ -112,4 +112,5 @@ Base HEAD: `fe0d1a6` | Wave 106 (Parser fuzzing) | Deterministic mutation fuzz test over TOML/JSON/lockfile/tar parsers with seed sanity checks; ASan-clean | COMPLETE & VERIFIED (normal build and ASan+UBSan) | `tests/CoreEngineTests.cpp`, docs | | Wave 107 (CI groundwork + RPM finding) | Sanitizer and MinGW/Wine CI jobs added to the template; RPM prototype investigated with real rpm tooling and deferred | PARTIAL: CI template updated (unverified on runners), RPM generator deferred with recorded evidence | `.github/workflows/ci.yml`, `docs/agent-workflow/STATE.md` | | Wave 108 (Native RPM generator) | `--archive-format rpm`: lead + signature/main headers + uncompressed cpio payload; validated with rpm 6.1 | COMPLETE & VERIFIED (rpm -qip/-qlp/rpm2cpio accept it; full CTest 8/8) | `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs | +| Wave 109 (VoidLibrary pure module expansion) | Nine more modules in the native table; verified building in the migration clone; #61 updated | COMPLETE & VERIFIED IN CLONE (18 actions, no CMake) | `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, `contrib/voidlibrary-migration/`, Void/Library#61 | | Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) | diff --git a/docs/agent-workflow/VERIFICATION.md b/docs/agent-workflow/VERIFICATION.md index 252f654..55842dc 100644 --- a/docs/agent-workflow/VERIFICATION.md +++ b/docs/agent-workflow/VERIFICATION.md @@ -1540,6 +1540,25 @@ Conclusion: the native RPM generator is deferred with this evidence recorded; th to finish and validate it exists in this environment. CI workflow changes are template-only and have not run on real runners. +## VoidLibrary Migration: Pure Module Expansion (GCC 16.2, VoidLibrary `0002e74`) + +In the separate clone (`/tmp/opencode/vl-migrate`, never the shared checkout): + +```sh +vbs build --project /tmp/opencode/vl-migrate --build-dir /tmp/opencode/vl-migrate/build2 \ + --profile debug --target Void_Fsm --target Void_Storage --target Void_IPC --target Void_Service \ + --target Void_Resilience --target Void_Containers --target Void_Binary --target Void_IO --jobs 8 +``` + +- **exit 0**, 18 actions: `libVoid_Containers.a`, `libVoid_Binary.a`, `libVoid_IO.a`, + `libVoid_Service.a`, `libVoid_Resilience.a`, `libVoid_Storage.a`, `libVoid_Fsm.a`, + `libVoid_IPC.a` plus their internal dependency archives - all natively, with no CMake. +- The module table (`recipes/VoidLibrary/VoidLibraryRecipe.cpp`, mirrored in + `contrib/voidlibrary-migration/`) now describes these modules with their internal dependencies; + none requires an external library. +- Upstream [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61) was updated with the + result and the remaining gaps (Net/Sqlite/Stacktrace/Script need Boost/OpenSSL/SQLite3/Lua). + ## Limits and Unrun Checks 1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified). diff --git a/docs/roadmap/22-superiority-and-gaps.md b/docs/roadmap/22-superiority-and-gaps.md index 6af9d24..b3d930e 100644 --- a/docs/roadmap/22-superiority-and-gaps.md +++ b/docs/roadmap/22-superiority-and-gaps.md @@ -79,7 +79,7 @@ Concrete work this implies: 2. Wine-first Windows target support (ยง2). 3. Packaging parity: ZIP (stored), DEB, RPM, metadata, signing (`--archive-format` extensions). 4. IDE ecosystem: File API shim (**done**: `vbs ide generate` emits codemodel-v2), presets import (**done**: `vbs presets`), external plugins. -5. Migration tooling (`vbs migrate`) and migrating VoidLibrary onto VBS (**trial verified**: VoidLibrary builds and tests with VBS in a separate clone; upstream #61 tracks the in-repo build description). +5. Migration tooling (`vbs migrate`) and migrating VoidLibrary onto VBS (**trial extended**: 25+ pure modules build with VBS in a separate clone; upstream #61 tracks the in-repo build description and the remaining externally dependent modules). 6. Test-runner parity. 7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling). 8. CI on real runners, sanitizer jobs (**sanitizer build run done**), parser fuzzing (**deterministic mutation harness done**; coverage-guided libFuzzer still needs Clang). diff --git a/recipes/VoidLibrary/VoidLibraryRecipe.cpp b/recipes/VoidLibrary/VoidLibraryRecipe.cpp index 6aa8eb7..cef721d 100644 --- a/recipes/VoidLibrary/VoidLibraryRecipe.cpp +++ b/recipes/VoidLibrary/VoidLibraryRecipe.cpp @@ -34,6 +34,17 @@ const std::map> &known_modules() { {"Log", {{"Async", "Core", "Data", "Functional", "Memory", "Time", "LogState"}, true}}, {"Testing", {{"Core", "Functional", "Time", "LogState", "Async", "Configuration", "Text"}, true}}, + {"Containers", {{"Core", "Memory"}, false}}, + {"Binary", {{"Functional", "Memory"}, false}}, + {"IO", {{"Core", "Functional", "Time", "Memory", "Async"}, false}}, + {"Service", {{"Core", "Functional", "Time", "Async", "LogState"}, false}}, + {"ObservabilityHooks", {{}, false}}, + {"Resilience", {{"Functional", "Time", "ObservabilityHooks"}, false}}, + {"Storage", {{"Core", "Functional", "Time", "Memory", "Binary", "IO", "Async"}, false}}, + {"IPC", + {{"Core", "Functional", "Memory", "Time", "Binary", "Async", "IO", "Resilience"}, + false}}, + {"Fsm", {{"Async", "Core", "Data", "Functional", "Time", "Log", "Service"}, false}}, }; return kDefs; }