Repo C Ranking Engine Contracts
Use this skill for Ranking Engine logic and contract-safe updates.
Workflow
- •Update
repo_c/ranking_engine.pywith deterministic scoring changes. - •Validate report serialization against schema expectations.
- •Verify tests covering engine behavior and schema conformance.
Commands
Run from <PRIVATE_REPO_C> root:
bash
ruff check . pytest -q tests/test_ranking_engine.py tests/test_schema_validation.py
Schema alignment target:
- •
schemas/ranking_report.schema.json
Contract Notes
- •Keep
RankingEngineReport.to_dict()output stable. - •Preserve
apply_credit(report, base_credit)multiplier semantics. - •Additive schema evolution preferred over breaking changes.
Reference
- •
references/ranking-contracts.md