Pin P3b background subagents, review, and profile overrides #142

Merged
weichen merged 9 commits from feature/agent-harness-p3b into main 2026-10-01 15:51:57 +00:00
Owner

feature/agent-harness-p3b 任务卡

任务主记录:https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/142 ;状态:进行中;owner:weichen

基线与授权

  • 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= fdd311c8c0
  • 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-agent-harness-p3b(worktree);分支:feature/agent-harness-p3b
  • 授权与交付终点:实现 P3b(跨 run 后台子代理与合并通知、评审流水线、小队角色映射、用户可覆盖 tools/model/maxTurns)。允许改 Core、Backend、Frontend、UI,并在各自 feature/agent-harness-p3b 上提 PR;Dev 仓推进 modules/core、modules/backend、modules/frontend、modules/ui 并提 PR。未授权:合入 main、改 agent-native、改 agent-squad 契约。
  • 启动自检(2026-10-01T14:51Z):make precheck verdict READY。head=fdd311c8c0,origin/main 同步,树干净。必读 core/baseline.md、workflows/delivery.md §1 已读。
  • 裁定:后台通知只存在内存里,服务重启后在途子代理标为 interrupted,未投递的通知丢失。每个会话最多同时 3 个后台子代理,超出时工具报错。用户覆盖只走现有 POST /api/prompts,不新增前端编辑器;覆盖不能加入 delegate_task、squad_orchestrate、review_findings,以保持深度为 1。

目标与非目标

  • 目标:delegate_task 可后台运行,完成后自动发起一次父回合,多条通知合并成一条 system 消息。review_findings 并行找问题、逐条验证、丢掉未验证的再汇总。小队步骤按角色映射到子代理 profile。PromptModule 增加 tools、model、maxTurns,用户行可以覆盖内置 spec。
  • 非目标:不改内核与小队仓契约。不新增提示词编辑界面。通知不落库。

同步记录

节点 sync_base_sha tested_head_sha checked_at
启动 fdd311c8c0 fdd311c8c0 2026-10-01T14:52:39Z
同步前验收 fdd311c8c0 1bc9954e40 2026-10-01T15:39:25Z

