@sjawhar/claude-envoy 4.11.0 → 4.11.2
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/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/AGENTS.md +43 -497
- package/dist/codex-hook.js +2076 -2042
- package/dist/dispatch.js +2106 -2050
- package/dist/envoy-channel.js +2077 -2043
- package/dist/session-hook.js +2076 -2042
- package/legion/skills/legion-architect/SKILL.md +88 -66
- package/legion/skills/legion-architect/references/acceptance.md +89 -258
- package/legion/skills/legion-architect/references/decomposition.md +94 -213
- package/legion/skills/legion-architect/references/design-gate.md +88 -353
- package/legion/skills/legion-architect/references/wake-routing.md +51 -43
- package/legion/skills/legion-controller/SKILL.md +50 -181
- package/legion/skills/legion-controller/references/admission.md +25 -54
- package/legion/skills/legion-controller/references/backlog-stewardship.md +23 -119
- package/legion/skills/legion-controller/references/consolidation.md +9 -93
- package/legion/skills/legion-controller/references/daily-report.md +21 -99
- package/legion/skills/legion-controller/references/escalation.md +16 -118
- package/legion/skills/legion-controller/references/finding-asks.md +31 -162
- package/legion/skills/legion-controller/references/park-asks.md +33 -0
- package/legion/skills/legion-controller/references/parked-decisions.md +20 -264
- package/legion/skills/legion-controller/references/session.md +26 -84
- package/legion/skills/legion-controller/references/slack-mentions.md +18 -134
- package/legion/skills/legion-controller/references/triage.md +18 -89
- package/legion/skills/legion-controller/references/wakes.md +22 -549
- package/legion/skills/legion-controller/references/weekly-audit.md +9 -90
- package/legion/skills/legion-oracle/SKILL.md +19 -28
- package/legion/skills/legion-retro/SKILL.md +54 -93
- package/legion/skills/legion-retro/references/learnings.md +21 -33
- package/legion/skills/legion-retro/references/pr-body-content.md +21 -37
- package/legion/skills/legion-worker/SKILL.md +50 -64
- package/legion/skills/legion-worker/references/ci-checks.md +16 -84
- package/legion/skills/legion-worker/references/conflicts-and-rewrites.md +34 -93
- package/legion/skills/legion-worker/references/default-branch-check.md +22 -60
- package/legion/skills/legion-worker/references/findings.md +25 -180
- package/legion/skills/legion-worker/references/foreign-path.md +14 -22
- package/legion/skills/legion-worker/references/gvisor.md +20 -0
- package/legion/skills/legion-worker/references/merge-gate.md +43 -419
- package/legion/skills/legion-worker/references/plan-tests.md +8 -28
- package/legion/skills/legion-worker/references/pr-body.md +19 -218
- package/legion/skills/legion-worker/references/review-threads.md +16 -70
- package/legion/skills/legion-worker/references/tools.md +31 -578
- package/legion/skills/legion-worker/references/withheld-capability.md +12 -163
- package/legion/skills/simplify-settled-diff/SKILL.md +23 -41
- package/legion/skills/simplify-settled-diff/references/personas/code-quality-reviewer.md +14 -14
- package/legion/skills/simplify-settled-diff/references/personas/code-reuse-reviewer.md +4 -4
- package/legion/skills/simplify-settled-diff/references/personas/efficiency-reviewer.md +8 -8
- package/package.json +1 -1
- package/skills/agent-secrets/SKILL.md +46 -312
- package/skills/agent-secrets/references/store-a-secret.md +9 -0
- package/skills/approval-review/SKILL.md +20 -76
- package/skills/asd-ste100/SKILL.md +43 -85
- package/skills/asd-ste100/examples/before-after.md +18 -53
- package/skills/dispatch/SKILL.md +1 -1
- package/skills/dispatch-writing-specs/SKILL.md +1 -1
- package/skills/envoy/SKILL.md +56 -126
- package/skills/envoy/references/check-settlement.md +26 -43
- package/skills/envoy/references/deliveries.md +26 -144
- package/skills/envoy/references/legion.md +12 -45
- package/skills/envoy/references/roles.md +11 -9
- package/skills/envoy/references/sources.md +13 -25
- package/skills/outside-message/SKILL.md +24 -81
- package/skills/plain-words/SKILL.md +24 -55
- package/skills/thermonuclear-code-quality/SKILL.md +16 -26
- package/skills/thermonuclear-deep-review/SKILL.md +22 -31
- package/legion/skills/legion-worker/references/cleanup-deletion.md +0 -22
- package/legion/skills/legion-worker/references/systematic-rename.md +0 -19
- package/skills/asd-ste100/references/writing-rules.md +0 -59
- package/skills/plain-words/references/mechanics.md +0 -49
|
@@ -1,63 +1,34 @@
|
|
|
1
1
|
# Reading admission
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
is `admitted` from the moment the daemon records it until its first phase starts, whether it runs,
|
|
5
|
-
waits, or neither. Read its key against `admission` and the root its own `tree` field names. A
|
|
6
|
-
slot is one issue the daemon has started, a root or a child, not one tree, so `admission.active`
|
|
7
|
-
no longer says which trees run: `admission.trees` does.
|
|
3
|
+
Read this when you need to know where an issue stands in admission, or what an `admission.held` word means. An issue's `phase` alone does not say it: read its key against the `admission` lists and the root its `tree` names. The rules behind them: [Admission and the `legion` label](https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label).
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
|---|---|---|
|
|
11
|
-
| The key is in `admission.active` | An issue holding a slot, a root or a child: the daemon has started it and its work is not past its review yet. This list holds an issue at work, one `held` and one waiting on a person alike; it holds no issue past its review, in `accepting`, `retro` or `merging`, and no started issue that waits on another issue and is not one of the roots that keep their slot through such a wait, which returns its slot for that wait and is in `admission.waiting` and `admission.blocked` instead ([Admission and the `legion` label](https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label)) | Nothing, beyond [trees waiting on a root claim](skill://legion-controller/SKILL.md#trees-waiting-on-a-root-claim) |
|
|
12
|
-
| The key is in `admission.trees` | The root of a live tree: its lifecycle stands open and it does not linger, or it waits in the line or on a person. A tree is live whether or not any issue of it holds a slot, so this is the list that says which trees run, and `issues.<KEY>.tree` says which tree an issue stands in | Nothing: read it wherever you need the running trees |
|
|
13
|
-
| The key is in `admission.waiting` and not in `admission.blocked` | An issue standing in the line, in its own order: first the issues whose work came back, oldest first by when it came back — one owed its worker a start, which holds no slot and waits here for one; one `waiting_on_issue`, a started issue that gave its slot back for a wait, which holds no slot and waits here for one; and two that hold the slot they were started with: a root a person answered in `awaiting_person`, and a tree's own root at `admitted` whose design gate has opened; then the issues whose first phase can start, by the Dispatch rank of their tree's root and then by their own. A root that left another tree (handed over by its finished tree, or admitted as an orphan) waits here as its own root even under a live tree, the old root's return included: no tree adopts it. Two kinds of that second part may hold a slot already: such a root, with the one it held in the tree it left, and a child the daemon started that a person set back to `todo`, with the one its run took. `issues.<KEY>.waitingLine` says where that issue stands, in its own fields: `part`, `returned` for an issue whose work came back or `starting` for one that has not started; `kind`, `returning` (a worker is owed a start), `answered` (a person answered the root), `queued_root`, `first_phase` or `waiting_on_issue` (a started issue that gave its slot back to wait on another issue: https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label); `partPlace` and `partLength`, its place among the issues of its own part and how many they are; `holdsSlot`, true where it already holds its admission slot and so takes no free one; `since`, the moment a `returned` issue's work came back; `rootRank`, `ownRank` and `rootKey`, the two Dispatch ranks that placed a `starting` issue and the key of its tree root; and `reason`, the daemon's own sentence for where it stands, which you quote in a report rather than write one of your own. Beside it, every issue that is not working now carries `why`, one answer with a `state` and a `reason` sentence: `claim_stopped`, a claim nothing will wake; `waiting`, this line; `blocked`, a Dispatch link or an open child below it; `unlisted`, the record holds it in the workflow and none of the three lists places it. An issue holding an admission slot carries no `why` unless it also stands in `admission.waiting` or `admission.blocked`, or a stranded claim names it: an answered root reads `waiting`, and an issue at work whose worker runs, one `held` and a root whose ask a person has not answered yet, which `waitingOn` answers for, read nothing. Neither does an issue the record does not hold in the workflow (`done`, `backlog`, `icebox`, `triage`). The daemon narrows its answer to the contract the reading pod records: you read `partPlace` and every member above, and `why` with them, once your own pod runs a plugin at contract 85, and you read the `place` and `length` of today until then | Nothing: an issue holding a slot is promoted on the next pass whatever the cap says, and one holding none — an issue owed a start among them — waits here for a slot and takes one by itself. Read `reason` before you report an order as wrong: an issue of the second part stands behind every issue whose work came back, however it ranks ([Free slots](skill://legion-controller/SKILL.md#free-slots)) |
|
|
14
|
-
| `phase: awaiting_person`, `waitingOn` | A root that already ran and now waits only on a person: an answer to its architect's question (`waitingOn.kind` `ask`) or a review of its spec (`gate`). It keeps the slot it took when the daemon started it, its architect stays live to read the person's comments and replies, and its tree stays live. Unanswered, it is in `admission.active` and in no line; `waitingOn.answeredAt` means the daemon has put it in `admission.waiting` as well, among the issues whose work came back, oldest first, where it stands until the pass that resumes it | Nothing: it is not something to admit, label or park, and its wait frees no slot to take ([Free slots](skill://legion-controller/SKILL.md#free-slots)). The daemon delivers the answer task to its architect at that promotion, which takes no further slot, so it happens however full the cap is. If its label goes or a person or outside session claims it on Dispatch, the daemon sends `unslotted` and does not resume work under another owner |
|
|
15
|
-
| The key is in `admission.blocked` | An issue waiting on a Dispatch issue nobody has finished, with what it waits on: the Dispatch issues of its `blocked_by` links that nobody has finished, or, for a parent, the open children beneath it that children-first holds it for. An issue the daemon has not started yet takes no slot until they are done, and one that is in the line stands in `admission.waiting` too; an issue the daemon has started holds no admission slot while it waits either: it gives the slot it had back, stands here and in `admission.waiting`, and takes one again by itself (https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label), with nothing of its work stopped meanwhile — no worker is suspended, no phase moves, no Dispatch status is written, and only the start of its next phase waits until it holds a slot again — and being in both lists and in neither `admission.active` is what tells it from an issue a person parked, which is in none of the three; three started roots keep their slot although a wait names them (https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label): a root in `awaiting_person`, a root at `admitted` whose design gate has never opened, and a root that arrived from another tree carrying the row it held there | Nothing: a link's wait ends when each blocker reaches `done` (a person's close, or the blocker's own merge) or its link is taken off (by a person or an architect of the tree), and a children-first wait ends when the last open child leaves the workflow, which is the work of the architect that owns the parent. Name the wait in the day's report |
|
|
16
|
-
| `phase: admitted`, in neither `admission.active` nor `admission.waiting`, and Dispatch shows a `child_of` parent | A child that has not started: it runs or waits with its tree, the root its `child_of` chain reaches. Under a root whose `phase` is `done` it waits with it. A labelled `todo` issue here is not in the line either: one whose recorded parent is in a live tree runs in that tree (the daemon adopted it there), or is held with that parent while the parent itself is held under an unreleased child, and one whose parent is not recorded but sits under a live tree is held under an unreleased child of that tree until an architect of that tree above it releases it or its parent. One a person moved to `todo` beneath an ancestor whose reviewed head the daemon has already accepted is held here until that ancestor closes. The unreleased-child hold is not `admission.blocked`, which names blocked-by links and children-first waits | Leave it to its tree. It runs again when its root does, or as a root of its own once it is `todo` with the `legion` label and no live tree is above it |
|
|
17
|
-
| `phase: admitted`, `status: todo`, in neither list, no parent | A root a person took out of the line by taking its label off | Nothing: the label puts it back in the line, and a person's label is their decision |
|
|
18
|
-
| `phase: done` while `status` is `in_progress`, `testing`, `needs_review` or `retro` | Legion is not running it under that status, and it sent the `unslotted` wake. Either someone other than Legion moved a root that waited for a slot there, and the daemon took it out of the workflow at that move since no slot would ever reach it; or a root waiting on a person could not be resumed — its `legion` label is gone, or a person or an outside session took its Dispatch claim — and the daemon took it out the same way, leaving the `in_progress` it ran with. A parked child stays parked. Legion starts nothing for any of them | Re-admit nothing yourself: `dispatch read` shows who works it now. Name it in your summary; `todo` with the `legion` label queues it again |
|
|
5
|
+
## The lists
|
|
19
6
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
`
|
|
27
|
-
|
|
28
|
-
and a child that no architect has released yet hold none while their tree runs. The wake is live
|
|
29
|
-
only, so a controller that starts later finds such a root by the last row, as its start procedure
|
|
30
|
-
does.
|
|
7
|
+
- `admission.active`: every issue holding a slot, a root or a child, at work, `held` or waiting on a person. An issue past its review (`accepting`, `retro`, `merging`) holds none, and neither does a started issue that waits on another issue, except three roots that keep theirs: one in `awaiting_person`, one at `admitted` whose gate has never opened, and one carried from another tree.
|
|
8
|
+
- `admission.trees`: the roots of the live trees, whether or not any issue of them holds a slot. Use it, not `admission.active`, for which trees run.
|
|
9
|
+
- `admission.waiting`: the line, in order. First the issues whose work came back, oldest first; then the issues whose first phase can start, by their root's Dispatch rank and then their own. `issues.<KEY>.waitingLine` says where one stands (`part`, `kind`, `holdsSlot`, `reason`): quote its `reason` before you call an order wrong.
|
|
10
|
+
- `admission.blocked`: issues waiting on an unfinished `blocked_by` issue, or a parent waiting for its open children. A started issue here gave its slot back and takes one again by itself; nothing of its work stops.
|
|
11
|
+
- `phase: awaiting_person` with `waitingOn`: a root waiting on a person's answer or review keeps its slot and is in no line. `waitingOn.answeredAt` means the daemon has put it in `admission.waiting` as well, among the issues whose work came back, oldest first, where it stands until the pass that resumes it.
|
|
12
|
+
- `phase: admitted`, in no list, with a `child_of` parent: a child that has not started. Leave it to its tree.
|
|
13
|
+
- `phase: admitted`, `status: todo`, in no list, no parent: a person took its label off. Nothing to do.
|
|
14
|
+
- `phase: done` while `status` is `in_progress`, `testing`, `needs_review` or `retro`: someone else moved a waiting root, or a root waiting on a person lost its label or claim, and the daemon sent `unslotted`. Re-admit nothing.
|
|
31
15
|
|
|
32
|
-
|
|
16
|
+
Holding no slot is no fault by itself.
|
|
33
17
|
|
|
34
|
-
`admission.held
|
|
35
|
-
`admission.active` nor `admission.waiting`. Each row carries the issue, one word for why nothing
|
|
36
|
-
of it runs, and `heldBy`, the issues that hold it, which is absent where no issue holds it. The
|
|
37
|
-
daemon reads the words in the order of the table below and takes the first that is true, so one
|
|
38
|
-
issue reads one word, and that word is the same in `read_state` and in the `tick` notice. The
|
|
39
|
-
list names no issue `admission.active` or `admission.waiting` names, so the three lists together
|
|
40
|
-
are every issue of the workflow and what each one is doing. `admission.blocked` keeps its own
|
|
41
|
-
rows beside them: it names Dispatch links and children-first waits alone, and an issue it names
|
|
42
|
-
that stands in `admission.held` reads there under whichever word the daemon's order gives it,
|
|
43
|
-
which can be an earlier one — a child under a shut gate that a link also holds reads
|
|
44
|
-
`design_gate`. A blocked issue the line carries stands in `admission.waiting` and has no held row
|
|
45
|
-
at all: a blocked root the line carries, and a started issue that gave its slot back to wait on
|
|
46
|
-
another issue.
|
|
18
|
+
## `admission.held`: what nothing starts
|
|
47
19
|
|
|
48
|
-
The daemon starts none of
|
|
49
|
-
for them, except where the row's last column names an act of yours.
|
|
20
|
+
Every issue the record holds in the workflow that is in neither `admission.active` nor `admission.waiting`, with one word for why nothing of it runs and `heldBy`, the issues that hold it. The daemon starts none of them by itself: name them in the day's report and take nothing for them.
|
|
50
21
|
|
|
51
|
-
| Word |
|
|
22
|
+
| Word | Meaning | What ends it |
|
|
52
23
|
|---|---|---|
|
|
53
|
-
| `tree_closed` |
|
|
54
|
-
| `tree_parked` |
|
|
55
|
-
| `label_off` |
|
|
56
|
-
| `ancestry` |
|
|
57
|
-
| `root_awaiting_person` |
|
|
58
|
-
| `design_gate` |
|
|
59
|
-
| `dispatch_blocker` | A
|
|
60
|
-
| `children_first` |
|
|
61
|
-
| `accepted_ancestor` |
|
|
62
|
-
| `at_work` |
|
|
63
|
-
| `unclassified` |
|
|
24
|
+
| `tree_closed` | Its tree's root is `done`, or still lingering after it left the workflow | An architect's `release_children` of the live tree its Dispatch parent reaches, where that release is accepted |
|
|
25
|
+
| `tree_parked` | Its tree was parked and the linger ran out | A `todo` on the root; your own hold, the parked-root walk decides |
|
|
26
|
+
| `label_off` | A root whose `legion` label is off | A person's label |
|
|
27
|
+
| `ancestry` | Its Dispatch chain reaches another live root: that tree's unreleased work | That tree's architect releasing it or its parent, or the chain leaving that tree |
|
|
28
|
+
| `root_awaiting_person` | Its root waits on a person | The root's resume |
|
|
29
|
+
| `design_gate` | Its root's design gate is not open at every gated step | A person's approval of each step's document |
|
|
30
|
+
| `dispatch_blocker` | A `blocked_by` issue is not `done` | Each blocker `done`, or the link taken off |
|
|
31
|
+
| `children_first` | An open child under it | The last open child leaving the workflow |
|
|
32
|
+
| `accepted_ancestor` | An ancestor's reviewed head is accepted | That ancestor's close |
|
|
33
|
+
| `at_work` | Past its review, not `held`, on no slot | Its own sign-off, retro and merge |
|
|
34
|
+
| `unclassified` | None of the above | Nothing of yours: name it with its `phase` and `status` |
|
|
@@ -1,141 +1,45 @@
|
|
|
1
1
|
# Backlog stewardship
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
plan. The plan is the source of the work order and its one-owner map; Dispatch board rank is the
|
|
5
|
-
executable form of that order. The deployment instructions name the weekly-planning issue and its
|
|
6
|
-
`plan-week-*` artifact.
|
|
3
|
+
Read this for the weekly-plan reconciliation (first turn of each UTC day, and after each directive a person gives), a scope question or routing request on your role topic, and stopped-session work. The deployment instructions name the weekly-planning issue; its newest `plan-week-*` artifact is the work order and the one-owner map, and Dispatch board rank is that order in force.
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Claim no Envoy role other than `legion-<project>-controller`, your startup role, because changing
|
|
11
|
-
roles ends the controller's wake delivery. Scope questions, routing requests and findings
|
|
12
|
-
reach you on `notifications.role.legion-<project>-controller`.
|
|
5
|
+
Claim no Envoy role but `legion-<project>-controller`: another ends your wake delivery.
|
|
13
6
|
|
|
14
7
|
## Reconcile the weekly plan
|
|
15
8
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
`read_state`), make the project's board order match the line order exactly, because board rank
|
|
22
|
-
is the order Legion admits by: an issue whose first phase can start takes the rank of its
|
|
23
|
-
tree's root, and an issue whose work came back goes ahead of all of them. Set the priority the
|
|
24
|
-
plan line states, and leave the priority where it states none; priority changes no admission
|
|
25
|
-
order. When one plan line lists
|
|
26
|
-
several issues, keep them in that order. Take the order from the plan alone, never from a
|
|
27
|
-
title or a route. Reorder with
|
|
28
|
-
`dispatch issue-update --issue <KEY> --before <OTHER>` or `--after <OTHER>`.
|
|
29
|
-
3. Reconcile the plan's one-owner map. `envoy_sessions` gives each session a `state` (`live`,
|
|
30
|
-
`unresponsive` or `gone`) and a `last_seen`; read the state, never the presence or absence of
|
|
31
|
-
the row. A `live` or `unresponsive` owner still owns its work: change nothing for it. Only an
|
|
32
|
-
owner that reads `gone`, or that the registry has no record of, is without a session. For
|
|
33
|
-
unowned work, find an owner whose `envoy_sessions` `dir` is a
|
|
34
|
-
checkout of the issue's repository, route the issue to it
|
|
35
|
-
(`dispatch issue-update --issue <KEY> --route session:<session id>`) and `envoy_send` it
|
|
36
|
-
`You own <KEY>: <title>.`. Routing starts nothing on Legion and sets no label. Never route an
|
|
37
|
-
issue that carries the `legion` label, because Legion's own roles work it. Do not change the
|
|
38
|
-
human `Assignee:` field: it decides who receives asks, not who works the issue.
|
|
39
|
-
4. Edit that issue's line in the plan artifact (its owner column) with `dispatch doc-edit`,
|
|
40
|
-
guarded by the document token from the current `dispatch doc-read`. Replace superseded text
|
|
41
|
-
instead of keeping a change log in it, because the artifact states the current rule. A comment
|
|
42
|
-
or message does not update the one-owner map.
|
|
43
|
-
|
|
44
|
-
A directive from a person is a direct Dispatch message to this controller. Answer it first, carry out
|
|
45
|
-
its directive on scope or priority, then record the resulting current rule in the affected weekly-plan
|
|
46
|
-
row (or its directives section when it has no one line). Link the message when Dispatch gave it a
|
|
47
|
-
reference.
|
|
48
|
-
A directive triggers the full reconciliation pass even when it appears to affect only one issue.
|
|
9
|
+
1. Read the weekly-planning issue and its newest `plan-week-*` artifact (by its latest `artifact.version` event) before you change any issue.
|
|
10
|
+
2. Rank the plan by the deployment's priorities (`dispatch priorities --project <KEY>`). An issue takes the rank of the highest priority its `Advances:` line names, its own or inherited; an issue that advances none ranks below all. Order the plan's lines by rank, highest first, keeping the plan's order within a rank; a line that lists several issues takes its highest issue's rank. Move a line that breaks this order, unless a person asked for a different order of that work: then cite that request beside the line (a request to do the work is no request about its order). Name each move in your turn's summary.
|
|
11
|
+
3. For every plan line whose key has this project's prefix (`daemon.project`), make the board order match the line order exactly, from the plan alone: `dispatch issue-update --issue <KEY> --before <OTHER>` (or `--after`). Set the priority a line states; leave it where it states none.
|
|
12
|
+
4. Reconcile the one-owner map. A `live` or `unresponsive` owner in `envoy_sessions` still owns its work: change nothing. Only an owner that reads `gone`, or that the registry has no record of, has no session. Route such unowned work to a session whose `dir` is a checkout of the issue's repository (`dispatch issue-update --issue <KEY> --route session:<session id>`) and `envoy_send` it `You own <KEY>: <title>.`. Never route an issue that carries the `legion` label, and never change its `Assignee:`, which decides who receives asks.
|
|
13
|
+
5. Edit that line's owner in the artifact with `dispatch doc-edit`, guarded by the token of the current `dispatch doc-read`, replacing superseded text rather than logging changes.
|
|
49
14
|
|
|
50
|
-
|
|
15
|
+
A directive is a direct Dispatch message to you: answer it, carry it out, record the rule it sets in its weekly-plan row (or the directives section) with the message's link, then run the whole pass.
|
|
51
16
|
|
|
52
|
-
|
|
53
|
-
daemon state. You decide labels, the statuses `todo`, `backlog` and `icebox`, and board order.
|
|
54
|
-
Answer a scope question from the weekly plan and the deployment instructions. Anything else goes
|
|
55
|
-
with `envoy_send` to the session the plan's one-owner map names for that issue.
|
|
17
|
+
## Answering controller deliveries
|
|
56
18
|
|
|
57
|
-
|
|
58
|
-
pull request itself, at the head it read and under the repository's own rules.
|
|
19
|
+
Read every delivery against live Dispatch and daemon state. You decide labels, `todo`, `backlog`, `icebox` and board order. Answer a scope question from the weekly plan and the deployment instructions; send anything else with `envoy_send` to the session the one-owner map names for that issue.
|
|
59
20
|
|
|
60
21
|
## The owner audit
|
|
61
22
|
|
|
62
23
|
At each pass, read `dispatch issues --project <KEY> --priority 0 --priority 1 --all`:
|
|
63
24
|
|
|
64
|
-
- An unclaimed row in `triage`, `icebox`, `backlog` or `todo` is a decision: someone builds it, or
|
|
65
|
-
|
|
66
|
-
- A close that says a defect cannot happen cites the code that prevents it; without that, the issue
|
|
67
|
-
is unread, not foreclosed.
|
|
25
|
+
- An unclaimed row in `triage`, `icebox`, `backlog` or `todo` is a decision: someone builds it, or it closes.
|
|
26
|
+
- A close that says a defect cannot happen cites the code that prevents it, or the issue is unread.
|
|
68
27
|
- A plan or measurement nobody builds needs an owner.
|
|
69
|
-
- A merged pull request names an issue not yet
|
|
28
|
+
- A merged pull request names an issue not yet `testing` or `done`: check it live, then move it.
|
|
70
29
|
- Someone repeats the issue's work by hand: fix its status.
|
|
71
|
-
- A route nobody holds
|
|
72
|
-
"Recovering stopped-session work" names: staff the role, route the issue to a live holder, or
|
|
73
|
-
clear the route and assign it.
|
|
30
|
+
- A route nobody holds, after the two reads below: staff the role, route to a live holder, or clear the route and assign it.
|
|
74
31
|
|
|
75
32
|
## Recovering stopped-session work
|
|
76
33
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
restarting session is absent for minutes. Do not poll to create the second read; use the next
|
|
81
|
-
controller wake. Then read the owner's state with `envoy_sessions` (the session the route names,
|
|
82
|
-
or one that took it over). A `live` owner still holds the work. So does an `unresponsive` one,
|
|
83
|
-
which is past the live window but inside the gone horizon: it keeps its claims, and a message you
|
|
84
|
-
send it waits for it. Recover the work only from an owner that reads `gone`, or that reads
|
|
85
|
-
`unresponsive` with a `last_seen` more than 20 minutes old, which is as long as an issue claim is
|
|
86
|
-
protected.
|
|
87
|
-
|
|
88
|
-
For work that a person's directive, recorded in the plan with its link (the directives section
|
|
89
|
-
above), says moves to Legion when its session stops, preserve its existing labels, add `legion`,
|
|
90
|
-
then set it `todo` with the `legion` tool's `set_status`. A plan row you wrote with no such directive
|
|
91
|
-
behind it moves nothing. The label comes first: it is what
|
|
92
|
-
lets the daemon admit the root. Do not apply that recovery to an issue already in a live Legion
|
|
93
|
-
tree (a root in `admission.trees`, or an issue whose `tree` is one); its architect and daemon own its lifecycle. Update the weekly-plan owner row after the move.
|
|
34
|
+
A session route is stopped only after two reads of `dispatch issues --project <KEY> --route-status no_holder --all`, at least ten minutes apart, on two wakes, both list it. Then read its owner in `envoy_sessions`: recover the work only from one that reads `gone`, or `unresponsive` with a `last_seen` more than 20 minutes old.
|
|
35
|
+
|
|
36
|
+
Only work that a person's directive, recorded in the plan with its link, moves to Legion when its session stops is yours to move: keep its labels, add `legion`, then `set_status` it to `todo`, and update its owner row. Never apply this to an issue in a live Legion tree.
|
|
94
37
|
|
|
95
38
|
## A root the plan defers
|
|
96
39
|
|
|
97
|
-
A person's `
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
and
|
|
103
|
-
Park a root only when a person asked for that move, or when the work is done, folded into another issue or no longer needed.
|
|
104
|
-
A plan row you wrote with no such request behind it moves nothing. Ask the person whether to
|
|
105
|
-
defer that root instead:
|
|
106
|
-
|
|
107
|
-
1. Look for your earlier ask for that row. Read the root's comments with the command of
|
|
108
|
-
`skill://legion-controller/references/wakes.md#ask-whether-to-park-a-tree` step 1, with
|
|
109
|
-
`Asked whether to defer: ` in place of `Asked whether to park: `, and take the newest whose
|
|
110
|
-
second line is exactly that plan row. Compare that line alone. A comment or a reply from any
|
|
111
|
-
session counts as yours. When its ask is open, open nothing and post nothing. When it is
|
|
112
|
-
resolved with no answer, open nothing and post nothing for that row. The day's report names
|
|
113
|
-
the root and that ask, as `skill://legion-controller/references/daily-report.md` says. When it
|
|
114
|
-
is answered, and no reply of yours under it starts `Deferred dispatch://`,
|
|
115
|
-
`Not deferred dispatch://` or `Let run dispatch://`, act on its answer now (step 4). When your
|
|
116
|
-
reply under it starts `Deferred dispatch://` or `Let run dispatch://`, the person decided
|
|
117
|
-
already: open nothing and post nothing. When your reply under it starts
|
|
118
|
-
`Not deferred dispatch://`, that ask is spent, because its `Defer it` came when the check of
|
|
119
|
-
step 2 failed. Go on to step 2.
|
|
120
|
-
2. Otherwise, and when step 1 sends you here, check first that Legion runs the root: it carries
|
|
121
|
-
the `legion` label, it stands in `admission.active` or `admission.waiting` of `read_state` (the
|
|
122
|
-
`active` and `waiting` lines of its summary), and
|
|
123
|
-
`issues.<root>.phase` is not `done`. When one of these fails, open nothing and post nothing,
|
|
124
|
-
because there is nothing to defer. When all of them hold, open a `dispatch ask` on the report
|
|
125
|
-
issue that names the root and the plan row and
|
|
126
|
-
asks the person whether to defer that root, with the options `Defer it` and `Let it run`.
|
|
127
|
-
Follow it (`dispatch follow --ask '<ref>' --action follow`). Post one comment on the root
|
|
128
|
-
(`dispatch comment --issue <root> --body-file -`). Make its first line
|
|
129
|
-
`Asked whether to defer: dispatch://<REPORT KEY>/ask/<id>`. Make its second line the plan row,
|
|
130
|
-
exactly as the plan gives it: that line is the key that step 1 compares.
|
|
131
|
-
3. Name the row and that ask in the day's report while the ask is open.
|
|
132
|
-
4. On `Defer it`, when the check of step 2 still holds, park the root as
|
|
133
|
-
above, and cite the answer in a comment on the issue. On `Defer it` in any other case, move
|
|
134
|
-
nothing, and say in your reply what you checked. On `Let it run`, move nothing, and take the
|
|
135
|
-
deferral off that plan row with `dispatch doc-edit`, as step 4 of
|
|
136
|
-
[Reconcile the weekly plan](#reconcile-the-weekly-plan) edits a row, so that the next backlog
|
|
137
|
-
pass asks nothing. In each case, reply under the ask with what you did, its first line exactly
|
|
138
|
-
`Deferred dispatch://<root>`, `Not deferred dispatch://<root>` or `Let run dispatch://<root>`:
|
|
139
|
-
`dispatch comment --issue <REPORT KEY> --reply-to-ask '<ask id>' --body-file -`.
|
|
140
|
-
|
|
141
|
-
The cost is the architect's work between the daemon's `todo` and your park.
|
|
40
|
+
A labelled root the daemon queued or runs, which the weekly plan says to defer, is parked at your next pass only when the plan's line names a person's request: `set_status` to `backlog` (`icebox` for longer), citing that request in a comment. A plan row with no such request moves nothing; ask instead:
|
|
41
|
+
|
|
42
|
+
1. Find your earlier ask: step 1 of `skill://legion-controller/references/park-asks.md`, with `Asked whether to defer: ` for `Asked whether to park: `, its second line the plan row. Open or resolved with no answer, or your reply starts `Deferred` or `Let run`: do nothing. Answered with no reply of yours: step 4. Your reply starts `Not deferred`: go on to step 2.
|
|
43
|
+
2. Check that Legion runs the root: it carries the label, stands in `admission.active` or `admission.waiting`, and its `phase` is not `done`. If not, do nothing. Else open a `dispatch ask` on the report issue naming the root and the plan row, options `Defer it` and `Let it run`, follow it, and comment on the root: first line `Asked whether to defer: dispatch://<REPORT KEY>/ask/<id>`, second line the plan row exactly.
|
|
44
|
+
3. Name the row and the ask in the day's report while it is open.
|
|
45
|
+
4. On `Defer it` while step 2's check holds, park the root as above, citing the answer. On `Let it run`, move nothing and take the deferral off that plan row with `dispatch doc-edit`. Reply under the ask, first line exactly `Deferred dispatch://<root>`, `Not deferred dispatch://<root>` or `Let run dispatch://<root>` (`dispatch comment --issue <REPORT KEY> --reply-to-ask '<ask id>' --body-file -`).
|
|
@@ -1,114 +1,30 @@
|
|
|
1
1
|
# The consolidation pass
|
|
2
2
|
|
|
3
|
-
Read this on your first turn of each six-hour UTC block,
|
|
4
|
-
below once the wake's work is done, at step 3 of the skill's every-turn steps. Finding issues that
|
|
5
|
-
are the same work, or that fail for one cause, and folding them is this pass's job, so that a
|
|
6
|
-
person never has to ask for it.
|
|
3
|
+
Read this on your first turn of each six-hour UTC block, and run it after the wake's work. Its job is to find issues that are the same work, or that fail for one cause, and fold them, so no person has to ask.
|
|
7
4
|
|
|
8
5
|
## The block
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
time now, and the current block started at the latest of those times at or before it. Read the
|
|
12
|
-
report issue (`skill://legion-controller/references/daily-report.md`), then its pass record:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
dispatch doc-read --issue <REPORT KEY> --artifact consolidation.md
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
This block's pass has run when the record has a section headed `## Consolidation pass <block
|
|
19
|
-
start>`, whichever controller session wrote it, so a controller that took over from another does
|
|
20
|
-
not run the block again. A `not found` answer means no pass has run yet.
|
|
7
|
+
Blocks start at 00:00, 06:00, 12:00 and 18:00 UTC (`date -u +%Y-%m-%dT%H:%M:%SZ`). Read the report issue's record, `dispatch doc-read --issue <REPORT KEY> --artifact consolidation.md`: a section `## Consolidation pass <block start>`, by any controller session, means this block ran. `not found` means no pass has run yet.
|
|
21
8
|
|
|
22
9
|
## 1. Duplicates
|
|
23
10
|
|
|
24
|
-
|
|
25
|
-
no-write related route, leaving the issue, its ancestors and its descendants out, and judge
|
|
26
|
-
whether each pair the two issues' own records do not already settle is the same work.
|
|
27
|
-
|
|
28
|
-
A serial pass makes one related read for each open issue before any judging. Shard the open list and dispatch one full agent per
|
|
29
|
-
shard of at most 50 issues, `task(agent="deep-worker")`, which can run commands and read Dispatch,
|
|
30
|
-
GitHub and the workspace, and whose model a pod configures (the `task` agent's it does not), then
|
|
31
|
-
`wait` for them: each returns the pairs it found with the records it read for each, and you check
|
|
32
|
-
each finding against those records before you fold it. A read-only `scout` cannot look up what a
|
|
33
|
-
finding rests on, so a shard a scout read does not count: dispatch it again to a full agent.
|
|
34
|
-
|
|
35
|
-
Give each agent the shard's keys and these commands:
|
|
11
|
+
Shard the open issues into groups of at most 50, dispatch one `task(agent="deep-worker")` per shard, and `wait` for them; a read-only agent cannot check what a finding rests on, so a shard it read does not count. Give each agent its keys and these commands, and ask for each issue's related issues with the reason and the records that show it, and nothing else (no comment, no close, no message):
|
|
36
12
|
|
|
37
13
|
```bash
|
|
38
|
-
dispatch read --issue <KEY>
|
|
39
|
-
dispatch doc-read --issue <KEY>
|
|
14
|
+
dispatch read --issue <KEY>
|
|
15
|
+
dispatch doc-read --issue <KEY>
|
|
40
16
|
dispatch related --project <PROJECT> --title '<its title>' --text-file - \
|
|
41
17
|
--exclude-issue <KEY> --exclude-issue <each ancestor> --exclude-issue <each descendant>
|
|
42
18
|
```
|
|
43
19
|
|
|
44
|
-
|
|
45
|
-
descendants all go in one call. The read names both: a `child_of` row under `Links:` is the
|
|
46
|
-
issue's own parent, read again on that parent for the next ancestor up, and each `child_of` row
|
|
47
|
-
under `Referenced by:` is a child, read again on each child for the next level down. Ask each
|
|
48
|
-
agent for, per issue, every related item that is an issue with the reason it looks like the same
|
|
49
|
-
work and the records that show it, and nothing else: no comment, no close, no message.
|
|
50
|
-
|
|
51
|
-
A pair is settled, and is skipped rather than proposed, when the two issues already say so: one
|
|
52
|
-
was closed as a duplicate of the other, one was reopened after such a close, or one was made a
|
|
53
|
-
child of the other. Read the first two from `dispatch read --issue <KEY> --all-events`'s
|
|
54
|
-
`Events:`: the close's reason is the `message.created` line just before `issue.closed`, and a
|
|
55
|
-
reopen is an `issue.updated` line that moves the status off `done`. No `Events:` line reports a
|
|
56
|
-
parent change, so read the third from the same read's `Links:` and `Referenced by:`.
|
|
57
|
-
|
|
58
|
-
Fold each pair you judge the same work by the duplicate rule of `skill://dispatch-first`: keep the
|
|
59
|
-
issue with the spec, copy to it what only the other has, and close the other
|
|
60
|
-
(`--status done --reason 'Duplicate of dispatch://KEY.'`). An issue carrying the `legion` label,
|
|
61
|
-
or another holder's claim, is not yours to close: comment the kept issue's name on it instead. A
|
|
62
|
-
pair inside a Legion tree goes to that tree's architect with `envoy_publish`, which decides it.
|
|
63
|
-
|
|
64
|
-
The record (below) lists every pair you judged the same work, with what you did about it, and
|
|
65
|
-
every pair you skipped with what settles it: the event, or the parent link.
|
|
20
|
+
Skip a pair the issues already settle: one closed as a duplicate of the other, one reopened after such a close (both in `dispatch read --issue <KEY> --all-events`), or one a child of the other (`Links:`, `Referenced by:`). Check each finding against its records, then fold each pair that is the same work by the duplicate rule of `skill://dispatch-first`. An issue with the `legion` label, or another holder's claim, gets a comment naming the kept issue instead of a close; a pair inside a Legion tree goes to that tree's architect with `envoy_publish`.
|
|
66
21
|
|
|
67
22
|
## 2. Recurring causes
|
|
68
23
|
|
|
69
|
-
|
|
70
|
-
closed issue or a failed attempt can show a cause too. Ask each agent of step 1 also about the
|
|
71
|
-
issues of its shard changed in that time, and put the issues closed in that time, which step 1
|
|
72
|
-
does not read, in more shards of at most 50:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
dispatch issues --project <PROJECT> --status done --updated-since "$(date -u -d '24 hours ago' +%Y-%m-%dT%H:%M:%SZ)" --all
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Ask each agent, for each of those issues that fails, what it fails on: the broken tool, check,
|
|
79
|
-
rule or component, the evidence in the issue that shows it (an error, a file, a command), and the
|
|
80
|
-
records it read. Ask for no groups, because issues that fail for one cause can fall in different
|
|
81
|
-
shards. Gather every shard's answers, check each against its records, and group the issues that
|
|
82
|
-
fail for one cause yourself; keep a group of three or more. A group that one fix clears entirely
|
|
83
|
-
is a set of duplicates: fold it as step 1 says. Keep for this step only a group whose issues each
|
|
84
|
-
need their own change beyond the shared cause.
|
|
24
|
+
Ask each agent also, for each issue of its shard changed in the last 24 hours that fails, what it fails on (the broken tool, check, rule or component), its evidence, and the records read. Shard the issues closed in that time too (`dispatch issues --project <PROJECT> --status done --updated-since "$(date -u -d '24 hours ago' +%Y-%m-%dT%H:%M:%SZ)" --all`). Group the issues that fail for one cause yourself, and keep a group of three or more whose issues each need their own change; a group one fix clears is a set of duplicates.
|
|
85
25
|
|
|
86
|
-
Root each cause
|
|
87
|
-
`skill://legion-controller/references/finding-asks.md#hand-over-a-clear-defect` says. Post its
|
|
88
|
-
evidence comment on the report issue first, its first line `Clear defect from controller`, naming
|
|
89
|
-
the cause, each issue of the group and the shared evidence; catch-up step 4 of that reference
|
|
90
|
-
brings it back at a later start until it carries a reply. Then take its steps 2 to 5: comment on
|
|
91
|
-
the open issue that already tracks the cause, else hand it to the running tree whose code it is,
|
|
92
|
-
else file one issue for it, and reply under the evidence comment. The filed issue names each issue
|
|
93
|
-
of the group and the shared evidence, and carries the `Filed for` line of `finding-asks.md` for
|
|
94
|
-
a clear defect: `Filed for Legion from controller on <REPORT KEY>: <the evidence comment's reference>`.
|
|
95
|
-
It takes the `legion` label
|
|
96
|
-
only when the fix needs no choice a person must make (that procedure's step 1); otherwise it waits
|
|
97
|
-
in triage for a person, and the reply is still `Filed dispatch://<KEY>`. Then comment on each
|
|
98
|
-
issue of the group the cause's issue, or the root of the tree it went to. Close no issue of the
|
|
99
|
-
group: each needs its own change as well.
|
|
26
|
+
Root each cause once, as `skill://legion-controller/references/finding-asks.md#hand-over-a-clear-defect` says, with `controller` as the role: post its evidence comment on the report issue, then comment on the open issue that tracks it, hand it to the tree whose code it is, or file it, and reply under the evidence. Comment the result on each issue of the group, and close none of them.
|
|
100
27
|
|
|
101
28
|
## The record
|
|
102
29
|
|
|
103
|
-
|
|
104
|
-
the report issue reaches a person's Inbox, and the day's report posts only while the issue holds
|
|
105
|
-
no message from that day. Add at the top of the record you read, or of a new one, a section headed
|
|
106
|
-
`## Consolidation pass <block start>` with three counts, each with its keys: the issues read; the
|
|
107
|
-
pairs folded (closed, commented or sent to an architect); and the causes rooted (issues commented,
|
|
108
|
-
handed or filed for a recurring cause). Then every pair and group you skipped, with what settles
|
|
109
|
-
it. Drop sections older than eight days, which the artifact's earlier versions keep, and upload
|
|
110
|
-
the whole record, which makes its next version:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
dispatch artifact --issue <REPORT KEY> --name consolidation.md --path <the record file>
|
|
114
|
-
```
|
|
30
|
+
Add at the top of the record a section `## Consolidation pass <block start>` with three counts and their keys: issues read, pairs folded, causes rooted; then every pair and group you skipped, with what settles it. Drop sections older than eight days, and upload the whole record: `dispatch artifact --issue <REPORT KEY> --name consolidation.md --path <the record file>`. Never post the pass as a message: that reaches a person's Inbox.
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
# Daily report
|
|
2
2
|
|
|
3
|
-
Read this on your first turn of each UTC day,
|
|
4
|
-
answer a finding ask: the report issue holds them all.
|
|
3
|
+
Read this on your first turn of each UTC day, and when you open, follow or answer a finding ask: the report issue holds them all.
|
|
5
4
|
|
|
6
5
|
## Find the report issue
|
|
7
6
|
|
|
8
|
-
Use the issue the deployment instructions name for Legion's reports.
|
|
9
|
-
project's `Legion daily report` issue:
|
|
10
|
-
`dispatch search --query '"Legion daily report"' --project <PROJECT>`. When it does not exist,
|
|
11
|
-
create it once (the one issue you file unasked) and park it in `icebox`.
|
|
12
|
-
The report issue holds no work, which is why it stays in `icebox`, and it is the one issue you
|
|
13
|
-
park with neither a person's request nor the end of its work behind it:
|
|
14
|
-
you park every other issue in `backlog` or `icebox` only when a person asked for that move, or when the work is done, folded into another issue or no longer needed, and cite that reason in a comment on the issue.
|
|
15
|
-
It never carries the `legion` label.
|
|
16
|
-
Assign it to the person who answers for the project: the one the deployment instructions name,
|
|
17
|
-
else the owner `dispatch whoami` names, because its asks reach that person's Inbox.
|
|
7
|
+
Use the issue the deployment instructions name for Legion's reports, else the project's `Legion daily report` (`dispatch search --query '"Legion daily report"' --project <PROJECT>`). When none exists, create it once, the one issue you file unasked, and park it in `icebox`: it holds no work and never carries the `legion` label. Assign it to the person who answers for the project (the deployment instructions name them, else the owner `dispatch whoami` names), because its asks reach that person's Inbox; with nobody known, leave out `--assignee`.
|
|
18
8
|
|
|
19
9
|
```text
|
|
20
10
|
dispatch issue --project <PROJECT> --title 'Legion daily report' --assignee '<email>' --spec-file - <<'EOF'
|
|
@@ -25,100 +15,32 @@ EOF
|
|
|
25
15
|
legion({ op: "set_status", issue: "<report KEY>", status: "icebox" })
|
|
26
16
|
```
|
|
27
17
|
|
|
28
|
-
With no person known, leave out `--assignee`: the issue then goes to your token's owner, or, under
|
|
29
|
-
the shared token, to the project's default assignee, which every project names.
|
|
30
|
-
|
|
31
18
|
## Keep it answerable
|
|
32
19
|
|
|
33
20
|
Each time you read it:
|
|
34
21
|
|
|
35
|
-
- `Status: done
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
and its asks stay answerable, and say so in the day's report.
|
|
39
|
-
- `Assignee: unassigned` with a person known: assign it, naming your session (`dispatch whoami`), in bash:
|
|
40
|
-
`curl -sS -X PATCH -H @<(printf 'Authorization: Bearer %s' "$(< "$DISPATCH_TOKEN_FILE")") -H 'Content-Type: application/json' -d '{"assignee": "<email>", "actor": {"kind": "session", "id": "<session id>"}}' "$DISPATCH_URL/api/v1/issues/<REPORT KEY>"`.
|
|
41
|
-
An answer that does not print the issue with its new `assignee` left the assignee as it was
|
|
42
|
-
(`400 ASSIGNEE_NOT_ALLOWED` names an email nobody has signed in to Dispatch with): name it, with
|
|
43
|
-
its first line, in your summary.
|
|
44
|
-
- While `Assignee:` says `unassigned`, open each report with one sentence asking a person to take
|
|
45
|
-
the issue from its header, because until someone does, its asks go to the project's default
|
|
46
|
-
assignee and not to the person the report is for.
|
|
22
|
+
- `Status: done`: the close withdrew its open asks, and Dispatch refuses new ones. Reopen it with `set_status` to `icebox` and say so in the day's report.
|
|
23
|
+
- `Assignee: unassigned` with a person known: `dispatch issue-update --issue <REPORT KEY> --assignee <email>`. A refusal (`400 ASSIGNEE_NOT_ALLOWED` names an email nobody has signed in to Dispatch with) leaves it as it was: name it in your summary.
|
|
24
|
+
- While it is unassigned, open each report with one sentence asking a person to take the issue from its header: until someone does, its asks go to the project's default assignee.
|
|
47
25
|
|
|
48
26
|
## When
|
|
49
27
|
|
|
50
|
-
After the turn's own work, read the report issue
|
|
51
|
-
post when its `Events:` show no `message.created` from today.
|
|
28
|
+
After the turn's own work, read the report issue, keep it answerable, and post when its `Events:` show no `message.created` from today.
|
|
52
29
|
|
|
53
30
|
## What
|
|
54
31
|
|
|
55
|
-
One `dispatch message --issue <report KEY> --body-file -` of at most 2,000 characters,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
- **
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- **
|
|
64
|
-
|
|
65
|
-
- **
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
- **
|
|
70
|
-
on: the issues of its `blocked_by` links, or the open children children-first holds it for. A
|
|
71
|
-
link's wait ends when each blocker reaches `done` (a person's close, or the blocker's own
|
|
72
|
-
merge) or its link is taken off (by a person or an architect of the tree), and a children-first
|
|
73
|
-
wait ends when the last open child leaves the workflow, so take nothing for them.
|
|
74
|
-
Of the issues here, say of each whose `issues.<KEY>.waitingLine.kind` is `waiting_on_issue`
|
|
75
|
-
that it holds no admission slot while it waits,
|
|
76
|
-
that nothing of its work has stopped,
|
|
77
|
-
and that it takes one again by itself
|
|
78
|
-
([Admission and the `legion` label](https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label)).
|
|
79
|
-
That kind is the one reading that says the daemon started the issue and it gave its slot back:
|
|
80
|
-
the state gives it to no issue Legion has not started.
|
|
81
|
-
- **What nothing starts.** Each issue in `admission.held`, grouped by its `reason`, with the
|
|
82
|
-
issues `heldBy` names: each group's count and its issues. Say for each
|
|
83
|
-
group what ends the hold, from the table in
|
|
84
|
-
`skill://legion-controller/references/admission.md`, so a reader sees whose act the work waits
|
|
85
|
-
on. An issue whose `reason` is `unclassified` goes in the report with its `phase` and its
|
|
86
|
-
`status`: the daemon could give it no word, and a person reads it.
|
|
87
|
-
- **Phase workers nothing will prompt.** Each entry of the tick's `silent` list, with the role whose
|
|
88
|
-
claim is silent and how long it has been quiet (`skill://legion-controller/references/wakes.md`).
|
|
89
|
-
That list arrives on the tick wake alone and is in no `read_state` field, so the report names the
|
|
90
|
-
most recent tick's list and says nothing of them on a day no tick carried one.
|
|
91
|
-
An entry with `backgroundSince` is a worker whose own background work has stood past `worker_background_hours`,
|
|
92
|
-
which the daemon does not prompt.
|
|
93
|
-
Name it with how long that work has stood, counted from `backgroundSince`.
|
|
94
|
-
- **Waiting on a person.** Each tree whose next step waits on a person's answer, with that ask's
|
|
95
|
-
`dispatch://` reference, while the ask is open. Each row of the weekly plan that moved nothing,
|
|
96
|
-
because no person's request stands behind it, with its deferral ask's `dispatch://` reference,
|
|
97
|
-
while that ask is open. Leave out a row whose ask is resolved with no answer, because the next
|
|
98
|
-
bullet names it. Leave out a row whose root fails the check of step 2 of
|
|
99
|
-
`skill://legion-controller/references/backlog-stewardship.md#a-root-the-plan-defers`.
|
|
100
|
-
- **Asks resolved with no answer.** For each issue in `admission.active` or `admission.waiting`
|
|
101
|
-
that is the root of its tree (`issues.<KEY>.tree` is `<KEY>`), read its `Asked whether to park:`
|
|
102
|
-
and `Asked whether to defer:` comments with step 1's command of
|
|
103
|
-
`skill://legion-controller/references/wakes.md#ask-whether-to-park-a-tree`, once with each
|
|
104
|
-
prefix. Take the newest comment of each key (the comment's second line). When the ask that its
|
|
105
|
-
first line names is resolved with no answer (`dispatch read --ref '<that reference>'`), name the
|
|
106
|
-
root, the key and that ask's `dispatch://` reference. Leave out a key whose wait has ended: a
|
|
107
|
-
`held` or `architect failed:` key that `read_state` no longer builds (step 4 of that section),
|
|
108
|
-
an `event:` key whose event has happened, and a plan row that the weekly plan no longer defers.
|
|
109
|
-
- **Free slots.** Counted as the skill's "Free slots" says, in issues rather than trees; each
|
|
110
|
-
stays free until an issue in the line takes it.
|
|
111
|
-
- **Open capabilities.** Each row of `read_state`'s `capabilities` whose `status` is `open`: its
|
|
112
|
-
name, its `detail`, and a deployment row's `configLine`. Say who acts on it, as
|
|
113
|
-
`skill://legion-controller/references/wakes.md` says for `tick`. With none open, say nothing of
|
|
114
|
-
them.
|
|
115
|
-
- **The week** (on the report of your first turn of each UTC week only, from
|
|
116
|
-
`skill://legion-controller/references/weekly-audit.md`): the window's two times; the forced
|
|
117
|
-
creates by filer with the no-answer creates apart; the tree sizes in the five buckets with the
|
|
118
|
-
parked descendants; each nudge you sent, by its tree; and the consolidation passes' three counts
|
|
119
|
-
summed over the week, with the link of the report issue's `consolidation.md` artifact, which
|
|
120
|
-
lists each pair and group with what was done about it or what settles it. Name beside each
|
|
121
|
-
number the command that recounts it.
|
|
122
|
-
|
|
123
|
-
A day with nothing finished says so in one sentence. When the lists do not fit, give each list's
|
|
124
|
-
count and name its issues of `--priority 0` and `--priority 1`, in board rank order.
|
|
32
|
+
One `dispatch message --issue <report KEY> --body-file -` of at most 2,000 characters, written as `skill://dispatch-writing-specs`'s "Rules for the text" say: every issue by its `dispatch://` link and what it does for the reader, every pull request by its URL. A day with nothing finished says so in one sentence; when the lists do not fit, give each list's count and name its priority 0 and 1 issues in board rank order.
|
|
33
|
+
|
|
34
|
+
- **Finished.** `dispatch issues --project <PROJECT> --status done --updated-since <the previous report's time, or 24 hours ago> --all`, keeping the issues `read_state` records whose `issue.closed` is after the previous report, each with the pull request under its `External links:`.
|
|
35
|
+
- **Closed without a change.** Those with no pull request, each with the reason its closing message gave (the `message.created` just before `issue.closed`).
|
|
36
|
+
- **Running.** Each root in `admission.trees` with its phase, and under it each of its issues in `admission.active` with its own; then `admission.waiting`; then each root the every-turn check found waiting on a claim, with its holder.
|
|
37
|
+
- **Waiting on Dispatch links.** Each issue in `admission.blocked` with what it waits on; say of each whose `waitingLine.kind` is `waiting_on_issue` that it holds no slot while it waits, nothing of its work stopped, and it takes one again by itself.
|
|
38
|
+
- **What nothing starts.** `admission.held` grouped by `reason`, each group's count, issues and `heldBy`, and what ends it (`skill://legion-controller/references/admission.md`); an `unclassified` issue with its `phase` and `status`.
|
|
39
|
+
- **Phase workers nothing will prompt.** The most recent tick's `silent` list, with each role and how long it has been quiet, or how long its background work has stood (`backgroundSince`). The list comes on the tick alone.
|
|
40
|
+
- **Waiting on a person.** Each tree whose next step waits on a person's answer (a park, deferral, finding or any other ask), with that ask's `dispatch://` reference, while the ask is open.
|
|
41
|
+
- **Asks resolved with no answer.** For each root in `admission.active` or `admission.waiting`, the newest `Asked whether to park:` and `Asked whether to defer:` comment of each key (step 1 of `skill://legion-controller/references/park-asks.md`, once with each prefix) whose ask was resolved with no answer, unless its wait has ended.
|
|
42
|
+
- **Free slots**, counted in issues, as the skill's "Free slots" says.
|
|
43
|
+
- **The priorities.** Each plan line the reconciliation before this report moved for the deployment's priorities, and this project's count of work in flight under no priority, both from step 2 of `skill://legion-controller/references/backlog-stewardship.md#reconcile-the-weekly-plan`.
|
|
44
|
+
- **Open capabilities.** Each `capabilities` row with `status: open`: its name, `detail`, a deployment row's `configLine`, and who acts on it. Nothing when none is open.
|
|
45
|
+
- **Stalled work.** Each `provider-errors` run with its model, and each root an `architect-stalled` or `tree-stalled` wake left for the report (`skill://legion-controller/references/wakes.md`).
|
|
46
|
+
- **The week** (first report of each UTC week only): the numbers of `skill://legion-controller/references/weekly-audit.md`, each beside the command that recounts it.
|