@johngaynor/entourage 0.3.0 → 0.4.1-next.10

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.
@@ -98,13 +98,15 @@ Give them a summary they can answer from without opening Linear:
98
98
  - The approach, in a sentence or two.
99
99
  - Whether it is one piece or several, and why. If several, the slice names in order.
100
100
 
101
- Then ask them to approve or say what to change. The summary goes above the handoff block, and the block is the ask:
101
+ Then ask them to approve or say what to change. Record the ask as a hand-off with this block, then end your message with the summary and, below it, the block the command printed:
102
102
 
103
103
  ```
104
+ entourage task handoff <project> <card ID> <<'EOF'
104
105
  phase: breakdown
105
106
  status: needs-human
106
107
  question: Approve <card ID> as specified, planned and broken down?
107
108
  options: approve | change breakdown | change plan | change specification
109
+ EOF
108
110
  ```
109
111
 
110
112
  Wait for their answer.
@@ -138,11 +140,19 @@ Read the parent and each sub-issue back, then hand off.
138
140
 
139
141
  ## Hand off
140
142
 
141
- Breakdown is finished when the human has approved the card and, if it was sliced, its sub-issues exist. Then write the handoff block:
143
+ Breakdown is finished when the human has approved the card and, if it was sliced, its sub-issues exist. Then record the hand-off:
142
144
 
143
- - `phase: breakdown`, `status: done` and `next: setup`.
144
- - `summary`: that the card is approved, and whether it is one piece or sliced. If it was sliced, the sub-issues in order with their IDs, and which one is first.
145
- - `flags`: anything that didn't go to plan, such as a blocking relation that couldn't be set.
145
+ ```
146
+ entourage task handoff <project> <card ID> <<'EOF'
147
+ phase: breakdown
148
+ status: done
149
+ next: setup
150
+ summary: <that the card is approved, and whether it is one piece or sliced; if sliced, the sub-issues in order with their IDs, and which one is first>
151
+ flags: <anything that didn't go to plan, such as a blocking relation that couldn't be set>
152
+ EOF
153
+ ```
154
+
155
+ Put your own words in place of each hint in angle brackets, and leave the `flags` line out when there is nothing to flag.
146
156
 
147
157
  Setup is not a skill. It is the `entourage task start` command, which the human runs, so there is no step for you to go on to.
148
158
 
@@ -150,9 +160,10 @@ Setup is not a skill. It is the `entourage task start` command, which the human
150
160
 
151
161
  Every step of the lifecycle ends the same way, so whoever is driving it, a person or a script, can tell how the step ended without reading the whole session.
152
162
 
153
- Write one handoff block every time this step ends or pauses: when the step is finished, when you need an answer, and when something has gone wrong. Write it even when you go straight on to another step, because the block is the record that this one ended. Put it in a code block, one value per line, as the last thing you write for this step:
163
+ Record a hand-off every time this step ends or pauses: when the step is finished, when you need an answer, and when something has gone wrong. Record it even when you go straight on to another step, because the record is what shows this one ended. Run `entourage task handoff` with the block on stdin, one value per line:
154
164
 
155
165
  ```
166
+ entourage task handoff <project> <card ID> <<'EOF'
156
167
  phase: <this step>
157
168
  status: <done, needs-human or failed>
158
169
  next: <the step that follows>
@@ -160,22 +171,26 @@ summary: <one to three sentences on what you did>
160
171
  flags: <what the human should know but wasn't asked>
161
172
  question: <one question>
162
173
  options: <the answers you expect, your recommendation first, separated by " | ">
174
+ answer: <what the human said, in a few words>
163
175
  reason: <what went wrong, and what you already tried>
176
+ EOF
164
177
  ```
165
178
 
166
- Which lines you write depends on the status:
179
+ `<project>` is the entourage project this session is in. The words in angle brackets are hints: put your own in their place. The command checks the block, records it and prints it back. Which lines you write depends on the status:
167
180
 
168
181
  | Status | Use it when | Lines |
169
182
  |---|---|---|
170
183
  | `done` | This step's work is on the card and you have read it back | `phase`, `status`, `next`, `summary`, and `flags` if there are any |
