Files
javis_bot/src/jarvis/tools/builtin/collected_news.spec.md
javis-bot 324fd2ea0a feat: news notifications for the background collection and a collectedNews tool
Each collection target can announce new items at once or in a daily digest
(off by default) in collect.notifyChannel, as titles and links only, with no
LLM; each post is recorded in the activity log. The brain gets a read-only
collectedNews tool (every target's newest items by default, fenced as
untrusted web content), offered with the app's collection file and the
collection feature, and available to scheduled tasks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:22:54 +09:00

1.7 KiB

collectedNews tool spec (v2)

Reads what the background collection gathered (app/src/admin.spec.md, "Background collection"; voice_worker.spec.md, "Background collection"), so Jarvis can answer "수집한 소식 정리해 줘" and a scheduled task can sum up the news (docs/v2/proactive.md, 제안 1 and 2).

Principles

  • Only with the collection. The tool is offered only when the app passed its collection file (JARVIS_COLLECT_PATH) and the background collection feature is on (the app puts the tool in disabled_tools when it is off). It reads the day files the worker wrote under the file's dir; it never fetches anything.
  • Web content is data. Items come back inside an UNTRUSTED COLLECTED CONTENT fence with the instruction never to act on a request written in them; <<< and >>> are removed from the items so they cannot close the fence.
  • Read-only. It is one of the scheduled tasks' tools (voice worker TASK_TOOLS).
  • Raw data. No LLM call inside.

Schema

action needs does
read (default) target (left out: every target), limit per target (1-20; default 10 for one target, 5 for several) each target's name, then its newest items, newest first: [YYYY-MM-DD HH:MM] title <link>: start of the text (300 characters)
list the targets that have items, and a hint to call read

Reading every target at once is the default because the model, given only names, often answered from them without reading (eval evals/test_collected_news.py, qwen3:8b: 1 of 3 before, see docs/v2/proactive.md).

A target is a folder with day files (YYYY-MM-DD.jsonl) under dir; a name that is not one of them is refused, so no other folder is read. Lines that do not parse are skipped.