Skip to content

refactor: one reader for repos.yaml instead of about ten - #709

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/one-repos-yaml-reader
Nov 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/one-repos-yaml-reader

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

The body map (PyAutoMind/repos.yaml) was parsed about ten separate ways. This adds one stdlib-only reader to agents/_repo_paths.py and moves every reader onto it.

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

  • Witness: every one of the ten readers was run before (main 428fe1e) and after on four inputs: the real repos.yaml, quoted values ("…" and '…'), trailing comments on values together with comment and blank lines inside the block, and a repos: block ended by a new top-level key. All four give identical JSON. The owner vote ran with PYTHONHASHSEED=0 because its tie-break follows set order.
  • Beyond the witness: on input with comments on the repos: line itself or on a repo-key line, the old readers disagreed with each other. The line scanners returned nothing for repos: # …, and the regex readers skipped a repo whose key line had a comment. The shared reader reads both, so on that input manifest_paths/package_paths/manifest_categories and known_repos/_mind_home now return the entries. Neither shape occurs in the real body map.
  • tests/test_repo_paths.py gains 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.
  • Heart: the dev-ship gate read STALE only because Heart's CI poll hit a TLS timeout on this network; main is green by 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

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>
@Jammy2211
Jammy2211 merged commit facddc0 into main Nov 22, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/one-repos-yaml-reader branch November 22, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: one reader for repos.yaml instead of about ten

1 participant