Issue 272
enhancement: Daily dry-run intake of approved neighborhood feeds with run history
Back to our planOpen
enhancementcmstoolingpriority: high
Type
enhancement
Problem
Once sources are validated under #271, Sprecher East needs a small, reliable way to learn what changed since the last run, without repeatedly scraping whole websites or spending large model budgets. This is the first executable slice of Community Intelligence System #255 / news epic #161.
Proposed fix (target L = up to 3 days; one PR)
- Read the approved public-source inventory from #271. Start with only 2–3 permitted RSS/Atom/JSON/ICS sources, at least one official civic source such as Legistar and one activities source. Do not include login-restricted social media.
- Prefer Payload's built-in jobs queue with the scheduling work in #141 and its native configuration before writing custom scheduling infrastructure (#270 native-first rule). Reuse an existing established feed/ICS parser or framework feature if appropriate; document the decision. Don't build an agent framework.
- A safe, incremental daily pilot: ETag/Last-Modified or source cursor and content hash as appropriate; persist last success/run status, counts, source links, timestamps, errors, changed/deleted/cancelled signals and next eligible check; retries must be idempotent.
- Store only the minimum permissible metadata/excerpts needed for review. Respect licenses/terms, per-source limits and timeouts. Treat external inputs as untrusted; no execution of instructions found in feed content.
- Generate a read-only operator report/digest or reviewable result of collected candidates with references and errors. No AI drafting, forum monitoring, direct CMS draft ingestion or automatic publication yet; add those as later scoped tasks after a real dry-run is reviewed.
- Put reusable source-specific logic in its owning module; tests should cover failure/restart, duplicated entries, irrelevant named places, date/time zone and cancellation changes. Keep source endpoints configurable.
Acceptance criteria
- Not done: A scheduled run executes with Payload jobs on the supported runtime; if #141 isn't ready, provide a repeatable manual dry run but do not claim recurring automation is live.
- Not done: A second run of the same items is safe (doesn't create duplicate candidates); changed/cancelled events can be detected.
- Not done: Source fetch failures are logged, constrained and do not affect public site performance.
- Not done: Run history includes status, sources, timestamps, counts, error reasons and a simple cost/usage measure; tests cover restart/failure and invalid local matches.
- Not done: Operator can inspect candidate titles, link, claimed date/location and fetch status without publishing anything.
- Not done: Least-privilege access; no secrets or resident identities in repo/logs; no public CMS writes or automated posts.
- Not done: One PR with independent review/checks/deploy checks per
AGENTS.md.
Planning / sequencing
- Parent epic: #161; agents should create actual GitHub sub-issue relationship using project-tracking skill.
- Umbrella: #255.
- Prerequisites: #271 source registry and #141 working Payload jobs runner. Agents should add formal GitHub
blocked bydependencies; not Ready until both are complete. The run can be tested manually while scheduling is unfinished, but production scheduling must wait for #141. - Milestone: #1 Ready for neighbors (due Nov 30, 2026); do after #271 and #141, without displacing urgent security/production fixes.
- Size: L (up to 3 days), to be verified by owner-side board planner. Split further if estimate exceeds 3 days.
- Next future tasks: evidence-based neighborhood relevance scoring, editor digest/draft creation, then #123 CMS suggestion queue integration; social listening only once permissions/privacy cleared.
Area
cms, tooling
Priority
priority: high
Requested by owner in chat on 2026-10-22. This issue is for a dry-run collector, not production publication.