Files
Bereket EngidaandClaude Opus 5 5c9501a54e fix(docs): address review feedback on agent feedback endpoint
- notifySlack now throws on a non-2xx response. fetch resolves normally for
  a revoked or rate-limited webhook, so delivery could previously stay broken
  indefinitely without reaching the caller's error logging. The caller still
  swallows it, so a failed notification does not fail the submission.
- Escape untrusted content before it reaches Slack. Every field comes from a
  public unauthenticated endpoint, so `<https://evil|looks-official>` link
  syntax and `<!channel>` could be injected into triage output. The message
  body now renders as plain_text, which processes no markup; the remaining
  mrkdwn (fallback text, metadata fields) is entity-escaped, and backticks in
  `context` are replaced so it cannot break out of its code fence.
- Fix the JSON examples in /llms.txt and the per-page footer. Both embedded a
  union expression inside a JSON string, so an agent copying either one sent
  invalid JSON and got a 400 before learning the schema. They now show one
  valid enum value, with the allowed values listed alongside.
- GET /api/feedback derives `endpoint` from the request instead of the
  hard-coded constant, so preview and self-hosted deployments describe the
  host that served the response.
- Strip query and fragment from the stored referer and bound both referer and
  user-agent, so a token in a referring URL is not persisted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 14:00:10 -07:00
..
2026-04-18 23:04:27 -07:00
2026-04-18 23:04:27 -07:00