Skip to content

refactor: repos_sync.py — one declaration per generated marker block #527

Closed

Description

@Jammy2211

Overview

Behaviour-preserving refactor of scripts/repos_sync.py: the marker-block check/write pairs share one shape, so adding a generated surface currently means a new function plus a new call site.

Plan

  • A GeneratedBlock declaration per surface (8 found: routing table, owner map, organism map, history, remote-session, deliverable, where-to-file, public tables) driving both the check registry and --write.
  • Keep one-liner wrappers for existing external callers.
  • Prove byte-identical output for every CLI flag/leg/write mode; pin with a hermetic test.
Detailed implementation plan

Affected Repositories

  • PyAutoMind (primary)

Branch: ccr-7e6b22c0-04av9i (remote session)

Key Files

  • scripts/repos_sync.py, tests/test_repos_sync_generated_blocks.py

Other legs (heart, hygiene, firewall, standards, hooks, pointers, lints) have different shapes and are left as-is.

Original Prompt

Mind: draft/refactor/pyautomind/repos_sync_check_dedup.md

Activity

  1. Jammy2211 commented on Nov 11, 2026

    @Jammy2211
    CollaboratorAuthor

    Completed in narrowed form by #539 (option (a), human-chosen 2026-11-05); record complete/2026/11/repos-sync-optin-block.md. Option (b) (#528) closed as superseded.

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