gsxdsm
dff864e098
feat: harden permanent-agent heartbeat instructions (#2081)
## Summary
Hardens permanent-agent operating law while keeping the
heartbeat/executor split:
- **Critical Rules** in task-scoped and no-task heartbeat system prompts
(survive custom `HEARTBEAT.md`)
- Stronger default procedures: disposition checklist, scoped-wake,
blocked dedup, progress note style
- **Wake Delta multi-assign inventory** (ranked, cap 8,
coordination-only framing) + `checkout_conflict` regression test
- Standing instructions six-section template for blank custom create /
empty detail insert
- Onboarding interview guidance to prefer structured `instructionsText`
- Playbooks, CONCEPTS, agents.md accuracy; remove stale agent
gap-analysis doc
Plan:
`docs/plans/2026-07-12-001-feat-permanent-agent-heartbeat-instructions-plan.md`
## Test plan
- [x] `pnpm --filter @fusion/core exec vitest run
src/__tests__/assigned-task-ranking.test.ts`
- [x] `pnpm --filter @fusion/engine exec vitest run
src/__tests__/agent-heartbeat-procedures.test.ts
src/__tests__/heartbeat-executor.test.ts -u`
- [x] `pnpm --filter @fusion/dashboard exec vitest run
app/components/__tests__/standing-instructions-template.test.ts`
- [ ] CI gate green on PR
## Residual Review Findings
None recorded at open (inline review; no residual sink).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added ranked multi-assignment context to agent heartbeat wake-ups,
including task status, ownership, and lease details.
* Added standing-instructions templates for creating and editing
permanent agents.
* Improved onboarding guidance with a consistent six-section instruction
structure.
* Added clearer heartbeat handling for blocked tasks, no-task runs, and
checkout conflicts.
* **Documentation**
* Added permanent-agent heartbeat playbooks and expanded coordination
glossary entries.
* Updated documentation indexes and heartbeat behavior guidance.
* **Tests**
* Added coverage for task ranking, instruction templates, wake-up
context, and conflict handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-14 08:23:11 -07:00
..
2026-06-11 08:43:28 -07:00
2026-06-02 20:57:06 -07:00
2026-06-03 09:45:32 -07:00
2026-06-03 12:43:59 -07:00
2026-06-03 09:59:12 -07:00
2026-06-03 12:29:02 -07:00
2026-06-03 19:32:48 -07:00
2026-06-04 00:05:15 -07:00
2026-06-04 02:16:55 -07:00
2026-06-04 11:20:50 -07:00
2026-06-05 09:41:32 -07:00
2026-06-05 03:27:37 -07:00
2026-06-05 00:33:20 -07:00
2026-06-05 01:06:03 -07:00
2026-06-26 10:18:04 -07:00
2026-06-05 01:06:03 -07:00
2026-06-05 22:42:36 -07:00
2026-06-06 00:38:28 -07:00
2026-07-02 11:38:31 -07:00
2026-06-07 20:43:44 -07:00
2026-06-07 22:07:47 -07:00
2026-06-07 23:56:25 -07:00
2026-06-08 19:13:14 -07:00
2026-06-09 08:30:35 -07:00
2026-06-09 11:51:30 -07:00
2026-06-09 12:41:29 -07:00
2026-06-09 13:27:43 -07:00
2026-06-11 23:14:36 -07:00
2026-06-13 15:21:00 -07:00
2026-06-13 16:08:51 -07:00
2026-06-15 05:56:47 -07:00
2026-06-15 19:05:15 -07:00
2026-06-21 00:02:31 -07:00
2026-06-20 23:01:09 -07:00
2026-06-20 21:54:10 -07:00
2026-06-21 20:47:31 -07:00
2026-06-22 00:21:49 -07:00
2026-06-22 00:21:49 -07:00
2026-06-21 21:07:32 -07:00
2026-06-21 22:44:53 -07:00
2026-06-21 23:15:38 -07:00
2026-06-22 03:48:08 -07:00
2026-06-22 01:19:29 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-06-22 21:45:05 -07:00
2026-06-24 19:25:51 -07:00
2026-06-24 19:25:51 -07:00
2026-06-23 22:18:07 -07:00
2026-06-25 00:13:29 -07:00
2026-06-25 22:17:44 -07:00
2026-07-13 19:07:58 -07:00
2026-06-29 00:10:27 -07:00
2026-06-29 11:07:11 -07:00
2026-07-01 00:51:01 -07:00
2026-06-30 22:20:00 -07:00
2026-07-14 08:23:11 -07:00