@johngaynor/ocnus 2.0.1-next.0 → 2.0.1-next.7

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/README.md CHANGED
@@ -20,7 +20,7 @@ Six skills do the work, one for each step an agent runs, and a seventh,
20
20
  | `sdlc-build` | The build step: builds an approved card in its task, making the change the Plan describes, running the tests and committing, pushing nothing |
21
21
  | `sdlc-review` | The review step: checks the build step's work against the card's Done when, writes what it found on the card as its Review, and sends what is not met back to the build step |
22
22
  | `sdlc-pr` | The pr step: pushes a reviewed card's branch, opens its pull requests, moves the card to In Review and waits while you merge them, running no watch of its own: ocnus's watch records the merge and finishes the task. It never merges |
23
- | `brief` | Not a step: a catch-up on the session, in no more than five lines and three parts: the original task, what has happened so far, and what the agent is working on right now. In a session ocnus started for a card, it reads the card, with its parent card and Linear project, `task log` and the branch's commits. Say "brief" or `/brief` in any Claude Code session for one. It records nothing, is never an answer to a question, and never stops a run |
23
+ | `brief` | Not a step: a catch-up on the session, in no more than five lines and three parts: the original task, what has happened so far, and what the agent is working on right now. In a session ocnus started for a card, it reads the card, with its parent card and Linear project, `task log` and the branch's commits. For a slice it reads the parent card too, and gives the card's place among its slices, as slice 2 of 4, and which of them have shipped; for a card with slices of its own, which of those have. Say "brief" or `/brief` in any Claude Code session for one. It records nothing, is never an answer to a question, and never stops a run |
24
24
 
25
25
  They live in [skills/](skills/). `ocnus install` links them into
26
26
  `~/.claude/skills`, so any Claude Code session on the machine can run one by
@@ -336,7 +336,9 @@ else. This needs `jq`; without it Claude Code asks once.
336
336
 
337
337
  A task is one piece of work in a space, usually a Linear card. Two commands
338
338
  make it, in this order: `task new`, then `task start`, which the write-up phase
339
- runs once you approve the card, unless you hold it for later.
339
+ runs as soon as you approve the card: approving a card starts it. A card you
340
+ want to hold, leave unapproved. A card that another card blocks waits by
341
+ itself: `task start` holds it until every card that blocks it is done.
340
342
 
341
343
  To see which cards there are first, `task ls` lists the open cards of the
342
344
  space's Linear teams, under their statuses:
@@ -387,8 +389,8 @@ Recording your approval moves the card in Linear to its team's first
387
389
  not-started status (Todo in Lab), and each of its sub-issues with it. When a
388
390
  card cannot be moved, the approval is still recorded, and the agent tells you
389
391
  which card, and why. `task log` shows that too, under the approval's row.
390
- Then the agent starts the build phase with `task start`, unless you hold it
391
- for later. The approval itself closes nothing: the write-up session stays
392
+ Then the agent starts the build phase with `task start`. The approval itself
393
+ closes nothing: the write-up session stays
392
394
  open until `task start` has opened the build tab, which then puts it away
393
395
  (see below).
394
396
 
@@ -397,7 +399,7 @@ With the breakdown approval off (`ocnus approval --breakdown off`, see
397
399
  approve a card it has no doubt about: the setting approves it. It writes the
398
400
  Breakdown, makes the sub-issues when the card is sliced, records the
399
401
  approval, which moves the card as yours does and says the setting gave it,
400
- and runs `task start` itself, as for an approval to start now. A card it
402
+ and runs `task start` itself, as for your approval. A card it
401
403
  has a doubt about still waits for you, with the doubt in the summary: one
402
404
  it thinks too big, one that looks like several cards, or a sub-issue that
403
405
  looks too big to stay one piece. So do the questions define
@@ -458,8 +460,7 @@ before.
458
460
  `task start` starts the work, once you have approved the card. It takes the
459
461
  card too, makes a branch and a git worktree of it in every repo of the
460
462
  space, opens a tab for it, and starts the agent there that runs the build
461
- phase. The write-up phase runs it once you approve the card, or gives it to
462
- you when you chose to start later:
463
+ phase. The write-up phase runs it as soon as you approve the card:
463
464
 
464
465
  ```sh
465
466
  ocnus task start my-space ABC-122
@@ -474,6 +475,13 @@ as a tab named after the task. When herdr-core is not running,
474
475
  start, it stops before it makes anything. See
475
476
  [herdr/README.md](herdr/README.md#starting-the-work).
476
477
 
478
+ `task start` holds a card while a card that blocks it, or the card it was
479
+ sliced from, is not done yet in Linear. It makes no branch, worktree or tab,
480
+ leaves the card in Todo, names each card that holds it, with its status, and
481
+ exits non-zero. Run it again once those cards are done. When Linear is not
482
+ asked, as when the card's type and title are given with no key saved, it
483
+ starts the card with a note that its blockers were not checked.
484
+
477
485
  Once the build tab is open, `task start` puts the card's write-up session
478
486
  away, so finished write-up sessions do not pile up. For a sub-issue it is the
479
487
  session of the card it was sliced from, whose tab it was written up in. It
@@ -483,16 +491,17 @@ starts `task close` for that card in herdr-core, detached, with no tab:
483
491
  ocnus task close my-space ABC-122
484
492
  ```
485
493
 
486
- `task close` waits for the write-up agent's turn to end, which with start now
487
- is the turn in which it ran `task start`. Then it ends the agent's Claude session with `/exit`, waits
494
+ `task close` waits for the write-up agent's turn to end, which is the turn in
495
+ which it ran `task start`. Then it ends the agent's Claude session with `/exit`, waits
488
496
  for the tab's shell to come back, and closes the tab, or with the Herdr app
489
497
  closed ends its terminal in herdr-core, so opening the app later shows no tab
490
498
  for it. The clean exit is what archives the session in the Claude app's list
491
499
  of sessions, with Remote Control on. Its transcript stays, so
492
500
  `claude --resume` still opens it. A live agent is never killed: when it has
493
501
  not exited 30 seconds after `/exit`, or the tab runs a program that reports
494
- no status, the tab is left open. With start later, the write-up session stays
495
- open until you run `task start`, from any terminal. When `task start` stops,
502
+ no status, the tab is left open. When `task start` holds the card, the
503
+ write-up session stays open until you run `task start` again, from any
504
+ terminal, once the cards that hold it are done. When `task start` stops,
496
505
  before it has made the task or without opening its tab, the write-up session
497
506
  stays open. Only the card's own write-up tab is closed: the build tab, other
498
507
  cards' write-up tabs and the terminal `task start` ran in stay open, and a
@@ -5,7 +5,7 @@
5
5
  # approved (skills/sdlc-breakdown). With the breakdown approval on, it asks
6
6
  # the human and waits for the answer. That is the default. With it off, it
7
7
  # approves a card it has no doubt about by itself and runs `task start`, as
8
- # for an approval to start now, without asking; a card it has a doubt about,
8
+ # for the human's approval, without asking; a card it has a doubt about,
9
9
  # such as one it thinks too big, still waits for the human. The choice is
10
10
  # "approval": {"breakdown": true|false} in the settings file (settings.sh),
11
11
  # an object so that a later approval gets a key beside it, and on when the
@@ -23,7 +23,7 @@ HANDOFF_KEYS='step status next summary flags approved question options answer re
23
23
  # start (record_start). Breakdown hands on to it once the human approves the
24
24
  # card, or the setting does, but it is only ever what comes next in a block, since it is a command
25
25
  # that records its own row, not a skill: the write-up agent runs it, or the
26
- # human does when they hold the build phase for later. A review that finds the work done hands on to pr, the step that pushes
26
+ # human does again once it has held a card for a card that blocks it. A review that finds the work done hands on to pr, the step that pushes
27
27
  # the task's branch, opens its pull requests and waits for the human to merge
28
28
  # them. merged is where a card ends: pr hands on to it once every pull request
29
29
  # has merged. It too is only ever what comes next, since nothing runs after it.
package/cli/lib/linear.sh CHANGED
@@ -332,34 +332,62 @@ linear_open_cards() {
332
332
  printf '%s' "$list" | jq -c 'del(.missing)'
333
333
  }
334
334
 
335
+ # How many of a card's relations, and of its parent's, the card's question
336
+ # reads, to find the cards that block it. A card with more than that has
337
+ # blockers that were not read, which CARD_SHAPE says.
338
+ CARD_RELATIONS=50
339
+ # A card's relations of every kind that name it as the related card. Those of
340
+ # the kind "blocks" name a card that blocks it, its blocker, as their issue.
341
+ CARD_BLOCKERS_READ='inverseRelations(first: '$CARD_RELATIONS') {
342
+ nodes { type issue { identifier state { name type } } } pageInfo { hasNextPage } }'
335
343
  # Find a card by its team's key and its number, as Linear keeps them: ABC-122
