docs(plan): add the superiority executive summary to Plan 24
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m6s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m22s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m50s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m27s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m3s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m8s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 24s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m21s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m25s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m2s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m1s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped

Adds the five decisive moves (Cargo-grade lifecycle, real C++ feature
flags, per-package profiles with toolchain pinning, polyglot builds, and
the trust layer), the remaining-track table, the existing wedge VBS must
protect (explain, CAS/remote cache, deterministic default, nine installers,
the registry, remote execution), and a concrete success condition. The
positioning table and tracks are renumbered accordingly; the roadmap index
describes the new summary.
This commit is contained in:
faumaray committed 2026-12-06 19:03:51 +03:00
1 parent 4b5ef128dc
commit a12470c072
2 files changed
+63 -6

No files matched your search

+62 -5
View File
@@ -7,7 +7,64 @@ Plan 23 closes the remaining *gaps*. This plan is different: it lists what would
**better** than the incumbents rather than merely equal — including Cargo, which is the current
benchmark for build-system UX.
## 1. Positioning
## 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.
1. **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.
2. **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, and `vbs explain --features` naming what enabled what. No C++ build
system has this; it is Cargo's best idea ported to native code.
3. **Per-package profiles and toolchain pinning** (G3) — `package("fmt").profile("release", {…})`
plus `vbs-toolchain.toml` checked at configure time. Cargo has per-package profiles; nobody
has a pinned, verified toolchain contract for C++.
4. **Polyglot builds** (G4) — Rust (cargo provider + `cxx` bridge), Fortran (`.mod` scanning),
CUDA/HIP, and Zig `cc`. Cargo cannot build C++ safely, CMake cannot package, Meson lacks a
registry. One lockfile for C++ + Rust + Fortran + shaders is a category of one.
5. **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 external `cargo-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) |
| --- | --- | --- | --- | --- | --- | --- |
@@ -45,7 +102,7 @@ What the incumbents get right, and what this plan copies or beats:
- **build2**: hermeticity and package semantics. VBS's snapshots/CAS already match this; F1 makes
it enforced.
## 2. Tracks
## 3. Tracks
Legend: **S** days, **M** 1–2 weeks, **L** multi-week. Each track lists the incumbent it beats and
the concrete acceptance gate.
@@ -435,7 +492,7 @@ bridge builds under VBS; `vbs compat` output is covered by a fixture test.
---
## 3. Priority
## 4. Priority
| Wave | Tracks | Why first |
| --- | --- | --- |
@@ -451,7 +508,7 @@ G5 depends on Plan 23 F1 (sandbox) and F11 (reproducibility); G7 depends on Plan
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.
## 4. Acceptance gates
## 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,
@@ -467,7 +524,7 @@ Additional gates for this plan:
compatibility test.
4. **Doctests and policies are CI-enforced** before they are documented as features.
## 5. Non-goals
## 6. Non-goals
- Reimplementing every CMake command or generator (the bounded translator stays bounded).
- A full LSP implementation; clangd + compdb + `lsp-status` is the supported path.