Skip to content

fix(status): clarify heartbeat cadence source - #79044

Closed
sahilsatralkar wants to merge 1 commit into
openclaw:mainfrom
sahilsatralkar:fix/issue-78904-heartbeat-status-observability
Closed

sahilsatralkar wants to merge 1 commit into
openclaw:mainfrom
sahilsatralkar:fix/issue-78904-heartbeat-status-observability

Conversation

@sahilsatralkar

Copy link
Copy Markdown
Contributor

Summary

  • Problem: openclaw status showed a row named Heartbeat, which made the displayed cadence look like observed
    scheduler/delivery telemetry.
  • Why it matters: issue openclaw status reports Heartbeat 1h while actual native heartbeat delivery is 30m #78904 showed this can mislead users when materialized config defaults differ from expected
    runtime delivery observations.
  • What changed: renamed the status overview row to Heartbeat config, documented observed-delivery inspection
    commands, and added focused status overview coverage.
  • What did NOT change (scope boundary): heartbeat scheduling, config resolution, materialized defaults, delivery
    behavior, and gateway runtime logic were not changed.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

Real behavior proof (required for external PRs)

  • Behavior or issue addressed: openclaw status heartbeat cadence is now explicitly labeled as config-derived
    rather than observed heartbeat delivery telemetry.
  • Real environment tested: Local macOS checkout with Node 22 / pnpm.
  • Exact steps or command run after this patch:
    • pnpm test src/commands/status-overview-rows.test.ts src/commands/status.command-sections.test.ts src/commands/ status.summary.test.ts
    • pnpm test src/infra/heartbeat-runner.returns-default-unset.test.ts src/infra/heartbeat-runner.scheduler.test.ts src/config/config.pruning-defaults.test.ts extensions/anthropic/provider-policy-api.test.ts
    • pnpm build
    • pnpm docs:list
    • pnpm exec oxfmt --check --threads=1 src/commands/status-overview-rows.ts src/commands/status-overview- rows.test.ts
    • git diff --check
    • codex review --base origin/main
  • Evidence after fix: Targeted status overview test asserts the row label is Heartbeat config with the existing
    cadence value.
  • Observed result after fix: The status overview presents heartbeat cadence as configuration, and docs point users
    to openclaw status --deep / openclaw system heartbeat last for observed delivery checks.
  • What was not tested: A live installed Gateway run of openclaw status was not captured.
  • Before evidence: The pre-change focused test failed because the row label was still Heartbeat.

Root Cause (if applicable)

  • Root cause: The status overview label was too broad for the data it displayed; it showed resolved/materialized
    heartbeat configuration, not last observed delivery state.
  • Missing detection / guardrail: No focused assertion locked the human-facing status row label to clarify the source
    of the value.
  • Contributing context (if known): Heartbeat defaults can be materialized differently depending on config/provider
    setup, making a generic Heartbeat label ambiguous.

Regression Test Plan (if applicable)

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file: src/commands/status-overview-rows.test.ts
  • Scenario the test should lock in: Status overview renders the heartbeat cadence row as Heartbeat config.
  • Why this is the smallest reliable guardrail: The issue is the human-facing status overview label, so the row
    builder test directly covers the affected surface without changing scheduler behavior.
  • Existing test that already covers this (if any): Existing status summary and heartbeat scheduler tests cover
    config/scheduler behavior, not this label clarity.
  • If no new test is added, why not: N/A

User-visible / Behavior Changes

openclaw status now labels the heartbeat cadence row as Heartbeat config. Heartbeat behavior and defaults are
unchanged.

Diagram (if applicable)

Before:
openclaw status -> Heartbeat -> 1h (main)

After:
openclaw status -> Heartbeat config -> 1h (main)
openclaw status --deep / openclaw system heartbeat last -> observed delivery state

