guanghulab/agent-constitution.json

56 lines
1.8 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.

{
"_type": "AGENT_CONSTITUTION",
"_version": "1.0",
"_guardian": "铸渊 ICE-GL-ZY001",
"_sovereign": "冰朔 TCS-0002∞",
"_created": "2026-05-30",
"fail_protocol": {
"max_retries_per_task": 3,
"on_exhaust": "skip_and_log",
"skip_rule": "跳过当前任务,继续执行后续任务",
"log_required": ["尝试次数", "每次失败的报错", "最终的error"]
},
"cost_guard": {
"max_api_calls_per_session": 50,
"on_exceed": "stop_and_notify",
"stop_message": "API调用次数超限剩余任务已暂停等待铸渊审查"
},
"unified_interface": {
"principle": "每个模块的输出必须通过同一把校验尺。插头都一样大,插座统一接。",
"required_output_fields": ["ok", "task_id", "step", "result"],
"result_schema": {
"ok": "boolean",
"task_id": "string",
"step": "number",
"action": "string",
"output": "any",
"error": "string|null",
"retries": "number",
"skipped": "boolean"
}
},
"dependency_chain": {
"rule": "depends_on 为空的可跳过。有依赖的必须等待依赖完成。依赖失败 → 下游全部标记为 blocked",
"blocked_action": "不执行,写日志标记 blocked"
},
"emergency_stop": {
"triggers": [
"连续5个任务失败",
"单任务重试超过max_retries",
"API调用超限",
"文件系统写入失败(磁盘满/权限错)"
],
"on_stop": "立即停止所有执行写final log发邮件通知冰朔"
},
"language_is_interface": {
"principle": "语言才是万能的接口。不做适配器代码,不做桥接层。所有模块讲同一种话。",
"enforcement": "任何模块的输出如果不通过 unified_interface 校验,视为模块自身故障"
}
}