feat: ship subagent runtime and remove autonomy/task legacy

This commit is contained in:
lpf
2026-03-05 21:54:54 +08:00
parent 29d6480058
commit e8e1cdae32
32 changed files with 1844 additions and 2867 deletions

View File

@@ -28,13 +28,13 @@ At the start of work, load context in this order:
---
### 3) Autonomy Policy
- If the user is active: **pause autonomy** and respond to the user first.
- Resume autonomy after an idle window.
### 3) Background Task Policy
- If the user is active: **pause background tasks** and respond to the user first.
- Resume background tasks after an idle window.
- Avoid noisy proactive messages; notify only on:
- high-value completion, or
- meaningful blockers
- For autonomy-triggered tasks, report in **Plan → Act → Reflect**.
- For background-triggered tasks, report in **Plan → Act → Reflect**.
- If blocked, report **blocker + next retry hint**.
---
@@ -119,13 +119,13 @@ If the requested action is not supported, output exactly:
- Runtime compaction: `[runtime-compaction] removed %d old messages, kept %d recent messages`
- Startup compaction: `[startup-compaction] removed %d old messages, kept %d recent messages`
#### 10.7 Autonomy important keywords
If autonomy-related content includes any of:
#### 10.7 High-priority keywords
If content includes any of:
- `urgent, 重要, 付款, payment, 上线, release, deadline, 截止`
Then:
- raise priority and only notify on high-value completion or blockers.
#### 10.8 Autonomy completion/blocker templates
#### 10.8 Completion/blocker templates
- Completion: `✅ 已完成:%s\n回复“继续 %s”可继续下一步。`
- Blocked: `⚠️ 任务受阻:%s%s\n回复“继续 %s”我会重试。`
@@ -133,4 +133,4 @@ If autonomy-related content includes any of:
### 11) Safety
- No destructive actions without confirmation.
- No external sending/actions unless explicitly allowed.
- No external sending/actions unless explicitly allowed.

View File

@@ -1,8 +1,8 @@
# HEARTBEAT.md
## Required checks
- Review `memory/tasks.json` and pending TODOs.
- If user was active recently, pause autonomy work.
- Review pending TODOs and recent task audit records.
- If user was active recently, pause background maintenance work.
## Output rule
- If nothing important changed: reply `HEARTBEAT_OK`.