[P2] 让生成任务可恢复,并以测试断言决定版本可发布性
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design, cli, testing-qa
Research direction
Start by reviewing dependency H1 (#3) and the existing generation and publish paths exposed through the CLI/API, keeping the Hosta control plane and Hoya engine boundary in scope. Done means the acceptance checklist is met: resumable generation, schema and assertion validation, failure-driven needs_revision status, explicit trial-run publishing, and provider failure/restart coverage.
Written by the indexing model from the issue text.
Description
用户问题与代码依据
generated tests 只执行,不比较 expected output,也未用失败结果改变 ready;生成无持久任务或进度,未生成 inputSchema;UI 必须经过 AI 创建。
评估基线:2026-09-06,Hosta 666eca9 / Hoya 2234baa。此项记录待实现目标,不表示已完成。
验收标准
- AI 是可顺延的可选增强,不阻塞无 AI 的 CLI 发布闭环;通过 API/CLI 暴露持久 generationId、状态、幂等提交、取消/有限重试和按原应用修订。
- 严格校验模型结构、inputSchema、至少正常/边界测试及期望值,逐用例执行断言;任何失败标 needs_revision。
- 生成版本发布必须满足生成测试断言和该版本显式试运行(CLI/API 均可);已有代码/模板按其测试与显式试运行规则发布,无需经过 AI。schema 用于运行和 Webhook 输入校验。
- provider mock 覆盖超时、限流、非法 JSON、断言失败、刷新/重启恢复;记录 token/耗时,不伪造成本。
归属与范围
归属:worktools/hosta。阶段:A2 · 开源预览交付。维护者已确认:CLI/API 优先,前期全命令行验收,UI 先只读展示,网页交互后续评估。沿用独立 Hoya 引擎与 Hosta 控制面边界;本项不扩展到多租户、计费、DAG 或全球调度。
依赖
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 7
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from worktools/hosta
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
priority:P1 type:feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
priority:P2 type:feature
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
priority:P1 type:chore
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
priority:P1 type:feature
Difficulty 5/5 Over a week Newbie friendliness 30/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
melgarafael/DeskcommCRM#1812 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#309 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gregwebs/pi-quota-dispatcher#26 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openwatersio/slackwater.xyz#124 ·
Maintainers usually reply within 1 day
-
agent-reported area/browser area/docs documentation good first issue hacktoberfest help wanted P2
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days