Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pc-mate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ See `settings.example.yaml`. The important switches are:
- `triage.autoLabel`: kept so an existing settings file still loads. The supervisor no longer
queues a label, so this switch no longer has an effect.
- `github.writeMode`: `off` for M1; `approved` for M2.
- `github.allowed`: the GitHub logins whose reports are taken in. An empty list takes every
issue in; a non-empty one drops everything that comes from outside it.
- `feishu.allowed`: the Feishu `open_id` values whose messages are taken in, and whose
request is an explicit one.
- `github.maintainers`: GitHub logins allowed to resolve a case.
- `feishu.maintainers`: Feishu `open_id` values allowed to resolve or approve.
- `feishu.botName`: the bot display name, for example `ClawBot`. Some event
Expand Down Expand Up @@ -473,6 +477,22 @@ See `settings.example.yaml`. The important switches are:
`supervisor.batchWindowSeconds` (45 by default) is the quiet period before
one thread's queued messages are assessed together.

### Who may start work

`allowed` and `maintainers` answer different questions. `allowed` says whose
message may start work: a message from someone outside the list is dropped
before it is read, and a message from someone inside it carries an explicit
request. `maintainers` says who may resolve a case or approve a public write,
so a maintainer may approve a write they did not ask for.

The list is empty by default, and an empty list is not the same as an open
door. An empty list takes every message in, but it also leaves the list of
people with an explicit request empty, so every request is only inferred. An
inferred request is accepted in `triage.mode: auto` alone: in `response` mode
it is read, assessed, and then dropped without an answer. A reply mode that
serves a group therefore needs the people it serves on `allowed`, or it answers
nobody.

`pc-mate worktree list` shows every case worktree, and
`pc-mate worktree remove <case-id>` removes one after saving whatever only it
holds. The local branch survives unless `--delete-branch` is given.
Expand Down
13 changes: 13 additions & 0 deletions pc-mate/settings.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ github:
enabled: true
repository: owner/name
pollSeconds: 60
# Whose reports are taken in. An empty list takes every issue in; a non-empty
# one drops everything that comes from outside it. Whoever is on the list
# also has an explicit request, and an explicit request is accepted in every
# triage mode. See the note under `feishu.allowed` for the whole rule.
allowed: []
ignoreLabels: [wontfix, duplicate, invalid]
baselineOnFirstRun: true
Expand All @@ -92,7 +96,16 @@ feishu:
appId: ""
botName: "" # bot display name; used only when the event source drops `mentions`,
# and only for an exact `@<botName>` mention
# Whose messages are taken in, and whose request is an explicit one. A
# message from someone outside this list is dropped before it is read. An
# empty list takes every message in, but then every request is only inferred,
# and an inferred request is accepted in `triage.mode: auto` alone: in
# `response` mode it is read and then dropped without an answer. A reply
# mode that serves a group therefore needs the people it serves listed here.
allowed: []
# Who may resolve a case or approve a public write. This is a different
# question from `allowed`: a maintainer may approve a write they did not ask
# for, while their own message stays inferred unless they are also allowed.
maintainers: [] # Feishu open_id values allowed to resolve or approve
# M2 uses this private chat for approval requests. It carries the exact write text and the
# approval token, so it must not be a public community group. Commands in this chat are accepted
Expand Down