Skip to content

Scoring reform: measurement tiers (families, snapshot percentiles, count relations) — additive, legacy risk_* frozen #2994

Closed

Description

@squid-protocol

The reform

Successor to #2991. The rename (#2993, merged) made the claims honest; this makes the arithmetic honest. The formula audit on #2991 established: 11 of the 13 vectors are density formulas (the empirically convicted shape — #2984, #2979), squashed through sigmoids carrying ~40 uncalibrated tuned constants (thresholds, slopes, breach floors, path multipliers) that assert a 0–100 calibration never validated against anything.

The measurement-tier model (additive; legacy frozen byte-identically):

tier content transform constants
0 raw signal counts (the validated layer; existing struct_/state_/arch_/def_ columns) none — canonical 0
1 SURFACE_FAMILIES — declarative {family: [signals]} map, ~22 families over the whole signal space; per-file value = sum of member counts none 0
2 snapshot percentiles — the honest 0–100: "87" means 87th percentile of this surface in this repo, true by construction (Hazen average-rank; all-zero series → 0) rank 0
3 relations — count÷count ratios with mechanism stories: guard_balance_ratio = guards/(danger+1), alloc_cleanup_pairing = cleanup/(memory+1) (the X-H1 feature) ratio 0

Sigmoid-87 asserts a threshold/saturation curve nobody calibrated; percentile-87 is a rank statement that cannot be wrong. Families are config entries, not equations — extensible past the historical 13. Count÷LOC density is retired from measurement.

Compatibility bargain (same as #2993): the risk_* columns keep emitting byte-identical values from the frozen legacy formulas — golden masters, bless baselines, temporal-crucible longitudinal DBs, and supply_chain_firewall's 50.0-cutoff all unaffected. New fam_*/pct_fam_*/pct_vec_*/rel_* columns are added (guarded ALTER-heal for existing DBs). Display surfaces (LLM brief) gain the tier view. pytest -m golden_crucible passing with masters UNTOUCHED is the byte-identity proof, enforced in the PR.

Supersedes #2984 and #2979: the convicted formulas are frozen-deprecated rather than reworked; all new measurement flows through the tiers.

Design + verified pipeline hook points (calculate_risk_vector :264 for Tier 1/3; a percentile pass immediately after _normalize_temporal_metrics in Phase 8 — ordering load-bearing because Pass 2 rewrites churn; record_keeper dynamic column generation + triple-edit) are in the approved implementation plan; evidence chain: #2991 (disposition + formula audit), epic #2982.

Activity

  1. added a commit that references this issue on Sep 13, 2026
  2. added
    enhancement
    metrics
    schema
    on Sep 13, 2026
  3. squid-protocol commented on Sep 13, 2026

    @squid-protocol
    OwnerAuthor

    Shipped in #2995 (merged) and released in v2.7.0: SURFACE_FAMILIES/SURFACE_FAMILY_EXEMPT with fam_*/pct_fam_* columns, snapshot percentiles, and count relations — additive, legacy risk_* frozen. Ongoing formula calibration (the score-contract track) continues under #2987. Closing as completed.

  4. added a commit that references this issue on Sep 14, 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

    enhancementmetricsschema

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions