From 45c0cc41f4047a0429b47c6ef85d183abe69a134 Mon Sep 17 00:00:00 2001 From: "Xin.Zh" Date: Fri, 4 Dec 2026 16:25:55 +0800 Subject: [PATCH] docs(pc-mate): explain who may start work and what an empty list means The allowed list is read in two places with different effects: a channel drops what comes from outside it, and the authority gate turns the people on it into explicit requests. An empty list therefore takes every message in and leaves the list of explicit requesters empty, so every request is inferred, and an inferred request is accepted in triage.mode auto alone. In response mode the message is read, assessed and dropped without an answer, which is why a reply mode that serves a group needs the people it serves on the list. The maintainers list answers a different question and is described next to it. --- pc-mate/README.md | 20 ++++++++++++++++++++ pc-mate/settings.example.yaml | 13 +++++++++++++ 2 files changed, 33 insertions(+) diff --git a/pc-mate/README.md b/pc-mate/README.md index 8d99641d79..9e27365a01 100644 --- a/pc-mate/README.md +++ b/pc-mate/README.md @@ -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 @@ -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 ` removes one after saving whatever only it holds. The local branch survives unless `--delete-branch` is given. diff --git a/pc-mate/settings.example.yaml b/pc-mate/settings.example.yaml index c70b928d24..e68d4a9b42 100644 --- a/pc-mate/settings.example.yaml +++ b/pc-mate/settings.example.yaml @@ -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 @@ -92,7 +96,16 @@ feishu: appId: "" botName: "" # bot display name; used only when the event source drops `mentions`, # and only for an exact `@` 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