Add the optional intentgate decorator over agent-intent with pass-through and fail-closed tests

Details (original message):
Add the optional intentgate decorator over agent-intent with pass-through and fail-closed tests.
This commit is contained in:
weichen
2026-09-29 15:58:35 +00:00
parent cc8a6a7702
commit 5e489ab2cb
11 changed files with 263 additions and 2 deletions
+1
View File
@@ -21,6 +21,7 @@
- `contract` 不依赖内核、产品类型、数据库或本仓以外的运行时;错误码字符串与 Error-Code-System 的 `agent.*` 规范码对齐,旧字符串只作为别名由错误码库解析。
- 未知结果保持 Unknown,不降级为成功或失败;副作用为 possible/unknown 时禁止无条件重放。
- 缺能力即拒绝,不静默降级到 Stub。Workspace 路径授权不是 OS 沙箱。
- 意图闸门为可选依赖:唯 `adapters/intentgate` 与其测试可 import agent-intent;contract/exec/runtime 等核心不感知意图。未 Wrap 或意图快照为空时,后端行为与原实现一致;识别系统错误 fail-closed。
- 依赖仓版本以本仓 gitlink 为准,不执行 `submodule update --remote`。
任务权威:Gitea 仓库 `weichen/Agent-Native` 的 Issue 与 Pull Request。