浏览 1.0.0 文档
1.0.0 文档修订 2

功能工作流

跟着一个有界的功能需求,从 sprint 条目一路走完实现、验证与收尾。

适用人群: 开发者与 coding agent

场景#

功能这个例子跟交互式 Demo 演的是同一件事:加一个可访问的密码可见性 控件,同时保住登录 API 和键盘行为。

需求由用户提出。仓库工作流由 coding agent 跑完。

圈定范围#

agent 写一张 sprint card,上面只放一个确切的、可开成 Task 的条目。

Code · markdown
# Password Visibility [plan-ref: login/password-visibility/root]

- [ ] Add the accessible control and focused tests. [ref: login/password-visibility/implement]

然后从这个确切条目启动绑定的 Task。

Code · bash
ait task start \
  --from docs/sprints/password_visibility.md#login/password-visibility/implement \
  --intent "Add accessible password visibility control"

输出会给出 Task、Change 和工作区路径。

在绑定的工作区里实现#

agent 进到打印出来的那个路径,改控件、改对应的测试,再跑仓库自己那 套验证。AIT 不猜框架,也不替你编一条测试命令。

Code · text
src/LoginForm.tsx
tests/LoginForm.test.tsx
3 tests passed

记录结果#

检查通过之后,agent 把代码状态记下来。

Code · bash
ait snapshot create --message "Add accessible password visibility control"

有远程支撑的工作接着用引导式的就绪命令,直到选中的 Patchset 拿齐 CI、 attestation、评审和策略这几类证据。

Code · bash
ait workflow ready <change-id> --apply

收尾并核对#

agent 用仓库生成指示里给的那条 Task 命令收尾,然后核对 Task、工作区、 Line 和 sprint 条目是否都已关闭。

Code · bash
ait task land <task-or-change-id>
ait task audit <task-id>

想看同一套流程跑起来,用交互式 Demo;命令细节打开 ait task 参考。

Version authority

Checked against the exact 1.0.0 source

This page is public documentation, not a second product contract. Use the exact source and distribution contract for release authority.

Owning component Snapshots
  • ait-coreSNP-B06A48DA0245
  • ait-serverSNP-E90456E6425E
  • ait-runnerSNP-6B0A1BB3AFAD
  • ait-pythonSNP-973E3BFAF3DE
  • ait-nodeSNP-F962CC66AA62