Heuristic: only run iDRegEx when n_methods ≤ 10 AND CRX grammar has >50% top-level optional parts (flat chain signal). If iDRegEx grammar is >10x tighter by lang_size, use it. Otherwise keep CRX. RAGSAK result: agents/capability (5 methods) refined from slot?.(defaultCapabilityId+summarize)?... (lang_size=1432) to (defaultCapabilityId|summarize) (lang_size=3) — 477x tighter. Speed cost: ~0.7s per candidate, negligible on 74s pipeline. CLI: --idregex-refine flag (default off). Also adds _count_optionals() and _should_try_idregex() helpers with 8 pytest tests. 234 tests pass. |
||
|---|---|---|
| .. | ||
| results | ||
| coarsen_eval.py | ||
| context_eval.py | ||
| EXPERIMENT_LOG.md | ||
| freq_eval.py | ||
| gbnf_eval.py | ||
| RESULTS.md | ||