Claude Code/陈浩#39
Open
True-Uso wants to merge 1 commit into
Open
Conversation
- Planner/Executor/Worker 闭环:状态机、有序事件、结果与成本持久化、幂等与重试 - RAG 权限感知检索+引用溯源+正文净化,移除 debug 泄露 - 安全:提示词注入拦截、run/events 可见性与 404、运行前权限校验、敏感字段集中脱敏、权限拒绝审计 - 业务集成:ERP/BI/供应商风险/OA,OA 写入受权限+策略阈值边界保护 - Dashboard 增量指标;新增泛化与安全测试;填写 COLLABORATION_LOG Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
完成能力点
设计说明
实现了完整的 Agent 任务执行闭环:任务创建后可触发异步 run,Worker 读取任务上下文,Planner 基于 prompt 确定性识别 SKU 与业务意图,Executor 按计划依次调用 ERP、BI、知识库、供应商风险与必要的 OA 工具,并持久化状态、有序事件、最终结果、错误与 token 成本。
核心架构与取舍:
oa:approval:write+ 库存策略阈值(缺口≥30 或销售影响>5000)+ 确为补货风险,缺一即跳过并写tool.skipped+ deny 审计,绝不泄露OA-DRAFT-草稿号。redaction.py,vendor_secret/unit_cost_usd/凭证/调试字段在工具边界统一剥离,不进入 result / events / audit / 协作日志。本地验证
已知风险或未完成项
兼容影响