docs(wave11): B1b and M-ASYNC-05 specs, STATE checkpoint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c6789e7dbf
commit
95785ed47a
3 files changed
+285
No files matched your search
@@ -363,6 +363,24 @@ while leaving local untracked files untouched.
|
||||
- Full Debug ASan+UBSan (`/tmp/void-w10-asan`, 55 modules, `-Werror`): `VoidTests` `1,484` discovered (`1,480 ✔`, `4 ⊘`, `0 ✘`) in `42.48s`, `0` leaks, `0` UB.
|
||||
- Debug TSan (`/tmp/void-w10-tsan`, `Discovery;DiscoveryRpc;Scheduler;SchedulerStorage;Messaging;MessagingStorage;MessagingRpc;System;Testing`, 23 modules, `-Werror`): `903` discovered (`900 ✔`, `3 ⊘`, `0 ✘`) in `23.20s`, `0` data races, `0` lock-order warnings.
|
||||
|
||||
### Wave 11 — Execution-path backfill (`feat/roadmap-p2-wave11`, in progress)
|
||||
|
||||
Checkpoint 2026-11-29 (branch pushed to `origin/feat/roadmap-p2-wave11`; `main` untouched at `38436b1`):
|
||||
- Baseline `38436b1` full RelWithDebInfo `-Werror` (`/tmp/void-w11-base`, 55 modules): 1,484 tests
|
||||
(1,480 ✔, 4 ⊘), `ctest` 2/2.
|
||||
- Planning: `tasks/W11-PLAN-OUTPUT.md` → PREFLIGHT 1 (CHANGES_REQUIRED, F1 P1 + F2–F13) →
|
||||
`tasks/W11-PLAN-REV1-OUTPUT.md` → PREFLIGHT 2 (CHANGES_REQUIRED, N1–N6) → `tasks/W11-CONTRACT-R2.md`
|
||||
→ spec review (S1–S9, A1–A3) adopted into specs (D-038, D-040, D-042).
|
||||
- Commits: `7f95f89` prep (error codes, area plans), `a8a9249`/`99203ce`/`c6789e7` docs/specs,
|
||||
`26edf65` M-FUNCTIONAL-03 (VERIFIED).
|
||||
- In flight: M-TIME-03 B1 TimerQueue diff applied UNCOMMITTED in the main checkout (root-verified:
|
||||
681 tests 678 ✔ 3 ⊘, TSan 28/28 ×3, ASan 468 ✔; fresh review pending); S-IO-03 (B2) implementer
|
||||
in an agent worktree. Specs ready: M-ASYNC-04 (A2, after B1 commit), M-TIME-03-B1b (`retry_async`,
|
||||
after B1 commit), M-ASYNC-05 (A3, after A2). Still to specify: S-IO-04 (A4), S-RUNTIME-02 (B3),
|
||||
S-RUNTIME-03 (B4).
|
||||
- Dispatch rule (X-WF-01): agent worktrees start at `main`; each prompt fast-forwards to the stated HEAD.
|
||||
- Note: a 5-hour usage limit interrupted two agents once; they were resumed with SendMessage.
|
||||
|
||||
## Ownership and next step
|
||||
|
||||
Waves 1–10 (`P0`, `P1` except `M-FUNCTIONAL-03`/`M-TIME-03`, the P2 operations/storage/
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
# M-ASYNC-05 — EventBus/Observable snapshot dispatch, joined subscriptions, injected scheduling
|
||||
|
||||
Task ID: M-ASYNC-05
|
||||
Role: sonnet-implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
- Wave 11 package step A3 (after A2 M-ASYNC-04 is committed). Repo VoidLibrary, branch
|
||||
`feat/roadmap-p2-wave11`. Isolated worktree; first fast-forward it to the HEAD stated in your prompt.
|
||||
- Baseline: full suite at `38436b1` = 1,484 tests (1,480 ✔, 4 ⊘).
|
||||
- Observed source (M-ASYNC-01 characterization folded in):
|
||||
- `include/Void/Async/EventBus.hpp` (`Void::EventBus`): sync `publish` iterates the live vector without
|
||||
the lock (~:156-164) so subscribe/unsubscribe during dispatch is UB; Async mode starts a private
|
||||
thread in the constructor (~:43-48); the async snapshot copies `std::function`s so `unsubscribe`
|
||||
cannot retract queued copies (~:167-169); a handler exception escapes the worker loop and terminates
|
||||
(~:248-269); task queue and handler list unbounded (~:272-278); `Subscription::reset` does not join
|
||||
(~:115-121); `Subscription` holds a raw `EventBus*` (~:137-146); `flush()` returns void (~:193-201).
|
||||
- `include/Void/Async/Observable.hpp`: `Observable`/`Signal` iterate live vectors (~:74-77, :116-119);
|
||||
reentrant use is UB; no threading policy; on throw the value stays new (~:40-42).
|
||||
- Existing tests: `tests/standalone/Async/{EventBus,EventBusAsync,Observable}.cpp` (12/4/14).
|
||||
- Available from A2: `Async::ThreadExecutor` (bounded, `join`, `is_executor_thread`), `ManualExecutor`.
|
||||
- Requirements: roadmap row M-ASYNC-05 ("EventBus/Observable snapshot dispatch, joined subscriptions,
|
||||
injected scheduling | Reentrancy, callback throw and unsubscribe races leave no captured state in use
|
||||
after join"); C-03/C-05; decisions D-W11-06 (accepted with conditions), D-038, D-040 (N6, P3-8).
|
||||
- MANDATORY design sources: `docs/agent-workflow/tasks/W11-PLAN-OUTPUT.md` §M-ASYNC-05,
|
||||
`W11-PLAN-REV1-OUTPUT.md` F12 + P3 (Observable/Signal, captured-state tests), `W11-CONTRACT-R2.md` N6.
|
||||
Precedence R2 > REV1 > PLAN.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
EDIT `include/Void/Async/EventBus.hpp` and `include/Void/Async/Observable.hpp`; NEW tests
|
||||
`tests/standalone/Async/EventBusJoin.cpp`, `tests/standalone/Async/ObservableReentrancy.cpp`.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Out: Executor/Operation/TaskScope/ThreadExecutor changes, build files, other modules.
|
||||
|
||||
## 4. Files to inspect
|
||||
`include/Void/Async/{EventBus,Observable,Executor,TaskScope,ThreadExecutor}.hpp`, the three existing
|
||||
tests, and the design sources in §1.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: `include/Void/Async/EventBus.hpp`, `include/Void/Async/Observable.hpp`,
|
||||
`tests/standalone/Async/EventBusJoin.cpp` (NEW), `tests/standalone/Async/ObservableReentrancy.cpp` (NEW).
|
||||
Forbidden: every other path, including the existing EventBus/Observable test files. Other implementers
|
||||
work concurrently in other worktrees (IO; Runtime). No git operations except the authorized fast-forward.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
MANDATORY:
|
||||
- Subscription state in shared ownership; every dispatch (all modes) iterates a snapshot of entries and
|
||||
checks a per-entry live flag before invoking; callbacks run outside locks.
|
||||
- NEW `Mode::Injected` + `EventBus(Async::Executor&, BusOptions)`: no private thread; dispatch frames
|
||||
capture `shared_ptr<detail::BusCore>`; bounded subscriptions/admitted dispatches → `overloaded`;
|
||||
Injected and Async modes catch handler exceptions and route them to `error_sink` (outside locks),
|
||||
counting `callback_failures`; a throwing `error_sink` is caught and counted (D-W11-06 condition).
|
||||
Sync `publish` keeps 1.x exception propagation.
|
||||
- `Subscription::close_and_join()`: suppresses admitted-but-not-started deliveries, waits for in-flight
|
||||
callbacks on other threads, resets the handler (releasing captured state) before returning; on its own
|
||||
callback thread → `self_join` (self-unsubscribe via legacy `unsubscribe`/`reset` still works).
|
||||
- 1.x `unsubscribe` in `Mode::Async` still delivers already-queued copies (pinned test).
|
||||
- `EventBus::close_and_join()` / `close_and_join_pumping(ManualExecutor&)`; `flush_blocking()`
|
||||
(`self_join` on an executor thread or inside a bus callback; `invalid_argument` on a ManualExecutor);
|
||||
`flush_pumping(ManualExecutor&)`; legacy `flush()` in Injected mode calls `flush_blocking()` and
|
||||
discards the error (never deadlocks).
|
||||
- `~EventBus` (N6): gates every admitted-but-not-started delivery on every thread before returning
|
||||
(core `closed` flag checked under the core lock before each delivery starts); waits for callbacks
|
||||
running on OTHER threads, excluding the current thread's own in-progress callback (thread-local
|
||||
dispatch depth); documented residual: destroying a bus from inside a callback that another thread's
|
||||
callback waits on can deadlock (caller error). On a ManualExecutor it pumps (TaskScope pattern).
|
||||
- Observable/Signal (REV1 P3): documented single-threaded, not thread-safe, reentrancy-safe. For
|
||||
copyable `T` (`std::copy_constructible`): nested `set` updates the value immediately and queues
|
||||
`(old, new)` copies delivered FIFO after the current pass, bounded at
|
||||
`kMaxPendingNotifications = 1024`; overflow keeps the new value and counts a dropped notification;
|
||||
`try_set(T)` (copyable only) → `overloaded` without changing the value; `dropped_notifications()`.
|
||||
Move-only `T`: 1.x immediate recursive notification over a listener snapshot, no queue, no `try_set`.
|
||||
Unsubscribe during a pass skips that listener for the rest of the pass; subscribe during a pass is not
|
||||
in the current pass. On a throw: the value stays new, dispatch depth restored, that pass's queued
|
||||
notifications dropped and counted, exception propagates from the outermost `set`/`emit`.
|
||||
`Signal<Args...>` follows the same rule when all decayed `Args` are copyable (queue is `mutable`).
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
```cpp
|
||||
namespace Void::EventBus {
|
||||
enum class Mode { Sync, Async, Injected }; // NEW enumerator appended
|
||||
struct BusOptions { std::size_t max_subscriptions{1024}; std::size_t max_admitted_dispatches{1024};
|
||||
std::function<void(std::exception_ptr)> error_sink{}; };
|
||||
// EventBus additions (existing API unchanged):
|
||||
explicit EventBus(Void::Async::Executor& executor, BusOptions = {});
|
||||
template <class Event> [[nodiscard]] Void::Result::Result<Subscription> try_subscribe(std::function<void(const Event&)>);
|
||||
template <class Event> [[nodiscard]] Void::Result::Result<void> try_publish(const Event&); // overloaded / closed
|
||||
[[nodiscard]] Void::Result::Result<void> close_and_join();
|
||||
[[nodiscard]] Void::Result::Result<void> close_and_join_pumping(Void::Async::ManualExecutor&);
|
||||
[[nodiscard]] Void::Result::Result<void> flush_blocking();
|
||||
[[nodiscard]] Void::Result::Result<void> flush_pumping(Void::Async::ManualExecutor&);
|
||||
[[nodiscard]] std::uint64_t callback_failures() const noexcept;
|
||||
// Subscription addition: [[nodiscard]] Void::Result::Result<void> close_and_join();
|
||||
}
|
||||
// Observable.hpp: inline constexpr std::size_t kMaxPendingNotifications = 1024;
|
||||
// Observable<T>: Void::Result::Result<void> try_set(T) requires std::copy_constructible<T>;
|
||||
// std::size_t dropped_notifications() const noexcept;
|
||||
```
|
||||
Errors use `Void::Async::make_async_error` codes (`overloaded`, `closed`, `self_join`, `invalid_argument`).
|
||||
If EventBus.hpp currently includes no Async headers, adding `Void/Async/Executor.hpp` is allowed (same
|
||||
module). Unchanged 1.x: every existing EventBus/Observable/Signal signature and their existing tests.
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Upstream: A2 (ThreadExecutor) in your base. Downstream: none in this wave. Root integrates and commits.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Reentrant subscribe/unsubscribe/publish inside callbacks (ASan); unsubscribe vs dispatch races (TSan);
|
||||
callback throw in every mode; destruction on executor thread; captured-state release verified by a
|
||||
sentinel `shared_ptr` `use_count() == 1` after join; bounded queues; no user code under locks.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
- `EventBusJoin.cpp`: `bus_injected_no_private_thread_manual_pumping`, `bus_injected_subscription_limit_overloaded`,
|
||||
`bus_injected_dispatch_limit_overloaded`, `bus_close_and_join_waits_inflight_releases_capture_tsan`,
|
||||
`bus_unsubscribe_during_dispatch_prevents_later_admission`, `bus_self_unsubscribe_ok_self_join_rejected`,
|
||||
`bus_callback_throw_to_error_sink_others_run`, `bus_error_sink_throw_caught_and_counted`,
|
||||
`bus_legacy_async_unsubscribe_keeps_queued_copy`, `bus_sync_reentrant_subscribe_unsubscribe_asan`,
|
||||
`bus_publish_after_close_closed`, `bus_sync_unsubscribe_releases_captured_state`,
|
||||
`bus_legacy_async_unsubscribe_then_flush_releases_captured_state`,
|
||||
`bus_legacy_async_close_and_join_releases_capture_with_queued_copies`,
|
||||
`bus_destructor_gates_admitted_deliveries`, `bus_flush_blocking_self_join_and_manual_invalid`.
|
||||
- `ObservableReentrancy.cpp`: `observable_nested_set_fifo`, `observable_unsubscribe_in_listener_skips_rest`,
|
||||
`observable_subscribe_in_listener_not_current_pass`, `observable_try_set_overloaded_when_pending_full`,
|
||||
`observable_listener_throw_restores_state`, `observable_self_unsubscribe_releases_capture`,
|
||||
`observable_move_only_immediate_notification_compat`, `signal_reentrant_connect_disconnect_during_emit`.
|
||||
- Existing `EventBus`, `EventBusAsync`, `Observable` tests pass unchanged; TSan 0 races; ASan+UBSan 0
|
||||
errors; `-Werror` syntax checks clean.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Cwd = worktree root; `dev` with the sandbox disabled. Confirm the new suites appear in the output.
|
||||
```sh
|
||||
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-async5 -G Ninja -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_WARNINGS_AS_ERRORS=ON && cmake --build /tmp/void-w11-async5 --parallel 8 && /tmp/void-w11-async5/tests/VoidTests --filter "^(EventBusJoin|ObservableReentrancy|EventBus|EventBusAsync|Observable)\." && ctest --test-dir /tmp/void-w11-async5 --output-on-failure --timeout 60'
|
||||
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-async5-tsan -G Ninja -DCMAKE_BUILD_TYPE=Debug -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_ENABLE_TSAN=ON && cmake --build /tmp/void-w11-async5-tsan --parallel 8 && /tmp/void-w11-async5-tsan/tests/VoidTests --filter "^(EventBusJoin|ObservableReentrancy|EventBus|EventBusAsync|Observable)\."'
|
||||
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-async5-asan -G Ninja -DCMAKE_BUILD_TYPE=Debug -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_ENABLE_ASAN=ON -DVOID_ENABLE_UBSAN=ON && cmake --build /tmp/void-w11-async5-asan --parallel 8 && /tmp/void-w11-async5-asan/tests/VoidTests --filter "^(EventBusJoin|ObservableReentrancy|EventBus|EventBusAsync|Observable)\."'
|
||||
dev cpp-gcc -c bash -lc 'for f in EventBusJoin ObservableReentrancy; do g++ -std=c++26 -freflection -fsyntax-only -Iinclude -Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers tests/standalone/Async/$f.cpp || exit 1; done'
|
||||
```
|
||||
Also run the full `Async;Testing` VoidTests binary unfiltered once to catch regressions in other Async
|
||||
users (Fsm is not selected; root runs the full suite at integration).
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
No edits outside write scope; no weakened assertions; 1.x behavior changes limited to those recorded in
|
||||
MIGRATION (snapshot dispatch, nested FIFO for copyable, Async-mode exceptions counted). Stop and report
|
||||
BLOCKED if an existing EventBus/Observable test must change, or two repair attempts at one check fail.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Root decisions D-034, D-038, D-040, D-042 under user decisions D-027/D-029/D-031. Listed files only; no
|
||||
commits, pushes or other side effects.
|
||||
|
||||
## 14. Return format
|
||||
Task ID; DONE/BLOCKED/PARTIAL; summary; files changed; decisions/deviations; evidence per acceptance
|
||||
criterion; commands with cwd/results; checks not run; residual risks; worktree path. Do not spawn children.
|
||||
@@ -0,0 +1,116 @@
|
||||
# M-TIME-03 (step B1b) — Async::retry_async over TimerQueue and deadline-domain conformance
|
||||
|
||||
Task ID: M-TIME-03
|
||||
Role: opus-implementer
|
||||
Status: READY
|
||||
|
||||
## 1. Context and baseline
|
||||
- Wave 11 package step B1b (gate G1 satisfied: M-FUNCTIONAL-03 committed `26edf65`; M-TIME-03 B1
|
||||
TimerQueue committed on the branch). Repo VoidLibrary, branch `feat/roadmap-p2-wave11`. You work
|
||||
in an isolated worktree; first fast-forward it to the HEAD stated in your prompt.
|
||||
- Baseline: full suite at `38436b1` = 1,484 tests (1,480 ✔, 4 ⊘). Since then: A1 adds RetryState (23
|
||||
tests), B1 adds TimerQueue (15), DeadlineDomains (2), ClockSaturation (1).
|
||||
- Observed source:
|
||||
- `include/Void/Functional/RetryState.hpp`: `RetrySpec`, `RetryState<URBG>::create(spec, start, urbg,
|
||||
admission_deadline)`, `begin/next/resume/succeed` (stop decisions are final), `RetryError<E>{reason,
|
||||
attempts, last_error, config}`, `RetryEveryError`, `AttemptOutcome`, `detail::seeded_engine<G>()`.
|
||||
- `include/Void/Functional/Retry.hpp`: `retry_blocking` (reference shape for error mapping).
|
||||
- `include/Void/Async/Timer.hpp`: `TimerQueue::sleep_until(when, OperationOptions)` → `{}` on expiry
|
||||
after poll, `cancelled` on stop (only if the stop wins the timer cancel race; a stop after poll or
|
||||
close claimed the timer yields `{}`/`stopped`), `timeout` when `options.deadline < when`, `stopped`
|
||||
after close; resumes via `executor().post_completion`; `clock()` is the injected clock.
|
||||
- Requirements: roadmap row M-TIME-03 ("Validate injected-deadline domains with Async and blocking retry
|
||||
adapters; advancing manual time plus explicit polling expires an operation once"); C-03/C-04; D-038.
|
||||
|
||||
## 2. Objective and deliverables
|
||||
1. NEW `include/Void/Async/Retry.hpp`: `Void::Async::retry_async`.
|
||||
2. NEW `tests/standalone/Async/AsyncRetry.cpp`.
|
||||
3. EDIT `tests/standalone/Async/DeadlineDomains.cpp`: add `deadline_domain_blocking_retry_manual_clock`.
|
||||
|
||||
## 3. Scope and non-goals
|
||||
Out: changes to Timer.hpp, RetryState.hpp, Retry.hpp, Executor/Operation/TaskScope, build files.
|
||||
|
||||
## 4. Files to inspect
|
||||
The three headers above, `include/Void/Async/{Task,Executor,TaskScope}.hpp`, `include/Void/Async/Detail/Types.hpp`,
|
||||
`tests/standalone/Async/{TimerQueue,DeadlineDomains}.cpp`, `tests/standalone/Functional/RetryBlocking.cpp`,
|
||||
`docs/agent-workflow/tasks/W11-PLAN-OUTPUT.md` §M-TIME-03.
|
||||
|
||||
## 5. Write ownership and coordination
|
||||
Write scope: `include/Void/Async/Retry.hpp` (NEW), `tests/standalone/Async/AsyncRetry.cpp` (NEW),
|
||||
`tests/standalone/Async/DeadlineDomains.cpp`.
|
||||
Forbidden: every other path. Other implementers work concurrently in other worktrees (IO files; Async
|
||||
ThreadExecutor/FuturePool/AsyncChannel/ParallelFor). No git operations except the root-authorized
|
||||
fast-forward in your prompt.
|
||||
|
||||
## 6. Implementation or investigation approach
|
||||
MANDATORY semantics:
|
||||
- "now" is always `timers.clock().now()`; admission deadline = `options.deadline`; stop = `options.stop`.
|
||||
- Invalid spec → `RetryError{config=err, attempts=0}` without calling `fn`.
|
||||
- Loop: `begin(now, stop_requested)` → on `attempt` call `fn`; `fn` may return `std::expected<T,E>` or
|
||||
`Coro::Task<std::expected<T,E>>` (co_await it). Success → return `T` (also when stop was requested
|
||||
during the attempt). Failure → `next(now, classify(error), stop_requested)`.
|
||||
- On `wait_until(at)`: `co_await timers.sleep_until(at, OperationOptions{options.stop, options.deadline})`.
|
||||
Then ALWAYS call `resume(now, options.stop.stop_requested())` — it re-checks stop itself, which covers
|
||||
the TimerQueue choice where a late stop yields `{}`. Sleep result mapping: `{}` → resume;
|
||||
`cancelled` → stop with `stop_requested`; `timeout` → stop with `deadline_exceeded`; `stopped` (queue
|
||||
closed) → stop with `stop_requested` (documented: queue closure aborts the retry; no further attempt);
|
||||
`overloaded` → stop with `stop_requested` and document (no silent busy retry).
|
||||
- Never sleep with the host clock; never spin; no attempt after any stop decision; `last_error` holds
|
||||
the most recent `E` (empty iff no attempt ran).
|
||||
- Default URBG seeded via `Void::Retry::detail::seeded_engine<URBG>()`.
|
||||
|
||||
## 7. Interfaces and data contracts
|
||||
```cpp
|
||||
namespace Void::Async {
|
||||
template <class F, class Classify = Void::Retry::RetryEveryError, class URBG = std::mt19937_64>
|
||||
requires std::invocable<F&>
|
||||
[[nodiscard]] auto retry_async(Void::Retry::RetrySpec spec, F fn, TimerQueue& timers,
|
||||
OperationOptions options = {}, Classify classify = {},
|
||||
URBG urbg = Void::Retry::detail::seeded_engine<URBG>())
|
||||
-> Coro::Task<std::expected<T, Void::Retry::RetryError<E>>>; // T,E deduced from fn's (awaited) result
|
||||
}
|
||||
```
|
||||
The coroutine owns `fn`, `classify`, `urbg` and `spec` by value. `timers` (and its executor) must outlive
|
||||
the returned task (document).
|
||||
|
||||
## 8. Dependencies and integration
|
||||
Upstream: A1 (`26edf65`), B1 (TimerQueue). Downstream: none in this wave beyond conformance. Root
|
||||
integrates and commits.
|
||||
|
||||
## 9. Edge cases security and performance
|
||||
Stop before first attempt; stop during `fn` (success preserved, no retry); stop during backoff; queue
|
||||
closed during backoff; deadline between attempts; zero attempts; move-only `T`/`E`/`F`; Task-returning
|
||||
`fn` that throws (exception propagates out of the retry task — document); manual clock far-future start.
|
||||
|
||||
## 10. Acceptance criteria
|
||||
1. `AsyncRetry.cpp`: `async_retry_manual_clock_attempts_only_after_advance_and_poll`,
|
||||
`async_retry_total_deadline_expires_once`, `async_retry_stop_during_backoff_no_further_attempt`,
|
||||
`async_retry_success_after_stop_preserved`, `async_retry_zero_attempts_no_call`,
|
||||
`async_retry_task_returning_callable`, `async_retry_queue_closed_during_backoff_stops`,
|
||||
`async_retry_late_stop_after_timer_fired_no_further_attempt`, `async_retry_move_only_value` — all pass.
|
||||
2. `DeadlineDomains.cpp`: `deadline_domain_blocking_retry_manual_clock` (`retry_blocking` with
|
||||
`now = manual.now`, a sleep callable that advances the ManualClock) passes; existing 2 tests pass.
|
||||
3. Existing `TimerQueue`, `RetryState`, `RetryBlocking`, `OperationScope`, `Executor`, `Coro` pass.
|
||||
4. TSan 0 races and ASan+UBSan 0 errors on `AsyncRetry|DeadlineDomains|TimerQueue`.
|
||||
5. `-Werror` syntax check of the new/edited test files and `Async/Retry.hpp` clean.
|
||||
|
||||
## 11. Verification commands and evidence
|
||||
Cwd = worktree root; `dev` with the sandbox disabled. Confirm the new suite appears in the output.
|
||||
```sh
|
||||
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-time3b -G Ninja -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_WARNINGS_AS_ERRORS=ON && cmake --build /tmp/void-w11-time3b --parallel 8 && /tmp/void-w11-time3b/tests/VoidTests --filter "^(AsyncRetry|DeadlineDomains|TimerQueue|RetryState|RetryBlocking|OperationScope|Executor|Coro)\." && ctest --test-dir /tmp/void-w11-time3b --output-on-failure --timeout 60'
|
||||
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-time3b-tsan -G Ninja -DCMAKE_BUILD_TYPE=Debug -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_ENABLE_TSAN=ON && cmake --build /tmp/void-w11-time3b-tsan --parallel 8 && /tmp/void-w11-time3b-tsan/tests/VoidTests --filter "^(AsyncRetry|DeadlineDomains|TimerQueue)\."'
|
||||
dev cpp-gcc -c bash -lc 'cmake -S . -B /tmp/void-w11-time3b-asan -G Ninja -DCMAKE_BUILD_TYPE=Debug -DVOID_ENABLED_MODULES="Async;Testing" -DVOID_ENABLE_ASAN=ON -DVOID_ENABLE_UBSAN=ON && cmake --build /tmp/void-w11-time3b-asan --parallel 8 && /tmp/void-w11-time3b-asan/tests/VoidTests --filter "^(AsyncRetry|DeadlineDomains|TimerQueue)\."'
|
||||
dev cpp-gcc -c bash -lc 'for f in Async/AsyncRetry Async/DeadlineDomains; do g++ -std=c++26 -freflection -fsyntax-only -Iinclude -Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers tests/standalone/$f.cpp || exit 1; done'
|
||||
```
|
||||
|
||||
## 12. Constraints and stop conditions
|
||||
No edits outside write scope; no weakened assertions. Stop and report BLOCKED if the TimerQueue or
|
||||
RetryState contract is insufficient (needs a forbidden edit), or two repair attempts at one check fail.
|
||||
|
||||
## 13. Authorization and decisions
|
||||
Root decisions D-034, D-038, D-040, D-042 under user decisions D-027/D-029/D-031. Listed files only;
|
||||
no commits, pushes or other side effects.
|
||||
|
||||
## 14. Return format
|
||||
Task ID; DONE/BLOCKED/PARTIAL; summary; files changed; decisions/deviations; evidence per acceptance
|
||||
criterion; commands with cwd/results; checks not run; residual risks; worktree path. Do not spawn children.
|
||||
Reference in new issue
Block a user