Files
Library/docs/agent-workflow/STATE.md
T

187 lines
12 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Workflow state
Updated: 2026-11-24.
Repository: VoidLibrary; active branch `feat/roadmap-p1-wave4b` (from `main`
at `2e5d1ef`, merged Waves 1–4A).
## Completed objective
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.
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`.
4. **Wave 3 / P1 Text, Containers, Binary, Data implemented & verified**:
- Task specs committed under `docs/agent-workflow/tasks/` (`68963fc`) plus user
decision `D-031` in `DECISIONS.md`.
- `Text` (`M-TEXT-02`, `883bbdc`): added locale-independent ASCII-only helpers in
`include/Void/Text/Str.hpp`, new `include/Void/Text/Bounded.hpp` (`TextLimits`,
`TextError`, `split_views`, `replace_bounded`, `repeat_bounded`, `join_bounded`), and
boundary tests in `tests/standalone/Text/{Str,Bounded}.cpp`.
- `Containers` (`M-CONTAINERS-02`, `M-CONTAINERS-03`, `9ac76bb`): updated
`src/Containers/module.cmake` to `INTERNAL_DEPS Core Memory`; upgraded `ObjectPool` and
`BufferPool` with stationary `std::shared_ptr<State>`, zero-alloc recycling, explicit
`std::pmr::memory_resource*`, admission/byte limits, and exception-safe slot rollback;
upgraded `Ring.hpp` with Vyukov sequence-based non-spinning `MpscRing::try_pop()`,
`close()`, and quiesced destructor cleanup.
- `Binary` (`M-BINARY-02`, `M-BINARY-03`, `eacb8a4`): updated `src/Binary/module.cmake`
to `INTERNAL_DEPS Functional Memory`; added `Budget.hpp` (`BinaryErrorCode`,
`DecodeLimits`, `DecodeBudget`), `Writer.hpp`, `ByteBuffer.hpp` (`FrozenBytes`,
`ByteBuffer`), and upgraded `Reader.hpp` (pre-consume endian check, strict `readBool`,
IEEE `readF32`/`readF64`, `Transaction`, checked cumulative budget readers); expanded
installed `Binary` consumer.
- `Data` (`M-DATA-02`, `692f5ba`): updated `src/Data/module.cmake` to
`INTERNAL_DEPS Core Math Time`; added `std::int64_t`/`std::uint64_t`/`double`
alternatives to `Void::Json::Value`, `NumberKind`, `number_as`, strict RFC 8259
number parsing, exact cross-type `operator==`, `try_serialize`, typed SAX
`on_int`/`on_uint`, and exact reflection/config formatting (`StrictJson` untouched).
## Baseline and authorization
User decisions D-027..D-031 authorize continuous roadmap-order execution on branch
`feat/roadmap-p0-p1-foundations`, per-task workflow specs in `docs/agent-workflow/tasks/`,
Wave A+B API compatibility, and local merges of verified waves into `main` (without
pushing to remote) while leaving local untracked files untouched.
## Verification already observed (P0)
- 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`.
## 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).
## Verification already observed (Wave 3)
- Full RelWithDebInfo + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-w3-full`, 29 modules,
`692f5ba`): `VoidTests` 1,332 tests — 1,329 passed, 3 intentional skips
(`plugin_load_and_query_skipped`, `broken_feature`, `unquoted_skip`), 0 failed (3.83s);
`ctest` 2/2 passed (`VoidTests` 3.81s, `VoidInstalledComponentConsumers` 12.38s, total
16.20s).
- Full Debug ASan + UBSan + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-w3-asan`, 29 modules,
`692f5ba`): `VoidTests` 1,332 tests — 1,329 passed, 3 skipped, 0 failed (10.83s), 0 leaks,
0 UB.
- Debug TSan subset (`Containers;Async;Time;Testing`, `/tmp/void-w3-tsan`, `692f5ba`):
`Ring*|Pool*|BufferPool*|Clock*|Stopwatch*` 67/67 passed (69.8ms), 0 TSan data races.
- `VoidFoundationBench` post-W3 (`rev=692f5ba5b2f9`, `/tmp/void-w3-full/post-w3.json`):
`harness_empty_loop` 0.39 ns, `core_uuid_parse_hyphenated` 24.94 ns,
`core_uuid_to_string` 16.88 ns, `containers_spsc_ring_push_pop` 8.85 ns,
`containers_lru_get_put` 20.59 ns, `binary_reader_u64_be` 1.31 ns,
`data_json_parse_small_object` 325.73 ns, `data_json_serialize_small_object` 164.76 ns.
## Verification already observed (Wave 4A — P1 Algorithms, Unicode, Async)
- Standalone `Algorithms;Testing` (`-Werror`, `/tmp/void-w4a-alg`, `bfd6246`): `Graph`
4/4 passed (64.2ms); `ctest` 2/2 passed (including `AlgorithmsOnly` installed consumer).
- Standalone `Unicode;Testing` (`-Werror`, `/tmp/void-w4a-unicode`, `4369fde`): `Utf`
4/4 passed (0.3ms); `ctest` 2/2 passed (including `UnicodeOnly` installed consumer).
- Standalone `Async;Testing` (`-Werror`, `/tmp/void-w4a-async`, `c75056f`):
`OperationScope*|Executor*|Coro*` 28/28 passed (4.1ms); `ctest` 2/2 passed.
- Debug TSan subset (`Async;Testing`, `/tmp/void-w4a-async-tsan`, `c75056f`):
`OperationScope*|Executor*|ThreadPool*` 20/20 passed (34.6ms), 0 TSan races.
- Full RelWithDebInfo + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-w4a-full`, 31 modules,
`c75056f`): `VoidTests` 1,345 tests — 1,342 passed, 3 intentional skips
(`plugin_load_and_query_skipped`, `broken_feature`, `unquoted_skip`), 0 failed (3.75s);
`ctest` 2/2 passed (`VoidTests` 3.77s, `VoidInstalledComponentConsumers` 14.45s, total
18.21s).
- Full Debug ASan + UBSan + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-w4a-asan`, 31 modules,
`c75056f`): `VoidTests` 1,345 tests — 1,342 passed, 3 skipped, 0 failed (11.00s), 0 leaks,
0 UB.
- `VoidFoundationBench` post-W4A (`rev=c75056fe0707`, `/tmp/void-w4a-full/post-w4a.json`):
`harness_empty_loop` 0.39 ns, `core_uuid_parse_hyphenated` 25.48 ns,
`core_uuid_to_string` 17.09 ns, `containers_spsc_ring_push_pop` 9.16 ns,
`containers_lru_get_put` 21.81 ns, `binary_reader_u64_be` 1.36 ns,
`data_json_parse_small_object` 319.83 ns, `data_json_serialize_small_object` 168.13 ns.
## Verification already observed (Wave 4B — P1 IO, Runtime, Testing)
- Standalone `IO` (`-Werror`, `/tmp/void-w4b-io`, `673bb7e`): `IoDriver` 4/4 passed (7.5 ms);
`ctest` 2/2 passed (`VoidTests` 1.50 s, `VoidInstalledComponentConsumers` including `IOOnly`
6.08 s); Debug TSan `/tmp/void-w4b-io-tsan` `IoDriver` 4/4 passed (12.8 ms, 0 races).
- Standalone `Runtime` (`-Werror`, `/tmp/void-w4b-runtime`, 11 modules, `1b3331e`):
`RuntimeHost` 3/3 passed (0.5 ms); `ctest` 2/2 passed (`VoidTests` 1.54 s,
`VoidInstalledComponentConsumers` including `RuntimeOnly` 8.01 s).
- Standalone `Testing` (`Core;Testing`, `-Werror`, `/tmp/void-w4b-testing`, `de8a981`):
`FrameworkHardening*|Deterministic*|Math*|ContainerFixture*|StructRepr*` 16 tests — 14
passed, 2 intentional skips (`broken_feature`, `unquoted_skip`), 0 failed (301.1 ms);
`ctest` 2/2 passed (2.82 s).
- Full RelWithDebInfo + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-w4b-full`, 33 modules,
`de8a981`): `VoidTests` 1,359 tests — 1,356 passed, 3 intentional skips
(`plugin_load_and_query_skipped`, `broken_feature`, `unquoted_skip`), 0 failed (5.08 s);
`ctest` 2/2 passed (`VoidTests` 4.50 s, `VoidInstalledComponentConsumers` 19.77 s, total
24.27 s).
- Full Debug ASan + UBSan + `-DVOID_WARNINGS_AS_ERRORS=ON` (`/tmp/void-w4b-asan`, 33 modules,
`de8a981`): `VoidTests` 1,359 tests — 1,356 passed, 3 skipped, 0 failed (14.87 s), 0 leaks,
0 UB.
- Debug TSan subset (`IO;Async;Containers;Time;Testing`, `/tmp/void-w4b-tsan`, 9 active
modules, `de8a981`): `Io*|OperationScope*|Executor*|Ring*|Pool*|Clock*` 80/80 passed
(60.7 ms), 0 TSan data races.
- `VoidFoundationBench` post-W4B (`rev=de8a981893d8`, `/tmp/void-w4b-full`, `post-w4b.json`):
`harness_empty_loop` 0.39 ns, `core_uuid_parse_hyphenated` 25.28 ns,
`core_uuid_to_string` 16.94 ns, `core_hash_fnv1a64_256b` 184.30 ns,
`core_hash_murmur3_256b` 69.63 ns, `functional_result_ok_chain` 1.16 ns,
`functional_error_with_context` 60.17 ns, `math_checked_add_loop` 0.48 ns,
`containers_spsc_ring_push_pop` 9.06 ns, `containers_lru_get_put` 21.30 ns,
`binary_reader_u64_be` 1.35 ns, `data_json_parse_small_object` 316.78 ns,
`data_json_serialize_small_object` 168.16 ns.
## Ownership and next step
Waves 1–4B (`P0` and `P1`) are complete and verified on `feat/roadmap-p1-wave4b` and ready
to merge locally into `main`, before planning and executing **P2 Wave 5**.