Skip to content

feat: ERL heuristic extraction from cross-task traces (#1359) - #1397

Closed
Lexus2016 wants to merge 3 commits into
mainfrom
evolution/issue-1359-erl-heuristic-extract
Closed

feat: ERL heuristic extraction from cross-task traces (#1359)#1397
Lexus2016 wants to merge 3 commits into
mainfrom
evolution/issue-1359-erl-heuristic-extract

Conversation

@Lexus2016

Copy link
Copy Markdown
Owner

Slice A of the ERL pipeline (#1359). Extracts reusable heuristics from trajectory data, scored by cross-task frequency and outcome correlation. No LLM. 12 tests pass. Foundation for Slice B (#1360) and Slice C (#1361). Note: 403 lines exceeds autonomous merge cap — keeping open for human review. Closes #1359

Slice A of the ERL pipeline. Extracts reusable (tool, status) heuristics
from recorded trajectory data, scored by cross-task frequency and outcome
correlation. No LLM — deterministic keyword/rule extraction.

New files:
- scripts/evolution_heuristic_extract.py: extraction pipeline
- tests/scripts/test_evolution_heuristic_extract.py: 12 tests

Foundation for Slice B (judge-reranked retrieval, #1360) and Slice C
(system-prompt injection, #1361).

Closes #1359

Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
@Lexus2016

Copy link
Copy Markdown
Owner Author

Closing: dead code — evolution_heuristic_extract.py has zero call sites outside its own module and tests. This is a "foundation" slice but nothing in the pipeline (no cron job, no script import, no CLI integration) invokes it. Per the evolution code-review protocol, dead code is not merged.

To fix for rework: Wire the extractor into the evolution pipeline so it actually runs. Concretely: register it as a cron job (or call it from an existing evolution stage) so extract_heuristics() is invoked on real trajectory data. Slice A must be callable before it can ship. Also note: 403 lines exceeds the 200-line autonomous merge cap — consider splitting the module.

Re-open a PR once the extractor is actually invoked from the pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] ERL heuristic extraction from cross-task traces (Child A of #1303)

1 participant