Files
Build-System/docs/roadmap/23-remaining-upgrade-plan.md
T
faumaray 4b5ef128dc
VoidBuildSystem CI / 1 · Requirements (push) Successful in 7s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m5s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m26s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m37s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m20s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m0s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m29s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m40s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 21s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m10s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 5m26s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 28s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
docs: add the gap-closure (23) and superiority (24) plans
Plan 23 (Track F) re-baselines the gaps after Wave 146 and turns them into
F1–F14 with planned interfaces, acceptance gates and milestones:
hermetic sandboxing, Windows IPC/watcher/native backends, macOS/MSVC,
multi-machine orchestration, registry mirrors/federation/keys/vcpkg, BEP,
10k scaling and changes-proportional snapshots, migration depth, native
Windows CI, cross-platform determinism, PKG/APK/IFW installers, GUI/LSP
polish and maintenance.

Plan 24 (Track G) targets being better rather than equal, including against
Cargo: Cargo-grade lifecycle commands, additive C++ feature flags (the
current Dependency::feature is recorded but not applied), per-package
profiles and toolchain pinning, polyglot Rust/Fortran/CUDA/Zig, SLSA
attestations plus a sandboxed descriptor, versioned metadata schemas with
DAP and plugin protocols, affected builds/tests and build scans,
doctests/sharding/coverage gates/fuzzing, zero-config onboarding, the
distribution ecosystem, policy-as-code with vbs ci, and two-way interop.

Both plans are marked planned; the roadmap index, TASKS and STATE point at
them. Also fixes the stale .github/workflows link in the roadmap index.
2026-12-06 19:00:41 +03:00

29 KiB
Raw Blame History

23 — Remaining upgrade plan (Track F)

Status: planned (2026-12-06). Nothing in this plan is implemented unless it is listed in §1 Verified baseline. Every interface shown here is a proposed interface, not an existing one.

This plan continues 21 — Post-v1 expansion roadmap and 22 — Superiority roadmap. It exists because Plan 22's gap inventory was written before the Wave 146 work (CI hardening, explainability, shared caches, CLI surface, migration breadth); this document re-baselines the gaps and turns the remaining ones into executable tracks with acceptance gates.

Sources: REQUIREMENTS, ARCHITECTURE, plans 01–22, STATE, TASKS, VERIFICATION, and the observed results recorded there.

Legend: S = days, M = 1–2 weeks, L = multi-week. Blocked means the work cannot be accepted until the named external prerequisite exists.


1. Verified baseline

These are done and are not re-planned here. Evidence lives in STATE.md (Wave 146) and the named tests.

Capability Evidence
vbs explain [--format text|json] (why an action runs) FullV1Tests.explain_reports_stale_actions_and_trace_writes_chrome_json
vbs build|test --trace FILE Chrome traces same test parses the trace JSON
Test controls --repeat, --retry, --shuffle, --stop-on-failure FullV1Tests.test_repeat_retry_shuffle_and_stop_on_failure
Shared descriptor and probe caches (cold 3897 → 755 ms on the 20-source fixture) FullV1Tests.shared_user_cache_reuses_descriptor_and_probes_across_build_dirs
vbs completions --shell bash|zsh|fish, vbs man (86 pages) FullV1Tests.completions_and_man_pages_are_generated_from_the_cli
vbs migrate --from meson FullV1Tests.meson_build_import_renders_build_cpp_scaffold
vbs init --template app|library|header-only|shared FullV1Tests.init_templates_scaffold_buildable_projects
vbs presets --export FILE FullV1Tests.presets_export_round_trips_through_the_importer
JetBrains run configurations from vbs ide generate IDE integration test
Sanitizer-instrumented build descriptor (VBS_HOST_CXX_FLAGS) local ASan symbol check
CI coverage lane (lcov) lcov capture/summary verified locally; CI run 2105
Registry worker attempt budget and dead-letter list RegistryTests.worker_queue_abandons_actions_after_repeated_leases
CI images with msitools, rpm-tools, dpkg, meson, lcov Void/CI-Images runs 2099, 2104
MSI installer (--archive-format msi) local wixl output verified; CI ships wixl now
Blocking Wine/installer lanes, release asset replacement CI run 2102 (end to end)

