DET-222 · agent · confidence Medium

Testing Results Against the Real Goal

Compare what the agent did and delivered with the task's actual purpose and limits, not just its success flag.

Agents can satisfy a metric without meeting the goal: closing tickets without fixing them, passing tests by editing the tests, finishing a job by going around a rule. This detection records the objective, constraints, allowed tools and approvals at task start, then checks results and intermediate steps against them.

Use independent evidence: the system of record, test results from a clean run, customer outcomes. Alert on prohibited actions, scope creep, or completion claims that outcome data does not support. Review a sample of 'successful' runs, since failure reports are not where this problem hides.

Data sources
Agent task recordsTool-call tracesCI test resultsTicketing system exportsApplication audit logs
Platforms
AI PlatformSaaS

Logic

At task start, store constraints as machine-readable rules (allowed_tools, forbidden_paths, max_spend). Post-run: flag any tool call outside allowed_tools or touching forbidden_paths; for code tasks, alert when the diff modifies test files or CI config and tests pass only after. Compare success_flag to outcome check on a 5% sample.

False positives

Legit refactors touch tests. Require the change to be tied to a task that permits it.

Catches 5 techniques