Implement VoidBuildSystem v1 (Plans 01-19) with VoidLibrary integration
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
This commit is contained in:
1 parent
3cac890ce9
commit
ab64147f9d
114 files changed
+23777
-1392
No files matched your search
@@ -1,155 +1,75 @@
|
||||
# Verification record
|
||||
|
||||
Record cwd, exact command, exit status, results and limits. Planned checks are not
|
||||
evidence. Never treat a zero-test run as test success.
|
||||
Updated: 2026-11-26
|
||||
Working directory: `/home/faumaray/Projects/VoidBuildSystem`
|
||||
|
||||
## Planning evidence (observed)
|
||||
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**.
|
||||
|
||||
- VoidLibrary local main and remote main matched
|
||||
9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5; tracked tree clean.
|
||||
- dev cpp-gcc exposed GCC16.2.0, CMake4.4.4, Ninja1.13.2, Meson1.12.1.
|
||||
- dev cpp exposed Clang23.1.3. Conan was absent from cpp-gcc.
|
||||
- GCC syntax-only stdin probe including Void Argparse/Testing headers and C++26
|
||||
reflection exited 0. It did not link or execute a program.
|
||||
- The proposed TOML example parsed with Python tomllib and retained intended
|
||||
dependency table/boolean types.
|
||||
- Architecture review V-001-R1 READY, preflight only.
|
||||
## Toolchain & Dependency Integrity
|
||||
|
||||
## Initial implementation
|
||||
- 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).
|
||||
- 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`).
|
||||
- Pin checks:
|
||||
- `git -C build/bootstrap-pinned/_deps/voidlibrary-src rev-parse HEAD` -> `9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5` (exit `0`).
|
||||
- VBS made zero writes to `/home/faumaray/Projects/VoidLibrary`.
|
||||
|
||||
- cwd /home/faumaray/Projects/VoidBuildSystem:
|
||||
git init -b main -> exit 0, unborn main.
|
||||
- T-001 tasklint -> exit 0. Semantic contract checked by root.
|
||||
- V-002 tasklint -> exit 0 after correcting the task's required literal
|
||||
`Write scope: none`. Semantic contract checked by root.
|
||||
- V-002-R1 tasklint -> exit 0; root checked semantics and scope.
|
||||
- V-002 found one P2 encoding defect; root corrected it and repeated affected
|
||||
checks. V-002-R1 returned READY; no material findings remain. See REVIEW.md.
|
||||
|
||||
## Local-source bootstrap — worker evidence
|
||||
|
||||
T-001 configured sol_implementer reported and supplied the observed results below,
|
||||
all from /home/faumaray/Projects/VoidBuildSystem. Root inspected the actual files
|
||||
and independently tested pinned-source mode afterward.
|
||||
## Formatting Check
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c cmake -S . -B build/worker-bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DVBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary
|
||||
dev cpp-gcc -c cmake --build build/worker-bootstrap --parallel 2
|
||||
dev cpp-gcc -c ctest --test-dir build/worker-bootstrap --output-on-failure
|
||||
dev cpp-gcc -c clang-format --dry-run --Werror \
|
||||
build.cpp build.profiles.cpp build-support/Defaults.hpp build-support/Defaults.cpp \
|
||||
include/Void/Build.hpp include/Void/Build/*/*.hpp \
|
||||
src/*.cpp src/*/*.cpp \
|
||||
recipes/VoidLibrary/*.hpp recipes/VoidLibrary/*.cpp \
|
||||
recipes/SelfHost/*.hpp recipes/SelfHost/*.cpp \
|
||||
registry/include/Void/Build/Registry/*.hpp registry/service/*.cpp \
|
||||
benchmarks/*.cpp tests/*.cpp
|
||||
```
|
||||
- Exit status: `0` (all 67 owned C++ headers/sources pass with zero formatting diffs).
|
||||
|
||||
All three exited 0; CTest passed 4/4. The override's tracked source remained clean.
|
||||
Void Testing headers produced missing-field-initializer warnings, without test or
|
||||
build failures. No dependency code was changed to suppress them.
|
||||
|
||||
## Pinned upstream bootstrap — independent root evidence
|
||||
|
||||
Same cwd. Default HTTPS FetchContent populated a separate clean build directory:
|
||||
## CTest Suite Results (`dev cpp-gcc`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c cmake -S . -B build/bootstrap-pinned -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
dev cpp-gcc -c cmake --build build/bootstrap-pinned --parallel 2
|
||||
dev cpp-gcc -c ctest --test-dir build/bootstrap-pinned --output-on-failure
|
||||
git -C build/bootstrap-pinned/_deps/voidlibrary-src rev-parse HEAD
|
||||
git -C /home/faumaray/Projects/VoidLibrary diff --stat HEAD
|
||||
dev cpp-gcc -c ctest --test-dir build/dev --verbose
|
||||
```
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 62.92 sec**:
|
||||
|
||||
All exited 0. The initial asynchronous build's final status was unavailable after
|
||||
context handoff, so root repeated the build command: Ninja reported no work to do
|
||||
and exited 0. CTest then passed 4/4. The fetched HEAD was exactly
|
||||
9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5; the local source's tracked diff was empty.
|
||||
Configuration selected nine modules in the required closure, static linkage and
|
||||
Threads without fetching an unrelated library set.
|
||||
| # | CTest Name | Exact Runner Output / 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 |
|
||||
|
||||
## Behavior verified
|
||||
|
||||
| Check | Observed coverage |
|
||||
| --- | --- |
|
||||
| vbs_sdk_tests | Final 17 cases executed and passed: records, typed options, validation, source spelling, vector growth, owner lifetime, cross-owner rejection, JSON/control/UTF-8 handling and example contexts |
|
||||
| vbs_sdk_registration | Expected named cases listed; a named JSON case executed; zero registration cannot pass |
|
||||
| vbs_cli_contract | 16 exact exit/stdout/stderr contracts, including no args/help/version and unsupported/invalid requests |
|
||||
| vbs_description_contract | Four debug/release × GCC/Clang runtime contexts, expected JSON contents/types, six error contracts |
|
||||
|
||||
Before review, root also ran `build/bootstrap-pinned/bin/vbs_sdk_tests --no-color`: exit 0,
|
||||
15 discovered and 15 passed. This confirms actual case execution, not just the
|
||||
four aggregate CTest labels. No target Clang compiler is invoked by these context
|
||||
checks; they validate the host/target declaration boundary.
|
||||
|
||||
## UTF-8 correction and final affected checks
|
||||
|
||||
Root compiled V-002's exact stdin reproducer with
|
||||
`dev cpp-gcc -c g++ -std=c++26 -Iinclude -x c++ - -x none build/bootstrap-pinned/libvbs_sdk.a -o build/bootstrap-pinned/utf8-repro`.
|
||||
Exit 0; before the correction its output failed Python strict UTF-8 decoding while
|
||||
the reproducer itself exited 0. This established the review finding at runtime.
|
||||
|
||||
After correction, root repeated the following, each exit 0:
|
||||
## Clang 23.1.3 Target Matrix (`dev cpp`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c cmake --build build/bootstrap-pinned --parallel 2
|
||||
dev cpp-gcc -c cmake --build build/worker-bootstrap --parallel 2
|
||||
dev cpp-gcc -c ctest --test-dir build/bootstrap-pinned --output-on-failure
|
||||
dev cpp-gcc -c ctest --test-dir build/worker-bootstrap --output-on-failure
|
||||
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!
|
||||
|
||||
Build output was captured in each directory's review-build.log. Both CTest runs
|
||||
passed 4/4, with the expanded 17-case suite. The exact-file clang-format check below
|
||||
also passed again. The pre-correction reproducer is a retained historical binary,
|
||||
not evidence of current behavior; the independent oracle was linked after the fix.
|
||||
|
||||
Root compiled build/bootstrap-pinned/utf8-oracle with the same GCC/include/static-SDK
|
||||
arguments. Its stdin accepts hex bytes and it serializes a target compile option
|
||||
containing those bytes, returning JSON or the explicit invalid-UTF-8 diagnostic.
|
||||
A one-off Python check compared results with strict UTF-8 decoding and json.loads:
|
||||
empty input, all 256 one-byte and 65,536 two-byte inputs, 14 multibyte boundaries,
|
||||
5,000 random strings of 3–8 bytes and 996 randomly sampled valid scalars
|
||||
(Random seed 20261125). Exit 0: 71,803 agreed, 19,708 accepted and JSON-roundtripped,
|
||||
52,095 explicitly rejected. This is independent evidence beyond Void's JSON parser;
|
||||
it is not an exhaustive Unicode-space proof or a new Python bootstrap requirement.
|
||||
|
||||
## Formatting and documentation
|
||||
|
||||
Root ran this exact-file check, exit 0:
|
||||
## Benchmarks (`dev cpp-gcc`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c clang-format --dry-run --Werror include/vbs/build.hpp src/build.cpp src/main.cpp src/describe.cpp build.cpp build.profiles.cpp build-support/defaults.cpp build-support/defaults.hpp tests/SdkDeclarations.cpp tests/ExampleContexts.cpp
|
||||
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}
|
||||
```
|
||||
|
||||
A read-only Python check enumerated README.md, AGENTS.md and docs/**/*.md; checked
|
||||
relative Markdown link destinations; asserted twenty numbered plans and their
|
||||
seven required sections; compared plan R-IDs with REQUIREMENTS.md; parsed the
|
||||
README TOML block with tomllib and checked typed values; checked trailing whitespace
|
||||
and final newlines in nonignored project additions. Exit 0: 34 Markdown files,
|
||||
133 local links, 20 structured plans, all 19 requirements covered, valid TOML,
|
||||
55 source/document files checked. Repeated after adding review records: exit 0,
|
||||
36 Markdown files, 135 local links, 20 plans, 19 requirements and 57 files checked.
|
||||
All three persisted task contracts passed tasklint together. URL availability and
|
||||
Markdown anchors were not part of the local-file check.
|
||||
## Limits and Unrun Checks
|
||||
|
||||
`git check-ignore build-support/defaults.cpp build/worker-bootstrap/bin/vbs`
|
||||
listed only the build executable. The source helper directory is explicitly
|
||||
unignored, correcting the initial overly broad /build-*/ pattern.
|
||||
|
||||
## Coverage and limits
|
||||
|
||||
The session code graph belongs to this repository but predates the additions
|
||||
(2026-11-24, two nodes). search_graph found no SDK symbols. check_index_coverage
|
||||
reported all 19 source/config/test additions untracked; root and worker read
|
||||
actual source for important claims. No stale graph was treated as code evidence.
|
||||
|
||||
Initial R-001/R-004/R-005/R-006 have linked bootstrap and test evidence; R-002/R-003
|
||||
have declaration/example evidence only. R-016 has twenty plans reviewed by V-002
|
||||
and complete requirement mapping. V-002-R1 accepted the final correction and initial
|
||||
milestone after independently executing 17 SDK cases, registration checks and a
|
||||
26-input encoding check. Full details and evidence limits are in REVIEW.md.
|
||||
R-017 has LICENSE. Other product requirements remain planned, not verified features.
|
||||
|
||||
Native compilation, target/profile execution, TOML resolution, snapshots, watchers,
|
||||
native compdb switching, foreign adapters, packages, registry and self-host stages
|
||||
are intentionally unimplemented in this milestone. Their planned tests have not run.
|
||||
Conan is absent from the inspected dev environment. No remote repository, staging,
|
||||
commit, push or deployment occurred. Model roles are configured, not independently
|
||||
verified runtime identities.
|
||||
|
||||
Final Git checks: main remains unborn; no staged changes, remotes, commits or pushes.
|
||||
All intended source/docs are visible as additions, including build-support helpers;
|
||||
build outputs and the preexisting .serena directory remain ignored/preserved.
|
||||
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.
|
||||
Reference in new issue
Block a user