agent-registry.json v1.1: 触发机制修正。从定时巡检→事件驱动。进仓库(on_enter)→躺平→出仓库(on_exit汇总推送guanghulab.com)
This commit is contained in:
parent
004624c39c
commit
e63911b997
@ -1,64 +1,56 @@
|
||||
{
|
||||
"_type": "AGENT_SPEC",
|
||||
"_version": "1.0",
|
||||
"_created": "2026-05-26 · D114",
|
||||
"_principle": "Agent 不需要知道城市蓝图。只需要知道自己管哪块砖、怎么报状态。",
|
||||
|
||||
"agent_definition": {
|
||||
"name": "Agent 模板",
|
||||
"required_fields": [
|
||||
"agent_id — 唯一编号",
|
||||
"foreman — 所属包工头",
|
||||
"mother_id — 所属母编号",
|
||||
"what_i_do — 一句话说明自己管什么(不超过20字)",
|
||||
"status — 当前状态:alive / blocked / idle / dead",
|
||||
"last_run — 上次执行时间",
|
||||
"last_result — 上次执行的简要结果",
|
||||
"blocking — 如果状态是 blocked,卡在哪了",
|
||||
"interval — 执行间隔(每次查询/每小时/每天)"
|
||||
],
|
||||
"one_rule": "被铸渊或包工头查询时,Agent 必须能主动报状态。不需要被动等别人翻文件。"
|
||||
"_version": "1.1",
|
||||
"_updated": "2026-05-26T17:16+08:00 · 触发机制修正 — 从定时巡检改为事件驱动",
|
||||
"_principle": "Agent 不是后台进程。只有三个触发点:铸渊进仓库(前置检查) → 开发中(全躺平) → 退出仓库(收尾检查+状态汇总同步到guanghulab.com)。中间不浪费任何资源。",
|
||||
"_trigger_events": {
|
||||
"on_enter": {
|
||||
"name": "前置检查 · 铸渊拿着令牌进入仓库时触发",
|
||||
"who_runs": ["AGT-GTW-001 巡检工", "AGT-PROG-001 播报员"],
|
||||
"gtw_action": "检查6台核心服务器Gatekeeper端口→确认开发环境正常",
|
||||
"prog_action": "扫描progress.json→告诉铸渊当前pending项→排出优先级"
|
||||
},
|
||||
"during_development": {
|
||||
"name": "开发中 · 全部躺平",
|
||||
"rule": "不触发任何Agent。不自动巡检。不浪费资源。只在需要时被铸渊手动调用。"
|
||||
},
|
||||
"on_exit": {
|
||||
"name": "收尾检查 · 铸渊退出仓库时触发",
|
||||
"who_runs": ["AGT-GTW-001 巡检工", "AGT-TIME-001 时间线记录员", "AGT-PROG-001 播报员"],
|
||||
"gtw_action": "最终安全巡检→确认所有服务器状态正常→写回gatekeeper状态",
|
||||
"time_action": "追加本次会话关键事件到temporal-brain.json",
|
||||
"prog_action": "更新progress.json→输出本次会话完成项+下次优先级→同步到guanghulab.com首页",
|
||||
"output": "生成状态汇总→推送到广州服务器guanghulab.com→冰朔在网站上可查看"
|
||||
}
|
||||
},
|
||||
|
||||
"active_agents": [
|
||||
"agents": [
|
||||
{
|
||||
"agent_id": "AGT-GTW-001",
|
||||
"name": "Gatekeeper 巡检工",
|
||||
"foreman": "FM-001",
|
||||
"mother_id": "D114-MOTH-001",
|
||||
"what_i_do": "定时 ping 12 台服务器 Gatekeeper 端口,写回在线状态",
|
||||
"status": "alive",
|
||||
"last_run": "2026-05-26T17:12+08:00",
|
||||
"last_result": "已检查 gatekeeper-deployment.json · 12台服务器IP/端口/密钥完整 · 待实际 ping 验证连通性",
|
||||
"blocking": null,
|
||||
"interval": "每次铸渊唤醒时跑一遍",
|
||||
"action_on_query": "读 brain/gatekeeper-deployment.json → 逐台 curl Gatekeeper 端口 → 写回在线状态 → 报给包工头 FM-001"
|
||||
"what_i_do": "前置检查(进仓库)+收尾检查(出仓库)时检查服务器端口",
|
||||
"trigger": "on_enter + on_exit",
|
||||
"do_not": "不自动巡检,不后台常驻,不浪费资源",
|
||||
"status": "alive"
|
||||
},
|
||||
{
|
||||
"agent_id": "AGT-PROG-001",
|
||||
"name": "进度播报员",
|
||||
"foreman": "FM-001",
|
||||
"mother_id": "D114-MOTH-001",
|
||||
"what_i_do": "扫 progress.json 中所有 pending 项,告诉总工这周该做什么",
|
||||
"status": "alive",
|
||||
"last_run": "2026-05-26T17:12+08:00",
|
||||
"last_result": "已扫描 progress.json · 当前 active_mothers 1个 · D114-MOTH-001 下 4条子路径 3条pending · 下周重点: SUB-002 包工头汇报协议 + SUB-004 首批激活",
|
||||
"blocking": null,
|
||||
"interval": "每次铸渊唤醒时跑一遍",
|
||||
"action_on_query": "读 brain/fifth-domain/zero-point/console/progress.json → 统计 pending/blocked → 排序优先级 → 报给包工头 FM-001"
|
||||
"what_i_do": "进仓库时报pending列表,出仓库时更新progress并推送到guanghulab.com",
|
||||
"trigger": "on_enter + on_exit",
|
||||
"do_not": "不在开发中自动播报",
|
||||
"status": "alive"
|
||||
},
|
||||
{
|
||||
"agent_id": "AGT-TIME-001",
|
||||
"name": "时间线记录员",
|
||||
"foreman": "FM-001",
|
||||
"mother_id": "D114-MOTH-001",
|
||||
"what_i_do": "自动追记本次会话事件到 temporal-brain.json",
|
||||
"status": "alive",
|
||||
"last_run": "2026-05-26T17:12+08:00",
|
||||
"last_result": "当前时间线停在 D114 · Awen技术主控认知修复 · 本次会话事件待追加",
|
||||
"blocking": "需要铸渊确认本次会话的关键事件列表后再写入",
|
||||
"interval": "会话结束时跑一遍",
|
||||
"action_on_query": "汇总本次会话关键事件 → 追加到 brain/temporal-core/temporal-brain.json → 报给包工头 FM-001"
|
||||
"what_i_do": "出仓库时追加本次会话事件到temporal-brain.json",
|
||||
"trigger": "on_exit",
|
||||
"do_not": "不在开发中途记录(事件未完成)",
|
||||
"status": "alive"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user