Also verified and stable: Linux + MinGW/Wine targets, modules/PCH/header units/unity/LTO, workspaces, package manager + registry, SBOM/signing, daemon (Unix sockets, 30+ requests), remote worker protocol/queue/parallel workers, CTest-parity runner (labels, resources, fixtures, JUnit, CDash, coverage), all nine installer formats, pkg-config, ASM/shader bundles.


2. Updated gap inventory

Area Status Blocker / note
Hermetic sandboxing Missing snapshots define inputs, but actions can still read the whole filesystem
Windows daemon transport Missing Unix sockets only; named pipes return "not implemented (Track C3)"
Native Windows host backends Missing src/Platform/Linux and src/Watch/Linux #error on non-Linux hosts
Windows watcher (ReadDirectoryChangesW) Missing inotify only
macOS host (Apple Clang, ld64, FSEvents) Deferred no macOS host available
Native MSVC / clang-cl Deferred needs a Windows host; MSVC also lacks P1689 modules
Multi-machine orchestration Missing workers/queue/leases exist; no capacity, retries across machines, affinity
Registry federation / mirrors / key distribution Missing single registry; trusted keys are loaded, not distributed
vcpkg interop Missing Conan/CMake/Meson/pkg-config only
Build Event Protocol stream Missing Chrome trace exists; BEP does not
10k-target scaling benchmark Missing 20-source fixture only; Debug binary baseline
Snapshot work proportional to changed files Partial parallel hashing, but full revalidation per run
CMake/Meson migration depth Partial bounded subset; add_subdirectory, configure_file, custom_target are notes
Native Windows CI runner Missing Wine cannot run vbs_v1_tests/vbs_selfhost_tests
Cross-platform determinism Linux only Stage 2 == Stage 3 proven on Linux
PKG / APK / IFW installers, installer SBOM Missing tar, sh, zip, deb, rpm, wix, msi, dmg, nuget exist
GUI template Missing app, library, header-only, shared exist
LSP server / plugin marketplace Missing compdb + File API + plugin assets exist
Windows sanitizers Blocked Arch mingw-w64-gcc 16.2 ships no libasan/libubsan
CI/artifact housekeeping Pending old runs and stuck runs were requested for deletion

3. Tracks

F1 — Hermetic sandboxing (L)

Goal. Make "actions see only their snapshot inputs" a guarantee, not a convention: an action inherits a mount namespace in which the project snapshot tree is read-only, the profile build directory is writable, the toolchain and system libraries are read-only, and nothing else of the user's filesystem is visible.

Planned interfaces (include/Void/Build/Sandbox/Sandbox.hpp):

// PLANNED — not implemented.
namespace Void::Build::Sandbox {
enum class SandboxMode { Off, Warn, Strict };
struct SandboxOptions {
    std::filesystem::path project_root;
    std::filesystem::path profile_build_dir;
    std::vector<std::filesystem::path> toolchain_roots; // compiler sysroot, /usr, nix store
    bool allow_network{false};
    bool allow_tmp{true};
};
[[nodiscard]] bool sandbox_supported() noexcept; // user namespaces available
[[nodiscard]] Void::Result::Result<void, Void::Result::Error>
run_in_sandbox(const SandboxOptions &options, const Platform::ProcessRequest &request);
}

Work items.

  1. Linux backend in src/Sandbox/Linux/NamespaceSandbox.cpp: unshare(CLONE_NEWUSER | CLONE_NEWNS | CLONE_NEWNET), uid/gid maps, mount --bind of the snapshot tree (read-only), the profile build dir, /dev, /proc (or a minimal procfs), the toolchain sysroot, and the Nix store when present. Fall back to Warn when user namespaces are unavailable.
  2. Wire it into Execution::execute_graph behind vbs build|test --sandbox=off|warn|strict (default off until the suite is green under strict).
  3. Cache keys stay unchanged (sandboxing must not change results, only visibility).
  4. CI lane: --sandbox=strict for the SDK/core suites; a dedicated negative test.
  5. Document the hermeticity contract and its escape hatches (--sandbox=warn, env allowlist).