171
184
  | `needs-human` | You can't go on without an answer or an approval | `phase`, `status`, `question`, `options`, and `summary` if it helps them answer |
185
+ | `answered` | The human has replied to a `needs-human` hand-off | `phase`, `status`, `answer` |
172
186
  | `failed` | Something is missing or went wrong, and this skill tells you to stop or doesn't cover it | `phase`, `status`, `reason` |
173
187
 
188
+ - **If the command refuses the block, fix what it names and run it again.** If it can't record at all, because the command is missing, you are not in an entourage project, or it says the hand-off was not recorded, write the block in your message instead and carry on. Don't make a project or install anything to get it to run.
189
+ - **When you stop for the human, end your message with the block the command printed.** Above it goes only what the human needs and can't read on the card: a section you could not write there, or the summary they approve from.
174
190
  - **Wherever this skill says to ask, tell or stop, use the block.** An ask is `needs-human`. Something to tell goes in `flags`. A stop because something is missing or went wrong is `failed`.
175
- - **`needs-human` is a pause, not an ending.** Wait for the answer, then carry on with this step. The step is over only at `done` or `failed`.
191
+ - **`needs-human` is a pause, not an ending.** Wait for the answer. When it comes, record it before anything else, as a hand-off with `status: answered` and what they said in a few words. That is how the time spent waiting on them is told from your own work. Then carry on with this step. The step is over only at `done` or `failed`.
176
192
  - **Ask one question per block.** If you have two, ask first the one whose answer could change the other. The human can always answer in their own words, so `options` are suggestions.
177
- - **Keep the block short.** Above it goes only what the human needs and can't read on the card: a section you could not write there, or the summary they approve from.
178
- - **After `done`, this step is over.** Write the block before anything else. If another step sent you here to revise this section, go back to that step and ignore `next`. Otherwise go on to the step in `next` only if you were asked to run more than this one step, and if you weren't, stop there.
193
+ - **After `done`, this step is over.** Record the hand-off before anything else. If another step sent you here to revise this section, go back to that step and ignore `next`. Otherwise go on to the step in `next` only if you were asked to run more than this one step, and if you weren't, stop there.
179
194
  - **After `failed`, change nothing more.** Leave the card as it is for the human.
180
195
 
181
196
  ## If something goes wrong
@@ -102,19 +102,28 @@ After writing, read the card back. Check that the original description is unchan
102
102
 
103
103
  ## 5. Hand off
104
104
 
105
- When the Specification is on the card and you have read it back, write the handoff block. Define is not finished until it is written:
105
+ When the Specification is on the card and you have read it back, record the hand-off. Define is not finished until it is recorded:
106
106
 
107
- - `phase: define`, `status: done` and `next: plan`.
108
- - `summary`: the type you set, whether you replaced a label that was already there, and how many Done when items there are.
109
- - `flags`: anything you weren't sure about, and whether the card looks like more than one thing.
107
+ ```
108
+ entourage task handoff <project> <card ID> <<'EOF'
109
+ phase: define
110
+ status: done
111
+ next: plan
112
+ summary: <the type you set, whether you replaced a label that was already there, and how many Done when items there are>
113
+ flags: <anything you weren't sure about, and whether the card looks like more than one thing>
114
+ EOF
115
+ ```
116
+
117
+ Put your own words in place of each hint in angle brackets, and leave the `flags` line out when there is nothing to flag.
110
118
 
111
119
  ## The handoff block
112
120
 
113
121
  Every step of the lifecycle ends the same way, so whoever is driving it, a person or a script, can tell how the step ended without reading the whole session.
114
122
 
115
- Write one handoff block every time this step ends or pauses: when the step is finished, when you need an answer, and when something has gone wrong. Write it even when you go straight on to another step, because the block is the record that this one ended. Put it in a code block, one value per line, as the last thing you write for this step:
123
+ Record a hand-off every time this step ends or pauses: when the step is finished, when you need an answer, and when something has gone wrong. Record it even when you go straight on to another step, because the record is what shows this one ended. Run `entourage task handoff` with the block on stdin, one value per line:
116
124
 
