Repository navigation
feat(agent): 模型驱动的有界 child 任务调度 - #67
Merged
Merged
Conversation
- child_task_proposal.v1 协议:title/goal/skills/input_refs/dependency_ordinals/surface_hint/预算/期望产物,严格解码、依赖自环与环写入前拒绝、目标去重 - Go 裁决执行面:含写技能强制 core(≤2),纯只读按任务数解析 fan-out 档位 1/2/4/6,混合 hint 与只读依赖拒绝;操作者审阅可压档位上限,模型无法自行提高 - schema v102:proposal/assignments/双幂等操作表;同键回放、同语义 fingerprint 跨键去重;写入前原子复核 run/root/core 容量/effectiveRootBudget - 审阅 approve/deny 幂等;core 准入复用 AdmitSpecialist 并把依赖序绑定到 v101 agent_dependency_edges;readonly 记录绑定意图,fan-out 计划执行保持 operator 流程 - 新工具 child_task_propose(agent_proposal 类、fenced root、只记录提案不创建 Agent)接入 toolgateway/应用执行器/CLI 与 Supervisor 网关 - agent.child_task_proposed/reviewed/admitted 事件与 Run Activity 折叠展示
- prepareSupervisorToolCalls 白名单放行 child_task_propose(此前工具已广告进定义集但模型调用会被拒绝) - NormalizeSupervisorToolPayload 补上 child_task_proposal.v1 分支(此前回落到 structured memory 归一化报 unsupported) - 新增 Deliver 阶段白名单回归测试
- 提案/审阅事务以 runs 行 touch 串行化并发变更(防预算超卖竞态) - 提案 dedup_fingerprint 唯一冲突恢复为幂等回放而非裸约束错误 - 审阅 UPDATE 校验影响行数,并发审阅返回稳定 CONFLICT;child_task_review_operations 增加 UNIQUE(proposal_id)
This was referenced Aug 15, 2026
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.
背景
issue #51(父任务 #36):已有核心委派(≤2 child、operator 审批链)与批量只读 fan-out(1/2/4/6 档位、operator 建计划执行),但缺少模型在明确协议内提出 child 任务、由 Go 验证并安全调度的完整产品路径。
本次改动
child_task_proposal.v1协议(internal/domain/child_task.go):每任务 title/goal/skills/input_refs/dependency_ordinals/surface_hint/turn_limit/token_limit/timeout_millis/expected_artifacts;严格解码(未知字段拒绝)、目标去重、依赖自环与环写入前拒绝、空 hint 归一为 auto。child_task_proposals(spec/surface/fanout_tier/dedup_fingerprint 唯一/状态/审阅)+child_task_assignments(每任务面/档位/预算/准入身份)+ 提案与审阅两张幂等操作表。同操作键回放、同语义 fingerprint 跨键去重。agent_dependency_edges(唯一唤醒收据保证重放不重复绑定);readonly 面记录绑定意图,不可变 fan-out 计划创建与执行保持 operator 既有流程。child_task_propose(agent_proposal 类、自动审批、必须 fenced root Supervisor 调用),只记录提案(admission_authorized=false),不创建 Agent;接入 toolgateway/应用执行器/CLI 与 Supervisor 网关。agent.child_task_proposed/reviewed/admitted事件;Run Activity 折叠展示 surface/档位/任务数(绝不展示 goal/输入引用/期望产物)。测试覆盖
go test -timeout 30m ./...(含 analyzer opt-in)无 FAIL;go build/go vet通过。验证结果
go build ./...、go vet ./...通过。安全边界与非目标
Closes #51