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
//! # phi-cap
//!
//! Capability vocabulary for the phi family: **one declaration language, one
//! decision vocabulary.**
//!
//! Two layers, one refinement point:
//!
//! ```text
//! CapabilitySpec (scoped declaration) --class_of--> Capability (coarse decision)
//! fs:read{paths} read_fs
//! net:http{hosts} net
//! process:spawn{programs} process
//! device:input{targets} device
//! device:capture{targets} device
//! ```
//!
//! * Declaration layer — what a plugin manifest or capability pack *writes*.
//! Scopes are mandatory; undeclared = not granted (fail-closed).
//! * Decision layer — what `Policy` *matches on*. Coarse action-surface
//! classes; never data semantics (a remote DB query is `net`, the same
//! query on a local file is `read_fs`).
//!
//! The only translation is [`class_of`]. New dimensions extend
//! [`CapabilitySpec`] variants — never a third enum (iron rule 2).
//!
//! Zero hard dependencies; enable `serde` for wire formats (plugin
//! manifests). Wire tags keep the dotted `face:scope` names
//! (`"fs:read"`, `"net:http"`, …).
//!
//! O7 cross-class rule: a method carrying several capabilities resolves to
//! the **highest-risk** class (`device > process > net > write_fs > read_fs
//! > pure`) — see [`class_of_all`].
pub use Capability;
pub use ;
pub use ;