117
125
  ```
126
+ entourage task handoff <project> <card ID> <<'EOF'
118
127
  phase: <this step>
119
128
  status: <done, needs-human or failed>
120
129
  next: <the step that follows>
@@ -122,22 +131,26 @@ summary: <one to three sentences on what you did>
122
131
  flags: <what the human should know but wasn't asked>
123
132
  question: <one question>
124
133
  options: <the answers you expect, your recommendation first, separated by " | ">
134
+ answer: <what the human said, in a few words>
125
135
  reason: <what went wrong, and what you already tried>
136
+ EOF
126
137
  ```
127
138
 
128
- Which lines you write depends on the status:
139
+ `<project>` is the entourage project this session is in. The words in angle brackets are hints: put your own in their place. The command checks the block, records it and prints it back. Which lines you write depends on the status:
129
140
 
130
141
  | Status | Use it when | Lines |
131
142
  |---|---|---|
132
143
  | `done` | This step's work is on the card and you have read it back | `phase`, `status`, `next`, `summary`, and `flags` if there are any |
133
144
  | `needs-human` | You can't go on without an answer or an approval | `phase`, `status`, `question`, `options`, and `summary` if it helps them answer |
145
+ | `answered` | The human has replied to a `needs-human` hand-off | `phase`, `status`, `answer` |
134
146
  | `failed` | Something is missing or went wrong, and this skill tells you to stop or doesn't cover it | `phase`, `status`, `reason` |
135
147
 
148
+ - **If the command refuses the block, fix what it names and run it again.** If it can't record at all, because the command is missing, you are not in an entourage project, or it says the hand-off was not recorded, write the block in your message instead and carry on. Don't make a project or install anything to get it to run.
149
+ - **When you stop for the human, end your message with the block the command printed.** Above it goes only what the human needs and can't read on the card: a section you could not write there, or the summary they approve from.
136
150
  - **Wherever this skill says to ask, tell or stop, use the block.** An ask is `needs-human`. Something to tell goes in `flags`. A stop because something is missing or went wrong is `failed`.
137
- - **`needs-human` is a pause, not an ending.** Wait for the answer, then carry on with this step. The step is over only at `done` or `failed`.
151
+ - **`needs-human` is a pause, not an ending.** Wait for the answer. When it comes, record it before anything else, as a hand-off with `status: answered` and what they said in a few words. That is how the time spent waiting on them is told from your own work. Then carry on with this step. The step is over only at `done` or `failed`.
138
152
  - **Ask one question per block.** If you have two, ask first the one whose answer could change the other. The human can always answer in their own words, so `options` are suggestions.
139
- - **Keep the block short.** Above it goes only what the human needs and can't read on the card: a section you could not write there, or the summary they approve from.
140
- - **After `done`, this step is over.** Write the block before anything else. If another step sent you here to revise this section, go back to that step and ignore `next`. Otherwise go on to the step in `next` only if you were asked to run more than this one step, and if you weren't, stop there.
153
+ - **After `done`, this step is over.** Record the hand-off before anything else. If another step sent you here to revise this section, go back to that step and ignore `next`. Otherwise go on to the step in `next` only if you were asked to run more than this one step, and if you weren't, stop there.
141
154
  - **After `failed`, change nothing more.** Leave the card as it is for the human.
142
155
 
143
156
  ## If something goes wrong
@@ -98,19 +98,28 @@ After writing, read the card back. Check that the description and Specification
98
98
 
99
99
  ## 5. Hand off
100
100
 
101
- When the Plan is on the card and you have read it back, write the handoff block. Plan is not finished until it is written:
101
+ When the Plan is on the card and you have read it back, record the hand-off. Plan is not finished until it is recorded:
102
102
 
103
- - `phase: plan`, `status: done` and `next: breakdown`.
104
- - `summary`: the approach in one sentence, roughly how much it touches (how many files, in which apps or repos), and whether it looks like one pull request's worth or more. Breakdown decides, but your read is useful.
105
- - `flags`: anything you found that sits outside the Specification.
103
+ ```
104
+ entourage task handoff <project> <card ID> <<'EOF'
105
+ phase: plan
106
+ status: done
107
+ next: breakdown
108
+ summary: <the approach in one sentence, roughly how many files it touches and in which apps or repos, and whether it looks like one pull request's worth or more>
109
+ flags: <anything you found that sits outside the Specification>
110
+ EOF
111
+ ```
112
+
113
+ Put your own words in place of each hint in angle brackets, and leave the `flags` line out when there is nothing to flag. Breakdown decides whether it is one pull request or more, but your read is useful.
106
114
 
