Skip to content

Golden master never exercises history-dependent risk (churn/ownership/instability/volatility) or spec alignment #4107

Closed

Description

@squid-protocol

Problem

Two families of risk equations are never exercised by the golden master, so a regression in them shows zero diff.

History-dependent metrics. The golden scan sets GITGALAXY_DISABLE_GIT_HISTORY=1 (deliberately, #2985/#2976, because the crucible's git history isn't part of the measured structure). As a result these fields are constant across all 3,003 crucible code files:

  • Authorship Centralization = 0.0
  • Ownership Entropy = 0.0
  • Raw Churn Frequency = 0.0
  • Instability Exposure = "50.0%"
  • Volatility Exposure = "0.0%"

Spec alignment. Specification Exposure = "0.0%" everywhere, because spec alignment is opt-in (#3111) and the golden scan doesn't enable it.

Proposal

A small, second golden fixture:

  • History: a tiny synthetic repo whose git history is generated deterministically (fixed authors, fixed GIT_AUTHOR_DATE/GIT_COMMITTER_DATE, scripted commits), built at test time from a committed script so it's reproducible on any runner. Snapshot the history-dependent fields and diff them like the main golden.
  • Spec alignment: the same fixture (or the crucible subset), scanned with spec alignment enabled.

Keep the main crucible golden history-ablated as it is.

Found during #4100 (PR #4105).

Activity

  1. added
    data-integrity
    testing
    on Oct 2, 2026
  2. added a commit that references this issue on Oct 2, 2026
  3. added
    scope:infra
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-integritypriority: mediumscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions