RSI: promote lessons only on a frozen regression set with an integrity audit
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
- Domain
- ai-infra-agents
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
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:
shadowevaluates but never promotes;injectserves 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BaaRai/ARTEX
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
BaaRai/ARTEX#981 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BaaRai/ARTEX#980 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
BaaRai/ARTEX#812 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
question
Difficulty 4/5 1-2 days Newbie friendliness 35/100
BaaRai/ARTEX#983 · 4 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 3/5 1-2 days Newbie friendliness 20/100
BaaRai/ARTEX#977 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
agent:ready
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
turbot/flowpipe#1162 · 1 comment ·
Maintainers usually reply within 1 day
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsPossibly taken @weirong-ui claimed this today. Openkind/bug needs-priority needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/karpenter#3728 · 1 comment ·
Maintainers usually reply within 1 day
-
compaction: redundant exclusion checks after inRangePossibly taken @moodbased claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day