Each entry in this chapter is a question tree: a root question followed by follow-up questions that change one assumption at a time, each with a full answer. All trees share one hypothetical scenario. A sensor gateway receives a small decision program through a phone; the phone only transports bytes, and an authorized publisher may change the policy. The gateway runs the program inside a virtual machine §2.3, keeps serving other work, and must recover sensibly if power fails during a key change §5.29. That one story raises several different questions: who may send a program, what its instructions may do, when the requested effect is complete, and which authority survives a failure. A correct answer keeps these questions apart instead of letting a word such as “verified” or “encrypted” stand for all of them.
The trees apply mechanisms whose complete treatment is in the core chapters, for example the eBPF verifier §3.3, the overflow-safe range check §4.17, HMAC (hash-based message authentication code) §5.8 and authenticated encryption with associated data (AEAD) §5.16; the links lead to those entries. Each answer applies the mechanisms to a changed assumption or a failure and gives a complete general answer. All numbers, protocols, roles and devices in the trees are hypothetical teaching choices.
For the key-lifecycle questions, let denote the current active message-authentication key, a pending replacement, a recovery credential, and a generation number that the gateway’s policy accepts. These roles are choices for the exercise, not a prescribed deployment. A complete request has an unambiguous encoding of its device, operation, role, generation, transaction §8.7 identity and object bytes wherever those fields affect authority. Later questions deliberately remove one of these assumptions.