Skip to content

schema(eval): preregister the matched RIPR intervention study #4649

Closed

Description

@EffortlessSteven

Parent/controller: #3751
Sequence: IV01 — protocol and preregistration authority
Feeds: matched-condition runner, independent adjudication, and pilot report

One-PR objective

Define the complete, versioned preregistration for measuring the intervention value of RIPR-assisted repair against matched controls before any qualifying study outcomes are observed.

This slice owns study identity, task/attempt assignment, resource-budget rules, stopping rules, outcome cells, leakage controls, validation, and deterministic projections. It does not execute agents, adjudicate repairs, or publish a pilot result.

Protocol model

Add a repository-owned contract equivalent to:

ripr_intervention_study.v1
  study_id and protocol version
  exact repository / task-series identity
  eligibility and exclusion rules
  matched task strata
  condition = control | ripr_assisted
  assignment and counterbalancing law
  operator/model/tool/resource-budget identity
  allowed RIPR evidence surface
  contamination / prior-exposure controls
  attempt and retry policy
  primary and secondary outcome axes
  independent adjudication plan
  missing / invalid / instrument outcome rules
  stopping rule
  planned analysis and claim ceiling

Use current repository receipt/evidence primitives where available. Do not create a generic experiment platform.

Required study laws

  • Tasks are selected and matched before outcomes are known.
  • Assignment cannot be changed after attempt outcome or grader signal is visible.
  • Control and RIPR-assisted conditions receive equivalent model/operator/runtime/tool budgets except for the declared intervention.
  • The intervention surface is exact: available receipt(s), views, and commands are named rather than summarized as “use RIPR.”
  • Prior exposure, branch reuse, cross-condition artifacts, shared scratch state, and operator leakage have explicit prevention/disposition rules.
  • Retries, timeouts, cancellations, invalid attempts, and missing evidence remain in the denominator according to the preregistered policy.
  • The stopping rule cannot depend on a favorable interim estimate.
  • Public conclusions are bounded to the exact task series, model/operator profile, and intervention form.

Outcome axes

Preregister at least:

  • behavior alignment / defect removal;
  • discriminating proof quality;
  • change scope and unnecessary churn;
  • review findings and repair burden;
  • completion/terminal state;
  • time and bounded resource use;
  • maintainability/readability under independent review;
  • false-confidence or unsupported-claim events.

Do not combine these into one compensating score unless the protocol explicitly declares a non-authoritative summary.

Fixtures and falsifiers

Prove validation rejects:

  1. assignment after observing outcome;
  2. different model/tool/resource budget between conditions;
  3. a control attempt that can read RIPR outputs;
  4. a RIPR-assisted attempt receiving extra undeclared repository context;
  5. task replacement after a difficult failure;
  6. retry only in the weaker condition;
  7. dropping timeouts or invalid attempts from the denominator;
  8. stopping after a favorable interim result;
  9. grader identity or rubric absent;
  10. protocol mutation after the first attempt without a new study identity.

Acceptance

  • One strict study/preregistration schema and validator exists.
  • Task eligibility, matching, assignment, budgets, leakage controls, retries, stopping, and analysis are explicit.
  • Outcome axes remain non-compensating and independently observable.
  • Invalid and incomplete attempts have typed denominator-preserving treatment.
  • JSON and Markdown derive from one deterministic semantic object.
  • The matched-condition runner and adjudicator can consume the protocol without reinterpreting it.
  • No study attempt, repair implementation, grader execution, conclusion, release, or publication occurs.

Non-goals

No general A/B testing service, no product telemetry, no model ranking beyond the declared study, no retrospective protocol fitting, and no claim that a valid preregistration proves intervention value.

Activity

  1. added
    status/needs-work
    on Sep 29, 2026
  2. EffortlessSteven commented on Oct 3, 2026

    @EffortlessSteven
    MemberAuthor

    Delivery & Review Status — 2026-10-03

    PR #4875 owns the implementation at commit �7f42f518dfd4b0d27bd04ee05607af2f41969fd.

    Current State & Findings

    • Mechanical merge conflicts: Conflicts with main in registry/documentation files (.ripr/traceability.toml, CHANGELOG.md, docs/specs/README.md, policy/doc-artifacts.toml). Production code merges cleanly.
    • Substantive review findings to incorporate in repair:
      1. �alidate_successor (crates/ripr/src/domain/intervention_study.rs:416): The guard checks only self.protocol_lock.first_attempt_recorded. When transitioning from a frozen preregistration snapshot where irst_attempt_recorded = false to an executed state where successor.protocol_lock.first_attempt_recorded = true, protocol mutations under the same study_id would be accepted. Update guard to check (self.protocol_lock.first_attempt_recorded || successor.protocol_lock.first_attempt_recorded).
      2. Contract parity (domain/intervention_study.rs:568): �alidate_tasks_and_assignment requires at least two pairs ( irst_conditions.len() >= 2) to counterbalance condition order. The JSON schema had minItems: 1 on pairs, accepting single-pair studies that domain validation rejects. Update schema pairs to minItems: 2.

    Next Action

    Rebase PR #4875 onto main, resolve the registry conflicts, apply the two contract fixes, and verify with cargo test -p ripr domain::intervention_study.

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

    status/needs-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions