Documentation
¶
Overview ¶
Byte-precise params_schema_digest backfill for capability data files.
The capability JSON files under vendor/product/v*.json carry a JSON Schema in each capability's params_schema field. To detect drift (someone editing the schema out of band), gen-backfill inserts a params_schema_digest right after every params_schema, leaving every other byte untouched.
Package register provides scheme registration and authorization generation for the varwof project.
Index ¶
- Variables
- func BackfillParamsSchemaDigests(data []byte) ([]byte, error)
- func Deduplicate(caps []string) []string
- func FilterByScheme(caps []string, schemeID string) []string
- func FormatCapability(schemeID, capID string) string
- func FormatSchemeID(vendor, product string) string
- func GenAuthzToFile(cfg GenAuthzConfig, outputPath string) error
- func GenDocs(def *SchemeDefinition) (string, error)
- func GenDocsToFile(def *SchemeDefinition, outputPath string) error
- func GetSignerCert(p7sPath string) (*x509.Certificate, error)
- func HasSignature(capPath string) bool
- func ListCapabilities(def *SchemeDefinition) []string
- func LoadAllSchemes(root string) (map[string]*SchemeDefinition, error)
- func LoadCertFile(path string) ([]*x509.Certificate, error)
- func LoadEmbedded() (map[string]*SchemeDefinition, error)
- func LoadFromBoth(diskDir string) (map[string]*SchemeDefinition, error)
- func LoadFromDir(root string) (map[string]*SchemeDefinition, error)
- func LoadFromFS(fsys fs.FS) (map[string]*SchemeDefinition, error)
- func LoadTrustRoots(path string) ([]*x509.Certificate, error)
- func MatchCapability(id, pattern string) bool
- func ParseCapability(s string) (schemeID, capID string, ok bool)
- func ParseSchemeID(schemeID string) (vendor, product string, ok bool)
- func SignCapability(certPath, keyPath, capPath, outputPath string) error
- func ValidateSchemeID(schemeID string) error
- func ValidateSchemeParams(scheme, capability string, raw json.RawMessage) error
- func VerifyCapabilityPKCS7(capPath string, trustRoots []*x509.Certificate) error
- func VerifyCapabilityPKCS7Cert(capPath string, trustRoots []*x509.Certificate) (*x509.Certificate, error)
- func WriteScheme(def *SchemeDefinition, path string) error
- type AuthzDocument
- type AuthzRoleDef
- type CapabilityClaim
- type CapabilityEntry
- type ClaimResult
- type GatewayNSDef
- type GenAuthzConfig
- type MinSetReport
- type ParameterDef
- type Registry
- func (r *Registry) CheckIntersection(setA, setB []string) (common []string)
- func (r *Registry) CheckMinimalCapabilitySet(claims []CapabilityClaim, grantedPatterns []string) *MinSetReport
- func (r *Registry) CheckSubset(declared, allowed []string) (denied []string)
- func (r *Registry) Get(schemeID string) (*SchemeDefinition, bool)
- func (r *Registry) Has(schemeID string) bool
- func (r *Registry) HasCapability(schemeID, capID string) bool
- func (r *Registry) Register(def *SchemeDefinition) error
- func (r *Registry) RoleGrantCovered(schemeID, grant string) bool
- func (r *Registry) SchemeIDs() []string
- func (r *Registry) Summary() string
- func (r *Registry) ValidateCapabilities(caps []string) *ValidationResult
- func (r *Registry) ValidateCapability(formatted string) (*SchemeDefinition, *CapabilityEntry, error)
- func (r *Registry) ValidateClaims(claims []CapabilityClaim) []ClaimResult
- func (r *Registry) ValidateParams(scheme, capability string, params map[string]any) error
- func (r *Registry) ValidateRoles(schemeID string) ([]string, error)
- type RoleDef
- type SchemeDefinition
- type ValidationError
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
var Version = "0.1.0"
Version is the package version, set via -ldflags -X github.com/varwof/register.Version=x.y.z.
Functions ¶
func BackfillParamsSchemaDigests ¶ added in v0.2.0
BackfillParamsSchemaDigests inserts a params_schema_digest field directly after each capability's params_schema field in a capability JSON document, preserving all other bytes exactly (key order, whitespace, omitempty zero-values).
The digest is SHA-256 (hex-encoded) of the canonical (compacted) JSON of the params_schema value, so any semantic change to the schema is detected as drift while whitespace-only edits are not.
A params_schema that already has a params_schema_digest declared immediately after it is verified for drift instead of modified: a stale digest returns an error. Documents without any params_schema are returned unchanged.
func Deduplicate ¶
Deduplicate removes duplicate capabilities from a list.
func FilterByScheme ¶
FilterByScheme returns only capabilities belonging to a specific scheme.
func FormatCapability ¶
FormatCapability formats a capability as "vendor/product:capability_id".
func FormatSchemeID ¶
FormatSchemeID formats vendor and product into "vendor/product".
func GenAuthzToFile ¶
func GenAuthzToFile(cfg GenAuthzConfig, outputPath string) error
GenAuthzToFile generates and writes the authz.json file.
func GenDocs ¶
func GenDocs(def *SchemeDefinition) (string, error)
GenDocs generates a markdown permission documentation from a capability.json scheme. The documentation targets both human readers and AI models: fully describing each capability's semantics, parameter constraints, wildcard rules, role and grants mappings, serving as the authoritative reference for AI to generate minimal privilege capability sets.
Output markdown structure:
- Product overview + capability catalog table
- Detailed capability semantics (summary/usage/when_not/examples/parameters/related)
- Wildcard and matching rules
- Role and grants mapping
- Least privilege principle guidelines
func GenDocsToFile ¶
func GenDocsToFile(def *SchemeDefinition, outputPath string) error
GenDocsToFile generates markdown permission documentation and writes it to a file.
func GetSignerCert ¶
func GetSignerCert(p7sPath string) (*x509.Certificate, error)
GetSignerCert extracts the signer certificate from a .p7s file.
func HasSignature ¶
HasSignature checks if a .p7s file exists for the given capability file.
func ListCapabilities ¶
func ListCapabilities(def *SchemeDefinition) []string
ListCapabilities returns all capability IDs for a scheme, sorted.
func LoadAllSchemes ¶
func LoadAllSchemes(root string) (map[string]*SchemeDefinition, error)
LoadAllSchemes loads all capability JSON files under a directory tree. Expected structure: root/vendor/product/v*.json
func LoadCertFile ¶
func LoadCertFile(path string) ([]*x509.Certificate, error)
LoadCertFile reads all certificates in a certificate chain from a PEM file.
func LoadEmbedded ¶
func LoadEmbedded() (map[string]*SchemeDefinition, error)
LoadEmbedded is removed: capability data now lives in the separate capability module and is loaded from a directory on disk. Use LoadFromDir or LoadFromBoth with a path into the capability data tree.
func LoadFromBoth ¶
func LoadFromBoth(diskDir string) (map[string]*SchemeDefinition, error)
LoadFromBoth requires a non-empty disk directory. Embedded schemes are gone; disk is the only source. An empty dir returns an error.
func LoadFromDir ¶
func LoadFromDir(root string) (map[string]*SchemeDefinition, error)
LoadFromDir loads all capability JSON files from a directory tree on disk. Expected structure: root/vendor/product/v*.json
func LoadFromFS ¶
func LoadFromFS(fsys fs.FS) (map[string]*SchemeDefinition, error)
LoadFromFS loads all capability JSON files from an embedded filesystem.
func LoadTrustRoots ¶
func LoadTrustRoots(path string) ([]*x509.Certificate, error)
LoadTrustRoots loads PEM certificates from a file or directory.
func MatchCapability ¶
MatchCapability reports whether a capability ID is covered by a grant pattern using the CLC-v1 §9.3 segment grammar (audit 2026-09-16, R17): an exact match, or a trailing `*` segment that spans one or more further segments. `**`, `?`, bare `*`, and mid-segment globs are not part of the grammar and never match — the old filepath.Match behavior blessed near-everything.
func ParseCapability ¶
ParseCapability parses "vendor/product:capability_id" into scheme and capID. capability_id may itself contain colons (e.g., "query:users").
func ParseSchemeID ¶
ParseSchemeID parses "vendor/product" into vendor and product.
func SignCapability ¶
SignCapability signs a capability JSON file using PKCS#7 detached signature. certPath: PEM certificate chain (signer cert + intermediates) keyPath: PEM private key capPath: path to capability.json outputPath: path to write .p7s file (defaults to capPath + ".p7s")
func ValidateSchemeID ¶
ValidateSchemeID checks if scheme_id follows the naming convention. Public: vendor/product (e.g., oracle/mysql, varwof/core) Private: x-vendor/product (e.g., x-acme/order)
func ValidateSchemeParams ¶ added in v0.2.0
func ValidateSchemeParams(scheme, capability string, raw json.RawMessage) error
ValidateSchemeParams validates a capability's parameters against the CONTRACT OF THE SCHEME that defines them. Scheme-specific structural rules live here, with the scheme, and are NOT re-implemented by consumers such as the rule execution engine (see ruleexec and docs/capability-language-layers.md).
Generic capability semantics (nulls, explicit empty bounds, subset rules) are defined once by CLC-v1 and validated via github.com/varwof/register/semantics.
func VerifyCapabilityPKCS7 ¶
func VerifyCapabilityPKCS7(capPath string, trustRoots []*x509.Certificate) error
VerifyCapabilityPKCS7 verifies a capability JSON against its .p7s signature. trustRoots: PEM root/intermediate certificates for chain verification.
func VerifyCapabilityPKCS7Cert ¶ added in v0.2.0
func VerifyCapabilityPKCS7Cert(capPath string, trustRoots []*x509.Certificate) (*x509.Certificate, error)
VerifyCapabilityPKCS7Cert verifies a capability JSON against its .p7s signature and returns the SIGNER certificate. Verification always requires at least one trust root: signing without roots is refused because the signer certificate is recovered from the blob itself and is therefore attacker-pickable. Callers that must bind the published content to the signer's own authority (e.g. ruleexec, which requires the rule capability to be covered by the signer's AIC grant) use this variant.
func WriteScheme ¶
func WriteScheme(def *SchemeDefinition, path string) error
WriteScheme serializes a scheme definition as JSON and writes it to a file (for gen-authz tests/rewrites).
Types ¶
type AuthzDocument ¶
type AuthzDocument struct {
Version string `json:"version"`
Roles map[string]AuthzRoleDef `json:"roles"`
OUMapping map[string]string `json:"ou_mapping"`
GatewayNamespaces map[string]GatewayNSDef `json:"gateway_namespaces,omitempty"`
CapabilityParameters map[string]map[string]any `json:"capability_parameters,omitempty"`
}
AuthzDocument is the complete authz.json document generated by gen-authz. The top-level structure is compatible with core/auth.Policy; capability_parameters is an extension field (core's encoding/json deserialization ignores unknown fields).
func GenAuthz ¶
func GenAuthz(cfg GenAuthzConfig) (*AuthzDocument, error)
GenAuthz generates an authz.json document from capability.json schemes.
Mapping rules:
- Roles from the primary scheme (first) become authz.json roles (grants preserved as-is)
- Each role's OUs are expanded into ou_mapping (OU → role name)
- Role names with namespace prefixes (e.g. gateway:admin) are aggregated into gateway_namespaces
- Capability parameter defaults from all schemes are aggregated into capability_parameters
type AuthzRoleDef ¶
type AuthzRoleDef struct {
DisplayName string `json:"display_name"`
Profiles []string `json:"profiles"`
Grants []string `json:"grants"`
Scope []string `json:"scope,omitempty"`
}
AuthzRoleDef is a role entry for generating authz.json (compatible with core Policy.RoleDef).
type CapabilityClaim ¶
type CapabilityClaim struct {
SchemeID string `json:"scheme_id"` // vendor/product
Capability string `json:"capability"` // capability_id (may contain wildcards)
Parameters map[string]any `json:"parameters,omitempty"`
Rationale string `json:"rationale,omitempty"` // Authorization rationale from AI
SchemeVersion string `json:"scheme_version,omitempty"` // pinned scheme version (P1-4)
}
CapabilityClaim is a single AI-generated capability claim (pending validation/minimal privilege detection).
func ParseCapabilityClaims ¶
func ParseCapabilityClaims(data []byte) ([]CapabilityClaim, error)
ParseCapabilityClaims parses a list of capability claims from JSON data. Expected structure: [{"scheme_id":"varwof/core-v1","capability":"cert:issue",...}]
type CapabilityEntry ¶
type CapabilityEntry struct {
ID string `json:"id"`
Description string `json:"description"`
Parameters map[string]ParameterDef `json:"parameters,omitempty"`
// ParamsSchema carries a JSON Schema document for structured,
// nested capability parameters (e.g. database tables/columns/
// row_filter). Additive: schemes using only the flat ParameterDef
// model leave it unset.
ParamsSchema json.RawMessage `json:"params_schema,omitempty"`
// AI-friendly semantic description fields (used by gen-docs to generate markdown permission docs).
// These fields help LLMs understand the exact purpose of each capability,
// enabling them to generate minimal privilege capability sets per task.
Summary string `json:"summary,omitempty"` // One-line summary (defaults to Description)
Usage string `json:"usage,omitempty"` // When this capability is needed (typical scenarios)
WhenNot string `json:"when_not,omitempty"` // When this capability should NOT be granted (avoid over-provisioning)
Examples []string `json:"examples,omitempty"` // Typical usage examples
Related []string `json:"related,omitempty"` // Related capability IDs (collaboration/alternative relationships)
}
CapabilityEntry defines a single capability within a scheme.
type ClaimResult ¶
type ClaimResult struct {
Claim CapabilityClaim
Valid bool
Error string // Reason when Valid=false
}
ClaimResult is the validation result for a single claim.
type GatewayNSDef ¶
type GatewayNSDef struct {
DisplayName string `json:"display_name"`
Prefix string `json:"prefix"`
Grants []string `json:"grants"`
}
GatewayNSDef is a gateway namespace entry for generating authz.json.
type GenAuthzConfig ¶
type GenAuthzConfig struct {
// SchemePaths is the list of capability.json file paths to merge.
// The primary scheme (providing roles) must be the first; other schemes only contribute capability catalogs.
SchemePaths []string
// When VerifySignature is true, enforce signature verification if .p7s exists; fail on error.
// Files without .p7s only error when VerifyRequired is true.
VerifySignature bool
// When VerifyRequired is true, capability files missing .p7s signature fail immediately.
VerifyRequired bool
// TrustRootsPEM is the trust root certificates for signature verification (PEM file paths).
TrustRootsPEM []string
// Version is the generated authz.json version field (default "v2").
Version string
// NamespacePrefix is appended to role names to generate gateway namespace prefix role grants,
// e.g. "gateway" → gateway_namespaces["gateway:"].
// By default, extracts the "gateway:xxx" prefix from all Roles in the primary scheme.
NamespacePrefix string
}
GenAuthzConfig is the input configuration for GenAuthz.
type MinSetReport ¶
type MinSetReport struct {
// ValidClaims are valid and non-redundant claims.
ValidClaims []CapabilityClaim
// InvalidClaims are invalid claims (illegal capability/illegal parameters/unknown scheme).
InvalidClaims []ClaimResult
// RedundantClaims are claims covered by a wildcard or duplicated (recommended to remove).
RedundantClaims []ClaimResult
// MissingGranted are capabilities that are claimed but not covered by any role grant
// (the AI-generated set references a capability not authorized for this identity).
MissingGranted []string
// AllowedPatterns are the grants actually held by the identity (wildcards expanded).
AllowedPatterns []string
// IsMinimal is true when the set is already minimal privilege.
IsMinimal bool
}
MinSetReport is the complete report for minimal privilege validation.
type ParameterDef ¶
type ParameterDef struct {
Type string `json:"type"`
Description string `json:"description,omitempty"`
Default interface{} `json:"default,omitempty"`
Min interface{} `json:"min,omitempty"`
Max interface{} `json:"max,omitempty"`
Enum []string `json:"enum,omitempty"`
Required bool `json:"required,omitempty"`
}
ParameterDef defines a parameter for a capability.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds all loaded scheme definitions.
func NewRegistryFromBoth ¶
NewRegistryFromBoth requires a non-empty disk directory and creates a registry pre-loaded from it.
func NewRegistryFromDisk ¶
NewRegistryFromDisk creates a registry pre-loaded with schemes from a directory into the capability data tree.
func NewRegistryWithEmbedded ¶
NewRegistryWithEmbedded is removed. Use NewRegistryFromDisk instead.
func (*Registry) CheckIntersection ¶
CheckIntersection returns capabilities present in both sets.
func (*Registry) CheckMinimalCapabilitySet ¶
func (r *Registry) CheckMinimalCapabilitySet(claims []CapabilityClaim, grantedPatterns []string) *MinSetReport
CheckMinimalCapabilitySet performs minimal privilege validation:
- Validate each claim's legality (scheme/capability/parameters)
- Detect redundancy: covered by another wildcard claim, or completely duplicated
- Detect over-privilege: claimed capabilities not within the identity's granted authorization scope
- Determine whether minimal privilege has been achieved
grantedPatterns are the grants actually held by the identity (e.g. role grants, may contain wildcards). Pass nil to skip over-privilege checking (only check legality and redundancy).
func (*Registry) CheckSubset ¶
CheckSubset checks if declared capabilities are a subset of allowed capabilities. Returns denied capabilities that are not in the allowed set.
func (*Registry) Get ¶
func (r *Registry) Get(schemeID string) (*SchemeDefinition, bool)
Get returns a scheme definition by scheme_id.
func (*Registry) HasCapability ¶
HasCapability checks if a specific capability is registered.
func (*Registry) Register ¶
func (r *Registry) Register(def *SchemeDefinition) error
Register adds a scheme definition. It fails if scheme_id is already registered — a silently overwritten duplicate masks a data problem (audit 2026-09-16, R18).
func (*Registry) RoleGrantCovered ¶
RoleGrantCovered checks if a single grant is covered by the scheme's capabilities (wildcard expanded).
func (*Registry) ValidateCapabilities ¶
func (r *Registry) ValidateCapabilities(caps []string) *ValidationResult
ValidateCapabilities validates a list of "scheme:cap_id" strings against the registry.
func (*Registry) ValidateCapability ¶
func (r *Registry) ValidateCapability(formatted string) (*SchemeDefinition, *CapabilityEntry, error)
ValidateCapability checks if "scheme:cap_id" is valid and returns the entry.
func (*Registry) ValidateClaims ¶
func (r *Registry) ValidateClaims(claims []CapabilityClaim) []ClaimResult
ValidateClaims validates capability claims: scheme exists, capability is legal (supports wildcards). Returns the result for each claim. Does not include minimal privilege detection.
func (*Registry) ValidateParams ¶ added in v0.2.0
ValidateParams validates capability parameters against the scheme that defines them. It is the ONE parameter contract, used by both paths:
- the claims path (ValidateClaims -> signing an AIC), and
- the rule path (ruleexec.Rule.Validate -> publishing/loading a rule).
A capability that declares `params_schema` is validated against that data-driven schema (which is where `required` lives); otherwise the flat `parameters` contract is applied. Scheme-specific structural rules that the schema cannot express are still checked by ValidateSchemeParams.
func (*Registry) ValidateRoles ¶
ValidateRoles validates that all role grants in a scheme are covered by capabilities. Returns uncovered grants (wildcards expanded against capabilities for validation). Use case: ensure role grants are all legal capabilities before gen-authz generates authz.json.
type RoleDef ¶
type RoleDef struct {
DisplayName string `json:"display_name,omitempty"`
Profiles []string `json:"profiles,omitempty"`
Grants []string `json:"grants"`
// OUs is the list of certificate OrganizationalUnits this role can be bound to.
// When generating authz.json, written into ou_mapping; if left empty, no OU mapping entry is generated.
OUs []string `json:"ous,omitempty"`
}
RoleDef defines a role within a product (used to generate authz.json). grants is a list of capability_id values (e.g. "ca:list", "cert:*"), supports wildcards (* / a:b:*); during expansion validation, all must fall within Capabilities.
type SchemeDefinition ¶
type SchemeDefinition struct {
SchemeID string `json:"scheme_id"`
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Vendor string `json:"vendor"`
Product string `json:"product"`
Author string `json:"author,omitempty"`
License string `json:"license,omitempty"`
Homepage string `json:"homepage,omitempty"`
Capabilities []CapabilityEntry `json:"capabilities"`
// Roles defines roles within this product (grants reference capability_id from this scheme).
// Used by gen-authz tool when generating authz.json; can be empty (pure capability catalog products).
Roles map[string]RoleDef `json:"roles,omitempty"`
}
SchemeDefinition defines all capabilities for a product.
func LoadScheme ¶
func LoadScheme(path string) (*SchemeDefinition, error)
LoadScheme reads a capability JSON file and returns the definition.
func (*SchemeDefinition) ValidateSchemeRoles ¶
func (def *SchemeDefinition) ValidateSchemeRoles() ([]error, []string)
ValidateSchemeRoles validates the consistency of role definitions within a scheme:
- Role names are non-empty
- Role grants are non-empty
- Non-wildcard grants must be covered by capabilities (strict error)
- Wildcard grants not covered locally are treated as cross-scheme namespace authorization (e.g. core role referencing gateway:*), returning a warning
Returns (errors, warnings).
type ValidationError ¶
ValidationError describes a single validation failure.
func (ValidationError) Error ¶
func (e ValidationError) Error() string
type ValidationResult ¶
type ValidationResult struct {
Valid bool
Errors []ValidationError
Warnings []string
Checked int
}
ValidationResult holds the outcome of validating a set of capabilities.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
authorize-chain-vectors-run
command
Command authorize-chain-vectors-run reads the CLC-D §13.11 AuthorizeWithChain vectors (rev CLC-1.13) and runs them against the semantics package.
|
Command authorize-chain-vectors-run reads the CLC-D §13.11 AuthorizeWithChain vectors (rev CLC-1.13) and runs them against the semantics package. |
|
constraint-union-vectors-run
command
Command constraint-union-vectors-run reads the CLC-v1 §7.1 ConstraintUnion vectors (rev CLC-1.12) and runs them against the semantics package.
|
Command constraint-union-vectors-run reads the CLC-v1 §7.1 ConstraintUnion vectors (rev CLC-1.12) and runs them against the semantics package. |
|
contains-crosswalk-run
command
Command contains-crosswalk-run runs the CLC-D containment cross-walk corpus: a native representation from another ecosystem is mapped into a CLC grant by a pinned profile on each side, and semantics.Contains decides the (parent, child) pair.
|
Command contains-crosswalk-run runs the CLC-D containment cross-walk corpus: a native representation from another ecosystem is mapped into a CLC grant by a pinned profile on each side, and semantics.Contains decides the (parent, child) pair. |
|
contains-vectors-run
command
Command contains-vectors-run reads CLC-D containment vectors (draft-wei-clc-ext-00 §7) and runs them against semantics.Contains.
|
Command contains-vectors-run reads CLC-D containment vectors (draft-wei-clc-ext-00 §7) and runs them against semantics.Contains. |
|
crosswalk-vectors-run
command
Command crosswalk-vectors-run runs the cross-walk corpus: native capability representations from other ecosystems mapped into CLC grants by a pinned profile, decided by the same CLC core.
|
Command crosswalk-vectors-run runs the cross-walk corpus: native capability representations from other ecosystems mapped into CLC grants by a pinned profile, decided by the same CLC core. |
|
evidence-vectors-run
command
Command evidence-vectors-run runs the CLC-E evidence-side conformance corpus (capability/data/_vectors/clc-v1/evidence-vectors.json) and exits non-zero on any mismatch, mirroring cmd/vectors-run for the authorization side.
|
Command evidence-vectors-run runs the CLC-E evidence-side conformance corpus (capability/data/_vectors/clc-v1/evidence-vectors.json) and exits non-zero on any mismatch, mirroring cmd/vectors-run for the authorization side. |
|
gen-authz
command
|
|
|
gen-backfill
command
gen-backfill fills params_schema_digest into capability data files.
|
gen-backfill fills params_schema_digest into capability data files. |
|
gen-capability
command
|
|
|
gen-docs
command
|
|
|
gen-rule
command
Command gen-rule turns a validated capability claims file (the minimal set produced by gen-capability and consumed by `aic issue --from-claims`) into rule files for the execution layer.
|
Command gen-rule turns a validated capability claims file (the minimal set produced by gen-capability and consumed by `aic issue --from-claims`) into rule files for the execution layer. |
|
param-bounds-meet-vectors-run
command
Command param-bounds-meet-vectors-run reads the CLC-v1 §6.6 BoundMeet vectors (rev CLC-1.14) and runs them against the semantics package.
|
Command param-bounds-meet-vectors-run reads the CLC-v1 §6.6 BoundMeet vectors (rev CLC-1.14) and runs them against the semantics package. |
|
param-bounds-vectors-run
command
Command param-bounds-vectors-run reads the CLC-v1 §6.5 extended parameter bound vectors (rev CLC-1.10) and runs them against the semantics package.
|
Command param-bounds-vectors-run reads the CLC-v1 §6.5 extended parameter bound vectors (rev CLC-1.10) and runs them against the semantics package. |
|
record
command
Command record turns a CLC decision into a Decision Record, and checks one back.
|
Command record turns a CLC decision into a Decision Record, and checks one back. |
|
resolve-vectors-run
command
Command resolve-vectors-run reads the CLC-v1 §8.5 Resolve vectors (rev CLC-1.11) and runs them against the semantics package.
|
Command resolve-vectors-run reads the CLC-v1 §8.5 Resolve vectors (rev CLC-1.11) and runs them against the semantics package. |
|
sign
command
|
|
|
size-report
command
Command size-report prints the byte budget of the evidence artifacts this module produces, so a change to a record, envelope or challenge shape can be compared against the numbers recorded in the wire-size budget note that accompanies the language revision (capability `docs/`), so the figures stay reviewable next to the specification they belong to.
|
Command size-report prints the byte budget of the evidence artifacts this module produces, so a change to a record, envelope or challenge shape can be compared against the numbers recorded in the wire-size budget note that accompanies the language revision (capability `docs/`), so the figures stay reviewable next to the specification they belong to. |
|
vectors-run
command
Command vectors-run reads CLC-v1 test vectors and runs them against the semantics package.
|
Command vectors-run reads CLC-v1 test vectors and runs them against the semantics package. |
|
verify
command
|
|
|
rule-exec
command
|
|
|
internal
|
|
|
crosswalkvectors
反向映射:CLC 裁决 → AEB crossing 所需的成员("我们这边能供什么")。
|
反向映射:CLC 裁决 → AEB crossing 所需的成员("我们这边能供什么")。 |
|
evidencevectors
Package evidencevectors loads and runs the CLC-E evidence-side conformance corpus.
|
Package evidencevectors loads and runs the CLC-E evidence-side conformance corpus. |
|
Package semantics implements the CLC-v1 capability language core authorization semantics.
|
Package semantics implements the CLC-v1 capability language core authorization semantics. |
|
fuzz_runner
command
|