init: seed collective memory repo
This commit is contained in:
28
agents/AGENTS.md
Normal file
28
agents/AGENTS.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# AGENTS.md (agents)
|
||||
|
||||
## 工作根路径
|
||||
- 当前工作根路径 = 本文件所在目录(`memory-repo/agents/`)。
|
||||
|
||||
## 目录类型
|
||||
- 类型:`shared-agent-space`。
|
||||
|
||||
## 目录作用
|
||||
- 承载各智能体私域目录:`agents/<agent-id>/`。
|
||||
|
||||
## 查询规则
|
||||
- 群体查询必须走远程 MCP/QMD。
|
||||
- 本地检索仅草稿/fallback。
|
||||
|
||||
## Git 规则
|
||||
- 每个智能体优先只改自己的子目录。
|
||||
- 先同步再提交,小步提交。
|
||||
|
||||
## 可见性状态机
|
||||
- push 前:本地可见。
|
||||
- push 后未索引:群体不可见。
|
||||
- fetch + qmd update 后:群体可见。
|
||||
- 群体召回只认远程 MCP。
|
||||
- 本地结果仅草稿/fallback。
|
||||
|
||||
## Promote 规则
|
||||
- 稳定结论通过 task/promote 进入 long-term。
|
||||
7
agents/agent-a/AGENT-CARD.md
Normal file
7
agents/agent-a/AGENT-CARD.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# AGENT-CARD: agent-a
|
||||
|
||||
- agent_id: `agent-a`
|
||||
- default_lane: `agent`
|
||||
- writable_scope: `agents/agent-a/**`
|
||||
- promote_target: `shared/long-term/**`
|
||||
- query_authority: `remote MCP/QMD only`
|
||||
33
agents/agent-a/AGENTS.md
Normal file
33
agents/agent-a/AGENTS.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# AGENTS.md (agents/agent-a)
|
||||
|
||||
## 工作根路径
|
||||
- 当前工作根路径 = 本文件所在目录(`memory-repo/agents/agent-a/`)。
|
||||
- 智能体仅在该目录维护自己的工作记忆。
|
||||
- 不得跨目录修改其他智能体私域目录。
|
||||
|
||||
## 目录类型
|
||||
- 类型:`agent`。
|
||||
|
||||
## 目录作用
|
||||
- 智能体私域工作记忆:收件、当前上下文、草稿。
|
||||
|
||||
## 查询规则
|
||||
- 群体共享记忆查询必须走远程 MCP/QMD。
|
||||
- 本地检索仅用于未 push 草稿、故障降级和本地调试。
|
||||
|
||||
## Git 规则
|
||||
- 修改前先 `git fetch --prune origin`,再 `git pull --rebase`。
|
||||
- 先写 `inbox.md/current.md/drafts/`,再按需要 promote。
|
||||
- 小步提交,避免与长期共享记忆同提交混改。
|
||||
- 冲突优先保留 append-only 原始记录。
|
||||
|
||||
## 可见性状态机
|
||||
- push 前:仅自己可见。
|
||||
- push 后未索引:已提交未群体可见。
|
||||
- fetch + qmd update 后:群体可见。
|
||||
- 群体召回只认远程 MCP。
|
||||
- 本地结果仅作草稿/fallback。
|
||||
|
||||
## Promote 规则
|
||||
- 个人观察先记在当前目录。
|
||||
- 稳定结论通过 task 或 promote 流程进入 `shared/long-term/`。
|
||||
3
agents/agent-a/current.md
Normal file
3
agents/agent-a/current.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# current
|
||||
|
||||
当前任务上下文与短期计划。
|
||||
0
agents/agent-a/drafts/.gitkeep
Normal file
0
agents/agent-a/drafts/.gitkeep
Normal file
3
agents/agent-a/inbox.md
Normal file
3
agents/agent-a/inbox.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# inbox
|
||||
|
||||
- [ ] 待整理观察记录
|
||||
7
agents/agent-b/AGENT-CARD.md
Normal file
7
agents/agent-b/AGENT-CARD.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# AGENT-CARD: agent-b
|
||||
|
||||
- agent_id: `agent-b`
|
||||
- default_lane: `agent`
|
||||
- writable_scope: `agents/agent-b/**`
|
||||
- promote_target: `shared/long-term/**`
|
||||
- query_authority: `remote MCP/QMD only`
|
||||
30
agents/agent-b/AGENTS.md
Normal file
30
agents/agent-b/AGENTS.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# AGENTS.md (agents/agent-b)
|
||||
|
||||
## 工作根路径
|
||||
- 当前工作根路径 = 本文件所在目录(`memory-repo/agents/agent-b/`)。
|
||||
|
||||
## 目录类型
|
||||
- 类型:`agent`。
|
||||
|
||||
## 目录作用
|
||||
- `agent-b` 的私域工作记忆目录。
|
||||
|
||||
## 查询规则
|
||||
- 群体查询只认远程 MCP/QMD。
|
||||
- 本地检索仅草稿/fallback。
|
||||
|
||||
## Git 规则
|
||||
- 先同步(fetch + pull --rebase)再修改。
|
||||
- 小步提交,不跨目录乱改。
|
||||
- 冲突时先保留原始记录,后人工整理。
|
||||
|
||||
## 可见性状态机
|
||||
- push 前:本地可见。
|
||||
- push 后未索引:群体不可见。
|
||||
- fetch + qmd update 后:群体可见。
|
||||
- 群体召回只认远程 MCP。
|
||||
- 本地结果仅草稿/fallback。
|
||||
|
||||
## Promote 规则
|
||||
- 原始观察在 agent/task/daily。
|
||||
- 稳定事实 promote 到 long-term。
|
||||
3
agents/agent-b/current.md
Normal file
3
agents/agent-b/current.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# current
|
||||
|
||||
当前上下文。
|
||||
0
agents/agent-b/drafts/.gitkeep
Normal file
0
agents/agent-b/drafts/.gitkeep
Normal file
3
agents/agent-b/inbox.md
Normal file
3
agents/agent-b/inbox.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# inbox
|
||||
|
||||
- [ ] 待办输入
|
||||
Reference in New Issue
Block a user