Repository navigation
refactor: one reader for repos.yaml instead of about ten - #709
Merged
Merged
Conversation
Add manifest_entries / manifest_repos / manifest_field (raw value per repo from the repos: block; comment and blank lines skipped, ended by the next top-level key), manifest_text, manifest_homes and majority_owner to agents/_repo_paths.py, stdlib only. Move manifest_paths, package_paths, project_discovery.manifest_categories, _hygiene_repos.parse_minimal, public_names.body_map_packages, _docs.known_repos, _intake._mind_home, _board.repo_homes and both derive_org owner votes onto it. Each caller keeps its own value handling (quotes, comments), so on the real body map and on quoted / commented / block-ended fixtures every reader returns what it did before. Closes #708 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 22, 2026
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.
Summary
The body map (
PyAutoMind/repos.yaml) was parsed about ten separate ways. This adds one stdlib-only reader toagents/_repo_paths.pyand moves every reader onto it.manifest_entries(text)walks therepos:block: two-space repo keys and four-space fields. It skips blank and comment lines, stops at the next top-level key, and yields each field's raw value (stripped, otherwise verbatim). Built on it:manifest_repos,manifest_field(text, key),manifest_text(root),manifest_homes(thegithub:homes) andmajority_owner(the owner vote).manifest_paths,package_paths,project_discovery.manifest_categories,_hygiene_repos.parse_minimal,public_names.body_map_packages;_docs.known_repos,_intake._mind_home,_board.repo_homes,_hygiene_ci.derive_org._board.derive_orgnow shares the owner vote with_hygiene_ci.derive_org.repos_sync.pyreads the map with PyYAML.Closes #708
API Changes
Added internal helpers in
agents/_repo_paths.py; no reader's signature or return value changes.See full details below.
Test Plan
repos.yaml, quoted values ("…"and'…'), trailing comments on values together with comment and blank lines inside the block, and arepos:block ended by a new top-level key. All four give identical JSON. The owner vote ran withPYTHONHASHSEED=0because its tie-break follows set order.repos:line itself or on a repo-key line, the old readers disagreed with each other. The line scanners returned nothing forrepos: # …, and the regex readers skipped a repo whose key line had a comment. The shared reader reads both, so on that inputmanifest_paths/package_paths/manifest_categoriesandknown_repos/_mind_homenow return the entries. Neither shape occurs in the real body map.tests/test_repo_paths.pygains tests of the shared reader: block scope, raw values, homes and owner, no PyYAML. The prompt's five test files pass. Full suite: 2453 passed, 1 skipped.gh run list. Organism door: YELLOW, for an unrelated euclid_assistant reason.Full API Changes (for automation & release notes)
Added
_repo_paths.manifest_entries(text),manifest_repos(text),manifest_field(text, key),manifest_text(root),manifest_homes(text),majority_owner(homes)Removed
_hygiene_repos._REPO_LINE,_CATEGORY_LINE,_TOP_LEVEL(replaced by_CATEGORY_VALUE)Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code