docs(workflow): record P1 Gate 1 verification evidence

This commit is contained in:
faumaray committed 2026-11-24 03:00:07 +03:00
1 parent 6cac781f3a
commit 1d34a93a3f
3 files changed
+68 -2

No files matched your search

+41 -2
View File
@@ -23,6 +23,28 @@ at `f1f9ba375b22abf1adcc7c550ec21ac20895c0a4`).
`VOID_ENABLE_TSAN`; verified Debug ASan+UBSan+`-Werror` full suite and TSan subset. `VOID_ENABLE_TSAN`; verified Debug ASan+UBSan+`-Werror` full suite and TSan subset.
- `X-BASE-05`: Added `VOID_ENABLE_BENCHMARKS` (`benchmarks/FoundationBench.cpp`) and - `X-BASE-05`: Added `VOID_ENABLE_BENCHMARKS` (`benchmarks/FoundationBench.cpp`) and
`tests/corpus/README.md`; recorded P0 foundation benchmark manifest. `tests/corpus/README.md`; recorded P0 foundation benchmark manifest.
3. **Wave 2 / P1 Foundations Gate 1 implemented & verified**:
- Specs authored under `docs/agent-workflow/tasks/` (`8d28c7e`).
- `Core` (`M-CORE-02`, `M-CORE-03`, `cbc9004`): detached `Uuid` from `Math`/`<format>`,
added `GenerateError`, `v4(G&)`, `try_v4()`, span-safe `constexpr` `parse`/`v5_lite`/
`format_chars`, `CheckedBits`, endian-portable `Hash` helpers, and `CoreOnly` consumer.
- `VoidTestScanner` fix (`284d963`): prevented unbalanced `[` in C++ strings from dropping
downstream test discovery in `cmake/VoidTestScanner.cmake`.
- `Functional` (`M-FUNCTIONAL-02`, `7f3395c`): added `ErrorKind`/`ErrorCode`, zero-alloc
`Status`, bounded `Error` chains (16 frames / 1 KiB / 16 KiB) with iterative destructor,
`Result::fail` overloads, and `Adapters.hpp`.
- `Time` (`M-TIME-02`, `4227348`): added `Clock.hpp` (`MonotonicClock`, `CivilClock`,
`SystemMonotonicClock`, `SystemCivilClock`, atomic `ManualClock`, `ManualCivilClock`,
`remaining_until`) and upgraded `Stopwatch` with clock injection, `resume()`,
`try_lap()`, single-sample `split()`, and `kDefaultMaxLaps = 4096`.
- `Memory` subsystem (`S-MEMORY-02..04`, `4d48f2a`): added `Resource.hpp`,
`BudgetResource.hpp`, `Arena.hpp` (`Arena::Checkpoint`, `Arena::TypedScope`,
`ArenaResource`), `BlockPool.hpp` (`BlockPool`, `SynchronizedBlockPool`), and
`MemoryOnly` installed consumer.
- `Math` (`M-MATH-02`, `91e2beb`, `6cac781`): added `Error::{Inexact,NonFinite}`,
`Rounding`, `kMaxNumericTokenBytes = 256`, portable `constexpr` overflow helpers with
guarded builtins, `checked_mul_add`, `checked_cast`, span-safe `parse_integer`/
`parse_real`, and delegated `parse_int`/`parse_double`.
## Baseline and authorization ## Baseline and authorization
@@ -43,7 +65,24 @@ and Wave A+B API compatibility while leaving local untracked files untouched.
- `VoidFoundationBench` (RelWithDebInfo, 5 warmup, 20 reps, 10,000 ops/rep): 12 workloads + - `VoidFoundationBench` (RelWithDebInfo, 5 warmup, 20 reps, 10,000 ops/rep): 12 workloads +
empty-harness baseline recorded to `/tmp/void-p0-bench/baseline.json`. empty-harness baseline recorded to `/tmp/void-p0-bench/baseline.json`.
## Verification already observed (P1 Gate 1)
- Full RelWithDebInfo + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-p1-full`, 29 modules,
`6cac781`): `VoidTests` 1,310 tests — 1,307 passed, 3 intentional skips
(`plugin_load_and_query_skipped`, `broken_feature`, `unquoted_skip`), 0 failed (3.72s);
`ctest` 2/2 passed (`VoidTests` 3.81s, `VoidInstalledComponentConsumers` 11.95s, total
15.75s).
- Full Debug ASan + UBSan + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-p1-asan`, 29 modules,
`6cac781`): `VoidTests` 1,310 tests — 1,307 passed, 3 skipped, 0 failed (10.70s), 0 leaks,
0 UB.
- Standalone `Memory;Testing` (`8/8`) + isolated `-DVOID_ENABLED_MODULES=Memory` consumer
`/tmp/void-p1-memory-only-consumer/void_memory_only_consumer` passed (`4d48f2a`).
- `VoidFoundationBench` post-P1 (`rev=6cac781f3a5f`, `/tmp/void-p1-full/post-p1.json`):
`harness_empty_loop` 0.20 ns, `core_uuid_parse_hyphenated` 25.26 ns (down from 88.76 ns),
`core_uuid_to_string` 16.73 ns (down from 498.11 ns).
## Ownership and next step ## Ownership and next step
Proceeding to Wave 2 (P1 Gate 1): `Core` (`M-CORE-02`, `M-CORE-03`), `Functional` Wave 1 (P0) and Wave 2 (P1 Gate 1: `Core`, `Functional`, `Time`, `Memory`, `Math`) are
(`M-FUNCTIONAL-02`), `Time` (`M-TIME-02`), `Memory` (`S-MEMORY-02..04`), and `Math` (`M-MATH-02`). complete and verified on branch `feat/roadmap-p0-p1-foundations`. Next planned wave when
authorized: P1 Wave 3 (`Containers`, `Data`, `Binary`, `Text`).
+11
View File
@@ -23,6 +23,17 @@ These tasks author plans. Future feature task IDs inside those plans remain plan
| X-BASE-04 | `cmake/Capabilities.cmake`, reflection/`expected`/sanitizer probes, `VOID_ENABLE_TSAN` | [X-BASE-04](tasks/X-BASE-04.md) | VERIFIED | ASan+UBSan+`-Werror` full `VoidTests` 1,249 passed (0 leaks/UB); TSan subset 389 passed | | X-BASE-04 | `cmake/Capabilities.cmake`, reflection/`expected`/sanitizer probes, `VOID_ENABLE_TSAN` | [X-BASE-04](tasks/X-BASE-04.md) | VERIFIED | ASan+UBSan+`-Werror` full `VoidTests` 1,249 passed (0 leaks/UB); TSan subset 389 passed |
| X-BASE-05 | `benchmarks/FoundationBench.cpp` (`VOID_ENABLE_BENCHMARKS`) + `tests/corpus/README.md` | [X-BASE-05](tasks/X-BASE-05.md) | VERIFIED | RelWithDebInfo `-Werror` build passed; 12 workloads + harness JSON baseline validated | | X-BASE-05 | `benchmarks/FoundationBench.cpp` (`VOID_ENABLE_BENCHMARKS`) + `tests/corpus/README.md` | [X-BASE-05](tasks/X-BASE-05.md) | VERIFIED | RelWithDebInfo `-Werror` build passed; 12 workloads + harness JSON baseline validated |
## Wave 2 — P1 Foundations Gate 1 (`feat/roadmap-p0-p1-foundations`)
| ID | Deliverable | Spec | State | Verification summary |
| --- | --- | --- | --- | --- |
| M-CORE-02, M-CORE-03 | Detached zero-alloc `Uuid`, `CheckedBits`, endian-portable `Hash`, `CoreOnly` consumer (`cbc9004`) | [M-CORE-02-03](tasks/M-CORE-02-03.md) | VERIFIED | `Uuid` 21/21, `Bits` 23/23, `Hash` 18/18 passed in full RelWithDebInfo & ASan+UBSan; `CoreOnly` consumer passed |
| VoidTestScanner fix | Escape `[`/`]` in `cmake/VoidTestScanner.cmake` preventing dropped tests (`284d963`) | — | VERIFIED | Restored missing suites; full `VoidTests` discovers 1,310 tests |
| M-FUNCTIONAL-02 | `ErrorKind`/`ErrorCode`, compact `Status`, bounded `Error` chains, `Adapters.hpp` (`7f3395c`) | [M-FUNCTIONAL-02](tasks/M-FUNCTIONAL-02.md) | VERIFIED | `ErrorStatus` 6/6 and `Result*` passed in full RelWithDebInfo & ASan+UBSan |
| M-TIME-02 | `Clock.hpp` (`MonotonicClock`, `CivilClock`, `ManualClock`) & clock-injected bounded `Stopwatch` (`4227348`) | [M-TIME-02](tasks/M-TIME-02.md) | VERIFIED | `Clock` 6/6 and `Stopwatch` 14/14 passed in full RelWithDebInfo & ASan+UBSan |
| S-MEMORY-02..04 | `Memory` subsystem (`Resource`, `BudgetResource`, `Arena`, `BlockPool`, `MemoryOnly`) (`4d48f2a`) | [S-MEMORY-02-04](tasks/S-MEMORY-02-04.md) | VERIFIED | `Arena` 3/3, `BlockPool` 2/2, `BudgetResource` 3/3 passed; isolated `MemoryOnly` & integrated consumers passed |
| M-MATH-02 | Span-safe `parse_integer`/`parse_real`, `checked_cast`, `checked_mul_add`, portable overflow (`91e2beb`, `6cac781`) | [M-MATH-02](tasks/M-MATH-02.md) | VERIFIED | `Numeric` 35/35 passed in Debug `-Werror`, full RelWithDebInfo, & full Debug ASan+UBSan |
All workers share the checkout and have disjoint file ownership defined in their All workers share the checkout and have disjoint file ownership defined in their
persisted task specifications. Root owns all cross-cutting files and resolves contract persisted task specifications. Root owns all cross-cutting files and resolves contract
changes. No worker owns application code, build files, existing docs/short-url.md, or Git changes. No worker owns application code, build files, existing docs/short-url.md, or Git
+16
View File
@@ -157,3 +157,19 @@ Branch: `feat/roadmap-p0-p1-foundations`. Toolchain via `dev cpp-gcc`: GCC 16.2.
| X-BASE-04 | `dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium -c bash -lc 'ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 /tmp/void-p0-asan/tests/VoidTests'` | 1,249 passed, 3 skipped, 0 failed, 0 ASan/UBSan/LSan errors (`c64fa93`) | | X-BASE-04 | `dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium -c bash -lc 'ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 /tmp/void-p0-asan/tests/VoidTests'` | 1,249 passed, 3 skipped, 0 failed, 0 ASan/UBSan/LSan errors (`c64fa93`) |
| X-BASE-04 | `dev cpp-gcc -c /tmp/void-p0-tsan/tests/VoidTests` (`Async;Time;Core;Functional;Testing`, Debug, `-DVOID_ENABLE_TSAN=ON -DVOID_WARNINGS_AS_ERRORS=ON`) | Capabilities: `reflection=yes, expected=yes, sanitizers=TSan`; 389 passed, 2 skipped, 0 failed, 0 TSan races | | X-BASE-04 | `dev cpp-gcc -c /tmp/void-p0-tsan/tests/VoidTests` (`Async;Time;Core;Functional;Testing`, Debug, `-DVOID_ENABLE_TSAN=ON -DVOID_WARNINGS_AS_ERRORS=ON`) | Capabilities: `reflection=yes, expected=yes, sanitizers=TSan`; 389 passed, 2 skipped, 0 failed, 0 TSan races |
| X-BASE-05 | `dev cpp-gcc -c /tmp/void-p0-bench/benchmarks/VoidFoundationBench --json /tmp/void-p0-bench/baseline.json` (RelWithDebInfo, `-DVOID_WARNINGS_AS_ERRORS=ON`, 5 warmup, 20 reps, 10k ops/rep) | Exit 0; JSON schema_version 1 validated. Key baselines: `harness_empty_loop` 0.38ns, `core_uuid_parse_hyphenated` 88.76ns, `core_uuid_to_string` 498.11ns, `data_json_parse_small_object` 295.46ns | | X-BASE-05 | `dev cpp-gcc -c /tmp/void-p0-bench/benchmarks/VoidFoundationBench --json /tmp/void-p0-bench/baseline.json` (RelWithDebInfo, `-DVOID_WARNINGS_AS_ERRORS=ON`, 5 warmup, 20 reps, 10k ops/rep) | Exit 0; JSON schema_version 1 validated. Key baselines: `harness_empty_loop` 0.38ns, `core_uuid_parse_hyphenated` 88.76ns, `core_uuid_to_string` 498.11ns, `data_json_parse_small_object` 295.46ns |
## Wave 2 / P1 Foundations Gate 1 Verification (2026-11-24)
Branch: `feat/roadmap-p0-p1-foundations`. Toolchain via `dev cpp-gcc`: GCC 16.2.0, CMake 4.4.4, Ninja 1.13.2.
| Scope | Command & configuration | Observed outcome |
| --- | --- | --- |
| M-CORE-02..03 (`cbc9004`) | `Core` standalone + `CoreOnly` installed consumer (`tests/package/CoreOnly`) | `ctest --test-dir /tmp/void-p1-core` 2/2 passed; `Core`-only install contains no `include/Void/Math` and links cleanly |
| Scanner fix (`284d963`) | `/tmp/void-p1-scanner-check/tests/VoidTests --filter "^(Sources\|Watch\|Json\|Pattern)\."` | 52/52 passed (`Sources` 7, `Watch` 3, `Json` 30, `Pattern` 12) |
| M-FUNCTIONAL-02 (`7f3395c`) | `/tmp/void-p1-functional/tests/VoidTests --filter "ErrorStatus*\|Result*"` & `ctest` | 21/21 passed; `ctest` 2/2 passed |
| M-TIME-02 (`4227348`) | `/tmp/void-p1-time/tests/VoidTests --filter "Clock*\|Stopwatch*\|Time*\|Bench*"` & `ctest` | 48/48 passed; `ctest` 2/2 passed |
| S-MEMORY-02..04 (`4d48f2a`) | `Memory;Testing` (`-DVOID_WARNINGS_AS_ERRORS=ON`) & isolated `-DVOID_ENABLED_MODULES=Memory` consumer `/tmp/void-p1-memory-only-consumer/void_memory_only_consumer` | `VoidTests --filter "Budget*\|Arena*\|BlockPool*"` 8/8 (`Arena` 3, `BlockPool` 2, `BudgetResource` 3); `ctest` 2/2; `void_memory_only_consumer` exit 0 |
| M-MATH-02 (`91e2beb`, `6cac781`) | Debug `Math;Testing` `-DVOID_WARNINGS_AS_ERRORS=ON` `/tmp/void-p1-math/tests/VoidTests --filter "Numeric*"` & `ctest` | `Numeric` 35/35 passed; `ctest` 2/2 passed |
| Full Integrated RelWithDebInfo (`6cac781`) | `dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium` full build (`-DVOID_WARNINGS_AS_ERRORS=ON -DVOID_ENABLE_BENCHMARKS=ON`), `/tmp/void-p1-full/tests/VoidTests`, `ctest --test-dir /tmp/void-p1-full --output-on-failure --timeout 180` | `VoidTests`: 1,310 tests — 1,307 passed, 3 intentional skips (`plugin_load_and_query_skipped`, `broken_feature`, `unquoted_skip`), 0 failed (3.72s); `ctest`: 2/2 passed (`VoidTests` 3.81s + `VoidInstalledComponentConsumers` 11.95s, total 15.75s) |
| Full Integrated ASan+UBSan (`6cac781`) | `dev cpp-gcc -p libarchive -p openssl -p sqlite -p libsodium` Debug (`-DVOID_ENABLE_ASAN=ON -DVOID_ENABLE_UBSAN=ON -DVOID_WARNINGS_AS_ERRORS=ON`), `ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1 /tmp/void-p1-asan/tests/VoidTests` | 1,310 tests — 1,307 passed, 3 skipped, 0 failed (10.70s), 0 leaks, 0 UB |
| Post-P1 Benchmark (`6cac781`) | `/tmp/void-p1-full/benchmarks/VoidFoundationBench --json /tmp/void-p1-full/post-p1.json` (RelWithDebInfo, warmup=5, reps=20, ops=10000) | Medians: `harness_empty_loop` 0.20ns, `core_uuid_parse_hyphenated` 25.26ns, `core_uuid_to_string` 16.73ns, `core_hash_fnv1a64_256b` 183.64ns, `core_hash_murmur3_256b` 68.66ns, `functional_result_ok_chain` 1.14ns, `functional_error_with_context` 59.07ns, `math_checked_add_loop` 0.47ns, `containers_spsc_ring_push_pop` 8.51ns, `containers_lru_get_put` 22.29ns, `binary_reader_u64_be` 1.32ns, `data_json_parse_small_object` 290.64ns, `data_json_serialize_small_object` 174.92ns |