三维请求自选技术栈,不再固定 Phaser
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 4m35s
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 5m18s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m32s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 5m7s
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 3m54s
Project CI / AI game creator shell Rust crates (push) Successful in 2m26s
Project CI / AI game creator shell web tests (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 4m35s
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 5m18s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m32s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 5m7s
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 3m54s
Project CI / AI game creator shell Rust crates (push) Successful in 2m26s
Project CI / AI game creator shell web tests (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
- DirectProject 系统提示新增三维请求合同:三维请求不受 Phaser 4.2.1 约束,由 Codex 自选三维技术栈 - 工程合同的 Phaser 固定约束按二维/三维分层,点名引擎的不匹配澄清规则保持不变 - 新增三维意图识别、三维回合合同与首页三维提示;伪 3D、等轴与代码话题不触发 - 补定向用例与里程碑/实施计划文档,并在 decision-log 记录该决策
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
|
||||
Version: 1.0
|
||||
Status: implemented; real-project runtime smoke pending
|
||||
Date: 2026-09-16
|
||||
Parent Milestone: docs/project-memory/plans/【里程碑】Direct三维请求自选技术栈-2026-09-16.md
|
||||
|
||||
## 修改顺序
|
||||
|
||||
1. 在 `agent/direct_runtime/mod.rs` 保留三维/引擎意图与工程归属识别(含伪 3D、2.5D、代码话题例外)。
|
||||
2. 用"三维请求自选技术栈"合同替换澄清合同、工具阻断、注册门禁与首页创建阻断代码路径。
|
||||
3. 在三处装配点前置注入合同:首页回合、项目回合与测试用的旧装配点。
|
||||
4. 把工程合同里的 Phaser 固定约束按二维/三维分层。
|
||||
5. 更新定向用例与文档,运行格式化、编码检查与 diff 检查。
|
||||
|
||||
## 验证命令
|
||||
|
||||
- `cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml --bin genarrative-ai-game-creator-shell three_dimensional`
|
||||
- `cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml --bin genarrative-ai-game-creator-shell agent::direct_runtime::tests::system_prompt`
|
||||
- `cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml --bin genarrative-ai-game-creator-shell agent::direct_tools_mcp`
|
||||
- `cargo fmt --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml -- --check`
|
||||
- `npm run check:encoding`
|
||||
- `git diff --check`
|
||||
|
||||
## 风险与回滚
|
||||
|
||||
- 误判风险:关键词识别可能对"三维数组"这类代码话题误触发,已用游戏语义上下文词、平面化排除词与独立成词边界收敛,并用用例钉住例外。
|
||||
- 行为风险:解除 Phaser 固定约束后,三维交付可能落到 Three.js / Babylon.js 等新栈;回滚点是移除前置合同注入与常驻合同段,恢复原 Phaser 固定文案。
|
||||
- 已知环境限制:本机临时目录 owner ACL 与当前进程用户不一致,涉及 `init_local_game_project_at` 的既有用例(未改动模块同样如此)无法在本机执行;本轮证据为定向用例 + 格式 + 编码 + diff 检查,全量分片与真机 smoke 仍待补。
|
||||
@@ -0,0 +1,29 @@
|
||||
Version: 1.0
|
||||
Status: implemented; real-project runtime smoke pending
|
||||
Date: 2026-09-16
|
||||
Parent Spec: docs/technical/【技术方案】AI游戏创作智能体App实施计划-2026-06-24.md
|
||||
|
||||
## 目标
|
||||
|
||||
用户要求做三维(3D)游戏时,DirectProject 不再把 Phaser 4.2.1 当作固定约束:由 Codex 自行选择三维技术栈并直接推进,客户端不要求先澄清引擎、不阻断工具、不拒绝登记产出。
|
||||
|
||||
## 边界
|
||||
|
||||
- 只读用户原文做确定性识别,不改写用户消息,不启动 Supervisor、专业 Agent、harness 或额外生成工作流。
|
||||
- 只对"说了三维、没有点名引擎"的回合注入自选栈合同;用户点名引擎时沿用既有工程合同(Cocos / Unity / Godot 等与当前目录不匹配时先说明不匹配)。
|
||||
- 用户明确选择"等轴 / 伪 3D / 2.5D"表现,或话题是代码里的三维概念时,不注入该合同。
|
||||
- 唯一保留的红线是诚实边界:不得用等轴伪 3D 或二维图集冒充三维交付而不说明。
|
||||
- 首页只加一行三维提示,不阻止创建项目;不改 `/api/external/v1` 契约、OpenAPI、DTO、SpacetimeDB schema 与前端投影协议。
|
||||
|
||||
## 验收标准
|
||||
|
||||
1. 常驻系统提示包含"三维请求合同":三维请求不受 Phaser 固定约束,由 Codex 自选三维技术栈,可新增 npm 依赖,仍需说明选型。
|
||||
2. 命中三维请求时,系统提示前置一段自选栈合同(含当前工程识别结果),不被 16K 提示词上限截断。
|
||||
3. 点名引擎、主动选择伪 3D / 等轴 / 2.5D、代码话题(如"三维数组"、"value4")不触发该合同。
|
||||
4. 引擎固定约束文案已按二维/三维分层:二维游戏仍固定 Phaser 4.2.1,三维请求不受该约束。
|
||||
5. 定向 Rust 用例覆盖识别、合同文本、工程识别与首页提示;格式化、编码检查与 `git diff --check` 通过。
|
||||
|
||||
## 依赖
|
||||
|
||||
- 现有 DirectProject 回合装配(`agent/direct_runtime/mod.rs`)。
|
||||
- 现有 Cocos / Godot 工程识别(`project::discover_local_cocos_project_root`、`project::discover_local_godot_project_root`)。
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
> 用途:记录已经确认、会影响后续开发的长期技术/产品/协作决策。短期讨论不要写在这里。
|
||||
> 当前口径:历史条目的旧路径、旧版本和已退役对象只用于追溯,不构成现行实现依据;如与当前代码或 `docs/README.md` 冲突,以当前代码和最新专题文档为准。
|
||||
|
||||
## 2026-09-16 AGC 同 AppData 多窗口共享 Agent Runner
|
||||
|
||||
- 背景:双击或再次启动 AGC 客户端时报「应用启动失败」,启动日志为 `startup.runner.owner-lock.failed details=AI 游戏创作界面已由同一 AppData 目录中的其他进程运行`。原设计(2026-07-27 / 2026-08-23)要求同一 AppData 只有一个 GUI owner,第二个界面进程在 setup 阶段就失败退出。
|
||||
@@ -14,6 +13,15 @@
|
||||
- 未验证 / 已知环境问题:真实安装包双开需要重新构建发布后才能验证;`durable_provider_handoff_prevents_shutdown_even_when_corrupt`、`durable_provider_retry_prevents_shutdown_and_reopens_writes`、`runtime_interrupt_for_true_steer_decision_only_interrupts_older_provider_cursor` 三条用例在本机改动前的基线上即失败(Windows 安全对象 owner 校验与 Provider 请求重复),与本决策无关。
|
||||
- 关联文档:`docs/technical/【技术方案】AI游戏创作智能体App实施计划-2026-06-24.md`(2026-09-16 节)、`docs/project-memory/plans/【里程碑】AGC同AppData多窗口共享Runner-2026-09-16.md`。
|
||||
|
||||
## 2026-09-16 DirectProject 三维请求解除 Phaser 固定约束,由 Codex 自选技术栈
|
||||
|
||||
- 背景:三维需求("做个 3D 城市游戏")在只有 Phaser 4 二维通道的工程里没有落点,而完成判定以"源码引用已登记平台图片 + 浏览器渲染到该图"为硬门禁,模型可推进的唯一动作退化成生成图集;真机侧表现为长时间生图与反复接线,等轴伪 3D 成了默认交付。产品决定不再用"先澄清引擎"卡住三维请求,改为放开选型。
|
||||
- 决策:用户消息表达三维(3D / 三维)且没有点名引擎时,本回合注入**自选技术栈合同**:不受"新 Web 游戏固定 Phaser 4.2.1"约束,由 Codex 自行选择三维技术栈(Three.js、Babylon.js 等 npm 运行时,或当前工程自带的引擎),可以按需新增 npm 依赖、调整工程结构,并在回复里说明选型;客户端不要求先澄清、不阻断任何工具、不拒绝登记产出。
|
||||
- 决策(常驻口径):`DIRECT_AGC_ENGINEERING_GUIDANCE` 的 Phaser 固定约束按二维/三维分层——二维游戏仍是 Phaser 4.2.1,三维请求不受该约束。首页回合只加一行三维提示,仍允许按既有规则创建项目。
|
||||
- 边界:用户点名引擎时沿用既有工程合同(Cocos / Unity / Godot 等与当前目录不匹配时先说明不匹配);用户主动选择"等轴 / 伪 3D / 2.5D"或话题是代码里的三维概念时不注入合同。唯一保留的红线是不得用等轴伪 3D 或二维图集冒充三维交付而不说明。识别只读用户原文,不改写消息、不触发额外工作流,也不做工具阻断或注册门禁。
|
||||
- 影响范围:`apps/ai-game-creator-shell/src-tauri/src/agent/direct_runtime/mod.rs`。**未改** `/api/external/v1` 契约 / OpenAPI / DTO、SpacetimeDB schema、AGC 工具桥行为、前端投影与资源工作台。
|
||||
- 验证方式:`three_dimensional_game_request_frees_the_engine_choice`、`explicit_flat_presentation_requests_do_not_trigger_three_dimensional_selection`、`named_engine_requests_keep_the_existing_engineering_rule`、`three_dimensional_contract_reports_the_current_project_engine`、`home_three_dimensional_note_keeps_project_creation_available`、`system_prompt_is_bounded_and_declares_direct_runtime`,以及 `agent::direct_tools_mcp` 17 passed;`cargo fmt --check` 通过。本机临时目录 owner ACL 与进程用户不一致,涉及 `init_local_game_project_at` 的既有用例(含未改动模块)在本机无法执行,全量分片与真机 smoke 未在本轮取得。
|
||||
- 关联文档:[里程碑](../plans/【里程碑】Direct三维请求自选技术栈-2026-09-16.md)、[实施计划](../plans/【实施计划】Direct三维请求自选技术栈-2026-09-16.md)。
|
||||
## 2026-09-16 图标图集自动拆图上限提高到 256
|
||||
|
||||
- 背景:AGC 图标图集自动连通域识别在一次生成中识别出 86 个区域,原有 64 片上限在后处理阶段阻断了请求;该上限同时影响 api-server 自动 / 手动切片、SpacetimeDB 批量落库和统一生成结果 item 数量。
|
||||
|
||||
Reference in New Issue
Block a user