13 KiB
Development state
Updated: 2026-11-27
Branch: main
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1 & 2A + Track A (zero-CMake .native_builder() self-host, full VOID_TEST migration, & bit-identical Stage 2 == Stage 3 bootstrap) complete
Completed delivery waves
-
Wave 0 (Naming Alignment & Upstream Tracker):
- Standardized all C++ identifiers and paths on namespace
Void::Build, umbrella<Void/Build.hpp>, PascalCase internal headers (include/Void/Build/...), PascalCase sources/types/enum constants,snake_casefunctions/methods, and CMake targetsVoidBuild_Sdk(Void::BuildSdk),VoidBuild_Core(Void::BuildCore),VoidBuild_Registry(Void::BuildRegistry). - Documented 13 reusable VoidLibrary gaps and swappable local adapters in VOIDLIBRARY_UPSTREAM_REQUESTS.md.
- Standardized all C++ identifiers and paths on namespace
-
Wave 1 (Plans 01–07 — SDK & Core Native Engine):
- Expanded declaration SDK (
build.cpp,build.profiles.cpp,include/Void/Build.hpp,src/Build.cpp). - Built out-of-process host configuration frontend (
src/Config/Frontend.cpp), dependency-propagating graph lowering (src/Graph/Graph.cpp), GCC/Clang toolchain discovery & capability probing (src/Toolchain/Driver.cpp), content-verified immutable snapshots (src/Snapshot/Snapshot.cpp), process group supervisor (src/Platform/ProcessSupervisor.cpp), isolated file ops (src/Platform/FileOps.cpp), CAS durable state store (src/State/StateStore.cpp), and parallel DAG scheduler (src/Execution/Scheduler.cpp).
- Expanded declaration SDK (
-
Wave 2 (Plans 09–10 — Editor CompDB & Watchers):
- Implemented per-profile
compile_commands.jsonprojection with monotonic selection tickets, crash recovery, and unrelated root file preservation (src/Editor/CompDb.cpp). - Implemented recursive Linux
inotifywatcher (src/Watch/Watcher.cpp) with overflow rescan and strictMetadataOnlyboundary vsFullBuild.
- Implemented per-profile
-
Wave 3 (Plans 11–15, 18 — Packages, Foreign Providers, Bridge, Install & Self-Hosting):
- Implemented TOML 1.0 parser/merger (
src/Package/Toml.cpp), PubGrub-style SemVer solver (src/Package/Solver.cpp), context-aware atomic CASvbs.lock(src/Package/Lockfile.cpp), deterministic PAX/USTAR.tarbuilder & safe extractor (src/Package/Archive.cpp), source/binary materialization (src/Package/Fetch.cpp). - Implemented CMake File API & Meson introspection providers + explicit missing-tool Conan2 adapter (
src/Provider/Provider.cpp),cmake/bridge/VbsDeps.cmake+vbs bridge(src/Bridge/CMakeBridge.cpp), staged relocatable install/export/uninstall (src/Install/Installer.cpp), nativeVoidLibraryrecipe (recipes/VoidLibrary/VoidLibraryRecipe.cpp), and non-CMakeVoid::Testinggenerator (src/SelfHost/TestRegistryGen.cpp).
- Implemented TOML 1.0 parser/merger (
-
Wave 4 (Plans 08, 16–17, 19 — Modern C++, Registry, Web UI, Benchmarks & CI):
- Implemented P1689r5 module scanning & topological collation for GCC 16 and
clang-scan-deps, header units, and unity batching excluding modules/per-file overrides (src/Modules/ModuleScanner.cpp). - Implemented
vbs-registryHTTP/1.1 service (registry/service/HttpServer.cpp,RegistryService.cpp) with RBAC, salted password hashing, CSRF + HttpOnly SameSite cookies, immutable release 409 conflict checks, yank, redacted audit log, backup/restore, and DOM-safe web UI (registry/web/). - Implemented
vbsCLI (src/Main.cpp), benchmark harness (benchmarks/EngineBenchmarks.cpp), fiveVoid::Testingexecutables, three CMake contract scripts, and.github/workflows/ci.ymltemplate.
- Implemented P1689r5 module scanning & topological collation for GCC 16 and
-
Wave 5 (Maximal VoidLibrary Reuse + Full Plan 08/11/12/16/18 Integration):
- Adopted
Void::Algorithms::topological_order,Void::Encoding::Hex/Url,Void::Unicode::validate_utf8,Void::Str,Void::Scope::on_exit,Void::Time::Stopwatch,Void::Configuration::get_env/get_env_or,Void::Concurrency::ThreadPool. - Wired Plan 08 end-to-end into
Graph::lower_project_graph(incompatible sanitizer rejection, unity batching, explicitActionKind::HeaderUnit, GCC-fmodule-mapper& Clang two-step.pcm->.o+ transitive-fmodule-file=named modules & partitions) verified on BOTH GCC 16.2.0 and Clang 23.1.3. - Added live HTTP/1.1
Package::RegistryClient(src/Package/RegistryClient.cpp) +vbs publish+ liveDependencySourceKind::Packageresolution invbs deps/vbs buildverified end-to-end againstvbs-registry. - Added full native
recipes/SelfHost/VbsSelfHostRecipe.{hpp,cpp}verified Stage 0 -> Stage 1 (full nativestage1/bin/vbs, zero CMake) -> Stage 2 (stage1/bin/vbs testwith trappedcmakeonPATH).
- Adopted
-
Wave 6 (VoidLibrary
3e254055Pin Bump, UpstreamVL-001..VL-013Adoption, Real Self-Build, Live Logs & Generated CLI Help):- Upgraded VoidLibrary pin to
3e254055e081a104f08df68dde39711bc7813518(Merge branch 'feat/upstream-vbs-requests' (VL-001..VL-013)). - Replaced local adapters with upstream VoidLibrary implementations across the board:
Void::Crypto(VL-007),Void::Archive(VL-006),Void::Data::Toml(VL-002),Void::Semver::parse_range(VL-013),Void::FileSystem::FileLock/reflink_copy_file/set_canonical_mtime/atomic_symlink_swap(VL-010),Void::FileSystem::DirectoryWatcher(VL-003),Void::Process::spawn/communicate_blocking/enable_subreaper(VL-001), andVoid::Argparse::Parsernative subcommands +option_many+parse_detailed(VL-011). - Eliminated all custom help text and manual
--help/subcommand/repeatable-flag parsing acrosssrc/Main.cpp,src/Describe.cpp,registry/service/Main.cpp, andbenchmarks/EngineBenchmarks.cpp— 100% auto-generated viaVoid::Argparse::Parser. - Upgraded root
build.cppto declare the completeVoidBuildSystem(VoidBuildSdk,VoidBuildCore,GenerateBootstrapConfig,vbs,VoidBuildRegistry,vbs-registry), fixed snapshot root discovery (collect_snapshot_inputs), fixed snapshot remapping of external/build-dir dependency includes inGraph.cpp, fixed CMake File API providerVoid::*alias & header-onlyINTERNAL_DEPSexport + transitive link ordering inProvider.cpp, and verified real Stage 1 + Stage 2 self-builds ofVoidBuildSystemviavbs build! - Wired a live thread-safe
Void::Logconsole sink insrc/Main.cpp(--verbose/-v,--quiet/-q) logging every build phase (Config,Toolchain,Eval,Deps,Fetch,Provider,Snapshot,Graph, per-action[seq/total] Compile/Archive/Link/Action ...progress, andTest) with elapsed timings.
- Upgraded VoidLibrary pin to
-
Wave 7 (Plan 20 Slice 1 Bounded Native CMake Translation, Self-Testing
build.cpp,VL-009VOID_TEST, & Warm Cache Hardening):- Implemented Plan 20 Slice 1 in
include/Void/Build/Provider/Translator.hppandsrc/Provider/Translator.cpp: strict CMake File APIcodemodel-v2completeness audit (audit_cmake_codemodel), bounded C++ nativeGraph::BuildGraphtranslation (translate_cmake_to_native_graph, executing via VBS's toolchain driver/CAS/depfiles with zerocmake --build), and explicitTranslationPolicy::RequireNativevsTranslationPolicy::FallbackToForeignBuildresolution (resolve_cmake_with_translation), verified with equivalence, restored-mtime mutation, and unsupportedadd_custom_command/UTILITYfallback tests intests/FullV1Tests.cpp. - Added
tests/SelfBuildSmoke.cpp(project.test("vbs_self_smoke")) to rootbuild.cppso bothvbs buildandvbs testbuild and execute a self-test directly onVoidBuildSystem. - Verified VoidLibrary's upstream
VL-009VOID_TEST(suite, name)self-registering test macro directly with zero CMake and zero scanner across colliding basenames (alpha/Unit.cpp,beta/Unit.cpp) intests/SelfHostTests.cpp. - Hardened warm-build caching in
src/State/StateStore.cpp(stat-validated in-memoryDatabaseSnapshotcache acrosslookup_action/load_db_locked/save_db_locked) andsrc/Execution/Scheduler.cpp(run-scoped thread-safeRunDigestCachewith output invalidation), reducing 16-file warm no-op latency from16msto4msand 39-action Debug self-test warm verification from18.82sto12.16s.
- Implemented Plan 20 Slice 1 in
-
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.hppandsrc/Provider/Translator.cpp: configure-only Meson setup (configure_meson_for_translation, nevermeson compile), strictmeson-info/intro-targets.jsoncompleteness auditing (audit_meson_introspection), internalbuild.ninjalink-edge recovery and nativeGraph::BuildGraphlowering (translate_meson_to_native_graph), and unifiedresolve_meson_with_translation/resolve_foreign_with_translation(RequireNativevsFallbackToForeignBuild), verified end-to-end with C++ native execution andcustom_targetfallback intests/FullV1Tests.cpp. - Wired opt-in
--native-foreignonvbs build/vbs testplus four everyday DX subcommands (vbs init,vbs clean,vbs doctor,vbs graph --format dot|json) intoVoid::Argparse::Parserinsrc/Main.cpp, verified end-to-end intests/FullV1Tests.cppand 32 CLI contracts intests/CliContracts.cmake. - Authored comprehensive 5-track post-v1 expansion plan in 21-expansion-roadmap.md (Track A zero-CMake self-host & full
VOID_TESTsuite; Track B extended foreign translation; Track C macOS/Windows/cross-compilation; Track D shared HTTP CAS & supply-chain provenance; Track E workspaces, daemon & DX).
- Implemented Plan 20 Slice 2A in
-
Wave 9 (Track A — Zero-CMake Self-Hosting, Full
VOID_TESTMigration, & Bit-Identical Stage 2 == Stage 3 Bootstrap):- Track A1 (
builder == "native"): ExtendedProviderRequestininclude/Void/Build/Provider/Provider.hppand implementedrun_native_providerinsrc/Provider/Provider.cpphandling both purebuild.cppsubprojects and built-inVoidLibraryrecipe closure (VOID_ENABLED_MODULES), complete withLog/Async-completeTestingclosure inrecipes/VoidLibrary/VoidLibraryRecipe.cpp, reverse-DFS static archive link ordering,Void::*target aliasing,MetadataOnlycache isolation, and/proc/self/exe-first SDK/binary discovery insrc/Main.cpp. Switched rootbuild.cpp'sVoidLibrarydependency from.cmake(...)to.native_builder(...). - Track A2 (Full
VOID_TESTVL-009Migration & Complete Self-Testbuild.cpp): Converted all 40 existing test cases acrosstests/{SdkDeclarations,ExampleContexts,CoreEngineTests,FullV1Tests,RegistryTests,SelfHostTests}.cppto VoidLibrary's self-registeringVOID_TEST(Suite, name)macro, removedVoidTestScanner.cmakeinvocation fromCMakeLists.txtandtests/CMakeLists.txt, and declaredvbs_benchmarksplus all 5Void::Testingexecutables (vbs_sdk_tests,vbs_core_tests,vbs_v1_tests,vbs_registry_tests,vbs_selfhost_tests) alongsidevbs_self_smokein rootbuild.cpp(13 targets total). - Track A3 (Bit-Identical Stage 2 == Stage 3 Bootstrap): Removed
$BUILD_DIRfromGenerateBootstrapConfig(binary_dir = ""), added disjoint{profile_build_dir, "/vbs-build"}prefix mapping insrc/Graph/Graph.cpp, emitted-frandom-seed=<filename>on deterministic GCC compiles andTZ=UTC/LC_ALL=Con links insrc/Toolchain/Driver.cpp, and verifiedsha256(stage2/vbs) == sha256(stage3/vbs)(9280ea998492cd3f48833cf87b06d91940c1f465f29f3871289c1e01bcf2e0b3) pluslibVoidBuildSdk.aandlibVoidBuildCore.abit-for-bit equality withcmaketrapped onPATH.
- Track A1 (
Remaining future scope
- Post-v1 Expansion Roadmap (21-expansion-roadmap.md & 20-future-translation-platforms.md): Track B (C driver, Ninja custom-command translation, foreign C++20 modules, Conan2), Track C (macOS/Windows ports + cross-compilation), Track D (shared HTTP CAS + parallel hashing + SBOM/signatures), and Track E2–E4 (
workspace.cpp, local daemon,Void::Net/Void::Sqlitealignment) remain planned scope.
Environment notes & upstream boundaries
- External VoidLibrary pin
3e254055e081a104f08df68dde39711bc7813518is set in CMakeLists.txt, cmake/VoidDependency.cmake, and build.cpp. VBS never writes to/home/faumaray/Projects/VoidLibrary. Void::CryptoandVoid::Archivenow build unconditionally with zero external dependencies indev cpp-gcc; onlySQLite3,Boost/OpenSSL(Void::Net), andconanremain optional external prerequisites.- See VERIFICATION.md for all observed builds, tests, Clang 23 matrix runs, formatting checks, benchmark results, and real self-build verification.