feat(daemon): serve bounded in-process build requests over the Unix socket
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 16s

This commit is contained in:
faumaray committed 2026-12-03 18:07:10 +03:00
1 parent 85f2ae274f
commit 55272d3e6b
8 files changed
+238 -28

No files matched your search

+6 -2
View File
@@ -2,7 +2,7 @@
Updated: 2026-12-03
Branch: main
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B1–B3) + Track E1 + `vbs ide` & `build.cpp` CompDB integration + Track D1/D2 + Track E2 + Track D3 SBOM (Docker GCC 16) + Track D3 Ed25519 signing primitives & trusted-key enforcement (OpenSSL-gated crypto) + Track E3 daemon core & bounded describe + Track C1 Linux platform split complete
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B1–B3) + Track E1 + `vbs ide` & `build.cpp` CompDB integration + Track D1/D2 + Track E2 + Track D3 SBOM (Docker GCC 16) + Track D3 Ed25519 signing primitives & trusted-key enforcement (OpenSSL-gated crypto) + Track E3 daemon core, bounded describe & build-serving + Track C1 Linux platform split complete
## Completed delivery waves
@@ -80,9 +80,13 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- `vbs publish --signing-key FILE` signs the canonical `vbs-package-v1` message; `vbs-registry` stores and serves `X-Package-Signature`/`X-Package-Public-Key` metadata with strict 128/64 hex validation; `vbs build|test --trusted-public-key HEX` (repeatable) fails closed before package extraction unless the signature verifies against a trusted key.
- Added `Void::Build::Provenance::verify_trusted_package_signature` (`include/Void/Build/Provenance/Verification.hpp`, `src/Provenance/Verification.cpp`) with explicit `Verified`/`Unsigned`/`UntrustedKey`/`InvalidSignature` decisions, plus `tests/SignatureEnforcementTests.cpp` and registry metadata/signed-E2E coverage.
- **Wave 16 (Track E3 Daemon Build-Serving)**:
- 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.
## 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 and bounded `describe` done; build-serving requests and external editor plugins 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, 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.
## Environment notes & upstream boundaries