Skip to content

feat(ci): daily arXiv strong-lensing paper digest → Slack #papers#58

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/arxiv-papers-digest
Jul 10, 2026
Merged

feat(ci): daily arXiv strong-lensing paper digest → Slack #papers#58
Jammy2211 merged 3 commits into
mainfrom
feature/arxiv-papers-digest

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Closes #57.

Adds a Mon–Fri GitHub Actions job (sibling of morning_status.yml) that fetches new strong-lensing papers from arXiv, has Claude summarise them, and posts to Slack #papers.

Files

  • .github/workflows/arxiv_papers.yml — cron 0 6 * * 1-5 (+ workflow_dispatch), 3 steps: fetch → Claude summarise → POST.
  • .github/scripts/arxiv_fetch.py — recall-first arXiv fetcher (strong-lensing vocabulary), v1-submission-date window, stateless + deduped.
  • feature/pyautomind/arxiv_papers_digest.md — the Mind prompt.

Runs on the Claude subscription

Summarise step reuses CLAUDE_CODE_OAUTH_TOKEN (subscription OAuth token, already set for the commit digest) — no API key, no metered billing. A daily handful of abstracts is negligible usage.

Timing

0 6 * * 1-5 (06:00 UTC); GitHub cron jitters 0–3h later → UK ~07:00–10:00, after arXiv's overnight announcement → "this morning's papers" for UK scientists.

Validation

  • Fetcher run against live arXiv: catches the Li+Collett WFI2033 lensed-quasar paper (07-09) that a phrase-only query missed. ~1.5 papers/day; ~2 off-topic/fortnight, dropped by the Claude filter step.
  • Webhook PYAUTO_PAPERS_WEBHOOK_URL set; end-to-end POST proven (test message returned ok).
  • Workflow YAML validated; script compiles.

--auto ship gate

  • Tests n/a / Smoke n/a (organism repo, no test or downstream-script surface).
  • Review CLEAN.
  • Heart YELLOW·60, human-acknowledged for this ship (organism-scope, unrelated to this CI change).

After merge

workflow_dispatch a live full-pipeline test-fire (fetch → Claude → real #papers post).

🤖 Generated with Claude Code

Jammy2211 and others added 3 commits July 10, 2026 19:58
Sibling of morning_status.yml (the commit digest): a Mon–Fri GitHub
Actions job that fetches new strong-lensing papers from the arXiv API,
has Claude summarise them (curated highlights + list), and posts to
Slack #papers.

- Fetch (.github/scripts/arxiv_fetch.py): recall-first astro-ph.CO/GA
  query over strong-lensing vocabulary (lensed quasar, lens modelling,
  Einstein ring, quadruply/doubly imaged, double source plane, …), not
  just the literal phrase "strong lensing" — validated to catch the
  Li+Collett WFI2033 lensed-quasar paper a phrase-only query missed.
  Filtered by original submission date (v1), 24h window (72h Mondays to
  sweep the weekend), stateless, deduped.
- Summarise: claude-code-action@v1 reusing CLAUDE_CODE_OAUTH_TOKEN (the
  Claude *subscription* token — no API key, no metered billing); drops
  keyword false-positives; skipped on empty days.
- POST: to PYAUTO_PAPERS_WEBHOOK_URL; silent skip when nothing on-topic.
- Timing: 06:00 UTC Mon–Fri; with cron jitter delivers UK ~07:00–10:00,
  after arXiv's overnight announcement, so it reads as "this morning's".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 0359474 into main Jul 10, 2026
@Jammy2211
Jammy2211 deleted the feature/arxiv-papers-digest branch July 10, 2026 19:02
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.

Daily arXiv strong-lensing paper digest → Slack #papers

1 participant