From 32fd86e31b746c1db792c7cfb68b009c168b65ee Mon Sep 17 00:00:00 2001 From: "K. Isom" Date: Sun, 18 Oct 2026 12:00:31 -0700 Subject: [PATCH] =?UTF-8?q?docs:=20plan=20=E2=80=94=20Node::drain=5Fevents?= =?UTF-8?q?=20returns=20heapless::Vec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/superpowers/plans/2026-10-18-tines-fleet-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/superpowers/plans/2026-10-18-tines-fleet-deployment.md b/docs/superpowers/plans/2026-10-18-tines-fleet-deployment.md index fefdfa83..48993fd1 100644 --- a/docs/superpowers/plans/2026-10-18-tines-fleet-deployment.md +++ b/docs/superpowers/plans/2026-10-18-tines-fleet-deployment.md @@ -117,7 +117,7 @@ **Interfaces:** - Consumes: `Exchange::drain_events` (Task 3). -- Produces: `pub fn drain_events(&mut self) -> impl Iterator + '_` on `Node`, draining the exchange's queue. +- Produces: `pub fn drain_events(&mut self) -> heapless::Vec` on `Node`, draining the exchange's queue (returns the owned drained Vec — `Exchange::drain_events` returns by value, so an iterator contract is unsatisfiable). - [ ] **Step 1: Write the failing test** — `confidence_event_surfaces_on_node`: two nodes on a `PairTransport`; A `observe`s a broadcast, both poll until B stores it; assert `a_node.drain_events()` yields a `ConfidenceEvent` with `peer == b.id()` and the obs id (note: B receives from A, so A's node surfaces the event). If order is ambiguous, assert the set of events contains it. - [ ] **Step 2: Run test to verify it fails** — Expected: FAIL (`drain_events` missing).