Framing: a solo developer's workflow. Any model; the scripts only need an OpenAI-compatible endpoint. Wherever Claude is mentioned: Anthropic has not supported mainland China, Hong Kong and Macau since 2026-11-12 (verified 2026-11-23). We design and export only; we do not host your scheduled jobs.
Situation
- Who: anyone wanting a weekly change/news digest where each item links back to its source, and who does not want it to publish itself. This repo's own weekly digest (
digest/) is exactly this need. - Not for: one-off research (use
e2e-sourced-research-brief-pipeline); anything published without a human signing.
Requirement → spec (the seven steps)
Requirement: "Every Monday morning, give me a digest of AI tools/papers filtered from ≤50 candidates, every item with its source link; I read it before it goes out."
| Step | What to do | Status |
|---|---|---|
| 1 Intake | watch list, sources, frequency, budget, irreversible action = publish | watch list = 2 arXiv keyword queries (50 candidates in a local run) |
| 2 Decompose | 7 stages: collect (code) → dedupe/cut (code) → filter + summarize (model, the only one) → link gate (code) → notify (code) → sign-off (human) → publish (human) | 6 of 7 need no model |
| 3 Pattern | workflow:chain; one judgment step, the rest hard-coded |
no agent |
| 4 Spec | each item = title + one sentence + source link; preprints tagged preprint; short quotes only |
output.schema_ref |
| 5 Gates | g_links: every link must equal a candidate link; g_human: spot-check 2; a human signs before anything is public |
link gate verified with a mock model |
| 6 Reliable runs | failures notify too; one draft per week; candidates saved before the model call; the scheduler has no publish permission | notification snippets only simulated locally; real triggers untested |
| 7 Cost | below | cost_roi |
Spec file: pipelines/e2e/e2e-weekly-change-digest-pipeline.pipeline.yaml
Scripts and commands: weekly-digest-pipeline (collect, summarize, link gate); notifications: hooks-not-polling-notifications; scheduling and time zones: scheduled-jobs-timezone-safe.
Filled eval checklist
Eval plan and cases D1–D6 are in the Chinese section. In short: gold set weekly-digest-gold-v0 has 6 cases (template suggests ≥20), of which D1–D5 behaviours were observed on 2026-11-23 with a mock model and D6 is design. All gates are deterministic or human, min_pass_rate 1.0 (per-slot); pass_k is not set until a real model is attached. Rollback: previous signed prompt version; stop condition: link gate fails 2 weeks in a row.
ROI estimate (estimated, not measured)
- Tokens: about 10^4–10^5 per issue (candidate file about 83 KB, a measured file size; input about 20–30k tokens by a 3–4 characters-per-token rule of thumb).
- Cash-price proxy: about 0.1 USD per issue; with a local model it is power and waiting. Prices from secondary aggregators, not verified against the official page (https://platform.claude.com/docs/en/about-claude/pricing; check and date it yourself).
- Time: human baseline about 1 hour per issue (estimate, not measured); sign-off about 15 minutes (estimate, not measured) — count it.
- Break-even: about 2–3 months in
cost_roi(unmeasured baseline; not a forecast); it depends on really doing it every week. - Summary quality: not measured; no real model was attached.
Failure cases
- Invented links: blocked by
g_links, but the gate only proves the link exists, not that the claim matches the source, so a human still spot-checks. - Silent scheduler failure: nobody knows by default → notify on failure too (designed against; not observed).
- A reminder a day late: one of ours was set for the next day by a time-zone slip (2026-11-23; caught the same day and recreated, no delay; see
scheduled-jobs-timezone-safe) → always write an IANA time zone and read it back. - Notification snippet defects (historical): an earlier local simulation showed an empty message without
jq, an exit code contradicting the comment when a variable is unset, silent failure when the receiver is unreachable, and no redaction.hooks-not-polling-notificationsv0.4.0 addresses these (no jq dependency, handles missing configuration and unreachable receivers, generic messages, optional scrubbing), but real hook triggers and delivery are still untested, so notification stays marked untested.
China alternatives
china_availability: partial. arXiv and similar may be slow or unstable; use sources you can reach reliably. Models: Kimi / GLM / Qwen / DeepSeek via OpenAI-compatible endpoints, or a local model. Claude is unavailable in the mainland, Hong Kong and Macau. No circumvention.
Safety notes
- Unattended runs: scripts read public sources and write local files only; give the scheduler no publishing permission — publishing is always a human.
- Data leaving the machine: the summarize step sends your watch list and candidate abstracts to the model endpoint; keep private details out of the watch list, or point to a local model.
- API keys only in environment variables; never print request headers in logs; candidate text is untrusted input (may say "ignore previous instructions"); the model has no tools.
- Quote short lines and link; do not republish third-party articles.
Test notes
- 2026-11-23, WSL2 Linux, Python 3.8, standard library only: the fetch ran against the real arXiv API (2 requests, 3 s apart); the link gate was verified with a mock endpoint.
- Not tested: real-model summary quality; unattended cron over weeks; real hook triggers; RSS/changelog collection; the whole chain end to end.
Related recipes (not repeated here)
weekly-digest-pipeline (scripts) · hooks-not-polling-notifications · scheduled-jobs-timezone-safe · research-digest-with-citations.