feat(provenance): probe built-in Ed25519 capability (VoidLibrary #52 follow-up)
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 9s

This commit is contained in:
faumaray committed 2026-12-03 18:16:36 +03:00
1 parent 55272d3e6b
commit a02d2b0d5d
6 files changed
+52 -16

No files matched your search

+5 -1
View File
@@ -84,9 +84,13 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- Added the `build` daemon request in `src/Daemon/Daemon.cpp`: graph evaluation is shared with `describe` (`evaluate_project_graph`), then executed in-process through `Execution::execute_graph` against the daemon's warm `StateStore`. The response is bounded JSON (`ok`, `profile`, `targets`, `actions`, `executed`, `cached`, `failed`, `diagnostic`, `failed_actions`). Requests accept `profile`, `compiler`, `targets` (≤ 64 bounded strings) and `jobs` (0–256).
- Wired `vbs daemon build [--profile] [--target]... [--jobs]` in `src/Main.cpp` with a long-running client timeout, plus `Daemon.build_executes_project_graph_and_reuses_cache` (cold build creates the binary, second request is fully cached, invalid `targets` type rejected) and a CLI help contract. Dependency materialization stays with `vbs build`/`vbs deps`; the daemon builds the already-describable graph.
- **Wave 17 (VoidLibrary #52 Follow-up: Built-in Ed25519 Capability Probe)**:
- Issue [#52](https://git.faumaray.com/Void/Library/issues/52) (built-in Ed25519 backend) was resolved upstream. `Provenance::signing_available()` in `src/Provenance/Signing.cpp` now probes an actual Ed25519 sign operation instead of assuming the OpenSSL backend, so a built-in backend is used automatically and the error message no longer claims OpenSSL specifically.
- Verified against upstream `main` exported to `/tmp/opencode/vl-main` **without OpenSSL**: `Signing` 4/4 (the crypto round-trip actually runs, 151.8 ms) and `SignatureEnforcement` 3/3. The pinned VoidLibrary remains `3e254055`; bumping the pin to a release containing #52 is a separate dependency decision.
## Remaining future scope
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D3 signing (SBOM, Ed25519 primitives, and trusted-key enforcement done; binary-variant signing and key distribution remain), Track E3 (daemon core, bounded `describe` and build-serving done; external editor plugins and dependency materialization inside the daemon remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement, and the #52 built-in-backend capability probe done; binary-variant signing, key distribution, and the VoidLibrary pin bump remain), Track E3 (daemon core, bounded `describe` and build-serving done; external editor plugins and dependency materialization inside the daemon remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
## Environment notes & upstream boundaries
+1
View File
@@ -23,4 +23,5 @@ Base HEAD: `fe0d1a6`
| Wave 14 (Track E3 daemon core + bounded `describe` + Track C1 platform split) | Unix-socket `vbs daemon` holding warm `StateStore`/`InotifyWatcher` with `ping/status/gc/recover/describe/shutdown`, CLI + tests; bounded `describe` graph summary (`target_names` ≤ 128 × 200 bytes, `profile` ≤ 128 bytes, 10 s eval timeout); `src/Platform/Linux/` backend split with `HostOs` boundary; CMake 4.5 `@cmake_cxx_std@` feature-carrier translation fix | COMPLETE & VERIFIED (GCC 16.2, pinned VoidLibrary `3e25405`, 8/8 CTest suites; `Daemon` suite 6/6 under `dev cpp-gcc`; live `vbs daemon describe` CLI round-trip verified in `vbs_cli_contract`) | `include/Void/Build/Daemon/Daemon.hpp`, `src/Daemon/Daemon.cpp`, `tests/DaemonTests.cpp`, `include/Void/Build/Platform/Host.hpp`, `src/Platform/Linux/`, `src/Main.cpp`, `src/Provider/Translator.cpp`, `tests/CliContracts.cmake`, docs |
| Wave 15 (Track D3 signed-package enforcement) | Optional `signature`/`public_key` in `ReleaseRecord`/`SolvedPackage`/`LockedSourceEntry` + `vbs.lock`; `vbs publish --signing-key`; registry signature metadata storage/serving with hex validation; `vbs build\|test --trusted-public-key` fail-closed enforcement before extraction; `Provenance::verify_trusted_package_signature` trust policy | COMPLETE & VERIFIED (GCC 16.2, pinned VoidLibrary `3e25405`, 8/8 CTest; OpenSSL-enabled Signing 4/4, SignatureEnforcement 3/3, signed registry E2E) | `include/Void/Build/Provenance/Verification.hpp`, `src/Provenance/Verification.cpp`, `include/Void/Build/Package/{Solver,Lockfile,RegistryClient}.hpp`, `src/Package/{Solver,Lockfile,RegistryClient}.cpp`, `registry/`, `src/Main.cpp`, `tests/{SignatureEnforcementTests.cpp,RegistryTests.cpp}`, docs |
| Wave 16 (Track E3 daemon build serving) | In-process daemon `build` request reusing graph lowering + `Execution::execute_graph` against the warm `StateStore`; bounded `profile`/`targets`/`jobs`; `vbs daemon build` CLI; cache-reuse test | COMPLETE & VERIFIED (GCC 16.2; Daemon suite 7/7) | `src/Daemon/Daemon.cpp`, `include/Void/Build/Daemon/Daemon.hpp`, `src/Main.cpp`, `tests/DaemonTests.cpp`, `tests/CliContracts.cmake`, docs |
| Wave 17 (VoidLibrary #52 follow-up) | `signing_available()` probes the real Ed25519 capability instead of `has_openssl_backend()`; verified against upstream `main` without OpenSSL (Signing 4/4 crypto path, SignatureEnforcement 3/3); pin bump remains a dependency decision | COMPLETE & VERIFIED (GCC 16.2; pinned-library CTest 8/8) | `src/Provenance/Signing.cpp`, `include/Void/Build/Provenance/Signing.hpp`, `tests/SigningTests.cpp`, docs |
| Future (Plan 20 Slice 3 / Tracks C, D3 binary signing, E3 daemon dependency materialization/editor plugins, E4, live `conan`) | Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
+16
View File
@@ -312,6 +312,22 @@ dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure
- `clang-format --dry-run --Werror` passes after formatting `src/Daemon/Daemon.cpp`,
`src/Main.cpp`, and `tests/DaemonTests.cpp`.
## VoidLibrary #52 Follow-up: Built-in Ed25519 Capability Probe (2026-12-03)
Issue #52 was closed upstream with a portable built-in Ed25519 backend. VBS's
`Provenance::signing_available()` now probes a real Ed25519 sign operation instead of assuming
`has_openssl_backend()`.
- Against the pinned library (`3e25405`, no OpenSSL): `Signing` 4/4 (capability-gated path) and
full CTest **8 / 8 passed** in 189.12 s.
- Against upstream `main` exported read-only to `/tmp/opencode/vl-main` (commit `0002e74`) with
OpenSSL **not found** (`OPENSSL_CRYPTO_LIBRARY-NOTFOUND`): `vbs_v1_tests --suite Signing` is
**4 / 4 passed** including the real crypto round-trip (151.8 ms), and
`--suite SignatureEnforcement` is **3 / 3 passed** (crypto case 65.9 ms). The built-in backend is
therefore used automatically when OpenSSL is absent.
- The VoidLibrary pin was **not** changed: bumping it to a release containing #52 is a separate
dependency decision.
## 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).