1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! The authority gate in front of the bytecode-push door (ruling C3).
//!
//! AT THIS COMMIT THERE IS NO DOOR: no code path anywhere in frame-host
//! can activate staged bytes. This gate and its test land FIRST — the
//! red-first pin the tear ruled — so that when the door is built (behind
//! this gate, dev-wiring only), the production refusal is already law,
//! not a property the door happens to have.
//!
//! Production is not "dev minus a flag": a production host has no path
//! from a stage request to an activation, and the test pins that shape by
//! asserting the gate refuses BEFORE anything downstream could run.
use ;
/// Refuses staged activation on any host that was not started in dev
/// mode. Every handler of `DevRequest::StageAndActivate` MUST pass this
/// gate before touching anything — the refusal happens with zero node
/// operations performed.
///
/// # Errors
///
/// [`StageRefusal::NotADevNode`] for a production host.