@codetreker/daynight 0.8.17 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client.d.ts +4 -1
- package/dist/api/client.js +7 -1
- package/dist/api/client.js.map +1 -1
- package/dist/api/types.d.ts +4 -2
- package/dist/cli/commands.js +1 -0
- package/dist/cli/commands.js.map +1 -1
- package/dist/commands/completion/bash.js +1 -1
- package/dist/commands/completion/bash.js.map +1 -1
- package/dist/commands/completion/zsh.js +1 -1
- package/dist/commands/completion/zsh.js.map +1 -1
- package/dist/commands/review/adapters/copilot.js +1 -0
- package/dist/commands/review/adapters/copilot.js.map +1 -1
- package/dist/commands/review/skills/daynight-review/SKILL.md +69 -4
- package/dist/commands/skill/skills/using-daynight/SKILL.md +34 -20
- package/dist/commands/skill/skills/using-daynight/references/autopilot.md +52 -33
- package/dist/commands/skill/skills/using-daynight/references/create-task.md +132 -77
- package/dist/commands/skill/skills/using-daynight/references/goal.md +170 -0
- package/dist/commands/skill/skills/using-daynight/references/handbook.md +65 -34
- package/dist/commands/skill/skills/using-daynight/references/run-task.md +95 -59
- package/dist/commands/task/command.js +13 -7
- package/dist/commands/task/command.js.map +1 -1
- package/dist/commands/task/definition.js +18 -6
- package/dist/commands/task/definition.js.map +1 -1
- package/package.json +4 -3
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
# Autopilot
|
|
2
2
|
|
|
3
3
|
Enter this mode only when the user explicitly requests automatic execution of
|
|
4
|
-
Daynight tasks. Use the confirmed
|
|
5
|
-
|
|
4
|
+
Daynight tasks. Use the confirmed Goal or work scope. Loading the skill, a ready
|
|
5
|
+
task, or a completed `run-task` does not activate autopilot. A bare
|
|
6
6
|
`using-daynight` invocation can resume it only when the conversation establishes
|
|
7
7
|
that the user already activated it.
|
|
8
8
|
|
|
9
|
-
Read [the handbook](handbook.md) for discovery and query semantics.
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Read [the handbook](handbook.md) for discovery and query semantics. For a Goal
|
|
10
|
+
chain, read [the Goal protocol](goal.md) for stage requirements, breakdown, and
|
|
11
|
+
whole-Goal acceptance. Delegate execution and completion to
|
|
12
|
+
[run-task](run-task.md); do not maintain a separate delivery lifecycle here.
|
|
12
13
|
|
|
13
14
|
## Restore the current target
|
|
14
15
|
|
|
15
|
-
Resume this session's current task before selecting new work. Read
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
Resume this session's current task before selecting new work. Read its ID from
|
|
17
|
+
the conversation or existing execution checkpoint, then refresh it with
|
|
18
|
+
`daynight task show <task-id> --json`. If identity is unknown, query
|
|
19
|
+
`daynight task list --status in_progress --json` as needed and establish which
|
|
20
|
+
task belongs to the current work. An arbitrary `in_progress` task is not
|
|
21
|
+
this session's target.
|
|
21
22
|
|
|
22
23
|
A waiting checkpoint retains its task until that task is confirmed done or the
|
|
23
24
|
user explicitly changes the target. Resume the required next action when
|
|
@@ -31,41 +32,59 @@ When there is no current task, query:
|
|
|
31
32
|
daynight task ready --json
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
Pick exactly one ready `todo` task most relevant to the confirmed
|
|
35
|
-
authorized work. Compare
|
|
36
|
-
dependencies; creation order does not establish
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
execution authorization. Pass the selected
|
|
35
|
+
Pick exactly one approved ready `todo` task most relevant to the confirmed Goal and
|
|
36
|
+
authorized work. Compare concrete actions, scope, deliverables, solution,
|
|
37
|
+
acceptance criteria, and actual dependencies; creation order does not establish
|
|
38
|
+
relevance. Read full details and actual task-specific and shared inputs for
|
|
39
|
+
plausible candidates before choosing. Readiness checks prerequisites, not stage
|
|
40
|
+
artifact completeness or execution authorization. Pass the selected ID to
|
|
41
|
+
`run-task`, which claims the version observed for that decision before starting.
|
|
42
|
+
Autopilot never auto-approves proposed work. Goal creation, completed description
|
|
43
|
+
or design, and permission to execute do not authorize task approval.
|
|
40
44
|
|
|
41
45
|
Ready returns at most 10 candidates by default, or the requested bounded
|
|
42
46
|
`--limit`; it is not a complete backlog. If this page is empty or no candidate
|
|
43
47
|
matches, obtain the additional context actually needed through selected reads,
|
|
44
48
|
the graph, or a complete filtered list as described in the handbook. Distinguish
|
|
45
|
-
completed scope,
|
|
46
|
-
and insufficient
|
|
47
|
-
|
|
49
|
+
completed scope, work awaiting explicit approval, prerequisite-blocked work, other
|
|
50
|
+
ongoing work, and insufficient
|
|
51
|
+
candidates. Do not take unrelated work to stay busy or report completion from an
|
|
52
|
+
empty or unrelated bounded page.
|
|
48
53
|
|
|
49
54
|
Autopilot permission covers execution of existing tasks, not creation of new
|
|
50
|
-
ones. If the confirmed
|
|
51
|
-
|
|
52
|
-
[create-task](create-task.md).
|
|
53
|
-
|
|
55
|
+
ones. If the confirmed Goal requires missing tracked work, use explicit creation
|
|
56
|
+
permission already granted for that scope or obtain it, then use
|
|
57
|
+
[create-task](create-task.md). Permission to create a Goal already covers both
|
|
58
|
+
starting tasks and its later in-scope breakdown; do not ask again for each one.
|
|
59
|
+
Creation leaves proposed tasks pending separate explicit approval and returns
|
|
60
|
+
to this mode without starting execution. The design stage must
|
|
61
|
+
actually register and verify the complete delivery breakdown before handing over
|
|
62
|
+
its required PR; successor execution waits for design completion.
|
|
54
63
|
|
|
55
|
-
## Advance serially
|
|
64
|
+
## Advance serially and accept the scope
|
|
56
65
|
|
|
57
|
-
Run one task at a time. Subagents collaborate on
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
Run one task at a time. Subagents collaborate on it; they do not each choose a
|
|
67
|
+
separate task. Ordinary CI, review, and merge waits keep that target. After
|
|
68
|
+
`run-task` confirms `done`, refresh readiness and select at most one next related
|
|
69
|
+
task within the same authorized scope. Description completion permits design
|
|
70
|
+
selection, and design completion permits delivery selection, only when the next
|
|
71
|
+
task is approved ready todo, its stage inputs are complete, this mode is explicitly
|
|
72
|
+
active and execution is authorized. Stage completion satisfies a dependency; it
|
|
73
|
+
never approves a successor. Explicit scoped user approval may cover stated Goal
|
|
74
|
+
tasks, but the Goal-creation permission itself does not.
|
|
61
75
|
|
|
62
76
|
If `run-task` returns a wait requiring external intervention, preserve its
|
|
63
77
|
current-task checkpoint and report the blocker and required next action. An
|
|
64
78
|
explicit no-merge or user-review requirement is such a wait; it never permits
|
|
65
79
|
auto-merge or marking the task done. Return without replacing the target.
|
|
66
80
|
|
|
81
|
+
Before reporting a Goal complete, apply the Goal protocol's whole-Goal acceptance:
|
|
82
|
+
verify the full registered scope, every delivery task's completion, all necessary
|
|
83
|
+
PR merges, and the original overall acceptance evidence. A completed description
|
|
84
|
+
or design is only a stage result. For other scopes, verify their confirmed
|
|
85
|
+
completion conditions against the actual work.
|
|
86
|
+
|
|
67
87
|
Stop when the confirmed scope is complete, the user requests a stop, or progress
|
|
68
|
-
needs external intervention. Report
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
or push mainline.
|
|
88
|
+
needs external intervention. Report observed results, remaining blockers, and
|
|
89
|
+
the checkpoint. Automatic task selection does not expand permission to merge,
|
|
90
|
+
deploy, communicate externally, or push mainline.
|
|
@@ -2,102 +2,157 @@
|
|
|
2
2
|
|
|
3
3
|
Use this mode to prepare and register work that needs persistent tracking. Read
|
|
4
4
|
[the handbook](handbook.md) before discovery, queries, or writes. Return after
|
|
5
|
-
registration; creating
|
|
6
|
-
autopilot.
|
|
5
|
+
registration; creating work does not authorize approval, execution or autopilot.
|
|
7
6
|
|
|
8
|
-
Create
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
before creating a task; do not repeat a request already covered by explicit
|
|
13
|
-
permission.
|
|
7
|
+
Create tasks only with the user's explicit permission for the relevant scope.
|
|
8
|
+
Loading this mode, needing durable tracking, or permission to implement or run
|
|
9
|
+
autopilot does not grant creation permission. Ask when it is missing; reuse
|
|
10
|
+
permission already granted for the scope.
|
|
14
11
|
|
|
15
|
-
##
|
|
12
|
+
## Choose the tracked outcome
|
|
16
13
|
|
|
17
|
-
One-off operations and trivial work do not need a task. Keep transient
|
|
18
|
-
steps in the existing
|
|
19
|
-
independently understandable outcome when
|
|
20
|
-
cross-session continuity, handoff, or dependency coordination. If the
|
|
21
|
-
|
|
14
|
+
One-off operations and trivial work do not need a task. Keep transient commands,
|
|
15
|
+
tests, and execution steps in the existing plan. With creation permission,
|
|
16
|
+
register an independently understandable outcome when delivery needs continued
|
|
17
|
+
tracking, cross-session continuity, handoff, or dependency coordination. If the
|
|
18
|
+
request does not merit a task, explain that conclusion and return.
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
For multiple independently tracked delivery stages, follow
|
|
21
|
+
[the Goal protocol](goal.md). Register its Goal description task and dependent
|
|
22
|
+
architecture-and-breakdown placeholder together. Their own stage briefs are
|
|
23
|
+
required at registration; the finished Goal, UI prototype, architecture, and
|
|
24
|
+
breakdown are outputs of the stages that produce them. Creating a Goal covers
|
|
25
|
+
both starting tasks and its later in-scope breakdown within the granted creation
|
|
26
|
+
permission. Do not execute a stage in this mode.
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
For a single tracked outcome, prepare its solution, acceptance criteria, and
|
|
29
|
+
applicable mock UI before registration, following the artifact rules below.
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
the
|
|
31
|
+
Look for existing work with the same problem and scope, including completed
|
|
32
|
+
tasks; the default list contains only unfinished work. Inspect full descriptions,
|
|
33
|
+
actual dependencies, primary Markdown, and acceptance criteria. For a Goal,
|
|
34
|
+
inspect the existing chain and its owning inputs. Titles alone do not establish
|
|
35
|
+
identity. Reuse suitable work and preserve valid requirements; interrupted
|
|
36
|
+
registration does not justify a duplicate task or chain.
|
|
37
|
+
|
|
38
|
+
## Write task-specific content
|
|
39
|
+
|
|
40
|
+
Use the target repository's document and workspace rules.
|
|
35
41
|
|
|
36
42
|
| Content | Owner |
|
|
37
43
|
|---|---|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
44
|
+
| Concrete problem, current actions and scope, deliverables, constraints, completion summary, and real input references | Task `description` |
|
|
45
|
+
| Detailed solution, full acceptance criteria, verification methods, and completion evidence | This task's primary Markdown attachment |
|
|
46
|
+
| Applicable visual and interaction design | Owning task's interactive mock UI and resources, referenced by consumers |
|
|
41
47
|
| Prerequisite tasks | `dependsOn` only |
|
|
42
48
|
| Delivery PR URLs and titles | `properties.pullRequests` |
|
|
43
49
|
|
|
44
|
-
Give
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
Give each task an outcome-focused title and a self-contained Markdown
|
|
51
|
+
description: a reader must understand what this specific task will do, deliver,
|
|
52
|
+
and verify without opening attachments. Summarize the approach and observable
|
|
53
|
+
completion conditions, then reference the real detailed sources. A generic
|
|
54
|
+
problem sentence and a link list are insufficient. Keep the summary consistent
|
|
55
|
+
with its primary Markdown without maintaining a second complete plan in the
|
|
56
|
+
description.
|
|
57
|
+
|
|
58
|
+
The primary Markdown must contain **Solution** and **Acceptance criteria**
|
|
59
|
+
sections; equivalent headings in the task's language are valid. Define the
|
|
60
|
+
current task's approach, scope, behavioral constraints, observable completion
|
|
61
|
+
conditions, and how to verify them. Stage briefs describe the work that will
|
|
62
|
+
produce that stage's results. They do not claim unfinished outputs already exist.
|
|
63
|
+
Link supporting resources from the primary document.
|
|
64
|
+
|
|
65
|
+
Attach only this task's detailed plan, needed resources, and outputs. Shared
|
|
66
|
+
Goal requirements stay with the Goal description task; architecture and
|
|
67
|
+
breakdown stay with the design task. Consumers identify the source task ID and
|
|
68
|
+
attachment path and confirm the contents using the installed CLI's attachment
|
|
69
|
+
read command. For repository inputs, use verified immutable references. Do not
|
|
70
|
+
assume a `task://` scheme, cross-task relative links, or a fixed service host.
|
|
71
|
+
Do not upload the same whole packet to every task. Create a separate snapshot
|
|
72
|
+
only when the task needs an independent copy, recording its purpose, original
|
|
73
|
+
source, and source revision or content identity.
|
|
74
|
+
|
|
75
|
+
A frontend delivery task requires an interactive mock UI that runs with frontend code
|
|
76
|
+
alone, matches final visual styling, and represents relevant data and interaction
|
|
77
|
+
states. Include applicable populated, empty, loading, failure, disabled, long
|
|
78
|
+
content, and narrow-screen cases. Provide required CSS, JavaScript, images, and
|
|
79
|
+
other resources with working relative references. A static sketch or simplified
|
|
80
|
+
styling does not satisfy this requirement. For a UI Goal, this prototype is
|
|
81
|
+
produced by the Goal description stage and referenced by later tasks.
|
|
82
|
+
|
|
83
|
+
Use established task IDs in `dependsOn` for real prerequisites. Do not add a
|
|
84
|
+
Dependencies section or duplicate the dependency list in the description or
|
|
85
|
+
Markdown. A top-level task has no dependencies. Repository specifications and
|
|
86
|
+
design documents retain their full contracts; the task's own primary attachment
|
|
87
|
+
must still provide a specific solution and verifiable acceptance criteria.
|
|
88
|
+
|
|
89
|
+
## Author Markdown
|
|
90
|
+
|
|
91
|
+
Use headings, paragraphs, lists, quotes, fenced code, tables, links, and images
|
|
92
|
+
when they help readers understand the assignment. The Web renders CommonMark
|
|
93
|
+
and GFM; raw HTML appears as text. API and CLI reads retain the original Markdown
|
|
94
|
+
string, with no separate format field. Preserve its syntax, whitespace, code,
|
|
95
|
+
and valid references when replacing the complete description.
|
|
96
|
+
|
|
97
|
+
A relative link or image in a description starts at this task's attachment root.
|
|
98
|
+
A link inside a Markdown attachment starts at that file's directory. Keep paths
|
|
99
|
+
inside the task root and preserve the actual case and resource identity. Confirm
|
|
100
|
+
an upload and read back its contents before adding its link. Reference shared
|
|
101
|
+
inputs by their verified source task ID and attachment path or immutable
|
|
102
|
+
repository URL; a relative link cannot identify another task's attachment.
|
|
103
|
+
|
|
104
|
+
For example, the following brief applies to a task whose confirmed, readable
|
|
105
|
+
attachments include its own `plan.md` and the complete `mockui/index.html`
|
|
106
|
+
prototype with its resources. Use these paths only when those files actually
|
|
107
|
+
belong to that task; adapt the content and references to the actual assignment.
|
|
108
|
+
A Goal stage that produces a prototype links it only after producing and
|
|
109
|
+
confirming it.
|
|
54
110
|
|
|
55
111
|
```markdown
|
|
56
|
-
##
|
|
112
|
+
## 问题与行动
|
|
113
|
+
登录失败后,用户无法判断是否可以重试。实现明确的失败原因和重试入口,保留当前登录表单输入。
|
|
57
114
|
|
|
58
|
-
|
|
59
|
-
|
|
115
|
+
## 范围与交付
|
|
116
|
+
更新登录页的错误提示、重试交互和中英文文案;沿用现有认证接口与会话边界。
|
|
60
117
|
|
|
61
|
-
##
|
|
118
|
+
## 完成条件
|
|
119
|
+
网络失败和凭据错误均显示对应提示;重试成功后进入工作区。桌面与窄屏、两种语言的交互通过验证,表单输入保持正确。
|
|
62
120
|
|
|
63
|
-
|
|
64
|
-
- Clearing the filter restores the complete list.
|
|
65
|
-
- Verify filtering, empty results, and narrow-screen interaction against the mock UI.
|
|
66
|
-
```
|
|
121
|
+
## 资料
|
|
67
122
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
content, and narrow-screen cases. Upload required CSS, JavaScript, images, and
|
|
72
|
-
other resources with working relative references. A static sketch or simplified
|
|
73
|
-
styling does not satisfy this requirement.
|
|
123
|
+
- [方案与验收](plan.md)
|
|
124
|
+
- [交互原型](mockui/index.html)
|
|
125
|
+
```
|
|
74
126
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
specifications and design documents retain ownership of their full contracts;
|
|
79
|
-
the primary attachment must still give the executor a clear solution and
|
|
80
|
-
verifiable acceptance criteria.
|
|
127
|
+
This remains a concise assignment. Its own primary Markdown still contains the
|
|
128
|
+
specific **Solution** and **Acceptance criteria**, verification methods, and
|
|
129
|
+
evidence. The prototype remains with its actual owner when shared across a Goal.
|
|
81
130
|
|
|
82
131
|
## Register and verify
|
|
83
132
|
|
|
84
|
-
Reuse the established project and
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
resources
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Read back
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
133
|
+
Reuse the established project and suitable tasks. Create new tasks in `proposed`,
|
|
134
|
+
retaining each confirmed ID. Set their concrete descriptions and actual
|
|
135
|
+
`dependsOn` prerequisites. Upload each task's own primary Markdown and required
|
|
136
|
+
resources; add actual attachment references to the complete description using
|
|
137
|
+
the observed task version. Reference already readable shared inputs at their
|
|
138
|
+
source. Do not present planned uploads as existing attachments.
|
|
139
|
+
|
|
140
|
+
Read back each complete task, its attachment inventory and required contents,
|
|
141
|
+
and its referenced shared inputs. Verify self-contained Markdown descriptions,
|
|
142
|
+
valid links and images, the two required primary-document sections, real source
|
|
143
|
+
identities, intended dependencies, and applicable mock UI resources and
|
|
144
|
+
interaction. For a Goal, verify both starting tasks and their stage briefs.
|
|
145
|
+
Registration is complete only when required artifacts and associations are
|
|
146
|
+
confirmed readable. Without separate explicit approval authorization, leave
|
|
147
|
+
registered work proposed and report that approval is pending. Goal-creation
|
|
148
|
+
permission covers the two starting tasks and later in-scope breakdown, but never
|
|
149
|
+
their approval. A user can explicitly approve a stated task or Goal-task scope,
|
|
150
|
+
or approve directly through CLI/Web; an authorized Agent uses each reviewed
|
|
151
|
+
task's exact version through `task approve`.
|
|
152
|
+
|
|
153
|
+
If creation succeeds but a later operation fails, retain the confirmed IDs and
|
|
154
|
+
resume missing operations there. Tasks remain `proposed`. Reconcile uncertain results through the handbook before another
|
|
155
|
+
mutation. Report incomplete registration with the exact missing operation or
|
|
156
|
+
artifact and next step. Do not move detailed plans into descriptions to bypass
|
|
157
|
+
an attachment failure. Return after verified registration without selecting or
|
|
158
|
+
executing a task.
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Goal protocol
|
|
2
|
+
|
|
3
|
+
Read this reference when creating a multi-stage Goal, running one of its tasks,
|
|
4
|
+
or advancing its authorized scope. Use [create-task](create-task.md) for content
|
|
5
|
+
and registration rules, [run-task](run-task.md) for one task's lifecycle, and
|
|
6
|
+
[the handbook](handbook.md) for CLI semantics. A Goal uses existing tasks,
|
|
7
|
+
attachments, `dependsOn`, and PR properties; it adds no CLI command, task type,
|
|
8
|
+
status, or execution authority.
|
|
9
|
+
|
|
10
|
+
## Identify and register a Goal
|
|
11
|
+
|
|
12
|
+
Use a Goal when completing the request requires multiple independently tracked
|
|
13
|
+
delivery stages. One independently tracked outcome remains a normal task;
|
|
14
|
+
commands, tests, and temporary execution steps do not each need persistent tasks.
|
|
15
|
+
The user need not use the word Goal.
|
|
16
|
+
|
|
17
|
+
Explicit permission to create a Goal covers its two starting tasks and the later
|
|
18
|
+
breakdown within that Goal. It covers no unrelated tasks and grants no execution,
|
|
19
|
+
publication, deployment, external communication, merge, or mainline push
|
|
20
|
+
permission. Existing explicit authorization continues to apply within its scope.
|
|
21
|
+
Implementation or autopilot permission alone does not grant creation permission.
|
|
22
|
+
Goal-creation permission does not authorize approval. Approve only tasks or a
|
|
23
|
+
Goal-task scope explicitly approved by the user, using each reviewed task's exact
|
|
24
|
+
version; CLI and Web approval are available. Goal creation, requirements/prototype
|
|
25
|
+
completion, design completion and autopilot never imply that instruction. Approval
|
|
26
|
+
itself grants no execution or delivery permission.
|
|
27
|
+
|
|
28
|
+
During registration, create or reuse both starting tasks:
|
|
29
|
+
|
|
30
|
+
| Task | Title | Initial content |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| Goal description | `[Goal]<outcome>` | The known overall problem, intended results, scope, constraints, UI applicability, exclusions, and observable acceptance summary; a stage brief for resolving open requirements and producing the complete Goal. |
|
|
33
|
+
| Architecture design and task breakdown | `Architecture design and task breakdown: <outcome>` | Its concrete work: consume the completed Goal, design the architecture, register the complete delivery breakdown, verify its artifacts and dependencies, and deliver any required design PR. Its own stage brief defines the approach and acceptance. |
|
|
34
|
+
|
|
35
|
+
The `[Goal]` marker is followed directly by the outcome. Goal description names
|
|
36
|
+
the stage; it is not the title prefix. Titles communicate purpose but do not
|
|
37
|
+
establish stable identity. Preserve confirmed IDs and inspect full content when
|
|
38
|
+
reusing an existing chain.
|
|
39
|
+
|
|
40
|
+
Set the design task's `dependsOn` to the Goal description task. Each task starts
|
|
41
|
+
in `proposed` with its own self-contained Markdown description and primary Markdown
|
|
42
|
+
containing Solution and Acceptance criteria. State unanswered questions honestly.
|
|
43
|
+
Complete requirements, prototypes, architecture, and breakdown are produced by their
|
|
44
|
+
respective stages; they are not prerequisites for registering the chain or
|
|
45
|
+
starting the stage that produces them. Confirm both tasks, stage briefs,
|
|
46
|
+
references, and dependency through real reads, then return from `create-task`.
|
|
47
|
+
Registration completeness leaves approval pending unless the user separately
|
|
48
|
+
authorized approval for those tasks. Metadata and attachment writes do not approve.
|
|
49
|
+
|
|
50
|
+
## Execute the appropriate stage
|
|
51
|
+
|
|
52
|
+
Every stage uses the same explicit task lifecycle. Proposed work waits for the
|
|
53
|
+
user's scoped approval; an authorized `task approve` moves it to todo even with
|
|
54
|
+
unfinished prerequisites. Begin only from approved ready todo with complete
|
|
55
|
+
stage inputs and execution authorization: use `task claim` with the exact version
|
|
56
|
+
observed for that decision and confirm in_progress. Resume existing in-progress
|
|
57
|
+
work after checking its actual checkpoint. After the stage acceptance and every
|
|
58
|
+
required authorized PR merge, reread and use `task complete` with the observed
|
|
59
|
+
version. Completion satisfies dependencies but never approves the next stage.
|
|
60
|
+
|
|
61
|
+
| Stage | Required inputs to start | Outputs and completion |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| Goal description | Its stage brief, current problem and scope, and available background. | Complete overall requirements, applicable final-style interactive UI prototype, verified stage acceptance, and repository-required delivery. Finishing this task completes problem definition. |
|
|
64
|
+
| Architecture design and task breakdown | Completed Goal description, its full requirements and applicable prototype, and the design stage brief. | Complete architecture and the actual registered delivery tasks, verified task-specific artifacts and dependencies, satisfied stage acceptance, and platform-confirmed merge of every required design PR. |
|
|
65
|
+
| Delivery task | Completed design prerequisite, delivered architecture, its own solution and acceptance criteria, and applicable prototype and resources. | This task's deliverable, verification, required review and PR merges, and readable acceptance evidence under the normal run-task rules. |
|
|
66
|
+
|
|
67
|
+
### Goal description
|
|
68
|
+
|
|
69
|
+
Explain the whole problem and why it matters, the final observable results,
|
|
70
|
+
required behavior and constraints, scope, explicit exclusions, and how the whole
|
|
71
|
+
Goal will be accepted. The task description itself must communicate this complete
|
|
72
|
+
overall brief and a concise acceptance summary. Its primary Markdown owns the
|
|
73
|
+
full requirements, verification methods, and stage evidence. Resolve blocking
|
|
74
|
+
ambiguities without making architecture decisions or changing production
|
|
75
|
+
implementation code.
|
|
76
|
+
|
|
77
|
+
For a UI Goal, specify final layout, visual styling, interactions, representative
|
|
78
|
+
data, and relevant states. Produce an interactive prototype that runs with
|
|
79
|
+
frontend code alone, with final styling and all necessary resources. Cover
|
|
80
|
+
applicable populated, empty, loading, failure, disabled, long-content, and
|
|
81
|
+
narrow-screen states; explain exclusions when a relevant-looking state does not
|
|
82
|
+
apply. Prototype code is an allowed problem-definition artifact. View and
|
|
83
|
+
exercise the result when verifying this stage.
|
|
84
|
+
|
|
85
|
+
Confirm the full requirements are clear, the applicable prototype is usable,
|
|
86
|
+
and this stage's acceptance and repository delivery rules are satisfied. If
|
|
87
|
+
repository rules require a PR for these artifacts, use the existing PR completion
|
|
88
|
+
rules. Otherwise use the stated stage acceptance. Complete only this in-progress
|
|
89
|
+
task through `task complete` with its observed version after verification. This
|
|
90
|
+
satisfies design's dependency; design still needs its own approval and claim, and
|
|
91
|
+
whole-Goal delivery remains unverified.
|
|
92
|
+
|
|
93
|
+
### Architecture design and actual task breakdown
|
|
94
|
+
|
|
95
|
+
Consume the completed Goal and prototype. Design the responsibilities, boundaries,
|
|
96
|
+
data and control flow, contracts, error behavior, key decisions, and validation
|
|
97
|
+
approach required by the target repository and Goal.
|
|
98
|
+
|
|
99
|
+
During this task, register the complete set of persistent delivery tasks needed
|
|
100
|
+
to satisfy the Goal. Each represents a concrete outcome with its own actions,
|
|
101
|
+
scope, deliverables, constraints, solution, acceptance criteria, verification
|
|
102
|
+
methods, and real input references. Their combined scope must cover the complete
|
|
103
|
+
Goal. A future registration list or a vague implementation placeholder does not
|
|
104
|
+
satisfy task breakdown.
|
|
105
|
+
|
|
106
|
+
Use `dependsOn` for actual prerequisites. Every delivery root with no other
|
|
107
|
+
implementation prerequisite depends directly on the design task; all delivery
|
|
108
|
+
paths must therefore pass through design completion. Keep delivery tasks blocked
|
|
109
|
+
while design is unfinished. This stage registers and verifies them; it does not
|
|
110
|
+
execute them. New successors are proposed; approval requires a separate explicit
|
|
111
|
+
user instruction covering them, even when Goal creation already permits their
|
|
112
|
+
registration. Approved successors still wait for completed design prerequisites.
|
|
113
|
+
|
|
114
|
+
Upload each successor's own primary Markdown and needed resources, referencing
|
|
115
|
+
shared Goal and design inputs at their verified source. The design task owns its
|
|
116
|
+
architecture and breakdown outputs. Read back every registered task, required
|
|
117
|
+
attachment, source reference, and dependency. Verify the full breakdown before
|
|
118
|
+
handing over the design PR. When review changes the design, update its owning
|
|
119
|
+
artifacts and affected task summaries, plans, and references coherently, then
|
|
120
|
+
reread them before completion.
|
|
121
|
+
|
|
122
|
+
Follow repository document and independent review requirements. When a design
|
|
123
|
+
PR is required, create it and maintain the full `properties.pullRequests` list.
|
|
124
|
+
Keep this task `in_progress` until every necessary PR is platform-confirmed merged
|
|
125
|
+
and stage acceptance is satisfied. An open PR, successful CI, or approval does
|
|
126
|
+
not complete design. A user-review or no-merge instruction preserves this task
|
|
127
|
+
and its blocking dependency while waiting; it grants no merge authority.
|
|
128
|
+
|
|
129
|
+
## Preserve ownership and recover partial registration
|
|
130
|
+
|
|
131
|
+
Every stage and delivery task needs its own self-contained Markdown description
|
|
132
|
+
and detailed primary Markdown. Follow create-task's Markdown and verified-resource
|
|
133
|
+
rules without claiming unfinished stage outputs are already available. Keep shared
|
|
134
|
+
requirements on the Goal description task and shared architecture and breakdown on the design task. Later tasks reference
|
|
135
|
+
verified source task IDs and attachment paths, read through the installed CLI,
|
|
136
|
+
or verified immutable repository references. Do not distribute a duplicate whole
|
|
137
|
+
packet to all tasks. Only copy a snapshot when the consuming task needs it,
|
|
138
|
+
recording the purpose, original source, and source revision or content identity.
|
|
139
|
+
|
|
140
|
+
Registration comprises independent writes, not a transaction. Reuse confirmed
|
|
141
|
+
IDs if creating the second starting task, uploading an artifact, updating a
|
|
142
|
+
reference, or registering part of the breakdown fails. Before retrying an
|
|
143
|
+
uncertain write, read the complete actual resource and operation context as the
|
|
144
|
+
handbook requires. A similar title does not prove success, and a lost response
|
|
145
|
+
does not prove failure. If identity cannot be established uniquely, preserve the
|
|
146
|
+
specific error and request the information needed to reconcile it; do not create
|
|
147
|
+
another chain.
|
|
148
|
+
|
|
149
|
+
Apply the handbook's exact-version rules to metadata updates, approval, claim
|
|
150
|
+
and completion, and preserve complete-field replacement semantics for updates. Attachments are independent of task versions, status, and timestamps;
|
|
151
|
+
verify actual file contents and metadata separately. Do not unlock delivery by
|
|
152
|
+
marking incomplete registration or unfinished design complete. Readiness and
|
|
153
|
+
`in_progress` provide no ownership lock; claim is a versioned transition, not an
|
|
154
|
+
assignee lease. Generic updates cannot write status or bypass stages.
|
|
155
|
+
|
|
156
|
+
## Advance and accept the whole Goal
|
|
157
|
+
|
|
158
|
+
`run-task` returns after its specified task completes or requires external
|
|
159
|
+
intervention. Completing registration, Goal description, or design never activates
|
|
160
|
+
autopilot. Only explicitly active `autopilot` may select the next related task
|
|
161
|
+
after confirming the current task `done`, within the user's authorized scope.
|
|
162
|
+
CI, review, and merge waits remain with the current task.
|
|
163
|
+
|
|
164
|
+
To report the whole Goal complete, inspect the full registered delivery scope,
|
|
165
|
+
confirm every delivery task completed and every necessary PR actually merged,
|
|
166
|
+
and verify the original Goal's overall acceptance criteria with recorded
|
|
167
|
+
evidence. Description completion, design completion, one delivery PR, or an empty
|
|
168
|
+
ready page is insufficient. Distinguish verified partial results and remaining
|
|
169
|
+
blockers from whole-Goal completion. This check does not create a new Goal status
|
|
170
|
+
or reopen the completed problem-definition task.
|