feat(registry): add the remote worker lease and result protocol
This commit is contained in:
1 parent
c2b80416a5
commit
1ae72e4d07
7 files changed
+336
-1
No files matched your search
@@ -336,6 +336,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 121 (Coverage-Guided Fuzzing with Clang/libFuzzer)**: added `fuzz/fuzz_parsers.cpp` (JSON, SemVer range/strict) plus `fuzz/run.sh` (Clang 23 `-fsanitize=fuzzer,address,undefined`, seeded corpus, `VOID_INCLUDE_DIR`). First run: 1,541,020 executions in 31 s with no findings, and libFuzzer produced a recommended dictionary. TOML/lockfile/tar stay covered by the deterministic mutation harness because their implementations are not header-only.
|
||||
|
||||
- **Wave 122 (Remote Execution Worker Protocol)**: `vbs-registry` now exposes an in-memory worker/lease protocol on the existing CAS - `POST /api/v1/workers` (registration), `/workers/<id>/heartbeat`, `GET /workers`, `POST /api/v1/actions/lease` (exclusive lease with TTL and token) and `POST /api/v1/actions/<key>/result` (token-checked result upload that requires every referenced output blob to exist). `RegistryTests.remote_worker_registration_lease_and_result_upload` covers registration, heartbeat, lease/conflict, wrong-token rejection, result publication and the unknown-action 404.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
@@ -124,4 +124,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 119 (VoidLibrary install rules + profiles) | install rules, `build.profiles.cpp`, verified 320-file prefix and a dpkg-valid DEB; streaming DEB writer; LICENSE issue #63 | COMPLETE & VERIFIED IN CLONE | `contrib/voidlibrary-migration/`, [Void/Library build-vbs](https://git.faumaray.com/Void/Library/src/branch/build-vbs), `src/Install/Installer.cpp`, Void/Library#63 |
|
||||
| Wave 120 (WiX/MSI-style packaging + VoidLibrary CI) | `--archive-format wix` WiX v3 source generator; `.gitea/workflows/vbs.yml` template on the branch | COMPLETE & VERIFIED for the generator (XML parsed, install test passes, full CTest 8/8); CI template unexecuted | `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, [Void/Library build-vbs](https://git.faumaray.com/Void/Library/src/branch/build-vbs), docs |
|
||||
| Wave 121 (libFuzzer fuzzing) | `fuzz/fuzz_parsers.cpp` + `fuzz/run.sh` for JSON and SemVer with Clang/libFuzzer | COMPLETE & VERIFIED (1,541,020 runs, 0 findings) | `fuzz/`, docs |
|
||||
| Wave 122 (Remote worker protocol) | Registry worker registration/heartbeat, exclusive action leases with TTL/tokens, token-checked result upload with blob verification | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; new registry E2E passes, full CTest 8/8) | `registry/include/Void/Build/Registry/RegistryService.hpp`, `registry/service/RegistryService.cpp`, `tests/RegistryTests.cpp`, docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] 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) |
|
||||
@@ -1676,6 +1676,17 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
their implementations are not header-only.
|
||||
- No repo build changed, so the last full CTest run (8/8, 281.07 s at `fd9e867`) remains valid.
|
||||
|
||||
## Remote Execution Worker Protocol (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- `vbs-registry` adds `POST /api/v1/workers`, `POST /api/v1/workers/<id>/heartbeat`,
|
||||
`GET /api/v1/workers`, `POST /api/v1/actions/lease`, and
|
||||
`POST /api/v1/actions/<key>/result` on top of the HTTP CAS.
|
||||
- `RegistryTests.remote_worker_registration_lease_and_result_upload` **passed** (391 ms):
|
||||
registration returns a worker id, heartbeat and listing work, a lease returns a token and the
|
||||
current record, a second lease returns 409, a wrong token returns 403, the leased token stores
|
||||
the result (visible through the CAS GET), and leasing an unknown action returns 404.
|
||||
- Full CTest: **8 / 8 passed** in 280.81 s.
|
||||
|
||||
## 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).
|
||||
|
||||
@@ -83,7 +83,7 @@ Concrete work this implies:
|
||||
6. Test-runner parity.
|
||||
7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling).
|
||||
8. CI on real runners, sanitizer jobs (**sanitizer build run done**), parser fuzzing (**deterministic mutation harness and a Clang/libFuzzer target done**).
|
||||
9. Remote execution workers.
|
||||
9. Remote execution workers (**registry-side worker/lease/result protocol done**; a `vbs worker` client remains).
|
||||
|
||||
## 6. Observed baseline (2026-12-05, x86_64, GCC 16.2, Debug, `benchmarks/compare.sh 20`)
|
||||
|
||||
|
||||
Reference in new issue
Block a user