friction_scan
Scan transcript windows for mirror failure—when an agent stops disagreeing and reflects the user during escalation. Flags low-friction agent turns to expose where the agent lost pushback.
Instructions
Scan a transcript window for the mirror failure mode: the agent has stopped
being other and is reflecting the user back, smoothed, WHILE the user is
escalating. Model-free and deterministic — no LLM, no egress; it NEVER blocks,
it only flags. When a window of agent turns sits below the friction floor
during escalation it raises (and persists, deduped) a loud human-facing flag
naming where the agent stopped disagreeing.
turns: [{"role": "user"|"agent", "text": str, "ts"?: number}, …] — the recent
window, in order. It is a SIGNAL, not a verdict (false-positives happen; a
clever mirror can duck it); its value is observability. It MUST be driven from
OUTSIDE the watched model (a harness/monitor) — a mirror cannot audit itself;
an agent scanning its own turns is theater.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| floor | No | ||
| turns | Yes | ||
| app_id | Yes | ||
| window | No |