结果与验证(完成后填写)

  • 结果:四个模块都在 feature/agent-harness-p3b。Core 9b8cf79 给 PromptModule 增加 tools、model、maxTurns。Backend 46ce1b2 做覆盖链、小队角色映射、后台子代理和评审。Frontend f718095 让后台子代理不再挡住发送,并把 system 消息画成通知行。UI bd3baff 同步契约。Dev 6430738 推进这四个指针。agent-native 仍是 a34689c。
  • 验证:make test 通过(boundaries ok;core ok;backend 各包 ok;frontend vitest 53;ui vitest 71;agent-command ok)。
  • 真实对话:服务 p3b(scripts/svc.sh p3b deploy --from local,http://127.0.0.1:8841,数据从 dev 复制)。
    • 后台(cnv_0aab84f51c8c、cnv_2a3ce768bb00):子 run 在父 run 结束前完成,通知先排队。父 run 释放槽位后出现一条 <system-reminder> system 消息,并自动开始新的父回合。没有用户再发消息。
    • 评审(cnv_a2e5962befdc):两个审查子代理加三个核实子代理。父回复保留化学式和奥运会年份问题,并写明「已丢弃 0 条未验证」。
  • 影响与剩余项:通知不持久。小队 writer 步骤会用到 writer profile。用户覆盖没有界面。合入不在本次授权内。五个 PR 都未合入:Core #15、Backend #46、Frontend #32、UI #26、Dev #142。
# feature/agent-harness-p3b 任务卡 任务主记录:https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/142 ;状态:进行中;owner:weichen ## 基线与授权 - 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= fdd311c8c029f3e8a7b47437d9695691bc125e9e - 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-agent-harness-p3b(worktree);分支:feature/agent-harness-p3b - 授权与交付终点:实现 P3b(跨 run 后台子代理与合并通知、评审流水线、小队角色映射、用户可覆盖 tools/model/maxTurns)。允许改 Core、Backend、Frontend、UI,并在各自 `feature/agent-harness-p3b` 上提 PR;Dev 仓推进 `modules/core`、`modules/backend`、`modules/frontend`、`modules/ui` 并提 PR。未授权:合入 main、改 agent-native、改 agent-squad 契约。 - 启动自检(2026-10-01T14:51Z):`make precheck` verdict READY。head=fdd311c8c0,origin/main 同步,树干净。必读 core/baseline.md、workflows/delivery.md §1 已读。 - 裁定:后台通知只存在内存里,服务重启后在途子代理标为 interrupted,未投递的通知丢失。每个会话最多同时 3 个后台子代理,超出时工具报错。用户覆盖只走现有 `POST /api/prompts`,不新增前端编辑器;覆盖不能加入 `delegate_task`、`squad_orchestrate`、`review_findings`,以保持深度为 1。 ## 目标与非目标 - 目标:`delegate_task` 可后台运行,完成后自动发起一次父回合,多条通知合并成一条 system 消息。`review_findings` 并行找问题、逐条验证、丢掉未验证的再汇总。小队步骤按角色映射到子代理 profile。`PromptModule` 增加 tools、model、maxTurns,用户行可以覆盖内置 spec。 - 非目标:不改内核与小队仓契约。不新增提示词编辑界面。通知不落库。 ## 同步记录 | 节点 | sync_base_sha | tested_head_sha | checked_at | |---|---|---|---| | 启动 | fdd311c8c029f3e8a7b47437d9695691bc125e9e | fdd311c8c029f3e8a7b47437d9695691bc125e9e | 2026-10-01T14:52:39Z | | 同步前验收 | fdd311c8c029f3e8a7b47437d9695691bc125e9e | 1bc9954e40453f3476ef3856d50c085b83b6408d | 2026-10-01T15:39:25Z | ## 结果与验证(完成后填写) - 结果:四个模块都在 `feature/agent-harness-p3b`。Core `9b8cf79` 给 PromptModule 增加 tools、model、maxTurns。Backend `46ce1b2` 做覆盖链、小队角色映射、后台子代理和评审。Frontend `f718095` 让后台子代理不再挡住发送,并把 system 消息画成通知行。UI `bd3baff` 同步契约。Dev `6430738` 推进这四个指针。agent-native 仍是 `a34689c`。 - 验证:`make test` 通过(boundaries ok;core ok;backend 各包 ok;frontend vitest 53;ui vitest 71;agent-command ok)。 - 真实对话:服务 `p3b`(`scripts/svc.sh p3b deploy --from local`,http://127.0.0.1:8841,数据从 dev 复制)。 - 后台(`cnv_0aab84f51c8c`、`cnv_2a3ce768bb00`):子 run 在父 run 结束前完成,通知先排队。父 run 释放槽位后出现一条 `<system-reminder>` system 消息,并自动开始新的父回合。没有用户再发消息。 - 评审(`cnv_a2e5962befdc`):两个审查子代理加三个核实子代理。父回复保留化学式和奥运会年份问题,并写明「已丢弃 0 条未验证」。 - 影响与剩余项:通知不持久。小队 writer 步骤会用到 writer profile。用户覆盖没有界面。合入不在本次授权内。五个 PR 都未合入:Core #15、Backend #46、Frontend #32、UI #26、Dev #142。
weichen added 6 commits 2026-10-01 15:40:32 +00:00
Why: Background subagents, review, squad role mapping, and prompt overrides need an explicit write scope and the three rulings before code edits.
Evidence: make precheck verdict READY at fdd311c8c0. Required reading baseline.md and delivery.md section 1.
Impact: No code change. Kernel and squad contracts stay as on main.
Refs: feature/agent-harness-p3b
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: The combination has to move together so background subagents, review, and the notice row are the same build.
Evidence: Each module's own tests passed on its feature branch. agent-native stays at a34689c.
Impact: Dev does not merge this pin. The four module pull requests stay open until review.
Refs: feature/agent-harness-p3b
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: The task card has to show the combination test and the two live conversations before the pull requests open.
Evidence: make test passed at 6430738. p3b on 127.0.0.1:8841 showed a queued notice turn and a review pipeline.
Impact: No code change.
Refs: feature/agent-harness-p3b
Co-authored-by: Cursor <cursoragent@cursor.com>
Move the sync checkpoint into the task table
ci / test (pull_request) Failing after 1m37s
f521ff1c53
Why: task-sync appends the checkpoint after the results section, and the card keeps those rows in the sync table.
Evidence: The row is the 2026-10-01T15:39:25Z checkpoint for 1bc9954e40.
Impact: No code change.
Refs: feature/agent-harness-p3b
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-01 15:40:46 +00:00
Link the open P3b pull requests on the task card
ci / test (pull_request) Failing after 1m54s
d05a73872c
Why: The card and the Dev pull request should name the five open requests and state that none are merged.
Evidence: Core #15, Backend #46, Frontend #32, UI #26, Dev #142.
Impact: No code change. Main is unchanged.
Refs: feature/agent-harness-p3b
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 2 commits 2026-10-01 15:51:45 +00:00
Move the pre-merge sync row into the task table
ci / test (pull_request) Failing after 1m54s
79a6a73052
Why: task-sync appends the checkpoint after the results section, and the card keeps those rows in the sync table.
Evidence: The row is the 2026-10-01T15:51:28Z checkpoint for d05a73872c.
Impact: No code change.
Refs: feature/agent-harness-p3b
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit ec4614322e into main 2026-10-01 15:51:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#142