From a12470c072756d06cecf81ea6866f5c824eb8de9 Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sun, 6 Dec 2026 19:03:51 +0300 Subject: [PATCH] docs(plan): add the superiority executive summary to Plan 24 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. --- docs/roadmap/24-superiority-tracks.md | 67 +++++++++++++++++++++++++-- docs/roadmap/README.md | 2 +- 2 files changed, 63 insertions(+), 6 deletions(-) diff --git a/docs/roadmap/24-superiority-tracks.md b/docs/roadmap/24-superiority-tracks.md index 011daa4..fe44a9a 100644 --- a/docs/roadmap/24-superiority-tracks.md +++ b/docs/roadmap/24-superiority-tracks.md @@ -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. diff --git a/docs/roadmap/README.md b/docs/roadmap/README.md index 05943db..46e8536 100644 --- a/docs/roadmap/README.md +++ b/docs/roadmap/README.md @@ -35,7 +35,7 @@ Authority: [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md), | [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Tracks A, B (incl. live `conan`), D1–D3, E1–E4 implemented & verified; Track C1 done (Linux), C2 deferred, C3 redesigned as Wine-first | Five-track expansion roadmap (see [STATE](../agent-workflow/STATE.md) for the verified wave history) | | [22 — Superiority roadmap and gaps](22-superiority-and-gaps.md) | Analysis plan (2026-12-05) | Gap inventory, revised platform strategy (macOS dropped for now, Windows via MinGW-w64 + Wine, native MSVC deferred), parity roadmap vs CMake/Meson/build2, differentiators, prioritized order and acceptance gates | | [23 — Remaining upgrade plan](23-remaining-upgrade-plan.md) | Planned (2026-12-06) | Tracks F1–F14 for the gaps left after Wave 146: hermetic sandboxing, Windows IPC/watcher and native backends, macOS/MSVC, multi-machine orchestration, registry mirrors/federation/keys/vcpkg, BEP, 10k scaling, migration depth, native Windows CI, cross-platform determinism, PKG/APK/IFW/SBOM installers, GUI template/LSP/plugin polish, maintenance | -| [24 — Superiority tracks beyond CMake, Meson, build2 and Cargo](24-superiority-tracks.md) | Planned (2026-12-06) | Tracks G1–G12 for being *better* rather than equal: Cargo-grade lifecycle CLI, additive C++ feature flags, per-package profiles and toolchain pinning, polyglot Rust/Fortran/CUDA/Zig, hermeticity plus SLSA attestations and advisories, versioned metadata/schemas and DAP/plugin protocols, affected builds and build scans, doctests/sharding/coverage gates/fuzzing, zero-config onboarding and error quality, distribution ecosystem, policy-as-code and `vbs ci`, two-way interop | +| [24 — Superiority tracks beyond CMake, Meson, build2 and Cargo](24-superiority-tracks.md) | Planned (2026-12-06) | Executive summary with the five decisive moves (Cargo-grade lifecycle, real C++ feature flags, per-package profiles and toolchain pinning, polyglot builds, trust layer), the existing wedge to protect, and tracks G1–G12: lifecycle CLI, feature flags, profiles/toolchain pin, polyglot Rust/Fortran/CUDA/Zig, hermeticity plus SLSA attestations and advisories, versioned metadata/schemas and DAP/plugin protocols, affected builds and build scans, doctests/sharding/coverage gates/fuzzing, zero-config onboarding and error quality, distribution ecosystem, policy-as-code and `vbs ci`, two-way interop | ## Dependency graph