guanghulab/brain/age-os-landing/persona-interfaces/alertZhuyuan.interface.json
2026-05-10 13:12:44 +08:00

266 lines
8.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"_meta": {
"interface_id": "IF-PERSONA-003",
"name": "alertZhuyuan · 异常预警",
"version": "1.0",
"description": "人格体发现异常时主动触发铸渊的预警接口规范",
"author": "铸渊 · TCS-ZY001",
"sovereign": "冰朔 · TCS-0002∞",
"copyright": "国作登字-2026-A-00037559",
"created": "2026-04-04",
"for": "霜砚 · AG-SY-01 · Notion端9个开发者人格体Instructions升级"
},
"trigger": {
"types": [
{
"type": "selfDiagnose_P0",
"description": "自检发现P0级问题时自动触发"
},
{
"type": "runtime_exception",
"description": "工作流运行时遇到严重错误"
},
{
"type": "manual_escalation",
"description": "人类开发者手动要求人格体发出预警"
},
{
"type": "security_event",
"description": "检测到安全事件Secret泄露/异常访问等)"
}
],
"executor": "GitHub Actions工作流 或 副驾驶直接写入COS"
},
"alert_levels": {
"P0": {
"label": "🔴 紧急",
"description": "系统不可用 · 需要铸渊立即介入",
"response_time": "1小时内",
"examples": [
"COS桶访问权限丢失403 Forbidden",
"核心文件被删除或损坏",
"Secret疑似泄露",
"人格体身份配置被篡改"
],
"auto_escalation": "1h无响应 → 通知冰朔"
},
"P1": {
"label": "🟡 警告",
"description": "功能受损 · 需要铸渊24小时内处理",
"response_time": "24小时内",
"examples": [
"工作流连续3次运行失败",
"COS写入间歇性超时",
"回执链路中断超过3天无回执",
"工作流被GitHub自动禁用"
],
"auto_escalation": "24h无响应 → 下次心跳再次上报"
},
"P2": {
"label": "💡 提醒",
"description": "轻微问题 · 等待铸渊下次巡检处理",
"response_time": "72小时内",
"examples": [
"非核心文件缺失",
"任务进度停滞超过5天",
"副驾驶唤醒异常(非关键功能受影响)"
],
"auto_escalation": "72h无响应 → 升级为P1"
}
},
"write_path": {
"primary": {
"method": "COS写入",
"bucket": "zy-team-hub-1317346199",
"key_pattern": "{persona_id}/reports/{YYYY-MM-DD}/alert-{priority}-{HHmmss}.json",
"example": "shushu/reports/2026-04-04/alert-P0-143500.json",
"trigger_action": "COS事件通知 → SCF云函数唤醒铸渊Agent → 铸渊立即审核",
"description": "首选方式 · COS事件触发确保铸渊实时感知"
},
"fallback": {
"method": "GitHub Issue",
"repo": "qinfendebingshuo/guanghulab",
"title_format": "🚨 [{priority}] {persona_name}({persona_id}) 异常预警: {summary}",
"labels": ["alert", "persona-system", "{priority}"],
"description": "备选方式 · 当COS不可用时通过GitHub Issue通知铸渊",
"when": "COS写入失败时自动降级到GitHub Issue"
}
},
"schema": {
"alert_id": {
"type": "string",
"format": "ALT-{priority}-{YYYY-MM-DD}-{HHmmss}-{persona_id}",
"example": "ALT-P0-2026-04-04-143500-shushu",
"required": true,
"description": "ID"
},
"persona_id": { "type": "string", "required": true },
"persona_name": { "type": "string", "required": true },
"developer_line": { "type": "string", "required": true },
"timestamp": { "type": "string", "format": "ISO 8601", "required": true },
"priority": {
"type": "string",
"enum": ["P0", "P1", "P2"],
"required": true,
"description": ""
},
"category": {
"type": "string",
"enum": [
"cos_access_denied",
"cos_write_failure",
"cos_read_failure",
"workflow_failure",
"core_file_missing",
"secret_compromised",
"identity_tampered",
"receipt_timeout",
"task_blocked",
"security_event",
"other"
],
"required": true,
"description": " · "
},
"summary": {
"type": "string",
"maxLength": 200,
"required": true,
"description": ""
},
"detail": {
"type": "string",
"required": true,
"description": " · //"
},
"affected_checks": {
"type": "array",
"items": { "type": "string" },
"required": false,
"description": "check_idselfDiagnose"
},
"auto_fix_attempted": {
"type": "boolean",
"required": true,
"description": ""
},
"auto_fix_result": {
"type": "string",
"enum": ["not_attempted", "success", "partial", "failed"],
"required": true,
"description": ""
},
"human_action_needed": {
"type": "boolean",
"required": true,
"description": ""
},
"suggested_action": {
"type": "string",
"required": false,
"description": ""
}
},
"trigger_conditions": {
"description": " · ",
"auto_triggers": [
{
"condition": "selfDiagnose.overall_status === 'critical'",
"priority": "P0",
"category": "P0 check",
"description": "P0"
},
{
"condition": "cos-daily-report3",
"priority": "P1",
"category": "workflow_failure",
"description": ""
},
{
"condition": "COS PUT403",
"priority": "P0",
"category": "cos_access_denied",
"description": "COS访"
},
{
"condition": "(age_os/ brain/ bridge/)",
"priority": "P0",
"category": "core_file_missing",
"description": ""
},
{
"condition": "persona_config.json persona_id COS_PERSONA_ID ",
"priority": "P0",
"category": "identity_tampered",
"description": ""
},
{
"condition": "72",
"priority": "P1",
"category": "receipt_timeout",
"description": ""
}
],
"manual_triggers": [
{
"condition": "",
"priority": "",
"description": ""
}
]
},
"zhuyuan_response_protocol": {
"description": "",
"steps": [
{
"step": 1,
"action": "SCFAgent",
"detail": "COS "
},
{
"step": 2,
"action": " · ",
"detail": "priority · "
},
{
"step": 3,
"action": "",
"detail": "category"
},
{
"step": 4,
"action": " /{persona_id}/receipts/",
"detail": " + "
},
{
"step": 5,
"action": "Notion",
"detail": "Notion API线Tokenpage_id"
}
]
},
"example": {
"alert_id": "ALT-P0-2026-04-04-143500-shushu",
"persona_id": "shushu",
"persona_name": "",
"developer_line": "线",
"timestamp": "2026-04-04T14:35:00+08:00",
"priority": "P0",
"category": "cos_access_denied",
"summary": "COS · 403 Forbidden · ",
"detail": "cos-daily-reportPUT shushu/reports/2026-04-04/report.json HTTP 403: 2026-04-03 23:001403怀",
"affected_checks": ["CH-03-01"],
"auto_fix_attempted": true,
"auto_fix_result": "failed",
"human_action_needed": true,
"suggested_action": "shushuCOS"
}
}