32runtime::Result<std::string, CapsuleError>
Result<T, E> — either holds a T or an E, never both.
Definition result.hpp:76
Archive and path budgets.
Definition archive.hpp:24
runtime::Result< std::string, CapsuleError > admit_member_path(std::string_view raw, const CapsuleLimits &limits=kCapsuleLimitsV1)
Verify a member path and return it unchanged.
constexpr CapsuleLimits kCapsuleLimitsV1
The frozen v1 budgets.
Definition limits.hpp:35
runtime::Result< void, CapsuleError > check_collisions(const std::vector< std::string > &normalized)
Detect a collision across a member set. Returns the first offending pair.
std::string collision_key(std::string_view normalized_path)
Fold a normalized path to the key used for collision detection: ASCII case-folded,...
Result<T, E> — success / failure union for fallible operations.
Admission failure vocabulary for authoring capsules.