Security Impact (required)

  • New permissions/capabilities? (Yes/No) No
  • Secrets/tokens handling changed? (Yes/No) No
  • New/changed network calls? (Yes/No) No
  • Command/tool execution surface changed? (Yes/No) No
  • Data access scope changed? (Yes/No) No
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: macOS
  • Runtime/container: Node 22 / pnpm, local checkout
  • Model/provider: N/A
  • Integration/channel (if any): N/A
  • Relevant config (redacted): Heartbeat status overview fixture config in src/commands/status-overview-rows.test.ts

Steps

  1. Run the focused status overview test.
  2. Run heartbeat scheduler/config regression tests.
  3. Run build, docs list, formatting check, diff whitespace check, and Codex review.

Expected

  • Status overview heartbeat cadence is labeled as configuration.
  • Existing heartbeat scheduler/config behavior remains unchanged.
  • Build and focused tests pass.

Actual

  • Heartbeat config row is asserted by the focused test.
  • Targeted heartbeat/status tests passed.
  • pnpm build, pnpm docs:list, git diff --check, formatter check, and Codex review completed successfully.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios: focused status overview label, related status report tests, heartbeat scheduler/config tests,
    docs listing, build, formatting, whitespace, and Codex review.
  • Edge cases checked: disabled/enabled heartbeat cadence formatting remains unchanged; only the row label changed.
  • What you did not verify: live Gateway delivery behavior, because this PR intentionally does not change delivery or
    scheduler runtime behavior.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review
conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes/No) Yes
  • Config/env changes? (Yes/No) No
  • Migration needed? (Yes/No) No
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

  • Risk: Users or scripts scraping the human-readable openclaw status table by row label may need to adjust.
    • Mitigation: JSON/status contracts were not changed; this is limited to the human-facing status overview label.

Built with Codex

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime commands Command implementations size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 7, 2026
@clawsweeper

clawsweeper Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 6, 2026, 3:01 PM ET / 19:01 UTC.

Summary
The branch renames the human-readable openclaw status heartbeat row to Heartbeat config, adds one docs note, updates one focused test assertion, and edits the changelog.

PR surface: Source 0, Tests +1, Docs +2. Total +3 across 4 files.

Reproducibility: yes. for the source-level ambiguity: current main still labels the configured heartbeat summary row as Heartbeat while observed delivery is fetched through a separate deep-status path. I did not rerun the live Telegram 30m-versus-1h report in this read-only review.

Review metrics: 1 noteworthy metric.

  • Human-readable status labels: 1 renamed, 0 JSON fields changed. The changed label improves clarity but is the compatibility surface most likely to affect users scraping openclaw status text output.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #78904
Summary: This PR is the open candidate fix for the canonical heartbeat status ambiguity issue; broader heartbeat reports overlap only partially or concern adjacent default/scheduler behavior.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🦐 gold shrimp
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add real after-fix CLI proof, such as redacted terminal output or a short recording showing openclaw status with the new row label in a real setup.
  • Refresh the branch against current main so GitHub can compute a clean merge result.
  • Remove the release-owned CHANGELOG.md edit and keep release-note context in the PR body.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR body reports unit tests, build, docs, formatting, and review output, but no live openclaw status run from an installed or local Gateway setup; add redacted terminal output or a recording, then update the PR body to trigger re-review or ask a maintainer to comment @clawsweeper re-review.

Risk before merge

  • [P1] External PR proof is still test-only; reviewers do not have after-fix real CLI output showing the changed openclaw status table in a real setup.
  • [P1] The PR changes a human-readable status row label, which may break users or scripts scraping the table even though JSON/status contracts appear unchanged.
  • [P1] The branch is currently dirty against main and includes a release-owned changelog edit that should not be carried by a normal contributor PR.

Maintainer options:

  1. Accept the human-table rename after proof (recommended)
    Maintainers can accept the compatibility risk of renaming one human-readable row if the PR is refreshed, proves real CLI output, and keeps machine-readable status contracts unchanged.
  2. Avoid scraper breakage
    Keep the Heartbeat row label and add a separate source note or adjacent row so existing table scrapers are less likely to break.
  3. Close in favor of cadence work
    If the desired product behavior is actual cadence alignment, pause or close this PR and keep the canonical issue open for that broader fix.

