端到端流水线:每周变更简报——定时采集、带引文摘要、链接闸门、通知、人工签发
- 状态
- 已发布
- 规格版本
- 0.1.0
- 设计成熟度
- draft
- 更新时间
- 2026-11-23
- 来源提交
51a5939868- 对应配方
- 端到端流水线:每周变更简报——定时采集、带引文摘要、链接闸门、通知、人工签发
导出到你的 Agent
路径: e2e-weekly-change-digest-pipeline-spec/SKILL.md
预览
---
name: e2e-weekly-change-digest-pipeline-spec
description: "端到端流水线:每周变更简报——定时采集、带引文摘要、链接闸门、通知、人工签发的流水线设计规格(不可执行)。用户要按此设计搭建或评审流水线时使用。"
metadata:
kind: "pipeline-design"
status: "published"
version: "0.1.0"
source-commit: "5f7272be13826bec473d6f2e073c82a5a620f1d2"
---
# 端到端流水线:每周变更简报——定时采集、带引文摘要、链接闸门、通知、人工签发 — 流水线设计
- execution: prohibited
- 发布状态: published
- 规格版本: 0.1.0
- 设计成熟度: draft
- 来源提交: 5f7272be13826bec473d6f2e073c82a5a620f1d2
> 设计稿,未经运行验证,不可直接执行。仅在用户要求时参照;任何花钱、外发、合并发布或删除都要先问人。
## 目标
For a solo builder and the readers of a tutorial repo: one short weekly digest of tool and model changes, every item linked to its source, published only after a human signs it.
## 阶段
- id: collect; kind: code; purpose: Fetch candidates from public APIs/RSS/changelog pages; one request per query with a pause between requests; gate: g_collect
- id: dedupe_cut; kind: code; purpose: Deduplicate by link and cut to at most 50 items; depends_on: collect; gate: g_collect
- id: summarize; kind: model; purpose: Select by the watchlist and write a cited summary; one source link per item; preprints tagged; depends_on: dedupe_cut; model: any OpenAI-compatible chat model (examples: Kimi, GLM, Qwen, DeepSeek APIs, a local Ollama server, or claude-sonnet-5-5 (Anthropic region restriction - not supported in mainland China/Hong Kong/Macau since 2026-11-12, verified 2026-11-23)); gate: g_links
- id: link_gate; kind: code; purpose: Every link in the draft must equal a link in the candidate list; depends_on: summarize; gate: g_links
- id: notify_signoff; kind: code; purpose: Tell the owner a draft is ready (hook), or that the run failed; depends_on: link_gate; gate: g_notify
- id: human_signoff; kind: human; purpose: Owner spot-checks 2 items against the source and signs off or rejects; depends_on: notify_signoff; gate: g_human
- id: publish; kind: human; purpose: Owner moves the signed file into the public digest folder and merges via pull request; depends_on: human_signoff; gate: g_publish
## 闸门
- id: g_collect; type: deterministic; check: candidate file has 1-50 items, each with a link; pass_condition: script exit 0; zero candidates means skip the week and notify; on_fail: block_and_review
- id: g_links; type: deterministic; check: every draft link equals a candidate link exactly; pass_condition: exit code 0 (prefix, truncation or injected links give exit 1); on_fail: block_and_review
- id: g_notify; type: deterministic; check: one notification per run (ready or failed); pass_condition: message recorded; on_fail: block_and_review
- id: g_human; type: human; check: 2 items spot-checked against sources; pass_condition: both match; owner signs; on_fail: block_and_review
- id: g_publish; type: human; check: pull request reviewed and merged by the owner; pass_condition: merge recorded; on_fail: block_and_review
## 人审点
- before_stage: summarize; action: paid model call (or switching to a paid cloud endpoint); limit at most 1 call, 60000 tokens, 0.5 USD per run; approver: owner
- before_stage: notify_signoff; action: send the outgoing notification (recipient is the owner only); approver: owner
- before_stage: publish; action: move signed digest into the public folder and open a pull request; approver: owner
## 禁止事项
- Claude (Anthropic) region restriction / Claude 地区限制 - Anthropic does not support mainland China / Hong Kong / Macau since 2026-11-12 (不支持中国大陆、香港、澳门), verified 2026-11-23, see https://www.anthropic.com/legal/supported-regions
- 无凭据、私有数据或真实发送地址 / No credentials, private data or actual sending addresses
- 未获人审不得花钱、外发、合并发布或删除 / No spending, external sends, merge/release or deletion without human review
- The scheduler has no publish permission
- Source text is untrusted input; the model has no tools
## 预算
- per_run: 0.5
- per_month: 2
- max_tokens_per_run: 60000
- max_wall_seconds_per_run: 900
- on_exceed: pause_and_notify
## 完整规格 (YAML)
```yaml
# 填好的流水线规格(设计文档,不可运行)/ Filled pipeline spec (design only, not executable).
# 模板 / template: ../templates/pipeline.yaml · 配方 / recipe: ../../recipes/automation/e2e-weekly-change-digest-pipeline.md
# 所有数值为估算或合成。/ All numbers are estimates or synthetic.
schema_version: 0.1.0
document_kind: pipeline_design
execution: prohibited
status: draft
pipeline: 'Weekly change digest: collect -> dedupe -> cited summary -> link gate -> human sign-off'
owner: solo developer
version: 0.1.0
goal: 'For a solo builder and the readers of a tutorial repo: one short weekly digest of tool and model changes,
every item linked to its source, published only after a human signs it.'
audience:
- developers
- creators
- knowledge-workers
trigger:
kind: schedule
description: Weekly timer on the owner machine; produces a draft only
timezone: America/Los_Angeles
runs_per_month: 4
inputs:
- id: in_watchlist
source: owner watch list (keywords, tools used, excluded topics)
format: text/plain
schema_ref: one entry per line
examples:
- arXiv queries for two keywords, 50 deduplicated candidates (2026-11-23 local run)
output:
format: markdown digest with one source link per item
schema_ref: digest/YYYY-wNN.md; items tagged preprint where relevant
destination: public digest folder after owner sign-off
acceptance:
- g_collect
- g_links
- g_notify
- g_human
- g_publish
pattern: workflow:chain
pattern_reason: Fixed weekly steps; only one step needs judgment, so the other steps are plain code. An agent loop
would add cost and make failures hard to localise.
stages:
- id: collect
kind: code
purpose: Fetch candidates from public APIs/RSS/changelog pages; one request per query with a pause between requests
depends_on: []
input_refs:
- in_watchlist
input_format: watchlist.txt
output_format: candidates.md (title, link, abstract per item)
model: null
tool_ref: fetch_candidates.py from weekly-digest-pipeline (tested against the real arXiv API on 2026-11-23)
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_collect
side_effects:
- network reads of public pages
cost: {}
- id: dedupe_cut
kind: code
purpose: Deduplicate by link and cut to at most 50 items
depends_on:
- collect
input_refs:
- collect
input_format: candidates.md
output_format: candidates.md (<=50)
model: null
tool_ref: same script
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_collect
side_effects:
- none
cost: {}
- id: summarize
kind: model
purpose: Select by the watchlist and write a cited summary; one source link per item; preprints tagged
depends_on:
- dedupe_cut
input_refs:
- dedupe_cut
- in_watchlist
input_format: candidates (dedupe_cut) + watchlist (in_watchlist)
output_format: draft.md
model: 'any OpenAI-compatible chat model (examples: Kimi, GLM, Qwen, DeepSeek APIs, a local Ollama server, or
claude-sonnet-5-5 (Anthropic region restriction - not supported in mainland China/Hong Kong/Macau since 2026-11-12, verified 2026-11-23))'
tool_ref: null
fallback:
models:
- local Ollama model
when: quota, outage or privacy preference
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: 30000
out: 5000
cacheable_prefix: watchlist + instructions
batchable: true
gate:
- g_links
side_effects:
- sends watchlist and candidate text to the configured model endpoint
cost:
expected_calls_per_run: 1
in_price_per_mtok: 2.0
out_price_per_mtok: 10.0
price_source_url: https://platform.claude.com/docs/en/about-claude/pricing
price_checked_on: null
cacheable_prefix_tokens: null
cache_hit_rate: null
cache_read_multiplier: null
cache_write_tokens: null
cache_write_price: null
batch_adopted: false
batch_factor: 1
off_peak_eligible: null
off_peak_adopted: false
off_peak_factor: 1
discount_source: null
retry_rate: 0.2
included_in_existing_plan: null
- id: link_gate
kind: code
purpose: Every link in the draft must equal a link in the candidate list
depends_on:
- summarize
input_refs:
- summarize
- dedupe_cut
input_format: draft.md + candidates.md
output_format: exit code 0/1
model: null
tool_ref: check_links.py from weekly-digest-pipeline (tested with a mock model)
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_links
side_effects:
- none
cost: {}
- id: notify_signoff
kind: code
purpose: Tell the owner a draft is ready (hook), or that the run failed
depends_on:
- link_gate
input_refs:
- link_gate
input_format: exit status
output_format: one message
model: null
tool_ref: notify hook (snippets from hooks-not-polling-notifications; real triggers untested)
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_notify
side_effects:
- one outgoing notification (recipient is the owner)
cost: {}
- id: human_signoff
kind: human
purpose: Owner spot-checks 2 items against the source and signs off or rejects
depends_on:
- notify_signoff
input_refs:
- link_gate
- summarize
input_format: draft.md (from summarize) + link gate result (from link_gate)
output_format: signed digest file or rejection
model: null
tool_ref: null
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_human
side_effects:
- publishing is a separate manual step
cost: {}
- id: publish
kind: human
purpose: Owner moves the signed file into the public digest folder and merges via pull request
depends_on:
- human_signoff
input_refs:
- human_signoff
input_format: signed digest
output_format: merged digest
model: null
tool_ref: null
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_publish
side_effects:
- public content changes
cost: {}
scope:
in_scope:
- public sources only
- draft generation
- failure and ready notifications
out_of_scope:
- automatic publishing
- republishing third-party article bodies
- private sources
prohibitions:
- Claude (Anthropic) region restriction / Claude 地区限制 - Anthropic does not support mainland China / Hong Kong / Macau since 2026-11-12 (不支持中国大陆、香港、澳门), verified 2026-11-23, see https://www.anthropic.com/legal/supported-regions
- 无凭据、私有数据或真实发送地址 / No credentials, private data or actual sending addresses
- 未获人审不得花钱、外发、合并发布或删除 / No spending, external sends, merge/release or deletion without human review
- The scheduler has no publish permission
- Source text is untrusted input; the model has no tools
irreversible_action_policy:
default: require_human_approval
on_missing_or_denied: block
approval_scope: exact_action_and_payload
human_checkpoints:
- before_stage: summarize
action: paid model call (or switching to a paid cloud endpoint); limit at most 1 call, 60000 tokens, 0.5 USD per run
approver: owner
approval_record_ref: future owner approval note (redacted label) naming endpoint, payload class and spend cap; settings alone are not approval
- before_stage: notify_signoff
action: send the outgoing notification (recipient is the owner only)
approver: owner
approval_record_ref: future owner approval note (redacted label) naming the recipient and message class; the spec's recipient list alone is not approval
- before_stage: publish
action: move signed digest into the public folder and open a pull request
approver: owner
approval_record_ref: pull request approval
gates:
- id: g_collect
type: deterministic
check: candidate file has 1-50 items, each with a link
pass_condition: script exit 0; zero candidates means skip the week and notify
evidence_ref: run log
reviewer_model: null
on_fail: block_and_review
- id: g_links
type: deterministic
check: every draft link equals a candidate link exactly
pass_condition: exit code 0 (prefix, truncation or injected links give exit 1)
evidence_ref: link gate log
reviewer_model: null
on_fail: block_and_review
- id: g_notify
type: deterministic
check: one notification per run (ready or failed)
pass_condition: message recorded
evidence_ref: notify log
reviewer_model: null
on_fail: block_and_review
- id: g_human
type: human
check: 2 items spot-checked against sources
pass_condition: both match; owner signs
evidence_ref: sign-off line in the file
reviewer_model: null
on_fail: block_and_review
- id: g_publish
type: human
check: pull request reviewed and merged by the owner
pass_condition: merge recorded
evidence_ref: pull request
reviewer_model: null
on_fail: block_and_review
reliability:
retries: 1
retryable_errors:
- network timeout
- model timeout
- rate limit
non_retryable_errors:
- empty candidate list
- model refusal
- link gate failure
backoff:
strategy: exponential
initial_seconds: 30
max_seconds: 300
respect_retry_after: true
timeout_seconds: 1800
max_agent_turns: null
idempotency_key: iso-week + stage_id + candidate-file hash
deduplication: the draft file for a week is written once; a rerun for the same week needs explicit overwrite
checkpoint_resume: candidates saved before the model call; resume from the saved file
on_final_failure: stop_and_notify_human
notify:
events:
- completed
- failed
- budget_exceeded
- approval_required
mechanism: hook
recipient_role: owner
observability:
trace: run.log + per-run token usage printed by the summarize script
log_tokens_and_cost: true
fields:
- run_id
- pipeline_version
- stage_id
- model_revision
- prompt_skill_versions
- token_usage
- cost_currency_basis
- latency_seconds
- retry_count
- gate_results
- approval_ref
- failure_class
redaction: no API keys or headers in logs
retention_days: 90
review_cadence: owner, weekly at sign-off
budget:
per_run: 0.5
per_month: 2
max_tokens_per_run: 60000
max_wall_seconds_per_run: 900
on_exceed: pause_and_notify
eval:
golden_set: 'weekly-digest-gold-v0 (6 cases D1-D6: normal, injected link, prefix link, truncated link, trailing
punctuation, empty list; below the checklist''s suggested 20; D1-D5 observed 2026-11-23 with a MOCK model, D6 is design only; the preprint tag is checked by the human gate, not in this set)'
min_pass_rate: 1.0
run_on:
- prompt_change
- model_change
- skill_change
- weekly
pass_k: null
result_ref: null
versioning:
prompts: weekly-digest-pipeline recipe, version 0.1.0 (unmerged draft)
skills: null
implementation_ref: null
cost_roi:
currency: USD
calculation_scope: api_rough_estimate
human_min_per_run: 60
review_min_per_run: 15
hourly_rate: 40
build_hours: 6
debug_token_cost: 3
maintenance_h_per_month: 0.5
cost_of_bad_output: 'low: a wrong item is caught by the human gate; a missed week costs little'
subscription_roi_method: undecided
evidence:
- field: runs_per_month
basis: estimated
source: weekly
checked_on: '2026-11-23'
sample_size: null
- field: human_min_per_run
basis: estimated
source: baseline NOT measured
checked_on: '2026-11-23'
sample_size: null
- field: review_min_per_run
basis: estimated
source: NOT timed
checked_on: '2026-11-23'
sample_size: null
- field: hourly_rate
basis: synthetic
source: placeholder
checked_on: '2026-11-23'
sample_size: null
- field: stages[*].est_tokens
basis: estimated
source: file size (about 83 KB, measured 2026-11-23) converted to tokens by a rule of thumb; token counts themselves were not measured
checked_on: '2026-11-23'
sample_size: 1
- field: stages[*].cost.{in,out}_price_per_mtok
basis: estimated
source: secondary aggregators 2026-11-23; official page not verified
checked_on: '2026-11-23'
sample_size: null
- field: stages[*].cost.{expected_calls_per_run,retry_rate,cacheable_prefix_tokens,cache_hit_rate,cache_read_multiplier}
basis: synthetic
source: design assumptions; no usage logs, cache hit rate and retries NOT measured
checked_on: '2026-11-23'
sample_size: null
- field: stages[*].cost.price_checked_on
basis: estimated
source: left null on purpose - prices came from secondary aggregators, official page not verified; verify and date before reuse
checked_on: '2026-11-23'
sample_size: null
results:
cost_per_run: 0.13
monthly_cost: 0.5
monthly_net_benefit: 100
initial_cost: 243
break_even_months: 2.4
calculation_note: ESTIMATE ONLY. With a local model the API cost is zero but time and power are not. Real model
quality, cron and notification are UNTESTED.
```
规格原文
# 填好的流水线规格(设计文档,不可运行)/ Filled pipeline spec (design only, not executable).
# 模板 / template: ../templates/pipeline.yaml · 配方 / recipe: ../../recipes/automation/e2e-weekly-change-digest-pipeline.md
# 所有数值为估算或合成。/ All numbers are estimates or synthetic.
schema_version: 0.1.0
document_kind: pipeline_design
execution: prohibited
status: draft
pipeline: 'Weekly change digest: collect -> dedupe -> cited summary -> link gate -> human sign-off'
owner: solo developer
version: 0.1.0
goal: 'For a solo builder and the readers of a tutorial repo: one short weekly digest of tool and model changes,
every item linked to its source, published only after a human signs it.'
audience:
- developers
- creators
- knowledge-workers
trigger:
kind: schedule
description: Weekly timer on the owner machine; produces a draft only
timezone: America/Los_Angeles
runs_per_month: 4
inputs:
- id: in_watchlist
source: owner watch list (keywords, tools used, excluded topics)
format: text/plain
schema_ref: one entry per line
examples:
- arXiv queries for two keywords, 50 deduplicated candidates (2026-11-23 local run)
output:
format: markdown digest with one source link per item
schema_ref: digest/YYYY-wNN.md; items tagged preprint where relevant
destination: public digest folder after owner sign-off
acceptance:
- g_collect
- g_links
- g_notify
- g_human
- g_publish
pattern: workflow:chain
pattern_reason: Fixed weekly steps; only one step needs judgment, so the other steps are plain code. An agent loop
would add cost and make failures hard to localise.
stages:
- id: collect
kind: code
purpose: Fetch candidates from public APIs/RSS/changelog pages; one request per query with a pause between requests
depends_on: []
input_refs:
- in_watchlist
input_format: watchlist.txt
output_format: candidates.md (title, link, abstract per item)
model: null
tool_ref: fetch_candidates.py from weekly-digest-pipeline (tested against the real arXiv API on 2026-11-23)
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_collect
side_effects:
- network reads of public pages
cost: {}
- id: dedupe_cut
kind: code
purpose: Deduplicate by link and cut to at most 50 items
depends_on:
- collect
input_refs:
- collect
input_format: candidates.md
output_format: candidates.md (<=50)
model: null
tool_ref: same script
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_collect
side_effects:
- none
cost: {}
- id: summarize
kind: model
purpose: Select by the watchlist and write a cited summary; one source link per item; preprints tagged
depends_on:
- dedupe_cut
input_refs:
- dedupe_cut
- in_watchlist
input_format: candidates (dedupe_cut) + watchlist (in_watchlist)
output_format: draft.md
model: 'any OpenAI-compatible chat model (examples: Kimi, GLM, Qwen, DeepSeek APIs, a local Ollama server, or
claude-sonnet-5-5 (Anthropic region restriction - not supported in mainland China/Hong Kong/Macau since 2026-11-12, verified 2026-11-23))'
tool_ref: null
fallback:
models:
- local Ollama model
when: quota, outage or privacy preference
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: 30000
out: 5000
cacheable_prefix: watchlist + instructions
batchable: true
gate:
- g_links
side_effects:
- sends watchlist and candidate text to the configured model endpoint
cost:
expected_calls_per_run: 1
in_price_per_mtok: 2.0
out_price_per_mtok: 10.0
price_source_url: https://platform.claude.com/docs/en/about-claude/pricing
price_checked_on: null
cacheable_prefix_tokens: null
cache_hit_rate: null
cache_read_multiplier: null
cache_write_tokens: null
cache_write_price: null
batch_adopted: false
batch_factor: 1
off_peak_eligible: null
off_peak_adopted: false
off_peak_factor: 1
discount_source: null
retry_rate: 0.2
included_in_existing_plan: null
- id: link_gate
kind: code
purpose: Every link in the draft must equal a link in the candidate list
depends_on:
- summarize
input_refs:
- summarize
- dedupe_cut
input_format: draft.md + candidates.md
output_format: exit code 0/1
model: null
tool_ref: check_links.py from weekly-digest-pipeline (tested with a mock model)
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_links
side_effects:
- none
cost: {}
- id: notify_signoff
kind: code
purpose: Tell the owner a draft is ready (hook), or that the run failed
depends_on:
- link_gate
input_refs:
- link_gate
input_format: exit status
output_format: one message
model: null
tool_ref: notify hook (snippets from hooks-not-polling-notifications; real triggers untested)
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_notify
side_effects:
- one outgoing notification (recipient is the owner)
cost: {}
- id: human_signoff
kind: human
purpose: Owner spot-checks 2 items against the source and signs off or rejects
depends_on:
- notify_signoff
input_refs:
- link_gate
- summarize
input_format: draft.md (from summarize) + link gate result (from link_gate)
output_format: signed digest file or rejection
model: null
tool_ref: null
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_human
side_effects:
- publishing is a separate manual step
cost: {}
- id: publish
kind: human
purpose: Owner moves the signed file into the public digest folder and merges via pull request
depends_on:
- human_signoff
input_refs:
- human_signoff
input_format: signed digest
output_format: merged digest
model: null
tool_ref: null
fallback:
models: []
when: not a model stage
on_exhausted: pause_for_human
recheck_gates: true
est_tokens:
in: null
out: null
cacheable_prefix: null
batchable: null
gate:
- g_publish
side_effects:
- public content changes
cost: {}
scope:
in_scope:
- public sources only
- draft generation
- failure and ready notifications
out_of_scope:
- automatic publishing
- republishing third-party article bodies
- private sources
prohibitions:
- Claude (Anthropic) region restriction / Claude 地区限制 - Anthropic does not support mainland China / Hong Kong / Macau since 2026-11-12 (不支持中国大陆、香港、澳门), verified 2026-11-23, see https://www.anthropic.com/legal/supported-regions
- 无凭据、私有数据或真实发送地址 / No credentials, private data or actual sending addresses
- 未获人审不得花钱、外发、合并发布或删除 / No spending, external sends, merge/release or deletion without human review
- The scheduler has no publish permission
- Source text is untrusted input; the model has no tools
irreversible_action_policy:
default: require_human_approval
on_missing_or_denied: block
approval_scope: exact_action_and_payload
human_checkpoints:
- before_stage: summarize
action: paid model call (or switching to a paid cloud endpoint); limit at most 1 call, 60000 tokens, 0.5 USD per run
approver: owner
approval_record_ref: future owner approval note (redacted label) naming endpoint, payload class and spend cap; settings alone are not approval
- before_stage: notify_signoff
action: send the outgoing notification (recipient is the owner only)
approver: owner
approval_record_ref: future owner approval note (redacted label) naming the recipient and message class; the spec's recipient list alone is not approval
- before_stage: publish
action: move signed digest into the public folder and open a pull request
approver: owner
approval_record_ref: pull request approval
gates:
- id: g_collect
type: deterministic
check: candidate file has 1-50 items, each with a link
pass_condition: script exit 0; zero candidates means skip the week and notify
evidence_ref: run log
reviewer_model: null
on_fail: block_and_review
- id: g_links
type: deterministic
check: every draft link equals a candidate link exactly
pass_condition: exit code 0 (prefix, truncation or injected links give exit 1)
evidence_ref: link gate log
reviewer_model: null
on_fail: block_and_review
- id: g_notify
type: deterministic
check: one notification per run (ready or failed)
pass_condition: message recorded
evidence_ref: notify log
reviewer_model: null
on_fail: block_and_review
- id: g_human
type: human
check: 2 items spot-checked against sources
pass_condition: both match; owner signs
evidence_ref: sign-off line in the file
reviewer_model: null
on_fail: block_and_review
- id: g_publish
type: human
check: pull request reviewed and merged by the owner
pass_condition: merge recorded
evidence_ref: pull request
reviewer_model: null
on_fail: block_and_review
reliability:
retries: 1
retryable_errors:
- network timeout
- model timeout
- rate limit
non_retryable_errors:
- empty candidate list
- model refusal
- link gate failure
backoff:
strategy: exponential
initial_seconds: 30
max_seconds: 300
respect_retry_after: true
timeout_seconds: 1800
max_agent_turns: null
idempotency_key: iso-week + stage_id + candidate-file hash
deduplication: the draft file for a week is written once; a rerun for the same week needs explicit overwrite
checkpoint_resume: candidates saved before the model call; resume from the saved file
on_final_failure: stop_and_notify_human
notify:
events:
- completed
- failed
- budget_exceeded
- approval_required
mechanism: hook
recipient_role: owner
observability:
trace: run.log + per-run token usage printed by the summarize script
log_tokens_and_cost: true
fields:
- run_id
- pipeline_version
- stage_id
- model_revision
- prompt_skill_versions
- token_usage
- cost_currency_basis
- latency_seconds
- retry_count
- gate_results
- approval_ref
- failure_class
redaction: no API keys or headers in logs
retention_days: 90
review_cadence: owner, weekly at sign-off
budget:
per_run: 0.5
per_month: 2
max_tokens_per_run: 60000
max_wall_seconds_per_run: 900
on_exceed: pause_and_notify
eval:
golden_set: 'weekly-digest-gold-v0 (6 cases D1-D6: normal, injected link, prefix link, truncated link, trailing
punctuation, empty list; below the checklist''s suggested 20; D1-D5 observed 2026-11-23 with a MOCK model, D6 is design only; the preprint tag is checked by the human gate, not in this set)'
min_pass_rate: 1.0
run_on:
- prompt_change
- model_change
- skill_change
- weekly
pass_k: null
result_ref: null
versioning:
prompts: weekly-digest-pipeline recipe, version 0.1.0 (unmerged draft)
skills: null
implementation_ref: null
cost_roi:
currency: USD
calculation_scope: api_rough_estimate
human_min_per_run: 60
review_min_per_run: 15
hourly_rate: 40
build_hours: 6
debug_token_cost: 3
maintenance_h_per_month: 0.5
cost_of_bad_output: 'low: a wrong item is caught by the human gate; a missed week costs little'
subscription_roi_method: undecided
evidence:
- field: runs_per_month
basis: estimated
source: weekly
checked_on: '2026-11-23'
sample_size: null
- field: human_min_per_run
basis: estimated
source: baseline NOT measured
checked_on: '2026-11-23'
sample_size: null
- field: review_min_per_run
basis: estimated
source: NOT timed
checked_on: '2026-11-23'
sample_size: null
- field: hourly_rate
basis: synthetic
source: placeholder
checked_on: '2026-11-23'
sample_size: null
- field: stages[*].est_tokens
basis: estimated
source: file size (about 83 KB, measured 2026-11-23) converted to tokens by a rule of thumb; token counts themselves were not measured
checked_on: '2026-11-23'
sample_size: 1
- field: stages[*].cost.{in,out}_price_per_mtok
basis: estimated
source: secondary aggregators 2026-11-23; official page not verified
checked_on: '2026-11-23'
sample_size: null
- field: stages[*].cost.{expected_calls_per_run,retry_rate,cacheable_prefix_tokens,cache_hit_rate,cache_read_multiplier}
basis: synthetic
source: design assumptions; no usage logs, cache hit rate and retries NOT measured
checked_on: '2026-11-23'
sample_size: null
- field: stages[*].cost.price_checked_on
basis: estimated
source: left null on purpose - prices came from secondary aggregators, official page not verified; verify and date before reuse
checked_on: '2026-11-23'
sample_size: null
results:
cost_per_run: 0.13
monthly_cost: 0.5
monthly_net_benefit: 100
initial_cost: 243
break_even_months: 2.4
calculation_note: ESTIMATE ONLY. With a local model the API cost is zero but time and power are not. Real model
quality, cron and notification are UNTESTED.