Route CLI agents through a five-candidate chain with Codex last #648

Merged
weichen merged 14 commits from feature/cli-agent-fallback-chain into main 2026-10-20 08:01:14 +00:00
Owner

Why: 用户要求 CLI Agent 安全失败后自动换下一候选、不询问;候选为 cursor(auto)、agy(Gemini 3.8 Flash)、pi(GLM-5.3-flash)、pi(MiniMax-M3),Codex(GPT-6.1-Sol) 必须最后;每候选 3 次,全部失败后暂停询问是否重试。

Evidence: 任务卡 .task/feature-cli-agent-fallback-chain.md 证据表(make agent-exec-validate、make task-sync、make test-governance,均 SELF);测试通过以本 PR HEAD 的 CI 为准。

Impact: AGENT-EXECUTION.md 四个角色候选改为五档链(新增 pi-glm,Codex 由单次应急档改为每个角色最后的正常候选,去掉 emergency_profile,agy/codex 指定模型);policy/delivery.md、policy/governance.md、policy/tool-adaptation-matrix.md 同步规则文字。不改 DM 控制器,fail-stop 语义不变。

Refs: .task/feature-cli-agent-fallback-chain.md

Why: 用户要求 CLI Agent 安全失败后自动换下一候选、不询问;候选为 cursor(auto)、agy(Gemini 3.8 Flash)、pi(GLM-5.3-flash)、pi(MiniMax-M3),Codex(GPT-6.1-Sol) 必须最后;每候选 3 次,全部失败后暂停询问是否重试。 Evidence: 任务卡 `.task/feature-cli-agent-fallback-chain.md` 证据表(make agent-exec-validate、make task-sync、make test-governance,均 SELF);测试通过以本 PR HEAD 的 CI 为准。 Impact: `AGENT-EXECUTION.md` 四个角色候选改为五档链(新增 `pi-glm`,Codex 由单次应急档改为每个角色最后的正常候选,去掉 `emergency_profile`,agy/codex 指定模型);`policy/delivery.md`、`policy/governance.md`、`policy/tool-adaptation-matrix.md` 同步规则文字。不改 DM 控制器,fail-stop 语义不变。 Refs: .task/feature-cli-agent-fallback-chain.md
weichen added 8 commits 2026-10-20 06:15:41 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-cli-agent-fallback-chain.md; R0=d2035c76dc1cb15e01d2c184af5155d9d773cd9f.

Impact: task metadata only; the feature workspace starts at d2035c76dc.

Refs: .task/feature-cli-agent-fallback-chain.md
Why: record goal, scope and plan before dispatching the implementation unit
Evidence: smoke runs of the three new model IDs (SELF, see card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: track the agent-exec receipt and validate evidence for the routing change
Evidence: make agent-exec-validate (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: track the agent-exec receipt and validate evidence for the routing change
Evidence: make agent-exec-validate (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: track the agent-exec receipt and validate evidence for the routing change
Evidence: make agent-exec-validate (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: keep the sync evidence with the branch before the governance suite
Evidence: make task-sync (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Record results and review for the CLI agent fallback chain
ci / svc-realcombo (pull_request) Successful in 3m21s
ci / test (pull_request) Successful in 10m6s
ci / test-pg (pull_request) Successful in 12m38s
4cfba482b6
Why: card carries the verification summary and host review before the PR opens
Evidence: make test-governance and make agent-exec-validate (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 6 commits 2026-10-20 07:48:50 +00:00
Why: card tracks the delivery window before the final sync
Evidence: #518 comment 8226
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=f1866dc3bb4537ac6446fdd26e696cb636b543ef.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Why: bind the task validation checkpoint to the integration baseline.

Evidence: SELF recursive component checks; sync_base=f1866dc3bb4537ac6446fdd26e696cb636b543ef; before_record=16913620d8cbf214bf81792c5ff03eaee94752cd.

Impact: task metadata only.

Refs: .task/feature-cli-agent-fallback-chain.md
Why: keep the window sync evidence with the candidate
Evidence: make task-sync (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: card records the window sync result and revalidation
Evidence: make agent-exec-validate (SELF, in card)
Impact: task card only
Refs: .task/feature-cli-agent-fallback-chain.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Fold-close the task card before merge
ci / svc-realcombo (pull_request) Successful in 3m17s
ci / test (pull_request) Successful in 9m40s
ci / test-pg (pull_request) Successful in 11m0s
225d3fce6c
Why: close the task card inside its own PR so landing it needs no post-merge backfill or separate close PR.
Evidence: .task/feature-cli-agent-fallback-chain.md -> .task/archive/feature-cli-agent-fallback-chain.md; status 已完成(合入前闭合); PR #648 https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/648.
Impact: task metadata only; the card is archived within PR #648 and lands with its merge commit.
Refs: task.sh close --self
weichen merged commit adbef2f49c into main 2026-10-20 08:01:14 +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#648