Skip to content

fix: repos_sync check mode never checks root AGENTS.md routing table / WORKFLOW owner map #480

Closed

Description

@Jammy2211

Overview

scripts/repos_sync.py --write regenerates the workspace-root AGENTS.md routing table and the PyAutoBrain/skills/WORKFLOW.md owner map, but check mode has no drift check for either block. On 2026-10-07, check mode reported OK while the root table was missing PyAutoEars and PyAutoInsight and still carried stale Pulse text.

Plan

  • Add a check comparing the root AGENTS.md repos_sync block to routing_table(...), in the style of check_map_blocks. It skips when the file is absent (partial/web checkouts).
  • Add the same check for the WORKFLOW.md owner-map block against owner_map(...).
  • Register both in the check list and add tests (pass when in sync, fail on drift, skip when absent).
  • Verify on the live checkout (passes) and on a corrupted scratch copy via --root (fails). The pre-existing shared-standards mismatches are left alone.

Tier: judge — merge mode: human /prm

Detailed implementation plan

Work Classification

Mind tooling (organ repo, library-style ship)

Affected Repositories

  • PyAutoMind (primary)

Branch Survey

The shared main checkout is on main and dirty with other sessions' uncommitted files, which are left untouched. PyAutoMind is held by dashboard-section-disclosures (Mind#479 draft). The human authorised coordination on 2026-10-07; this task touches scripts/repos_sync.py and its tests only.

Suggested branch: feature/repos-sync-check-root-routing
Worktree root: ~/Code/PyAutoLabs-wt/repos-sync-check-root-routing/

Implementation Steps

  1. scripts/repos_sync.py: add check_routing_table(root, categories, repos) and check_owner_map(root, categories, repos). Each extracts the MARK_BEGIN/MARK_END block, compares it to the generator, and skips when the file is absent. A present file without markers is reported, matching write's required=True.
  2. Register both in the check list beside check_map_blocks.
  3. Add tests/test_repos_sync_routing_blocks.py.
  4. Verify with python3 scripts/repos_sync.py (check) on the live root, and on a scratch --root copy with a corrupted table.

Key Files

  • scripts/repos_sync.py — routing_table, owner_map, write_block, check_map_blocks, check registration
  • tests/test_repos_sync_*.py

Original Prompt

Click to expand starting prompt

See PyAutoMind active/repos_sync_check_root_routing_table.md (request copied verbatim there).

Activity

  1. Jammy2211 commented on Oct 7, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped

    Merged 2026-10-07: #481. repos_sync.py check mode now also checks the root AGENTS.md routing table and the WORKFLOW owner map, so drift there fails --check instead of passing silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions