收敛 AGC 外置智能体提示词,去掉客户端与宿主实现细节 #491

Merged
kdletters merged 1 commits from codex/agc-prompt-internal-detail-cleanup into master 2026-09-23 12:31:21 +08:00
Member

背景

AGC 外置智能体提示词里暴露了过多客户端/宿主实现细节。本次按「提示词只写模型必须遵守的指令与契约」的边界做收敛:删掉"我们系统怎么实现"的叙述,保留模型真正要执行的契约。

改动

  • prompts/runtime:删除宿主机制叙述(交付合同冻结与自动关闭、manifest 幂等投影、回执认领与 continuation 派生、浏览器证据回灌、Runtime 自动推进阶段)
  • 删除内部技术栈与部署细节(bubblewrap/Chromium profile 沙箱、执行器锁与 stage ledger、DLL/gdextension 分发、Chromium loopback 预览)
  • 删除内部预算与字段(validation.maxRuns、共用客户端持久预算、preMutationLoopLimit、源码字符上限、错误反馈重试计数)
  • 删除内部标识与名词(Runtime 元数据 instanceId/sessionId/runId/executionMode/contextBoundaryDirectProject/workspaceModeautonomous-game-build、Run Profile、manifest DAG)
  • resources/agc-skills:8 个 skill 的客户端职责/状态枚举叙述收敛,skill pack 版本与内容哈希同步
  • design-agent:系统提示、阶段上下文、模板与示例中的渲染器、内部落盘路径、登记编号与平台实现措辞收敛
  • 保留不动:工具名与参数、回执字段与枚举、调用顺序、禁止项、失败与鉴权处理、产物要求
  • 约定写入 docs/project-memory/shared-memory/team-conventions.md:提示词不写宿主实现细节;改占位符须同步 Rust 调用点与断言

验证

  • cargo check --offline --tests:通过
  • cargo test … prompt:76 passed;design:60 passed;autonomous_game_build:29 passed;tool_planning:10 passed
  • npm run check:encodingnpm run check:rustfmtnode scripts/check-skill-pack.mjsgit diff --check:均通过
  • 本机既有环境失败(非本次引入,已在未改动 HEAD 上用 stash 复现):mock provider 相关的 runtime_actions 用例、isolated-registry 进程会话用例
## 背景 AGC 外置智能体提示词里暴露了过多客户端/宿主实现细节。本次按「提示词只写模型必须遵守的指令与契约」的边界做收敛:删掉"我们系统怎么实现"的叙述,保留模型真正要执行的契约。 ## 改动 - `prompts/runtime`:删除宿主机制叙述(交付合同冻结与自动关闭、manifest 幂等投影、回执认领与 continuation 派生、浏览器证据回灌、Runtime 自动推进阶段) - 删除内部技术栈与部署细节(bubblewrap/Chromium profile 沙箱、执行器锁与 stage ledger、DLL/gdextension 分发、Chromium loopback 预览) - 删除内部预算与字段(`validation.maxRuns`、共用客户端持久预算、preMutationLoopLimit、源码字符上限、错误反馈重试计数) - 删除内部标识与名词(Runtime 元数据 `instanceId/sessionId/runId/executionMode/contextBoundary`、`DirectProject`/`workspaceMode`、`autonomous-game-build`、Run Profile、manifest DAG) - `resources/agc-skills`:8 个 skill 的客户端职责/状态枚举叙述收敛,skill pack 版本与内容哈希同步 - `design-agent`:系统提示、阶段上下文、模板与示例中的渲染器、内部落盘路径、登记编号与平台实现措辞收敛 - 保留不动:工具名与参数、回执字段与枚举、调用顺序、禁止项、失败与鉴权处理、产物要求 - 约定写入 `docs/project-memory/shared-memory/team-conventions.md`:提示词不写宿主实现细节;改占位符须同步 Rust 调用点与断言 ## 验证 - `cargo check --offline --tests`:通过 - `cargo test … prompt`:76 passed;`design`:60 passed;`autonomous_game_build`:29 passed;`tool_planning`:10 passed - `npm run check:encoding`、`npm run check:rustfmt`、`node scripts/check-skill-pack.mjs`、`git diff --check`:均通过 - 本机既有环境失败(非本次引入,已在未改动 HEAD 上用 stash 复现):mock provider 相关的 runtime_actions 用例、isolated-registry 进程会话用例
kdletters added 1 commit 2026-09-23 12:24:24 +08:00
收敛 AGC 外置智能体提示词,去掉客户端与宿主实现细节
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m19s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m51s
Project CI / Backend tests (pull_request) Successful in 4m47s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 6m48s
Project CI / Native shell tests (pull_request) Successful in 6m29s
Project CI / Frontend tests (pull_request) Successful in 2m14s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Failing after 8m31s
Project CI / Repository checks (pull_request) Successful in 2m21s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m56s
765444de11
- 清理 prompts/runtime 系统提示里的宿主机制叙述:交付合同冻结与自动关闭、manifest 幂等投影、回执认领与 continuation 派生、浏览器证据回灌
- 收敛内部实现描述:bubblewrap 与 Chromium profile 沙箱、执行器锁与 stage ledger、DLL/gdextension 分发、loopback 预览
- 移除内部预算与字段外泄:validation.maxRuns、共用客户端持久预算、preMutationLoopLimit、源码字符上限、错误反馈重试计数
- 去掉内部标识与名词:Runtime 元数据(instanceId/sessionId/runId/executionMode/contextBoundary)、DirectProject/workspaceMode、autonomous-game-build、Run Profile、manifest DAG
- 同步收敛 agc-skills 八个 skill 的客户端职责枚举与状态枚举叙述,并更新 skill pack 版本与内容哈希
- 同步收敛 design-agent 系统提示、阶段上下文、模板与示例中的渲染器、内部落盘路径、登记编号与平台实现措辞
- 同步更新受影响的 Rust 提示词断言语料与占位符绑定调用点,工具名、参数、回执字段与验收规则保持不变
- 在 team-conventions 记录「提示词只写模型指令与契约、占位符改动需同步 Rust」约定
kdletters merged commit f789db7f2f into master 2026-09-23 12:31:21 +08:00
kdletters deleted branch codex/agc-prompt-internal-detail-cleanup 2026-09-23 12:31:21 +08:00
Sign in to join this conversation.