Skip to content

feat: 落地 Agent 编码正确性工作流 - #33

Merged
SATA260 merged 9 commits into
mainfrom
coding-harness
Sep 21, 2026
Merged

SATA260 merged 9 commits into
mainfrom
coding-harness

Conversation

@SATA260

@SATA260 SATA260 commented Sep 21, 2026

Copy link
Copy Markdown
Owner

改了什么 / What changed

  • 有副作用的任务收工必须先跑验证(.cursor/verify.yaml 与本会话绑定计划的 verify_cmd),通过后再写收尾说明;验证失败打回修复,指纹重复或超限开人工单。
  • 写盘后做语法轻检,新硬伤当场回滚;bash/powershell 改到可检查源文件后同样回滚。已有测试文件 LockedAsk,计划验收只增不删,打勾必须走 plan_pass 并带证据。
  • 首次破坏性写操作前拍 Git 快照,支持按文件 / 消息 / 全部回滚;只读 explore 子代理不计入副作用。
  • 对话页改成可收起的三栏工作台:会话改动文件可在右侧点开,Git 差异区加大。收工复审 evaluate 已去掉,前端不再画复审/跳过验证卡片。
  • 用真实模型锁编码闭环(pnpm test:coding),并修掉批准后续跑、验证假完成、取消仍 completed 等验收空洞。

Closes #32

怎么验证 / How to verify

  • cd server && go test ./pkg/agent ./internal/agent ./internal/agent/tools ./internal/handler ./internal/archtest ./internal/config -skip TestCodingLoop
  • pnpm test:client
  • 仓库根有真实模型 Key 时:pnpm test:coding
  • 本地 pnpm dev:agent + yolo 让它改一个文件,确认会验证后收工;右侧能点开改动文件;取消进行中的验证不会变成 completed

相关 Issue / Related issue:#32

Made with Cursor

SATA260 and others added 8 commits September 20, 2026 16:12
会话列表、对话和右侧窗口可拖宽、可收起,Plan 与文件改动在右侧打开;并去掉开发态顶栏。

Co-authored-by: Cursor <cursoragent@cursor.com>
侧栏归档只改内存标记,列表仍从本机实录读回。改为写入 Claude Code 的 tagSession 记录,并在列表里藏起已归档会话。

Co-authored-by: Cursor <cursoragent@cursor.com>
取消后会话能释放,重启靠 needs_recover 再 Continue;计划落盘是标题和勾选列表,不再把 JSON 契约摊在正文开头。

Co-authored-by: Cursor <cursoragent@cursor.com>
把工具改动收成竖向文件框,避免进 Local 会话时现算 diff 卡住页面。

Co-authored-by: Cursor <cursoragent@cursor.com>
正文不再折成一团,窗口外壳收成定高栏,长文件可以横滑和竖滑。

Co-authored-by: Cursor <cursoragent@cursor.com>
跳过复审直接收工,不再挂一轮收尾模型;恢复时若结论已落库,也不再重跑验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
删掉 evaluate 后按绑定计划跑 verify_cmd;取消与语法回滚不再把失败写成成功。

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 390ef761-254d-4776-8a59-fddd6ea99f4d


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

未格式化的 Go 挡住 lint;时间线 upsert 与文件窗口的类型过不了 Next 构建;删复审后文档漏了兼容名。

Co-authored-by: Cursor <cursoragent@cursor.com>
@SATA260
SATA260 merged commit 60c4d75 into main Sep 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Module] Agent 编码正确性工作流:快照回滚、AST 增量守卫与测试强检

1 participant