buildOrch now returns a closure instead of *Orchestrator. Each invocation calls models.ChainFor(skill, req.Model) so a non-empty caller override collapses to a single-entry chain (no escalation). The attempts slice is also allocated fresh per call, preventing unbounded growth across requests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5.4 KiB
5.4 KiB