Keeps this page in sync as the body changes. Pause it any time for a quieter view.
Path /specs/normalize-github-commit-cost-estimation
Last refresh never
Normalize GitHub Commit Cost Estimation
inventory_source local | spec_api /api/spec-registry/normalize-github-commit-cost-estimation | registry_updated 2026-04-09T03:10:08.979830Z
potential_value 0.00 | actual_value 1.00 | value_gap 0.00
estimated_cost 0.00 | actual_cost 1.00 | cost_gap 1.00
estimated_roi 0.00 | actual_roi 1.00
Missing contributor linkage. Submit a change request with contributor attribution.
Open process view for this spec
task_ids -
branches -
source_files specs/assets-api.md, specs/contributions-api.md, specs/contributor-onboarding-and-governed-change-flow.md, specs/distribution-engine.md, specs/normalize-github-commit-cost-estimation.md, specs/task-claim-tracking-and-roi-dedupe.md, specs/value-lineage-and-payout-attribution.md
evidence_refs -
Open implementation view for this spec
implementation_refs spec-registry:assets-api, spec-registry:contributions-api, spec-registry:contributor-onboarding-and-governed-change-flow, spec-registry:distribution-engine, spec-registry:normalize-github-commit-cost-estimation, spec-registry:task-claim-tracking-and-roi-dedupe, spec-registry:value-lineage-and-payout-attribution
lineage_ids -
public_endpoints -
summary Fix inflated per-commit contribution cost values by replacing the high-multiplier estimator with a bounded normalized model and enforcing normalization server-side.
process_summary GitHub contribution ingestion computes normalized commit cost from metadata (`files_changed`, `lines_added`) with bounde; Submitted raw cost is retained in metadata for auditability while normalized cost is stored as the effective contributio; Auto-track GitHub workflow uses the same normalized estimator model to reduce inflated payload values.; Contributions web page displays effective normalized cost and highlights raw-to-normalized adjustment when present.; Tests cover estimator behavior and GitHub contribution route normalization.
pseudocode_summary -
implementation_summary api/app/services/contribution_cost_service.py (estimate_commit_cost(), estimate_commit_cost_with_provenance())