Files
Library/docs/agent-workflow/tasks/W11-PREFLIGHT.md
T
faumarayandClaude Opus 5.5 7f95f89d52 chore(wave11): plan execution-path backfill, reserve error codes, update area plans
- 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>
2026-11-29 18:31:14 +03:00

108 lines
6.7 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.
# Wave 11 PREFLIGHT review of the execution-path plan
Task ID: W11-PREFLIGHT
Role: opus-reviewer
Status: READY
## 1. Context and baseline
- Repo root / cwd: `/home/faumaray/Projects/VoidLibrary`; branch `feat/roadmap-p2-wave11` from
`main` `38436b1`. Only workflow docs changed so far (uncommitted): `docs/agent-workflow/{STATE,TASKS,DECISIONS}.md`,
`docs/agent-workflow/tasks/W11-*.md`. Untracked user files (`.env`, `WG.conf`, `keys`, `jev_token`,
`.serena/`, `.vbs/`, dotfiles) are not inputs; never read or quote them.
- Observed baseline: full RelWithDebInfo `-Werror` build of `38436b1` in `/tmp/void-w11-base`:
`VoidTests` 1,484 discovered, 1,480 passed, 4 skipped, 0 failed; `ctest` 2/2 passed.
- Subject: `docs/agent-workflow/tasks/W11-PLAN-OUTPUT.md` (opus-planner output for
`M-FUNCTIONAL-03`, `M-TIME-03`, `M-ASYNC-04`, `M-ASYNC-05`, `S-IO-03`, `S-IO-04`,
`S-RUNTIME-02`, `S-RUNTIME-03`). Assignment it answered: `W11-PLAN.md`. Root decisions D-033..D-037 in
`docs/agent-workflow/DECISIONS.md`. Contracts C-01..C-14 in `docs/roadmap/ARCHITECTURE.md`.
## 2. Objective and deliverables
Independent PREFLIGHT verdict (READY / CHANGES_REQUIRED / INSUFFICIENT_EVIDENCE) on whether the
plan's contracts, ordering gates, ownership partition and failure semantics are correct and
complete enough to write implementation specs. Deliver severity-ranked findings (P0–P3) with
location, trigger, impact, evidence and recommended correction, plus a disposition
recommendation for each open decision D-W11-01..D-W11-15.
## 3. Scope and non-goals
In scope: contract soundness, missing or contradictory invariants, cross-file obligations,
hidden dependencies, layering violations, 1.x compatibility (D-029), testability of every
acceptance sentence, and the plan's factual claims about current source (especially the
claimed epoll defects "D1" in `src/IO/EpollDriver.cpp`, the `ManualExecutor` bound,
`SignalWatcher` behavior, `Host` movability, and installed-consumer Threads flags).
Non-goals: writing code or specs, reviewing unrelated modules, style nits, re-planning
other waves. Do not agree with the planner by default; verify claims in source.
## 4. Files to inspect
- `docs/agent-workflow/tasks/W11-PLAN-OUTPUT.md` (subject) and `W11-PLAN.md` (its brief).
- Roadmap rows/plans: `docs/roadmap/modules/{Functional,Time,Async}.md`,
`docs/roadmap/subsystems/{IO,Runtime}.md`, `docs/roadmap/{DEPENDENCIES,ARCHITECTURE,MIGRATION}.md`.
- Source cited by the plan: `include/Void/Functional/Retry.hpp`, `include/Void/Time/Clock.hpp`,
`include/Void/Async/{Executor,Operation,TaskScope,ThreadPool,Channel,ParallelFor,EventBus,Observable}.hpp`,
`include/Void/Async/Detail/Types.hpp`, `include/Void/IO/{Types,Driver,Stream}.hpp`,
`include/Void/IO/Detail/Backend.hpp`, `src/IO/EpollDriver.cpp`, `include/Void/Runtime/*.hpp`,
`include/Void/System/SignalWatcher.hpp`, `src/System/SignalWatcher.cpp`,
`include/Void/Resilience/AsyncPolicy.hpp`, `src/SystemAsync/AsyncProcess.cpp`,
`tests/package/InstalledComponents.cmake`, `tests/CMakeLists.txt`, `CMakeLists.txt`, `cmake/Module.cmake`,
`src/Testing/Runner.cpp` (filter semantics), existing tests in `tests/standalone/{Functional,Async,IO,Runtime}/`.
## 5. Write ownership and coordination
Write scope: none
Allowed commands: read-only `git`, `rg`, `ls`, `wc`, `sed -n`, Serena/codebase-memory read tools.
Optional tiny compile probes only under `/tmp/void-w11-preflight-probe` (never in the repo);
`dev cpp-gcc ...` works only unsandboxed. No repository writes, no commits.
## 6. Implementation or investigation approach
1. Verify every baseline claim the plan relies on against source (cite `path:line`).
2. For each NEW interface, check: invariants stated, ownership/lifetime of borrowed objects,
exactly-one-terminal-result, stop/expiry/completion races, callbacks outside locks,
overflow-safe time arithmetic, bounded resources, error mapping into existing domains.
3. Check gate order G1..G5 and the A/B partition for overlapping writes, impossible orders,
or hidden edges the plan missed (e.g. Runtime needing Timer, Host move with live threads,
IO `Types.hpp` edited by both root pre-commit and B2/A4).
4. Check layering against `DEPENDENCIES.md` rules 1–2 and D-015 (Functional std-only),
and installed consumers IOOnly/RuntimeOnly (`-DCMAKE_DISABLE_FIND_PACKAGE_Threads=TRUE`).
5. Check 1.x compatibility: `JitterMode` relocation, `ExponentialBackoff` users in Resilience,
EventBus/Observable behavior changes, legacy `parallel_for` change (D-W11-10).
6. Check that each acceptance sentence of the eight roadmap rows maps to at least one
deterministic test in the plan.
## 7. Interfaces and data contracts
Not applicable for new authorship: you review the plan's proposed interfaces as written in
`W11-PLAN-OUTPUT.md`. Existing contracts: `Void::Functional` error domains (`Error.hpp`),
`Async::OperationOptions`/`AdmissionError`/`TaskScope`, `IO::Driver`/`BufferLease`, `Runtime::Host`.
## 8. Dependencies and integration
Root will convert your verdict into persisted per-package task specs. Blocking findings
(P0/P1) must be resolved before dispatch; P2 need fix or explicit risk acceptance.
## 9. Edge cases security and performance
Pay particular attention to: fd reuse after close during concurrent poll, signal-mask
inheritance and pending-signal default action, thread/fd leak on partial start failure,
`TaskScope` destructor pumping/blocking, `ManualClock` + blocking waits, coroutine resume
on a joined executor, retained buffers after shutdown timeout, unbounded tombstones.
## 10. Acceptance criteria
1. Verdict stated with justification.
2. Every finding has severity, location, trigger, impact, evidence, recommendation.
3. Each D1 defect claim is CONFIRMED or REFUTED with cited lines.
4. Each of D-W11-01..15 has an accept/modify/reject recommendation.
5. Uncovered acceptance sentences (if any) are listed per task.
## 11. Verification commands and evidence
Read-only inspection. Example: `rg -n "release_backend_ref|in_execution" src/IO/EpollDriver.cpp`,
`sed -n 430,460p src/IO/EpollDriver.cpp`, `git log --oneline f1f9ba3..HEAD -- include/Void/Async`.
Report any probe compile command and its exit status if you run one.
## 12. Constraints and stop conditions
No edits, commits or network. Stop and report INSUFFICIENT_EVIDENCE for any claim you cannot
verify rather than guessing. Do not spawn agents.
## 13. Authorization and decisions
Root decision D-034 (Wave 11 scope) under user decisions D-027/D-031. PREFLIGHT is a technical
check; it neither approves scope nor authorizes commits.
## 14. Return format
Return task ID; verdict; findings ranked P0→P3 (severity, location, trigger, impact,
evidence, recommendation); D1 confirm/refute; D-W11-01..15 dispositions; uncovered
acceptance sentences; checks not run. Compact bullets. Do not spawn children.