Skip to content

feat: glance public-name diff check — added or renamed public library names go to a human /prm #641

Closed

Description

@Jammy2211

Overview

This enforces AUTONOMY.md "Public-name narrowing of glance — 2026-11-16" (#639), the human ruling after the seeded audit, row 08 (PyAutoLabs/PyAutoGalaxy#656). Prompt: PyAutoMind draft/feature/pyautobrain/glance_public_name_check.md.

A change that adds or renames a public name in a library package (PyAutoFit, PyAutoArray, PyAutoGalaxy, PyAutoLens, PyAutoCTI) is a human /prm. A public name is a module-level function, class or constant without a leading underscore, or anything exported from a package __init__.

  • A deterministic check with Python ast over git diff base..head of a library repo. It compares each module's public names before and after, and reports added names and renames (removed-and-added). It ignores private names, tests, workspaces and organs.
  • Wire it into:
    • the watcher close-out (refuse the unattended merge: "public name added/renamed: → human /prm", shown in the digest);
    • the in-turn tiered merge in the ship skills / /prm "Tiered merge";
    • the review faculty's surface.
  • One shared implementation, with a CLI for sessions, e.g. pyauto-brain public-names <owner/repo>#<n> or a path pair.

Tier: glance — merge mode: auto-merge on green

Witness

  • Offline tests:
    • PyAutoGalaxy#656's diff (seven latent_*_from in autogalaxy/convert.py) is refused;
    • a private helper passes, and so does a change to a function body only;
    • a rename is caught;
    • a new __init__ export is caught;
    • workspace repos are ignored;
    • the close-out refusal reaches the digest.
  • The Brain suite passes.

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Nov 16, 2026
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