add Spider and Morning Brief#37
Draft
AIndoria wants to merge 2 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
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 tochat:watercooler, and output persistence. - Add env/docs hygiene updates and a comprehensive
unittestsuite 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 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 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 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 |
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
force-pushed
the
port/dashboard-v2-sync
branch
from
July 11, 2026 09:51
ee65fbe to
5b6d782
Compare
AIndoria
force-pushed
the
wip/spider-morning-brief
branch
from
July 11, 2026 09:51
72930a7 to
e41d432
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chat:watercooler.Validation
chat:synchronousgit diff --checkAI 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.