gsxdsm
de25e32eac
FN-7963: add plannerHeartbeatPatrolEnabled to gate idle heartbeat task creation
Add a workflow setting that disables idle/no-task heartbeat proactive task creation without turning off planner overseer stuck-task recovery.
- Declare plannerHeartbeatPatrolEnabled (default true) in BUILTIN_OVERSIGHT_SETTINGS
- Resolve the flag via resolveEffectivePlannerHeartbeatPatrolEnabled and wire it into agent-heartbeat/triage prompts
- Render patrol-off instruction when disabled; keep FN-7962 outage backoff lines when patrol stays enabled
- Cover setting defaults, prompt builders, and heartbeat executor paths with tests
- Document the setting in settings-reference and add a changeset
Files changed:
.changeset/fn-7963-planner-heartbeat-patrol.md | 7 ++
docs/settings-reference.md | 11 +-
packages/core/src/__tests__/agent-prompts.test.ts | 29 +++++
.../builtin-workflow-settings-triage.test.ts | 21 ++++
.../plannerHeartbeatPatrolEnabled-default.test.ts | 64 ++++++++++
packages/core/src/agent-prompts.ts | 55 +++++++--
packages/core/src/builtin-workflow-settings.ts | 14 +++
packages/core/src/index.gate.ts | 5 +
packages/core/src/index.ts | 5 +
packages/core/src/workflow-settings-resolver.ts | 15 ++-
.../src/__tests__/heartbeat-executor.test.ts | 59 ++++++++-
packages/engine/src/agent-heartbeat.ts | 135 +++++++++++++++++++--
packages/engine/src/triage.ts | 8 +-
13 files changed, 402 insertions(+), 26 deletions(-)
Fusion-Task-Id: FN-7963
Fusion-Task-Lineage: c5e7a382-52c1-4cc1-8b21-aba7dc7d2b97
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-15 12:27:15 -07:00
..
2026-07-15 12:09:29 -07:00
2026-07-13 10:32:12 -07:00
2026-07-15 12:27:15 -07:00
2026-07-15 12:22:33 -07:00
2026-07-15 00:27:59 -07:00
2026-07-13 10:32:12 -07:00
2026-07-15 12:27:15 -07:00
2026-07-15 11:14:17 -07:00
2026-07-13 10:32:12 -07:00
2026-07-13 10:32:12 -07:00
2026-06-08 15:19:27 -07:00
2026-07-15 08:44:11 -07:00