107
115
  ## The handoff block
108
116
 
109
117
  Every step of the lifecycle ends the same way, so whoever is driving it, a person or a script, can tell how the step ended without reading the whole session.
110
118
 
111
- Write one handoff block every time this step ends or pauses: when the step is finished, when you need an answer, and when something has gone wrong. Write it even when you go straight on to another step, because the block is the record that this one ended. Put it in a code block, one value per line, as the last thing you write for this step:
119
+ Record a hand-off every time this step ends or pauses: when the step is finished, when you need an answer, and when something has gone wrong. Record it even when you go straight on to another step, because the record is what shows this one ended. Run `entourage task handoff` with the block on stdin, one value per line:
112
120
 
113
121
  ```
122
+ entourage task handoff <project> <card ID> <<'EOF'
114
123
  phase: <this step>
115
124
  status: <done, needs-human or failed>
116
125
  next: <the step that follows>
@@ -118,22 +127,26 @@ summary: <one to three sentences on what you did>
118
127
  flags: <what the human should know but wasn't asked>
119
128
  question: <one question>
120
129
  options: <the answers you expect, your recommendation first, separated by " | ">
130
+ answer: <what the human said, in a few words>
121
131
  reason: <what went wrong, and what you already tried>
132
+ EOF
122
133
  ```
123
134
 
124
- Which lines you write depends on the status:
135
+ `<project>` is the entourage project this session is in. The words in angle brackets are hints: put your own in their place. The command checks the block, records it and prints it back. Which lines you write depends on the status:
125
136
 
126
137
  | Status | Use it when | Lines |
127
138
  |---|---|---|
128
139
  | `done` | This step's work is on the card and you have read it back | `phase`, `status`, `next`, `summary`, and `flags` if there are any |
129
140
  | `needs-human` | You can't go on without an answer or an approval | `phase`, `status`, `question`, `options`, and `summary` if it helps them answer |
141
+ | `answered` | The human has replied to a `needs-human` hand-off | `phase`, `status`, `answer` |
130
142
  | `failed` | Something is missing or went wrong, and this skill tells you to stop or doesn't cover it | `phase`, `status`, `reason` |
131
143
 
144
+ - **If the command refuses the block, fix what it names and run it again.** If it can't record at all, because the command is missing, you are not in an entourage project, or it says the hand-off was not recorded, write the block in your message instead and carry on. Don't make a project or install anything to get it to run.
145
+ - **When you stop for the human, end your message with the block the command printed.** Above it goes only what the human needs and can't read on the card: a section you could not write there, or the summary they approve from.
132
146
  - **Wherever this skill says to ask, tell or stop, use the block.** An ask is `needs-human`. Something to tell goes in `flags`. A stop because something is missing or went wrong is `failed`.
133
- - **`needs-human` is a pause, not an ending.** Wait for the answer, then carry on with this step. The step is over only at `done` or `failed`.
147
+ - **`needs-human` is a pause, not an ending.** Wait for the answer. When it comes, record it before anything else, as a hand-off with `status: answered` and what they said in a few words. That is how the time spent waiting on them is told from your own work. Then carry on with this step. The step is over only at `done` or `failed`.
134
148
  - **Ask one question per block.** If you have two, ask first the one whose answer could change the other. The human can always answer in their own words, so `options` are suggestions.
135
- - **Keep the block short.** Above it goes only what the human needs and can't read on the card: a section you could not write there, or the summary they approve from.
136
- - **After `done`, this step is over.** Write the block before anything else. If another step sent you here to revise this section, go back to that step and ignore `next`. Otherwise go on to the step in `next` only if you were asked to run more than this one step, and if you weren't, stop there.
149
+ - **After `done`, this step is over.** Record the hand-off before anything else. If another step sent you here to revise this section, go back to that step and ignore `next`. Otherwise go on to the step in `next` only if you were asked to run more than this one step, and if you weren't, stop there.
137
150
  - **After `failed`, change nothing more.** Leave the card as it is for the human.
138
151
 
139
152
  ## If something goes wrong