heartbeat
/heartbeat
WellForge heartbeat / scheduled-automation conventions — the "automations" pillar of loop engineering. Scheduled tasks that do discovery + triage on a cadence and SURFACE work for a human (never auto-ship). Use whenever adding or reasoning about a heartbeat: the scheduled gate heartbeat, the template-drift heartbeat, the fleet heartbeat, or the spec-health heartbeat (/wellforge:triage). Authoritative reference for the surface-never-ship rule, the one-deduplicated-issue-per-concern rule, the deterministic-vs-agentic split, the off-for-spike rule, the cost bound, and where each heartbeat records
- Author
- matteocodogno ↗
- Repository
- wellforge ↗
- Licence
- MIT
- Last repository change
- 14.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 14.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
WellForge heartbeat / scheduled-automation conventions — the "automations" pillar of loop engineering. Scheduled tasks that do discovery + triage on a cadence and SURFACE work for a human (never auto-ship). Use whenever adding or reasoning about a heartbeat: the scheduled gate heartbeat, the template-drift heartbeat, the fleet heartbeat, or the spec-health heartbeat (/wellforge:triage). Authoritative reference for the surface-never-ship rule, the one-deduplicated-issue-per-concern rule, the deterministic-vs-agentic split, the off-for-spike rule, the cost bound, and where each heartbeat records
Triggers from the description
Original author description
WellForge heartbeat / scheduled-automation conventions — the "automations" pillar of loop engineering. Scheduled tasks that do discovery + triage on a cadence and SURFACE work for a human (never auto-ship). Use whenever adding or reasoning about a heartbeat: the scheduled gate heartbeat, the template-drift heartbeat, the fleet heartbeat, or the spec-health heartbeat (/wellforge:triage). Authoritative reference for the surface-never-ship rule, the one-deduplicated-issue-per-concern rule, the deterministic-vs-agentic split, the off-for-spike rule, the cost bound, and where each heartbeat records
How it works
- The non-negotiable principle — surface, never auto-ship
- The four heartbeats
- Rules every heartbeat follows
- Cadence
- See also
SKILL.md preview
--- name: heartbeat description: > WellForge heartbeat / scheduled-automation conventions — the "automations" pillar of loop engineering. Scheduled tasks that do discovery + triage on a cadence and SURFACE work for a human (never auto-ship). Use whenever adding or reasoning about a heartbeat: the scheduled gate heartbeat, the template-drift heartbeat, the fleet heartbeat, or the spec-health heartbeat (/wellforge:triage). Authoritative reference for the surface-never-ship rule, the one-deduplicated-issue-per-concern rule, the deterministic-vs-agentic split, the off-for-spike rule, the cost bound, and where each heartbeat records its trace. --- # Heartbeat — scheduled automations A **heartbeat** is a scheduled task that runs on a cadence, discovers work the pull-only flow would miss, and **surfaces it for a human**. It is the fifth "loop engineering" component (automations); WellForge already had the other four (skills, verifying subagents, connectors, external state). Heartbeats exist because some findings appear **without a commit** — a newly disclosed CVE, a template that moved ahead, a feature left half-done — so nothing triggers a PR. ## The non-negotiable principle — surface, never auto-ship A heartbeat **opens or updates an issue, posts a digest, or drafts a human-gated PR. It never merges, deploys, closes a feature, or self-approves.** This is the article's "stay the engineer" warning and WellForge's gate philosophy in one rule: a heartbeat is discovery + triage, the human decides. A heartbeat that "fixes" things silently is a bug, not a feature. ## The four heartbeats | Heartbeat | Kind | Vehicle | Surfaces | |---|---|---|---| | **Gate** (14a) | deterministic | GitHub Actions `on: schedule` | CVEs newly disclosed vs merged deps, SAST-rule drift, coverage | | **Template-drift** (14b) | deterministic | GitHub Actions `on: schedule` | project N `vX.Y.Z` releases behind its template → `/wellforge:upgrade` | | **Fleet** (14b) | agentic | Claude Code routine (scheduled) | org-wide: which projects drifted / have failing gates → one rolling report | | **Spec-health** (14b) | **deterministic discovery + agentic digest** | `forge-state.py` then a Claude Code routine / manual `/wellforge:triage` | stale `in-progress`, unresolved drift, passed-QE-never-eval'd, parked-before-started, invalid frontmatter | Deterministic heartbeats are **GitHub Actions** — cheap, no tokens, no auth surprises; they reuse the reusable gate workflows (`gates-v*`) rather than duplicating logic. Agentic heartbeats need **judgment** (triage, summarize, prioritize) so they run as scheduled Claude Code agents. **The split runs through a heartbeat, not just between them.** Spec-health used to be listed as wholly agentic, which meant the model re-read every spec's frontmatter, recounted every checkbox and re-joined every verdict on each run — discovery work, priced as judgment. It is now **`forge-state.py` + a fixed rendering**: the script produces the `forge-state/v1` envelope (statuses, tiers, task counts, drift, verdicts, done gates, schema violations), the signal rules are filters over that envelope, and the model is needed only for the **digest prose** — what to say about the findings and in what order a human should care. Three things follow, and they are the reason to prefer this shape wherever a heartbeat can take it: - **It is testable.** `scripts/tests/forge-state.test.py` pins every status, tier, drift case and verdict kind. A prompt that recounts checkboxes cannot be tested at all. - **It catches what prose cannot.** `status: doen` is a typo a model reads as approximately-`done` and a schema rejects outright. That became a triage signal only once discovery was deterministic. - **It is stable across runs.** Same inputs, same envelope — so a digest that changes means the repository changed, not that the model read it differently this morning. ## Rules every heartbeat follows 1. **One deduplicated issue per concern.** A heartbeat that opened a fresh issue each run would train people to ignore it. Keep exactly one open issue per concern (identified by a label: `heartbeat`, `template-drift`, …): open on first finding, **update in place** each run, close with a comment when the finding clears. The reusable `heartbeat-report.yml` does this for the deterministic heartbeats; agentic ones follow the same update-in-place discipline. 2. **Off for `spike`.** A spike has no enforced gates or lifecycle guarantees to watch (rigor-tiers skill). Deterministic heartbeats aren't generated for `rigor: spike`; agentic ones skip spike-only projects. 3. **Opt-in, recorded.** Per-project heartbeats are a copier answer (`heartbeat` + `heartbeat_cron`) recorded in `.forge/manifest.json` — visible, upgradable, never silent. 4. **Cost-bounded (agentic).** A scheduled agent runs unattended and costs tokens. Bound it: cheap model for the triage sweep, escalate to a stronger model only on a real finding; cap the work per run; never loop unbounded. State the bound in the routine. 5. **Auth degrades gracefully (agentic).** Interactively-authenticated MCP servers (e.g. the github MCP) may be **absent in headless/cron runs**. A scheduled heartbeat must fall back to `gh` CLI / REST with a `GITHUB_TOKEN`, never assume an interactive MCP connection. 6. **Recorded like any run.** An agentic heartbeat writes a run trace per the **observability** skill (`.forge/runs/…-triage-…json`, or `command: heartbeat`); the deterministic ones leave their audit trail in the tracking issue's history. ## Cadence Default **weekly** (`0 6 * * 1`, Mon 06:00 UTC) — low noise, still catches CVEs within days, and the single-issue-updated-in-place model keeps it fresh without alert fatigue. Configurable per project (`heartbeat_cron`) and per routine. Don't go tighter than the finding actually moves. ## See also - **rigor-tiers** — why spike is excluded and how tiers gate ceremony. - **observability** — the `.forge/runs/` trace format agentic heartbeats write. - **connections** — wiring a scheduled routine and its `GITHUB_TOKEN` / secrets. - `gates/README.md` — the deterministic `heartbeat-report.yml` / `template-drift.yml` workflows.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · matteocodogno/wellforge | 90 | MIT |
| crisandrews/clawcode | 100 | MIT |
| Aicoo-Team/AICOO-Skills | 100 | MIT |
| wotai-dev/woterclip | 100 | MIT |
| matteocodogno/wellforge | 90 | MIT |
Database snapshot: 13.11.2026 · package version 8e3e38687ed4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100codex-automation-architect
Use when designing, reviewing, or updating Codex app automations, cron jobs, scheduled tasks, recurring runs, or heartbeat follow-ups. - 95claw-heartbeat-delegation
Task delegation to the heartbeat agent via HEARTBEAT.md. Use when scheduling follow-ups, recurring checks, or recording background jobs for later monitoring. - 100spec-driven
WellForge spec-driven development conventions: the spec → plan → tasks workflow, file formats, status lifecycle, and drift rule. Use whenever working in a project that has a specs/ directory, when the user mentions a spec, feature specification, or task list, when implementing… - 100scheduled-task-resilience
Guardrails for polling, scheduled jobs, and long-running external operations. Use whenever a task waits on CI, builds, deploys, browser jobs, or another asynchronous API so work survives heartbeat checks without duplicate delivery. - 100heartbeat-log
This skill should be used when the user asks to "show heartbeat log", "heartbeat history", "what has woterclip done", "show agent activity", "summarize heartbeats", or wants to analyze past heartbeat activity. Parses heartbeat-log.jsonl for summaries and analytics. - 95do.heartbeat
Batched proactive check-in over vault state — silence by default, propose-approve. Use when the user asks "今天该干什么", "帮我看看有什么要做的", "有什么要我处理的", "巡检一下", "anything I should deal with", "what needs my attention", or when a scheduled heartbeat job wakes you up. Also use for evaluating…