i2goSignals

goSignals

7. Track token redemption, not issuance

Date: 2026-05-31

Status

Accepted

Context

We are adding a management-plane view of issued tokens (IATs and stream tokens) so an administrator can list, introspect, and revoke them. The original request asked to show “the IP address each token was issued to.”

Taken literally, that means recording the remote address of the request that minted the token — the caller of GET /iat, or whoever registered a stream client. On reflection that signal is near-worthless:

The codebase already has the right raw material for the “where is it used” question on the stream side: a stream’s RemoteIP (StreamStateRecord) is refreshed every time the peer connects, and it is captured on the data plane at no extra cost. The gap was only on the IAT side, where “use” means a /register call — a cold path, cheap to instrument.

Decision

We track redemption, not issuance.

redemption_count is deliberately positioned as the data primitive a future max-uses / redeem-once policy would consume, and the redemption IP as the input a future IAT-to-IP-mask restriction would check. Neither policy is built today.

Consequences

Positive

Negative