336
- # is team ABC, number 122. Its title, its labels and the card it was sliced
337
- # from, its parent, come with it.
344
+ # is team ABC, number 122. Its title, its status, its labels, the card it was
345
+ # sliced from, its parent, and the cards that block either of them, come with
346
+ # it.
338
347
  CARD_QUERY='query($team: String!, $number: Float!) {
339
348
  issues(first: 1, filter: {team: {key: {eq: $team}}, number: {eq: $number}}) {
340
- nodes { identifier title labels { nodes { name parent { name } } } parent { identifier } }
349
+ nodes { identifier title state { name } labels { nodes { name parent { name } } }
350
+ '$CARD_BLOCKERS_READ'
351
+ parent { identifier
352
+ '$CARD_BLOCKERS_READ' } }
341
353
  }
342
354
  }'
343
355
  # The label group a card's type is in. sdlc-define sets the type there.
344
356
  TYPE_GROUP=Type
345
- # Turn Linear's answer to CARD_QUERY into the card, {id, title, type,
346
- # parent}, or "none" when Linear has no such card. type is null when the card
347
- # has no label in the Type group ($group), and parent, the parent's ID, when
348
- # it has no parent. An answer with no list of cards in it is not Linear
349
- # saying it has none, so it is an error.
357
+ # Turn Linear's answer to CARD_QUERY into the card, {id, title, type, parent,
358
+ # status, blockers, blockersCut}, or "none" when Linear has no such card. type
359
+ # is null when the card has no label in the Type group ($group), parent, the
360
+ # parent's ID, when it has no parent, and status, the name of its status,
361
+ # when the answer has none. blockers are the cards that block it and those
362
+ # that block its parent, each as {id, status, type, of}: its ID, the name and
363
+ # kind of its status (completed for a card that is done), and the ID of the
364
+ # card it blocks. blockersCut is true when the card or its parent has more
365
+ # relations than were read, so that blockers may not be all of them. An
366
+ # answer with no list of cards in it is not Linear saying it has none, so it
367
+ # is an error.
350
368
  CARD_SHAPE='