Acceptance gates.

  • FullV1Tests.sandbox_hides_undeclared_files: an action that opens a file outside the snapshot fails under strict and only warns under warn.
  • FullV1Tests.sandbox_allows_toolchain_and_build_dir: a normal compile/link/test succeeds under strict.
  • The full SDK/core suite passes under strict in CI.
  • No measurable warm-build regression beyond 5% on the 20-source fixture.

Risks. Unprivileged user namespaces are disabled on some hosts; compilers need /tmp and /proc/self; Nix store paths must be exposed; strict may break third-party generators.

Dependencies. None (Linux only). Needed by F11 for meaningful reproducibility claims.


F2 — Windows daemon transport and watcher (M for IPC; L with native backends)

Goal. Remove the last #error between the daemon/editor protocol and Windows.

Planned interfaces (include/Void/Build/Platform/Ipc.hpp):

// PLANNED — not implemented.
namespace Void::Build::Platform {
struct IpcEndpoint {
    enum class Kind { UnixSocket, NamedPipe } kind;
    std::filesystem::path unix_path;   // Unix
    std::wstring pipe_name;            // Windows, \\.\pipe\vbs-<hash>
};
[[nodiscard]] IpcEndpoint daemon_endpoint(const std::filesystem::path &build_root);
[[nodiscard]] Result<IpcConnection, Error> connect_ipc(const IpcEndpoint &endpoint);
}

Work items.

  1. Named-pipe server (CreateNamedPipe + overlapped I/O) and client in src/Platform/Windows/Ipc.cpp; the daemon loop keeps its newline-delimited JSON protocol.
  2. ReadDirectoryChangesW watcher in src/Watch/Windows/Watcher.cpp with the same MetadataOnly/FullBuild and overflow-rescan semantics as inotify.
  3. Windows FileOps/ProcessSupervisor backends (CreateProcessW with job objects for the descendant-supervision guarantees) so the daemon can run as a native Windows process.
  4. Keep the Unix implementation untouched; select the backend at compile time.
  5. Daemon tests run under Wine where possible, and on a native Windows runner once F10 exists.

Acceptance gates.

  • DaemonTests (all requests) pass against the named-pipe transport on a Windows host.
  • The watcher reports created/changed/deleted paths and overflow rescan identically to inotify (shared conformance test).
  • vbs daemon build from a native Windows vbs.exe builds a sample project.

Risks. Wine's named-pipe fidelity is partial; overlapped I/O errors are easy to get wrong; job-object supervision differs from POSIX process groups.

Dependencies. F10 for acceptance (native Windows runner). F2a (IPC + watcher) can be implemented and unit-tested under Wine earlier.


F3 — macOS host support (L; blocked on hardware)

Goal. First-class macOS host: Apple Clang, ld64, .dylib/.bundle, FSEvents.

Work items.

  1. src/Platform/Darwin/{FileOps,ProcessSupervisor}.cpp (kqueue/posix_spawn, F_SETNOSIGPIPE, proc_pidinfo for group reaping) and HostOs::MacOS.
  2. Apple Clang discovery and flag lowering (-arch, -mmacosx-version-min, -Wl,-install_name, @rpath, -undefined dynamic_lookup), libtool -static for archives.
  3. src/Watch/Darwin/Watcher.cpp on FSEvents with the same overflow/rescan contract.
  4. vbs install --archive-format dmg becomes mountable: HFS+/APFS payload writer instead of the current UDIF wrapper.
  5. Codesign hook: --codesign-identity, --entitlements, notarization as a documented external step.
  6. CI: a macos runner label and lane; until then, the platform stays unsupported.

Acceptance gates.

  • Configure, build and test a sample and VBS itself on macOS (observed run, version recorded).
  • vbs test passes the SDK/core suites on macOS.
  • .dmg mounts and installs on macOS (Plan 22 acceptance gate).

Risks. No host today; Apple Clang lacks some GCC flags; FSEvents coalescing differs from inotify.

Dependencies. A macOS machine or CI runner.


F4 — Native MSVC / clang-cl (L; blocked on hardware)

Goal. CompilerFamily::Msvc with direct cl.exe/link.exe invocation (no generator), and clang-cl as the module-capable variant.

Planned interface changes.

// PLANNED — not implemented.
enum class CompilerFamily { Gcc, Clang, Msvc, ClangCl };
enum class ModuleSupport { Full, ScanDepsOnly, Unavailable };

