Repository navigation
Description
Overview
The community scan floods the session with settled threads shown as "unknown" (25 on 2026-11-17, some from 2019), and there is no rule for threads where we are waiting on the contributor. This adds a 21-day close policy, an Ears field that marks threads due to close, a "Close due (21d)" section in Brain's scan with the standard message prefilled, and quiets historical follow-ups and broadcast delivery rows.
Plan
- Mind: write the 21-day close policy (who it applies to, never threads awaiting us, the standard message, issue vs Discussion reopen wording, batch approval once per session, no automation).
- Ears: add an optional
awaiting_contributor_sinceandclose_dueto each open conversation in the snapshot, with tests and a REFERENCE.md contract note. - Brain: stop a stale or cached snapshot turning settled history into "unknown"; print historical follow-ups as a single count; drop "Delivery: unknown" for Announcements and Show and tell.
- Brain: add the "Close due (21d)" scan section with the prefilled message, and document the approve-once-then-post-and-close step in the community skill.
- Tier: judge — merge mode: human /prm
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary)
- PyAutoEars
- PyAutoMind
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoBrain | main (behind 6) | 1 file (another session) |
| ./PyAutoEars | main (behind 1) | clean |
| ./PyAutoMind | main (shared checkout) | write through a temp worktree |
Suggested branch: feature/community-close-due
Implementation Steps
- Mind
policy/community_close_due.md(new) and a pointer frompolicy/community_surface.md: applies when the thread is open/unsettled, the latest comment is from a self login, and no external human comment follows for 21 days. Bot comments do not reset the clock. Never applies to threads awaiting us, broadcast categories or PRs. The standard message names the context; Discussions say "reopen this discussion or just reply here", issues say "reply here and we'll reopen it". Discussions close with reason OUTDATED, issues with "not planned". The human approves the batch once per session; there is no Action and no unattended close. - Ears
ears/collect.py: computeawaiting_contributor_since(timestamp of our last comment when it is the latest non-bot comment on an open, unsettled conversation; else null) andclose_due(bool, ≥21 days at collection; null when coverage is incomplete). The fields are optional and additive, so readers accept old snapshots. Add tests intests/test_listening.py(or a newtest_close_due.py): boundary at exactly 21 days, a bot comment after ours, an external reply after ours, a settled thread, incomplete coverage giving null. Add a contract note inREFERENCE.md. Board: a quiet "Close due" badge inpresentation.pyif cheap. - Brain
agents/conductors/community/_ears_feed.py(~line 173): a stale or cached snapshot must not setreview_needed=Noneon rows that Ears marked historical (historical_follow_up_atset, inactive follow-up); only rows that were active or unknown become unknown. Addhistorical_follow_upas a count. Filter delivery rows for broadcast categories. - Brain
_community.pyprint_scan: print "Historical follow-ups: N (settled, >30 days; not listed)", and add a "Close due (21d)" section: ref, author, days silent, and the prefilled message with @author. Passclose_duethrough to--json. - Brain
skills/community/community.md: a "Close due" step pointing to the Mind policy, with the GraphQL recipes (addDiscussionComment, closeDiscussion OUTDATED,gh issue close --reason "not planned" --comment). - Tests: Brain
tests/test_ears_adapter.pycases for stale + historical, broadcast delivery filtering and close_due passthrough. Run Earspython -m pytest -qand validatestate.jsonwith Brainboard/_state.py.
Key Files
PyAutoBrain/agents/conductors/community/_ears_feed.py,_community.py,skills/community/community.md,tests/test_ears_adapter.pyPyAutoEars/ears/collect.py,ears/presentation.py,REFERENCE.md,tests/PyAutoMind/policy/community_close_due.md,policy/community_surface.md
Original Prompt
Click to expand starting prompt
Community: 21-day close policy, close-due scan section, and quiet historical follow-ups
Type: feature
Target: pyautobrain
Repos:
- PyAutoBrain
- PyAutoEars
- PyAutoMind
Difficulty: medium
Autonomy: supervised
Priority: high
Consequence: judge
Community: Plots: subplot_fit_interferometer (zoomed panel) .github#37
Filed: 2026-11-17
Approved by the human in the /community chat on 2026-11-17 (items 1-4; item 5 is the
sibling prompt draft/maintenance/workspaces/issue_templates_route_bugs_to_hub.md).
Request (verbatim from the session)
(1) Brain community scan (agents/conductors/community, _ears_feed) must not print Ears
historical follow-ups (historical_follow_up_at set, follow_up inactive) as "Follow-up:
unknown" rows — show only a quiet count; also suppress "Delivery: unknown" rows for
broadcast categories (Announcements, Show and tell). (2) New Mind policy: 21-day close — a
thread (Discussion or external issue) where the maintainer commented last and is waiting on
the contributor, open, with no external reply for 21 days, is closed with a standard
message: "Hi @user, we're closing this for now because we haven't heard back in three weeks.
Nothing is lost. If you're still , reopen this discussion or just reply here ... and
we'll pick it up again." (issues: 'reply here' since issue authors can't reopen a
maintainer-closed issue). Never applies to threads awaiting us. Brain community skill
references it. (3) Ears snapshot: additive optional field awaiting_contributor_since /
close_due (>=21 days) with tests, REFERENCE.md contract note. (4) Brain community scan:
"Close due (21d)" section with prefilled standard message; human approves the batch once per
session, then the session posts+closes (addDiscussionComment + closeDiscussion reason
OUTDATED / gh issue close). No GitHub Action, no unattended closing.
Evidence
- 2026-11-17 scan listed 25 settled threads (PyAutoLens#631, PyAutoFit#36 from 2019, ...) as
"Follow-up: unknown". Ears' snapshot had them correctly as historical
(historical_follow_up_at,review_needed: false); Brain's_ears_feed.py(~line 173)
setsreview_needed=Nonefor every row when the snapshot is stale or cached, which turns
settled history into unknown. - First manual application of the policy: discussion feat: review faculty — the ship gate's automatic-review leg #37 closed 2026-11-17 (27 days silent).
Activity
Jammy2211 commentedon Nov 17, 2026
Heart RED development override, authorized live by the human on 2026-11-17 in the /community chat, verbatim: "yes, override for #658". Covers commit, push and opening the PRs only; merge needs a separate /prm with every required check green. Heart stays RED for release purposes.
Exact RED reason (dev-ship gate scoped to PyAutoBrain, PyAutoEars, PyAutoMind, refreshed 2026-11-17):
PyAutoMind: Tenant Firewall Gate failure on main(generated-hook drift in PyAutoBrain/PyAutoHeart/PyAutoHands from the 2026-11-16 sync; unrelated to this task).Branch gates passed: PyAutoEars pytest 148 passed; PyAutoBrain community/adapter/board tests 96 passed; Ears state.json validated with Brain board/_state.py; live scan checked; smoke n/a; in-session diff review.
PRs: #662, PyAutoLabs/PyAutoEars#32, PyAutoLabs/PyAutoMind#580.
Jammy2211 commentedon Nov 17, 2026
Shipped: #662, PyAutoLabs/PyAutoEars#32 and PyAutoLabs/PyAutoMind#580 merged on 2026-11-17 (all required checks green; merged on the human's explicit /prm). The scan's close-due section populates once Ears publishes its next snapshot. Heart remains RED on the unrelated Tenant Firewall Gate hook drift.