Part 12 of 14 · 1 min read
Quick notes
- The call pauses by returning early, not by staying open.
input_requiredplus an echoedrequestStatereplaces the earlier era's open connection; the client resends the whole call with answers attached. - Everything before the last question runs again on every round. Side effects go after the final
ctx.need, never before it; an early log line or charge repeats on every retry, confirmed or not. requestStateis attacker-controlled, because it travels through the client. Seal it with an HMAC, bind it to the principal and a digest of the request, give it a short life, and record spent ones server-side.- Form mode is for data a client can render; URL mode is for what must never touch the client. A password or key goes through a page outside the client, which must verify the person completing it started it.
- A server's own question is a convenience, never the control. Real approval lives in a host-side gateway no server can skip; sampling and roots are being retired, so new servers should not use them.