eust-w df87c5dca6 🐛 Drop a run start that a newer one replaced before it takes the run back
The dispatcher read the run, checked that the start it was delivering
was still the pending one, and reserved the execution grant in a later
transaction. A pause and a continue in between enqueued a newer start,
and the older one went ahead anyway: it took the run's execution
generation back and asked the provisioner for a sandbox for a
generation that had already been replaced.

Reserving the grant now checks the pending start again, in the
transaction that takes the generation, and refuses a replaced one with
START_SUPERSEDED. The dispatcher acknowledges such a start without
marking the run as waiting; the newer start proceeds as usual.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:56:14 +08:00

WishForge

远程、意图驱动的软件交付平台:用一句话提出愿望(目标 + 验收标准),后端编码 Agent 在隔离环境中实现,独立验证器按受保护的命令判定,失败时把失败信息交还 Agent 自修复,通过后合入代码并按需构建、审批与部署。可以从 Web 工作台、WorkBuddy/Codex(MCP)或云 IDE 发起与跟进。

快速开始

需要 Node.js 22+、npm、Git 与 Docker Compose。

npm ci
npm run setup:local
docker compose -f infra/compose.yaml up -d
npm run db:migrate
npm run db:seed
npm run dev:all

打开 http://localhost:3000,创建项目、配置验证命令、连接 Codex 凭据后即可提交第一个愿望。完整步骤见 docs/development.md。

本地开发使用 host 执行模式:Agent 生成的代码与项目测试直接在本机运行,没有隔离。只在可信的项目上使用。

仓库结构

目录 内容
apps/api 控制面 API(REST /v1、内部接口 /internal、MCP /mcp、模型代理)
apps/web Web 工作台(Next.js,含 OIDC BFF)
apps/worker Temporal worker:coordinator / executor / verifier / deployer
apps/provisioner 执行环境与 IDE 工作区的创建(local 与 kubernetes 后端)
apps/git-service 平台 Git 服务
apps/runner 目标环境侧的部署 Runner
apps/ide Theia 云 IDE、IDE 网关与协作
packages/contracts 领域类型、输入校验、规范化 JSON
packages/agent Agent 配置与提示词组装
packages/runtime 执行器适配、Git、验证、构建与部署适配
packages/github、packages/artifacts GitHub App 客户端、对象存储
connectors Codex 与 WorkBuddy 的 MCP 接入配置
infra 本地 Compose、Keycloak、Kubernetes 基线与镜像构建

检查

npm run format:check
npm run typecheck
npm test

需要外部服务的集成测试默认跳过,开启方式见 docs/development.md。

Description
No description provided
Readme 5.7 MiB
Languages
TypeScript 83.5%
JavaScript 13.5%
CSS 2.6%
Dockerfile 0.3%
PLpgSQL 0.1%