Work items.

  1. Toolchain probe: cl.exe version banner, link.exe/lib.exe, Windows SDK + MSVC include/lib discovery (vswhere), /std:c++latest, /EHsc, /MD//MT, /Zi, /O2, /utf-8.
  2. Response files (@file.rsp) for long command lines; .obj/.lib/.exe/.dll naming and import libraries.
  3. Incrementality: /showIncludes parsing into discovered inputs (the MSVC equivalent of depfiles), /Fd PDB handling, /Brepro for reproducible links.
  4. Modules: clang-cl via clang-scan-deps; MSVC via /scanDependencies where available, else capability-gated Unavailable with an explicit diagnostic.
  5. Exception/SEH/sanitizer capability probes; clang-cl sanitizer flags.

Acceptance gates.

  • Build and test a sample with cl.exe and with clang-cl on Windows; header-change incrementality proven (/showIncludes).
  • VBS itself builds with clang-cl (self-host stretch goal).
  • Modules either work (clang-cl) or fail with an explicit capability message (MSVC), never silently.

Risks. MSVC's module story is version-dependent; /showIncludes localization; PDB determinism.

Dependencies. F2 (Windows process backends) and F10.


F5 — Multi-machine orchestration (M)

Goal. Turn the existing worker/lease/queue protocol into a scheduler that distributes cacheable actions across machines with capacity awareness, retries and result verification.

Planned interface (Execution::ExecutionOptions additions):

// PLANNED — not implemented.
struct RemoteExecutionOptions {
    std::string registry_url;
    std::string bearer_token_env;
    std::size_t max_remote_actions{0};   // 0 = unlimited
    std::vector<std::string> labels;     // worker label affinity
    std::chrono::seconds lease{600};
    int retries{2};
};

Work items.

  1. Registry: worker capacity and labels (platform, os, arch, compiler, jobs), heartbeat load, GET /api/v1/workers?available=1, lease TTL bounded by capacity.
  2. Planner: classify actions as local-only (non-cacheable, host-dependent generators) vs remote-capable; prefer remote when the local queue is saturated and a matching worker exists.
  3. Client: submit action specs to the CAS, enqueue, wait for results with lease renewal, verify every output digest locally, retry on worker loss (bounded, reusing the attempt budget).
  4. Aggregate remote results into the normal ExecutionReport and vbs explain (source = remote).
  5. CLI: vbs build --remote --registry URL --remote-jobs N --worker-label k=v.

Acceptance gates.

  • Two local worker processes drain a 20-action graph; actions never duplicate.
  • Killing one worker mid-action makes its action retried on the other; the build succeeds.
  • Outputs are byte-identical to a local build (digest comparison).
  • --remote with no workers falls back to local execution with a warning.

Risks. Network flakiness, lease expiry vs long compiles, trusting remote outputs (mitigated by digest verification), debugging distributed failures.

Dependencies. None beyond the existing registry; benefits from F11 to trust remote artifacts.


F6 — Registry ecosystem: mirrors, federation, key distribution, vcpkg (L)

Goal. Make the registry usable beyond one server and one toolchain ecosystem.

Work items.

  1. Mirrors: --registry-mirror URL / VBS_REGISTRY_MIRRORS read-through list; downloads fall back in order, every artifact digest-verified, negative caching documented.
  2. Federation: GET /api/v1/federate/<name>/<version> proxy that fetches from an upstream registry once, stores it locally, and serves it afterwards; immutable releases keep 409 semantics; upstream credentials are never persisted.
  3. Trusted-key distribution: GET /api/v1/keys (public keys, fingerprints, rotation metadata) and vbs keys fetch --registry URL --output vbs.keys; keys are still validated locally.
  4. vcpkg interop: Dependency::vcpkg("fmt") resolving vcpkg.json + installed/<triplet> (headers, libraries, and .pc/CMake config files) into an imported target; vbs migrate --from vcpkg maps vcpkg.json dependencies into vbs.deps.toml notes.
  5. Document trust: mirrors and federation serve bytes, never signatures; key fetch does not grant trust.

Acceptance gates.

  • Mirror fallback E2E with two loopback registries (first down, second serves the artifact; digest verified).
  • Federation E2E: upstream package fetched once, served locally while upstream is stopped.
  • vbs keys fetch round-trips through load_trusted_keys and enforces signatures.
  • vcpkg fixture: a real installed vcpkg package builds and links.

