feat(platform,daemon): isolate executable lookup and report host backends
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 8s

This commit is contained in:
faumaray committed 2026-12-04 04:15:42 +03:00
1 parent 105519924a
commit 9f4477b8d4
10 files changed
+93 -7

No files matched your search

+2
View File
@@ -231,6 +231,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 69 (RegistryClient Owners Helper, via swarm)**: a swarm worker added `Package::fetch_package_owners` (GET `/api/v1/packages/<name>/owners`, explicit 404/401/403 mapping) and RegistryTests coverage (owner list contains `pub_alice`, missing package fails, anonymous private access fails); the orchestrator reviewed, built, and verified it.
- **Wave 70 (Track C1: Portable Executable Path & Daemon Host Reporting)**: added `Platform::current_executable_path()` (`FileOps.hpp`, implemented in `src/Platform/Linux/FileOps.cpp` with an explicit error on failure) and replaced the hard-coded `/proc/self/exe` reads in `src/Main.cpp`; `CoreEngineTests.current_executable_path_resolves_running_binary` covers it. A swarm worker (5/5 tasks) extended the daemon `info` response with `host_os`, `host_supported`, and a `backends` object (file ops, process supervisor, directory watcher, sqlite, net), asserted in `Daemon.info_reports_daemon_paths_and_host`.
## 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))**: Track C (macOS/Windows ports + dual-profile cross-compilation) and dedicated external editor plugins remain planned; Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement/distribution, binary-variant signing/distribution) and Track E3 daemon capabilities are implemented, and Track E4 now uses `Void::Net` for the registry client/server and remote cache plus `Void::Sqlite` for the StateStore when available.
+1
View File
@@ -73,4 +73,5 @@ Base HEAD: `fe0d1a6`
| Wave 66 (Signed binaries fetch) | `binaries fetch --trusted-public-key/--trusted-key-file` verifies the variant signature before download; E2E covers unsigned rejection | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry 7/7, full CTest 8/8) | `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 67 (Daemon init request) | `Config::scaffold_project` extraction; `init` daemon request + `vbs daemon init --dir`: confined project scaffolding | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Daemon 29/29, full CTest 8/8) | `include/Void/Build/Config/Scaffold.hpp`, `src/Config/Scaffold.cpp`, `src/Daemon/Daemon.cpp`, `src/Main.cpp`, `tests/DaemonTests.cpp`, `tests/CliContracts.cmake`, build lists, docs |
| Wave 69 (RegistryClient owners helper, via swarm) | `fetch_package_owners` in RegistryClient + RegistryTests coverage (owners list, missing package 404, anonymous private 401) | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry 7/7, full CTest 8/8) | `include/Void/Build/Package/RegistryClient.hpp`, `src/Package/RegistryClient.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 70 (Track C1 executable path + daemon host info) | `Platform::current_executable_path()` replacing `/proc/self/exe` in Main.cpp; daemon `info` reports `host_os`/`host_supported`/`backends` (swarm, 5/5 tasks) | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Core and Daemon suites pass, full CTest 8/8) | `include/Void/Build/Platform/FileOps.hpp`, `src/Platform/Linux/FileOps.cpp`, `src/Main.cpp`, `src/Daemon/Daemon.cpp`, `tests/{CoreEngineTests,DaemonTests}.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) |
+10
View File
@@ -1119,6 +1119,16 @@ dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --suite Daemon --no-color
- Registry suite after integration: **7 / 7 passed** (11.02 s); full CTest: **8 / 8 passed** in
271.07 s.
## Track C1 Executable Path & Daemon Host Info (GCC 16.2, pin `0002e74`)
- `Platform::current_executable_path()` replaces the hard-coded `/proc/self/exe` reads in
`src/Main.cpp`; `CoreEngineTests.current_executable_path_resolves_running_binary` passes (the
returned path is absolute and a regular file).
- Swarm `swarm_mx8a5ush_g8oa` (one worker) completed 5/5 tasks: the daemon `info` response now
includes `host_os`, `host_supported`, and a `backends` object; `Daemon.info_reports_daemon_paths_and_host`
passes.
- Full CTest after both slices: **8 / 8 passed** in 242.99 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).
+1 -1
View File
@@ -46,7 +46,7 @@ flowchart LR
| Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- |
| **C1 — Platform Backend Split** *(Linux backend split implemented; macOS/Windows pending)* | Split `src/Platform/` into `Linux/`, `MacOS/`, and `Windows/` behind clean interfaces (`FileOps`, `ProcessSupervisor`, `DirectoryWatcher`), delegating to `Void::System` as upstream adds OS backends. Linux implementations now live under `src/Platform/Linux/` and `src/Watch/Linux/` (inotify watcher) with an explicit `HostOs`/`host_supported()` boundary in `include/Void/Build/Platform/Host.hpp`; macOS/Windows backends await real hosts (`vbs doctor` reports the detected host and enabled backends). | Zero Linux regressions; clean platform abstraction boundary. |
| **C1 — Platform Backend Split** *(Linux backend split implemented; macOS/Windows pending)* | Split `src/Platform/` into `Linux/`, `MacOS/`, and `Windows/` behind clean interfaces (`FileOps`, `ProcessSupervisor`, `DirectoryWatcher`), delegating to `Void::System` as upstream adds OS backends. Linux implementations now live under `src/Platform/Linux/` and `src/Watch/Linux/` (inotify watcher) with an explicit `HostOs`/`host_supported()` boundary in `include/Void/Build/Platform/Host.hpp`; macOS/Windows backends await real hosts (`vbs doctor` and the daemon `info` request report the detected host and enabled backends, and `Platform::current_executable_path()` isolates the executable-path lookup). | Zero Linux regressions; clean platform abstraction boundary. |
| **C2 — macOS / Apple Clang & `ld64`** | Apple Clang toolchain probes, `.dylib` + `@rpath`/`@loader_path` install-name lowering, `FSEvents` watcher, Mach-O deterministic timestamps. | Real macOS CI runner passing all SDK, core, module, and install tests. |
| **C3 — Windows / MSVC & `clang-cl`** | MSVC (`cl.exe`, `lib.exe`, `link.exe`, `/showIncludes`, `.pdb`, `/FS`, `.dll`/`.lib` import libraries), Job Object process-tree kill, `ReadDirectoryChangesW` watcher, case-insensitive path conflict detection. | Real Windows CI runner passing process-tree kill, header-shadowing, and install relocation tests. |
| **C4 — True Host-vs-Target Cross-Compilation** | Dual-context evaluation (`host` profile for code generators and `build_dependency` tools vs `target` profile for cross-compiled products), sysroot & `--target=` triple propagation. | `linux-x86_64` host cross-compiling `linux-aarch64` fixture while executing host-compiled generator natively. |