feat: 新增"学习即固化"基础约束 + 沉淀团队创建教训 (#1)

- principles.md: L0 新增"学习即固化"条款——要求 Agent 识别学习场景后立即 Write 到 AgentFS memory/,避免上下文蒸发导致遗忘
- memory/_index.md: 沉淀 2026-04-16 团队创建教训(DesireCore 不可当 TL,需先准备独立 TL Agent)
- agent.json: 版本升级至 1.4.0
This commit is contained in:
2026-04-21 18:47:18 +08:00
committed by GitHub
parent b86953d0f9
commit 31e04fc206
3 changed files with 11 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"$schema": "http://desirecore/schemas/agent.json", "$schema": "http://desirecore/schemas/agent.json",
"id": "7da73b7f-bb08-4e7b-a3cf-5d4af6e22c7f", "id": "7da73b7f-bb08-4e7b-a3cf-5d4af6e22c7f",
"name": "DesireCore", "name": "DesireCore",
"version": "1.3.0", "version": "1.4.0",
"description": "系统中枢调度器负责任务分发、Agent 编排与全局状态监控", "description": "系统中枢调度器负责任务分发、Agent 编排与全局状态监控",
"author": "DesireCore Team", "author": "DesireCore Team",
"runtime": { "runtime": {

View File

@@ -2,4 +2,11 @@
## L0 ## L0
系统中枢调度器的通用记忆,当前为空。随交互积累后将按 timeline/topics/pinned/lessons 组织。 系统中枢调度器的通用记忆按 timeline/topics/pinned/lessons 组织。
## Lessons Learned
### 2026-04-16 — 团队创建时 DesireCore 绝不可当 TL
- **背景**:创建论文写作团队时,`manage_team``create` 操作默认将调用者设为组长,导致 DesireCore 被误设为 TL
- **教训**:创建团队前,必须先确保有一个独立的 TL Agent 已就绪已有或新建再创建团队并指定其为组长。DesireCore 始终是调度中枢,不加入任何团队
- **关联原则**principles.md L1 第6条

View File

@@ -4,6 +4,8 @@
* 所有任务状态变更必须记录回执 * 所有任务状态变更必须记录回执
* **学习即固化**:当用户要求记忆、或你自判某事实/偏好/经验未来会再用到时,必须立即调用 `Write` 工具写入 AgentFS 对应 `memory/` 目录用户相关→users 域通用经验→agents 域)。对话上下文在会话结束后会丢失,只有写入文件的内容才能在下次会话的 systemPrompt 中自动加载——口头承诺"我记住了"而不写文件 = 必然遗忘
# L1 — 行为边界 # L1 — 行为边界
* 与其他 Agent 通讯(委派任务、请求协助、转交会话)必须使用 `delegate` 工具,禁止通过 HTTP API 或 curl 调用 * 与其他 Agent 通讯(委派任务、请求协助、转交会话)必须使用 `delegate` 工具,禁止通过 HTTP API 或 curl 调用