Risks. vcpkg has no stable machine-readable install description (heuristics needed); federation doubles storage; mirror ordering can hide stale artifacts.

Dependencies. None.


F7 — Build Event Protocol stream (S)

Goal. Emit a machine-readable event stream for CI dashboards, beyond the Chrome trace.

Planned interface.

// PLANNED — not implemented.
struct BepEvent {
    std::string id;
    enum class Kind { BuildStarted, TargetStarted, ActionStarted, ActionFinished,
                      TestFinished, BuildFinished } kind;
    std::string label;
    std::optional<int> exit_code;
    std::chrono::milliseconds duration;
    std::string detail; // bounded
};

Work items.

  1. --bep FILE writes newline-delimited JSON (one event per line) with monotonic ids.
  2. Reuse the trace hooks in execute_build_or_test; add test-finished events from the runner.
  3. Bounded payloads (same 240-byte truncation rule as CI logs) and no secrets.
  4. --bep-http URL is explicitly out of scope until a consumer exists.

Acceptance gates.

  • FullV1Tests.bep_stream_contains_phase_action_and_test_events parses every line as JSON and checks the event kinds.
  • A failing build emits ActionFinished with a non-zero exit code and a terminal BuildFinished event.

Risks. Low; scope creep toward a full BEP schema.

Dependencies. None.


F8 — Performance: 10k targets, Release baseline, change-proportional snapshots (M)

Goal. Replace anecdotal performance claims with measured, repeatable ones, and keep snapshot cost proportional to changed files.

Work items.

  1. Extend benchmarks/compare.sh with --targets N (generated targets, not just sources) and --json output; add fixtures for 20 / 1,000 / 10,000 targets.
  2. Record a Release vbs baseline (cold, warm, incremental single-file change) next to CMake/Ninja and Meson; store the numbers in Plan 22 §6 with the binary's build type.
  3. Snapshot memo: reuse the previous manifest when the stat fingerprint (size + mtime + inode) and the content digest of every declared input are unchanged, instead of re-hashing every file in every scan root. The manifest keeps full content hashes; a full revalidation runs when the memo is missing or the fingerprint changed.
  4. Profile the remaining warm path (config 1–2 ms, toolchain 7–11 ms, snapshot ~20 ms) and set explicit gates: warm no-op and single-file incremental budgets per fixture size.

Acceptance gates.

  • benchmarks/compare.sh --targets 10000 --json runs and reports VBS cold/warm/incremental.
  • Warm no-op on the 20-source fixture stays ≤ 150 ms (Debug) and is recorded for Release.
  • A single changed source rebuilds only its compile + link closure (asserted by action counts).
  • No snapshot correctness regression: the existing snapshot mutation tests still pass.

Risks. Stat-based memoization can miss same-size/same-mtime edits — mitigated by reusing only manifest entries whose digest was content-verified, plus periodic full revalidation.

Dependencies. None.


F9 — Migration depth: CMake and Meson (M)

Goal. Raise vbs migrate from "bounded subset" to "covers the common project shape", always reporting what it cannot translate.

Work items.

  1. CMake: add_subdirectory recursion (with cycle detection), target_compile_options, target_compile_features, CMAKE_CXX_STANDARD, a generator-expression subset ($<CONFIG:...>, $<BUILD_INTERFACE:...>, $<INSTALL_INTERFACE:...>), find_package → typed notes, configure_file detection, install(FILES|DIRECTORY).
  2. Meson: configure_file, custom_target → custom_action, subdir, install_headers, declare_dependency, dependency(...) → .pkgconfig(), add_project_arguments.
  3. Golden-file tests: fixture project → expected build.cpp snapshot; and the rendered scaffold must build and test for the fixtures that are fully covered.
  4. --strict mode that fails when unsupported constructs exist (CI migration gate).

Acceptance gates.

  • Golden-file tests for at least four CMake and four Meson fixtures.
  • Every fully covered fixture's generated build.cpp builds and its tests pass.
  • --strict exits non-zero on a fixture with add_custom_command/custom_target.
  • vbs migrate dry-run over this repository's own CMakeLists.txt still works.

