feat(provenance,daemon): add Ed25519 signing primitives and bounded daemon describe op
This commit is contained in:
1 parent
0bde74f739
commit
21babb8c31
16 files changed
+1232
-20
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Verification record
|
||||
|
||||
Updated: 2026-11-27
|
||||
Updated: 2026-12-03
|
||||
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**.
|
||||
@@ -187,9 +187,8 @@ inputs are byte-equal.
|
||||
and verifies the emitted file contains CycloneDX.
|
||||
- Full suite: **8 / 8 CTest suites passed** in 471.56 s.
|
||||
|
||||
Ed25519 package/binary signing is **not** implemented: `Void::Crypto` has no Ed25519 primitive.
|
||||
It is requested upstream as [Void/Library#36](https://git.faumaray.com/Void/Library/issues/36)
|
||||
(`VL-014`) rather than faked with a weaker scheme.
|
||||
Ed25519 package/binary signing primitives are now implemented in `Void::Build::Provenance::Signing`
|
||||
(see the signing verification section below); package/binary signature enforcement remains planned.
|
||||
|
||||
## Track E3 Daemon Core & Track C1 Platform Split (2026-12-03, `dev cpp-gcc`)
|
||||
|
||||
@@ -219,11 +218,60 @@ dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure
|
||||
fix; it failed deterministically before it.
|
||||
- `clang-format --dry-run --Werror` passes on all new/changed C++ files.
|
||||
|
||||
## Track D3 Ed25519 Signing Primitives & Track E3 Daemon `describe` (2026-12-03, `dev cpp-gcc`)
|
||||
|
||||
Environment: GCC 16.2.0, CMake 4.5.0, Ninja 1.13.2, VoidLibrary pin
|
||||
`3e254055e081a104f08df68dde39711bc7813518` exported read-only to `/tmp/opencode/vl-pin`. This
|
||||
build has `VOID_CRYPTO_HAS_OPENSSL=0`, so `Void::Crypto::has_openssl_backend()` is false.
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c cmake -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
dev cpp-gcc -c cmake --build build/bootstrap -j 8
|
||||
build/bootstrap/bin/vbs_v1_tests --suite Signing --no-color
|
||||
dev cpp-gcc -c build/bootstrap/bin/vbs_v1_tests --suite Daemon --no-color
|
||||
dev cpp-gcc -c ctest --test-dir build/bootstrap -R vbs_cli_contract --output-on-failure
|
||||
```
|
||||
|
||||
- Build: exit 0; all targets including `bin/vbs` and `bin/vbs_v1_tests` compile and link.
|
||||
- `Signing` suite: **4 / 4 passed** in 0.3 ms (canonical message, seed round-trip/tamper/rejections,
|
||||
malformed hex/seed files, backend gating). The crypto round-trip case self-skips while
|
||||
`signing_available() == false`.
|
||||
- External signing harness (`/tmp/opencode/signing-verify/verify.cpp`, linked against
|
||||
`libVoidBuild_Core.a`): **0 failures, 4 skipped, exit 0**. The canonical message is deterministic
|
||||
and changes on a 1-byte archive-digest or version tamper;
|
||||
`generate_signing_seed`/`public_key_from_seed`/`sign_package`/`verify_package` return
|
||||
`ErrorKind::unsupported` with `Ed25519 package signing requires the OpenSSL backend of
|
||||
Void::Crypto` instead of crashing; truncated/oversized signatures and public keys, missing seed
|
||||
files, and directory seed paths are rejected as errors. Skipped (OpenSSL unavailable): fixed-seed
|
||||
RFC 8032 round-trip, signature 1-byte tamper, wrong key, non-hex key/signature.
|
||||
- `Daemon` suite under `dev cpp-gcc`: **6 / 6 passed** in 6.53 s, including
|
||||
`describe_evaluates_project_graph` (2224.5 ms), `describe_empty_project_reports_zero_targets`
|
||||
(2080.0 ms), `describe_bounds_target_names_for_large_projects` (2186.1 ms), and
|
||||
`describe_rejects_workspace_root` (16.4 ms).
|
||||
- The same `Daemon` suite run outside the dev shell: 3 / 6, because `g++` is absent from `PATH`
|
||||
(`describe: host compiler 'g++' not found in PATH for compiling build.cpp`). Daemon tests must
|
||||
run under `dev cpp-gcc`.
|
||||
- `vbs_cli_contract`: **PASSED** (7.44 s) including the live `vbs daemon run` → `vbs daemon describe`
|
||||
→ `vbs daemon stop` round-trip over the Unix socket. The describe client uses a 15 s timeout
|
||||
because graph evaluation takes ~2 s; the daemon bounds evaluation at 10 s.
|
||||
- Full default CTest after integration: **8 / 8 passed** in 211.36 s (`vbs_v1_tests` 87.35 s,
|
||||
`vbs_selfhost_tests` 93.22 s, `vbs_cli_contract` 7.44 s).
|
||||
- **OpenSSL-backed signing verification** (separate `build/openssl` configure with
|
||||
`OPENSSL_ROOT_DIR` pointing at the Nix OpenSSL 3.5.9 dev/lib outputs): build exit 0, and
|
||||
`build/openssl/bin/vbs_v1_tests --suite Signing --no-color` reports **4 / 4 passed** with the
|
||||
real Ed25519 backend (seed round-trip, sign/verify, uppercase hex, digest/signature/wrong-key
|
||||
rejection, malformed hex and seed files). The same suite on the default no-OpenSSL build is
|
||||
**4 / 4 passed** via the capability-gated path, where the crypto round-trip self-skips and the
|
||||
explicit unsupported-backend error is asserted.
|
||||
- Bounds verified by `DaemonTests`: `target_names` capped at 128 entries (project with 140 targets)
|
||||
and 200 bytes per name; `profile` rejects empty, non-string, and > 128-byte values; `compiler`
|
||||
rejects non-string and unknown values; workspace roots are rejected.
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
2. **Conan2 live installation**: `conan` is absent in `dev cpp-gcc`; automated testing verified explicit missing-prerequisite failure (`FullV1Tests.cpp`). Live `conan` container verification (Track B3) remains unrun.
|
||||
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. **Remaining Post-v1 Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` container verification, Track C (Windows/MSVC, macOS/Apple Clang, dual-profile cross-compilation), Track D1/D2 acceptance scenarios (unit/integration suites pass in Docker; see above), Track D3 (SBOM/signatures), Track E2 (`workspace.cpp`), Track E3 (daemon core is done; build-serving requests and external editor plugins remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
6. **Track D3 signing / Track C ports**: the pinned VoidLibrary exposes Ed25519 in `Void::Crypto`, but it requires the OpenSSL backend, which is not available in `dev cpp-gcc`; macOS/Windows platform backends are also unverified because no such hosts are available. Both remain unrun rather than claimed.
|
||||
5. **Remaining Post-v1 Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` container verification, Track C (Windows/MSVC, macOS/Apple Clang, dual-profile cross-compilation), Track D1/D2 acceptance scenarios (unit/integration suites pass in Docker; see above), Track D3 (SBOM/signatures), Track E2 (`workspace.cpp`), Track E3 (daemon core and bounded `describe` are done; build-serving requests and external editor plugins remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
6. **Track D3 signing / Track C ports**: the Ed25519 primitives are implemented and pass both the no-OpenSSL gating tests and the OpenSSL-backed round-trip (verified against Nix OpenSSL 3.5.9 in `build/openssl`); `vbs publish`/`vbs build --locked` signature enforcement is not wired yet. macOS/Windows platform backends are unverified because no such hosts are available. These remain unrun rather than claimed.
|
||||
Reference in new issue
Block a user