Skip to content

feat(automations): feed_post.received activities for news feed posts - #527

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-8xn6n8
Oct 17, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-8xn6n8

Conversation

@adeelahmad

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: a news feed's new post (#453) came into Lens as a generic new asset, so an automation couldn't tell it was a feed post or start on posts from one feed, author or category.

After: each new post of a news feed is a feed_post.received activity (W3C Activity Streams), its actor the source, with the post's address, site, feed, author, date and categories on its object. The feed's own words (title, author, feed name, address) are marked untrusted. The Timeline names it "feed post", and the automations docs list the kind.

How: events_content.py gains the feed_post.received child kind and a post field read from the recording; rss.py exposes the listed post's fields and sources.py stores them on the recording it imports. No M3 files are touched. The CHANGELOG also moves #453's "News feeds" entry from 0.14.0 to Unreleased: v0.14.0 was cut before #453 merged.

Motivation and Context

The coordinator's brief for news feeds: feed items emit content-source events so automations can act on them.

Steps to reproduce (if appropriate):

pytest tests/api/test_news_feed_source.py::test_a_news_feed_as_a_source: a watched feed's post emits feed_post.received, valid by events.check_activity, with the feed's fields and untrusted paths.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Done questions (AGENTS.md)

  • Goal: automations can start on feed posts; merging on green.
  • Agents: the activity is read through the activities API, MCP and the assistant like every other kind, and automations made over MCP can match on it.
  • Zero setup: yes, on by default for every feed source.
  • Fewest clicks: no new clicks.
  • Configurable: no new setting.
  • Light: no new dependency; no model call.
  • Private and secure: the feed's address stays sealed (only the post's own link is shown); the feed's words are marked untrusted for prompts.
  • Cost: no model call per post.
  • User decides: nothing acts on the activity unless the user makes an automation for it.
  • Upgrades: no change to stored data's shape; the new fields are only on posts imported from now on.
  • Honest: README "Automate it" lists feed posts; requirements row names the test.
  • Tested and documented: test added; docs/automations.md and docs/processing.md updated; nothing generated changed.
  • Open: W3C Activity Streams.
  • Reported: in the project thread.
  • Reuse: reuses the existing activity stream and events.check_activity.

Local CI (ci/local-ci.sh) on c65c3eb: FastAPI (embedded SurrealDB) pass, Next.js pass, pre-commit pass, title pass.


Generated by Claude Code

Each post a news feed brings in is now a feed_post.received activity (a
child of asset.added) instead of a generic file.added. Its object carries
the post's address, site, feed title, author, published date and
categories, read from what the feed listed and kept on the resource as
`post`; all of the feed's own text is marked as outside text, so
automations wrap it before a model sees it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SWH8a26M9wkAPq2eRrfWZK
@adeelahmad adeelahmad self-assigned this Oct 17, 2026
@adeelahmad
adeelahmad merged commit 65c080f into main Oct 17, 2026
11 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-8xn6n8 branch October 17, 2026 09:36
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.

2 participants