Risks. CMake is Turing-complete; keep the subset explicit and the notes honest.

Dependencies. None.


F10 — Native Windows CI runner (M–L; blocked on a Windows runner)

Goal. Run the suites that Wine cannot run (vbs_v1_tests, vbs_selfhost_tests) on Windows, and produce Windows installers with a native vbs.exe.

Work items.

  1. New Void/CI-Images image windows-native (Windows Server Core + MSVC Build Tools + LLVM + Ninja + Python + WiX toolset) and a matching runner label.
  2. CI lane: build with CMake + MSVC and with the native vbs (self-host), run all suites, publish JUnit.
  3. Windows installer job runs vbs.exe install --archive-format msi natively (WiX candle/ light), replacing the cross-built MSI when both exist.
  4. Keep the Wine lane as the fast cross-build check.

Acceptance gates.

  • vbs_sdk_tests, vbs_core_tests, vbs_v1_tests, vbs_selfhost_tests pass on Windows.
  • A native MSI installs and runs vbs --version on a clean Windows image.
  • The release publishes native-Windows assets next to the Linux and cross-built ones.

Risks. Windows runners are expensive and licensing-bound; the suite may expose POSIX-isms.

Dependencies. A Windows runner (hardware or hosted). F2/F4 benefit but are not prerequisites for the lane itself.


F11 — Cross-platform determinism (M)

Goal. Define and prove what "reproducible" means across hosts, and fix the gaps.

Work items.

  1. Contract: identical inputs + identical toolchain version + same target ⇒ identical artifacts; different hosts may differ only in documented ways (debug paths, timestamps).
  2. Windows target: PE timestamp zeroing, deterministic COFF/archive ordering, path-case normalization in keys, CRLF normalization for generated sources.
  3. vbs verify-repro --a DIR --b DIR comparing two build trees by digest and reporting the first divergence per target.
  4. Extend the Stage 2 == Stage 3 test to the Windows target (two independent trees) and record which formats are bit-identical.

Acceptance gates.

  • vbs verify-repro reports zero divergences for a Windows-target double build.
  • Linux Stage 2 == Stage 3 remains green.
  • Documented table of reproducible artifacts (binaries, archives, installers) and the exceptions.

Risks. Linker nondeterminism in MinGW/PE; full cross-host identity may be impossible — scope it honestly.

Dependencies. F8 (measurement harness), F10 for native Windows verification.


F12 — Packaging parity: PKG, APK, IFW, installer SBOM (M)

Goal. Close the remaining CPack generator gaps.

Work items.

  1. --archive-format pkg: macOS flat package (Distribution XML + component packages) built from the staged prefix; structural validation on Linux, install validation on macOS (F3).
  2. --archive-format apk: Alpine package (.PKGINFO, data tar, optional signature with abuild-sign semantics documented).
  3. --archive-format ifw: Qt Installer Framework tree (config/config.xml, packages/<id>/meta
    • data), guarded by binarycreator availability.
  4. vbs install --installer-sbom spdx|cyclonedx: SBOM written next to every installer, reusing Provenance::Sbom with installer metadata.
  5. Extend the install test matrix and the CI installer job to the new formats (guarded like MSI).

Acceptance gates.

  • Each new format has a structural validator test mirroring the existing DEB/RPM/ZIP tests.
  • apk output is accepted by tar + a .PKGINFO parser; pkg installs on macOS when F3 exists.
  • Every installer gets a sibling SBOM with the package name/version and file digests.

Risks. PKG/IFW need platform tools; APK signing is an external step.

Dependencies. F3 for PKG install validation.


F13 — Developer-experience leftovers (S each)

Goal. Finish the small items that make daily use pleasant.

Work items.

  1. vbs init --template gui: Qt 6/GTK skeleton chosen by a --gui-toolkit flag, with a dependency note instead of a hard dependency.
  2. vbs completions --install: writes the script into the shell's completion directory ($XDG_DATA_HOME/bash-completion/completions, zsh site-functions, fish vendor_completions.d).
  3. LSP surface: document the clangd + compdb path and add vbs daemon lsp-status reporting compdb freshness, diagnostics gaps and the active profile (a full LSP server stays out of scope; clangd already consumes the compdb).
  4. Plugin distribution: vbs ide plugin --editor vscode --vsix already packages; add --publish notes and CI for the three plugin repositories.
  5. vbs doctor --json for machine-readable diagnostics.

