CharterAgreementProtocol.Facts (Charter Agreement Protocol v0.2.1)

Copy Markdown View Source

Shared constructor for CAP's redacted, non-authorizing facts records.

Summary

Functions

Build one known facts struct, forcing the twelve-atom floor and unioning additions.

The fixed host-owned floor, exposed for architecture and property gates.

Functions

build(module, attrs, additions \\ [])

@spec build(module(), map() | keyword(), [atom()]) ::
  {:ok, struct()} | {:error, CharterAgreementProtocol.Error.t()}

Build one known facts struct, forcing the twelve-atom floor and unioning additions.

not_verified_floor()

@spec not_verified_floor() :: [atom()]

The fixed host-owned floor, exposed for architecture and property gates.