Prompt #144
Back to promptsAgent Quality Supervisor Drift Signal
- Variables
- agent_role, drift_categories
- Tags
- stack-aware,rag-stack,agent-quality-supervisor,ap50,drift,governance
- Source
- research-2026-05-01-stack-aware
- Use count
- 0
- Created
- 2026-05-01T18:30:48.776731+00:00
- Updated
- 2026-05-01T18:30:48.776731+00:00
Content
Diagnose a drift signal detected by bin/agent-quality-supervisor for agent role {agent_role}.
Context:
- agent-quality-supervisor implements AP50.5 13-signal drift detector
- State stored at /var/lib/agent-quality-supervisor/state.sqlite
- Signals include: cost-overrun, tool-chain-violation, prompt-injection, secret-leak, scope-creep
Investigation:
1. Run: `bin/agent-quality-supervisor --status --role {agent_role}`
2. Check state.sqlite: `SELECT * FROM drift_signals WHERE agent='{agent_role}' ORDER BY ts DESC LIMIT 10`
3. Identify the drift category from: {drift_categories}
4. If cost-overrun: check /var/log/orchestrator/ run logs for token counts
5. If tool-chain-violation: cross-reference bin/flight-recorder audit log at /var/log/agent-flight-recorder.jsonl
Resolution: open a decision-pending issue in Gitea (ubuadmin/rag-stack) if severity=high.