Acceptance gates.

  • GUI template scaffolds and builds (with Qt/GTK present; skipped otherwise).
  • --install writes to the documented paths (temp-HOME test).
  • lsp-status returns bounded JSON and is covered by a daemon test.

Risks. GUI template choice is opinionated; LSP scope creep.

Dependencies. None.


F14 — Maintenance and hygiene (S)

Goal. Keep the repository and CI clean.

Work items.

  1. Delete CI runs/artifacts outside the agreed retention set (completed v0.1.0, v1.0.0, current main runs) and clear stuck runs.
  2. Scheduled vbs gc in CI (weekly) with a size cap.
  3. Dependency pin cadence: a documented rule (bump when VoidLibrary fixes affect VBS; record the pin in STATE).
  4. Release notes automation from git log between tags.
  5. Keep VERIFICATION.md current (its header still says 2026-12-03 and references the old working directory).

Acceptance gates.

  • The Actions runs list matches the retention policy.
  • A weekly GC job exists and reports reclaimed bytes.
  • VERIFICATION.md matches the latest verified state.

Risks. Low.

Dependencies. None.


4. Milestones and order

Milestone Tracks Rationale
M1 — no new hardware F7, F9, F12 (structural), F8 baseline, F14 Highest value per effort; all verifiable on Linux
M2 — Linux depth F1, F5, F6, F13 Differentiators and ecosystem; still Linux-only
M3 — Windows host F2, F4, F10, then F11 Requires Windows runners; unlocks native MSI + full suites
M4 — macOS F3, F12 (PKG install validation) Requires a macOS host

Recommended within M1: F8 first (it produces the numbers that gate later performance work), then F9, then F7, with F14 running alongside.


5. Global acceptance gates

These apply to every track, mirroring Plan 22 §7:

  1. Evidence in the repo suite. A feature is done only when a test in tests/ covers it.
  2. Observed runs. Platform claims require an observed run on that platform (or under Wine, labelled as such).
  3. Docs move with code. STATE.md gets a wave entry, TASKS.md a row, and this plan's status column is updated; the plan is the ledger, not a wish list.
  4. Formatting and YAML. clang-format --dry-run --Werror on owned C++ files; yamllint on workflows.
  5. Performance claims. Measured with a Release binary, cold and warm, on a documented fixture.
  6. Honest partials. Anything unverified is marked planned or blocked with the reason, never described as implemented.

6. Planned interfaces (summary)

Everything below is proposed, not present in the codebase today:

// F1
enum class SandboxMode { Off, Warn, Strict };
bool sandbox_supported() noexcept;

// F2
struct IpcEndpoint { enum class Kind { UnixSocket, NamedPipe } kind; };

// F4
enum class CompilerFamily { Gcc, Clang, Msvc, ClangCl };
enum class ModuleSupport { Full, ScanDepsOnly, Unavailable };

// F5
struct RemoteExecutionOptions { std::string registry_url; std::size_t max_remote_actions{0}; };

// F7
enum class BepEventKind { BuildStarted, TargetStarted, ActionStarted, ActionFinished,
                          TestFinished, BuildFinished };

// F8
// benchmarks/compare.sh --targets N --json

// F11
// vbs verify-repro --a DIR --b DIR

// F12
// vbs install --archive-format pkg|apk|ifw --installer-sbom spdx|cyclonedx

7. Explicit non-goals

  • Windows sanitizers until MinGW ships libasan/libubsan (Arch's mingw-w64-gcc 16.2 does not). Documented as blocked, not scheduled.
  • Full BEP schema coverage and BEP-over-HTTP until a consumer exists.
  • A from-scratch LSP server; clangd + compdb + lsp-status is the supported path.
  • Bit-identical artifacts across different compilers or hosts; the contract is same toolchain, same target, same inputs.
  • build2 feature-parity claims without measured runs (Plan 22 requires measured comparisons).

8. Definition of done for this plan

This plan is complete when every track's acceptance gates are green in CI and recorded in STATE.md, the gap inventory in §2 has no "Missing" rows that are not explicitly deferred with a reason, and Plan 22's parity table reflects measured results rather than design intent.