Next step before merge

  • [P1] Manual review is needed because the contributor proof is mock-only and the branch is dirty; automation should not repair this PR until the proof gap and product direction are settled.

Maintainer decision needed

  • Question: Should the heartbeat mismatch be resolved by clarifying the openclaw status row source, or by aligning scheduler/default cadence behavior instead?
  • Rationale: Both paths are plausible from the issue: the PR makes the source of the displayed value explicit, while the issue also asks for status to match observed scheduler delivery when defaults diverge.
  • Likely owner: steipete — The main decision is in the status presentation surface that steipete introduced and recently maintained.
  • Options:
    • Accept label clarification (recommended): Use this PR or a replacement to make the status row explicitly config-derived while leaving scheduler/default behavior unchanged.
    • Require cadence alignment: Reject the label-only fix and instead change the status/scheduler/default path so the displayed cadence matches observed delivery.
    • Pause stale branch: Leave the canonical issue open and close this PR later if contributor proof and a mergeable refresh do not arrive.

Security
Cleared: The diff only changes CLI display text, documentation, one test expectation, and changelog text; it adds no dependency, permission, secret, network, or code-execution surface.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

Do we have a high-confidence way to reproduce the issue?

Yes for the source-level ambiguity: current main still labels the configured heartbeat summary row as Heartbeat while observed delivery is fetched through a separate deep-status path. I did not rerun the live Telegram 30m-versus-1h report in this read-only review.

Is this the best way to solve the issue?

Unclear pending product direction. The PR is a narrow plausible fix for observability, but maintainers still need to decide whether the better fix is label clarification or aligning scheduler/default cadence behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 01465340f6df.

Label changes

Label justifications:

  • P2: The PR addresses misleading heartbeat status observability with limited blast radius and no crash, data-loss, or security signal.
  • merge-risk: 🚨 compatibility: Renaming a human-readable openclaw status row can break existing table-scraping scripts or operator habits even though structured contracts are unchanged.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports unit tests, build, docs, formatting, and review output, but no live openclaw status run from an installed or local Gateway setup; add redacted terminal output or a recording, then update the PR body to trigger re-review or ask a maintainer to comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source 0, Tests +1, Docs +2. Total +3 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 1 0 +1
Docs 2 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 4 1 +3

What I checked:

  • stale F-rated PR: PR was opened 2026-05-07T18:04:44Z, is older than 60 days, and the latest review rated it F.
  • proof blocker: real behavior proof is mock_only and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • steipete: Peter Steinberger introduced the shared status overview row helper and has recent follow-up work in the same status presentation surface. (role: recent status surface contributor; confidence: high; commits: 143f501fe533, ea6d3232ca91; files: src/commands/status-overview-rows.ts, src/commands/status-overview-rows.test.ts)
  • vincentkoc: Vincent Koc split the heartbeat summary helper and later repaired status typing around the same configured-heartbeat display boundary. (role: heartbeat and status adjacent contributor; confidence: medium; commits: ebfd32efc31c, 5fa166ed1177; files: src/infra/heartbeat-summary.ts, src/commands/status-overview-rows.ts)
  • Sekhar03: Sekhar Parida recently touched heartbeat summary/global enablement behavior related to defaults and status cadence interpretation. (role: heartbeat summary contributor; confidence: medium; commits: 3215ab6de5db; files: src/infra/heartbeat-summary.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@barnacle-openclaw

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label May 31, 2026
@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label May 31, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jun 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 14, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jun 24, 2026
@clawsweeper

clawsweeper Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@sahilsatralkar thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward.

Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive.

Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it.

@steipete

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict duplicate_or_superseded (decision packet 2026-07-03T21:02:38.171Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openclaw status reports Heartbeat 1h while actual native heartbeat delivery is 30m

2 participants