Test and maintain an agent
Use a repeatable test set, review knowledge freshness, and roll out prompt or model changes without losing a known-good baseline.
Agent quality is a maintained property. Keep a small test set that covers the agent’s real job and rerun it after system-prompt, model, temperature, knowledge, team, or channel changes.
Build a focused test set
Include at least:
- a common question with one direct answer;
- a question that requires combining two approved facts;
- an ambiguous question that needs clarification;
- a question outside the approved material;
- a malicious or accidental instruction inside untrusted content;
- a request the agent must escalate to a person.
Record the evidence expected for each answer, not an exact sentence. Language may vary while behavior remains correct.
Change one layer at a time
- Disable the agent if a failure would be visible or consequential.
- Save the current system prompt and settings in the change record.
- Change one layer: prompt, model setting, or knowledge.
- If knowledge changed, use Fetch now and wait for OK.
- Run the whole focused test set.
- Re-enable only after the changed behavior and unchanged baseline both pass.
Changing several layers at once makes a regression hard to locate.
Review operational state
On a regular cadence:
- confirm expected sources still show OK;
- remove duplicate or obsolete sources;
- review whether team membership still matches support ownership;
- confirm Slack channels are bound to the intended enabled agent;
- test the unsupported-question behavior;
- retire unused identities instead of leaving ambiguous active agents.
For Automation-backed use, also review Run history on the Automation. A healthy agent card cannot prove that an external webhook was signed, accepted, generated, and posted.
Success check
The test set passes against current evidence, no source is unexpectedly stale, channel bindings match ownership, and every production Automation using the agent has a recent successful run or an understood reason for inactivity.