Skip to content

add Spider and Morning Brief#37

Draft
AIndoria wants to merge 2 commits into
port/dashboard-v2-syncfrom
wip/spider-morning-brief
Draft

add Spider and Morning Brief#37
AIndoria wants to merge 2 commits into
port/dashboard-v2-syncfrom
wip/spider-morning-brief

Conversation

@AIndoria

Copy link
Copy Markdown
Owner

Summary

  • Add the bounded Spider research and report-generation workflow.
  • Add resumable sessions, source evaluation, claim verification, and report regeneration.
  • Add Morning Brief with SearXNG and optional Brave search.
  • Keep Morning Brief posting opt-in and restricted to chat:watercooler.
  • Add Spider and Morning Brief environment examples and utility tests.

Validation

  • 80 unit tests passed; 2 credential-dependent tests skipped
  • Python compilation for Spider and Morning Brief
  • Confirmed no Apollo-specific public names
  • Confirmed no Morning Brief posting path to chat:synchronous
  • Credential and private-infrastructure scan
  • git diff --check

AI disclosure

This PR is derived from custom Spider and morning-brief code originally authored by Abe in the private, local Abiverse repository. Codex was used to replicate, sanitize, organize, and validate the changes for the public Volition repository.

@AIndoria AIndoria changed the title [codex] add Spider and Morning Brief add Spider and Morning Brief Jun 28, 2026
@AIndoria
AIndoria requested a review from Copilot July 5, 2026 06:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces two new Python utilities under spider/: Spider (a bounded research workflow that searches/reads sources and generates cited reports with resumable sessions) and Morning Brief (a fast agenda generator intended for opt-in posting to chat:watercooler). It also updates environment examples and adds a utility-focused test suite.

Changes:

  • Add spider/spider.py: a resumable, budgeted research harness with search backends, source scoring, claim extraction/verification, and report generation.
  • Add spider/morning_brief.py: a morning agenda generator with SearXNG/Brave search, caching, optional Redis posting to chat:watercooler, and output persistence.
  • Add env/docs hygiene updates and a comprehensive unittest suite for utility behaviors.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/.env.example Adds Spider/Morning Brief environment variables and example defaults.
spider/spider.py New Spider research workflow implementation (search/read loop, session artifacts, report generation).
spider/morning_brief.py New Morning Brief generator (search + scoring + optional Redis posting + output saving).
spider/test_spider_utils.py Adds unit/integration-style tests covering Spider/Morning Brief utilities and safety constraints.
.gitignore Ensures .env.example is not ignored while .env* remains ignored.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spider/morning_brief.py Outdated
Comment on lines +47 to +48
SEARCH_CACHE_DIR = Path(os.environ.get("MORNING_BRIEF_SEARCH_CACHE_DIR", str(Path.home() / ".cache" / "morning_brief")))
DEFAULT_OUTPUT_DIR = Path(os.environ.get("MORNING_BRIEF_OUTPUT_DIR", str(Path.home() / "morning_briefs")))
Comment thread spider/spider.py
Comment on lines +70 to +73
DEBUG_DIR = Path.home() / "logs" / "debug"
SESSION_DIR = Path(os.environ.get("SPIDER_OUTPUT_DIR", str(Path.home() / "spider_sessions")))
CACHE_DIR = SESSION_DIR / ".cache"
DOC_DIR = SESSION_DIR / ".docs"
Comment thread spider/spider.py Outdated
Comment thread spider/spider.py Outdated
Comment on lines +2431 to +2433
if source_already_seen(session, url) or any(existing.get("url") == url for existing in session.frontier):
session.record_frontier_state(item, "skipped_duplicate", "already seen or already queued")
return False
AIndoria added 2 commits July 11, 2026 02:47
Add bounded, resumable research sessions with source evaluation, claim verification, and report regeneration.

Add an opt-in Morning Brief workflow restricted to chat:watercooler, public environment examples, and utility tests.
Expand configured home-relative paths, defer session directory creation until Spider is used, and deduplicate only proven source equivalents.

Add regression coverage for path expansion and narrow URL identity matching.
@AIndoria
AIndoria force-pushed the port/dashboard-v2-sync branch from ee65fbe to 5b6d782 Compare July 11, 2026 09:51
@AIndoria
AIndoria force-pushed the wip/spider-morning-brief branch from 72930a7 to e41d432 Compare July 11, 2026 09:51
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