Repository navigation
Write the facts PR last, from the other workers' results - #3
Merged
Merged
Conversation
Each repo's upkeep worker and its issue workers now run at the same time, each in its own worktree. When they have all returned, a facts worker writes every fact they learned into the facts PR. Before, one worker did upkeep, facts and issues in turn. A fact that came up after the facts branch was written ended up as a "Needs you" item that asked a maintainer to add it. The upkeep and issue workers never touch AGENTS.md. They return each fact they checked in a new `facts` field. The coordinator fills in each PR's `## AGENTS.md` section with a link to the facts PR. In GitHub Actions, each repo's session coordinates these workers instead of doing the work itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LrwmG7tGPk6tcvdrGCkfzU Signed-off-by: Claude <noreply@anthropic.com>
Contributor
Author
|
Cause: Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Upkeep and issue work now run in parallel, and the facts PR is written last from what they found. Before, one worker did upkeep, facts and issues in turn. When upkeep found a fact after the facts branch was already written, the fact ended up as a "Needs you" item asking the maintainer to add it to AGENTS.md.
Each repo now gets its workers in two waves (SKILL.md step 4):
REPO_WORKSPACE/sadr-ROLE/NAME. Its related repos are checked out beside it, so parallel workers never share a checkout.inferred_related_reposlines, intosadr/facts. It changes only AGENTS.md (and the CLAUDE.md import line), and it doesn't build anything. It starts only when there is a fact to write.Other changes:
factsfield (subsection,line,checked). They must not put a fact under "Needs you" or ask a maintainer to add one. pr-format.md lists that in what "Needs you" never holds.- pendingunder## AGENTS.md. In step 6, the coordinator replaces it with the facts that PR contributed and a link to the facts PR.Agenttool, so they don't change.Testing
python3 -m unittest discover tests: 184 passed, 2 failed. Both failures (test_report.PreviewTest.test_preview_report_keeps_unknown_spend_nullandtest_report.PreviewKindsTest.test_kinds_and_account_gaps) are date-dependent and already fail on main. This PR changes no code.workflow_dispatchwithpreview: true) on one repo with an opensadrissue would exercise both waves end to end.Generated by Claude Code