Mechanism: _settled_receipt checked _terminals/_settling, then awaited the editor
update without claiming anything. A queued message.complete for the same admission
could run through _project while that coroutine was suspended and paint the reply a
second time. The receipt path also painted the whole final_response even when part
of it had already streamed as deltas on this connection.
Fix: one per-admission delivery claim. The receipt path adds the admission to
_settling (and a bounded _receipted set) before its first await, paints only the
exactly-once remainder via _final_remainder, and releases the claim afterwards; the
pump's message.complete yields to a claimed or receipted admission and discards its
partial stream state. The event-first path is unchanged (the receipt still yields).
Test: tests/acp_adapter/test_gateway_terminal_receipt_claim.py covers overlap,
already-streamed prefix, late completion after the receipt, and event-first (red on
r14-base: overlap paints twice; prefix paints 'Hello world' after 'Hello ').
Review: andrexibiza 4243963776