Files
harness/examples/support-agent/kb/password-reset.md
sausheong 8ed38d7b66 Add support-agent example: mock customer-support agent
Demonstrates two harness surfaces the previous examples skipped:

- SkillProvider: KB articles in examples/support-agent/kb/ are exposed
  via runtime.SkillProvider. The runtime auto-registers load_skill and
  inlines a compact article index into the static (cacheable) system
  prompt; full bodies load on demand.

- PermissionChecker: tickets_update and escalate_to_human are gated on
  a 'supervisor' flag. FilterToolDefs hides the gated tools from the
  LLM tool list in non-supervisor mode so it doesn't waste turns
  inventing calls that would just be denied.

Five concrete tools (kb_search, tickets_get, tickets_create,
tickets_update, escalate_to_human) plus the auto-registered load_skill.
Five seed KB articles cover refund policy, escalation matrix, account
recovery, password reset, and API rate limits — chosen to exercise the
common support patterns each tool involves.

In-memory ticket store (examples/support-agent/store.go) seeded with
four tickets in different states. Webhook delivery for escalations is
optional via SUPPORT_AGENT_WEBHOOK; when unset the tool prints the
escalation banner to stdout, so the demo runs with only
ANTHROPIC_API_KEY set.

Tests (support_test.go) cover store CRUD, defensive copying, the
permission checker's read/write split, and KB indexing/search — all
offline, no API needed.
2026-05-08 00:10:49 +08:00

29 lines
1.7 KiB
Markdown

# Password Reset
For the standard "I can't log in / forgot my password" case. If the
customer reports unfamiliar activity in addition to being locked out,
treat it as a compromise — see `account-recovery`.
## The standard flow
1. Direct the customer to https://app.acme.example/reset and ask them
to enter the email address they signed up with.
2. The reset email arrives within 2 minutes from `[email protected]`.
3. The link is single-use and expires in 1 hour.
## Common failure modes
| Symptom | Likely cause | Action |
|---------------------------------------------|---------------------------|---------------------------------------------------------------------|
| No email after 5 minutes | Corporate spam filter | Have customer check spam, then ask IT to allowlist `acme.example`. |
| "Email not found" error | Wrong address or typo | Confirm the spelling; check whether SSO is configured for them. |
| Link expired | > 1 hour since send | Issue a fresh reset; verify the customer is acting on the new one. |
| SSO error after reset | SSO required by org | Reset doesn't apply — customer must log in via their SSO provider. |
| 2FA prompt after reset, no device available | Lost authenticator | File a ticket; only Security can reset 2FA. **Do not** disable it. |
## Don'ts
- Don't email a temporary password.
- Don't disable 2FA on the customer's behalf — always escalate.
- Don't ask the customer for any portion of their password "to verify".