- Dependency::profile(name, DependencyProfileOptions) records per-profile compile/link options, defines, LTO and sanitizers. The native provider applies the matching override to the dependency's own ProfileContext and hashes the overrides into the provider input hash, so changing them invalidates cached dependency builds. - vbs-toolchain.toml pins compiler, minimum version, C/C++ standards and sysroot (optional strict); it is loaded once and checked after every toolchain probe. Drift warns by default and fails with --locked-toolchain or strict = true; malformed pins fail with the TOML diagnostic. - vbs profile list|show|diff lists declared profiles with parents, prints a resolved profile (flags, standards, LTO, sanitizers, sysroot) or the fields that differ between two. Verified: dependency_profile_overrides_apply_to_native_builds (a define from the override is required by the dependency source), toolchain_pin_detects_and_enforces_drift and profile_commands_list_show_and_diff pass; vbs_core_tests 8/8; CLI contracts pass; clang-format clean.
33 KiB
24 — Superiority tracks: beyond CMake, Meson, build2 and Cargo
Status: partially implemented (2026-12-06). Tracks G1 (run/metadata/why/add/remove/--frozen) and G7's native compiler-cache slice are implemented (Wave 147); everything else is planned. Nothing else is implemented unless it is listed in Plan 23 §1. Interfaces are proposals.
Plan 23 closes the remaining gaps. This plan is different: it lists what would make VBS better than the incumbents rather than merely equal — including Cargo, which is the current benchmark for build-system UX.
1. Executive summary — the five decisive moves
The strategy is two-sided: match Cargo's ergonomics, then win on the native-code realities Cargo cannot touch. Cargo is the UX benchmark; CMake, Meson and build2 are the capability benchmarks. A new user should get a working build in seconds, and a team should get signed, reproducible, distributed native builds that no incumbent offers.
- Cargo-grade lifecycle in one binary (G1) —
vbs run,add,remove,fmt,lint,doc,bench,why,tree,outdated,audit,vendor,install-binary,--frozen. CMake and Meson have no unified lifecycle; Cargo does. This is the biggest adoption lever. - Feature flags that actually work (G2) —
Dependency::feature()is currently recorded but never applied. Additive, unified C++ features with--features/--no-default-features, optional dependencies, andvbs explain --featuresnaming what enabled what. No C++ build system has this; it is Cargo's best idea ported to native code. - Per-package profiles and toolchain pinning (G3) —
package("fmt").profile("release", {…})plusvbs-toolchain.tomlchecked at configure time. Cargo has per-package profiles; nobody has a pinned, verified toolchain contract for C++. - Polyglot builds (G4) — Rust (cargo provider +
cxxbridge), Fortran (.modscanning), CUDA/HIP, and Zigcc. Cargo cannot build C++ safely, CMake cannot package, Meson lacks a registry. One lockfile for C++ + Rust + Fortran + shaders is a category of one. - Trust layer (G5) — enforced hermetic sandbox, a sandboxed
build.cpp, SLSA/in-toto attestations,vbs verify-repro, OSV advisories, and signature-required mode. All four incumbents lack this built in (Cargo only via externalcargo-deny).
| Remaining track | What it adds | Beats |
|---|---|---|
| G6 | vbs metadata plus versioned schemas, a DAP debug server, a plugin protocol |
cargo metadata, the CMake File API; no C++ build system ships DAP |
| G7 | --affected builds/tests, a daemon watch loop, build scans, cache analytics |
everyone on CI cost |
| G8 | doctests, sharding, flaky quarantine, coverage gates, vbs fuzz, benchmark gates |
CTest, Cargo |
| G9 | zero-config inference, actionable errors, doctor --fix, a TUI, a book |
Cargo's first five minutes; CMake's error messages |
| G10 | install-binary, bundle, deploy recipes, package --dry-run, a template registry |
Cargo, CPack |
| G11 | vbs.policy, vbs check, vbs ci (policy-as-code, reproduce CI locally) |
cargo-deny is external; the others have nothing |
| G12 | two-way interop: find_package(VbsPackage), Cargo cxx bridges, vbs compat |
the lock-in of every incumbent |
1.1 Where VBS already leads (the wedge to protect)
These are already ahead of CMake/Meson/build2 and must not regress while G1–G12 land:
vbs explain— nobody else answers "why did this rebuild?" from a content-addressed action record.- Content-addressed snapshots, local CAS and remote action cache — correctness and CI reuse in one model.
- Deterministic by default — Stage 2 == Stage 3 proven on Linux.
- Nine installer formats built in — tar, self-extracting sh, zip, deb, rpm, WiX, MSI, UDIF/DMG
container, NuGet — where CPack needs external tooling and Cargo needs
cargo-bundle. - A real registry — RBAC, tokens, signatures, SBOM, binary variants with ABI metadata, yank, worker leases and a distributed queue.
- Remote execution — workers, queue, remote action execution and parallel workers already exist; plan 23 F5 adds multi-machine scheduling.
1.2 Success condition for this plan
A new user can create, build, test, run and format a project without writing a build file; a
maintainer can enable features, pin a toolchain and publish signed binary packages; and CI can
select only affected tests, distribute cacheable actions and upload a signed provenance record —
all through one vbs binary, with every claim backed by a test in this repository.
2. Positioning
| Capability | CMake | Meson | build2 | Cargo | VBS today | VBS target (this plan) |
|---|---|---|---|---|---|---|
| Build description | DSL | DSL | bsl |
TOML | compiled C++ build.cpp |
build.cpp + zero-config inference (G9) |
| Package manager | external | wrapdb | built-in | built-in + crates.io | built-in registry, lock, signatures, binary variants, SBOM | federation, mirrors, advisories (G5, G10) |
| Binary packages | no | no | limited | no | yes, signed + ABI metadata | vbs install-binary (G10) |
| Hermetic sandbox | no | no | partial | no | no | yes (Plan 23 F1, enforced by G5) |
| “Why did this rebuild?” | no | no | no | no | vbs explain (done) |
explain + cache analytics (G7) |
| Remote execution | add-ons | no | no | no | worker protocol, queue, leases | multi-machine (Plan 23 F5, G7) |
| Determinism | opt-in | opt-in | partial | partial | default on Linux, Stage2==Stage3 proven | cross-host contract (Plan 23 F11) |
| Installers | CPack | dist scripts | no | external | 9 formats built in | + PKG/APK/IFW, bundles (Plan 23 F12, G10) |
| Feature flags | global options | global options | config | additive, unified | declared but not applied | additive C++ features (G2) |
| Profiles | build types | buildtype | config | + per-package overrides | profiles, per-package planned | per-package + toolchain pin (G3) |
| Polyglot | C/C++/CUDA/Fortran/… | C/C++/Rust/D/Fortran | C/C++ | Rust only | C/C++/ASM/shaders | + Rust, Fortran, CUDA/HIP (G4) |
| Machine-readable metadata | File API | introspect | limited | cargo metadata |
describe, graph, explain |
stable schemas + vbs metadata (G6) |
| Editor/debug protocol | File API/CompDB | introspect | no | rust-analyzer (external) | daemon + CompDB + File API | DAP + LSP-status (G6) |
| Test runner | CTest | meson test |
test module | cargo test |
CTest parity incl. fixtures/JUnit/CDash | doctests, sharding, impact analysis (G8) |
| Benchmarks | no | no | no | cargo bench |
benchmark harness | target kind + regression gates (G8) |
| Docs | no | no | no | cargo doc |
no | vbs doc (G1) |
| Format/lint | external | external | external | rustfmt/clippy | no | vbs fmt, vbs lint (G1) |
| Policy as code | no | no | no | cargo-deny external |
no | vbs policy + vbs ci (G11) |
| One-tool lifecycle | no | no | partial | yes | build/test/install/publish/explain | yes (G1) |
What the incumbents get right, and what this plan copies or beats:
- Cargo: zero-config start, one-tool lifecycle, additive features, per-package profiles,
metadata,cargo doc, doctests,cargo install,--frozen, vendor. VBS can match all of these and manage native code, binaries, installers and remote execution. - CMake: ecosystem reach,
find_package/install(EXPORT), File API, CPack, CUDA/Fortran, configure-time checks. VBS already consumes CMake projects (bridge, translation, presets); G4 and G6 close the language and tooling gaps. - Meson: clean semantics, fast configure,
introspect, wrapdb,devenv,dist. VBS's registry and explainability beat wrapdb and introspection; G9 adds the developer-environment equivalent. - build2: hermeticity and package semantics. VBS's snapshots/CAS already match this; F1 makes it enforced.
3. Tracks
Legend: S days, M 1–2 weeks, L multi-week. Each track lists the incumbent it beats and the concrete acceptance gate.
G1 — Cargo-grade lifecycle CLI (S–M per command)
Status: partially implemented (Wave 147). Done: new, run, metadata, why, add,
remove, tree, fmt, lint, audit, install-binary, --frozen. Pending: bench, doc,
outdated, update -p, deny, vendor.
Beats: Cargo (parity), CMake/Meson/build2 (they have no unified lifecycle).
| Planned command | Behaviour |
|---|---|
vbs new NAME [--template app|library|header-only|shared|gui|bench|plugin|workspace] |
init plus VCS init and a build.cpp that already passes vbs test |
vbs add DEP[@RANGE] [--dev|--build|--optional] [--features a,b] [--path|--git|--registry] |
edits vbs.deps.toml, resolves and writes vbs.lock, prints the resolved version |
vbs remove DEP |
removes the manifest entry and unlocks the package |
vbs run [TARGET] [-- ARGS...] |
builds then runs the executable with per-target args/env/cwd; passes the exit code through |
vbs bench [--baseline FILE] [--max-regression 5%] |
benchmark targets, machine-readable results, fails on regression |
vbs doc [--open] [--coverage] |
Doxygen/Sphinx orchestration, reports undocumented public symbols |
vbs fmt [--check] [--changed-only] |
clang-format over owned sources, cached results |
vbs lint [--fix] [--changed-only] |
clang-tidy with a shared compile database, cached diagnostics |
vbs why DEP|TARGET |
shortest path(s) explaining why a dependency or target is in the graph |
vbs tree [--duplicates] [--features] [--depth N] |
dependency tree with versions, sources, features |
vbs outdated, vbs update -p NAME [--precise V] |
registry-aware upgrade workflow |
vbs audit [--advisories URL], vbs deny |
OSV advisories and license/ban policy |
vbs vendor [--output DIR] |
offline vendoring of the resolved graph |
vbs metadata [--format json] |
stable workspace metadata (G6) |
vbs install-binary NAME [--version V] [--prefix DIR] |
installs a published binary variant into ~/.local/bin |
vbs build|test --frozen |
lock + offline + no registry access, one flag |
Work items.
- Shared
Manifesteditor (Package::Tomlwriter, preserving comments and ordering). runconfigs inbuild.cpp(target.run({.args = {...}, .env = {...}, .cwd = "..."})) and avbs.json-free design (all inbuild.cpp).- Benchmark target kind (
p.benchmark(name)) plus result parsing (Google Benchmark JSON,nanobench, customVBS_BENCHoutput) and baseline comparison with tolerance. doc/fmt/lintas orchestrated action graphs (so they are cached and parallel), not shell wrappers;--changed-onlyuses the graph's changed inputs.vendorreuses the CAS: copy blobs intovendor/<sha256>and rewritevbs.locksources.--frozenis validated as the CI default for release lanes.
Acceptance gates. CLI contracts for every command; add/remove round-trip a manifest
byte-for-byte apart from the dependency; run propagates exit codes; bench --max-regression
fails on a 10% slowdown fixture; fmt --check fails on unformatted input; vendor builds with
the registry offline; install-binary installs and runs the registry artifact.
Effort. S per command; M for bench/doc/lint.
G2 — Feature flags that actually work (M–L)
Status: implemented (Wave 150). Project::feature(name, default_on) (or
FeatureDescription), Target::require_feature(name) (the plan's .requires spelling collides
with the C++20 keyword) and Dependency::when(feature); --features a,b /
--no-default-features on build/test/run/explain/deps; additive unification (defaults + target
requirements + requests); VBS_FEATURE_<NAME> defines on every target so action keys and the
cache follow the feature set; optional dependencies filtered before resolution; vbs explain --show-features and vbs metadata report the unified set and its reasons. Verified by
FullV1Tests.features_unify_defines_and_invalidate_action_keys and
optional_dependencies_follow_feature_selection. The ABI rule (features may add definition
macros, never layout) is documented.
Beats: Cargo's best idea, applied to C++ — no C++ build system has additive, unified features.
Current state: Dependency::feature(name) is recorded and serialized into the lockfile but is
not consumed by any provider or target; there is no project-level feature model. This track
makes features real.
Planned interfaces.
// PLANNED — not implemented.
p.feature("ssl", {.default_on = true, .description = "TLS support"});
p.feature("simd", {.default_on = false});
auto dep = p.dependency("zlib").package("zlib", "^1.3");
target.requires("ssl"); // enables the feature
target.define_when("VBS_HAS_SSL", "ssl"); // VBS_FEATURE_SSL + this define
dependency.optional("zlib", "ssl"); // dep only when the feature is on
p.conditional("windows", [](Target &t) { ... });
Work items.
- Project feature table (name, default, description, implies) and additive unification over the
target graph (
aenablesssl⇒ every consumer seesssl; conflicts are explicit). --features a,b/--no-default-featuresCLI, recorded in the profile identity and action keys so switching features never reuses wrong artifacts.- Optional dependencies: resolved only when their feature is active; the lockfile records the activation set (Cargo does this; CMake options cannot).
- Diagnostics:
vbs explain --featuresprints the unified set and the enabling path (which target enabled what), similar to Cargo's resolver explanation. - Capability-conditioned features (
requires compiler_flag(...),os == ...), reusing the cached toolchain probes. - ABI rule documented: features may only add defines/compile options, never change layout of
types that cross a feature boundary (enforced by a lint on
define_whenplacement).
Acceptance gates. Two dependents enabling different subsets unify correctly; the artifact
digest changes when the feature set changes; --features changes are visible in vbs metadata;
an optional dependency absent from the graph when disabled; vbs explain --features names the
enabling path.
Risk. Feature unification can silently create ODR issues in C++; the plan constrains features to additive preprocessor-visible configuration and documents the rule.
Effort. L (design-heavy).
G3 — Profiles, per-package overrides and toolchain pinning (M)
Status: implemented (Wave 151). Dependency::profile(name, DependencyProfileOptions)
(compile/link options, defines, LTO, sanitizers) is applied by the native provider to the
dependency's own ProfileContext and included in the provider input hash; vbs-toolchain.toml
pins compiler/minimum version/C and C++ standards/sysroot and is checked after probing (warn, or
fail with --locked-toolchain or strict = true); vbs profile list|show|diff covers
inheritance inspection and resolved flags. Foreign providers (CMake/Meson) still receive only
their options map; mapping per-profile overrides onto their build types is future work.
Beats: Cargo (per-package profile overrides), CMake/Meson (no per-package profiles).
Work items.
- Profile inheritance (
relwithdebinfoinheritsrelease+ debug info) — partially present viaProfiles::inherit; expose inbuild.cppergonomically. - Per-package profile overrides:
p.package("fmt").profile("release", {.lto = LtoMode::Thin}), applied to dependency builds (native builder options already carryVBS_DEP_OPTION_*). - Project toolchain pin:
vbs-toolchain.toml(compiler family/version, stdlib, sysroot, min/max standard) checked at configure time; drift warns or fails with--locked-toolchain. - Profile matrix sugar:
--profile-matrix linux-x64,windows-x64 --profile debug,releaseexpanding to the existing multi-profile support with target triples. vbs profile list|show|diff A Bprinting resolved flags per profile.
Acceptance gates. A dependency built with a per-package release override differs from the
default; vbs-toolchain.toml mismatch fails with a clear message; matrix expansion matches
explicit invocations; profile diff shows only the differing flags.
Effort. M.
G4 — Polyglot: Rust, Fortran, CUDA/HIP, Zig cc (L)
Beats: Cargo (cannot build C++ safely), CMake (weak package UX), Meson (no packages).
VBS already builds C, C++, assembly and shaders (GLSL/HLSL/Slang) with one dependency model. Adding these languages makes it the only tool that builds a modern mixed-language project with a single lockfile, registry and cache.
Work items.
- Rust provider:
dependency("crate").rust({.manifest = "rust/Cargo.toml"})runscargo build --message-format=json-render-diagnostics, importsstaticlib/rlibartifacts and includes;p.cxx_bridge("src/lib.rs")(cxx crate) generates the C++ side. The Rust toolchain is probed and pinned;cargooutput participates in the action cache key. - Fortran: gfortran compile/link rules,
.modmodule dependency scanning (like P1689 for Fortran), mixed-language link ordering,CStandard-styleFortranStandard. - CUDA/HIP:
nvcc/hipccactions with-gencode arch=...matrix, separable compilation, device link step, and capability probes;p.cuda_library(name).cuda_sources({...}). - Zig cc backend:
--compiler zig/profile.compiler_path = "zig cc"for hermetic cross-compilation without a sysroot (Zig ships libc); probe and record the Zig version. vbs migrate --from cargofor the C++-adjacent parts (workspace members,cxxbridges) — only if the mapping is honest; otherwise document the manual path.
Acceptance gates. A C++ executable calling Rust via a cxx bridge builds and runs; a
Fortran + C++ mixed target compiles with .mod dependency tracking (changing a module rebuilds
its users); a CUDA (or HIP, when available) target produces a valid binary; zig cc builds a
sample with no system compiler; vbs metadata reports the mixed languages.
Risks. Toolchain availability in CI (CUDA needs a GPU-less compile-only lane; Rust and Fortran are cheap to add to images); each language's incremental model differs.
Effort. L per language; Rust first (highest demand).
G5 — Trust: enforced hermeticity, attestations, reproducibility, advisories (L)
Status: partially implemented (Wave 149). Done: the enforced hermetic sandbox (Plan 23 F1)
for compile/link/custom actions, DSSE/in-toto/SLSA attestations (vbs attest create|verify,
trusted-key and subject-digest enforcement), and vbs audit over OSV advisories against the
lockfile. Pending: sandboxing the build descriptor itself, dependency-confusion guards,
policy-as-code (G11) and vbs verify-repro.
Beats: all four. Cargo has cargo-deny externally; CMake/Meson/build2 have nothing built in.
Plan 23 already schedules the sandbox (F1) and reproducibility (F11); this track adds the supply-chain layer that makes the guarantees usable.
Work items.
- SLSA/in-toto attestations:
vbs attest create --output FILEproduces an in-toto statement (builder identity, invocation, resolved lock digest, input snapshot id, output digests, toolchain probe), signed with the existing Ed25519 primitives;vbs publish --attestationstores it;vbs verify --attestationchecks signer + subject digests. - Descriptor sandbox: run
build.cppunder the same namespace sandbox with an explicit capability list (env allowlist, network off by default for--offline, write access limited to the build dir). Untrusted project descriptors become safe to evaluate in CI. - Advisories:
vbs auditqueries an OSV-format source (file or URL), matches lockfile packages, and fails on severity threshold; SBOM export already exists. - Dependency-confusion guards: registry namespace ownership (exists), typosquat warnings on
vbs add(edit distance against popular names), and signature-required mode (--require-signatures) for CI. - Policy as code (shared with G11): minimum compiler, allowed licenses, banned packages, signature policy, coverage floor.
vbs verify-repro(Plan 23 F11) consumed by a CI job that builds twice and compares.
Acceptance gates. An attestation verifies against the published artifact and fails when the
artifact changes; a descriptor that reads $HOME fails under strict sandbox; vbs audit fails on
a fixture with a known-vulnerable version; --require-signatures rejects an unsigned package;
policy violation exits non-zero in CI.
Effort. L (attestation + descriptor sandbox), M for the rest.
G6 — Machine-readable everything and tooling protocols (M)
Beats: Cargo (metadata), CMake (File API), Meson (introspect) — VBS can expose a single,
versioned, cross-cutting model.
Work items.
vbs metadataemits one workspace document: packages, members, targets (kind, sources, outputs, features, labels), resolved dependencies (versions, sources, features, signatures), profiles (resolved flags), artifacts (digests, install paths). Stable JSON with a schema version.- Published schemas under
schemas/formetadata,describe,graph,explain,trace,bep,doctorand the daemon wire protocol; a compatibility test fails when a schema changes without a version bump. - DAP server:
vbs dap --target NAMEspeaks the Debug Adapter Protocol, launches gdb/lldb with the target's artifact, working directory and environment, and maps source paths from the compdb. No C++ build system ships this; editors currently reimplement it per project. - LSP-status request (
vbs daemon lsp-status, Plan 23 F13) reporting compdb freshness and diagnostics gaps for clangd. - Plugin protocol: out-of-process providers speaking newline-delimited JSON (the daemon protocol is the template) so third-party ecosystems (vcpkg, SwiftPM, Zig, Bazel interop) can be added without recompiling VBS; plugins declare capabilities and are sandboxed like actions.
vbs doctor --jsonandvbs cache stats --jsonfor dashboards.
Acceptance gates. A JSON schema test validates every emitted document; metadata is consumed
by a small external script in the test suite; a DAP integration test launches a debuggee through
a minimal DAP client and reads a breakpoint hit; a sample plugin provider builds a target.
Effort. M (metadata + schemas), M (DAP), M (plugin protocol).
G7 — Speed and CI economics (M–L)
Status: partially implemented (Wave 147). Done: native compiler caching
(--native-cache off|auto|ccache|sccache, wrapper part of the action key, vbs doctor
reporting). Pending: --affected, daemon watch loop, build scans, cache analytics.
Beats: all four on CI cost; Cargo/Ninja are fast locally but have no affected-test selection or build scans.
Work items.
- Affected builds and tests:
vbs build\|test --affected [--since REF]selects the target closure whose inputs changed (using the graph, depfiles and snapshot digests) — not just workspace members. CI stops rebuilding and retesting everything. - Daemon-first loop:
vbs watch --fastkeeps a warm daemon, debounces changes, re-evaluates only affected targets, and reports the first failing action; target < 100 ms feedback for no-op/single-file edits on the 20-source fixture. - Remote cache + distributed execution (Plan 23 F5) with a shared HTTP CAS;
vbs build --remote-cacheexists — add statistics and automatic enablement in CI. - Build scans:
vbs build --scan URLuploads the trace, cache hit/miss per action, and critical path to the registry (new/api/v1/scans), with a web view. Gradle Build Scan class, novel for C++. - Cache analytics:
vbs cache stats(hit rate by target, top misses, bytes saved) and avbs explain --aggregatesummary for the whole build. - Link-time parallelism and PCH/module reuse measured and tuned;
--timingsprints a sorted critical-path report.
Acceptance gates. --affected on a one-file change runs only the expected target closure
(asserted by action counts); warm single-file feedback budget met; scan upload round-trips to the
registry and lists the same action count; cache stats matches the report counters.
Effort. M for --affected/stats, L for scans + remote distribution.
G8 — Test and benchmark depth (M)
Beats: CTest (no doctests, no impact analysis), Cargo (no sharding in stable, no coverage gates), everyone (no benchmark regression gate built in).
Work items.
- Doctests:
p.doctest("include/foo.hpp")extracts fenced////code blocks and compiles and runs them as tests; failures point at the doc line. Cargo's best feature, absent from C++. - Sharding:
vbs test --shard I/Npartitions by expected duration (from previous JUnit timings) and merges results; CI matrix uses it for the slow suites. - Impact analysis:
vbs test --affected(shared with G7). - Flaky management:
--known-flaky FILEquarantines tests (reported, not blocking),--rerun-failedre-runs only failures, and a--repeat until-passalready exists. - Coverage gates: merge shard reports,
--coverage-min 80,--coverage-diff BASEfor PRs, and per-file thresholds. - Benchmark regression gate (shared with G1): baseline file, statistical comparison, CI failure on regression.
- Fuzzing command:
vbs fuzz --target parsers --runs N --corpus DIRwraps libFuzzer/AFL targets, stores corpora in the CAS, and reports crashes with reproducers. - Sanitizer matrix: built-in profiles for ASan/UBSan/TSan/MSan with suppression files and per-test isolation.
Acceptance gates. A doctest failing in a header fails the suite with a file:line; sharding
splits and merges to the same totals; --known-flaky turns a failing test non-blocking but
visible; coverage gate fails below the floor; vbs fuzz runs a seeded corpus and reports zero
findings for the parser fixtures.
Effort. M (doctests and fuzz are the larger pieces).
G9 — Onboarding and error quality (M)
Beats: Cargo on first-run experience for native code; CMake/Meson on error messages.
Work items.
- Zero-config mode: with no
build.cpp, infer a conventional project (src/**sources,include/**public headers,tests/**test executables,app/libtargets by shape) sovbs buildworks in an empty checkout.vbs init --from-sourcesmaterializes the inferredbuild.cppfor customization. Cargo-grade first five minutes. - Actionable errors: unknown target suggests the nearest name; missing dependency suggests
vbs add; missing compiler suggestsvbs doctor --fix; feature conflicts name the enabling path. Snapshot/lock errors include the exact path and the remedy. vbs doctor --fix: installs missing tools on supported hosts (guarded, prints the command first), checks compilers, registry connectivity.vbs tui: live dashboard (targets, running actions, cache hit rate, timings, failures) — no incumbent has one.- Book and examples:
docs/book/(getting started, build.cpp guide, migration from CMake/Meson/Cargo, cookbook),examples/with CI-built samples, and generated API reference viavbs doc. vbs tutorial(optional): a guided first project.
Acceptance gates. vbs build in an empty conventional project succeeds; error-message tests
assert the suggestion text; doctor --fix is dry-run by default; the book builds and its code
samples are tested; examples build in CI.
Effort. M (zero-config + errors), S each for TUI/book scaffolding.
G10 — Distribution and ecosystem (M)
Beats: Cargo (install-binary parity, plus native installers), CPack (formats), wrapdb
(registry UX).
Work items.
vbs install-binary NAMEfrom signed binary variants (with ABI matching: compiler family, stdlib, C++ standard) into~/.local/bin;--listshows available variants.vbs bundle: self-contained app bundles — Linux AppImage-style, macOS.appwhen F3 exists, Windows portable folder — bundling runtime DLLs (the installer already does this).vbs deploy: recipe-driven install (systemd unit, Windows service, launchd plist) generated from a declarativedeployblock.vbs package --dry-run/--list: pre-publish preflight (files, sizes, license presence, missing docs) beforepublish.- Registry ecosystem (Plan 23 F6): federation, mirrors, key distribution; plus search relevance, download stats, org namespaces, ownership transfer.
- Template registry:
vbs new --template gh:org/repofetches a template with provenance checks.
Acceptance gates. install-binary installs a published artifact and runs it; bundle
produces a runnable bundle on Linux; package --dry-run lists exactly the published file set;
registry search/stats endpoints have tests.
Effort. M.
G11 — Policy as code and vbs ci (S–M)
Beats: Cargo (cargo-deny is external), CMake/Meson/build2 (nothing).
Work items.
vbs.policy(TOML): minimum compiler version, allowed licenses, banned/advisory-threshold dependencies, required signatures, coverage floor, required test labels, max build time.vbs checkenforces the policy locally and in CI with a single exit code and a summary.vbs ci: runs the local equivalent of the pipeline (build matrix, tests with JUnit, coverage, SBOM, policy) so developers reproduce CI failures without pushing.- Publish policy results in
vbs metadata/vbs doctor --json.
Acceptance gates. A policy violation fails vbs check with a precise reason; vbs ci on a
sample produces JUnit + SBOM + coverage and exits non-zero on a failing test; policy file
schema is documented and validated.
Effort. S–M.
G12 — Interop without lock-in (M)
Beats: everyone, by making migration two-way.
Work items.
- CMake consumes VBS: ship
VbsPackageConfig.cmakesofind_package(VbsPackage)works for every installed VBS package (theVbsDeps.cmakebridge and native exports already exist). - VBS consumes CMake: already supported (providers, translation, presets import); add
vbs migrate --from cmake --strictand document the unsupported surface. - Cargo interop (G4): build Rust crates as dependencies and expose C++ to Rust; no lock-in either direction.
- Meson subproject consumption as a provider option (today only CMake/Meson projects are translated as dependencies).
vbs compatreport: which constructs of a CMake/Meson/Cargo project map to VBS and which need manual work.
Acceptance gates. A CMake project links a VBS-installed package via find_package; a CMake
dependency translated by VBS builds with --native-foreign; a Cargo workspace with a cxx
bridge builds under VBS; vbs compat output is covered by a fixture test.
Effort. M.
4. Priority
| Wave | Tracks | Why first |
|---|---|---|
| 147 | G1 (run/add/remove/fmt/lint/doc), G9 (zero-config, errors) |
Biggest adoption lever: Cargo-grade first five minutes |
| 148 | G2 (features), G3 (profiles/toolchain pin) | The C++-specific differentiators no incumbent has |
| 149 | G5 (sandboxed descriptor + attestations), G6 (metadata/schemas) | Trust and tooling ecosystem |
| 150 | G7 (--affected, cache stats, watch loop), G8 (doctests, sharding, coverage gates) |
CI economics and test depth |
| 151 | G4 (Rust, Fortran, CUDA), G10 (install-binary, bundle), G12 (interop) |
Polyglot and distribution |
| 152 | G11 (policy, vbs ci), G9 (TUI, book) |
Enterprise policy and polish |
Dependency notes: G2 must land before G3's per-package feature/profile overrides are meaningful; G5 depends on Plan 23 F1 (sandbox) and F11 (reproducibility); G7 depends on Plan 23 F5 for distributed execution; G10 depends on Plan 23 F6 for the registry ecosystem; G4's Rust provider benefits from G6's plugin protocol but does not require it.
5. Acceptance gates
Plan 23's global gates apply unchanged: a test in tests/ per feature, an observed run per
platform claim, docs (STATE/TASKS/plan status) in the same change, formatted C++ and valid YAML,
Release-binary performance numbers, and honest "planned/blocked" labels.
Additional gates for this plan:
- No parity-only work. A track must name the incumbent it beats and the observable behaviour that proves it.
- Feature flags are either applied or rejected. No API may be recorded and ignored (the
current
Dependency::featurestate is treated as a bug to fix in G2). - Machine-readable outputs are versioned. Any JSON surface ships with a schema and a compatibility test.
- Doctests and policies are CI-enforced before they are documented as features.
6. Non-goals
- Reimplementing every CMake command or generator (the bounded translator stays bounded).
- A full LSP implementation; clangd + compdb +
lsp-statusis the supported path. - Feature flags that change C++ ABI/layout across a feature boundary (documented restriction).
- Replacing
build.cppwith a DSL; compiled C++ remains the differentiator. - Bit-identical artifacts across different compilers or hosts (Plan 23 F11 defines the contract).
- A GUI/TUI as the primary interface; both are conveniences over the CLI.