Expand description
Composition matrix validation for the pproxy parity model.
Validates docs/parity/composition_matrix.toml — the machine-readable
composition graph that maps protocol×role×traffic_kind combinations to
capability IDs and evidence.
The composition matrix complements the flat capability manifest by preventing false parity claims: a protocol cannot be claimed as supported merely because one isolated implementation exists.
Structs§
- Chain
Composition - A chain composition (listener->upstream transition).
- Composition
Cell - A single composition cell mapping protocol×role×traffic_kind to capabilities.
- Composition
Constraint - A global constraint on the composition matrix.
- Composition
Matrix - The parsed composition matrix.
- Composition
Matrix Meta - Top-level matrix metadata.
- Composition
Validation Result - Collection of validation errors and warnings.
- Composition
Validator - Runtime composition validator backed by a loaded matrix.
Enums§
- Composition
Validation Error - A single validation error or warning.
Constants§
- ALLOWED_
CAVEAT_ CLASSES - Allowed caveat class values.
- ALLOWED_
CONSTRAINT_ TYPES - Allowed constraint types.
- ALLOWED_
EVIDENCE - Allowed evidence values (same as manifest).
- ALLOWED_
PROTOCOLS - Allowed protocol values in the composition matrix.
- ALLOWED_
ROLES - Allowed role values.
- ALLOWED_
TIERS - Allowed tier values (same as manifest).
- ALLOWED_
TRAFFIC_ KINDS - Allowed traffic kind values.
- PINNED_
SCHEMA_ VERSION - Pinned schema version.
Functions§
- count_
by_ tier - Count cells by tier.
- count_
chains_ by_ tier - Count chain compositions by tier.
- find_
composition_ matrix_ path - Find the composition matrix file path relative to the workspace root.
- query_
chain - Query whether a chain composition is supported.
- query_
composition - Query whether a specific composition is supported.
- supported_
protocols - Get all supported protocols for a given role and traffic kind.
- supported_
roles - Get all supported roles for a given protocol and traffic kind.
- validate_
composition_ matrix - Validate a composition matrix against the schema and manifest.
- validate_
composition_ matrix_ file - Parse and validate a composition matrix from a TOML file.