RSI: promote lessons only on a frozen regression set with an integrity audit

Open
#594 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go

Research direction

Start by reading issue #103 and the existing lesson extraction, shadow, and inject implementations, including the ARTEX_RSI_LESSONS wiring. Then trace the relevant tests and entry points for lesson storage and promotion; the issue does not name their file paths. Done means frozen-set evaluation, scoped integrity audits, reject and revert behavior, and the specified unit and end-to-end coverage are implemented.

Written by the indexing model from the issue text.

Description

enhancement feature

Context

#103 added the evidence-gated lesson library (cue, action, evidence), the shadow/inject modes and ARTEX_RSI_LESSONS. Evidence today means a closed task supports a lesson. That is not the same as measuring that injecting the lesson improves a future run, and it cannot catch a lesson that helps one task while regressing another.

The missing half is the promotion gate: evaluate candidates on a frozen held-out set, keep only strict gains with zero regressions, and audit exactly what changed. The pattern comes from self-verified multi-generation loops that gate every update on a hidden set and keep an integrity record. Concept only: the referenced project (eelbaz/Recursive-Self-Improving-Loopers) ships no license, so no code is reused.

Proposal

  • Frozen regression set per lesson scope: a small versioned set of replayable checks with deterministic scoring, pinned by a content hash. Every candidate in a round is evaluated on the same set.
  • Candidate generation: the extractor produces N candidate lesson texts (or prompt fragments) for a scope. Each variant is evaluated by running the frozen set with that variant injected.
  • Promotion rule: a candidate becomes active only when it shows a strict gain over the current active version, has zero regressions, and has an evidence row recording the set version/hash, the per-check scores and the eval run.
  • Integrity audit: record the declared scope touched (prompt files, tool descriptions, config keys) with before/after hashes, and reject a promotion whose diff leaves the scope.
  • Rollback: keep the previous active version and expose a revert path that restores it on a later regression, keeping both audit records.
  • Mode wiring: shadow evaluates but never promotes; inject serves the active version.

Acceptance

  • A lesson cannot become active without an evidence record carrying the frozen-set version/hash and its scores.
  • A candidate with a lower score or any regression is rejected and stays in shadow.
  • The audit lists every prompt/tool/config file touched with its hash; an out-of-scope diff fails the promotion.
  • Revert restores the previous active lesson and keeps both audit records.
  • Unit tests cover accept, reject on regression, reject on out-of-scope diff and revert; one end-to-end run on a small frozen set.

Out of scope

Model weight training (FP-Solve/GSPO from the referenced project). The planner stagnation metric (repeated variants and poll loops seen on task 43) is a separate issue.

Dominant language
Go
Stars
18.7k
Forks
7k
Avg merge
10h 57m
Merged PRs (30d)
494

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BaaRai/ARTEX

All issues in BaaRai/ARTEX

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.