| name | daily-news-pipeline |
| description | Run and operate a daily tech-news reporting pipeline with dedupe state checks, safe dry-run defaults, and optional execution of the OpenClaw news report script. Use for daily Frontend/React/Next.js news automation, skip-if-already-sent logic, and pipeline health troubleshooting. |
Daily News Pipeline
Overview
Operate the daily tech-news report flow with state-aware dedupe.
Default to inspection and dry-run before execution.
Quick Start
- Health check:
./scripts/news_pipeline_health_check.sh
- Check whether report should run today:
./scripts/news_pipeline_should_run.sh
- Dry-run pipeline:
./scripts/news_pipeline_run.sh
- Execute pipeline and update state (only when ready):
./scripts/news_pipeline_run.sh --execute
Workflow
Step 1: Validate dependencies and script paths
- Ensure
openclaw exists.
- Ensure report script exists and is executable.
- Confirm state file path for dedupe control.
Step 2: Evaluate dedupe state
- Read
memory/heartbeat-state.json key lastNewsReport.
- Skip execution when already reported today unless
--force.
Step 3: Run safely
- Use dry-run first.
- Use
--execute only when checks pass.
- On success, update state to today.
Step 4: Verify outcome
- Check pipeline logs and command exit code.
- Re-check state file update.
Guardrails
- Do not execute report blindly when state says already sent.
- Keep
--force for manual override only.
- Do not print secret values in logs or prompts.
Resources
scripts/news_pipeline_health_check.sh: dependency + path checks.
scripts/news_pipeline_should_run.sh: dedupe decision output.
scripts/news_pipeline_run.sh: dry-run/execute pipeline.
scripts/news_pipeline_state_update.sh: state write utility.
references/news-pipeline-playbook.md: operations and failure matrix.
Example Requests
- "Dùng daily-news-pipeline kiểm tra hôm nay có nên gửi report không."
- "Dùng daily-news-pipeline chạy dry-run và cho tôi output dự kiến."
- "Dùng daily-news-pipeline chạy thật và cập nhật state sau khi thành công."
Load references/news-pipeline-playbook.md when triaging skipped runs, duplicate sends, or execution failures.