Expand description
Contract and codebase scoring.
Provides quantitative quality assessment for individual contracts
and codebases that consume them. Five dimensions per contract,
ten dimensions per codebase (PVScore), grades A-F.
Spec: docs/specifications/sub/scoring.md, docs/specifications/sub/pvscore.md
Modules§
- drift
- Drift detection — detect stale contracts via git timestamps.
Structs§
- Codebase
Score - Score for a codebase that consumes contracts.
- Contract
Score - Score for a single contract across 5 dimensions.
- Score
Probe - A single probe within a scoring dimension.
- Scoring
Gap - A gap identified by the scoring system.
- Scoring
Weights - Custom scoring weights for the 5 contract dimensions. Must sum to 1.0 (auto-normalized if not).
Enums§
- Grade
- Letter grade A-F.
Functions§
- pvscore_
10dim - Compute the 10-dimension
PVScoreas a geometric mean on a 0-100 scale. - score_
codebase - Score a codebase that consumes contracts via a binding registry.
- score_
codebase_ full - Score a codebase with all optional enrichment: pagerank + drift.
- score_
codebase_ with_ pagerank - Score a codebase with pagerank-weighted gap analysis.
- score_
contract - Score a single contract against its completeness and verification depth.
- score_
contract_ weighted - Score a contract with custom weights for each dimension.