phi-cap 0.1.1

Capability vocabulary for the phi family: one declaration language, one decision vocabulary
Documentation
  • Coverage
  • 100%
    50 out of 50 items documented0 out of 0 items with examples
  • Size
  • Source code size: 41.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 513.5 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • hibuka-labs/phi-cap
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hibuka-labs

Capability vocabulary for the phi family: one declaration language, one decision vocabulary.

Two layers, one refinement point:

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 means not granted (fail-closed).
  • Decision layer — what a 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.

Zero hard dependencies. Enable the serde feature for wire formats (plugin manifests).

[dependencies]
phi-cap = "0.1.0"

License

MIT OR Apache-2.0 — see LICENSE-MIT and LICENSE-APACHE.