Skip to content

RFC: Probabilistic Verifier (Score Network) #1

Open

Description

@NickAltstein

Summary

Replace the current syntactic verifier (:exists, :exit_zero) with a probabilistic score-network verifier that predicts whether a step output is "correct" based on historical traces.

Motivation

Current verification is binary and deterministic — it checks whether a file exists or a command exits zero. It cannot detect semantic drift, unexpected output distributions, or anomalous behavior. A score-network trained on historical runs would catch these.

Analogy (from diffusion models)

In DDPMs, the score network predicts the noise added to data. Here, the score network predicts whether a step's output distribution matches expected behavior given the input and context.

Proposed API

VERIFY:
  score_network:
    model: "~/.infini/models/verifier-v1.pt"
    threshold: 0.85
  syntactic:
    - "auth.py:exists"

Open questions

  1. Should the score network be a separate model or integrated into the Loopfile?
  2. How do we bootstrap training data from early runs?
  3. What's the minimum viable implementation (3-5 days)?

Related

  • Issue #XXX — Correlation-aware trace diff
  • LAUNCH.md — current state

Activity

  1. added
    enhancement
    on Jun 29, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions