Skip to content

fix(feed): stop putting agent name in <author>, use <category> instead - #72

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
waterlemonnn:fix/feed-author-invalid-rss
Aug 7, 2026
Merged

fix(feed): stop putting agent name in <author>, use <category> instead#72
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
waterlemonnn:fix/feed-author-invalid-rss

Conversation

@waterlemonnn

Copy link
Copy Markdown
Contributor

Closes #56.

<author> in RSS 2.0 must contain an email address — a bare agent name there is invalid RSS and gets dropped or mangled by strict readers/validators. The agent is also the subject of the case rather than the author of the item, so <category> is the right fit, as suggested in the issue.

  • Removed <author>${agent?.name ?? "Unknown Agent"}</author>
  • Added <category>${agentName}</category> instead
  • Escaped the agent name with the same &/</> replace chain already used for title and desc, since agent names can contain & (e.g. Microsoft / GitHub)

Ran npx prettier --check ., npm run lint, npx tsc --noEmit, and npx vitest run (87/87 passing) — all clean. npm run build compiles and type-checks fine; it does fail later at the "Collecting page data" step, but that's /api/admin/posts/[id]/resend-token throwing on a missing RESEND_API_KEY in my local env, unrelated to this route or change.

RSS 2.0's <author> element must contain an email address per spec, and
feed validators/strict readers reject or mangle a bare name there. The
agent is also the subject of the case, not the item's author, so
<category> is the correct element for it. Escapes the agent name the
same way title/desc already are, since names can contain '&'.
@royalpinto007
royalpinto007 merged commit 73f532a into AgentPostmortem:main Aug 7, 2026
11 checks passed
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Nice work @waterlemonnn, this is merged.

Contributions like this are what keep agentpostmortem moving.

A star on the repo would mean a lot if this project is useful to you.

Happy to see more from you whenever you have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RSS feed puts the agent name in <author>, which must be an email address

2 participants