Expand description
packages.lock parsing, digest verification, and capability mapping.
A foundation package is a verified, immutable record. oxicode reads the lockfile, verifies each package’s on-disk content against the recorded digest, and decides (a) whether the package is eligible to load and (b) which of oxicode’s existing policy gates must approve the declared requirements.
Structs§
- Locked
Package - A single resolved package record.
- Packages
File - Typed
packages.lock.
Enums§
- Capability
Decision - Result of mapping a package requirement to oxicode’s policy.
- Requirement
- Abstract requirement declared by a foundation package. oxicode
maps these to its existing policy in
map_requirement. - Trust
- Trust decision recorded in the lockfile. Anything other than
verifiedis rejected at load time.
Functions§
- map_
requirement - Map a parsed requirement to oxicode’s policy. The decision is
read-only — it does not mutate state. The caller is responsible
for translating
Allowinto the right port wiring. - read
- Read and verify
packages.lock. The on-disk content underpackages_rootis verified against the declared digests.