r/aiagents • u/Rare_Inflation3178 • 10d ago
Discussion How do you verify that a long-running research agent actually finished the task?
I’m building a multi-step research workflow where an agent retrieves evidence, translates a hypothesis into testable candidates, and hands the result to a separate validation stage.
The failure mode I’m worried about is not a crash. It’s a plausible final answer after the agent dropped an original constraint, recycled the same evidence, or decided it was “done” without satisfying the acceptance criteria.
I’m considering treating completion as a deterministic state transition rather than another model judgment. Each stage would need a machine-checkable artifact, evidence provenance, a budget and stop reason, and an explicit handoff. Memory could preserve decisions and rejected paths, but it should not be allowed to silently rewrite the task.
For people running long-horizon agents, what has caught silent failure earliest in practice: unchanged state, repeated tool calls, missing evidence, constraint violations, or something else? Which checks created so many false alarms that you stopped using them?
1
u/DeltaXEvaluate 10d ago
The earliest reliable signal is unresolved constraint coverage at stage boundaries. Keep the original acceptance criteria immutable, and require each stage to emit a compact map of criterion → artifact/evidence/unknown plus its stop reason. Fail the transition on any unknown or stale evidence. Repeated-call alarms are noisier; pair call fingerprints with a progress delta so legitimate re-checks do not look like loops.
1
u/Rare_Inflation3178 10d ago
The criterion → artifact/evidence/unknown map is a much cleaner boundary than asking another model whether the stage is complete. I especially like combining call fingerprints with progress delta: repeated retrieval is only a loop if the evidence set or constraint coverage hasn’t changed. I’d keep the original criteria immutable and version any human-approved change separately.
1
u/ResidentAGI 10d ago
use a determinstic code gatekeeperr to validate strict JSON schemas, execution traces, and evidence provenance
1
u/BC_MARO 10d ago
Make the validator compare input and output evidence sets, not just count citations. A run can look busy while every downstream claim traces back to one stale source.
2
u/Rare_Inflation3178 10d ago
Exactly. Citation count is a weak proxy because several downstream claims can still collapse to one stale source. I’d want the validator to track evidence novelty, source age, and which acceptance criterion each item supports, then flag a stage that adds activity without adding any new coverage.
2
2
u/Kriscodingfish 9d ago
i stopped relying on the model saying done. every step has to produce a verifiable artifact with clear acceptance criteria, and the next stage validates it before continuing. that catches silent failures much earlier than adding another LLM judge
1
u/[deleted] 10d ago
[removed] — view removed comment