v1.6.2 — audit fixes: contains_count + doc sync + host-network comment
Audit Fixes (P2 / P3)
针对 v1.6.1 审计员报告的 5 个修复项:
Fixed
-
core/trigger_impl.py::ContentMatchTrigger现在正确填充:event.matched_keywords: list[str] (实际匹配的关键词列表)event.contains_count: int (contains 列表总长度)
v1.6.1 中
matched_keywords误存为 int count,导致{{event.contains_count}}
模板变量在 script-receiver/cue.yaml 中渲染为空。
Documentation
docker-compose.yml:network_mode: host上方加注释说明 WSL2/Tailscale 兼容原因和防火墙建议SKILL.md/SKILL_CN.md: a2a_content_match 触发器行 + 完整 event payload 表PLUGIN_AUTHORING.md: 新增spec.peers章节 (含 v1.6.1 per-peer token 字段)examples/a2a-with-fallback.yaml/examples/file-watcher.yaml:match: "*"注释
Tests
- 339 passed, 5 skipped
- 新增
tests/test_v162_audit_fixes.py锁住 matched_keywords 列表语义和 contains_count 行为
不变更项
- 协议层 (A2A v1.0.1) 不变
- 公共 API 不变
- 仅修字段类型 + 文档同步