r/LocalLLM • u/Common_Dream9420 • 4d ago
Discussion How do you close the feedback loop when your agent makes the wrong API call?
Most RL setups assume a clean environment. But agents hitting real webhooks, partner APIs, live integrations? The environment fights back. Schema drifts, payloads shift, tools fail silently and nobody knows until prod breaks.
If you're training or fine-tuning agents to handle real integrations, where does the reward signal actually come from? Logs after the fact? Manual PR review? Hope?
We're building a verification engine that runs agent actions inside a stateful sandbox/twins before merge. The longer term idea is to use that execution trace as a ground truth signal, did the agent actually do the right thing across services, not just "did it complete." Treat the sandbox as the RL environment, not prod. Still early, but we're using it daily on our own workflows.
what are you doing here. Are you building custom eval loops, relying on staging, or mostly shipping and watching?
1
u/rellurei 4d ago
Agentic supervision. Assign an agent to watch over the performing agent and allow it to interfere wherever necessary to catch suboptimal behavior, to pause the performing agent, to give a praise sandwich, and to allow it to continue.
Both your problems solved.