Files
Build-System/docs/agent-workflow/STATE.md
T
faumaray b8c362917f
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s
refactor(platform): make remaining POSIX assumptions explicit
2026-12-04 08:36:16 +03:00

47 KiB
Raw Blame History

Development state

Updated: 2026-12-03 Branch: main Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B1–B3) + Track E1 + vbs ide & build.cpp CompDB integration + Track D1/D2 + Track E2 + Track D3 SBOM (Docker GCC 16) + Track D3 Ed25519 signing primitives & trusted-key enforcement (OpenSSL-gated crypto) + Track E3 daemon core, bounded describe & build-serving + Track C1 Linux platform split 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_case functions/methods, and CMake targets VoidBuild_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.
  • 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/Linux/ProcessSupervisor.cpp), isolated file ops (src/Platform/Linux/FileOps.cpp), CAS durable state store (src/State/StateStore.cpp), and parallel DAG scheduler (src/Execution/Scheduler.cpp).
  • Wave 2 (Plans 09–10 — Editor CompDB & Watchers):

    • Implemented per-profile compile_commands.json projection with monotonic selection tickets, crash recovery, and unrelated root file preservation (src/Editor/CompDb.cpp).
    • Implemented recursive Linux inotify watcher (src/Watch/Linux/Watcher.cpp) with overflow rescan and strict MetadataOnly boundary vs FullBuild.
  • 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 CAS vbs.lock (src/Package/Lockfile.cpp), deterministic PAX/USTAR .tar builder & 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), native VoidLibrary recipe (recipes/VoidLibrary/VoidLibraryRecipe.cpp), and non-CMake Void::Testing generator (src/SelfHost/TestRegistryGen.cpp).
  • 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-registry HTTP/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 vbs CLI (src/Main.cpp), benchmark harness (benchmarks/EngineBenchmarks.cpp), five Void::Testing executables, three CMake contract scripts, and .github/workflows/ci.yml template.
  • 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, explicit ActionKind::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 + live DependencySourceKind::Package resolution in vbs deps / vbs build verified end-to-end against vbs-registry.
    • Added full native recipes/SelfHost/VbsSelfHostRecipe.{hpp,cpp} verified Stage 0 -> Stage 1 (full native stage1/bin/vbs, zero CMake) -> Stage 2 (stage1/bin/vbs test with trapped cmake on PATH).
  • Wave 6 (VoidLibrary 3e254055 Pin Bump, Upstream VL-001..VL-013 Adoption, 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), and Void::Argparse::Parser native subcommands + option_many + parse_detailed (VL-011).
    • Eliminated all custom help text and manual --help/subcommand/repeatable-flag parsing across src/Main.cpp, src/Describe.cpp, registry/service/Main.cpp, and benchmarks/EngineBenchmarks.cpp — 100% auto-generated via Void::Argparse::Parser.
    • Upgraded root build.cpp to declare the complete VoidBuildSystem (VoidBuildSdk, VoidBuildCore, GenerateBootstrapConfig, vbs, VoidBuildRegistry, vbs-registry), fixed snapshot root discovery (collect_snapshot_inputs), fixed snapshot remapping of external/build-dir dependency includes in Graph.cpp, fixed CMake File API provider Void::* alias & header-only INTERNAL_DEPS export + transitive link ordering in Provider.cpp, and verified real Stage 1 + Stage 2 self-builds of VoidBuildSystem via vbs build!
    • Wired a live thread-safe Void::Log console sink in src/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, and Test) with elapsed timings.
  • Wave 7 (Plan 20 Slice 1 Bounded Native CMake Translation, Self-Testing build.cpp, VL-009 VOID_TEST, & Warm Cache Hardening):

    • Implemented Plan 20 Slice 1 in include/Void/Build/Provider/Translator.hpp and src/Provider/Translator.cpp: strict CMake File API codemodel-v2 completeness audit (audit_cmake_codemodel), bounded C++ native Graph::BuildGraph translation (translate_cmake_to_native_graph, executing via VBS's toolchain driver/CAS/depfiles with zero cmake --build), and explicit TranslationPolicy::RequireNative vs TranslationPolicy::FallbackToForeignBuild resolution (resolve_cmake_with_translation), verified with equivalence, restored-mtime mutation, and unsupported add_custom_command/UTILITY fallback tests in tests/FullV1Tests.cpp.
    • Added tests/SelfBuildSmoke.cpp (project.test("vbs_self_smoke")) to root build.cpp so both vbs build and vbs test build and execute a self-test directly on VoidBuildSystem.
    • 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 (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).
  • Wave 9 (Track A — Zero-CMake Self-Hosting, Full VOID_TEST Migration, & Bit-Identical Stage 2 == Stage 3 Bootstrap):

    • Track A1 (builder == "native"): Extended ProviderRequest in include/Void/Build/Provider/Provider.hpp and implemented run_native_provider in src/Provider/Provider.cpp handling both pure build.cpp subprojects and built-in VoidLibrary recipe closure (VOID_ENABLED_MODULES), complete with Log/Async-complete Testing closure in recipes/VoidLibrary/VoidLibraryRecipe.cpp, reverse-DFS static archive link ordering, Void::* target aliasing, MetadataOnly cache isolation, and /proc/self/exe-first SDK/binary discovery in src/Main.cpp. Switched root build.cpp's VoidLibrary dependency from .cmake(...) to .native_builder(...).
    • Track A2 (Full VOID_TEST VL-009 Migration & Complete Self-Test build.cpp): Converted all 40 existing test cases across tests/{SdkDeclarations,ExampleContexts,CoreEngineTests,FullV1Tests,RegistryTests,SelfHostTests}.cpp to VoidLibrary's self-registering VOID_TEST(Suite, name) macro, removed VoidTestScanner.cmake invocation from CMakeLists.txt and tests/CMakeLists.txt, and declared vbs_benchmarks plus all 5 Void::Testing executables (vbs_sdk_tests, vbs_core_tests, vbs_v1_tests, vbs_registry_tests, vbs_selfhost_tests) alongside vbs_self_smoke in root build.cpp (13 targets total).
    • Track A3 (Bit-Identical Stage 2 == Stage 3 Bootstrap): Removed $BUILD_DIR from GenerateBootstrapConfig (binary_dir = ""), added disjoint {profile_build_dir, "/vbs-build"} prefix mapping in src/Graph/Graph.cpp, emitted -frandom-seed=<filename> on deterministic GCC compiles and TZ=UTC/LC_ALL=C on links in src/Toolchain/Driver.cpp, and verified sha256(stage2/vbs) == sha256(stage3/vbs) (9280ea998492cd3f48833cf87b06d91940c1f465f29f3871289c1e01bcf2e0b3) plus libVoidBuildSdk.a and libVoidBuildCore.a bit-for-bit equality with cmake trapped on PATH.
  • Wave 10 (Track B [B1–B3] Foreign Translation Expansion + First-Class vbs ide & build.cpp CompDB Integration):

    • Track B1 (First-Class C Driver & Mixed C/C++ Translation): Added CStandard (Default, C11, C17, C23) across include/Void/Build.hpp, src/Build.cpp, and src/Config/Frontend.cpp; extended ToolchainCapabilities/CompileRequest in Driver.hpp/Driver.cpp with c_compiler discovery/probing/caching and C lowering; extended Graph.cpp & CompDb.cpp for C compilation and c_standard emission; and upgraded Translator.cpp + Provider.cpp to pass -DCMAKE_C_COMPILER/CC and lower multi-compile-group mixed C/C++ CMake and Meson targets cleanly with PerFileOption.
    • Track B2 (Bounded build.ninja CUSTOM_COMMAND Translation): Implemented shared parse_ninja_custom_graph & CustomActionMaterializer in src/Provider/Translator.cpp supporting hermetic CMake add_custom_command/UTILITY and Meson custom_target/generated_sources lowered to TargetKind::CustomAction, while explicitly rejecting console pools, .util-only side-effects, out-of-tree writes, in-tree codegen tools, and run targets.
    • Track B3 (Foreign CMake C++20 CXX_MODULES & NixOS clang-scan-deps Include Discovery): Populated ToolchainCapabilities::default_include_dirs from Clang -E -v so NixOS clang-scan-deps resolves standard library headers; added external_module_bmis + ImportedTargetInterface::module_bmis propagation in ModuleScanner.{hpp,cpp}, Graph.{hpp,cpp}, Provider.cpp, and Translator.cpp; lowered CMake CXX_MODULES fileSets natively on both GCC 16 and Clang 23, including VBS targets importing modules exported by translated CMake libraries.
    • IDE Integration (build.cpp CompDB & vbs ide generate|query): Added project_build_descriptor_commands indexing build.cpp/build.profiles.cpp/build-support/ with <Void/Build.hpp> include paths in compile_commands.json; implemented vbs ide generate (non-destructive .clangd with GCC flag stripping, .vscode/{tasks,launch,settings}.json, .zed/{tasks,debug}.json, .idea/customTargets.xml) and vbs ide query workspace/target JSON output in CompDb.{hpp,cpp}, Watcher.cpp, Main.cpp, tests/CliContracts.cmake, and tests/FullV1Tests.cpp.
  • Wave 11 (Track D1–D2 Shared HTTP Action Cache & Parallel Snapshot Hashing):

    • D1: Added include/Void/Build/State/RemoteCache.hpp + src/State/RemoteCache.cpp (bearer-authenticated HTTP CAS client with SHA-256 verification on every read), StateStore remote action/blob APIs, /api/v1/cas/{blobs,actions} endpoints with RBAC/audit in vbs-registry, build-path-independent remote action keys and normalized records in Scheduler.cpp, and vbs build|test --remote-cache / --remote-cache-token-env (plus VBS_REMOTE_CACHE / VBS_REMOTE_CACHE_TOKEN).
    • D2: Snapshot capture revalidation now hashes on a bounded Void::Concurrency::ThreadPool for trees of 32+ files.
    • Docker verification: built and tested in voidlibrary-dev (GCC 16.0.1, pinned VoidLibrary 3e25405) with 8/8 CTest suites passing. D1 acceptance verified end-to-end: a cold vbs build populates the remote CAS, and a second clean build directory reports 0 executed with the binary running. D2 benchmark on 5,001 files: warm_noop_ms=374 (5,002 cached, 0 executed), meeting the sub-second gate. Also fixed the self-host recipe source list for RemoteCache.cpp and accepted GCC 16's -lgcc_s_asneeded system link flag.
  • Wave 12 (Track E2 Multi-Package Workspaces):

    • Added the workspace SDK (Void::Build::Workspace, workspace(Workspace&), Project::workspace_dependency()), workspace.cpp descriptor discovery/evaluation in Config::Frontend, and workspace orchestration in src/Main.cpp: each member builds with its own build.cpp/profiles while sharing the root vbs.lock and build/.vbs CAS.
    • Cross-member linking resolves workspace_dependency("lib").target("core") to the member's native path provider through VBS_WORKSPACE_MEMBER_<name>; --member <pkg> and --changed-since <ref> select affected members. Member builds do not steal the project-root compile_commands.json alias, and path-dependency snapshots exclude generated editor metadata.
    • Docker verification: FullV1Tests.workspace_members_shared_build_and_member_selection builds a 3-member workspace (shared library + app + test) with a unified root lockfile, runs the app, selects a single member, and selects by changed file; all 8 CTest suites pass.
  • Wave 13 (Track D3 SBOM Provenance):

    • Added include/Void/Build/Provenance/Sbom.hpp + src/Provenance/Sbom.cpp with deterministic SPDX 2.3 and CycloneDX 1.5 JSON generation from lockfile packages and BuildGraph target outputs (content-derived namespace/serial and epoch timestamp).
    • Wired vbs build|test --sbom FILE --sbom-format spdx|cyclonedx in src/Main.cpp, writing per-profile files when multiple profiles are selected.
    • Added include/Void/Build/Provenance/Signing.hpp + src/Provenance/Signing.cpp + tests/SigningTests.cpp: Ed25519 detached-signature primitives (owner-only 0600 seed generation, public-key derivation, canonical vbs-package-v1 message, sign/verify) capability-gated on Void::Crypto's OpenSSL backend. Without OpenSSL every operation fails closed with an explicit unsupported error; signature enforcement in vbs publish/vbs build --locked and the OpenSSL-backed round-trip run remain planned.
    • Docker verification: FullV1Tests.sbom_spdx_and_cyclonedx_are_deterministic_and_valid_json plus a CLI --sbom assertion in the workspace test; full CTest suite passes.
  • Wave 14 (Track E3 Unix-Socket Daemon Core, Track C1 Linux Platform Backend Split, & CMake 4.5 Feature-Carrier Translation Fix):

    • Implemented Void::Build::Daemon in include/Void/Build/Daemon/Daemon.hpp and src/Daemon/Daemon.cpp: a bounded single-threaded Unix-domain-socket daemon that holds a warm StateStore and project InotifyWatcher, serves strict newline-delimited JSON requests (ping, status, gc, recover, describe, shutdown) with bounded describe graph summaries (target_names ≤ 128 entries × 200 bytes, profile ≤ 128 bytes, 10 s evaluation timeout), probes and replaces stale sockets, binds with 0600 permissions, recovers watcher overflow via rescan, and removes only its own socket (device/inode checked). Wired vbs daemon run|status|stop|gc|recover|describe into src/Main.cpp and added tests/DaemonTests.cpp (VOID_TEST(Daemon, ...)) plus CLI contracts.
    • Split OS-specific platform implementations into src/Platform/Linux/ and added include/Void/Build/Platform/Host.hpp (HostOs, host_os(), host_supported()); macOS/Windows backends remain planned Track C2/C3 scope.
    • Fixed bounded CMake translation for CMake 4.5's synthesized @cmake_cxx_std@(synth_N) INTERFACE_LIBRARY feature carriers in src/Provider/Translator.cpp: their standard flag is already lowered from compile groups, so they are skipped instead of reported as untranslated dependency edges. Restored FullV1Tests.track_b3_foreign_cmake_cxx20_modules_native_translation on CMake 4.5.
  • Wave 15 (Track D3 Signed-Package Enforcement):

    • Extended the package model (ReleaseRecord, SolvedPackage, LockedSourceEntry) and vbs.lock serialization with optional Ed25519 signature/public_key fields (omitted from JSON when absent, so existing locks stay byte-compatible).
    • vbs publish --signing-key FILE signs the canonical vbs-package-v1 message; vbs-registry stores and serves X-Package-Signature/X-Package-Public-Key metadata with strict 128/64 hex validation; vbs build|test --trusted-public-key HEX (repeatable) fails closed before package extraction unless the signature verifies against a trusted key.
    • Added Void::Build::Provenance::verify_trusted_package_signature (include/Void/Build/Provenance/Verification.hpp, src/Provenance/Verification.cpp) with explicit Verified/Unsigned/UntrustedKey/InvalidSignature decisions, plus tests/SignatureEnforcementTests.cpp and registry metadata/signed-E2E coverage.
  • Wave 16 (Track E3 Daemon Build-Serving):

    • Added the build daemon request in src/Daemon/Daemon.cpp: graph evaluation is shared with describe (evaluate_project_graph), then executed in-process through Execution::execute_graph against the daemon's warm StateStore. The response is bounded JSON (ok, profile, targets, actions, executed, cached, failed, diagnostic, failed_actions). Requests accept profile, compiler, targets (≤ 64 bounded strings) and jobs (0–256).
    • Wired vbs daemon build [--profile] [--target]... [--jobs] in src/Main.cpp with a long-running client timeout, plus Daemon.build_executes_project_graph_and_reuses_cache (cold build creates the binary, second request is fully cached, invalid targets type rejected) and a CLI help contract. Dependency materialization stays with vbs build/vbs deps; the daemon builds the already-describable graph.
  • Wave 17 (VoidLibrary #52 Follow-up: Built-in Ed25519 Capability Probe):

    • Issue #52 (built-in Ed25519 backend) was resolved upstream. Provenance::signing_available() in src/Provenance/Signing.cpp now probes an actual Ed25519 sign operation instead of assuming the OpenSSL backend, so a built-in backend is used automatically and the error message no longer claims OpenSSL specifically.
    • Verified against upstream main exported to /tmp/opencode/vl-main without OpenSSL: Signing 4/4 (the crypto round-trip actually runs, 151.8 ms) and SignatureEnforcement 3/3.
    • The VoidLibrary pin was then bumped to 0002e74a7da94a756f55a4a5574d20b77736c185 (upstream main, containing #52) in CMakeLists.txt and build.cpp, with the pin assertions in tests/DescribeContracts.cmake and tests/ExampleContexts.cpp updated.
  • Wave 18 (Track E3 Daemon-Side Dependency Materialization):

    • Extracted the CLI's dependency resolution/materialization pipeline into the reusable library API Package::resolve_and_materialize_dependencies (include/Void/Build/Package/Resolver.hpp, src/Package/Resolver.cpp) with explicit ResolveOptions (project/build root, pinned lock, offline/upgrade, trusted keys, registry URL/auth); src/Main.cpp is now a thin adapter over it.
    • The daemon build request now loads TOML dependency manifests, merges declared dependencies, resolves and materializes them (pinned lock + registry environment), imports native/CMake/Meson/Conan provider targets, and lowers the graph with those imported interfaces before executing. Responses report dependencies. Added Daemon.build_materializes_path_dependency (path dependency materialized, imported, linked, and built over the socket).
  • Wave 19 (Track D3 Trusted-Key Distribution):

    • Added Void::Build::Provenance::load_trusted_keys / normalize_public_key (include/Void/Build/Provenance/TrustedKeys.hpp, src/Provenance/TrustedKeys.cpp): keys are loaded from explicit --trusted-key-file files, an implicit project vbs.keys ring, and VBS_TRUSTED_PUBLIC_KEYS (comma/whitespace separated), validated as 64-hex, lowercased, and deduplicated. Malformed keys and unreadable files fail explicitly with file:line context.
    • vbs build|test combines inline --trusted-public-key values with file/env sources; the daemon build request loads vbs.keys + the environment variable before resolving dependencies. SignatureEnforcement now has 5 cases.
  • Wave 20 (Track D3 Binary-Variant Signing):

    • Added generic Ed25519 message primitives (sign_message/verify_message) in Provenance::Signing, optional signature/public_key on BinaryVariantMeta, the canonical vbs-binary-v1 message and verify_trusted_binary_signature trust policy, and select_compatible_signed_binary: it selects the first ABI-compatible variant and, when trusted keys are supplied, fails closed on unsigned, untrusted, or invalid variants. With no trusted keys it matches select_compatible_binary.
    • SignatureEnforcement now covers binary-variant policy and signed selection (7 cases). Binary-variant distribution/download remains future work; this is the verification layer used by it.
  • Wave 21 (Track E3 Daemon-Backed Editor Metadata):

    • Added the ide_query daemon request (vbs daemon ide query): it evaluates/lowers the project graph, publishes the profile compilation database (selecting it when no editor selection exists), and returns the IDE metadata JSON (schema_version, project/build roots, profile identity, toolchain, compdb path, and per-target sources/outputs) wrapped with ok/op/compdb. The response flattens the query's trailing newline so the socket protocol stays one JSON object per line.
    • Added Daemon.ide_query_serves_workspace_targets_and_compdb (compdb exists on disk, schema/profile/app target present) and a CLI help contract; Daemon suite is now 9 cases.
  • Wave 22 (Track D3 Binary-Variant Distribution):

    • Added download_binary_artifact (RegistryClient): fetches an absolute http(s) binary artifact URL and verifies its SHA-256 before the atomic write. Added materialize_binary_variant (BinaryFetchOptions): selects a compatible variant (trusted-signature checked), reuses <cache>/binaries/<sha256> only when the cached digest still matches, and downloads otherwise.
    • RegistryTests.binary_variant_distribution_downloads_and_verifies: a signed variant is downloaded from the live registry package endpoint, byte-for-byte verified, reused from cache after the server stops, and rejected on digest mismatch.
  • Wave 23 (Track C1 Watcher Backend Split):

    • Moved the Linux inotify watcher implementation to src/Watch/Linux/Watcher.cpp with an explicit non-Linux compile-time boundary, completing the src/Watch/Linux/ layout alongside src/Platform/Linux/; source lists (CMake, build.cpp, self-host recipe) and path references updated.
  • Wave 24 (Track E3 Daemon Compdb Export):

    • Added the compdb_export daemon request (vbs daemon compdb export [--profile]): it lowers the project graph, publishes/selects the profile compilation database, and returns ok/op=compdb/profile/compdb path/entries count. Shared compdb publication helpers are reused by ide_query.
    • Added Daemon.compdb_export_publishes_compilation_database and a CLI help contract; Daemon suite is now 10 cases.
  • Wave 25 (Track E3 Daemon IDE Generate):

    • Added the ide_generate daemon request (vbs daemon ide generate [--profile] [--editor] [--force]): it lowers the graph, publishes the compilation database, writes the requested editor presets (.clangd, .vscode/, .zed/, .idea/), and returns ok/op=ide_generate/profile/editor with written and skipped file lists.
    • Added Daemon.ide_generate_writes_editor_configs (invalid editor rejected; .clangd written) and a CLI help contract; Daemon suite is now 11 cases.
  • Wave 26 (Track E3 Editor-Extension Watch Protocol):

    • Added the watch_poll daemon request (vbs daemon ide poll): it drains the warm inotify watcher, buffers changed paths (bounded to 4096, shared with the daemon loop so events are never lost between requests), and returns sequence, watch_events, changed, overflowed, and rescan_required for editor extensions.
    • Added Daemon.watch_poll_reports_changed_paths (a newly created file is observed through repeated polls) and a CLI help contract; Daemon suite is now 12 cases.
  • Wave 27 (Track E3 Editor Long-Poll Watch):

    • Added the watch_wait daemon request (vbs daemon ide wait [--timeout-ms]): a bounded long poll (0–5000 ms, default 2000) that returns buffered changes immediately or waits on the warm inotify watcher, then reports changed, sequence, watch_events, and timed_out. Because the daemon is single-threaded the wait is bounded; other requests queue behind it.
    • Added Daemon.watch_wait_long_polls_until_change_and_times_out (quiet timeout, then a writer thread wakes the poll) and a CLI help contract; Daemon suite is now 13 cases.
  • Wave 28 (Registry Binary-Variant Storage & Download Endpoints):

    • vbs-registry now stores per-release binary variants (BinaryReleaseMeta in ReleaseMeta): PUT /api/v1/packages/<name>/<version>/binaries/<variant> (publish scope + CSRF, 128-byte bounded variant ids, upload/quota limits, optional X-Binary-Signature/X-Binary-Public-Key with 128/64-hex validation, idempotent same-digest and 409 immutable conflicts) and GET .../binaries/<variant>/download (read permission, CAS integrity re-verification). Metadata persists in the registry database and is listed in package detail JSON.
    • RegistryTests.registry_binary_variant_publish_download_and_materialize: unauthorized publish rejected, malformed signature rejected, signed artifact published and listed, downloaded byte-for-byte, conflicting digest rejected, and the registry-served artifact materialized through the signed materialize_binary_variant path.
  • Wave 29 (RegistryClient Binary-Variant API & Signed CLI Publish):

    • Added Package::publish_binary_variant (reads the artifact, computes SHA-256, optionally signs the canonical binary message with --signing-key, sends X-Binary-Signature/X-Binary-Public-Key) and Package::fetch_binary_variants (parses a release's binary list from the registry detail JSON) in RegistryClient.
    • Wired vbs publish-binary --registry --name --version --variant --file [--signing-key] [--token-env] into src/Main.cpp; the registry binary-variant test now publishes/lists through the client API in addition to the loopback endpoint checks.
  • Wave 30 (Binaries CLI):

    • Added vbs binaries list|fetch backed by Package::fetch_binary_variants: list prints one line per variant (id sha256 size signed|unsigned), and fetch resolves the variant, builds the registry download URL, and downloads the artifact with SHA-256 verification via download_binary_artifact.
    • vbs_cli_contract covers the help/error contracts; the live registry CLI E2E now publishes a binary variant with vbs publish-binary, lists it, and fetches it byte-for-byte.
  • Wave 31 (Daemon Workspace Support):

    • Daemon describe now evaluates workspace.cpp roots: it canonicalizes members, exports VBS_WORKSPACE_MEMBER_<name>, and returns a bounded per-member summary (name, path, targets, actions, target_names).
    • Daemon build accepts a member field for workspace roots (shared root vbs.lock via a new lock_root option) and builds that member's graph; a workspace build without member is rejected explicitly. DaemonOptions gained lock_root (empty = project root).
    • Daemon.describe_and_build_workspace_members replaces the old workspace-rejection test.
  • Wave 32 (Member-Scoped Daemon IDE Requests):

    • Extracted resolve_member_options (workspace member selection, shared root lock) and applied it to the daemon ide_query, ide_generate, and compdb_export requests; non-workspace roots reject member, workspace roots require it.
    • vbs daemon ide query|generate and vbs daemon compdb export accept --member; the workspace daemon test now covers member-scoped IDE query/generate (.clangd in the member directory) and the missing-member error.
  • Wave 33 (Daemon Workspace-Wide Build):

    • Split the daemon build path into execute_project_build (returns a structured BuildOutcome) and build_project; a workspace build without member now builds every member in declared order, sharing the root lock and CAS, and returns per-member outcomes plus aggregate executed/cached/failed. A member-scoped build still returns member.
    • The workspace daemon test now expects the workspace-wide build to succeed and include both members, in addition to the member-scoped IDE checks.
  • Wave 34 (Editor Status Protocol Request):

    • Added the editor_status daemon request (vbs daemon ide status): reports the active editor selection (ticket, profile, build root, generation id, compdb path, root-alias state) plus whether the selected compilation database exists and how many entries it holds.
    • Added Daemon.editor_status_reports_selection_after_compdb_export (no selection before export, then debug selection with a non-empty compdb) and a CLI help contract; Daemon suite is now 14 cases.
  • Wave 35 (Daemon Compdb Use):

    • Added the compdb_use daemon request (vbs daemon compdb use --profile): it switches the active editor profile to an already-published compilation database via Editor::select_editor_profile (selection lock) and returns the selected profile, generation id, ticket, and compdb path.
    • Added Daemon.compdb_use_switches_active_editor_profile (export then select debug; unknown profile rejected) and a CLI help contract; Daemon suite is now 15 cases.
  • Wave 36 (Registry Binary-Variant Yank):

    • Added POST /api/v1/packages/<name>/<version>/binaries/<variant>/yank to vbs-registry (auth + CSRF, publish authority, {"yanked":bool} body defaulting to true) with BinaryReleaseMeta::yanked persisted and listed in detail JSON. RegistryClient::fetch_binary_variants now exposes yanked and never returns yanked variants for selection.
    • The registry binary-variant test now checks unauthenticated yank rejection, CSRF-protected session yank, the yanked flag in the detail JSON, and that the yanked variant disappears from the client variant list.
  • Wave 37 (Daemon Graph Export): added the graph daemon request (vbs daemon graph [--profile] [--format dot|json] [--member]) returning the target dependency graph in a JSON envelope, plus Daemon.graph_exports_target_dependencies_as_json_and_dot.

  • Wave 38 (Daemon Test Request): vbs daemon test [--profile] [--target] [--jobs] runs declared test targets after the build (bounded output, pass/fail counts) and works for workspace-wide runs; Daemon.test_builds_and_runs_declared_tests.

  • Wave 39 (Compdb Entries Query): compdb_entries daemon request (vbs daemon compdb entries [--file SUFFIX] [--limit N]) serves bounded projected entries from the active compilation database; Daemon.compdb_entries_queries_published_database.

  • Wave 40 (Authenticated Binary-Variant Downloads): download_binary_artifact accepts RegistryAuth, BinaryFetchOptions carries a bearer token, and vbs binaries fetch forwards it; RegistryTests.private_binary_variant_download_requires_auth.

  • Wave 41 (Yanked Binary Variants in Listing): fetch_binary_variants(include_yanked); listings mark yanked variants while selection and fetch never see them.

  • Wave 42 (Registry Binary-Variant Listing Endpoint): GET .../binaries; the client queries it directly instead of parsing package detail JSON.

  • Wave 43 (Workspace Members Request): workspace_members daemon request lists declared members without evaluating them.

  • Wave 44 (IDE Configs Request): ide_configs daemon request reports which editor configuration files exist.

  • Wave 45 (Compdb Generations Request): compdb_generations daemon request lists immutable editor generations with the active selection, status and entry counts (profile names validated).

  • Wave 46 (Registry Package Search Pagination): GET /api/v1/packages?limit&offset with a total envelope and 400 validation.

  • Wave 47 (Registry Release Detail): GET /api/v1/packages/<name>/<version> with metadata and binary summaries.

  • Wave 48 (Daemon Deps Request): deps daemon request resolves/materializes dependencies and returns the lock context entries.

  • Wave 49 (Daemon Info Request): info daemon request exposes version, host, roots, and socket path.

  • Wave 50 (Registry Audit Query Filters): /api/v1/audit supports actor/action/outcome/limit/offset with an envelope.

  • Wave 51 (Track E4 Void::Sqlite StateStore): with VBS_HAS_VOID_SQLITE the StateStore keeps its cache in state.v2.sqlite (Void::Sqlite) and imports the legacy JSON once; the JSON fallback remains.

  • Wave 52 (Live Conan2 Verification): FullV1Tests.track_b3_live_conan_provider_install creates a real package in an isolated CONAN_HOME and runs a real conan install through the provider.

  • Wave 53 (Track E4 Void::Net Registry Client): Void::Net is enabled when Boost/OpenSSL/Threads are found; RegistryClient uses Void::Net::HttpClient::secure(), keeping the POSIX/curl fallback.

  • Wave 54 (Track E4 Void::Net Registry Server): Registry::HttpServer serves through Void::Net::HttpServer behind VBS_HAS_VOID_NET with a request/response bridge and shared security headers.

  • Wave 55 (Track E4 Void::Net Remote Cache): RemoteCache HTTP exchange uses Void::Net when available.

  • Wave 56 (Host Reporting in vbs doctor): reports HostOs/host_supported() and the optional Sqlite/Net backends.

  • Wave 57 (Daemon Clean Request): Config::clean_build_tree extraction; clean daemon request with structured report.

  • Wave 58 (Daemon Target Info Request): target_info daemon request reports a target's kind, sources, outputs and runtime libraries.

  • Wave 59 (Daemon Pack Request): pack daemon request creates the deterministic source archive confined to the build root.

  • Wave 60 (Daemon Actions Request & Binary Variant Detail): actions daemon request lists bounded lowered actions; GET .../binaries/<variant> returns one variant's metadata.

  • Wave 61 (Registry Package Ownership API): audited GET/PUT/DELETE .../owners[/<user>] with authority, CSRF, 404/409 handling.

  • Wave 62 (vbs releases list): registry client release listing CLI.

  • Wave 63 (Daemon Install Request): install daemon request builds and stages an install prefix, returning manifest and file count.

  • Wave 64 (Daemon Uninstall Request): uninstall daemon request removes only manifest-owned files.

  • Wave 65 (Daemon Gen-Tests Request): gen_tests daemon request generates the native registration unit, confined to project/build roots.

  • Wave 66 (Signed vbs binaries fetch): fetch requires a verified variant signature when trusted keys are configured.

  • Wave 67 (Daemon Init Request): Config::scaffold_project extraction; init daemon request scaffolds confined projects.

  • Wave 68 (Daemon clean --all Coverage): Daemon.clean_all_removes_entire_build_root verifies whole-build-root removal while the connected client still receives the response.

  • Wave 69 (RegistryClient Owners Helper, via swarm): a swarm worker added Package::fetch_package_owners (GET /api/v1/packages/<name>/owners, explicit 404/401/403 mapping) and RegistryTests coverage (owner list contains pub_alice, missing package fails, anonymous private access fails); the orchestrator reviewed, built, and verified it.

  • Wave 70 (Track C1: Portable Executable Path & Daemon Host Reporting): added Platform::current_executable_path() (FileOps.hpp, implemented in src/Platform/Linux/FileOps.cpp with an explicit error on failure) and replaced the hard-coded /proc/self/exe reads in src/Main.cpp; CoreEngineTests.current_executable_path_resolves_running_binary covers it. A swarm worker (5/5 tasks) extended the daemon info response with host_os, host_supported, and a backends object (file ops, process supervisor, directory watcher, sqlite, net), asserted in Daemon.info_reports_daemon_paths_and_host.

  • Wave 71 (Member-Filtered Daemon describe & Test Executable-Path Cleanup): describe accepts an optional member (workspace roots only; unknown members rejected) so one member can be described without evaluating the others. A swarm worker replaced the remaining /proc/self/exe lookups in tests/{Registry,FullV1,SelfHost}Tests.cpp with Platform::current_executable_path() (5/5 substantive tasks; its final build task was stopped and re-run by the orchestrator).

  • Wave 72 (Daemon Target Flags & Registry Search Test Depth): added the target_flags daemon request (vbs daemon target flags --name [--file] [--profile] [--member]) returning each compilation unit's bounded arguments, defines, and compile options (unknown targets rejected, file-suffix filter). A swarm worker extended RegistryTests with search q filtering (name and description), offset pagination envelope assertions, far-offset empty pages, and invalid offset/limit rejection (4/4 substantive tasks; its final build task was stopped and re-run by the orchestrator).

  • Wave 73 (Actions Kind Filter & vbs releases show): the daemon actions request gained a kind filter (--kind), asserted in Daemon.actions_lists_lowered_actions. A swarm worker (7/7 tasks) added Package::fetch_release_detail (ReleaseInfo) and vbs releases show --registry --name --version, covered by CLI contracts and the live registry E2E.

  • Wave 74 (Self-Excluding Source Archives & Release-Detail Tests): create_source_package now skips its own output archive (and any stale copy at that path), so packing into a non-build-named directory no longer embeds the previous archive; asserted in archive_security_determinism_binary_abi_and_redaction. A swarm worker added a dedicated release-detail test (fields, signature metadata, 404, private auth) to RegistryTests (5/5 substantive tasks; its build task was stopped and re-run by the orchestrator).

  • Wave 75 (HEAD/Content-Length Support & Daemon compdb_stale): the registry server (both the POSIX loop and the Void::Net bridge) routes HEAD exactly like GET while suppressing the body and preserving Content-Length/content headers; asserted for release and binary downloads. A swarm worker (4/4 substantive tasks; build task stopped and re-run) added the compdb_stale daemon request (marks a profile generation stale with an optional reason) and Daemon.compdb_stale_marks_generation_stale.

  • Wave 76 (Range Downloads & Install Option Tests): registry release/binary downloads honour a single Range: bytes=... header (206 + Content-Range, Accept-Ranges: bytes, suffix/open-ended forms, 416 for unsatisfiable/multipart ranges). A swarm worker extended the daemon install test with component, export_cmake=false/export_native=false, and empty-prefix uninstall assertions (5/5 substantive tasks; build task stopped and re-run).

  • Wave 77 (ETag/304 & Daemon deps --offline): registry release detail, binary listing, and binary detail responses now carry a strong ETag (+ Cache-Control: no-cache) and honour If-None-Match with a bodyless 304; asserted in the registry binary-variant test. A swarm worker (5/5 substantive tasks; build task stopped and re-run) added an offline boolean to the daemon deps request with validation and tests.

  • Wave 78 (Download ETag/304 & Daemon status Pending Changes): release and binary downloads now carry an ETag equal to the artifact digest and answer matching If-None-Match requests with a bodyless 304 before reading any bytes. A swarm worker added pending_changes to the daemon status response and covered it in the watch test (4/4 substantive tasks; build task stopped and re-run).

  • Wave 79 (Registry Metadata PATCH & Daemon workspace_info): PATCH /api/v1/packages/<name> updates mutable description/private metadata (auth + CSRF, publish authority, validated body, audited package.update), covered in the RBAC test with a dedicated private package. A swarm worker added the workspace_info daemon request (members plus root lockfile presence/size, workspace:false for plain projects) with tests (5/5 substantive tasks; build task stopped and re-run).

  • Wave 80 (Watch Prefix Filter & Registry OPTIONS): watch_poll/watch_wait accept a bounded prefix filter that returns only matching buffered changes while retaining non-matching ones for later requests (vbs daemon ide poll|wait --prefix), covered in the watch test. A swarm worker added an OPTIONS preflight (204 + Allow) to the registry with a dedicated test (4/4 substantive tasks; build task stopped and re-run).

  • Wave 81 (Registry Stats & Daemon doctor): added the admin GET /api/v1/stats endpoint (package/release/yanked/binary/user/audit counts, ETag-validated) covered in the RBAC test (admin 200 with ETag, non-admin 403). A swarm worker added the structured doctor daemon request (host/tool/backends JSON) with Daemon.doctor_reports_host_tools_and_backends (5/5 substantive tasks; build task stopped and re-run).

  • Wave 82 (Tokens Listing & Daemon target_list): added Package::fetch_tokens and vbs tokens list --registry (token id, label, user, scopes, active/revoked; the plaintext secret is never listed), covered in the CLI E2E. A swarm worker added the target_list daemon request (sorted name/kind/enabled with limit and member support) and its test (5/5 tasks, including its own verification).

  • Wave 83 (Token Revocation & Daemon deps --update): added Package::revoke_token and vbs tokens revoke --registry --token-id, with a CLI E2E that revokes a second token and observes it as revoked in the listing. A swarm worker added an update boolean to the daemon deps request (allow compatible upgrades) with validation and plumbing tests (5/5 substantive tasks; build task stopped and re-run).

  • Wave 84 (Daemon Install CLI Options & Registry Users Pagination): vbs daemon install now exposes --component, --no-cmake-export, and --no-native-export (matching the daemon protocol). A swarm worker paginated the admin GET /api/v1/users route (limit/offset envelope, 400 validation) with RegistryTests coverage (4/4 substantive tasks; build task stopped and re-run).

  • Wave 85 (vbs lock show & Daemon Mermaid Graphs): added vbs lock show [--project DIR] printing the pinned lock revision, contexts, and entries (package/version/source/digest/signed state). A swarm worker added a mermaid format to the daemon graph request (flowchart nodes/links/prerequisites) with test coverage (4/5 substantive tasks; the final build/help tasks were stopped and completed by the orchestrator).

  • Wave 86 (Shared Compdb Entry Query & vbs compdb-entries): extracted the bounded compile-database projection into Editor::query_compdb_entries (CompdbEntry/CompdbQuery/CompdbQueryResult), reused by the daemon compdb_entries request and exposed as the vbs compdb-entries [--project] [--build-dir] [--file] [--limit] CLI.

  • Wave 87 (vbs releases yank & Daemon info Workspace/Lockfile): added Package::set_release_yanked and vbs releases yank --registry --name --version [--unyank], exercised live in the registry E2E. A swarm worker extended the daemon info response with workspace and lockfile ({path, exists}) fields and their test (4/4 substantive tasks; build task stopped and re-run).

  • Wave 88 (Track C1 Platform Boundaries): added explicit compile-time boundaries for the daemon Unix-socket transport (Windows #error pointing at Track C3) and the registry POSIX HTTP server/loopback client (swarm worker), and Windows-safe _putenv_s branches for the workspace member environment in Main.cpp/Daemon.cpp. Linux behavior is unchanged (full CTest 8/8).

Remaining future scope

  • Post-v1 Expansion Roadmap (21-expansion-roadmap.md & 20-future-translation-platforms.md): Track C (macOS/Windows ports + dual-profile cross-compilation) and dedicated external editor plugins remain planned; Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement/distribution, binary-variant signing/distribution) and Track E3 daemon capabilities are implemented, and Track E4 now uses Void::Net for the registry client/server and remote cache plus Void::Sqlite for the StateStore when available.