Repository navigation
Description
Overview
A collaborator asked whether AGENTS.md carries a flag telling their agent that user reports belong on the org Discussions hub (https://github.com/orgs/PyAutoLabs/discussions) rather than a repo's Issues. It does not: policy/community_surface.md decides this, but no AGENTS.md/CLAUDE.md mentions Discussions, and the only filing recipe an agent sees is create_issue's gh issue create. This task adds a generated "Where to file" block to every public AGENTS.md, single-sourced from a Mind policy file, and makes create_issue and intake state the same rule.
Plan
- Add a terse Mind policy file
policy/where_to_file.md: the "what" an agent needs at filing time; link topolicy/community_surface.mdfor the why. - Generate it into every public AGENTS.md as a
<!-- repos_sync:filing:begin/end -->block viascripts/repos_sync.py: one source, N copies, drift-checked, self-inserting under the end-at-deliverable block; a missing block is REPORTED, not skipped (same contract ascheck_deliverable_blocks). - Make
skills/create_issue(Mind) andskills/intake(Brain) state the rule for user-facing reports so the Mind flow is not the loophole. - Tests mirror
tests/test_repos_sync_deliverable_block.py(fictional fixtures, every leg proven to fail). - Rollout to the ~48 AGENTS.md copies: extend
.github/workflows/session_hook_propagate.ymlwith a NARROW leg that writes only the filing block (never the map blocks), also triggered onpolicy/where_to_file.md. Human-approved decision: bot push, not a PR wave. This Mind PR ships first; propagation runs on push to main after merge.
Detailed implementation plan
Affected Repositories
- PyAutoMind (primary)
- PyAutoBrain
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./organs/PyAutoMind | main | clean |
| ./organs/PyAutoBrain | main | clean |
Parallel claim (human-approved 2026-09-27): both repos are also claimed by eyes-organ-order (PyAutoMind#439). Its Mind diff touches repos.yaml organ order, the two hook copies and one 4-line hunk in scripts/repos_sync.py _repo_resolver; its Brain diff touches agents/_pyauto_root.py, bin/_pyauto_root.sh, docs/. This task touches disjoint regions: repos_sync.py block constants/new functions/main wiring, policy/, tests/, skills/create_issue, .github/workflows/session_hook_propagate.yml, and Brain skills/intake/.
Suggested branch: feature/where-to-file-block
Implementation Steps
policy/where_to_file.md(~8 lines,## Where to file): user/collaborator questions, help, ideas, bug reports and results go to the Discussions hub in the matching category (Help & Questions, Ideas & Proposals, Bugs & Errors, Show and tell; Announcements maintainers-only), never repo Issues; an agent never runsgh issue createfor such a report — it drafts title/category/body for the human; only the dev flow (Mind prompt → /start_dev → /create_issue → one issue per task → PR) opens issues. Why:policy/community_surface.md.scripts/repos_sync.py:FILING_BEGIN/END,FILING_POLICY_FILE,load_filing_policy,check_filing_blocks(three-state, anchored on the deliverable markers),insert_filing_markers(underDELIVERABLE_END),write_blockin the--writeloop, check-table row "where-to-file blocks (generated)",--only/--skipplumbing, and awrite_filing_blocks(root, repos)helper for the workflow..github/workflows/session_hook_propagate.yml: addpolicy/where_to_file.mdto the path trigger; callrepos_sync.write_filing_blocksbesidewrite_session_hooks; header comment explains the narrow leg; keep dry_run semantics.tests/test_repos_sync_filing_block.pymirroring the deliverable-block tests; assert the workflow referenceswrite_filing_blocksand the policy path.- Write the block into Mind's and Brain's own
AGENTS.mdon the branch (other repos get it via propagation). skills/create_issue/SKILL.md: guard beforegh issue createfor user-facing reports. Brainskills/intake/intake.md: route outsider reports the same way.
Key Files
policy/where_to_file.md— new single sourcepolicy/community_surface.md— the why (unchanged)scripts/repos_sync.py— generator + drift checktests/test_repos_sync_filing_block.py— new tests.github/workflows/session_hook_propagate.yml— bot-push rollout legskills/create_issue/SKILL.md, PyAutoBrainskills/intake/intake.md— skill guards
Original Prompt
Click to expand starting prompt
docs: "Where to file" block in every public AGENTS.md — route user reports to the Discussions hub
Type: docs
Target: pyautomind
Repos:
- PyAutoMind
Difficulty: small
Autonomy: supervised
Priority: high
Lane: any
Request (2026-09-27, from the collaborator Slack)
Jam: All issues for any project should be posted here
https://github.com/orgs/PyAutoLabs/discussions and NOT on their individual
GitHub Issues page. When posts go there we will be notified about it here on
SLACK.Sam: is there a flag in the agents.md files for this so that if I use Claude
to raise an issue it will automatically see that the issue should go there
and not through GitHub?
There is no such flag. policy/community_surface.md (PyAutoMind#403/#411/#426)
already decides that users go to the one org Discussions hub, and the README
"Community & Support" sections and issue choosers were regenerated from it —
but no AGENTS.md or CLAUDE.md in the workspace mentions Discussions (grep
over the root, every organ, every library, workspace and assistant checkout),
and the only issue-filing recipe an agent sees is create_issue's
gh issue create on the target repo. A contributor's Claude reading their
clone of PyAutoLens today opens a repo issue.
Ask
Add a generated "Where to file" block to every public repo's AGENTS.md,
single-sourced from a Mind policy file exactly like the never-rewrite-history
and end-at-deliverable blocks (scripts/repos_sync.py, one source, N copies,
drift check), stating:
- questions, help with code or analysis, ideas/proposals, bug reports and
results from users and collaborators — or an agent acting for one — go to
https://github.com/orgs/PyAutoLabs/discussions in the matching category
(Help & Questions, Ideas & Proposals, Bugs & Errors, Show and tell;
Announcements is maintainers-only), not to the repo's Issues; - an agent never runs
gh issue createfor a user-facing report: it drafts
the post (title, category, body) and hands it to the human, since sessions
have not been able to create Discussions (measured on the policy page); - the organism's own development flow — Mind prompt →
/start_dev→
/create_issue→ one issue per task → PR — is the only thing that opens
issues on these repos (policy sentence two; unchanged).
Make create_issue and intake state the same rule for user-facing reports so
the Mind flow does not become the loophole.
Constraints
- Terse: the block rides in every repo's AGENTS.md and is paid in context in
every session. Prohibition + hub link + categories + the dev-flow exemption. - Keep
policy/community_surface.mdthe source of why; the new policy file
is the what an agent needs at filing time. Link, don't duplicate. - The rollout to the ~48 AGENTS.md copies is its own decision: PR wave versus
extendingsession_hook_propagate.ymlto bot-push this one block.
Activity
prompt: route where-to-file-block (#442) → start_library
Jammy2211 commentedon Sep 27, 2026
Parallel claim (human-approved 2026-09-27):
where-to-file-block(PyAutoMind#442) also claims PyAutoMind and PyAutoBrain onfeature/where-to-file-block. Disjoint fromeyes-organ-order(#439): #439 touches Mindrepos.yamlorgan order, the two hook copies and the 4-line_repo_resolverhunk inscripts/repos_sync.py, plus Brainagents/_pyauto_root.py,bin/_pyauto_root.sh,docs/. #442 touches onlyrepos_sync.pyblock constants/new functions/main wiring,policy/,tests/,skills/create_issue,.github/workflows/session_hook_propagate.ymland Brainskills/intake/.prompt: ship where-to-file-block (#442) → awaiting-merge
Jammy2211 commentedon Sep 27, 2026
Library PR Created
API changes: none. This is docs/policy plus generator tooling (
policy/where_to_file.md, arepos_sync:filingblock, a narrowwrite_filing_blockspropagation leg, afiling_prskip in the firewall gate,filing_block: falsefor euclid_assistant, and guards in create_issue and intake).Workspace impact: none. No library API changed, so there are no smoke tests to run.
Heart YELLOW acknowledged: "manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml"; "manifest drift: organism-map blocks (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml"; "manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml"; "release validation incomplete: no rehearsal for current source"
Next: the human merges both PRs, then
/prm. After #443 merges,session_hook_propagate.ymlbot-pushes the block to the in-scope sibling repos.Jammy2211 commentedon Sep 27, 2026
Shipped
What shipped:
policy/where_to_file.md, generated into every public AGENTS.md as a drift-checkedrepos_sync:filingblock that inserts itself under the deliverable blockwrite_filing_blocks)filing_prskipfiling_block: falseexemption for euclid_assistantRollout snapshot (16:21Z): the propagation run 36332804243 completed with success on bf4f8db. Its log shows 36 AGENTS.md diffs and no warnings. The post-merge firewall push run 36332804151 on bf4f8db also succeeded.
User and collaborator reports now point at https://github.com/orgs/PyAutoLabs/discussions from every repo's AGENTS.md. This answers the collaborator question from Slack.
prompt: ship where-to-file-block (#442) → complete
prompt: issue and route ecosystem-role-docs (Brain #442)