Found by running: the loop was setting LH_APPLIER_MODEL=qwen3-coder:480b
explicitly via env, which clobbered the applier's NEW default of
x-ai/grok-4.1-fast on openrouter. Result: applier kept hitting the
throttled ollama_cloud account and producing zero patches every iter.
Now LOOP_APPLIER_MODEL and LOOP_APPLIER_PROVIDER are optional overrides;
when unset, scrum_applier.ts uses its own defaults.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wraps tests/real-world/scrum_master_pipeline.ts and scrum_applier.ts in
a single autonomous loop that runs scrum → applier --commit → optional
git push, observes per-iteration outcomes via observer /event, journals
to data/_kb/autonomous_loops.jsonl. Stops when 2 consecutive iters land
zero commits OR LOOP_MAX_ITERS reached.
Env knobs:
LOOP_TARGETS — comma-sep paths, default 3 high-traffic Lakehouse files
LOOP_MAX_ITERS — default 3
LOOP_PUSH=1 — push branch after each commit-landing iter
LOOP_BRANCH — default scrum/auto-apply-19814 (refuses to run elsewhere)
LOOP_MIN_CONF — applier min confidence (default 85)
LOOP_APPLIER_MODEL — default qwen3-coder:480b
Causality preserved: targets pass through to LH_APPLIER_FILES so applier
patches what scrum just reviewed (vs picking from global review history).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>