Repository navigation
docs(heartbeat): align retired config options with fixed runtime policies - #113455
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 24, 2026, 8:46 PM ET / July 25, 2026, 00:46 UTC. ClawSweeper reviewWhat this changesUpdates seven heartbeat documentation surfaces plus related comments and tests so retired configuration fields are no longer advertised and fixed delivery, cadence, and busy-deferral policies are described consistently. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain The branch is a focused documentation and regression-test alignment for heartbeat policies that the PR describes as already fixed in runtime. It has no discrete patch defect in the supplied diff, but the protected Priority: P3 Review scores
Verification
How this fits togetherHeartbeat is OpenClaw’s periodic agent turn: configuration determines cadence and targeting, the scheduler decides whether a run may proceed, and the runner selects an outbound-capable reply or suppresses an acknowledgement. The configuration schema, runtime comments, tests, and gateway documentation all need to describe the same supported heartbeat contract. flowchart LR
A[Heartbeat configuration] --> B[Strict profile and config parsing]
B --> C[Heartbeat scheduler]
C --> D[Agent heartbeat turn]
D --> E[Reply payload selection]
E --> F[Outbound alert or silent acknowledgement]
G[Gateway documentation] --> A
Decision needed
Why: The patch intentionally codifies policy that affects documented configuration expectations, and the protected label requires explicit human handling rather than automated cleanup. Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +22, Docs +3. Total +23 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the fixed-policy documentation and targeted rejection coverage, then attach a short redacted real validation transcript showing that a profile containing Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: the PR aligns existing documentation and coverage with an already-established fixed runtime policy. The relevant validation is a real profile parse showing that the retired field is rejected with the stated diagnostic. Is this the best way to solve the issue? Yes, conditionally: removing stale configuration guidance and pinning strict rejection is narrower and more maintainable than restoring retired runtime switches. A maintainer should still confirm the documented fixed-policy wording and real operator-facing diagnostic before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4e51e7addaf2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…cies The runtime retirement already shipped: busy deferral is automatic, reasoning payloads stay internal, the HEARTBEAT_OK ack budget is fixed at 300 chars, the Heartbeats prompt section follows cadence, and tool-error warnings are always on. Docs still advertised skipWhenBusy, ackMaxChars, includeReasoning, includeSystemPromptSection, and suppressToolErrorWarnings as live options; this aligns seven pages with the fixed policies and the strict heartbeat field list, locks the claw-profile skipWhenBusy rejection diagnostic with a dedicated test, renames includeReasoning-era test/comments, and canonicalizes claw add-plan workspace path assertions (macOS realpath).
e55f06e to
1dc5d90
Compare
|
Merged via squash.
|
…cies (openclaw#113455) The runtime retirement already shipped: busy deferral is automatic, reasoning payloads stay internal, the HEARTBEAT_OK ack budget is fixed at 300 chars, the Heartbeats prompt section follows cadence, and tool-error warnings are always on. Docs still advertised skipWhenBusy, ackMaxChars, includeReasoning, includeSystemPromptSection, and suppressToolErrorWarnings as live options; this aligns seven pages with the fixed policies and the strict heartbeat field list, locks the claw-profile skipWhenBusy rejection diagnostic with a dedicated test, renames includeReasoning-era test/comments, and canonicalizes claw add-plan workspace path assertions (macOS realpath).
What Problem This Solves
The heartbeat config retirement shipped in the #110950 series left stale surfaces behind: seven docs pages still advertised
skipWhenBusy,ackMaxChars,includeReasoning,includeSystemPromptSection, andsuppressToolErrorWarningsas live options, while the runtime has fixed policies (automatic busy deferral, internal-only reasoning payloads, fixed 300-char HEARTBEAT_OK budget, cadence-driven prompt section, always-on tool-error warnings). Tests and code comments still referenced the retiredincludeReasoning/ackMaxCharssemantics.This is rescued work from the original retirement effort (never committed by its session), re-derived against current main — #112773 had already removed
skipWhenBusyfrom the claw profile schema, so this PR locks that rejection in with a dedicated diagnostic test rather than re-deleting it. Rebased onto current main; the heartbeat-runner comment hunk was dropped because theclassifyHeartbeatAgentOutcomerefactor already deleted that comment's code region.Why This Change Was Made
Docs promising config fields that do nothing mislead operators; strict config surfaces need matching strict documentation. Executable source changes are comment-only. Operator decision: land now.
User Impact
Documentation states the strict heartbeat field list and fixed policies. Claw profiles using retired
heartbeat.skipWhenBusyget a clear diagnostic naming the field (behavior already present via strict parsing; now pinned by test).Evidence
Real behavior proof (live run, source CLI via
node --import tsx src/entry.tson this branch head; paths redacted): a claw package whose OpenClaw profile (profiles/demo.openclaw.yml) still declares the retired field —This is the operator-visible diagnostic the new
openclaw-profile.test.tsassertion pins ($.agent.heartbeat, message namingskipWhenBusy; the CLI prefixes the profile path).Additional proof:
skipWhenBusyoutside changelog/history remains only in the rejection test, dead-config-keys test, and doctor legacy-migration entry.