369
+ def blockers: (.identifier? | strings) as $of
370
+ | [.inverseRelations.nodes[]? | select(.type? == "blocks") | .issue
371
+ | select(.identifier? | strings)
372
+ | {id: .identifier, status: ((.state.name? | strings) // ""), type: ((.state.type? | strings) // ""), of: $of}];
373
+ def cut: .inverseRelations.pageInfo.hasNextPage? == true;
351
374
  if (.issues.nodes | type) != "array" then error("no list of cards")
352
375
  elif (.issues.nodes | length) == 0 then "none"
353
376
  else .issues.nodes[0]
354
377
  | {id: .identifier, title: (.title // ""),
355
378
  type: ([.labels.nodes[]? | select(.parent.name? == $group) | .name] | first),
356
- parent: ((.parent.identifier? | strings) // null)}
379
+ parent: ((.parent.identifier? | strings) // null),
380
+ status: ((.state.name? | strings) // null),
381
+ blockers: (blockers + (if (.parent | type) == "object" then (.parent | blockers) else [] end)),
382
+ blockersCut: (cut or ((.parent | type) == "object" and (.parent | cut)))}
357
383
  end'
358
384
 
359
385
  # Print one card as one line of JSON, or stop and say why:
360
- # {"id":"ABC-122","title":"Export orders as CSV","type":"feat","parent":"ABC-100"}
361
- # type is null when the card has no label in the Type group, and parent when
362
- # it has no parent.
386
+ # {"id":"ABC-122","title":"Export orders as CSV","type":"feat","parent":"ABC-100","status":"Todo",
387
+ # "blockers":[{"id":"ABC-121","status":"In Progress","type":"started","of":"ABC-122"}],"blockersCut":false}
388
+ # type is null when the card has no label in the Type group, parent when it
389
+ # has no parent, and status when Linear did not say it. blockers are the
390
+ # cards that block it or its parent, done or not (CARD_SHAPE).
363
391
  # linear_card <card ID, in upper case>
364
392
  linear_card() {
365
393
  local card=$1 key vars data found
@@ -483,7 +511,7 @@ READ_QUERY='query($team: String!, $number: Float!) {
483
511
  parent { identifier title }
484
512
  project { name }
485
513
  comments(first: '$READ_COMMENTS') { nodes { body createdAt user { name } botActor { name } } pageInfo { hasNextPage } }
486
- children(first: '$READ_SUBS') { nodes { identifier title state { name type } } pageInfo { hasNextPage } }
514
+ children(first: '$READ_SUBS') { nodes { identifier title createdAt state { name type } } pageInfo { hasNextPage } }
487
515
  }
488
516
  }
489
517
  }'
@@ -492,8 +520,11 @@ READ_QUERY='query($team: String!, $number: Float!) {
492
520
  # such card, {"more": <what>} when it has more comments, sub-issues or labels
493
521
  # than were asked for, or {"card": <the card>}, the card as linear read --json
494
522
  # prints it. A comment's author is the app Linear credits with it, or else
495
- # the user who wrote it. Comments come oldest first. An answer with a card in
496
- # it that is not in this form did not come from Linear. $group is TYPE_GROUP.
523
+ # the user who wrote it. Comments come oldest first, and so do sub-issues, in
524
+ # the order they were made, which is the order linear slices makes a card's
525
+ # slices in, whatever order Linear lists them in; when each was made is left
526
+ # out. An answer with a card in it that is not in this form did not come from
527
+ # Linear. $group is TYPE_GROUP.
497
528
  READ_SHAPE='
498
529
  def text: if type == "string" then . else error("unreadable") end;
499
530
  def list: if (.nodes | type) == "array" then .nodes[] else error("unreadable") end;
@@ -517,7 +548,9 @@ READ_SHAPE='
517
548
  comments: ([.comments | list
518
549
  | {author: (.botActor.name? // .user.name? // "unknown" | text),
519
550
  createdAt: (.createdAt | text), body: (.body // "" | text)}] | sort_by(.createdAt)),
520
- subIssues: [.children | list | {id: (.identifier | text), title: (.title | text), status: (.state | status)}]
551
+ subIssues: ([.children | list
552
+ | {id: (.identifier | text), title: (.title | text), status: (.state | status),
553
+ createdAt: (.createdAt | text)}] | sort_by(.createdAt) | map(del(.createdAt)))
521
554
  }}
522
555
  end
523
556
  end'
package/cli/lib/task.sh CHANGED
@@ -6,8 +6,9 @@
6
6
  # task new an agent writes the card up, in a tab in the space
7
7
  # task start a worktree of each repo on the card's branch, in a tab of its
8
8
  # own, which runs `task build` to start the agent that builds
9
- # the card. The write-up agent runs it once the human approves
10
- # the card, unless they hold it; then they run it.
9
+ # the card. The write-up agent runs it as soon as the card is
10
+ # approved. It makes nothing for a card that a card not done
11
+ # yet blocks, and the human runs it again once that is done.
11
12
  # The agent runs `task handoff` as each step ends, and `task log` shows what
12
13
  # it recorded. Both are in handoff.sh. While the pull requests wait on the
13
14
  # human, `task merges`, ocnus's watch on the merges, watches them on
@@ -323,8 +324,12 @@ short_name() {
323
324
  # Name the branch a card's task is on, <type>/<card ID>-<short name>: like
324
325
  # feat/abc-122-export-orders-as-csv. It leaves the branch in BRANCH, in
325
326
  # BRANCH_NOTES what `task start` says about where the type and title came
326
- # from, and in CARD_PARENT the card it was sliced from, as Linear names it,
327
- # or nothing when it has none or Linear was not asked. It runs in the main
327
+ # from and whether the card's blockers were checked, in CARD_PARENT the card
328
+ # it was sliced from, as Linear names it, or nothing when it has none or
329
+ # Linear was not asked, and in CARD_STATUS the name of the card's status in
330
+ # Linear, or nothing. CARD_OPEN is the cards that block it or its parent and
331
+ # are not done yet, as a JSON list of {id, status, of} (CARD_SHAPE), or
332
+ # nothing when every one is done or Linear was not asked. It runs in the main
328
333
  # shell, not in $( ), so that it can leave them, and every stop is before
329
334
  # anything is made.
330
335
  # card_branch <space> <card ID, in upper case> [<type> <title>]
@@ -334,11 +339,12 @@ short_name() {
334
339
  # wins when it can be asked: Linear's type and title name the branch, by the
335
340
  # same checks, with a note for each given one that differs. With no key
336
341
  # saved, or a Linear that cannot be asked (a rejected key, no network, no
337
- # curl or jq), the given ones name it, with a note on why.
338
- BRANCH='' BRANCH_NOTES=() CARD_PARENT=''
342
+ # curl or jq), the given ones name it, with a note on why, and a note that
343
+ # the blockers were not checked.
344
+ BRANCH='' BRANCH_NOTES=() CARD_PARENT='' CARD_STATUS='' CARD_OPEN=''
339
345
  card_branch() {
340
346
  local name=$1 card=$2 given_type=${3:-} given_title=${4:-} found out rc=0 type title short branch parent
341
- BRANCH='' BRANCH_NOTES=() CARD_PARENT=''
347
+ BRANCH='' BRANCH_NOTES=() CARD_PARENT='' CARD_STATUS='' CARD_OPEN=''
342
348
  if [ -z "$given_type" ]; then
343
349
  [ -n "${LINEAR_API_KEY:-}" ] ||
344
350
  die "no Linear key is saved, so ocnus cannot read $card's type and title in Linear. Save a key with ocnus linear key (make one in $KEY_PLACE), or give the type and title: ocnus task start $name $card --type <type> --title '<title>'"
@@ -367,6 +373,15 @@ card_branch() {
367
373
  # Only a card ID: it is looked for among the space's tabs.
368
374
  parent=$(printf '%s' "$found" | jq -r '.parent // empty')
369
375
  [[ ! $parent =~ $CARD_RE ]] || CARD_PARENT=$(printf '%s' "$parent" | tr '[:lower:]' '[:upper:]')
376
+ # Linear's text, made plain, as task ls makes it, for task start to say.
377
+ CARD_STATUS=$(printf '%s' "$found" | jq -r "$PLAIN_DEF"' .status // empty | plain')
378
+ # A blocker not done yet holds the card. One that is done holds nothing.
379
+ CARD_OPEN=$(printf '%s' "$found" |
380
+ jq -c "$PLAIN_DEF"' [.blockers[]? | select(.type != "completed")
381
+ | {id: (.id | plain), status: (.status | plain), of: (.of | plain)}] | select(length > 0)')
382
+ if [ "$(printf '%s' "$found" | jq -r '.blockersCut')" = true ]; then
383
+ BRANCH_NOTES+=("$card or the card it was sliced from has more relations in Linear than ocnus reads, so a card that blocks it may not have been checked")
384
+ fi
370
385
  # The notes are said only once the branch is made, so a type of
371
386
  # Linear's that no branch can hold stops below before any is said.
372
387
  if [ -n "$given_type" ] && [ "$given_type" != "$type" ]; then
@@ -378,6 +393,8 @@ card_branch() {
378
393
  fi
379
394
  else
380
395
  type=$given_type title=$given_title
396
+ # The reason is in the note above: Linear was not asked.
397
+ BRANCH_NOTES+=("$card's blockers were not checked, since Linear was not asked: it starts whether or not a card that blocks it is done")
381
398
  fi
382
399
  short=$(printf '%s' "$title" | short_name)
383
400
  branch=$type/$(printf '%s' "$card" | tr '[:upper:]' '[:lower:]')${short:+-$short}
@@ -546,6 +563,20 @@ parse_targets() {
546
563
  done
547
564
  }
548
565
 
566
+ # What `task start` says when it holds a card, from CARD_OPEN and
567
+ # CARD_STATUS (card_branch): each card that blocks it, or the card it was
568
+ # sliced from, and is not done yet, and that the card stays where it is.
569
+ # held_message <card ID>
570
+ held_message() {
571
+ local card=$1 where='where it is in Linear'
572
+ [ -z "$CARD_STATUS" ] || where="in $CARD_STATUS"
573
+ printf '%s is held: a card that blocks it is not done yet, so no task was made for it.\n' "$card"
574
+ printf '%s' "$CARD_OPEN" | jq -r --arg card "$card" '.[]
575
+ | " blocker \(.id)\(if .status == "" then "" else ", in \(.status)," end) blocks "
576
+ + (if .of == $card then $card else "\(.of), the card \($card) was sliced from" end)'
577
+ printf '%s stays %s. Run this again once the cards that block it are done.' "$card" "$where"
578
+ }
579
+
549
580
  # What `task start` takes after the card.
550
581
  START_ARGS='[--type <type> --title <title>] [<repo>[:<group>[,<group>...]] ...]'
551
582
 
@@ -620,6 +651,9 @@ task_start() {
620
651
  # Linear names the branch, or the type and title given when Linear cannot,
621
652
  # once everything here has been checked.
622
653
  card_branch "$name" "$card" "$given_type" "$given_title"
654
+ # A card waits until every card that blocks it, or the card it was sliced
655
+ # from, is done, so it is held before anything is fetched or made.
656
+ [ -z "$CARD_OPEN" ] || die "$(held_message "$card")"
623
657
  branch=$BRANCH
624
658
  task=$(task_name "$branch")
625
659
  tdir=$dir/tasks/$task
package/cli/ocnus CHANGED
@@ -123,7 +123,7 @@ with jq.
123
123
  `task new` takes the card's ID, like ABC-122. It opens a tab in the space,
124
124
  in Herdr, and starts an agent there, which writes the card up with the
125
125
  sdlc-define, sdlc-plan and sdlc-breakdown skills and asks you to approve it.
126
- Once you do, it runs task start, unless you hold the build phase for later.
126
+ Once you do, it runs task start: approving a card starts it.
127
127
  With the breakdown approval off (see `approval` below), it asks only about a
128
128
  card it has a doubt about, and approves and starts any other by itself.
129
129
  The Herdr app need not be open: with it closed, the agent starts in a
@@ -138,11 +138,15 @@ Linear for the card and names the branch from it, <type>/<card-id>-<short-name>
138
138
  group, and the short name is the first four words of its title, leaving out
139
139
  a, an and the, like feat/abc-122-export-orders-as-csv. It stops before it
140
140
  makes anything when Linear has no such card, the card has no type, no key is
141
- saved, or Linear cannot be asked. Without a key Linear accepts, give the
141
+ saved, or Linear cannot be asked. It also holds a card, making nothing and
142
+ leaving it in Todo, while a card that blocks it, or the card it was sliced
143
+ from, is not done yet: it names each such card, and you run it again once
144
+ they are done. Without a key Linear accepts, give the
142
145
  card's type and title after it, as the command the write-up phase runs or
143
146
  gives you then does: `--type feat --title 'Export orders as CSV'` names the
144
147
  branch Linear's would. They are used only when no key is saved or Linear cannot be
145
- asked (a rejected key, the network, no curl or jq), with a note saying why.
148
+ asked (a rejected key, the network, no curl or jq), with a note saying why,
149
+ and a note that the card's blockers were not checked.
146
150
  With a key Linear accepts, Linear's type and title win, with a note naming
147
151
  each given one that differs. Both are given or neither, and a type that is
148
152
  not a branch type stops it. It makes a folder in the space's tasks/ folder
@@ -224,9 +228,9 @@ from: it starts `task close` for it in herdr-core, detached, with no tab.
224
228
  session with /exit, which archives it in the Claude app's list, then closes
225
229
  its tab, or with the Herdr app closed ends its terminal. It never kills a
226
230
  live agent: one that has not exited 30 seconds after /exit, or a program in
227
- the tab that reports no status, leaves the tab open. With start later, the
228
- session stays open until task start is run, and a task start that stops
229
- leaves it open. Run in the write-up tab itself, task close refuses.
231
+ the tab that reports no status, leaves the tab open. A task start that
232
+ stops, or holds the card, leaves the write-up session open until task start
233
+ is run again and opens the build tab. Run in the write-up tab itself, task close refuses.
230
234
  `task finish` ends a task once its work has merged: it removes the task's
231
235
  worktrees, deletes its branch in each repo, deletes its folder and closes its
232
236
  tab, or with the Herdr app closed ends the tab's terminals in herdr-core. It
package/herdr/README.md CHANGED
@@ -264,7 +264,9 @@ that name, and its `CLAUDE.md` and `AGENTS.md` link to it.
264
264
 
265
265
  A task is one piece of work in a space, usually a Linear card. Two
266
266
  commands make it, in this order: `task new`, then `task start`, which the
267
- write-up phase runs for you once you approve the card, unless you hold it.
267
+ write-up phase runs for you as soon as you approve the card. `task start`
268
+ holds a card that a card not done yet blocks (see
269
+ [Starting the work](#starting-the-work)).
268
270
  Two more, `task handoff` and `task log`, record and show how each step ended.
269
271
  `task ls` lists the cards there are to start.
270
272
 
@@ -415,10 +417,10 @@ ocnus task new <space> <card>
415
417
  with the card and space filled in. It tells the agent to start with
416
418
  `sdlc-define` and follow each skill's handoff block to the next
417
419
  (`sdlc-plan`, then `sdlc-breakdown`), in that one session, and to wait for
418
- your approval at the end, then start the build phase unless you hold it.
420
+ your approval at the end, then start the build phase.
419
421
  With the breakdown approval off, it tells the agent that `sdlc-breakdown`
420
422
  approves a card it has no doubt about by itself, and that the agent then
421
- runs `task start` as for an approval to start now (see
423
+ runs `task start` as for your approval (see
422
424
  [The breakdown approval](#the-breakdown-approval)). Edit that file to change
423
425
  what the agent is told.
424
426
  - **Your approval moves the card.** Once you approve it, and its sub-issues
@@ -431,34 +433,35 @@ ocnus task new <space> <card>
431
433
  With the breakdown approval off, an approval the setting gave, on a card
432
434
  the agent has no doubt about, moves the card the same way, and its summary
433
435
  says that the setting gave it.
434
- - **Your approval starts the build phase, unless you hold it.** The approval
435
- asks whether to start the build phase now. With `approve and start`, or any approval
436
- that does not hold it back, the agent runs `ocnus task start` itself
437
- once the approval is recorded (see [Starting the work](#starting-the-work)),
438
- and the task's new tab opens, in the Herdr app, or in herdr-core while the
439
- app is closed, as when you run it yourself. For a card
440
- that was sliced, it starts the first sub-issue that is not already started,
441
- done or canceled. With `approve, start later`, or an approval that holds it
442
- back in other words, the approval is the same and moves the card the same
443
- way, but the agent gives you the command to run when you want the build
444
- phase to start. The agent passes on what `task start` says still needs you, such as
445
- a repo Claude Code will ask about trusting. When `task start` stops, the
446
- agent does not run it again: it tells you what it said and what to run once
447
- that is fixed. `task log` shows which you chose, in your answer and the
448
- approval's summary. A started task adds a `start` row under the card it
436
+ - **Your approval starts the build phase.** The approval asks `approve`,
437
+ `change breakdown`, `change plan` or `change specification`. Once you
438
+ approve, the agent records the approval and runs `ocnus task start` itself
439
+ (see [Starting the work](#starting-the-work)), and the task's new tab
440
+ opens, in the Herdr app, or in herdr-core while the app is closed, as when
441
+ you run it yourself. For a card that was sliced, it starts the first
442
+ sub-issue that is not already started, done or canceled. No approval holds
443
+ the build phase back: a card you want to hold, leave unapproved, and it
444
+ stays in Backlog. A card that another card blocks needs no holding back,
445
+ since `task start` holds it by itself, making nothing and leaving it in
446
+ Todo, until every card that blocks it, or the card it was sliced from, is
447
+ done; the agent tells you which cards it named, and you run `task start`
448
+ once they are. The agent passes on what `task start` says still needs you,
449
+ such as a repo Claude Code will ask about trusting. When `task start` stops,
450
+ the agent does not run it again: it tells you what it said and what to run
451
+ once that is fixed. A started task adds a `start` row under the card it
449
452
  started, which for a sliced card is the sub-issue, so it is in that
450
453
  sub-issue's log. With the breakdown approval off, the agent asks you
451
- nothing on a card it has no doubt about: the setting's approval is one to
452
- start now, so it runs `task start` itself. A card it has a doubt about still
453
- waits for your answer.
454
+ nothing on a card it has no doubt about: the setting's approval starts the
455
+ card as yours does, so it runs `task start` itself. A card it has a doubt
456
+ about still waits for your answer.
454
457
  - **The write-up session is put away once the build phase starts.** The
455
458
  approval itself closes nothing. Once `task start` has opened the build tab,
456
459
  the write-up agent's session ends when its turn does, and its tab closes
457
- (see [Putting the write-up away](#putting-the-write-up-away)). So with
458
- `approve and start`, the agent passes on what `task start` said in the turn
459
- that ran it, and asks nothing after. With `approve, start later`, the
460
- session stays open until you run `task start`, from any terminal. When
461
- `task start` stops, it stays open, and the agent says what to run next.
460
+ (see [Putting the write-up away](#putting-the-write-up-away)). So the
461
+ agent passes on what `task start` said in the turn that ran it, and asks
462
+ nothing after. When `task start` holds the card, the session stays open
463
+ until you run `task start` again, from any terminal. When `task start`
464
+ stops, it stays open, and the agent says what to run next.
462
465
  - **It makes no branch, worktree or task folder.** The card has no type until
463
466
  the agent has defined it, and the type is the start of the branch name.
464
467
  - **It checks first.** An unknown space, something that is not a card ID,
@@ -484,7 +487,7 @@ ocnus task new <space> <card>
484
487
 
485
488
  | Command | What it does |
486
489
  |---|---|
487
- | `ocnus linear read <card> [--json]` | Prints the card whole: its ID and title, then its status, labels, parent and Linear project (each when it has one) and URL, the description with its sections as written, each comment with who wrote it and when, oldest first, and each sub-issue with its ID, status and title. A comment an app made is the app's. Control characters become spaces, as in `task ls`, but the description and the comments keep their line breaks. `--json` prints the same as one line for programs such as a mod, with the text as Linear gave it: `{"id", "title", "url", "status": {"name", "type"}, "type", "labels", "parent": {"id", "title"}, "project": {"name"}, "description", "comments": [{"author", "createdAt", "body"}], "subIssues": [{"id", "title", "status": {"name", "type"}}]}`. `type` is the card's label in the `Type` group, `labels` the names of all its labels, and `type`, `parent` and the Linear project are `null` when the card has none. A card with more than 100 comments, 50 sub-issues or 100 labels is not printed, since what was read would pass for the whole: the command says so and exits non-zero. When it fails it prints nothing on stdout. It needs only Read permission. |
490
+ | `ocnus linear read <card> [--json]` | Prints the card whole: its ID and title, then its status, labels, parent and Linear project (each when it has one) and URL, the description with its sections as written, each comment with who wrote it and when, oldest first, and each sub-issue with its ID, status and title, oldest first, in the order they were made, which is the order `linear slices` makes a card's slices in. A comment an app made is the app's. Control characters become spaces, as in `task ls`, but the description and the comments keep their line breaks. `--json` prints the same as one line for programs such as a mod, with the text as Linear gave it: `{"id", "title", "url", "status": {"name", "type"}, "type", "labels", "parent": {"id", "title"}, "project": {"name"}, "description", "comments": [{"author", "createdAt", "body"}], "subIssues": [{"id", "title", "status": {"name", "type"}}]}`. `type` is the card's label in the `Type` group, `labels` the names of all its labels, and `type`, `parent` and the Linear project are `null` when the card has none. A card with more than 100 comments, 50 sub-issues or 100 labels is not printed, since what was read would pass for the whole: the command says so and exits non-zero. When it fails it prints nothing on stdout. It needs only Read permission. |
488
491
  | `ocnus linear type <card> <feat\|fix\|chore>` | Sets the card's type: its one label in the `Type` label group, the team's or else the workspace's. Any other type comes off; the card's other labels are never touched. A missing label is refused, never made. |
489
492
  | `ocnus linear section <card> <Specification\|Plan\|Breakdown\|Review> [--replace]` | Adds the section, its body on stdin, below the description. Specification, Plan and Review are folded away, in the form Linear keeps them in, `+++ ## <name>` … `+++` (one written as `>>>` is read the same); the Breakdown is left open, because you read it to approve the card. The Review, which the review step writes, comes after the Breakdown, and each later round puts its own in the last one's place with `--replace`. A section of that name already there is refused, unless `--replace` puts the new one in its place; `--replace` with none there is refused too. A body is refused when a line in it would end the section early or start a second one: a fold line, and in the Breakdown a `#` or `##` heading. A line inside a fenced code block is never taken for a section. |
490
493
  | `ocnus linear slices <card>` | Makes the card's slices, given on stdin, as its sub-issues, in order: for each slice a line `<n>. <name>`, and its description indented below it. Each is made in the card's team, with the name as its title, the description, and the card's type, its one label in the `Type` group; each but the first is marked as blocked by the slice before it. It prints a line for each slice, `Slice <n> of <total>: <ID> <name>`, saying whether it was made or was there already. A slice is there already when the card has a sub-issue with its name as its title, exactly: it is left as it is, and only its blocker is added when it lacks one. So a run that stopped partway, which says what it made and why it stopped, is finished by running it again with the same slices, and no slice is made twice. Any other sub-issue of the card is named, and left alone. It makes nothing when the slices are fewer than two, numbered out of order, of one name twice or without a description, or when the card has no type or more than one, is itself a sub-issue, has more than 50 sub-issues, or has two sub-issues of one slice's name. |
@@ -559,8 +562,8 @@ Each step of the write-up phase ends by handing off: which step it was, how it
559
562
  ended (`done`, `needs-human` or `failed`) and what comes next. Breakdown, the
560
563
  last of them, hands off `done` with `start` next once you approve the card,
561
564
  or once the setting does, with the breakdown approval off (see below):
562
- the next step is `ocnus task start`, which the agent runs, or gives
563
- you to run when you chose to start later. Recording that hand-off moves the card in Linear to its team's first not-started status (Todo
565
+ the next step is `ocnus task start`, which the agent runs as soon as the
566
+ card is approved. Recording that hand-off moves the card in Linear to its team's first not-started status (Todo
564
567
  in Lab, Ready for Dev in PHY), and each of its sub-issues with it, by its own
565
568
  team's statuses. What happened to each card is said on stderr; when one cannot
566
569
  be moved, the hand-off is still recorded, the note names each card that was
@@ -882,8 +885,7 @@ ocnus task start <space> <card> [--type <type> --title <title>] [<repo>[:<group>
882
885
  ```
883
886
 
884
887
  - **The card is its ID**, like `ABC-122`, as for `task new`. The write-up
885
- phase runs this command once you approve the card, or gives it to you when
886
- you chose to start later. For a card that was sliced, it uses the first
888
+ phase runs this command as soon as you approve the card. For a card that was sliced, it uses the first
887
889
  sub-issue that is not already started, done or canceled. When no Linear key
888
890
  is saved, or Linear rejected the key, the command has that card's type and
889
891
  title too.
@@ -915,6 +917,27 @@ ocnus task start <space> <card> [--type <type> --title <title>] [<repo>[:<group>
915
917
  flag with no value, or an option it does not know stops it too, before
916
918
  Herdr or Linear is asked. A branch in place of the card is refused too,
917
919
  with a note that `task start` takes the card now.
920
+ - **It holds a card that a card not done yet blocks.** Linear's answer about
921
+ the card names the cards that block it, and those that block the card it
922
+ was sliced from. While any of them is not in a completed status, such as
923
+ Done, `task start` makes no branch, worktree or tab, sends Linear no change,
924
+ so the card stays in Todo, and exits non-zero. It names each such card,
925
+ with its status and the card it blocks:
926
+
927
+ ```
928
+ ocnus: ABC-122 is held: a card that blocks it is not done yet, so no task was made for it.
929
+ blocker ABC-121, in In Progress, blocks ABC-122
930
+ blocker ABC-90, in Todo, blocks ABC-100, the card ABC-122 was sliced from
931
+ ABC-122 stays in Todo. Run this again once the cards that block it are done.
932
+ ```
933
+
934
+ Run it again once they are done: it then starts the card as usual. A card
935
+ that is only related to another, or a blocker that is done, holds nothing.
936
+ When Linear is not asked, because the type and title are given and no key
937
+ is saved or Linear cannot be asked, the card starts with a note that its
938
+ blockers were not checked. A card, or the card it was sliced from, with
939
+ more than 50 relations in Linear starts with a note that a card that
940
+ blocks it may not have been checked.
918
941
  - **Targets say what the task works on.** Each one names a repo of the
919
942
  space by its folder name, and optionally groups inside it:
920
943
 
@@ -1434,7 +1457,7 @@ ocnus approval [--json | --breakdown on|off]
1434
1457
  approval, so the setting as it is then is the one it goes by, not the one
1435
1458
  when the card was started. With it off, it writes the Breakdown, makes the
1436
1459
  sub-issues when the card is sliced, records its `done` hand-off as an
1437
- approval to start now, whose summary and `approved: setting` line say the
1460
+ approval, whose summary and `approved: setting` line say the
1438
1461
  setting gave it (see [Hand-offs](#hand-offs)), and runs
1439
1462
  `ocnus task start` itself, without asking. Recording it moves the card
1440
1463
  as your approval does. `task handoff` refuses that line while the approval
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johngaynor/ocnus",
3
- "version": "2.0.1-next.0",
3
+ "version": "2.0.1-next.7",
4
4
  "description": "A software factory: agent skills and the Herdr setup to run them, installed with one command.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -24,6 +24,6 @@
24
24
  ],
25
25
  "repository": {
26
26
  "type": "git",
27
- "url": "git+https://github.com/johngaynor/ocnus.git"
27
+ "url": "git+https://github.com/johngaynor/ocnus-ai.git"
28
28
  }
29
29
  }
@@ -10,8 +10,8 @@ If I ask for a change when I'm approving, sdlc-breakdown tells you which skill m
10
10
 
11
11
  Do every step yourself, in this session. Don't hand a step to a subagent.
12
12
 
13
- sdlc-breakdown asks me to approve the card, and whether to start its build phase now or later. With the breakdown approval off (`ocnus approval --breakdown off`), sdlc-breakdown approves a card it has no doubt about by itself, without asking me, and asks me only about one it has a doubt about. When it hands off with `next: start`, the card is approved, and the work starts with:
13
+ sdlc-breakdown asks me to approve the card, and approving it starts its build phase. With the breakdown approval off (`ocnus approval --breakdown off`), sdlc-breakdown approves a card it has no doubt about by itself, without asking me, and asks me only about one it has a doubt about. When it hands off with `next: start`, the card is approved, and the work starts with:
14
14
 
15
15
  ocnus task start {space} {card}
16
16
 
17
- It names the branch from the type you set on the card and from its title. If the card was sliced, it takes a sub-issue's ID in place of {card}. sdlc-breakdown's Start the build phase says which, and what to do when it stops. Run it yourself only when I approved to start now. When I chose to start later, give it to me and don't run it. When the setting approved the card, run it yourself, as for an approval to start now. When sdlc-breakdown says to give the card's type and title, add `--type` and `--title` to the command, as the skill shows, whether you run it or give it to me.
17
+ It names the branch from the type you set on the card and from its title. If the card was sliced, it takes a sub-issue's ID in place of {card}. sdlc-breakdown's Start the build phase says which, and what to do when it stops. Run it yourself as soon as the card is approved, by me or by the setting. When a card that blocks it, or the card it was sliced from, is not done yet, it holds the card and makes nothing: tell me which cards it named, and give me the command to run once they are done. When sdlc-breakdown says to give the card's type and title, add `--type` and `--title` to the command, as the skill shows, whether you run it or give it to me.
@@ -20,8 +20,8 @@ No more than five lines, in three parts, each starting with its name in bold:
20
20
  Write each line in plain words, for someone who knows the work but has been away from it. Leave out what the human can't act on, such as which files you read. Give no more than the five lines: they can ask for more.
21
21
 
22
22
  ```
23
- - **Task:** ABC-122, a Download CSV button on the orders page, under parent card ABC-100 Orders, in the Linear project Shop.
24
- - **So far:** Written up, approved and started. The build step made the export in api and the button in web, in two commits, and the tests pass.
23
+ - **Task:** ABC-122, a Download CSV button on the orders page, slice 2 of 3 of ABC-100 Orders, in the Linear project Shop.
24
+ - **So far:** Slice 1 (ABC-121) has merged. ABC-122 was approved and started, and the build step made the export in api and the button in web, in two commits; the tests pass.
25
25
  - **Now:** Checking the work against the card's Done when, item 2 of 3.
26
26
  ```
27
27
 
@@ -31,8 +31,8 @@ Write each line in plain words, for someone who knows the work but has been away
31
31
 
32
32
  The session's first message names a Linear card and an ocnus space, and has you record each hand-off for them. After a long run your memory of how it started may be gone, but the card, its log and its commits are not. So read them again for each brief, rather than going from memory:
33
33
 
34
- - **Task:** `ocnus linear read <card>` gives the card's ask, in its title and its original description above the Specification, and, on lines of their own at the top, its parent card and its Linear project. Name the card, what it asks for, and its parent card and Linear project when it has them. When `ocnus linear read` can't read the card, because no Linear key is saved or Linear rejected the key, read it with the Linear tools.
35
- - **So far:** `ocnus task log <space> <card>` gives each step recorded so far and how it ended. Once the task has started, the commits on the task's branch give what the build phase has made: `git log --oneline origin/<default branch>..HEAD` in each of the task's worktrees. What you say has happened agrees with both. Name the steps that are done and what came of them, not every row.
34
+ - **Task:** `ocnus linear read <card>` gives the card's ask, in its title and its original description above the Specification, and, on lines of their own at the top, its parent card and its Linear project. Name the card, what it asks for, and its parent card and Linear project when it has them. A card with a parent is a slice of it: read the parent too, with `ocnus linear read <parent>`, which lists its sub-issues, its slices, in the order breakdown made them. Give the card's place among them with the parent, as `slice N of M of <parent ID> <parent title>`: N is where the card is in that list, and M is how many slices it has. When `ocnus linear read` can't read the card or its parent, because no Linear key is saved or Linear rejected the key, read it with the Linear tools, and count the slices oldest first, by when each was made.
35
+ - **So far:** `ocnus task log <space> <card>` gives each step recorded so far and how it ended. Once the task has started, the commits on the task's branch give what the build phase has made: `git log --oneline origin/<default branch>..HEAD` in each of the task's worktrees. What you say has happened agrees with both. Name the steps that are done and what came of them, not every row. For a slice, open with what has shipped under its parent: name the parent's other slices that are Done, which a slice is once its pull requests have merged, or say that none has shipped yet. For a card with slices of its own, its sub-issues in `ocnus linear read <card>`, open the same way with those of them that are Done, or say that none has shipped yet. Name each Done slice by ID and slice number, as "Slice 1 (ABC-121) has merged.", not by its title, and all of them in one sentence, never a line each, so that the brief stays within five lines however many there are. A card with neither a parent nor slices of its own has no such sentence, and no place among slices on **Task:**.
36
36
  - **Now:** this comes from you: the step you are in and what you are doing in it, or the question you are waiting on.
37
37
 
38
38
  ### In any other session
@@ -100,7 +100,7 @@ Breakdown is the last step of the write-up phase, so it ends with the whole card
100
100
  First read the breakdown approval, with `ocnus approval --json`. Read it when you get to the approval, not before: the human may turn it on or off while the card is written up, and the setting as it is now is the one that counts. It prints one line, such as `{"file":"…/settings.json","approval":{"breakdown":true}}`.
101
101
 
102
102
  - **`"breakdown": true`**: ask the human, as below. With nothing set, no setting in the file or no file, it is `true`.
103
- - **`"breakdown": false`, and you have no doubt to raise**: don't ask. The setting approves the card, and its approval is one to start now. When the card is sliced, go on to part 2, then hand off. When it is one piece, hand off. Both are described below.
103
+ - **`"breakdown": false`, and you have no doubt to raise**: don't ask. The setting approves the card, which starts it as the human's approval does. When the card is sliced, go on to part 2, then hand off. When it is one piece, hand off. Both are described below.
104
104
  - **`"breakdown": false`, and you have a doubt to raise**: ask the human, as below, and put the doubt in the summary. A doubt is what this skill says to raise when you ask the human to approve: a sub-issue that looks too big to stay one piece, more than six slices, which makes the card look like several cards, or a card that can't be cut and is large.
105
105
  - **The command fails, or prints anything else**, such as when the settings file is not valid settings or this machine's `ocnus` has no `approval` command: ask the human, as below, and say in the summary that the breakdown approval could not be read, and why, in the command's words.
106
106
 
@@ -113,14 +113,14 @@ When you ask, give them a summary they can answer from without opening Linear:
113
113
  - The approach, in a sentence or two.
114
114
  - Whether it is one piece or several, and why. If several, the slice names in order.
115
115
 
116
- Then ask them to approve or say what to change. An approval also says when the build phase starts: now, or later, when they start it themselves. 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:
116
+ Then ask them to approve or say what to change. Approving the card starts its build phase: once the approval is recorded, you run `task start` on it. 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:
117
117
 
118
118
  ```
119
119
  ocnus task handoff <space> <card ID> <<'EOF'
120
120
  step: breakdown
121
121
  status: needs-human
122
- question: Approve <card ID> as specified, planned and broken down, and start its build phase now?
123
- options: approve and start | approve, start later | change breakdown | change plan | change specification
122
+ question: Approve <card ID> as specified, planned and broken down, and start its build phase?
123
+ options: approve | change breakdown | change plan | change specification
124
124
  EOF
125
125
  ```
126
126
 
@@ -133,7 +133,7 @@ Wait for their answer.
133
133
  | Approve, and the card is one piece | The card is ready to build. Hand off, as described below |
134
134
  | Approve, and the card is sliced | Go on to part 2 |
135
135
 
136
- Approve and start, and approve, start later, are both an approval: everything above and below is the same for each, and only what follows the hand-off differs. Go by what they mean, not by the exact words. An approval that does not hold the build phase back, such as `approve` or `yes`, is one to start now. One that holds it back in any words, such as later, not yet or I'll start it, is one to start later. If you can't tell which, ask. When you record their answer, say which they chose, so that `ocnus task log` shows it. An approval by the setting, with the breakdown approval off, is one to start now, and since no one was asked, there is no answer to record.
136
+ Go by what they mean, not by the exact words: `approve`, `yes` or `go ahead` approves the card. An approval always starts the build phase: none holds it back. When they approve the card but want its start held back, in any words, such as not yet or I'll start it, tell them that approving starts it, and ask again: a card they want to hold stays unapproved, in Backlog, until they approve it. A card that another card blocks needs no holding back: `task start` holds it by itself until every card that blocks it, or the card it was sliced from, is done. An approval by the setting, with the breakdown approval off, starts the card in the same way, and since no one was asked, there is no answer to record.
137
137
 
138
138
  ## Part 2: Create the sub-issues
139
139
 
@@ -171,7 +171,7 @@ ocnus task handoff <space> <card ID> <<'EOF'
171
171
  step: breakdown
172
172
  status: done
173
173
  next: start
174
- summary: <that the card is approved, by the human or by the setting, to start now or later; whether it is one piece or sliced; if sliced, the sub-issues in order with their IDs, and which one is first>
174
+ summary: <that the card is approved, by the human or by the setting; whether it is one piece or sliced; if sliced, the sub-issues in order with their IDs, and which one is first>
175
175
  flags: <anything that didn't go to plan, such as a blocking relation that couldn't be set>
176
176
  EOF
177
177
  ```
@@ -209,16 +209,14 @@ Put the title between single quotes as Linear has it, and write each `'` in it a
209
209
 
210
210
  Once `task start` has opened the build tab, it puts this write-up session away: once this session's turn has ended, it ends the Claude session with `/exit` and closes this tab, which archives the session in the Claude app's list. For a sliced card it does the same once a sub-issue is started, since this tab is named after the card the sub-issue was sliced from.
211
211
 
212
- An approval by the setting is one to start now. Run the command as for the human's approval to start now, below.
213
-
214
- - **The human chose to start later:** give them the command, `ocnus task start <space> <ID>`, and run nothing. This session stays open until that command is run, from any terminal, and that puts it away.
215
- - **The human chose to start now:** run that command yourself, once, after the hand-off above is recorded, or written in your message when it could not be recorded. Then tell the human the tab it opened, and pass on every `agent` and `note` line it printed: those say what still needs them, such as an agent it could not start, a repo Claude Code will ask about trusting, or a card it did not move in Linear. Its `write-up` line says this session is put away once this turn ends. So say everything in this turn and ask nothing after it: once the turn ends, this session is gone.
212
+ Whoever approved the card, the human or the setting, run that command yourself, once, after the hand-off above is recorded, or written in your message when it could not be recorded. Then tell the human the tab it opened, and pass on every `agent` and `note` line it printed: those say what still needs them, such as an agent it could not start, a repo Claude Code will ask about trusting, or a card it did not move in Linear. Its `write-up` line says this session is put away once this turn ends. So say everything in this turn and ask nothing after it: once the turn ends, this session is gone.
216
213
 
217
214
  If it stops, don't run it again. This session stays open, since `task start` puts it away only once it has opened the build tab. Tell the human what it said, and what to do next:
218
215
 
219
216
  | It stopped | Then tell the human |
220
217
  |---|---|
221
- | Before it made the task: what it said has no `made the task at` | To run `ocnus task start <space> <ID>` once what it named is fixed |
218
+ | It held the card: it says `<ID> is held`, and names each card that blocks it, or the card it was sliced from, and is not done yet | That the card is approved and waits for those cards in Todo, with nothing made for it. To run `ocnus task start <space> <ID>` once they are done, from any terminal: that starts its build phase, and puts this session away |
219
+ | Before it made the task, for any other reason: what it said has no `made the task at` | To run `ocnus task start <space> <ID>` once what it named is fixed |
222
220
  | After it made the task: it says `made the task at <folder>` | That the task is made and a second `task start` would be refused, so to open that folder in the space, in Herdr, and run `ocnus task build <space> <ID>` there |
223
221
 
224
222
  ## The handoff block