@johngaynor/entourage 0.2.0 → 0.4.0

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,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>
@@ -119,9 +128,10 @@ 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 " | ">
121
130
  reason: <what went wrong, and what you already tried>
131
+ EOF
122
132
  ```
123
133
 
124
- Which lines you write depends on the status:
134
+ `<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
135
 
126
136
  | Status | Use it when | Lines |
127
137
  |---|---|---|
@@ -129,11 +139,12 @@ Which lines you write depends on the status:
129
139
  | `needs-human` | You can't go on without an answer or an approval | `phase`, `status`, `question`, `options`, and `summary` if it helps them answer |
130
140
  | `failed` | Something is missing or went wrong, and this skill tells you to stop or doesn't cover it | `phase`, `status`, `reason` |
131
141
 
142
+ - **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.
143
+ - **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
144
  - **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
145
  - **`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`.
134
146
  - **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.
147
+ - **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
148
  - **After `failed`, change nothing more.** Leave the card as it is for the human.
138
149
 
139
150
  ## If something goes wrong