Scoring Math

This file is the entry point for reading the scoring code.

A score is the claim's current standing after the entered claims are applied.

A score of 1 means the claim has not been reduced. It does not mean the claim is proven. The system does not subtract points for information that has not been entered.

New information changes the score only when it is added as a claim and connected into the graph.

Core rules

Deferred math issue

Suggested Reading path

  1. scoringAxioms.ts
  2. calculateScoresFromDebateCore.ts - DebateCore-first scoring entrypoint
  3. resolveCyclesFromDebateCore.ts - exact variant enumeration, audit data, and aggregate values
  4. buildScoreGraphFromDebateCore.ts - path-safe acyclic occurrence graph construction
  5. calculateScores.ts - strict acyclic scoring pass
  6. calculateChildImpact.ts - one child claim's effect on its parent
  7. calculateClaimScore.ts - one parent score from child impacts
  8. calculateScoreValue.ts - weighted value kernel
  9. calculateRelevance.ts - relevance multiplier
  10. calculateSourcesScales.ts - acyclic source-side scale kernel
  11. claimChildrenIdsByParentId.ts - parent-to-children lookup
  12. sortClaimsLeavesToRoot.ts - acyclic evaluation order