Skip to content
Merged
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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ the `/<verb>` slash commands.
|------|---------|------------|
| `intake` | Conceive a task: turn raw input into a formal, headed PyAutoMind prompt (files it; never starts dev) | `bin/pyauto-brain intake` |
| `batch` | Compose one unattended shift: the BatchDecision, planned against the slot's REVIEW-MINUTE budget rather than a task count — proposes, never dispatches; 'batch collect' scores what came back into the review packet and stamps the batch record | `bin/pyauto-brain batch` |
| `community` | The ears — the organism's receptive function: scan/triage user-filed GitHub issues + PRs and review requests across the repos; drafts stay human-gated, dev work routes via start_dev_for_user (never posts) | `bin/pyauto-brain community` |
| `community` | The ears — the organism's receptive function: scan/triage the Discussions hub where users ask (PyAutoMind/policy/community_surface.md) plus user-filed GitHub issues + PRs and review requests across the repos; drafts stay human-gated, dev work routes via start_dev_for_user (never posts) | `bin/pyauto-brain community` |
| `feature` | Reason over PyAutoMind feature tasks: select, size, phase, plan for start_dev | `bin/pyauto-brain feature` |
| `bug` | The immune system: classify a bug/regression/Heart finding, locate the fix, plan the repair | `bin/pyauto-brain bug` |
| `refactor` | The renewal function: plan behaviour-preserving restructuring — RefactorDecision; default-safe under --auto | `bin/pyauto-brain refactor` |
Expand Down
30 changes: 24 additions & 6 deletions agents/conductors/community/AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Community agent

> **Tier: conductor** — a front-door agent you *drive*. The *Ears* — the
> organism's receptive language function: it hears the community (user-filed
> GitHub issues and pull requests across every repo) and drafts what the
> organism says back; the
> organism's receptive language function: it hears the community (the
> Discussions hub where users ask, plus user-filed GitHub issues and pull
> requests across every repo) and drafts what the organism says back; the
> human remains the mouth. Wernicke to the Workspace Agent's Broca: that
> *Voice* speaks to users through examples and tutorials, this agent
> *comprehends and converses* — it reads an outsider's issue, judges whether
Expand All @@ -28,15 +28,20 @@ gates every outward message.

| Mode | Surface | Consumed by |
|------|---------|-------------|
| `scan` *(default)* | every `PyAutoMind/repos.yaml` repo → open issues **and PRs** authored by non-self humans (bots filtered), with **awaiting-response** detection (the conversation's last word is not ours) ranked by waiting time, plus open PRs with **review requested** from a self login (any author) | `/community` step 1; the `/wake_up` community sensory leg |
| `triage <ref>` | one issue or PR → context-sufficiency signals (code block, traceback, versions, expected-vs-actual, data pointer), missing-signal clarifying-question seeds, comment tail, route; a PR ref adds the **change-shape block** (draft, files, +/-, requested reviewers, mergeable state, head→base) | `/community` steps 2–3 |
| `scan` *(default)* | the **Discussions hub**'s open threads (unanswered = no accepted answer and the last word is not ours) + every `PyAutoMind/repos.yaml` repo → open issues **and PRs** authored by non-self humans (bots filtered), with **awaiting-response** detection (the conversation's last word is not ours) ranked by waiting time, plus open PRs with **review requested** from a self login (any author) | `/community` step 1; the board's community sensory leg |
| `triage <ref>` | one discussion, issue or PR → context-sufficiency signals (code block, traceback, versions, expected-vs-actual, data pointer), missing-signal clarifying-question seeds, comment tail, route; a discussion ref routes to **answer in the thread** (a confirmed bug gets an issue with a link back); a PR ref adds the **change-shape block** (draft, files, +/-, requested reviewers, mergeable state, head→base) | `/community` steps 2–3 |

```
pyauto-brain community # scan: who is waiting on us?
pyauto-brain community scan --json
pyauto-brain community triage <issue-or-PR url | owner/repo#N> [--json]
pyauto-brain community triage <discussion/issue/PR url | owner/repo#N> [--json]
```

The hub is `COMMUNITY_HUB` (default `PyAutoLabs/.github` — the org's
Discussions, the one surface users post to, decided in
`PyAutoMind/policy/community_surface.md`). A discussion is named by its URL on
every surface, because `owner/repo#N` reads as an issue.

Repo enumeration comes from `PyAutoMind/repos.yaml` (the body map) under
`PYAUTO_ROOT`; the org is searched wholesale, non-org homes individually.
GitHub access is the `gh` CLI — `COMMUNITY_GH` overrides the binary (hermetic
Expand All @@ -52,6 +57,15 @@ failed search degrades honestly (`degraded:` in the surface), never silently.
and presented to the human before posting. The CLI itself never mutates
GitHub. Autonomy for community work is `human-required` by design; `--auto`
changes nothing here.
- **Users ask on the hub; the development flow stays on issues.** That is
`PyAutoMind/policy/community_surface.md`, and this conductor is its
reader: a question, a help request or an idea is answered in its
Discussions thread; a report with a reproducer is an issue and routes to
`/start_dev_for_user`; a discussion that turns out to be a bug gets an
issue opened with a link back and the thread marked answered with the
issue link. No session can post to, answer or convert a Discussion (the
REST Discussions API is read-only, GraphQL is refused) — the human's click
is always the last step.
- **Conversation state lives on GitHub + Mind, never here.** Labels
(`needs-info`, `pending-release`) and the issue thread itself are the
conversation's memory; in-flight dev state is the `user-facing: true` entry
Expand Down Expand Up @@ -91,6 +105,10 @@ failed search degrades honestly (`degraded:` in the surface), never silently.

## Capability audit — what the modes read

- **Discussions hub** (`gh api repos/<hub>/discussions`, `.../discussions/<n>`,
`.../discussions/<n>/comments`): the REST Discussions surface, read-only —
state, lock, category, `answer_chosen_at`, comment count, last commenter.
Served to remote sessions through the proxy (measured 2026-09-17).
- **GitHub search** (`gh api search/issues`): `org:PyAutoLabs` plus the
non-org homes from `repos.yaml`; three passes per qualifier group —
`is:issue is:open -author:<self>`, `is:pr is:open -author:<self>`, and
Expand Down
Loading
Loading