init: seed collective memory repo

This commit is contained in:
Memory Gateway Bot
2026-03-08 14:38:32 +08:00
commit 88d5d979fe
42 changed files with 569 additions and 0 deletions

28
agents/AGENTS.md Normal file
View 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。

View 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
View 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/`

View File

@@ -0,0 +1,3 @@
# current
当前任务上下文与短期计划。

View File

3
agents/agent-a/inbox.md Normal file
View File

@@ -0,0 +1,3 @@
# inbox
- [ ] 待整理观察记录

View 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
View 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。

View File

@@ -0,0 +1,3 @@
# current
当前上下文。

View File

3
agents/agent-b/inbox.md Normal file
View File

@@ -0,0 +1,3 @@
# inbox
- [ ] 待办输入