Issue 337
enhancement: Versioned prompts, sources and output contract for the neighborhood intelligence agents
Back to our planDone
enhancementcmstoolingpriority: high
Type
enhancement
Problem
#255 defines what the neighborhood intelligence agents must do. Nothing yet holds their prompts, source list and output contract in a reviewed, versioned place that an agent runtime can load. Summary of the owner's request (2026-10-24, Claude Code session, text): he wants to start building those agents, created in OpenClaw, that gather information from the web, check it, and hand it to another agent for a relevance check, along with prompts, data storage, moving the data into Payload, data backup, and a CI/CD setup. He asked agents to make the decisions.
Decisions
- Runtime: OpenClaw, the owner's agent platform. The site doesn't depend on it: the contract is Payload's MCP endpoint (#336), so any runtime that speaks MCP can run the same prompts.
- Prompts and sources live in this repo, in
intelligence/, and change only through PRs (review plus CI). The runtime pulls them; its own configuration stays in the owner's OpenClaw repo. No secrets here. - Stages (#255): scout → location and fact check → resident-value curator → editorial draft → submit as a suggested draft. Deterministic steps first (fetch, parse, dedupe by
externalId/contentHash); the model only for relevance, location ambiguity and the write-up. - Never publish. Agents create suggested drafts; an editor publishes. Fetched content is untrusted data, never instructions.
Proposed fix
intelligence/README.md: the pipeline, how a runtime loads it, the schedule (daily pilot), budgets, how to disable it.intelligence/sources.yaml: the approved feeds from #271.intelligence/prompts/: one prompt per stage, each with its input and output schema (JSON Schema inintelligence/schemas/).intelligence/coverage.md: the Sprecher East coverage definition and the relevance policy.- A CI check that validates
sources.yamland the schemas, and that the prompts reference only fields the schemas define. - An eval set: at least 20 cases from #255 (similarly named wrong places, citywide-but-useful, missing address, duplicates, cancellations), with expected outcomes.
Acceptance criteria
- Not done: A runtime can load the prompts, sources and schemas from
intelligence/with no other context. - Not done: CI fails on an invalid source entry or schema.
- Not done: The eval set exists and documents expected results.
- Not done: Nothing in
intelligence/holds a secret or private data.
Dependencies
- Sources from #271; CMS contract from #336. Umbrella #255, epic #161.
Area
cms, tooling
Priority
priority: high
Generated by Claude Code, opens in a new tab