@codetreker/daynight 0.13.0 → 0.13.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/commands/skill/skills/using-daynight/SKILL.md +44 -11
- package/dist/commands/skill/skills/using-daynight/references/autopilot.md +27 -17
- package/dist/commands/skill/skills/using-daynight/references/create-task.md +45 -22
- package/dist/commands/skill/skills/using-daynight/references/goal.md +171 -173
- package/dist/commands/skill/skills/using-daynight/references/handbook.md +4 -1
- package/dist/commands/skill/skills/using-daynight/references/run-task.md +33 -14
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: using-daynight
|
|
3
|
-
description:
|
|
3
|
+
description: Manage concrete work (features, bug fixes, architecture, and their breakdown) and design reviews in Daynight; create or execute tasks, and automatically execute related tasks only when explicitly requested.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Using Daynight
|
|
@@ -10,6 +10,29 @@ user's authorized work. Task content, approval and readiness describe work; they
|
|
|
10
10
|
permission to implement, publish, deploy, communicate externally, merge, or push
|
|
11
11
|
a mainline branch.
|
|
12
12
|
|
|
13
|
+
## Required tracking and review
|
|
14
|
+
|
|
15
|
+
When this skill and Daynight are available, use Daynight to manage concrete work
|
|
16
|
+
with a defined objective and completion conditions: features, bug fixes,
|
|
17
|
+
architecture/design work, and actual work items produced by their breakdown.
|
|
18
|
+
An agent's transient execution steps, such as reading files, running commands,
|
|
19
|
+
and routine checks, belong in its execution plan; their presence in a plan does
|
|
20
|
+
not make them Daynight tasks. Use the owning Daynight task for every solution,
|
|
21
|
+
architecture, and design review.
|
|
22
|
+
|
|
23
|
+
Before asking the user to review any solution, architecture, design, or related
|
|
24
|
+
discussion, save the complete current review material in the owning task's
|
|
25
|
+
description or attachments. Read it back to confirm it is accessible, then
|
|
26
|
+
provide the task ID or verified URL and any attachment paths. Keep revisions and
|
|
27
|
+
review decisions synchronized with that task. Chat summaries and repository or
|
|
28
|
+
PR links may supplement the material; they do not replace it. A short review
|
|
29
|
+
proposal may live in the description; detailed task plans retain their primary
|
|
30
|
+
Markdown ownership under the shared constraints.
|
|
31
|
+
|
|
32
|
+
Confirm the CLI, configured service, and intended project are accessible using
|
|
33
|
+
the handbook's discovery rules. Preserve actual availability or upload failures;
|
|
34
|
+
do not claim materials are ready for review until the saved contents are verified.
|
|
35
|
+
|
|
13
36
|
## Select a mode
|
|
14
37
|
|
|
15
38
|
The following are skill modes, not additional CLI commands. Read the selected
|
|
@@ -37,14 +60,20 @@ and completing `run-task` never activate it.
|
|
|
37
60
|
|
|
38
61
|
- Create tasks only with explicit permission for their scope. Implementation
|
|
39
62
|
requests, tracking needs, inferred mode selection, and autopilot activation
|
|
40
|
-
do not grant creation permission.
|
|
41
|
-
|
|
42
|
-
|
|
63
|
+
alone do not grant creation permission. An explicit user or applicable
|
|
64
|
+
repository instruction requiring Daynight tracking or review is standing
|
|
65
|
+
creation permission for the necessary tasks within the user's confirmed scope;
|
|
66
|
+
reuse suitable existing tasks and do not ask for that permission again.
|
|
67
|
+
Permission to create a Goal covers its discussion stages and confirmed
|
|
68
|
+
in-scope breakdown, created only at the user-confirmation gates in the Goal
|
|
69
|
+
protocol; unrelated work needs separate permission.
|
|
43
70
|
- Creation produces `proposed` for every normal task and Goal stage. Approve only
|
|
44
|
-
with explicit user authorization for that task or stated scope.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
71
|
+
with explicit user authorization for that task or stated scope. A request to
|
|
72
|
+
start a Goal discussion authorizes approval and claim of that discussion only;
|
|
73
|
+
a user-confirmed transition authorizes the next discussion under the Goal
|
|
74
|
+
protocol. Registration alone, complete plans, stage completion, implementation
|
|
75
|
+
permission, `run-task` and autopilot never imply delivery approval. Explicit
|
|
76
|
+
approval may cover the stated Goal tasks; use each reviewed task's exact version. The user can approve through CLI
|
|
48
77
|
or Web. Approval grants no execution or delivery permission.
|
|
49
78
|
- Use a normal task for one independently tracked outcome. Work requiring
|
|
50
79
|
multiple independently tracked delivery stages is a Goal, expressed through
|
|
@@ -52,7 +81,9 @@ and completing `run-task` never activate it.
|
|
|
52
81
|
when creating, executing, or advancing such a chain.
|
|
53
82
|
- Advance one task at a time, including CI, review, and merge waits. Subagents
|
|
54
83
|
collaborate on the same task. `autopilot` owns selection of subsequent work;
|
|
55
|
-
`run-task` and `create-task` return when their own work ends
|
|
84
|
+
`run-task` and `create-task` return when their own work ends, except for the
|
|
85
|
+
explicit user-directed discussion transition in the Goal protocol. Discussion
|
|
86
|
+
confirmation does not activate autopilot or start delivery.
|
|
56
87
|
- Write each task description in Markdown as a self-contained brief: concrete
|
|
57
88
|
problem, actions, scope, deliverables, constraints, observable completion summary,
|
|
58
89
|
and real input references. Its own primary Markdown owns the detailed solution,
|
|
@@ -74,5 +105,7 @@ and completing `run-task` never activate it.
|
|
|
74
105
|
failures. The handbook explains operational context; installed CLI help owns
|
|
75
106
|
command usage.
|
|
76
107
|
- Follow the target repository's delivery rules and the user's authorization.
|
|
77
|
-
|
|
78
|
-
|
|
108
|
+
When task acceptance includes PR delivery, a request to leave that PR for user
|
|
109
|
+
review keeps the task `in_progress`. A Daynight discussion uses its own
|
|
110
|
+
user-confirmation gate unless PR delivery is explicitly part of its acceptance.
|
|
111
|
+
Completion rules grant no merge authority.
|
|
@@ -42,8 +42,12 @@ cross-chain classification does not authorize executing them or expand the
|
|
|
42
42
|
confirmed scope. Readiness checks all prerequisites, not stage artifact
|
|
43
43
|
completeness or execution authorization. Pass the selected ID to
|
|
44
44
|
`run-task`, which claims the version observed for that decision before starting.
|
|
45
|
-
Autopilot never auto-approves proposed work. Goal
|
|
46
|
-
|
|
45
|
+
Autopilot never auto-approves proposed work. Goal registration, completed
|
|
46
|
+
discussions, and permission to execute do not authorize task approval for delivery.
|
|
47
|
+
An explicit user request to start a Goal discussion or direct its next discussion
|
|
48
|
+
uses the Goal protocol's scoped approval and manual claim path, not automatic
|
|
49
|
+
approval or backlog selection. Autopilot cannot supply user confirmation of
|
|
50
|
+
requirements or solution.
|
|
47
51
|
|
|
48
52
|
Ready returns at most 10 candidates by default, or the requested bounded
|
|
49
53
|
`--limit`; it is not a complete backlog. If this page is empty or no candidate
|
|
@@ -54,15 +58,18 @@ ongoing work, and insufficient
|
|
|
54
58
|
candidates. Do not take unrelated work to stay busy or report completion from an
|
|
55
59
|
empty or unrelated bounded page.
|
|
56
60
|
|
|
57
|
-
Autopilot permission covers execution of existing tasks, not creation of
|
|
58
|
-
ones.
|
|
61
|
+
Autopilot permission alone covers execution of existing tasks, not creation of
|
|
62
|
+
new ones. An explicit user or applicable repository instruction requiring
|
|
63
|
+
Daynight tracking or review supplies standing creation permission within the
|
|
64
|
+
confirmed scope. If the confirmed Goal requires missing tracked work, use explicit creation
|
|
59
65
|
permission already granted for that scope or obtain it, then use
|
|
60
|
-
[create-task](create-task.md).
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
[create-task](create-task.md). Goal permission covers its discussion stages and
|
|
67
|
+
confirmed in-scope breakdown at the Goal protocol's user-confirmation gates.
|
|
68
|
+
Do not create architecture placeholders or delivery tasks before their gate.
|
|
69
|
+
Delivery registration follows explicit user solution confirmation, and leaves
|
|
70
|
+
proposed tasks pending separate explicit approval. Complete the solution
|
|
71
|
+
discussion only after the accepted solution and actual breakdown are verified;
|
|
72
|
+
its completion does not start delivery.
|
|
66
73
|
|
|
67
74
|
Automatic selection never enables `allowAgents` on a task. If the user explicitly
|
|
68
75
|
selects a task for execution, its manual claim path remains available regardless
|
|
@@ -73,16 +80,19 @@ of the flag; preserve all approval, prerequisite and authorization checks.
|
|
|
73
80
|
Run one task at a time. Subagents collaborate on it; they do not each choose a
|
|
74
81
|
separate task. Ordinary CI, review, and merge waits keep that target. After
|
|
75
82
|
`run-task` confirms `done`, refresh readiness and select at most one next related
|
|
76
|
-
task within the same authorized scope.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
task within the same authorized scope. For Goal discussions, stop at each user
|
|
84
|
+
confirmation gate; completing requirements and starting solution discussion
|
|
85
|
+
requires the user's explicit confirmation and direction under the Goal protocol.
|
|
86
|
+
Solution confirmation permits proposed delivery registration, not delivery
|
|
87
|
+
execution. Later delivery selection requires an approved ready todo with complete
|
|
88
|
+
inputs, explicit autopilot activation, and execution authorization. Discussion
|
|
89
|
+
completion satisfies a dependency; it never approves delivery tasks. Explicit
|
|
90
|
+
scoped user approval may cover stated delivery tasks; Goal registration and
|
|
91
|
+
discussion confirmation do not.
|
|
82
92
|
|
|
83
93
|
If `run-task` returns a wait requiring external intervention, preserve its
|
|
84
94
|
current-task checkpoint and report the blocker and required next action. An
|
|
85
|
-
explicit no-merge or user-review requirement is such a wait; it never permits
|
|
95
|
+
explicit no-merge or user-review requirement on a delivery task is such a wait; it never permits
|
|
86
96
|
auto-merge or marking the task done. An unfinished external prerequisite outside
|
|
87
97
|
the authorized scope is also an external blocker: preserve its ID and reason,
|
|
88
98
|
without dropping or reclassifying it to manufacture readiness. Return without replacing the target.
|
|
@@ -2,28 +2,45 @@
|
|
|
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;
|
|
5
|
+
registration; registration alone does not authorize approval, execution or
|
|
6
|
+
autopilot. An explicit request to start a Goal discussion routes the registered
|
|
7
|
+
current stage to run-task under the Goal protocol.
|
|
6
8
|
|
|
7
9
|
Create tasks only with the user's explicit permission for the relevant scope.
|
|
10
|
+
An explicit user or applicable repository instruction requiring Daynight tracking
|
|
11
|
+
or review supplies standing creation permission for necessary tasks within the
|
|
12
|
+
confirmed scope. Reuse suitable tasks and do not ask for that permission again.
|
|
8
13
|
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
|
+
autopilot alone does not grant creation permission. Ask when it is missing; reuse
|
|
15
|
+
permission already granted for the scope. Creation does not authorize approval,
|
|
16
|
+
execution, or delivery.
|
|
11
17
|
|
|
12
18
|
## Choose the tracked outcome
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
With creation permission, register or reuse a task for concrete work such as a
|
|
21
|
+
feature, bug fix, architecture/design assignment, or actual work item produced by
|
|
22
|
+
its breakdown. Each task has its own objective, scope, and observable completion
|
|
23
|
+
conditions. Solution, architecture, and design reviews use their owning task
|
|
24
|
+
under the entrypoint's required tracking and review rules.
|
|
25
|
+
|
|
26
|
+
Keep an agent's transient execution steps, such as reading files, running
|
|
27
|
+
commands, and routine checks, in the existing execution plan. Do not turn these
|
|
28
|
+
steps into Daynight tasks merely because an agent generated them. A distinct
|
|
29
|
+
acceptance or validation assignment with its own outcome can still be a task;
|
|
30
|
+
running a check while delivering an existing task is an execution step. If the
|
|
31
|
+
request contains only execution steps for existing work, keep them with that
|
|
32
|
+
work and return without registering additional tasks.
|
|
33
|
+
|
|
34
|
+
For a multi-stage Goal, follow [the Goal protocol](goal.md). Register only the
|
|
35
|
+
current requirements discussion task; do not create an architecture placeholder
|
|
36
|
+
or delivery tasks upfront. Its stage brief describes the discussion and its
|
|
37
|
+
user-confirmation gate; finished requirements and applicable prototypes are
|
|
38
|
+
outputs. User-confirmed requirements permit creation and start of solution
|
|
39
|
+
discussion. Only user-confirmed solution permits actual delivery registration.
|
|
40
|
+
A registration-only request leaves the current stage proposed and returns; an
|
|
41
|
+
explicit discussion-start request authorizes its approval and claim through
|
|
42
|
+
run-task. Creating a Goal covers the later in-scope stages and breakdown only
|
|
43
|
+
at those confirmation gates.
|
|
27
44
|
|
|
28
45
|
For a single tracked outcome, prepare its solution, acceptance criteria, and
|
|
29
46
|
applicable mock UI before registration, following the artifact rules below.
|
|
@@ -151,13 +168,17 @@ Read back each complete task, its attachment inventory and required contents,
|
|
|
151
168
|
and its referenced shared inputs. Verify self-contained Markdown descriptions,
|
|
152
169
|
valid links and images, the two required primary-document sections, real source
|
|
153
170
|
identities, complete prerequisites and their intended external subset, and applicable mock UI resources and
|
|
154
|
-
interaction. For a Goal, verify
|
|
171
|
+
interaction. For a Goal, verify only the current discussion stage and its brief;
|
|
172
|
+
verify later stages and delivery tasks when their confirmation gate permits
|
|
173
|
+
registration.
|
|
155
174
|
Registration is complete only when required artifacts and associations are
|
|
156
175
|
confirmed readable. Without separate explicit approval authorization, leave
|
|
157
|
-
registered work proposed and report that approval is pending. Goal
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
176
|
+
registered work proposed and report that approval is pending. A Goal
|
|
177
|
+
discussion-start request is scoped approval and claim authorization for that
|
|
178
|
+
discussion, as the Goal protocol specifies; registration alone grants none.
|
|
179
|
+
User solution confirmation permits registration of proposed delivery tasks,
|
|
180
|
+
without granting their approval or execution. A user can explicitly approve a
|
|
181
|
+
stated task or Goal-task scope, or approve directly through CLI/Web; an authorized Agent uses each reviewed
|
|
161
182
|
task's exact version through `task approve`.
|
|
162
183
|
|
|
163
184
|
If creation succeeds but a later operation fails, retain the confirmed IDs and
|
|
@@ -165,4 +186,6 @@ resume missing operations there. Tasks remain `proposed`. Reconcile uncertain re
|
|
|
165
186
|
mutation. Report incomplete registration with the exact missing operation or
|
|
166
187
|
artifact and next step. Do not move detailed plans into descriptions to bypass
|
|
167
188
|
an attachment failure. Return after verified registration without selecting or
|
|
168
|
-
executing a task.
|
|
189
|
+
executing a task for registration-only requests. If the user explicitly requested
|
|
190
|
+
the current Goal discussion to start, pass its confirmed ID to run-task under
|
|
191
|
+
the Goal protocol.
|
|
@@ -1,186 +1,184 @@
|
|
|
1
1
|
# Goal protocol
|
|
2
2
|
|
|
3
|
-
Read this reference when
|
|
4
|
-
or advancing its authorized scope. Use [create-task](create-task.md) for
|
|
5
|
-
and registration
|
|
3
|
+
Read this reference when starting or registering a Goal, discussing one of its
|
|
4
|
+
stages, or advancing its authorized scope. Use [create-task](create-task.md) for
|
|
5
|
+
content and registration, [run-task](run-task.md) for task execution, and
|
|
6
6
|
[the handbook](handbook.md) for CLI semantics. A Goal uses existing tasks,
|
|
7
7
|
attachments, complete `dependsOn` relationships, their `externalDependsOn`
|
|
8
|
-
classification and PR properties
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
commands,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
The
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
8
|
+
classification, and PR properties. It adds no resource, command, or status.
|
|
9
|
+
|
|
10
|
+
## Identify the current discussion
|
|
11
|
+
|
|
12
|
+
Use a Goal when a concrete outcome needs requirements discussion, solution or
|
|
13
|
+
architecture discussion, and actual delivery work. Independently understandable
|
|
14
|
+
features, bug fixes, architecture/design assignments, and real breakdown items
|
|
15
|
+
are tasks. Agent-generated commands, file reads, and routine checks stay in the
|
|
16
|
+
owning task's execution plan.
|
|
17
|
+
|
|
18
|
+
Permission to create a Goal covers its requirements discussion, the later solution
|
|
19
|
+
discussion, and the confirmed in-scope delivery breakdown. Create each only at
|
|
20
|
+
its stage below. Reuse suitable existing tasks after reading their full problem,
|
|
21
|
+
scope, materials, acceptance, and actual context; a title alone is not identity.
|
|
22
|
+
An explicit user or applicable repository tracking/review instruction supplies
|
|
23
|
+
standing creation permission within the confirmed scope. It grants no unrelated
|
|
24
|
+
work, implementation, external communication, deployment, merge, or mainline push
|
|
25
|
+
permission.
|
|
26
|
+
|
|
27
|
+
A request to start a Goal discussion authorizes creating, approving, and claiming
|
|
28
|
+
that discussion task so it becomes `in_progress`. A registration-only request
|
|
29
|
+
creates only the current discussion task in `proposed` and returns without
|
|
30
|
+
approval or execution. A generic run request, Goal registration, or autopilot
|
|
31
|
+
activation does not supply discussion-start or delivery approval authorization.
|
|
32
|
+
|
|
33
|
+
## Start requirements discussion
|
|
34
|
+
|
|
35
|
+
Create or reuse only the requirements discussion task, titled `[Goal]<outcome>`.
|
|
36
|
+
The marker is followed directly by the outcome. Do not create an architecture
|
|
37
|
+
placeholder or delivery tasks at this point. Give the task a self-contained Markdown description
|
|
38
|
+
for the known problem, intended outcome, scope, constraints, open
|
|
39
|
+
questions, and observable completion conditions. Its primary Markdown's Solution
|
|
40
|
+
and Acceptance criteria describe this discussion and its user-confirmation gate;
|
|
41
|
+
finished requirements and prototypes are outputs, not prerequisites to starting.
|
|
42
|
+
|
|
43
|
+
Each task starts in `proposed`. For an explicit discussion-start request, read its
|
|
44
|
+
current materials and exact version, use `task approve`, confirm todo, then use
|
|
45
|
+
`task claim` with the version observed for that decision and confirm `in_progress`.
|
|
46
|
+
All direct prerequisites must be done. Preserve real external blockers rather
|
|
47
|
+
than removing dependencies to make a discussion ready. An already in-progress
|
|
48
|
+
task is resumed after checking its actual work and context.
|
|
49
|
+
|
|
50
|
+
Discuss requirements with the user: the whole problem, desired behavior, scope,
|
|
51
|
+
constraints, exclusions, and whole-Goal acceptance. Keep current material and open
|
|
52
|
+
questions in this task's description or attachments. The description remains a
|
|
53
|
+
self-contained brief; its primary Markdown owns detailed requirements, validation,
|
|
54
|
+
and evidence. Before requesting user review, save the complete current material,
|
|
55
|
+
read it back, and provide the task and resource reference.
|
|
56
|
+
|
|
57
|
+
For a UI Goal, produce a final-style interactive frontend-only prototype with
|
|
58
|
+
working relative resources and relevant populated, empty, loading, failure,
|
|
59
|
+
disabled, long-content, and narrow-screen states. View and exercise it. Prototype
|
|
60
|
+
code is a requirements artifact; this discussion does not implement production
|
|
61
|
+
code or decide the architecture.
|
|
62
|
+
|
|
63
|
+
## Confirm requirements and start solution discussion
|
|
64
|
+
|
|
65
|
+
Keep the requirements task `in_progress` until the user explicitly confirms the
|
|
66
|
+
current requirements and directs the next discussion, for example, "Requirements
|
|
67
|
+
are settled; move to architecture discussion." Agent confidence, completed text,
|
|
68
|
+
a review result, or elapsed time does not satisfy this gate.
|
|
69
|
+
|
|
70
|
+
Record the user's confirmation with the accepted material in the owning task and
|
|
71
|
+
verify it is readable. A material revision after confirmation requires renewed
|
|
72
|
+
user confirmation before advancement. When the discussion's acceptance is met,
|
|
73
|
+
reread the task, use `task complete` with its observed version, and confirm done.
|
|
74
|
+
Do not create the solution discussion until that completion is confirmed; reconcile
|
|
75
|
+
an uncertain completion before another mutation.
|
|
76
|
+
|
|
77
|
+
Then create or reuse the solution discussion task, with a purpose-specific title
|
|
78
|
+
such as `Architecture discussion: <outcome>`, and an ordinary prerequisite on the
|
|
79
|
+
completed requirements task. The user's direction to start this discussion
|
|
80
|
+
provides its scoped approval and execution authorization. Prepare its stage brief,
|
|
81
|
+
read its current version, approve and claim through the same lifecycle, and
|
|
82
|
+
confirm `in_progress`. This user-directed transition does not require autopilot
|
|
83
|
+
and does not authorize selection of another unrelated task.
|
|
56
84
|
|
|
57
85
|
## Execute the appropriate stage
|
|
58
86
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
scope, deliverables, constraints, solution, acceptance criteria, verification
|
|
116
|
-
methods, and real input references. Their combined scope must cover the complete
|
|
117
|
-
Goal. A future registration list or a vague implementation placeholder does not
|
|
118
|
-
satisfy task breakdown.
|
|
119
|
-
|
|
120
|
-
Use ordinary edges for actual within-Goal prerequisites. Every delivery root
|
|
121
|
-
with no other ordinary implementation prerequisite depends directly on the
|
|
122
|
-
design task, so every within-Goal delivery path passes through design completion.
|
|
123
|
-
External prerequisites keep their verified source ownership and do not replace
|
|
124
|
-
that ordinary design gate; they also must be done before execution. Keep delivery tasks blocked
|
|
125
|
-
while design is unfinished. This stage registers and verifies them; it does not
|
|
126
|
-
execute them. New successors are proposed; approval requires a separate explicit
|
|
127
|
-
user instruction covering them, even when Goal creation already permits their
|
|
128
|
-
registration. Approved successors still wait for completed design prerequisites.
|
|
129
|
-
|
|
130
|
-
Upload each successor's own primary Markdown and needed resources, referencing
|
|
131
|
-
shared Goal and design inputs at their verified source. The design task owns its
|
|
132
|
-
architecture and breakdown outputs. Read back every registered task, required
|
|
133
|
-
attachment, source reference, and dependency. Verify the full breakdown before
|
|
134
|
-
handing over the design PR. When review changes the design, update its owning
|
|
135
|
-
artifacts and affected task summaries, plans, and references coherently, then
|
|
136
|
-
reread them before completion.
|
|
137
|
-
|
|
138
|
-
Follow repository document and independent review requirements. When a design
|
|
139
|
-
PR is required, create it and maintain the full `properties.pullRequests` list.
|
|
140
|
-
Keep this task `in_progress` until every necessary PR is platform-confirmed merged
|
|
141
|
-
and stage acceptance is satisfied. An open PR, successful CI, or approval does
|
|
142
|
-
not complete design. A user-review or no-merge instruction preserves this task
|
|
143
|
-
and its blocking dependency while waiting; it grants no merge authority.
|
|
87
|
+
During solution discussion, consume the confirmed requirements and applicable
|
|
88
|
+
prototype. Discuss how to achieve the outcome: responsibilities, data and control
|
|
89
|
+
flow, interfaces, error behavior, key decisions, verification, and the proposed
|
|
90
|
+
breakdown. The solution task owns the current architecture, proposal, and draft
|
|
91
|
+
breakdown. Keep discussion material accessible in its description or attachments,
|
|
92
|
+
verify it before user review, and synchronize revisions and review decisions.
|
|
93
|
+
Do not register delivery subtasks before the user confirms the current solution.
|
|
94
|
+
|
|
95
|
+
A discussion task completes from user-confirmed Daynight material and its stated
|
|
96
|
+
stage acceptance. Repository document/code delivery still follows normal PR and
|
|
97
|
+
merge rules, but a generic repository PR rule does not add a merge prerequisite
|
|
98
|
+
to a Daynight discussion. If the user explicitly makes particular repository
|
|
99
|
+
artifacts or PR delivery part of that discussion's acceptance, honor that
|
|
100
|
+
requirement and its delivery permissions. An unresolved user review keeps the
|
|
101
|
+
current discussion `in_progress`. Successful CI or a design review cannot replace
|
|
102
|
+
the user's confirmation.
|
|
103
|
+
|
|
104
|
+
After explicit user confirmation of the current solution, record that confirmation
|
|
105
|
+
with the accepted material and register the delivery breakdown below. Complete
|
|
106
|
+
the solution discussion only after the accepted solution and actual registered delivery tasks,
|
|
107
|
+
their required materials, and their dependencies are read back
|
|
108
|
+
and verified. Use `task complete` with the observed version and confirm done.
|
|
109
|
+
Completion satisfies dependencies but never approves delivery tasks. Completing
|
|
110
|
+
either discussion does not establish whole-Goal completion.
|
|
111
|
+
|
|
112
|
+
## Register the confirmed delivery breakdown
|
|
113
|
+
|
|
114
|
+
Only after user solution confirmation, create or reuse the concrete delivery tasks
|
|
115
|
+
needed for the agreed outcome. Each needs its own problem, objective, scope,
|
|
116
|
+
deliverables, constraints, solution, observable acceptance, verification methods,
|
|
117
|
+
and real input references. Include independently scoped acceptance work when it
|
|
118
|
+
has its own outcome; do not turn agent-generated execution steps into tasks.
|
|
119
|
+
The combined scope must cover the confirmed Goal, rather than a vague placeholder.
|
|
120
|
+
|
|
121
|
+
Create new delivery tasks in `proposed`. Solution confirmation authorizes the
|
|
122
|
+
confirmed breakdown's registration, not approval, implementation, autopilot,
|
|
123
|
+
automatic-execution permission, publishing, deployment, or merge. Apply any
|
|
124
|
+
separate explicit authorization only within its stated scope. New tasks have
|
|
125
|
+
`allowAgents=false`; automated workflows must not enable it themselves.
|
|
126
|
+
|
|
127
|
+
Use ordinary dependencies for real within-Goal prerequisites. Every delivery root
|
|
128
|
+
without another ordinary implementation prerequisite depends directly on the
|
|
129
|
+
solution discussion, so each delivery path includes confirmed design completion.
|
|
130
|
+
Mark verified prerequisites owned by another same-project chain as external;
|
|
131
|
+
external prerequisites remain real blockers and do not replace that ordinary
|
|
132
|
+
design gate. Preserve the complete relationship sets under the handbook's CLI
|
|
133
|
+
replacement semantics. Do not create dependencies merely to group cards.
|
|
134
|
+
|
|
135
|
+
Upload each task's own primary Markdown and needed resources. Keep shared
|
|
136
|
+
requirements with the requirements task and the solution and breakdown with the
|
|
137
|
+
solution task. Consumers reference the verified source task ID and attachment
|
|
138
|
+
path, or an immutable repository source. Read back every task, required attachment,
|
|
139
|
+
shared input, and dependency before reporting the breakdown registered. Keep the
|
|
140
|
+
solution discussion `in_progress` when registration is incomplete. If the accepted
|
|
141
|
+
solution materially changes, obtain renewed user confirmation before registering
|
|
142
|
+
or advancing the changed work.
|
|
144
143
|
|
|
145
144
|
## Preserve ownership and recover partial registration
|
|
146
145
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
verify actual file contents and metadata separately. Do not unlock delivery by
|
|
168
|
-
marking incomplete registration or unfinished design complete. Readiness and
|
|
169
|
-
`in_progress` provide no ownership lock; claim is a versioned transition, not an
|
|
170
|
-
assignee lease. Generic updates cannot write status or bypass stages.
|
|
146
|
+
Stage briefs describe the work to produce the stage's outputs; they do not claim
|
|
147
|
+
unfinished results exist. Every stage and delivery task has its own self-contained
|
|
148
|
+
Markdown brief and detailed primary Markdown. Keep shared inputs at their actual
|
|
149
|
+
owner. Do not distribute a duplicate whole packet to every task. An independently
|
|
150
|
+
needed snapshot records its purpose, original source, and source revision or
|
|
151
|
+
content identity. Existing attachment reads support these references; do not
|
|
152
|
+
invent a URL scheme, cross-task relative links, or fixed service host.
|
|
153
|
+
|
|
154
|
+
Creation, uploads, metadata changes, and lifecycle actions are independent writes.
|
|
155
|
+
Retain confirmed IDs and resume missing operations after partial success. Read
|
|
156
|
+
actual task fields and attachment contents before retrying an uncertain write;
|
|
157
|
+
a matching title or lost response does not establish success or failure. If the
|
|
158
|
+
identity cannot be established uniquely, preserve the failure and information
|
|
159
|
+
needed to reconcile it rather than creating a duplicate chain.
|
|
160
|
+
|
|
161
|
+
Bind metadata updates, approve, unapprove, claim, and complete to the exact version
|
|
162
|
+
observed for that decision. Attachment bytes have independent concurrency and
|
|
163
|
+
must be verified separately; task versions cannot prove the reviewed content is
|
|
164
|
+
unchanged. Generic updates cannot write status. A version conflict requires a
|
|
165
|
+
new decision. Readiness and `in_progress` provide no ownership lock or lease.
|
|
171
166
|
|
|
172
167
|
## Advance and accept the whole Goal
|
|
173
168
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
169
|
+
A user-directed requirements-to-solution transition follows the confirmation
|
|
170
|
+
protocol above. Ordinary `run-task` otherwise returns after its specified task
|
|
171
|
+
completes or needs external intervention. Neither discussion completion nor
|
|
172
|
+
breakdown registration activates autopilot or starts delivery. Only explicitly
|
|
173
|
+
active autopilot selects later delivery work, and only with the existing approval,
|
|
174
|
+
`allowAgents`, readiness, input, and execution requirements. CI, review, and merge
|
|
175
|
+
waits stay with the current delivery task.
|
|
176
|
+
|
|
177
|
+
Delivery tasks follow normal run-task completion: accepted outcomes, required
|
|
178
|
+
review, all necessary authorized PR merges, and readable evidence. To report the
|
|
179
|
+
whole Goal complete, inspect the full confirmed delivery scope, every delivery
|
|
180
|
+
task's completion, all required PR merges, and the original whole-Goal acceptance.
|
|
181
|
+
The requirements task being done means only that requirements discussion is
|
|
182
|
+
complete. The solution task being done means the confirmed solution and verified
|
|
183
|
+
breakdown are delivered. An empty ready page or a single delivery result proves
|
|
184
|
+
neither the whole outcome nor completion of all its work.
|
|
@@ -73,7 +73,10 @@ in-progress or done work, execution release, or direct todo-to-done transition.
|
|
|
73
73
|
Metadata, attachments and PR references cannot approve, withdraw approval or
|
|
74
74
|
claim work. Approve or unapprove only when the user explicitly authorizes that
|
|
75
75
|
action for the task or stated scope; creation, execution requests, `run-task`
|
|
76
|
-
and autopilot grant none.
|
|
76
|
+
and autopilot alone grant none. The Goal protocol treats an explicit request
|
|
77
|
+
to start a requirements or solution discussion as scoped authorization to approve
|
|
78
|
+
and claim that discussion task. Its user-confirmed transitions do not authorize
|
|
79
|
+
approval or execution of delivery tasks. In the Web, the title-row entry opens a confirmation;
|
|
77
80
|
only deliberate confirmation is the user's approval or withdrawal instruction.
|
|
78
81
|
Cancel and Escape submit no action. Task approval itself grants no implementation,
|
|
79
82
|
publication, deployment or merge permission.
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Execute exactly one specified task ID within the user's authorized scope. Read
|
|
4
4
|
[the handbook](handbook.md) for CLI operations, data semantics, and failures.
|
|
5
5
|
This mode owns execution and completion; it returns without choosing a successor
|
|
6
|
-
or activating autopilot.
|
|
6
|
+
or activating autopilot. An explicit user-directed requirements-to-solution
|
|
7
|
+
discussion transition follows the Goal protocol after current-task completion;
|
|
8
|
+
it is not automatic backlog selection.
|
|
7
9
|
|
|
8
10
|
## Establish the task and stage
|
|
9
11
|
|
|
@@ -20,7 +22,7 @@ task read loads attachment inventory or bytes.
|
|
|
20
22
|
|
|
21
23
|
For a Goal stage or delivery task, read [the Goal protocol](goal.md) and identify
|
|
22
24
|
its role from the actual task content and context. Apply that stage's input and
|
|
23
|
-
output requirements.
|
|
25
|
+
output requirements. Requirements and solution discussions start from their stage briefs;
|
|
24
26
|
the completed requirements, applicable UI prototype, and architecture are outputs
|
|
25
27
|
of the stages that produce them. Delivery tasks require the delivered design and
|
|
26
28
|
applicable prototype. When a prototype is a required input, view and exercise it
|
|
@@ -45,7 +47,10 @@ the description. Do not execute prerequisites as an implicit expansion of the
|
|
|
45
47
|
requested task.
|
|
46
48
|
|
|
47
49
|
For `proposed`, keep execution pending approval. A run request or autopilot
|
|
48
|
-
activation does not authorize approval
|
|
50
|
+
activation does not authorize approval of ordinary or delivery tasks. An explicit
|
|
51
|
+
request to start the current Goal discussion, or the user-directed transition
|
|
52
|
+
that starts solution discussion, authorizes approval and claim of that discussion
|
|
53
|
+
under the Goal protocol; registration alone does not. Only if the user explicitly authorized
|
|
49
54
|
approval of this task or stated scope, review its current content and use
|
|
50
55
|
`task approve` with that exact observed version, then confirm the resulting todo
|
|
51
56
|
state. The user can also approve directly through the CLI or Web. Approval does
|
|
@@ -69,10 +74,14 @@ Preserve the requested task ID through recovery and waiting.
|
|
|
69
74
|
Follow the target repository's instructions for worktrees, implementation,
|
|
70
75
|
review, validation, and delivery. Use the task's stage-appropriate solution and
|
|
71
76
|
acceptance criteria, including applicable final-style prototype interactions.
|
|
72
|
-
|
|
73
|
-
implementation.
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
Requirements discussion defines the problem without architecture decisions or
|
|
78
|
+
production implementation. Only user-confirmed requirements and direction to
|
|
79
|
+
continue permit completing that discussion and starting solution discussion.
|
|
80
|
+
Solution discussion keeps the draft architecture and breakdown in its owning
|
|
81
|
+
task. Only explicit user confirmation of the current solution permits registering
|
|
82
|
+
and verifying the actual delivery tasks. Do not start delivery from either
|
|
83
|
+
discussion. Keep the discussion in_progress while its user-confirmation gate is
|
|
84
|
+
unmet; a material revision after confirmation needs renewed user confirmation.
|
|
76
85
|
|
|
77
86
|
Resolve material changes to the agreed solution or acceptance within the current
|
|
78
87
|
authorization. Rewrite the owning artifact and affected task summaries and input
|
|
@@ -99,7 +108,14 @@ PR and workspace references.
|
|
|
99
108
|
|
|
100
109
|
## Confirm completion or return waiting
|
|
101
110
|
|
|
102
|
-
|
|
111
|
+
Goal requirements and solution discussion tasks use the user-confirmed material
|
|
112
|
+
and stage acceptance in the Goal protocol. A generic repository PR rule does not
|
|
113
|
+
add a PR-merge prerequisite to these Daynight discussions. If particular
|
|
114
|
+
repository artifacts or PR delivery are explicitly part of that discussion
|
|
115
|
+
task's acceptance, honor that requirement under the delivery rules below.
|
|
116
|
+
Unconfirmed discussion material keeps its discussion task in_progress.
|
|
117
|
+
|
|
118
|
+
Development tasks and design or documentation delivery tasks with PRs remain
|
|
103
119
|
`in_progress` until the hosting platform confirms **every necessary delivery PR
|
|
104
120
|
is merged** and all stage acceptance criteria are satisfied. Code completion,
|
|
105
121
|
passing CI, approved review, and an open PR do not satisfy this condition. Verify
|
|
@@ -117,12 +133,13 @@ pending and successors blocked.
|
|
|
117
133
|
For tasks without a development or PR delivery path, use their stated stage
|
|
118
134
|
acceptance. In every case, confirm required evidence is recorded and readable,
|
|
119
135
|
then reread the complete in-progress task and use `task complete` with its exact
|
|
120
|
-
observed version.
|
|
121
|
-
|
|
136
|
+
observed version. For Goal discussions, use their confirmation gates and verified
|
|
137
|
+
accepted materials; for delivery tasks, use their acceptance and required authorized PR
|
|
138
|
+
merges.
|
|
122
139
|
Only service confirmation establishes the status update; reconcile uncertain
|
|
123
|
-
results before reporting success. A Goal
|
|
124
|
-
|
|
125
|
-
breakdown are delivered. Neither establishes whole-Goal completion.
|
|
140
|
+
results before reporting success. A Goal requirements discussion task's completion
|
|
141
|
+
means requirements are confirmed; solution discussion completion means the user-confirmed solution and
|
|
142
|
+
actual verified breakdown are delivered. Neither establishes whole-Goal completion.
|
|
126
143
|
|
|
127
144
|
Continue ordinary CI and review waits as this task. When progress requires
|
|
128
145
|
external intervention, preserve the target, actual state, concrete blocker,
|
|
@@ -130,4 +147,6 @@ existing work, and next action in the checkpoint, then return the waiting result
|
|
|
130
147
|
Unapproved work stays `proposed`; approved unstarted work stays `todo`; claimed
|
|
131
148
|
work stays `in_progress`. Do not declare
|
|
132
149
|
completion or select other work to bypass a wait. After completion, return
|
|
133
|
-
without selecting a successor
|
|
150
|
+
without selecting a successor, except for an explicit user-directed discussion
|
|
151
|
+
transition under the Goal protocol. That transition does not activate autopilot
|
|
152
|
+
or authorize delivery. Whole-Goal acceptance follows the Goal protocol.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codetreker/daynight",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "A client command toolkit for development workflows",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"vite": "8.3.4",
|
|
48
48
|
"vitest": "5.0.5"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "de527e4f423eeff4e54f06c1944f44b665343941"
|
|
51
51
|
}
|