update: 编辑整理文档 context_study

MemRelay-Operation: curated-update:293586da-c6d2-41da-9ea7-701e3974d19f:2
MemRelay-Resource: 293586da-c6d2-41da-9ea7-701e3974d19f
This commit is contained in:
2026-10-08 15:06:54 +08:00
parent 3c21391ece
commit aabd251a0b
2 changed files with 39 additions and 17 deletions
@@ -1,7 +1,7 @@
---
title: Study & Knowledge Capture Practices
title: 知识记录与证据核对约定
type: curated
permalink: main/global/curated/7aee455b-24cc-4008-bdaf-443721e6f939/contexts/study-knowledge-capture-practices
permalink: main/global/curated/0c9feb46-d06e-43cd-9ef0-c5813c84a998/contexts/知识记录与证据核对约定
stable_id: 293586da-c6d2-41da-9ea7-701e3974d19f
scope: global
project_id: null
@@ -9,7 +9,7 @@ workspace_type: global
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
preference_context: global
document_type: context_study
revision: 1
revision: 2
source_memory_ids:
- d8161df6-3159-46c9-9402-c5ab30d1436e
source_checkpoint_ids: []
@@ -18,7 +18,7 @@ source_git_commit: null
source_git_commits: []
source_agent_sync_ids: []
model_connection: Sub2API
model_name: git-restore
model_name: manual
source_count: 90
source_revisions:
memory:5ed86f53-b53e-4534-8e51-d3a010069d5e: '2'
@@ -77,24 +77,22 @@ source_hash: b84354eb37ab531c5be3076d5c3f130399f235bc33c8cf9453cbfcecae042e49
prompt_version: 2026-08-12.3
schema_version: '3'
curation_job_id: null
created_at: '2026-08-08T07:55:45.147252+00:00'
updated_at: '2026-09-23T14:50:22.150040+00:00'
created_at: '2026-09-23T14:50:25.724550+00:00'
updated_at: '2026-10-08T07:06:48.469450+00:00'
tags:
- study
- global
- curated
- manual
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
---
# Current Study Context (Global)
# 学习与知识记录约定
## Project Activity Log
- Use `aidocs/project_context.md` as the sole source of project notes. The file has a fixed header and entries are added newest‑first with a second‑level timestamp containing **what, why, validation, issues, next steps**.
已确认规则、事实、经验和进度保存MemRelay;检查点记录做了什么、原因、验证、问题和下一步。MemRelay可用时不维护本地aidocs副本;只有不可用时才离线暂存,恢复后去重同步。
## Credential Handling
- Before any exploratory login, SSH, database or API call, query Vaultwarden. If exactly one match, use it directly. New or updated credentials must be written to the password vault immediately; notes record only the entry name, purpose and usage method – never the secret itself.
区分当前事实、历史记录和未确认设想,不把猜测或临时观测提升为稳定知识。引用代码时核对真实文件/版本,避免错误来源引用。
## Optional AI Assistance
- AI‑driven memory aggregation is **disabled by default**; the system will not load models or create a `.git` directory without explicit enable.
登录、SSH、数据库和API操作前查询MemRelay密码库,唯一匹配直接使用;新改凭据立即入密码库,笔记不保存秘密。
## Tags
["study","global"]
AI整理是否开启、模型是否可用、记忆Git是否开启均以capabilities_get返回状态为准;不擅自修改这些设置或创建/恢复记忆仓库。
本正文取代旧“aidocs唯一存储”“AI整理固定默认状态”的过时说明。
@@ -0,0 +1,24 @@
---
title: 子模块:CapacityReport 与 InterferenceETL 当前实现
type: fact
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/子模块-capacity-report-与-interference-etl-当前实现
stable_id: a3896ad9-d30c-4963-9232-a7d1ab571d19
scope: project
memory_type: fact
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
usage_profile_id: null
status: active
revision: 2
request_id: metrix-correct-original-plugin-fact-02
created_at: '2026-09-23T15:10:19.815926+00:00'
updated_at: '2026-10-08T07:06:52.968979+00:00'
tags:
- submodule
- source-verified
- plugins
---
两个Git子模块位于plugins/CapacityReport及plugins/InterferenceETL,远端为Metrix组对应仓库,main分支;新克隆git submodule update --init --recursive。当前CapacityReport .git为内嵌目录,InterferenceETL .git为指向父仓.git/modules的文件。
CapacityReport独立FastAPI/Vue容量报表应用并有Tauri桌面版。source_type与warehouse_type分别选择直连或Metrix平台;平台链路存储API→CSV→异步导入→single_session执行本地ReportScript.sql文本→查询导出。CellData仍含直连FTP/SFTP/PyMySQL路径,不能以平台仓库模式推断全部走API。源码依据app/warehouse.py/services/platform.py/services/pipeline.py及routers。实际部署、授权配置与凭据以运行实例核对,旧部署项目ID/到期时间不作为当前固定事实。
InterferenceETL独立Python单批处理,runtime_config.py配置Metrix API和连接ID,openpyxl依赖通过vendor离线包提供。当前main.py按自然15分钟最新组,每源取组内最新文件,缺7类之一则waiting不回退。处理CellData、阈值/CGI去重、1km邻区分类、prev_对比,通过平台数据库API更新,再通过存储API上传GBK历史。--source-dir不关闭数据库,离线需--no-database。通用平台脚本计划负责调度,无InterferenceETL专属cron编辑器。旧小时直连MySQL版本及线上项目ID/路径属于历史记录。
dev.py默认最多四进程Metrix8000/5173、CapacityReport9081/5174;具体选项和本轮改动以当前README及最新checkpoint为准。