Skip to content
SprecherEast
Issue 583

enhancement: Local Scout drafts road closures, new businesses, public projects and major community events as the right kind

Back to our plan
Open
enhancementcmstoolingpriority: high

Problem

In plain words: the neighborhood scouts (Local Scout) should also look for the new kinds of local information the owner listed:

  • road closures and construction on the roads neighbors use
  • new businesses in the area
  • major or inclusive community events, including ones held at churches
  • public projects such as a storm siren

They should draft each one as the right kind: an event, a short update or an article, never a meeting filed as an article.

Summary of the owner's request (2026-11-02, Claude conversation, text): the scouts, or whatever agents we keep running through Claude for now, need to have this information too, and items must be labeled properly; a meeting must not be labeled as an information article or blog, as happened with the I-94 interchange. Major events at churches such as Door Creek Church should probably be added, especially inclusive or major ones.

Today (checked):

  • Routing. The draft stage chooses only events or posts (intelligence/prompts/draft.md, schemas/draft.schema.json, common.schema.json collection).
  • The tool. submitSuggestion (src/modules/agents/cms/tools/submitSuggestion.ts) stores a post or event as a suggested draft. It refuses unknown category slugs.
  • Candidate kinds. These are event, meeting, legislation and news.
  • Relevance rules. coverage.md rejects advertising, and rule 5 requires neutrality.
  • Area words. area.yaml lists "door creek" as an area word, so the north-side Door Creek Church would also match.
  • Where it runs. The runner runs on the owner's machine, through OpenClaw, every day at 06:40 Chicago time (pipeline.yaml). Cloud sessions can't reach the sources (#390, comment of 2026-10-27).

Placement: this is a new issue under the neighborhood-updates epic.

  • Not #255: that's the umbrella. Link it.
  • Not #390: that's about sources for public works and meetings, and steps 3 and 4 are still open.
  • Not #358: that pins routing invariants. Its new invariant is noted below.
  • Sources go to #390. Pages that list road closures and park or public projects are added there as a new step, posted as a comment. Each source is checked by hand for robots.txt and feeds, as sources.yaml requires.

Proposed fix

Routing:

  • draft.schema.json gets postType (article or update), plus activeFrom and activeUntil for updates.
  • draft.md step 1 uses the four-step rule from the content-kinds issue. submitSuggestion and its schemas (schemas.ts) accept and store the new fields, and refuse an update without "until".
  • Add notice to the candidate kind only if a #390 parser needs it.

Relevance rules, added to coverage.md quoting the owner:

  • Road closures and construction: on the area's boundary roads and on the routes neighbors use to get out, for example Sprecher Rd, Cottage Grove Rd, Milwaukee St, and I-94 at the area's interchanges (the existing area.yaml highway rule). Draft them as updates with dates and the detour.
  • New businesses in the area: one factual update when one opens (name, address, what it is, date, official link). No deals, promotions or rankings, so the advertising rule still holds.
  • Events by faith organizations: only those open to everyone and of community scale, such as a festival, food drive, community meal, blood drive or public forum. Never worship services or religious programs. This keeps rule 5's neutrality.
  • Public projects with a resident effect, such as sirens, park shelters, and water or sewer work. Draft them as updates.

Evals: at least one case per new kind, plus these traps:

  • the north-side Door Creek Church
  • Door County
  • the Village of Cottage Grove
  • a business ad dressed as news
  • a worship service

Being honest about limits:

  • New businesses have no official feed. Scouts will catch some through City news, Legistar license items and local media already in sources.yaml. Neighbors' tips (#537, the contact form) will be the main source.
  • The agents can't create the new topics, so an editor adds them first (the post-type issue).
  • For #358: pin "an update must have an until date" with the other routing rules.

Native first, one line per step:

  1. Native: the existing pipeline, JSON Schemas, and Payload's select and date on the tool.
  2. Official plugins: none needed.
  3. Open source: the existing cheerio parsers only.
  4. Our code: schema, prompt, coverage text, tool fields, evals.

Acceptance criteria

  • Not done: draft.schema.json, draft.md, coverage.md and submitSuggestion handle postType and the dates. The contract test (schemas.contract.test.ts) and payload.config.agentTools.test.ts cover: an update stored with its dates, an update without "until" refused, and an event never stored as a post.
  • Not done: The evals cover each new kind and each trap listed above. npm test in intelligence/runner passes.
  • Not done: On the owner's machine, node run.mjs --dry-run shows at least one road or project item routed as an update. The run line is quoted on this issue. It can't be checked from a cloud session.
  • Not done: #390 has the new sources step, and #358 has the new invariant.

Area

tooling, cms

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab