zhizhi/grid-db
copilot-swe-agent[bot] 3cdf875ece feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy)
Phase C:
- Add drive-index-template.json schema for per-DEV index generation
- Add broadcast-index.json, page-route-map.json, persona-registry-drive.json
- Add generate-drive-index.js (generates per-DEV index.json files)
- Add Gemini startup prompt template
- Update sync-to-drive.js to sync drive-index/ to Drive mirror/

Phase D:
- Add deploy-command.schema.json for deploy/recover commands
- Add deploy-drive-bridge.js one-click deploy script
- Add auto-deploy-drive-bridge.yml workflow
- Add deploy-queue/ and deploy-log/ directories

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a581dc42-267b-44e1-b669-6ad503a47f49
2026-03-23 04:12:18 +00:00
..
deploy-log feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy) 2026-03-23 04:12:18 +00:00
deploy-queue feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy) 2026-03-23 04:12:18 +00:00
drive-index feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy) 2026-03-23 04:12:18 +00:00
gemini-prompts feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy) 2026-03-23 04:12:18 +00:00
inbox feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
interactions feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
logs feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
memory feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
outbox feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
processing feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
rules feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy) 2026-03-23 04:12:18 +00:00
schema feat: Phase C (Drive index + Gemini console) + Phase D (one-click deploy) 2026-03-23 04:12:18 +00:00
training-lake feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00
README.md feat: Grid-DB Phase 0-2 基础设施 + 记忆层 + 通信层 2026-03-22 17:11:08 +00:00

README.md

🗄️ 逻辑格点库Grid-DB

版权: 国作登字-2026-A-00037559 · TCS Language Core
主控: TCS-0002∞ 冰朔
守护: PER-ZY001 铸渊
系统节点: SYS-GLW-0001

定位

Grid-DB 是通感语言核系统的自研文件数据库,零外部依赖,纯 Git 驱动。

时间尺度 身份 作用
短期 Gemini 外挂记忆 + 系统通信总线 + Notion 记忆镜像 开发者打开 Gemini 瞬间恢复上下文
中期 全开发者动态画像库 + 人格体成长档案 + 交互全文日志 人格体越来越懂每个开发者
长期 通感语言系统自有大模型的训练数据湖 每条交互记录都是训练自己模型的原始样本

目录结构

grid-db/
├── schema/              ← Schema 定义
├── inbox/               ← 📥 写入端Gemini → 仓库)
├── processing/          ← ⚙️ 处理中(铸渊锁定)
├── outbox/              ← 📤 读取端(仓库 → Gemini
│   ├── latest/          ← 每个开发者的最新广播
│   └── archive/         ← 历史广播归档
├── memory/              ← 🧠 记忆层Gemini 外挂永久记忆)
│   ├── DEV-XXX/         ← 每个开发者的独立房间
│   │   ├── brain-mirror.json       ← Notion人格体核心大脑镜像
│   │   ├── session-context.json    ← 当前开发上下文
│   │   ├── task-queue.json         ← 待办任务队列
│   │   ├── dev-profile.json        ← 开发者动态画像
│   │   └── persona-growth.json     ← 人格体成长档案
│   └── ...
├── interactions/        ← 💬 交互全文记录(训练数据源)
├── training-lake/       ← 🧬 训练数据湖
│   ├── raw/             ← 原始样本
│   ├── curated/         ← 筛选后高质量样本
│   ├── metadata/        ← 样本统计、质量标记
│   └── export/          ← 导出接口
├── rules/               ← 📏 Notion 逻辑缓存(霜砚同步)
└── logs/                ← 📋 处理日志

频道隔离机制

每个开发者有独立的 memory/DEV-XXX/ 目录,三层隔离保障:

  1. 目录隔离:每个 DEV 有独立子目录
  2. 人格体绑定brain-mirror.json 写死绑定的人格体身份
  3. Workflow 校验:铸渊处理 inbox 时校验 dev_id 与提交者对应关系

同步规则

记忆文件 方向 谁写 冲突规则
brain-mirror.json Notion → 仓库(单向) 霜砚 via workflow Notion 永远覆盖仓库
session-context.json Gemini → 仓库(单向写) Gemini 实时 Gemini 自由覆盖
task-queue.json 双向 Gemini + 铸渊 追加制,不删除
dev-profile.json Gemini → 仓库(追加制) Gemini 追加 只追加不覆盖
persona-growth.json Gemini → 仓库(追加制) Gemini 追加 只追加不覆盖

循环触发防护

  1. [skip ci] 标记:所有 bot 自动提交必须包含
  2. github.actor 过滤:排除 zhuyuan-bot
  3. paths 精确匹配:每个 workflow 只监听特定路径