- Audit roadmap vs TASKS (D-033); scope Wave 11 to M-FUNCTIONAL-03, M-TIME-03,
M-ASYNC-04/05, S-IO-03/04, S-RUNTIME-02/03 (D-034..D-036)
- Schedule VoidForge upstream requests after Wave 11 (D-037)
- Persist planner output, PREFLIGHT findings and contract addendum (D-038)
- Add AsyncErrorCode::closed, IoErrorCode::sync_failed,
RuntimeErrorCode::{self_join, shutdown_incomplete}
- Update Functional/IO/Runtime area plans and MIGRATION per C-13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8.4 KiB
Wave 11 execution-path backfill — architecture and task plan
Task ID: W11-PLAN Role: opus-planner Status: READY
1. Context and baseline
- Repo root / cwd:
/home/faumaray/Projects/VoidLibrary; branchfeat/roadmap-p2-wave11created frommainat38436b1(Waves 1–10 merged at7d7d23e, pushed toorigin/main). - Tracked tree clean. Untracked user files (
.env,WG.conf,keys,jev_token,.serena/,.vbs/, dotfiles,compile_commands.json) are NOT task inputs; never read, copy or quote them. - Root gap analysis (2026-11-29): roadmap task tables list 300 tasks;
docs/agent-workflow/TASKS.mdmarks Waves 1–10 done, but these execution-path tasks remain open and their pre-roadmap headers are untouched since baselinef1f9ba3(git log f1f9ba3..HEADonAsync/{Channel,EventBus,Observable,ParallelFor,ThreadPool}.hpp,Functional/Retry.hppshows no commits;IO/Runtimeonly receivedS-IO-01/02673bb7eandS-RUNTIME-011b3331e):- P1 leftovers:
M-FUNCTIONAL-03,M-TIME-03. - P2:
M-ASYNC-04,M-ASYNC-05,S-IO-03,S-IO-04,S-RUNTIME-02,S-RUNTIME-03.
- P1 leftovers:
- These gate
P-NETWORKED-02/P-RELOADABLE-02("Runtime/Async/IO lifecycle gates"). - Requirement/contract references:
docs/roadmap/REQUIREMENTS.mdR-001..R-016,docs/roadmap/ARCHITECTURE.mdC-01..C-14, gates G-ERROR/G-EXEC/G-IO inDEPENDENCIES.md. - Baseline full build/test of
mainis running separately under root; not your concern.
2. Objective and deliverables
Produce an implementation-ready plan (returned as text, not written to files) for the eight
tasks above, plus a readiness verdict for S-RPC-04 (WebSocket streaming) as an optional
ride-along. Deliverables in the reply:
- Per task: observed baseline (exact existing symbols/behavior with
path:line), the gap against its roadmap row and area plan, and the minimal complete scope to satisfy the row's acceptance text. - Per task: NEW public interfaces (C++ signatures, enums, error codes in existing domains, limits/defaults) marked NEW, and which existing 1.x APIs stay unchanged (D-029).
- Dependency graph between the eight tasks, and the module
INTERNAL_DEPSchanges, if any, with a check that every edge respectsDEPENDENCIES.mdtarget package rules. - A partition into 2–3 worker packages with exclusive file ownership (exact paths), role
(
astra_*rows → opus-implementer,sol_*rows → sonnet-implementer), and order. Identify root-owned shared edits (e.g.include/Void/Functional/Error.hpp,tests/package/InstalledComponents.cmake, top-levelCMakeLists.txt,cmake/*). - Per task: concrete test list (test file paths, scenario names) mapping to acceptance text, and exact verification commands (module subset, filters) in the repository's form.
- Whether the "System signal gate" named by
S-RUNTIME-02exists in current source (cite symbols), or what minimal in-wave work it implies without adding Runtime→System unlessDEPENDENCIES.mdpermits it. - Risks, open questions that need a root decision, and anything in the roadmap rows that is infeasible or contradictory, with a recommended resolution.
3. Scope and non-goals
In scope: planning only for the eight tasks and the S-RPC-04 readiness note. Non-goals: editing files, writing specs, implementing code, running long builds, planning foundation P2 leftovers (Core/Math/Text/Data/Binary/…) or P3/P4 platforms.
4. Files to inspect
- Roadmap:
docs/roadmap/modules/{Functional,Time,Async}.md,docs/roadmap/subsystems/{IO,Runtime,RPC}.md,docs/roadmap/{ARCHITECTURE,DEPENDENCIES,MIGRATION,VALIDATION,PERFORMANCE}.md,docs/roadmap/platforms/{NetworkedApplications,ReloadableApplications}.md(gate wording only). - Prior specs for style/precedent:
docs/agent-workflow/tasks/{M-ASYNC-02-03,S-IO-01-02,S-RUNTIME-01,M-TIME-02,M-FUNCTIONAL-02,M-SYSTEM-01-05}.md. - Source:
include/Void/Functional/{Retry,Error,Result}.hpp,src/Functional/module.cmake;include/Void/Time/{Clock,Stopwatch}.hpp;include/Void/Async/*.hpp,src/Async/module.cmake;include/Void/IO/{Types,Driver,Stream}.hpp,include/Void/IO/Detail/*,src/IO/{EpollDriver.cpp,module.cmake};include/Void/Runtime/{Options,ResourceGraph,Host}.hpp,src/Runtime/module.cmake;include/Void/System/*(signal handling),include/Void/Net/*(only for S-IO-04/S-RPC-04 adapters); existing tests undertests/standalone/{Functional,Time,Async,IO,Runtime}/;cmake/Module.cmake,tests/CMakeLists.txt,tests/package/InstalledComponents.cmake.
5. Write ownership and coordination
Write scope: none
Allowed commands: read-only git, rg, ls, wc, Serena/codebase-memory read tools. You may
compile a tiny probe only under /tmp/void-w11-plan-probe if essential; do not touch the
repository tree. dev cpp-gcc ... must run unsandboxed (nix fetcher lock); avoid it unless needed.
6. Implementation or investigation approach
- Read each roadmap row and area-plan section; extract mandatory behavior and limits.
- Inspect the current headers/tests via Serena symbol tools; record what exists.
- Derive minimal complete NEW interfaces that layer beside 1.x APIs (Wave A+B, D-029).
- Check layering: Functional has zero
INTERNAL_DEPS(D-015) — retry decisions must take injected time values or a template clock, not depend onTime; Async must not depend on Log backends or Runtime; IO must not depend on Runtime/Net/System; Runtime composes. - Build the task DAG and the ownership partition minimizing cross-package header edits.
- Draft test scenarios that prove each acceptance sentence deterministically (manual clocks, mock IO backend) and TSan-relevant concurrency cases.
7. Interfaces and data contracts
Use existing contracts: Void::Functional::{Result,Error,Status,ErrorCode}, domains
kTimeErrorDomain=4, kAsyncErrorDomain=7, kIoErrorDomain=8, kRuntimeErrorDomain=11;
Void::Time::{MonotonicClock,ManualClock}; Async OperationOptions/TaskScope/Executor;
IO Driver/BufferLease; Runtime Host/HostBuilder/ResourceGraph. Any new error code
must extend an existing domain enum; propose exact enumerator names.
8. Dependencies and integration
Upstream: Waves 1–10 on main. Root owns integration, shared build files, and all commits.
Implementers will be dispatched only after a fresh opus-reviewer PREFLIGHT of your plan.
9. Edge cases security and performance
Call out: exactly-one-terminal-result races, stop/expiry/completion permutations, buffer retention on active cancel, bounded queues including running work, reentrancy and unsubscribe-during-dispatch, failed-start reverse cleanup with no leaked threads/fds, signal-mask ownership, exporter-before-executor shutdown ordering, no user callbacks under locks, overflow-safe deadline arithmetic.
10. Acceptance criteria
- Each of the eight tasks has baseline, gap, NEW interface, tests and commands.
- DAG and INTERNAL_DEPS changes respect DEPENDENCIES.md rules (stated per edge).
- Ownership partition has no overlapping paths and lists root-owned shared files.
- S-RUNTIME-02 signal-gate question answered with cited symbols.
- S-RPC-04 readiness verdict with prerequisites cited.
- Open decisions listed with a recommendation each.
11. Verification commands and evidence
Not applicable for builds: planning-only. Cite path:line for every baseline claim. Command
templates you propose must follow the observed form, e.g.
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-<x> -G Ninja -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_WARNINGS_AS_ERRORS=ON && cmake --build /tmp/void-w11-<x> && /tmp/void-w11-<x>/tests/VoidTests --filter "<Pattern>*" && ctest --test-dir /tmp/void-w11-<x> --output-on-failure --timeout 60'.
12. Constraints and stop conditions
No repository edits, no commits, no network calls beyond local tools, no secrets. Stop and report if a roadmap requirement contradicts a recorded decision (D-001..D-032) or would need a new dependency edge forbidden by DEPENDENCIES.md.
13. Authorization and decisions
Root decision under D-027/D-031 (continuous roadmap-order execution): Wave 11 is the execution-path backfill. Planning-only authorization; you do not approve your own plan.
14. Return format
Return task ID; DONE/BLOCKED/PARTIAL; summary; per-task sections (baseline, gap, NEW interfaces, tests, commands); DAG; ownership partition; signal-gate answer; S-RPC-04 verdict; risks; open decisions with recommendations; checks not run. Do not spawn children.