Skip to content

Skillloop improvements - #1

Merged
siddhartth04 merged 14 commits into
mainfrom
skillloop-improvements
Sep 24, 2026
Merged

siddhartth04 merged 14 commits into
mainfrom
skillloop-improvements

Conversation

@siddhartth04

Copy link
Copy Markdown
Owner

No description provided.

siddhartth04 and others added 14 commits September 24, 2026 21:24
…, automated verification re-runs

- Replace the question-word filter with a task/create/knowledge/creative intent classifier.
  Tasks phrased as questions now get their skills (held-out Q: 2/14 -> 14/14).
- Creation requests only fire authoring-scoped skills (R1 D traps: 8/14 -> 14/14).
- recall_for_error(): match raw error output against recorded symptoms; verbatim symptom
  matches can only be vetoed by verbatim not_for entries (held-out S: 12/14 -> 14/14).
- Session: failed tool calls queue matching skills for the next step (hints/hints_text/on_hint).
- One shared generic word no longer fires a skill, unless it is an anchor and the user reports a problem.
- Strong embedding matches bypass the anchor rule (paraphrase rescue; SKILLLOOP_EMBED_STRONG).
- run_pending_evals(runner): automated verification re-runs promote candidates to active.
- Warn once when traces queue with nothing processing them; SKILLLOOP_AUTO_PROCESS env.
- Offline demo now shows the loop closing; qa/run_r2.py + held-out probes; tests/test_purpose.py.
…ed gates

- generator.py: library with 6 of 9 generic conventions per seed; 18 train / 18 trap test / 3 no-trap tasks.
- harness.py: fence-safe extraction, truncation = harness error, sandboxed execution, identical episodes.
- run.py: control (x2, null check), oracle, simple memory, REAL SkillLoop; gates; McNemar exact; verdict.
- --selfcheck validates everything without a model; PROTOCOL.md fixed before any model run.
- qa/conv_eval/resume.py: every episode cached; restart resumes (survives stopped processes, rate limits)
- skillloop/llm.py: each client starts on a random key in the pool
- RESULTS.md + raw episodes + learned skills for seed 2; partial seed 3
- Result: SkillLoop 61% vs control 17% (8/0, p=0.008); vs simple memory 56% (4/3, p=1.0)
tests/test_conv_eval.py imports qa.conv_eval.*, but pyproject excludes qa
from the installed packages, so it resolves only when the repository root
is on sys.path. Pytest guarantees that for the rootdir conftest directory,
making the import behave identically locally and in CI.
test_key_rotation asserts that rotation starts at key 0, but the new
key-pool spreading started each client on a random key, so the test
passed or failed depending on the draw and CI was flaky. The random
offset is now opt-in via SKILLLOOP_SPREAD_KEYS=1, with a deterministic
default of key 0, keeping load-spreading available without the flake.

Also removes the temporary workflow and output files used to capture the
Linux-only failure.
@siddhartth04
siddhartth04 merged commit 4023a53 into main Sep 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant