Skip to content

07 Provenance and Confidence Model

Vicky Patel edited this page Nov 18, 2026 · 1 revision

07. Provenance & Confidence Model

The Mathematical and Epistemological Foundation of GitVerse Metrics


🧭 The Principle of Provenance

A core design tenet of GitVerse is Deterministic Integrity:

Never display a speculative number as fact. If a metric cannot be verified against concrete evidence, GitVerse displays the verified lower bound and clearly indicates its confidence tier.

To uphold this guarantee across different data sources (public HTML modals, public REST/GraphQL APIs, and authenticated private scans), GitVerse categorizes every metric into one of three confidence tiers:

graph LR
    Official[Official Verified] --> Calibrated[Calibrated Milestone]
    Calibrated --> Counted[Counted Activity]

    subgraph Confidence Gradient
        Official
        Calibrated
        Counted
    end
Loading

🏷️ The Three Provenance Tiers

1. official β€” Definitive GitHub Truth

  • Source: Directly extracted from GitHub’s native HTML achievement renders, official badge tier multipliers, or explicit milestone timestamps.
  • Confidence Level: 100% (Authoritative).
  • Example: If a user’s profile shows the Gold Pull Shark badge (x3), GitVerse marks Pull Shark Tier 3 as official. We know with mathematical certainty that GitHub has awarded this milestone.
  • UI Representation: Gold checkmark badge or OFFICIAL pill.

2. calibrated β€” Reverse-Engineered Milestone Calibration

  • Source: Deduced by cross-referencing milestone markers against known platform rules.
  • Confidence Level: 95%+ (High Certainty).
  • How it works: Suppose a user has unlocked Galaxy Brain Tier 2 (threshold = 8 accepted answers), and their recent achievement modal cites Milestone #12 in a public repository discussion. By scanning the surrounding discussion accepted answers, GitVerse can calibrate that the developer has 14 accepted answers, placing them exactly 2 answers away from Galaxy Brain Tier 3 (16 answers).
  • UI Representation: Cyan compass badge or CALIBRATED pill.

3. counted β€” Real-Time Event Aggregation

  • Source: Calculated in real-time by tallying individual event nodes from GitHub's REST or GraphQL APIs.
  • Confidence Level: 85–95% (Dynamic Lower Bound).
  • Why it differs from official: GitHub occasionally delays badge awarding due to asynchronous background queues, or excludes contributions from unindexed forks. If GitVerse queries GitHub's API and counts 17 merged pull requests, but GitHub's badge modal still shows Tier 1 (2 PRs) due to an ingestion lag on GitHub's side, GitVerse flags the count of 17 as counted while showing the badge status as pending synchronization.
  • UI Representation: Amber pulse indicator or COUNTED pill.

πŸ“Š Provenance Resolution Matrix

The following decision table illustrates how GitVerse's reconciliation engine resolves conflicts between different data sources:

Scraped Profile Badge Live API Count Engine Output Tier Assigned Provenance Displayed Count / Delta
Tier 2 (x2 = 16) 28 merged PRs Tier 2 (Silver) counted Current: 28 / Remaining: 100 to Tier 3
Tier 3 (x3 = 128) Unauthenticated / Obscured Tier 3 (Gold) official Verified Floor: 128+
None (Locked) 1 merged PR None (0/2) counted Current: 1 / Remaining: 1 to Tier 1
Tier 1 (x1 = 2) Milestone #4 matched Tier 1 (Bronze) calibrated Current: 4 / Remaining: 12 to Tier 2

πŸ”’ Consistency Invariant

GitVerse guarantees that: $$\text{Displayed Floor} \le \text{True Profile Count}$$

The platform will never over-report a user's progress. If uncertainty arises due to private fork status or deleted commits, GitVerse safely clamps the progress counter to the highest officially verified tier threshold.

Clone this wiki locally