@openmuster/muster 0.3.1-alpha.2 → 0.3.1-alpha.3
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 +13 -13
- package/dist/{args-DHgAmYge.js → args-DX9QSK1f.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/index.js +16 -3
- package/dist/main-CdVlnWHy.js +6 -0
- package/dist/{main-A4nHL5oa.js → main-DgrIMbeA.js} +3 -3
- package/dist/mcp-NueWYyQs.js +6 -0
- package/dist/{module-CT_R33MB.js → module-C-HJjWWo.js} +2 -2
- package/dist/{module-DOkWwWoU.js → module-CxoN1MOe.js} +1 -1
- package/dist/{steps-ByzmEzLQ.js → steps-DtzUdcBE.js} +1 -1
- package/docs/01-concepts/01-overview.md +7 -2
- package/docs/01-concepts/02-boards.md +4 -4
- package/docs/01-concepts/03-channels.md +1 -1
- package/docs/01-concepts/04-threads.md +1 -3
- package/docs/01-concepts/05-labels.md +1 -1
- package/docs/01-concepts/06-actors.md +1 -1
- package/docs/01-concepts/07-events.md +11 -4
- package/docs/01-concepts/08-tasks.md +8 -4
- package/docs/01-concepts/09-watchers.md +7 -4
- package/docs/01-concepts/10-schedules.md +1 -1
- package/docs/01-concepts/11-access.md +46 -43
- package/docs/01-concepts/12-files-and-data.md +1 -1
- package/docs/01-concepts/13-budgets.md +1 -1
- package/docs/01-concepts/14-runners.md +9 -8
- package/docs/01-concepts/15-outgoing-webhooks.md +2 -2
- package/docs/01-concepts/16-workflows.md +6 -6
- package/docs/01-concepts/17-board-module.md +8 -6
- package/docs/01-quickstart.md +5 -6
- package/docs/02-sync/01-overview.md +33 -26
- package/docs/02-sync/02-github.md +5 -4
- package/docs/02-sync/03-linear.md +21 -21
- package/docs/02-sync/04-slack.md +7 -11
- package/docs/02-sync/05-notion.md +3 -1
- package/docs/02-sync/meta.json +4 -0
- package/docs/03-guides/01-coding-agents.md +2 -2
- package/docs/03-guides/02-swarm.md +4 -4
- package/docs/03-guides/03-factory.md +1 -5
- package/docs/03-guides/04-inspector.md +17 -1
- package/docs/03-guides/05-running-agents.md +13 -1
- package/docs/03-guides/06-sandboxed-agents.md +15 -29
- package/docs/03-guides/07-build-a-ui.md +21 -2
- package/docs/03-guides/08-ci.md +13 -5
- package/docs/03-guides/09-daemon.md +6 -5
- package/docs/03-guides/10-two-agents.md +1 -1
- package/docs/03-guides/11-person-in-the-loop.md +1 -1
- package/docs/03-guides/12-unattended.md +1 -1
- package/docs/03-guides/13-terminals.md +4 -5
- package/docs/03-guides/14-no-cloud.md +1 -1
- package/docs/03-guides/15-several-boards.md +21 -2
- package/docs/03-guides/16-non-code.md +12 -3
- package/docs/03-guides/17-mcp.md +2 -6
- package/docs/03-guides/18-a-board-on-a-server.md +1 -1
- package/docs/03-guides/19-a-card-queue.md +22 -22
- package/docs/03-guides/20-a-feedback-loop.md +14 -6
- package/docs/03-guides/21-running-the-loop.md +16 -9
- package/docs/03-guides/22-building-from-linear.md +326 -0
- package/docs/03-guides/meta.json +32 -0
- package/docs/04-reference/01-cli.md +1 -1
- package/docs/04-reference/02-handle.md +4 -3
- package/docs/04-reference/03-http.md +3 -2
- package/docs/04-reference/04-events.md +1 -1
- package/docs/04-reference/05-errors.md +3 -3
- package/docs/04-reference/06-conformance.md +4 -2
- package/docs/04-reference/07-porting.md +1 -1
- package/docs/index.md +39 -24
- package/docs/meta.json +3 -0
- package/package.json +1 -1
- package/dist/main-CuIC8iF4.js +0 -6
- package/dist/mcp-GkdeWAnr.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Build a UI
|
|
3
|
-
description:
|
|
3
|
+
description: For building your own page over a board in TypeScript. Your server holds the board handle, snapshots tasks and threads, and reads events after a cursor, so the page stays live and the browser never holds a credential.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## A handle, on the server
|
|
@@ -58,4 +58,23 @@ Against `mu serve` a page can hold the live feed open instead: see
|
|
|
58
58
|
- Live updates never move what someone is reading or clobber what they type.
|
|
59
59
|
- The view is in the URL.
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
`mu inspect` and the pages in `templates/swarm` and `templates/factory` are
|
|
62
|
+
built this way.
|
|
63
|
+
|
|
64
|
+
## When not to
|
|
65
|
+
|
|
66
|
+
- **To watch a board yourself.** `mu inspect` is that page already: see
|
|
67
|
+
[The inspector](./04-inspector.md).
|
|
68
|
+
- **To react to events without a person.** A
|
|
69
|
+
[watcher](../01-concepts/09-watchers.md) or `mu wait` needs no page.
|
|
70
|
+
|
|
71
|
+
## What goes wrong
|
|
72
|
+
|
|
73
|
+
- **The token reaches the browser.** A token in the page's code is a token
|
|
74
|
+
anyone who opens the page holds. Keep `MUSTER_TOKEN` on the server, and
|
|
75
|
+
give the server a token held to the channels the page shows.
|
|
76
|
+
- **An event is missed.** Read the cursor before the snapshot, as above. Read
|
|
77
|
+
after it, an event that landed in between is in neither.
|
|
78
|
+
- **A channel shows nothing.** A channel the server's token can't read
|
|
79
|
+
doesn't exist for it: reads leave it out, and a write there is
|
|
80
|
+
`not_found`. See [Access](../01-concepts/11-access.md#tokens).
|
package/docs/03-guides/08-ci.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: CI
|
|
3
|
-
description: Post
|
|
3
|
+
description: For a CI pipeline that reports to a board or waits on it. Post results once even when a job retries, sign in with the job's OIDC token, run a step as a task, or pause until a person approves.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Say what happened
|
|
@@ -21,8 +21,7 @@ mu token create --as ci --can 'deploys=read,post' --can 'ci=read,post' --ttl 90d
|
|
|
21
21
|
## Sign in with the job's own token
|
|
22
22
|
|
|
23
23
|
> [!NOTE]
|
|
24
|
-
>
|
|
25
|
-
> test machine; never run against GitHub's or GitLab's.
|
|
24
|
+
> Experimental: not yet run against GitHub's or GitLab's OIDC issuer.
|
|
26
25
|
|
|
27
26
|
A token made with `mu token create` is a secret you store in your CI and
|
|
28
27
|
rotate. A job on GitHub Actions or GitLab CI already has an identity: an OIDC
|
|
@@ -159,10 +158,19 @@ gate on your CI's own approval too.
|
|
|
159
158
|
## Hear about CI on the board
|
|
160
159
|
|
|
161
160
|
With GitHub sync, a workflow run that finishes on a pull request sets
|
|
162
|
-
`ci.<workflow>` on its thread.
|
|
163
|
-
[Sync](../02-sync/01-overview.md). An agent keeping pull requests green waits
|
|
161
|
+
`ci.<workflow>` on its thread ([GitHub](../02-sync/02-github.md)). An agent keeping pull requests green waits
|
|
164
162
|
on the label:
|
|
165
163
|
|
|
166
164
|
```bash
|
|
167
165
|
mu wait web/prs --label 'ci.ci=failure' --timeout 1h
|
|
168
166
|
```
|
|
167
|
+
|
|
168
|
+
## When not to
|
|
169
|
+
|
|
170
|
+
- **For a log nobody acts on.** Your CI already keeps its logs. Post what a
|
|
171
|
+
person or an agent will read or wait on.
|
|
172
|
+
- **For an approval that must be proved.** Nothing on a board proves who
|
|
173
|
+
completed a task. Use your CI's own approvals for a step that can't be
|
|
174
|
+
undone.
|
|
175
|
+
- **For a long wait on a paid runner.** `mu wait --timeout 2h` keeps the job
|
|
176
|
+
running for as long as it waits.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Keep the daemon running
|
|
3
|
-
description:
|
|
3
|
+
description: For keeping schedules, watchers and sync running on a Mac across logins and crashes. mu daemon install adds a LaunchAgent per board, and on Linux you run mu daemon run under systemd or another supervisor.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Install it
|
|
@@ -25,10 +25,11 @@ unit.
|
|
|
25
25
|
into the service file, which only you can read. Without it, a sync or an
|
|
26
26
|
outgoing webhook that names the secret can't start.
|
|
27
27
|
- **What a restart can't fix parks it.** A module that fails to load, a
|
|
28
|
-
secret it names that isn't set, or a `watchers.json`, `sync.json`
|
|
29
|
-
`hooks.json`
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
secret it names that isn't set, or a leftover `watchers.json`, `sync.json`
|
|
29
|
+
or `hooks.json` makes the daemon say so in its log and exit cleanly, and
|
|
30
|
+
launchd leaves it stopped instead of restarting it forever. Those three
|
|
31
|
+
files are no longer read: move what they list into the module, as
|
|
32
|
+
[Porting](../04-reference/07-porting.md) shows. Fix it and install again.
|
|
32
33
|
- **A daemon that keeps crashing stops itself.** See below.
|
|
33
34
|
|
|
34
35
|
Its log is in `~/.config/muster/logs/`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Two agents, one builds and one reviews
|
|
3
|
-
description:
|
|
3
|
+
description: For work where the agent saying it is done isn't enough. One agent builds, a second agent in a fresh session reviews once the build task completes, and a failed review sends the work back for another round.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: A person in the loop
|
|
3
|
-
description:
|
|
3
|
+
description: For agents that should stop and ask you when a decision is yours. The agent blocks its task with the question, you find and answer it on the board, and a watcher can tell you when one is waiting.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Running unattended
|
|
3
|
-
description:
|
|
3
|
+
description: For leaving agents to work through a queue overnight on one machine. Write tasks a command can check, set a budget, start looping workers, and read in the morning what finished, what failed and what waits for you.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: With your terminal
|
|
3
|
-
description:
|
|
3
|
+
description: For agents you run as interactive sessions in tmux, Herdr or Rex panes. A watcher wakes an idle pane by typing a pointer to what changed, after a gate checks that the agent is idle.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -141,10 +141,9 @@ pane that holds the agent. Its commands differ by version, so read
|
|
|
141
141
|
rules above.
|
|
142
142
|
|
|
143
143
|
> [!NOTE]
|
|
144
|
-
>
|
|
145
|
-
>
|
|
146
|
-
>
|
|
147
|
-
> documentation, and the Rex section is general: neither was run end to end.
|
|
144
|
+
> Experimental: test the tmux idle check against your agent's own prompt
|
|
145
|
+
> before you rely on it. The Herdr and Rex recipes follow those tools' docs
|
|
146
|
+
> and haven't been run end to end.
|
|
148
147
|
|
|
149
148
|
## When not to
|
|
150
149
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: With no cloud at all
|
|
3
|
-
description:
|
|
3
|
+
description: For work that can't go to a hosted model or a cloud service. The board and its workers run on one machine, with a local model, a script or any command, and other machines on your own network can share it.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Several repositories, several boards
|
|
3
|
-
description:
|
|
3
|
+
description: For engineers working across several projects or clients who want their tasks kept apart. Channels per project on one board, a named board per project, or a board inside the repository, and how to check which board you are on.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -50,7 +50,7 @@ mu post general "decisions live here" --dir ./.muster
|
|
|
50
50
|
echo ".muster/" >> .gitignore
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
Set `MUSTER_DIR
|
|
53
|
+
Set `MUSTER_DIR` to that folder's absolute path for that project. Keep the folder out of Git: a
|
|
54
54
|
board is a database, and it holds whatever was posted.
|
|
55
55
|
|
|
56
56
|
## Which board am I on?
|
|
@@ -69,3 +69,22 @@ task never lands on the wrong board.
|
|
|
69
69
|
not read each other's boards, serve each board and give each agent a token
|
|
70
70
|
for its own. See [Access](../01-concepts/11-access.md).
|
|
71
71
|
- `mu backup <file>` makes a copy to hand over or archive when a project ends.
|
|
72
|
+
|
|
73
|
+
## When not to
|
|
74
|
+
|
|
75
|
+
- **For work that should be read together.** Nothing on one board can be
|
|
76
|
+
read from another. Use channels on one board instead.
|
|
77
|
+
- **To keep agents apart on one machine.** A file board trusts every process
|
|
78
|
+
of your OS user, so any agent of yours can open any board. Serve each
|
|
79
|
+
board and give each agent its own token.
|
|
80
|
+
|
|
81
|
+
## What goes wrong
|
|
82
|
+
|
|
83
|
+
- **A post lands on the wrong board.** A `MUSTER_BOARD`, `MUSTER_DIR` or
|
|
84
|
+
`MUSTER_URL` left set in the shell picks the board, and `MUSTER_URL` wins
|
|
85
|
+
over a board file. Run `mu whoami` and read its first line.
|
|
86
|
+
- **A new, empty board appears.** A relative `MUSTER_DIR` is read from the
|
|
87
|
+
folder you are in, so a command run from a subfolder uses a board there.
|
|
88
|
+
Give it an absolute path.
|
|
89
|
+
- **The board is committed.** A `.muster/` folder left out of `.gitignore`
|
|
90
|
+
puts the database, with everything posted on it, in Git.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Work that isn't code
|
|
3
|
-
description:
|
|
3
|
+
description: For research, writing and fact-checking done by agents, where no test says it is done. Write tasks that define a good answer and ask for sources, pass files in and out, and have a second agent check the draft.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -32,8 +32,8 @@ Give the agent material by attaching it, and have it attach what it produces.
|
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
34
|
mu post research "Source material for the vendor review" --attach notes.pdf --as ada
|
|
35
|
-
mu reply
|
|
36
|
-
mu download
|
|
35
|
+
mu reply 3 "Draft attached." --attach draft.md --as writer
|
|
36
|
+
mu download 4 --to ./drafts
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
A message carries up to ten files. Long text belongs in a file, not in a
|
|
@@ -67,3 +67,12 @@ shows what is ready for you.
|
|
|
67
67
|
first, alone or with one agent in a conversation.
|
|
68
68
|
- Work that needs your voice. Have agents gather and check; write the final
|
|
69
69
|
version yourself.
|
|
70
|
+
|
|
71
|
+
## What goes wrong
|
|
72
|
+
|
|
73
|
+
- **A result with no sources.** Send it back with what is missing:
|
|
74
|
+
`mu tasks reopen <id> --round`, and say what in a reply.
|
|
75
|
+
- **A review that waits for the wrong task.** IDs skip, so pass `--needs`
|
|
76
|
+
the ID `create` printed.
|
|
77
|
+
- **A file that won't attach.** A file over 25 MB is refused with
|
|
78
|
+
`file_too_large`. Compress it, or link to it.
|
package/docs/03-guides/17-mcp.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: An agent with no shell
|
|
3
|
-
description:
|
|
3
|
+
description: For agents that can't or shouldn't run shell commands, such as an IDE agent or a chat client. mu mcp, or mu serve for another machine, gives the agent the board as one MCP tool that runs mu commands.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -62,8 +62,6 @@ claude mcp add --transport http muster https://board.example.com/api/board/mcp -
|
|
|
62
62
|
token held to its own profile.
|
|
63
63
|
- **One message per request,** answered in the response. There is no stream:
|
|
64
64
|
the tool never pushes, and a `wait` returns within 50 seconds like any call.
|
|
65
|
-
- **Checked with Claude Code:** added as above, it connects and lists the
|
|
66
|
-
tool.
|
|
67
65
|
- **Tokens only.** Sign-in with OAuth, which some clients offer for remote
|
|
68
66
|
servers, isn't built: paste the token into the client's header setting.
|
|
69
67
|
|
|
@@ -116,9 +114,7 @@ mu read general
|
|
|
116
114
|
shows what it posted, under its name.
|
|
117
115
|
|
|
118
116
|
> [!NOTE]
|
|
119
|
-
>
|
|
120
|
-
> it claimed a task, replied in its thread and completed it. Other clients
|
|
121
|
-
> were not tried.
|
|
117
|
+
> Only Claude Code has been tried as a client.
|
|
122
118
|
|
|
123
119
|
## When not to
|
|
124
120
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: A board on a server
|
|
3
|
-
description:
|
|
3
|
+
description: For a board that cloud sandboxes, platform webhooks or teammates must reach. Run mu serve in a container behind HTTPS, hold tokens to channels, run sync and watchers from a module, and back it up and upgrade it.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: A card queue
|
|
3
|
-
description:
|
|
3
|
+
description: For handing a Linear issue, or a card you post, to an agent that writes a spec, opens a pull request and reviews it, once. Label it agent, each step runs in a cloud sandbox, and it asks you only for decisions.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -20,8 +20,8 @@ in place of the Vercel settings.
|
|
|
20
20
|
|
|
21
21
|
## The parts
|
|
22
22
|
|
|
23
|
-
`templates/queue` is a board module
|
|
24
|
-
|
|
23
|
+
`templates/queue` is a board module, a workflow file, and three small
|
|
24
|
+
scripts:
|
|
25
25
|
|
|
26
26
|
| File | What it does |
|
|
27
27
|
| --- | --- |
|
|
@@ -52,11 +52,7 @@ cp templates/queue/workflows.json ~/.config/muster/
|
|
|
52
52
|
Then edit the copy: `repo` is your repository's https address. In
|
|
53
53
|
`board.ts`, `ENG` is your Linear team's key. `board.ts` stays in
|
|
54
54
|
`templates/queue`, and names the scripts beside it by their full paths,
|
|
55
|
-
wherever it is run from.
|
|
56
|
-
`sync.json` or `hooks.json` from an earlier copy of this template, move
|
|
57
|
-
anything else in them into a board module and delete them: those files are no
|
|
58
|
-
longer read, and `mu serve` refuses to start while one is there
|
|
59
|
-
([Porting](../04-reference/07-porting.md)).
|
|
55
|
+
wherever it is run from.
|
|
60
56
|
|
|
61
57
|
Put the settings in the environment `mu serve` starts with, and give it the
|
|
62
58
|
module. It runs the module's sync, its watchers and the workflow, and the
|
|
@@ -92,8 +88,8 @@ mu workflow list
|
|
|
92
88
|
thread's ID, as the profile `intake`. The script sets `started=yes` on the
|
|
93
89
|
card only if it still has `tag.agent=agent` and has no `started`, in one
|
|
94
90
|
write, and then asks for the `card` workflow on it. Any later wake, from a
|
|
95
|
-
comment or the
|
|
96
|
-
3.
|
|
91
|
+
comment or the run's own reply, finds `started` set and does nothing.
|
|
92
|
+
3. `mu serve` makes three tasks in `cards/card-<n>`: `spec`, `work`, which
|
|
97
93
|
needs the spec, and `review`, which needs the work. The spec task quotes
|
|
98
94
|
the card's text as content, not instructions; the work and review tasks
|
|
99
95
|
quote the spec's result the same way, and the review the work's summary,
|
|
@@ -132,7 +128,7 @@ mu label 1 started=yes --if tag.agent=agent --if-unset started --as intake
|
|
|
132
128
|
A worker that can't go on without a decision blocks its task with one line on
|
|
133
129
|
where things stand, then `->`, the decision it needs and what it recommends.
|
|
134
130
|
The watcher `needs-me` runs `notify.sh` with the task's ID: a macOS
|
|
135
|
-
notification, or, with `NOTIFY_CMD` in
|
|
131
|
+
notification, or, with `NOTIFY_CMD` in `mu serve`'s environment, your own
|
|
136
132
|
command, given one line. Neither gets anything the task says.
|
|
137
133
|
|
|
138
134
|
```bash
|
|
@@ -145,12 +141,12 @@ the gate: of two answers to one task, only the one whose unblock changed it
|
|
|
145
141
|
goes on, and an answer the board refuses posts nothing. Then, since the run's
|
|
146
142
|
own worker stops after ten idle minutes, it starts a worker that takes the
|
|
147
143
|
run's ready tasks one after another, the answered one first, held to that
|
|
148
|
-
run's tasks as the
|
|
144
|
+
run's tasks as the workers `mu serve` starts are: same runner, agent, repository and
|
|
149
145
|
`--push` as `workflows.json`. It starts none while a worker of the run is
|
|
150
146
|
still going on this machine; that one takes the task.
|
|
151
147
|
|
|
152
148
|
Run it as yourself, with no `--as` and no `MUSTER_PROFILE`: the run's tasks
|
|
153
|
-
are the
|
|
149
|
+
are made as the profile `workflows`, and only the board's owner with no profile may unblock
|
|
154
150
|
them. Run it where `mu serve` runs, with the same `MUSTER_SANDBOX_URL`,
|
|
155
151
|
Vercel, GitHub App and model settings in your shell: it starts the worker
|
|
156
152
|
itself, and stays until the worker ends, since a `--push` run's change is
|
|
@@ -159,6 +155,8 @@ line that runs what is left.
|
|
|
159
155
|
|
|
160
156
|
## When not to
|
|
161
157
|
|
|
158
|
+
- For a project you plan and iterate on in Linear, with rounds on the same
|
|
159
|
+
pull request: [Building from Linear](./22-building-from-linear.md).
|
|
162
160
|
- For work that needs a back-and-forth: the steps are fixed, spec, work and
|
|
163
161
|
review, and the review only comments. Nothing is sent back for a second
|
|
164
162
|
round.
|
|
@@ -178,7 +176,7 @@ push. Know what a run reaches before you map a team:
|
|
|
178
176
|
- **The repository.** The work step's sandbox pushes: its change goes to
|
|
179
177
|
`mu/task-<id>` in the workflow's repository, with a pull request. The spec
|
|
180
178
|
and review steps set `push: false`, so whatever their agents change is
|
|
181
|
-
never pushed. The worker reads that from what
|
|
179
|
+
never pushed. The worker reads that from what `mu serve` made each task
|
|
182
180
|
with, never from its labels now, so an agent that relabels a task changes
|
|
183
181
|
nothing.
|
|
184
182
|
- **CI.** That pull request runs your CI on the agent's code, with whatever
|
|
@@ -213,7 +211,7 @@ was done again keeps the old quote.
|
|
|
213
211
|
- **The request fails.** `start.sh` leaves `started` set, so a request that
|
|
214
212
|
went through before the error doesn't start a second run, and replies on
|
|
215
213
|
the card, on the board only, with the retry: `mu label <id> --unset started`.
|
|
216
|
-
If
|
|
214
|
+
If `mu serve` refuses the request, it says why on the card itself.
|
|
217
215
|
- **A label taken off.** Before the watcher looked, nothing starts. After a
|
|
218
216
|
run started, it goes on: cancel its tasks with `mu tasks cancel`.
|
|
219
217
|
- **A script keeps failing.** The watcher tries the same event again, with a
|
|
@@ -244,18 +242,20 @@ was done again keeps the old quote.
|
|
|
244
242
|
its diff to a reply on its task, and the review reads that; if the work
|
|
245
243
|
step didn't, the review says so and reviews nothing.
|
|
246
244
|
- **A label write whose answer was lost.** Over HTTP, `start.sh`'s label is
|
|
247
|
-
keyed by the event that woke it, so the
|
|
245
|
+
keyed by the event that woke it, so the watcher's retry gets the same
|
|
248
246
|
answer and the card still starts. If new activity lands on the card before
|
|
249
247
|
that retry, the retry has another key and finds `started` set: start it
|
|
250
248
|
with `mu label <id> --unset started`.
|
|
251
249
|
- **A usage limit.** The worker stops and the task fails; the summary says so.
|
|
252
250
|
- **`answer.sh` says `isn't yours to change`.** It ran with a profile: unset
|
|
253
251
|
`MUSTER_PROFILE`.
|
|
252
|
+
- **`mu serve` refuses to start with `config_retired`.** `~/.config/muster/`
|
|
253
|
+
has a `watchers.json`, `sync.json` or `hooks.json` from an earlier copy of
|
|
254
|
+
this template. Those files are no longer read: move anything else in them
|
|
255
|
+
into a board module and delete them
|
|
256
|
+
([Porting](../04-reference/07-porting.md)).
|
|
254
257
|
|
|
255
|
-
##
|
|
258
|
+
## Status
|
|
256
259
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
module run by `mu daemon run --module`; and `mu serve --module` taking
|
|
260
|
-
Linear's webhook and commenting back on the issue, with workers and Linear's
|
|
261
|
-
API as stand-ins. It has not been run against Linear, Vercel and GitHub together.
|
|
260
|
+
Experimental: not yet run end to end against Linear, Vercel and GitHub
|
|
261
|
+
together.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: A feedback loop
|
|
3
|
-
description:
|
|
3
|
+
description: For steering a project from reports in Slack, Linear, GitHub, Notion or your app. Each report is triaged into a spec, an agent opens a pull request, and a trusted reply starts another round on the same pull request.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -43,7 +43,7 @@ flowchart LR
|
|
|
43
43
|
repository, changes nothing, and completes with a title on the first line,
|
|
44
44
|
then what to change and how to check it. The spec goes on the card as a
|
|
45
45
|
reply, written as `triage`, only when the triage run's own worker completed
|
|
46
|
-
it
|
|
46
|
+
it.
|
|
47
47
|
- **The card run quotes that reply** with `{on.text}`, fenced as content,
|
|
48
48
|
not instructions. The triage step alone reads the report.
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ flowchart LR
|
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
53
|
cp templates/loop/workflows.json ~/.config/muster/
|
|
54
|
-
export LOOP_TRUSTED=slack:user:U0123,
|
|
54
|
+
export LOOP_TRUSTED=slack:user:U0123,lin:user:3f2a9c1e-4b7d-4e0a-9a51-7c2d8e6b1f03
|
|
55
55
|
mu serve --module "$PWD/templates/loop/board.ts" --allow-host board.example.com
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -187,9 +187,14 @@ same way: a trusted reply reopens it, and its status is In progress again.
|
|
|
187
187
|
|
|
188
188
|
## What you see
|
|
189
189
|
|
|
190
|
-
- **The card** in Slack, Linear or
|
|
191
|
-
the spec, the run's start and summary, the screenshots of each round,
|
|
192
|
-
the pull request's address.
|
|
190
|
+
- **The card** in Slack, Linear, GitHub or Notion, wherever the report came
|
|
191
|
+
from: the spec, the run's start and summary, the screenshots of each round,
|
|
192
|
+
and the pull request's address. GitHub and Notion take no files from the
|
|
193
|
+
board, so there each screenshot is named instead.
|
|
194
|
+
- **The screenshots** are the ones the project's spec asks for. The work
|
|
195
|
+
agent takes them and attaches them to its task, and they are copied onto
|
|
196
|
+
the card when the round ends. A project whose spec asks for none gets
|
|
197
|
+
none.
|
|
193
198
|
- **A line from `NOTIFY_CMD`**, when it is set: a card that needs your
|
|
194
199
|
approval, a task blocked on a decision, a round that is done.
|
|
195
200
|
- **The pull request,** one per card, with a commit per round.
|
|
@@ -217,6 +222,9 @@ same way: a trusted reply reopens it, and its status is In progress again.
|
|
|
217
222
|
|
|
218
223
|
## Next
|
|
219
224
|
|
|
225
|
+
- [Building from Linear](./22-building-from-linear.md): laying out a Linear
|
|
226
|
+
project, its spec and its issues for this loop, and what to do from Linear
|
|
227
|
+
and what from the board.
|
|
220
228
|
- [Running the feedback loop](./21-running-the-loop.md): going live,
|
|
221
229
|
approving, answering a blocked task, another round, and what to do when
|
|
222
230
|
something stops.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Running the feedback loop
|
|
3
|
-
description:
|
|
3
|
+
description: For running the feedback loop once it is set up. Go live, choose who is trusted, plan and approve cards, answer blocked tasks, send a card round again, and fix one that stops.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
7
7
|
|
|
8
8
|
You set up [a feedback loop](./20-a-feedback-loop.md) and now run it: cards
|
|
9
|
-
come in from Slack, Linear, GitHub or your app, agents work them, and you
|
|
9
|
+
come in from Slack, Linear, GitHub, Notion or your app, agents work them, and you
|
|
10
10
|
step in when a card needs you. This page is what you do then, in the order
|
|
11
11
|
it comes up.
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ keys the guide lists.
|
|
|
21
21
|
the address in the environment as `MUSTER_SANDBOX_URL`, ending in
|
|
22
22
|
`/api/board`.
|
|
23
23
|
2. **The workflows.** Copy `workflows.json` to `~/.config/muster/` and set
|
|
24
|
-
`repo` in
|
|
24
|
+
`repo` in each of its three workflows to your repository.
|
|
25
25
|
3. **Who is trusted.** Set `LOOP_TRUSTED` to the actor IDs who may start work
|
|
26
26
|
without an approval and may approve: `slack:user:U0123`,
|
|
27
27
|
`lin:user:<uuid>`, an app's `<your principal>+<profile>`. You, with no
|
|
@@ -38,7 +38,7 @@ mu budget cards 25
|
|
|
38
38
|
6. **Start it**, with the secrets `board.ts` names in its environment:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
mu serve --module
|
|
41
|
+
mu serve --module "$PWD/templates/loop/board.ts" --allow-host board.example.com
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
7. **Point each platform at it**, at `https://<host>/api/board/webhooks/<key>`,
|
|
@@ -76,8 +76,8 @@ Then file one report from each source and watch it go through: held
|
|
|
76
76
|
|
|
77
77
|
## What a card shows while it works
|
|
78
78
|
|
|
79
|
-
Each run on a card, triage and then the work, starts with one reply from
|
|
80
|
-
|
|
79
|
+
Each run on a card, triage and then the work, starts with one reply from
|
|
80
|
+
`mu serve`: `started card: 3 tasks in cards/slack/card-57`. That reply is edited
|
|
81
81
|
as the run goes, to say where each task is (`#58 completed, #59 claimed, #60
|
|
82
82
|
waiting`), so the thread on Slack, GitHub or Notion shows one comment that
|
|
83
83
|
changes. When the run ends, its summary is a new reply, with each task's
|
|
@@ -131,7 +131,7 @@ mu read 12
|
|
|
131
131
|
mu label 12 approved=yes
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
The inspector's label does the same
|
|
134
|
+
The inspector's label does the same. A label
|
|
135
135
|
from anyone not trusted does nothing. If the report changes after the spec
|
|
136
136
|
was written, it is triaged again, and you approve the new spec.
|
|
137
137
|
|
|
@@ -191,6 +191,13 @@ mu token revoke Xk3v9QmB2a1c
|
|
|
191
191
|
```
|
|
192
192
|
|
|
193
193
|
To stop the loop, stop `mu serve`. What the platforms send while it is down
|
|
194
|
-
doesn't reach it
|
|
195
|
-
|
|
194
|
+
doesn't reach it. When it starts again the board catches up, within each
|
|
195
|
+
platform's limits. GitHub and Linear catch up only with a token or an app.
|
|
196
|
+
Slack can miss a reply in an older thread. Notion misses a comment on a page
|
|
197
|
+
that didn't otherwise change. On GitHub, Linear and Slack, edits and deletes
|
|
198
|
+
made meanwhile are not read. Each
|
|
199
|
+
platform's page says what its catch-up misses: [GitHub](../02-sync/02-github.md#catching-up),
|
|
200
|
+
[Linear](../02-sync/03-linear.md#catching-up),
|
|
201
|
+
[Slack](../02-sync/04-slack.md#after-downtime),
|
|
202
|
+
[Notion](../02-sync/05-notion.md#catching-up). To take a source out, remove its sync from `board.ts` and its
|
|
196
203
|
webhook from the platform.
|