bench: add reproducible foundation benchmark harness and record P0 baseline (X-BASE-05)

This commit is contained in:
faumaray committed 2026-11-24 02:35:43 +03:00
1 parent c64fa93373
commit 196ed251f9
7 files changed
+571 -30

No files matched your search

+35 -30
View File
@@ -1,44 +1,49 @@
# Workflow state
Updated: 2026-11-24.
Repository: VoidLibrary; branch `main`; baseline HEAD
`f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`.
Repository: VoidLibrary; active branch `feat/roadmap-p0-p1-foundations` (from `main`
at `f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`).
## Completed objective
The approved multi-file expansion planning package is authored and verified: 54 roadmap
documents with 300 planned feature tasks. Application implementation, release, and
deployment are not part of this documentation delivery.
1. Approved multi-file expansion planning package committed (`faa8a51`): 54 roadmap
documents with 300 planned feature tasks and workflow records.
2. **Wave 1 / P0 Reliable Baseline (`X-BASE-01`..`X-BASE-05`) implemented & verified**:
- `X-BASE-01`: Replaced hardcoded `/bin/echo`, `/bin/cat`, and `seq` in process tests
with standard-library `VoidProcessHelper`.
- `X-BASE-02`: Marked FetchContent Boost 1.84 as `SYSTEM` so `-DVOID_WARNINGS_AS_ERRORS=ON`
succeeds cleanly on GCC 16.2.0 (`-std=c++26`).
- `X-BASE-03`: Transferred `<Void/Log/Log.hpp>` header ownership to `LogState`,
reconciled acyclic `INTERNAL_DEPS` across 10 `module.cmake` files, added
`Void::FunctionalCoreFormatting`, propagated `-freflection` on `INTERFACE` modules,
filtered `VoidTests` by `ACTIVE_MODULES`, and verified minimal, `System`-only,
embedded `add_subdirectory`, static, and relocated installed consumers.
- `X-BASE-04`: Added `cmake/Capabilities.cmake` (`VOID_HAS_STD_EXPECTED`,
`VOID_HAS_CXX26_REFLECTION`, sanitizer probes, `ASan`+`TSan` mutual exclusion) and
`VOID_ENABLE_TSAN`; verified Debug ASan+UBSan+`-Werror` full suite and TSan subset.
- `X-BASE-05`: Added `VOID_ENABLE_BENCHMARKS` (`benchmarks/FoundationBench.cpp`) and
`tests/corpus/README.md`; recorded P0 foundation benchmark manifest.
## Baseline and authorization
The tracked tree was clean before authoring. Existing unrelated untracked files were
left untouched. The user approved the proposal with “Implement the plan.” Confirmed
requirements and decisions are recorded in the roadmap and DECISIONS.md.
User decisions D-027..D-030 authorize roadmap-order execution on branch
`feat/roadmap-p0-p1-foundations`, per-task workflow specs in `docs/agent-workflow/tasks/`,
and Wave A+B API compatibility while leaving local untracked files untouched.
Prior read-only exploration, architectural planning, primary-source research, and
independent preflight are complete. Preflight verdict: READY, with one minor wording
correction applied. Current stage: DOCUMENTATION_COMPLETE. Independent reviews A and B
are READY after all four P2 findings were corrected and rechecked. No feature
implementation has started.
## Verification already observed (P0)
## Verification already observed
- GCC 16.2.0, CMake 4.4.4; separate all-module RelWithDebInfo configure/build succeeded.
- VoidTests: 1,250 discovered; 1,245 passed, 2 failed, 3 skipped.
- The failures hard-code absent `/bin/echo` and `/bin/cat` on this NixOS host.
- Installed component-consumer test passed.
- Warnings-as-errors configuration failed in pinned Boost 1.84 headers.
- No sanitizer, cross-platform, performance, or new-feature verification is claimed.
- Full RelWithDebInfo + `-DVOID_WARNINGS_AS_ERRORS=ON` via
`dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium`: build passed (exit 0);
`ctest` 2/2 passed (`VoidTests` 1,249 passed / 3 intentional skips / 0 failed;
`VoidInstalledComponentConsumers` including relocated `Foundation` and `External` passed).
- Minimal foundation subset, `System` without `Log` (`Log.hpp` installed), embedded
`add_subdirectory`, and static (`BUILD_SHARED_LIBS=OFF`) builds/tests all passed.
- Full Debug ASan+UBSan+`-Werror`: `VoidTests` 1,249 passed, 3 skipped, 0 failed, 0 leaks/UB.
- Debug TSan subset (`Async;Time;Core;Functional;Testing`): 389 passed, 2 skipped, 0 failed.
- `VoidFoundationBench` (RelWithDebInfo, 5 warmup, 20 reps, 10,000 ops/rep): 12 workloads +
empty-harness baseline recorded to `/tmp/void-p0-bench/baseline.json`.
## Ownership and next step
Root owns shared contracts, master index, delivery/validation plans, workflow records,
integration, and review. Separate documentation workers receive exclusive area files.
See TASKS.md for durable assignments; live agent processes are not persistent state.
Coverage/link/task checks and direct Markdown checks pass; final evidence is in
VERIFICATION.md. Documentation workers/reviewers are closed. All future feature tasks
remain PLANNED. Subsequent implementation starts with a bounded task selected from
DELIVERY.md and its area plan after reconciling the current source state. Nothing has
been staged, committed, pushed or deployed by this delivery.
Proceeding to Wave 2 (P1 Gate 1): `Core` (`M-CORE-02`, `M-CORE-03`), `Functional`
(`M-FUNCTIONAL-02`), `Time` (`M-TIME-02`), `Memory` (`S-MEMORY-02..04`), and `Math` (`M-MATH-02`).