@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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: using-daynight
3
- description: Use Daynight for task management, task creation, execution of a specified task, or explicitly requested automatic execution of related tasks in a Daynight-linked repository.
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. Permission to create a Goal covers its two
41
- starting tasks and later breakdown within that Goal; unrelated work needs
42
- separate permission.
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. Goal creation,
45
- complete plans, stage completion, implementation permission, `run-task` and
46
- autopilot never imply approval. Explicit approval may cover the stated Goal
47
- tasks; use each reviewed task's exact version. The user can approve through CLI
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
- A request to leave a PR for user review keeps that task `in_progress`; completion
78
- rules grant no merge authority.
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 creation, completed description
46
- or design, and permission to execute do not authorize task approval.
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 new
58
- ones. If the confirmed Goal requires missing tracked work, use explicit creation
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). Permission to create a Goal already covers both
61
- starting tasks and its later in-scope breakdown; do not ask again for each one.
62
- Creation leaves proposed tasks pending separate explicit approval and returns
63
- to this mode without starting execution. The design stage must
64
- actually register and verify the complete delivery breakdown before handing over
65
- its required PR; successor execution waits for design completion.
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. Description completion permits design
77
- selection, and design completion permits delivery selection, only when the next
78
- task is approved ready todo, its stage inputs are complete, this mode is explicitly
79
- active and execution is authorized. Stage completion satisfies a dependency; it
80
- never approves a successor. Explicit scoped user approval may cover stated Goal
81
- tasks, but the Goal-creation permission itself does not.
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; creating work does not authorize approval, execution or autopilot.
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
- 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.
19
-
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.
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 both starting tasks and their stage briefs.
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-creation
158
- permission covers the two starting tasks and later in-scope breakdown, but never
159
- their approval. A user can explicitly approve a stated task or Goal-task scope,
160
- or approve directly through CLI/Web; an authorized Agent uses each reviewed
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 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
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; it adds no Goal-specific command, task type,
9
- status, or execution authority.
10
-
11
- ## Identify and register a Goal
12
-
13
- Use a Goal when completing the request requires multiple independently tracked
14
- delivery stages. One independently tracked outcome remains a normal task;
15
- commands, tests, and temporary execution steps do not each need persistent tasks.
16
- The user need not use the word Goal.
17
-
18
- Explicit permission to create a Goal covers its two starting tasks and the later
19
- breakdown within that Goal. It covers no unrelated tasks and grants no execution,
20
- publication, deployment, external communication, merge, or mainline push
21
- permission. Existing explicit authorization continues to apply within its scope.
22
- Implementation or autopilot permission alone does not grant creation permission.
23
- Goal-creation permission does not authorize approval. Approve only tasks or a
24
- Goal-task scope explicitly approved by the user, using each reviewed task's exact
25
- version; CLI and Web approval are available. Goal creation, requirements/prototype
26
- completion, design completion and autopilot never imply that instruction. Approval
27
- itself grants no execution or delivery permission.
28
-
29
- During registration, create or reuse both starting tasks:
30
-
31
- | Task | Title | Initial content |
32
- |---|---|---|
33
- | 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. |
34
- | 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. |
35
-
36
- The `[Goal]` marker is followed directly by the outcome. Goal description names
37
- the stage; it is not the title prefix. Titles communicate purpose but do not
38
- establish stable identity. Preserve confirmed IDs and inspect full content when
39
- reusing an existing chain.
40
-
41
- Set the design task's ordinary `--depends-on` to the Goal description task.
42
- Confirmed within-Goal stages and delivery prerequisites stay ordinary. Verified
43
- prerequisites owned by other same-project chains use `--external-depends-on`; even a Goal's
44
- top-level task may have such external predecessors. They remain real blockers.
45
- Preserve both kinds through the handbook's complete CLI replacement semantics,
46
- not by inferring classification from done status or the current rendered graph.
47
- Each task starts
48
- in `proposed` with its own self-contained Markdown description and primary Markdown
49
- containing Solution and Acceptance criteria. State unanswered questions honestly.
50
- Complete requirements, prototypes, architecture, and breakdown are produced by their
51
- respective stages; they are not prerequisites for registering the chain or
52
- starting the stage that produces them. Confirm both tasks, stage briefs,
53
- references, and dependency through real reads, then return from `create-task`.
54
- Registration completeness leaves approval pending unless the user separately
55
- authorized approval for those tasks. Metadata and attachment writes do not approve.
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
- New Goal stages and delivery tasks start with `allowAgents=false`. Creation and
60
- approval do not enable automatic execution. Automated workflows must not enable
61
- the flag themselves; explicit user-selected execution may use manual claim
62
- regardless of it while retaining all authorization and prerequisite checks.
63
-
64
- Every stage uses the same explicit task lifecycle. Proposed work waits for the
65
- user's scoped approval; an authorized `task approve` moves it to todo even with
66
- unfinished prerequisites. Begin only from approved ready todo with complete
67
- stage inputs and execution authorization: use `task claim` with the exact version
68
- observed for that decision and confirm in_progress. Resume existing in-progress
69
- work after checking its actual checkpoint. After the stage acceptance and every
70
- required authorized PR merge, reread and use `task complete` with the observed
71
- version. Completion satisfies dependencies but never approves the next stage.
72
- Unstarted todo work can return to proposed through explicitly authorized
73
- unapprove; it then waits for a new approval before claim.
74
-
75
- | Stage | Required inputs to start | Outputs and completion |
76
- |---|---|---|
77
- | 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. |
78
- | 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. |
79
- | 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. |
80
-
81
- ### Goal description
82
-
83
- Explain the whole problem and why it matters, the final observable results,
84
- required behavior and constraints, scope, explicit exclusions, and how the whole
85
- Goal will be accepted. The task description itself must communicate this complete
86
- overall brief and a concise acceptance summary. Its primary Markdown owns the
87
- full requirements, verification methods, and stage evidence. Resolve blocking
88
- ambiguities without making architecture decisions or changing production
89
- implementation code.
90
-
91
- For a UI Goal, specify final layout, visual styling, interactions, representative
92
- data, and relevant states. Produce an interactive prototype that runs with
93
- frontend code alone, with final styling and all necessary resources. Cover
94
- applicable populated, empty, loading, failure, disabled, long-content, and
95
- narrow-screen states; explain exclusions when a relevant-looking state does not
96
- apply. Prototype code is an allowed problem-definition artifact. View and
97
- exercise the result when verifying this stage.
98
-
99
- Confirm the full requirements are clear, the applicable prototype is usable,
100
- and this stage's acceptance and repository delivery rules are satisfied. If
101
- repository rules require a PR for these artifacts, use the existing PR completion
102
- rules. Otherwise use the stated stage acceptance. Complete only this in-progress
103
- task through `task complete` with its observed version after verification. This
104
- satisfies design's dependency; design still needs its own approval and claim, and
105
- whole-Goal delivery remains unverified.
106
-
107
- ### Architecture design and actual task breakdown
108
-
109
- Consume the completed Goal and prototype. Design the responsibilities, boundaries,
110
- data and control flow, contracts, error behavior, key decisions, and validation
111
- approach required by the target repository and Goal.
112
-
113
- During this task, register the complete set of persistent delivery tasks needed
114
- to satisfy the Goal. Each represents a concrete outcome with its own actions,
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
- Every stage and delivery task needs its own self-contained Markdown description
148
- and detailed primary Markdown. Follow create-task's Markdown and verified-resource
149
- rules without claiming unfinished stage outputs are already available. Keep shared
150
- requirements on the Goal description task and shared architecture and breakdown on the design task. Later tasks reference
151
- verified source task IDs and attachment paths, read through the installed CLI,
152
- or verified immutable repository references. Do not distribute a duplicate whole
153
- packet to all tasks. Only copy a snapshot when the consuming task needs it,
154
- recording the purpose, original source, and source revision or content identity.
155
-
156
- Registration comprises independent writes, not a transaction. Reuse confirmed
157
- IDs if creating the second starting task, uploading an artifact, updating a
158
- reference, or registering part of the breakdown fails. Before retrying an
159
- uncertain write, read the complete actual resource and operation context as the
160
- handbook requires. A similar title does not prove success, and a lost response
161
- does not prove failure. If identity cannot be established uniquely, preserve the
162
- specific error and request the information needed to reconcile it; do not create
163
- another chain.
164
-
165
- Apply the handbook's exact-version rules to metadata updates, approval,
166
- withdrawal, claim and completion, and preserve complete-field replacement semantics for updates. Attachments are independent of task versions, status, and timestamps;
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
- `run-task` returns after its specified task completes or requires external
175
- intervention. Completing registration, Goal description, or design never activates
176
- autopilot. Only explicitly active `autopilot` may select the next related task
177
- after confirming the current task `done`, within the user's authorized scope.
178
- CI, review, and merge waits remain with the current task.
179
-
180
- To report the whole Goal complete, inspect the full registered delivery scope,
181
- confirm every delivery task completed and every necessary PR actually merged,
182
- and verify the original Goal's overall acceptance criteria with recorded
183
- evidence. Description completion, design completion, one delivery PR, or an empty
184
- ready page is insufficient. Distinguish verified partial results and remaining
185
- blockers from whole-Goal completion. This check does not create a new Goal status
186
- or reopen the completed problem-definition task.
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. In the Web, the title-row entry opens a confirmation;
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. Goal description and design start from their stage briefs;
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. Only if the user explicitly authorized
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
- Goal description defines the problem without architecture decisions or production
73
- implementation. Design completes architecture and actually registers and verifies
74
- the entire delivery breakdown before design PR handover. Do not start a successor
75
- while running either stage.
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
- Development tasks and design or documentation tasks delivered through PRs remain
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. This applies to Goal description, design and every delivery
121
- task, using their own stage acceptance and required authorized PR merges.
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 description task's completion means
124
- problem definition is complete; design completion means architecture and actual
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. Whole-Goal acceptance follows the Goal protocol.
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.0",
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": "7b426bc0b632e57bb80dea0d5aca35b1e8f71a6e"
50
+ "gitHead": "de527e4f423eeff4e54f06c1944f44b665343941"
51
51
  }