Skip to content

calibration: backfill the slop_gate_score corpus by deterministic replay over archived diffs #8277

Description

@JSONbored

Problem

The slop knob (#8224) entered the registry report-only, but its corpus only accumulates while slop gating fires live — weeks to reach the 50/12 sample floors. The slop scorer is deterministic and in-repo, and we hold hundreds of historical PR diffs with human-labeled outcomes (the #8130/#8170 raw-context corpus). The evidence can be manufactured honestly today.

Requirements

⚠️ Required pattern. Mirror the phase-1/phase-2 backfill discipline exactly (scripts/backfill-calibration-corpus*.ts): idempotent synthetic events with an explicit provenance marker, dry-run default, resume cursor, both stores (cloud D1 CLI path + --pg for the ORB Postgres), pacing if any GitHub fetches are needed (prefer none — replay archived diffs only).

  • Pure core: recompute slop risk over each archived diff via the shipped deterministic scorer; emit synthetic signal.rule_fired:slop_gate_score events (confidence = risk/100, provenance-tagged) paired with override labels from realized outcomes — the same counterfactual "mapping a" framing the close-confidence backfill used, documented as such in the event metadata.
  • Apply on both stores; verify the report-only proposals path and the knobs endpoint surface slop evidence afterward.
  • Post the resulting first proposals (or the honest absence) on this issue.

Deliverables

  • Backfill script (pure core + thin IO) with 100%-branch unit coverage on the core
  • Applied + verified on cloud D1 and the ORB Postgres
  • Evidence summary posted here; if proposals clear, file the slop flip-to-live issue citing them

Links & Resources

#8224 (the knob), #8157/#8170 (the backfill discipline), scripts/backfill-calibration-corpus-phase2-core.ts

Boundaries

Report-only evidence generation — no knob movement, no live-mode change.

maintainer-only — synthetic-evidence provenance is gate-adjacent.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions