feat: adopt VoidLibrary VL-001..VL-013, self-building build.cpp, live logs, and generated CLI help
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
This commit is contained in:
1 parent
ab64147f9d
commit
363fb8200e
33 files changed
+1754
-3155
No files matched your search
@@ -1,259 +1,43 @@
|
||||
# VoidLibrary Upstream Feature Requests
|
||||
|
||||
Pinned baseline inspected: `9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5`.
|
||||
Pinned VoidLibrary revision: `3e254055e081a104f08df68dde39711bc7813518` (merged `feat/upstream-vbs-requests` covering `VL-001`..`VL-013`; upgraded from `9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5`).
|
||||
|
||||
This ledger tracks reusable, non-build-system-specific capabilities needed by
|
||||
VoidBuildSystem that are absent, incomplete, or tightly bound to external
|
||||
system libraries in the pinned VoidLibrary revision. Until a dedicated
|
||||
VoidLibrary worker implements these items and the pin is updated, VBS keeps
|
||||
swappable local adapters behind clean internal interfaces.
|
||||
## Status Summary
|
||||
|
||||
| ID | Capability | Upstream Status (`3e254055...`) | VBS Adoption Status |
|
||||
| --- | --- | --- | --- |
|
||||
| `VL-001` | Process group supervision (`Void::Process::spawn`, `communicate_blocking`, `enable_subreaper`) | Implemented | **Adopted** (`src/Platform/ProcessSupervisor.cpp`) |
|
||||
| `VL-002` | TOML 1.0 parser & serializer (`Void::Data::Toml`) | Implemented | **Adopted** (`src/Package/Toml.cpp`) |
|
||||
| `VL-003` | Kernel `inotify` recursive directory watcher (`Void::FileSystem::DirectoryWatcher`) | Implemented | **Adopted** (`src/Watch/Watcher.cpp`, `include/Void/Build/Watch/Watcher.hpp`) |
|
||||
| `VL-004` | Concrete HTTP/1.1 server (`Void::Net::HttpServer`) | Implemented (requires Boost + OpenSSL) | Local loopback POSIX adapter retained for minimal `dev cpp-gcc` (no Boost/OpenSSL) |
|
||||
| `VL-005` | Streaming HTTP client & TLS default (`Void::Net::HttpClient`) | Implemented (requires Boost + OpenSSL) | Local loopback POSIX + `curl` adapter retained for minimal `dev cpp-gcc` (no Boost/OpenSSL) |
|
||||
| `VL-006` | Deterministic archive creation & safe staged extraction (`Void::Archive::create`, `extract_staged`) | Implemented (zero external deps for `.tar`) | **Adopted** (`src/Package/Archive.cpp`, always linked via `Void::Archive`) |
|
||||
| `VL-007` | Zero-dependency built-in SHA-256 / BLAKE2b (`Void::Crypto::Hasher`) | Implemented (zero external deps when OpenSSL absent) | **Adopted** (`include/Void/Build/Util/Sha256.hpp`, `src/Util/Sha256.cpp`, always linked via `Void::Crypto`) |
|
||||
| `VL-008` | Strict UTF-8 validation (`Void::Json::Strict`, `Void::Unicode::validate_utf8`) | Implemented | **Adopted** (`src/Util/Json.cpp`, `Void::Json::Strict` throughout) |
|
||||
| `VL-009` | Native non-CMake `Void::Testing` registration API | Implemented | **Adopted** (supported alongside `vbs gen-tests` in `src/SelfHost/TestRegistryGen.cpp`) |
|
||||
| `VL-010` | Advisory `FileLock`, `reflink_copy_file`, `set_canonical_mtime`, `atomic_symlink_swap` (`Void::FileSystem`) | Implemented | **Adopted** (`include/Void/Build/Platform/FileOps.hpp`, `src/Platform/FileOps.cpp`) |
|
||||
| `VL-011a` | Subcommands, `option_many`, `positional_many`, `ParseOutcome::Help` (`Void::Argparse::Parser`) | Implemented | **Adopted** (`src/Main.cpp`, `src/Describe.cpp`, `registry/service/Main.cpp`, `benchmarks/EngineBenchmarks.cpp` — 100% auto-generated help) |
|
||||
| `VL-011b` | Optional SQLite3 FetchContent (`Void::Sqlite`) | Implemented (`VOID_FETCH_SQLITE3`) | Opportunistic when system `SQLite3` is installed (`VOID_FETCH_SQLITE3=OFF` to keep offline configures fast); journaled atomic CAS store retained |
|
||||
| `VL-012` | Naming consistency observation | Noted | VBS strictly uses `Void::Build`, `PascalCase` types/enums/paths, `snake_case` functions/methods |
|
||||
| `VL-013` | Shorthand SemVer ranges (`^1.0`, `~1.2`, `>=1.2 <2`) in `Void::Semver::parse_range` | Implemented | **Adopted** (`src/Package/Solver.cpp` delegates directly to `Void::Semver::parse_range`) |
|
||||
|
||||
---
|
||||
|
||||
## VL-001: Robust Process Descendant Lifecycle Supervision (`Void::Process`)
|
||||
## Detailed Notes
|
||||
|
||||
- **Target module**: `System` (`include/Void/System/Process.hpp`)
|
||||
- **Priority**: High (Plan 06 — Execution & Cancellation)
|
||||
- **Current gap**: `Void::Process::Child::terminate()` signals the process
|
||||
group and waits for the direct leader PID, but returns immediately once the
|
||||
leader exits even if grandchildren remain alive in the process group (e.g.
|
||||
ignoring `SIGTERM`).
|
||||
- **Requested API / behavior**:
|
||||
- Track the entire owned process group (and optionally opt into Linux
|
||||
`PR_SET_CHILD_SUBREAPER` or `pidfd` / `waitpid(-pgid, ...)` draining).
|
||||
- `Child::terminate(grace)` must send `SIGTERM` to `-pgid`, poll/wait until
|
||||
**all** members of the process group exit (not only the leader), escalate
|
||||
to `SIGKILL` on `-pgid` when `grace` expires, and reap/confirm no members
|
||||
remain (`kill(-pgid, 0) == -1 && errno == ESRCH`).
|
||||
- **Acceptance test**: Leader spawns grandchild that ignores `SIGTERM`, leader
|
||||
exits immediately; `terminate(100ms)` escalates to `SIGKILL` and verifies the
|
||||
grandchild cannot write after `terminate()` returns.
|
||||
- **VBS temporary adapter**: `Void::Build::Platform::SupervisedProcess` in
|
||||
`src/Platform/ProcessSupervisor.cpp`.
|
||||
### Adopted Upstream Capabilities (`VL-001`, `VL-002`, `VL-003`, `VL-006`, `VL-007`, `VL-008`, `VL-009`, `VL-010`, `VL-011a`, `VL-013`)
|
||||
|
||||
## VL-002: TOML 1.0 Parser and Serializer (`Void::Data::Toml`)
|
||||
- **`VL-001` (`Void::Process`)**: `src/Platform/ProcessSupervisor.cpp` delegates process spawning, pipe multiplexing, timeouts, cancellation, `PR_SET_CHILD_SUBREAPER`, and `-pgid` `SIGTERM -> SIGKILL` termination to `Void::Process::spawn`, `Void::Process::communicate_blocking`, and `Void::Process::enable_subreaper`, adding post-leader process-group drain supervision for detached grandchildren with redirected stdio.
|
||||
- **`VL-002` (`Void::Data::Toml`)**: `src/Package/Toml.cpp` delegates all TOML 1.0 parsing and canonical table serialization to `Void::Data::Toml::parse` and `Void::Data::Toml::serialize_table`.
|
||||
- **`VL-003` (`Void::FileSystem::DirectoryWatcher`)**: `src/Watch/Watcher.cpp` wraps `Void::FileSystem::DirectoryWatcher` for recursive Linux `inotify` observation, ignore predicates, and `RescanRequired` overflow handling.
|
||||
- **`VL-006` (`Void::Archive`)**: `CMakeLists.txt`, `cmake/VoidDependency.cmake`, `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, and `recipes/SelfHost/VbsSelfHostRecipe.cpp` unconditionally enable `Void::Archive` (`VOID_ARCHIVE_HAS_LIBARCHIVE=0` built-in USTAR/PAX tar), and `src/Package/Archive.cpp` delegates archive creation and staged security-checked extraction to `Void::Archive::create` and `Void::Archive::extract_staged` + `StagedTree::publish`.
|
||||
- **`VL-007` (`Void::Crypto`)**: `Void::Crypto` (`VOID_CRYPTO_HAS_OPENSSL=0` built-in FIPS 180-4 SHA-256) is unconditionally linked, and `src/Util/Sha256.cpp` delegates directly to `Void::Crypto::Hasher`, `Void::Crypto::sha256`, and `Void::Crypto::sha256_file`.
|
||||
- **`VL-008` (`Void::Json::Strict` / `Void::Unicode`)**: Strict UTF-8 validation is active across `Void::Json::Strict` and `src/Util/Json.cpp`.
|
||||
- **`VL-010` (`Void::FileSystem`)**: `src/Platform/FileOps.cpp` delegates `FileLock`, `copy_isolated`, `set_canonical_mtime`, and `atomic_swap_symlink` directly to `Void::FileSystem::FileLock`, `reflink_copy_file`, `set_canonical_mtime`, and `atomic_symlink_swap`.
|
||||
- **`VL-011a` (`Void::Argparse::Parser`)**: Every VBS executable (`vbs`, `vbs-registry`, `vbs_describe`, `vbs_benchmarks`) uses `Void::Argparse::Parser::parse_detailed()` with native `subcommand()`, `option_many()`, `positional_many()`, and `require_subcommand()` — eliminating all custom help strings, manual `--help` checks, and manual repeatable-argument slicing.
|
||||
- **`VL-013` (`Void::Semver::parse_range`)**: `src/Package/Solver.cpp` calls `Void::Semver::parse_range()` directly without local range normalization.
|
||||
|
||||
- **Target module**: `Data` (`include/Void/Data/Toml.hpp`)
|
||||
- **Priority**: High (Plan 11 — Dependency Declarations & Lockfiles)
|
||||
- **Current gap**: `Void::Data` provides `Json`, `StrictJson`, `Ini`, `Csv`,
|
||||
and `Reflect`, with no TOML 1.0 parser/serializer.
|
||||
- **Requested API / behavior**:
|
||||
- Full TOML 1.0 parser returning `Void::Result::Result<Document, ParseError>`
|
||||
with line/column source locations (`Origin{line, column}`) on every node
|
||||
and error.
|
||||
- Typed values preserving string, boolean, signed 64-bit integer, double,
|
||||
datetime, array, inline table, table, and array-of-tables, plus
|
||||
deterministic canonical serializer.
|
||||
- **Acceptance test**: Round-trip TOML 1.0 compliance fixtures including
|
||||
multiline strings, dotted keys, inline tables, arrays of tables, comments,
|
||||
and exact line/column error reporting on duplicate/malformed keys.
|
||||
- **VBS temporary adapter**: `Void::Build::Package::Toml` in
|
||||
`src/Package/Toml.cpp`.
|
||||
### Remaining Optional External-Dependency Adapters (`VL-004`, `VL-005`, `VL-011b`)
|
||||
|
||||
## VL-003: Kernel-Event Recursive Directory Watcher (`Void::System` / `Void::SystemAsync`)
|
||||
|
||||
- **Target module**: `System` / `SystemAsync`
|
||||
(`include/Void/System/DirectoryWatcher.hpp` or extension to `AsyncWatcher.hpp`)
|
||||
- **Priority**: High (Plan 10 — Build & Metadata Watchers)
|
||||
- **Current gap**: `Void::FileSystem::FileWatcher` and
|
||||
`Void::SystemAsync::WatcherService` are polling-only per explicit path. They
|
||||
do not use Linux `inotify` for low-latency recursive tree observation or emit
|
||||
kernel queue-overflow (`IN_Q_OVERFLOW`) rescan signals.
|
||||
- **Requested API / behavior**:
|
||||
- Linux `inotify`-backed recursive directory watcher with ignore predicates
|
||||
(to skip `.git`, `build/`, etc.), automatic watch attachment on newly
|
||||
created subdirectories, rename pairing (`IN_MOVED_FROM` / `IN_MOVED_TO`),
|
||||
and explicit `RescanRequired` events on `IN_Q_OVERFLOW` or watch-limit
|
||||
errors (`ENOSPC`).
|
||||
- **Acceptance test**: Recursive create/modify/rename/delete storms, directory
|
||||
replacement, and simulated overflow reliably trigger `RescanRequired`.
|
||||
- **VBS temporary adapter**: `Void::Build::Watch::InotifyWatcher` in
|
||||
`src/Watch/Watcher.cpp`.
|
||||
|
||||
## VL-004: Concrete HTTP/1.1 Server Transport (`Void::Net::HttpServer`)
|
||||
|
||||
- **Target module**: `Net` (`include/Void/Net/HttpServer.hpp`)
|
||||
- **Priority**: High (Plan 16 & 17 — Hosted Registry Service & Web UI)
|
||||
- **Current gap**: `Void::Net::Server.hpp` provides transport-neutral `Router`,
|
||||
`StaticFileResolver`, and `WebSocketSessions`, while `Void::Net::Socket.hpp`
|
||||
only provides `UdpSocket`. There is no concrete TCP/HTTP server listener.
|
||||
- **Requested API / behavior**:
|
||||
- Concrete loopback/configurable TCP HTTP/1.1 server dispatching through
|
||||
`Void::Net::Router`, supporting ephemeral port binding (`port == 0` with
|
||||
`bound_port()` query), configurable header/body size limits, graceful
|
||||
shutdown, and streaming request/response bodies to/from files.
|
||||
- **Acceptance test**: Ephemeral-port loopback server handling concurrent
|
||||
GET/PUT/POST/DELETE requests, oversized body rejection (413), and clean
|
||||
shutdown without dangling sockets.
|
||||
- **VBS temporary adapter**: `Void::Build::Registry::HttpServer` in
|
||||
`registry/service/HttpServer.cpp`.
|
||||
|
||||
## VL-005: Streaming HTTP Client & Secure TLS Default (`Void::Net::HttpClient`)
|
||||
|
||||
- **Target module**: `Net` (`include/Void/Net/Http.hpp`)
|
||||
- **Priority**: Medium (Plan 12 — Package Fetching)
|
||||
- **Current gap**: `HttpClient::send()` buffers the entire response body in
|
||||
`std::string` and defaults `m_verify_tls = false`.
|
||||
- **Requested API / behavior**:
|
||||
- Add streaming download-to-file (`download_to_file`) and streaming
|
||||
upload-from-file (`upload_file`) with byte quotas, cancellation
|
||||
(`std::stop_token`), and incremental digest/progress callbacks.
|
||||
- Provide a secure constructor/preset with TLS certificate verification
|
||||
enabled by default and explicit redaction of `Authorization` headers in
|
||||
diagnostics.
|
||||
- **Acceptance test**: Streaming multi-megabyte transfer with quota overflow
|
||||
abort and TLS verification check.
|
||||
- **VBS temporary adapter**: `Void::Build::Package::HttpTransfer` in
|
||||
`src/Package/Fetch.cpp`.
|
||||
|
||||
## VL-006: Archive Creation and Multi-Format Support (`Void::Archive`)
|
||||
|
||||
- **Target module**: `Archive` (`include/Void/Archive/Archive.hpp`)
|
||||
- **Priority**: Medium (Plan 12 & 15 — Source/Binary Packaging)
|
||||
- **Current gap**: `Void::Archive` currently exposes only `extract()` for
|
||||
`tar`/`tar.zst` and requires external `LibArchive::LibArchive`. There is no
|
||||
archive creation API (`create()`), nor pure-C++ USTAR/PAX tar fallback.
|
||||
- **Requested API / behavior**:
|
||||
- Add deterministic `Void::Archive::create()` accepting sorted entries,
|
||||
canonical mtime/uid/gid/mode metadata (for reproducible archives), and
|
||||
safe extraction for `.tar`, `.tar.gz`, `.tar.zst`.
|
||||
- **Acceptance test**: Deterministic archive creation (byte-identical across
|
||||
runs with fixed epoch), round-trip extraction, and traversal/symlink-escape
|
||||
rejection.
|
||||
- **VBS temporary adapter**: `Void::Build::Package::TarArchive` (pure-C++
|
||||
deterministic PAX/USTAR tar reader/writer + optional gzip/zstd piping) in
|
||||
`src/Package/Archive.cpp`.
|
||||
|
||||
## VL-007: Zero-Dependency Built-In SHA-256 / BLAKE2b Fallback (`Void::Crypto`)
|
||||
|
||||
- **Target module**: `Crypto` (`include/Void/Crypto/Crypto.hpp`)
|
||||
- **Priority**: Medium (Plan 05, 07, 11, 12, 16)
|
||||
- **Current gap**: `Void::Crypto` requires external `OpenSSL::Crypto`, which is
|
||||
not installed in minimal C++ toolchain environments such as `dev cpp-gcc`.
|
||||
- **Requested API / behavior**:
|
||||
- Support a built-in pure-C++ FIPS 180-4 SHA-256 (and SHA-512) implementation
|
||||
in `Void::Crypto` when OpenSSL is absent (or as a lightweight
|
||||
`Void::CryptoHash` module without external dependencies), keeping the exact
|
||||
`Void::Crypto::Hasher` API.
|
||||
- **Acceptance test**: NIST CAVP SHA-256 vectors + streaming file hashing
|
||||
compile and pass with zero external crypto packages.
|
||||
- **VBS temporary adapter**: `Void::Build::Util::Sha256Hasher` in
|
||||
`src/Util/Sha256.cpp` (with compile-time switch to `Void::Crypto::Hasher`
|
||||
when `VBS_HAS_VOID_CRYPTO` is enabled).
|
||||
|
||||
## VL-008: Strict UTF-8 Validation in `Void::Json::Strict` (`Void::Data`)
|
||||
|
||||
- **Target module**: `Data` (`include/Void/Data/StrictJson.hpp`)
|
||||
- **Priority**: Medium (Observed in V-002 review)
|
||||
- **Current gap**: `Void::Json::Strict::parse()` accepts raw invalid UTF-8
|
||||
bytes (e.g. `0xff`, overlong sequences, UTF-8 encoded surrogates) inside JSON
|
||||
strings instead of rejecting them per RFC 8259.
|
||||
- **Requested API / behavior**:
|
||||
- Validate every UTF-8 byte sequence in JSON strings and object keys during
|
||||
both `parse()` and serialization (reusing `Void::Unicode::is_scalar_value`
|
||||
/ UTF-8 validation).
|
||||
- **Acceptance test**: Reject stray continuation bytes, overlong encodings,
|
||||
surrogates (`U+D800..U+DFFF`), and code points `> U+10FFFF` while preserving
|
||||
all valid 1..4-byte Unicode scalars.
|
||||
- **VBS temporary adapter**: `src/Util/Json.cpp` now delegates to
|
||||
`Void::Unicode::validate_utf8` whenever `VBS_HAS_VOID_UNICODE` is enabled
|
||||
(preserving a pure-C++ fallback for standalone SDK compilation), and
|
||||
`src/Build.cpp` enforces `require_utf8()`.
|
||||
|
||||
## VL-009: Native Non-CMake Test Registration API (`Void::Testing`)
|
||||
|
||||
- **Target module**: `Testing` (`include/Void/Testing/Test.hpp`,
|
||||
`cmake/VoidTestScanner.cmake`)
|
||||
- **Priority**: High (Plan 18 — Strict Native Self-Hosting)
|
||||
- **Current gap**: Test discovery currently relies on CMake running
|
||||
`VoidTestScanner.cmake` at configure time to scan `.cpp` files and emit a
|
||||
generated registration translation unit. Strict native self-hosting stages
|
||||
cannot depend on CMake.
|
||||
- **Requested API / behavior**:
|
||||
- Provide either a first-class self-registering C++ macro/helper API in
|
||||
`Void::Testing` (e.g. `VOID_TEST(suite, name)` with path-disambiguated
|
||||
unique symbols avoiding basename collisions) or an officially supported
|
||||
standalone C++ registration generator library/header contract.
|
||||
- **Acceptance test**: Build and run a multi-file `Void::Testing` binary
|
||||
purely with `g++` (zero CMake), verifying `--list`, `--filter`, and exact
|
||||
nonzero test count even when two files share the same stem in different
|
||||
subdirectories.
|
||||
- **VBS temporary adapter**: Native C++ test registration generator in
|
||||
`src/SelfHost/TestRegistryGen.cpp` (Plan 18).
|
||||
|
||||
## VL-010: Advisory File Locks, Atomic Symlink Swap, Reflink Copy & Canonical Timestamps (`Void::FileSystem`)
|
||||
|
||||
- **Target module**: `System` (`include/Void/System/Path.hpp`)
|
||||
- **Priority**: Medium (Plan 05, 07, 09, 11)
|
||||
- **Current gap**: `Void::FileSystem::replace_file()` covers atomic durable
|
||||
regular-file replacement, but lacks:
|
||||
- RAII advisory file locks (`flock` / `fcntl` shared & exclusive, blocking
|
||||
and try-lock).
|
||||
- Atomic symlink swap (`symlink` to temp name + `rename` + parent dir
|
||||
`fsync`).
|
||||
- Copy-on-write reflink copy (`ioctl(FICLONE)` with private-copy fallback,
|
||||
explicitly never hardlinking).
|
||||
- Canonical timestamp setter (`utimensat(..., AT_SYMLINK_NOFOLLOW)`).
|
||||
- **Requested API / behavior**: Add these primitives to `Void::FileSystem` with
|
||||
`Void::Result::Result` error reporting matching `replace_file()`.
|
||||
- **VBS temporary adapter**: `Void::Build::Platform::FileOps` in
|
||||
`src/Platform/FileOps.cpp`.
|
||||
|
||||
## VL-011: Embedded/Optional SQLite & Argparse Subcommands (`Void::Sqlite`, `Void::Argparse`)
|
||||
|
||||
- **Target modules**: `Sqlite`, `Configuration`
|
||||
- **Priority**: Low–Medium (Plan 07, 10, 16)
|
||||
- **Current gaps**:
|
||||
1. `Void::Argparse::Parser` does not natively support subcommands
|
||||
(`vbs build`, `vbs compdb use`, `vbs deps resolve`) or repeatable options
|
||||
(`--target a --target b`, `--profile debug --profile release`), and
|
||||
reports `--help` through the error channel.
|
||||
2. `Void::Sqlite` requires system `SQLite3::SQLite3` (`find_package`) with no
|
||||
optional FetchContent/amalgamation fallback when building in minimal tool
|
||||
environments (`dev cpp-gcc`).
|
||||
- **Requested API / behavior**:
|
||||
- Add subcommand dispatch, repeatable `option_many()`, and distinct
|
||||
`ParseOutcome::Help` vs `ParseOutcome::Error` in `Void::Argparse::Parser`.
|
||||
- Allow optional FetchContent/amalgamation SQLite3 in
|
||||
`cmake/Dependencies.cmake` (parallel to Boost) so `Void::Sqlite` works in
|
||||
minimal shells.
|
||||
- **VBS temporary adapter**: `src/Main.cpp`, `registry/service/Main.cpp`,
|
||||
`src/Describe.cpp`, and `benchmarks/EngineBenchmarks.cpp` all delegate option
|
||||
parsing and `--help` generation to `Void::Argparse::Parser` (with only thin
|
||||
subcommand-dispatch and repeatable-flag extraction wrappers in `src/Main.cpp`).
|
||||
`src/State/StateStore.cpp` provides a crash-safe journaled atomic-replace
|
||||
backend using `Void::FileSystem::replace_file` while preserving a compile-time
|
||||
`Void::Sqlite` switch when `SQLite3` is present.
|
||||
|
||||
## VL-012: VoidLibrary Naming Consistency Note
|
||||
|
||||
- **Observation**: Most VoidLibrary modules use `PascalCase` enums
|
||||
(`Void::Crypto::HashAlgorithm::Sha256`, `Void::Sqlite::OpenMode::ReadOnly`,
|
||||
`Void::Net::Method::Get`, `Void::Security::PasswordHashStrength::Moderate`)
|
||||
and `snake_case` functions/methods. A few headers mix styles
|
||||
(`Void::Crypto::sha256File` camelCase vs `Void::Security::hash_password`
|
||||
snake_case; `Void::Process::EnvMode::inherit` snake_case vs
|
||||
`Void::Sqlite::OpenMode::ReadOnly` PascalCase). VoidBuildSystem standardizes
|
||||
strictly on `Void::Build` (`PascalCase` types/enums/filenames, `snake_case`
|
||||
functions/methods) to align with the primary VoidLibrary style.
|
||||
|
||||
## VL-013: Shorthand SemVer Range Comparators (`Void::Semver::VersionRange`)
|
||||
|
||||
- **Target module**: `Text` (`include/Void/Text/Semver.hpp`)
|
||||
- **Priority**: Medium (Plan 11 — Native Dependency Solver)
|
||||
- **Current gap**: `Void::Semver::VersionRange::parse()` calls
|
||||
`parse_strict()` on comparator/caret/tilde operands and rejects omitted minor
|
||||
or patch components such as `^1`, `^1.0`, `^11.0`, `~1.2`, `>=1.2 <2`, or
|
||||
`<2`. While wildcard tokens (`1.*`, `1.2.x`) are accepted, standard
|
||||
Cargo/npm-style shorthand comparators fail to parse.
|
||||
- **Requested API / behavior**:
|
||||
- Support partial version bounds in `Void::Semver::VersionRange::parse()`:
|
||||
- `^M` -> `>=M.0.0 <(M+1).0.0` (including `^0` -> `<1.0.0`)
|
||||
- `^M.m` -> `^M.m.0`
|
||||
- `~M` -> `>=M.0.0 <(M+1).0.0`, `~M.m` -> `~M.m.0`
|
||||
- `>=M`, `>=M.m`, `<M`, `<M.m`, etc. padded to `.0` / `.0.0`.
|
||||
- **Acceptance test**: `parse_range("^1.0")`, `parse_range("^11.0")`,
|
||||
`parse_range("~1.2")`, `parse_range(">=1.2 <2")`, and `parse_range("<1.2.0")`
|
||||
all parse cleanly and match the expected versions.
|
||||
- **VBS temporary adapter**: `parse_semver_range_compat()` in
|
||||
`src/Package/Solver.cpp`.
|
||||
- **`VL-004` / `VL-005` (`Void::Net`)**: `Void::Net` in VoidLibrary still requires external `Boost` + `OpenSSL` (`src/Net/module.cmake`), which are absent in minimal `dev cpp-gcc`. VBS keeps its zero-dependency POSIX loopback `HttpServer` (`registry/service/HttpServer.cpp`) and `RegistryClient` (`src/Package/RegistryClient.cpp`) until a Boost-free/minimal-dependency transport is desired or available in the base toolchain.
|
||||
- **`VL-011b` (`Void::Sqlite`)**: `cmake/VoidDependency.cmake` disables network fetches during CMake configure (`VOID_FETCH_SQLITE3=OFF`) and opportunistically enables `Void::Sqlite` when system `SQLite3` is installed; `src/State/StateStore.cpp` continues providing crash-safe atomic-replace CAS persistence in minimal shells.
|
||||
@@ -1,8 +1,8 @@
|
||||
# Development state
|
||||
|
||||
Updated: 2026-11-26
|
||||
Updated: 2026-11-27
|
||||
Branch: main
|
||||
Stage: VERIFIED — Full v1 implementation (Plans 01–19) complete, maximal VoidLibrary reuse wired, ready for commit & push
|
||||
Stage: VERIFIED — Full v1 implementation (Plans 01–19) + VoidLibrary `VL-001`..`VL-013` adoption + self-building `vbs build` + live `Void::Log` progress + 100% auto-generated `Void::Argparse` CLI complete
|
||||
|
||||
## Completed delivery waves
|
||||
|
||||
@@ -16,18 +16,23 @@ Stage: VERIFIED — Full v1 implementation (Plans 01–19) complete, maximal Voi
|
||||
- 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/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 with shorthand comparator adapter (`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 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)**:
|
||||
- Replaced manual CLI loops & help strings across `src/Main.cpp`, `registry/service/Main.cpp`, and `benchmarks/EngineBenchmarks.cpp` with `Void::Argparse::Parser` (`<Void/Configuration/Argparse.hpp>`).
|
||||
- Replaced hand-rolled topological sorts, hex/URL encoding, UTF-8 validation, ASCII string helpers, scope guards, stopwatches, env lookups, and worker threads with VoidLibrary modules (`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`).
|
||||
- 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.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
@@ -35,6 +40,6 @@ Stage: VERIFIED — Full v1 implementation (Plans 01–19) complete, maximal Voi
|
||||
|
||||
## Environment notes & upstream boundaries
|
||||
|
||||
- External VoidLibrary pin `9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5` is preserved cleanly in [cmake/VoidDependency.cmake](../../cmake/VoidDependency.cmake), and VBS never writes to `/home/faumaray/Projects/VoidLibrary`.
|
||||
- `dev cpp-gcc` lacks external `SQLite3`, `OpenSSL`, `LibArchive`, and `conan`; VBS runs verified pure-C++/POSIX adapters while keeping upstream adapters behind optional compile-time switches in `cmake/VoidDependency.cmake`.
|
||||
- See [VERIFICATION.md](VERIFICATION.md) for all observed builds, tests, Clang 23 matrix runs, formatting checks, and benchmark results.
|
||||
- External VoidLibrary pin `3e254055e081a104f08df68dde39711bc7813518` is set in [CMakeLists.txt](../../CMakeLists.txt), [cmake/VoidDependency.cmake](../../cmake/VoidDependency.cmake), and [build.cpp](../../build.cpp). VBS never writes to `/home/faumaray/Projects/VoidLibrary`.
|
||||
- `Void::Crypto` and `Void::Archive` now build unconditionally with zero external dependencies in `dev cpp-gcc`; only `SQLite3`, `Boost`/`OpenSSL` (`Void::Net`), and `conan` remain optional external prerequisites.
|
||||
- See [VERIFICATION.md](VERIFICATION.md) for all observed builds, tests, Clang 23 matrix runs, formatting checks, benchmark results, and real self-build verification.
|
||||
@@ -1,7 +1,7 @@
|
||||
# Task graph and ownership
|
||||
|
||||
Updated: 2026-11-26
|
||||
Base HEAD: `3cac890ce9b8a0681130a58601e0516231471ad8`
|
||||
Updated: 2026-11-27
|
||||
Base HEAD: `ab64147`
|
||||
|
||||
| Wave | Scope | Status | Primary Deliverables |
|
||||
| --- | --- | --- | --- |
|
||||
@@ -12,4 +12,5 @@ Base HEAD: `3cac890ce9b8a0681130a58601e0516231471ad8`
|
||||
| Wave 3 (Plans 11–15, 18) | TOML 1.0, PubGrub solver, CAS lockfile, tar/fetch, CMake/Meson/Conan providers, `VbsDeps.cmake` bridge, install/export, native `VoidLibrary` + test scanner | COMPLETE & VERIFIED | `Package/`, `Provider/`, `Bridge/`, `Install/`, `SelfHost/`, `recipes/VoidLibrary/`, `tests/SelfHostTests.cpp` |
|
||||
| Wave 4 (Plans 08, 16–17, 19) | P1689 modules/header units/unity, `vbs-registry` HTTP/1.1 service + web UI, full `vbs` CLI, benchmarks, CI template | COMPLETE & VERIFIED | `Modules/`, `registry/`, `src/Main.cpp`, `benchmarks/`, `.github/workflows/ci.yml`, `tests/RegistryTests.cpp` |
|
||||
| Wave 5 (VoidLibrary Reuse & End-to-End Closure) | `Void::Argparse::Parser` across all CLIs, `Void::Algorithms`/`Unicode`/`Async`/`Str`/`Hex`/`Url`/`Scope`/`Stopwatch` adoption, Plan 08 graph lowering (GCC+Clang modules/partitions, unity, header units, sanitizers), live `RegistryClient` + `vbs publish`, full Stage 1 -> Stage 2 `VbsSelfHostRecipe` | COMPLETE & VERIFIED | `src/Main.cpp`, `src/Graph/Graph.cpp`, `src/Package/RegistryClient.cpp`, `recipes/SelfHost/VbsSelfHostRecipe.cpp`, expanded test suites |
|
||||
| Wave 6 (Upstream `VL-001`..`VL-013` Pin Bump, Self-Building `vbs build`, Live Logs & Generated CLI Help) | Bump VoidLibrary pin to `3e254055e081a104f08df68dde39711bc7813518`; adopt `Void::Crypto`, `Void::Archive`, `Void::Data::Toml`, `Void::Semver::parse_range`, `Void::FileSystem::FileLock`/`DirectoryWatcher`/`reflink_copy_file`/`atomic_symlink_swap`/`set_canonical_mtime`, `Void::Process`, `Void::Argparse::Parser` subcommands + `option_many` + `parse_detailed`; full self-building root `build.cpp`; live `Void::Log` console progress | COMPLETE & VERIFIED | `CMakeLists.txt`, `cmake/VoidDependency.cmake`, `build.cpp`, `src/Main.cpp`, `src/Describe.cpp`, `registry/service/Main.cpp`, `benchmarks/EngineBenchmarks.cpp`, `src/Util/Sha256.cpp`, `src/Package/{Toml,Solver,Archive,Fetch}.cpp`, `src/Platform/{FileOps,ProcessSupervisor}.cpp`, `src/Watch/Watcher.cpp`, `src/Provider/Provider.cpp`, `src/Graph/Graph.cpp`, `src/Execution/Scheduler.cpp`, `recipes/`, updated contracts & docs |
|
||||
| Future (Plan 20) | Native foreign build translation & Windows/macOS ports | PLANNED (unimplemented) | [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -1,20 +1,20 @@
|
||||
# Verification record
|
||||
|
||||
Updated: 2026-11-26
|
||||
Updated: 2026-11-27
|
||||
Working directory: `/home/faumaray/Projects/VoidBuildSystem`
|
||||
|
||||
All checks below were executed after the final C++ edits and formatting pass. Planned/non-executed items are separated explicitly under **Limits and Unrun Checks**.
|
||||
|
||||
## Toolchain & Dependency Integrity
|
||||
|
||||
- Configure baseline (`build/dev`): Ninja Debug C++26 (`-DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON`) pointing at workspace-local fetched pin `build/bootstrap-pinned/_deps/voidlibrary-src` (`modules=13`, enabling `Void::Algorithms`, `Void::Async`, `Void::Configuration`, `Void::Text`, `Void::Unicode`, `Void::Testing`, and core dependencies).
|
||||
- Configure baseline (`build/dev`): Ninja Debug C++26 (`-DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON`) against clean detached checkout of VoidLibrary pin `3e254055e081a104f08df68dde39711bc7813518` (`modules=15`, enabling `Void::Algorithms`, `Void::Archive`, `Void::Async`, `Void::Configuration`, `Void::Crypto`, `Void::Text`, `Void::Unicode`, `Void::Testing`, and core dependencies with zero external crypto/archive libraries).
|
||||
- Build command:
|
||||
```sh
|
||||
dev cpp-gcc -c cmake --build build/dev --parallel 4
|
||||
```
|
||||
- Exit status: `0` (all library targets `VoidBuild_Sdk`, `VoidBuild_Core`, `VoidBuild_Registry`, binaries `vbs`, `vbs-registry`, `vbs_describe`, `vbs_benchmarks`, and 5 `Void::Testing` executables compiled and linked with zero warnings in VBS-owned code; upstream `Void::Testing` headers still emit `-Wmissing-field-initializers`).
|
||||
- Exit status: `0` (all library targets `VoidBuild_Sdk`, `VoidBuild_Core`, `VoidBuild_Registry`, binaries `vbs`, `vbs-registry`, `vbs_describe`, `vbs_benchmarks`, and 5 `Void::Testing` executables compiled and linked cleanly).
|
||||
- Pin checks:
|
||||
- `git -C build/bootstrap-pinned/_deps/voidlibrary-src rev-parse HEAD` -> `9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5` (exit `0`).
|
||||
- Detached VoidLibrary checkout `HEAD` == `3e254055e081a104f08df68dde39711bc7813518` (`Merge branch 'feat/upstream-vbs-requests' (VL-001..VL-013)`).
|
||||
- VBS made zero writes to `/home/faumaray/Projects/VoidLibrary`.
|
||||
|
||||
## Formatting Check
|
||||
@@ -34,28 +34,47 @@ dev cpp-gcc -c clang-format --dry-run --Werror \
|
||||
## CTest Suite Results (`dev cpp-gcc`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c ctest --test-dir build/dev --verbose
|
||||
dev cpp-gcc -c ctest --test-dir build/dev --output-on-failure
|
||||
```
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 62.92 sec**:
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 85.66 sec**:
|
||||
|
||||
| # | CTest Name | Exact Runner Output / Scope Verified | Result | Time |
|
||||
| # | CTest Name | Scope Verified | Result | Time |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 1 | `vbs_sdk_tests` | `17 tests: 17 ✔ in 6.5ms` (`SdkDeclarations` 14 + `ExampleContexts` 3, using `Void::Unicode::validate_utf8`) | Passed | 0.01s |
|
||||
| 2 | `vbs_core_tests` | `6 tests: 6 ✔ in 11.29s`: SHA-256 NIST vectors (`Void::Encoding::Hex`), `ProcessSupervisor` exec-fail & grandchild `SIGKILL`, profile inheritance/cycles, snapshot mutation/symlinks/header-shadowing, CAS corruption/recovery/GC, end-to-end native frontend + deterministic build + `Void::Algorithms::topological_order` + `Void::Concurrency::ThreadPool` + deleted archive symbol removal | Passed | 11.30s |
|
||||
| 3 | `vbs_v1_tests` | `8 tests: 8 ✔ in 11.22s`: CompDB ticket races/user-file preservation/recovery, `inotify` watcher + `MetadataOnly` boundary, TOML 1.0/PubGrub solver/CAS `vbs.lock`, PAX/USTAR `.tar` determinism/traversal/symlink rejection/binary ABI/secret redaction, real CMake & Meson providers + `VbsDeps.cmake` bridge + relocatable install + CLI `vbs install`/`vbs uninstall`, GCC 16 P1689 module scan/collation/execution + cycle/dup checks + unity exclusion, Clang check, AND full `Graph::lower_project_graph` Plan 08 integration (incompatible ASan+TSan rejection, GCC 16 module partition + primary interface + consumer, unity batching + per-file-option exclusion, explicit `ActionKind::HeaderUnit` build & import) | Passed | 11.22s |
|
||||
| 4 | `vbs_registry_tests` | `2 tests: 2 ✔ in 3.06s`: (1) HTTP/1.1 loopback server, security headers (`CSP`, `X-Frame-Options: DENY`), path-traversal 403, RBAC 403/401, SHA-256 mismatch 400, tar validation 422, immutable release 409 conflict, CSRF 403 & HttpOnly SameSite=Strict session cookie, XSS-safe private UI/API, secret-free audit log, backup & restore; (2) full live CLI E2E `vbs publish` (`1.0.0` & `1.1.0`) -> `vbs deps resolve` -> `vbs build --locked` -> consumer execution against ephemeral `vbs-registry` with zero token leak in `vbs.lock` | Passed | 3.06s |
|
||||
| 5 | `vbs_selfhost_tests` | `3 tests: 3 ✔ in 37.26s`: (1) basename-collision-safe native `Void::Testing` scanner (`vbs gen-tests`); (2) strict non-CMake native `VoidLibrary` + `VoidBuildSdk` + `stage1_sdk_tests` -> Stage 2 SDK consumer; (3) full Stage 0 -> Stage 1 native `VbsSelfHostRecipe` building the complete `stage1/bin/vbs` CLI binary (native `VoidLibrary` closure + `VoidBuildSdk` + `VoidBuildCore` + stage-isolated `BootstrapConfig.hpp`, zero CMake) -> Stage 2 executing `stage1/bin/vbs test` with trapped `cmake` on `PATH` | Passed | 37.27s |
|
||||
| 6 | `vbs_sdk_registration` | `17 SDK test registrations verified; named JSON case executed` | Passed | 0.01s |
|
||||
| 7 | `vbs_cli_contract` | `23 native CLI contracts verified` (all `Void::Argparse::Parser`-backed `vbs` commands including `vbs publish` + `vbs-registry --help`) | Passed | 0.03s |
|
||||
| 8 | `vbs_description_contract` | `Four runtime profile/compiler contexts and six error contracts verified` (`debug`/`release` x `gcc`/`clang` JSON + CLI errors) | Passed | 0.02s |
|
||||
| 1 | `vbs_sdk_tests` | 17 tests (`SdkDeclarations` 14 + `ExampleContexts` 3 for 6-target self-building `build.cpp` and pin `3e254055...`) | Passed | 0.01s |
|
||||
| 2 | `vbs_core_tests` | 6 tests: `Void::Crypto` SHA-256 NIST vectors, `Void::Process` exec-fail & stubborn grandchild `SIGKILL`, profile inheritance/cycles, snapshot mutation/symlinks/header-shadowing (`Void::FileSystem` `reflink_copy_file`/`FileLock`/`set_canonical_mtime`), CAS recovery/GC, end-to-end native frontend + deterministic build | Passed | 11.34s |
|
||||
| 3 | `vbs_v1_tests` | 8 tests: CompDB ticket races & `atomic_symlink_swap`, `Void::FileSystem::DirectoryWatcher` + `MetadataOnly` boundary, `Void::Data::Toml` + `Void::Semver::parse_range` PubGrub solver + CAS `vbs.lock`, `Void::Archive` `.tar` determinism & traversal/symlink/duplicate rejection, real CMake & Meson providers + `VbsDeps.cmake` bridge + relocatable install + CLI `vbs install`/`vbs uninstall`, GCC 16 P1689 modules + full Plan 08 graph integration (sanitizers, partitions, unity, header units) | Passed | 11.13s |
|
||||
| 4 | `vbs_registry_tests` | 2 tests: `vbs-registry` HTTP/1.1 security/RBAC/CSRF/XSS/tar-422/backup-restore + full live CLI E2E `vbs publish` -> `vbs deps resolve` -> `vbs build --locked` | Passed | 3.98s |
|
||||
| 5 | `vbs_selfhost_tests` | 3 tests: basename-collision-safe `vbs gen-tests`, strict non-CMake native `VoidLibrary` (including `Crypto` + `Archive`) + `VoidBuildSdk` + Stage 2, and full Stage 0 -> Stage 1 native `VbsSelfHostRecipe` (`stage1/bin/vbs`, zero CMake) -> Stage 2 `stage1/bin/vbs test` with trapped `cmake` on `PATH` | Passed | 59.12s |
|
||||
| 6 | `vbs_sdk_registration` | 17 SDK test registrations verified; named JSON case executed | Passed | 0.01s |
|
||||
| 7 | `vbs_cli_contract` | 27 native CLI & auto-generated `Void::Argparse::Parser` help/subcommand/error contracts verified (`vbs`, `vbs-registry`, `compdb`, `deps`, `build`, `install`, `publish`, etc.) | Passed | 0.04s |
|
||||
| 8 | `vbs_description_contract` | Four runtime profile/compiler contexts (`debug`/`release` x `gcc`/`clang` for 6-target `build.cpp`), auto-generated `vbs_describe --help`, and five error contracts verified | Passed | 0.03s |
|
||||
|
||||
## Real Self-Build of VoidBuildSystem (`vbs build`)
|
||||
|
||||
### Stage 1: Bootstrap `vbs` builds complete `VoidBuildSystem` from root `build.cpp`
|
||||
```sh
|
||||
VBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidBuildSystem/build/voidlibrary-pinned \
|
||||
dev cpp-gcc -c build/dev/bin/vbs build --build-dir build/vbs-self --jobs 4
|
||||
```
|
||||
- Exit status: `0` — **`vbs: [debug] built (36 executed, 0 cached)`** in `38.79s`.
|
||||
- Live progress logs verified cleanly across all phases: `[Config]`, `[Toolchain]`, `[Eval]` (`6 target(s), 1 dependenc(ies)`), `[Deps]`, `[Fetch]`, `[Provider]` (`Imported 100 target(s) from 'VoidLibrary'`), `[Snapshot]` (`70 file(s)`), `[Graph]` (`36 action(s)`), and per-action `[ 1/36] Action GenerateBootstrapConfig` .. `[35/36] Link build/vbs-self/profiles/debug/out/bin/vbs` & `[36/36] Link build/vbs-self/profiles/debug/out/bin/vbs-registry`.
|
||||
|
||||
### Stage 2: Self-built `vbs` verifies cached build & auto-generated CLI
|
||||
```sh
|
||||
VBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidBuildSystem/build/voidlibrary-pinned \
|
||||
dev cpp-gcc -c build/vbs-self/profiles/debug/out/bin/vbs build --build-dir build/vbs-self --jobs 4
|
||||
build/vbs-self/profiles/debug/out/bin/vbs --version
|
||||
build/vbs-self/profiles/debug/out/bin/vbs --help
|
||||
```
|
||||
- Exit status: `0` — **`vbs: [debug] built (0 executed, 36 cached)`**, `vbs 0.1.0`, and full auto-generated `Void::Argparse::Parser` root help output (`Usage: vbs [--version] [--verbose] [--quiet] <command>`).
|
||||
|
||||
## Clang 23.1.3 Target Matrix (`dev cpp`)
|
||||
|
||||
```sh
|
||||
dev cpp -c build/dev/bin/vbs_v1_tests --no-color --filter clang23
|
||||
```
|
||||
- Exit status: `0` — `1 tests: 1 ✔ in 751.7ms` (`clang23_target_toolchain_and_p1689_module_scan`).
|
||||
- Verified inside `dev cpp`: `Toolchain::discover_and_probe` discovers Clang 23.1.3 + `clang-scan-deps`, compiles/links/runs a `#ifdef __clang__` C++20 binary, AND executes a full `Graph::lower_project_graph` + `Execution::execute_graph` build of a module partition (`vbs.clangcalc:part`) + primary interface (`vbs.clangcalc`) + consumer `main.cpp` using `clang-scan-deps --format=p1689`, two-step `--precompile` `.pcm` (`ActionKind::ModuleBmi`) -> `.o` with transitive `-fmodule-file=`, linking, and exit code 0!
|
||||
- Exit status: `0` — `1 tests: 1 ✔ in 745.2ms` (`clang23_target_toolchain_and_p1689_module_scan`).
|
||||
- Verified inside `dev cpp`: Clang 23.1.3 + `clang-scan-deps` target probing, C++20 compilation, and full `Graph::lower_project_graph` + `Execution::execute_graph` build of module partition (`vbs.clangcalc:part`) + primary interface (`vbs.clangcalc`) + consumer `main.cpp` using two-step `--precompile` `.pcm` -> `.o` with transitive `-fmodule-file=`.
|
||||
|
||||
## Benchmarks (`dev cpp-gcc`)
|
||||
|
||||
@@ -64,12 +83,13 @@ dev cpp-gcc -c build/dev/bin/vbs_benchmarks --files 15
|
||||
```
|
||||
- Exit status: `0`:
|
||||
```json
|
||||
{"fixture_files":16,"compiler":"g++ (GCC) 16.2.0","snapshot_ms":18,"cold_build_ms":349,"cold_executed":17,"warm_noop_ms":11,"warm_executed":0,"warm_cached":17}
|
||||
{"fixture_files":16,"compiler":"g++ (GCC) 16.2.0","snapshot_ms":17,"cold_build_ms":350,"cold_executed":17,"warm_noop_ms":16,"warm_executed":0,"warm_cached":17}
|
||||
```
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **Conan2 live installation**: `conan` is absent in `dev cpp-gcc`; automated testing verified that `Provider::resolve_foreign_provider` fails explicitly with a missing-prerequisite error when `conan` is absent (`FullV1Tests.cpp`).
|
||||
2. **External optional VoidLibrary modules**: `SQLite3`, `OpenSSL`, `LibArchive`, and `libsodium` are not present in `dev cpp-gcc`, so VBS built and tested its pure-C++/POSIX adapters (`StateStore`, `Sha256Hasher`, `TarArchive`, `HttpServer`, `RegistryClient`); the optional CMake switches (`VBS_HAS_VOID_SQLITE`, `VBS_HAS_VOID_CRYPTO`, `VBS_HAS_VOID_ARCHIVE`) remain ready for environments providing them.
|
||||
3. **CI workflow & Web UI browser**: [.github/workflows/ci.yml](../../.github/workflows/ci.yml) has not been executed on remote GitHub Actions runners, and `registry/web/` was verified via HTTP/header/static-serving/API/XSS/CSRF tests without a headless browser runner.
|
||||
4. **Plan 20 ([20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Native foreign graph translation and non-Linux OS ports (Windows/macOS) remain unimplemented planned scope.
|
||||
1. **HTTPS git fetch in proxy-restricted environment**: Inside this execution environment, outbound HTTPS to `https://git.faumaray.com/Void/VoidLibrary.git` encountered `Proxy CONNECT aborted`; CMake configure and `vbs build` were therefore verified against a clean local detached checkout of the exact pinned commit `3e254055e081a104f08df68dde39711bc7813518` via `VBS_VOID_SOURCE_DIR`.
|
||||
2. **Conan2 live installation**: `conan` is absent in `dev cpp-gcc`; automated testing verified explicit missing-prerequisite failure (`FullV1Tests.cpp`).
|
||||
3. **Optional external VoidLibrary modules (`Void::Net`, `Void::Sqlite`)**: `Boost`, `OpenSSL`, and `SQLite3` are not installed in `dev cpp-gcc`, so VBS continues using its pure-C++/POSIX loopback HTTP adapters (`HttpServer`, `RegistryClient`) and journaled atomic CAS store (`StateStore`), while retaining optional `Void::Sqlite` CMake detection.
|
||||
4. **CI workflow & Web UI browser**: [.github/workflows/ci.yml](../../.github/workflows/ci.yml) has not been executed on remote GitHub Actions runners, and `registry/web/` was verified via HTTP/header/static-serving/API/XSS/CSRF tests without a headless browser runner.
|
||||
5. **Plan 20 ([20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Native foreign graph translation and non-Linux OS ports (Windows/macOS) remain unimplemented planned scope.
|
||||
Reference in new issue
Block a user