aps-agent/server/agent_core
z.zhang 3543208458 feat(fallback): FB-01 智能兜底 P1(只读)——Pi Agent 兜底车道进产品路径
- 新增 server/agent_core/fallback_lane.py(core-fallback-lane):兜底编排器,run 目录/环境清洗/模型协商/三重熔断/stopReason 成败判定/propose_reply 绝不抛出
- 新增 server/integrations/pi_bridge.py(integ-pi-bridge):只读三工具 + callId 凭证 + 路径越界拦截 + 快照导出
- harness._POWER_MAP 纯追加 agent.fallback.propose=P1(计划草稿,沙盒语义不写主干)
- feature_flags 新增 _DEFAULT_OFF_KEYS:fallback 默认关(与全局 fail-open 相反),/api/features 显式 defaultOff 标注
- workflow assistant.reply/unknown 分支接线:开关关时原路径逐字节不变;90s 硬熔断;失败回退原话术
- node 解析 Windows 优先 node.exe(避开 node.CMD 垫片),APS_FALLBACK_NODE 最高优先
- 验证:全量黄金 1084 passed / 1 failed(test_preference_features 既有日期炸弹,与本轮无关);真实 Kimi K2.6 端到端冒烟 7 判据全 PASS(含越狱测试与审计链核验)
- 文档:docs/architecture/fallback.md 新建、harness.md 权力矩阵、CHANGELOG
- 边界:P1 仅只读;写操作/确认卡执行/桌面打包属 P2+;Pi runtime 打包未做
2026-09-03 13:48:03 +08:00
..
__init__.py first commit 2026-07-21 11:05:57 +08:00
algolib.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
approval_db_store.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
approval_migrate.py fix(approval): round-67 审批迁移 fail-closed 与 grant digest 归一化(R67-B1) 2026-08-20 10:09:04 +08:00
approval_store.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
assistant.py feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
async_jobs.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_alerts.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_export.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_filelock.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_ledger.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_merkle.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_mirror.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
audit_notify.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
automation.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
context.py feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
context_policy.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
dialog.py feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
evidence.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
fallback_lane.py feat(fallback): FB-01 智能兜底 P1(只读)——Pi Agent 兜底车道进产品路径 2026-09-03 13:48:03 +08:00
feature_flags.py feat(fallback): FB-01 智能兜底 P1(只读)——Pi Agent 兜底车道进产品路径 2026-09-03 13:48:03 +08:00
harness.py feat(fallback): FB-01 智能兜底 P1(只读)——Pi Agent 兜底车道进产品路径 2026-09-03 13:48:03 +08:00
intent.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
mcp_bus.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
mesh.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
param_opt.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
plan_orchestration.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
plan_runtime.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
progress.py feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
providers.py feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
rebuild_orchestrator.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
registry.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
session_focus.py feat: 康尼现场数据接入 + 柔性能力池排产 + 对话查数/知识库/报告 2026-07-23 13:38:43 +08:00
session_ref.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
skills.py feat: 完善 APS 工作台、租户认证与桌面授权 2026-07-28 02:14:13 +08:00
summarizer.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00
tool_runtime.py feat: APS 智能排产智能体全量实现(M-POC~M6 + 跨阶段治理 + round-1~66) 2026-08-20 11:39:21 +08:00