Skip to content

chore: drop legacy CLAUDE.md patterns from clone and regroup #494

Closed

Description

@Jammy2211

Overview

PyAutoBrain#493 kept CLAUDE.md / scripts/CLAUDE.md as tolerated-legacy file patterns in the Clone Agent's framework profile and kept the root CLAUDE.md in regroup_workspace.py's rewritten-config list, because the assistants still tracked scripts/CLAUDE.md pointers. The PyAutoMind#482 session_hook_propagate removal waves (root run 37627261984, nested run 37631942996) have now removed every CLAUDE.md pointer; the four assistants track no file named CLAUDE.md. This drops the legacy patterns, completing the "no file in PyAutoBrain names CLAUDE.md" done-when of PyAutoBrain#492.

Plan

  • Remove the legacy CLAUDE.md / scripts/CLAUDE.md patterns (and their comment) from the clone framework profile in _clone.py.
  • Remove the root CLAUDE.md entry and the CLAUDE.md name test from bin/regroup_workspace.py's config rewrite.
  • Re-word the Memory test fixture that plants a leftover wiki/CLAUDE.md so it no longer presents CLAUDE.md as an existing file (keep its guard: a per-tool adapter never displaces wiki/AGENTS.md).
  • Prove check_boundary.py from this branch still passes against all four assistant checkouts (autolens, autogalaxy, autofit, autocti).
  • Brain suite green in a clean shell.

Tier: judge — merge mode: human /prm

Detailed implementation plan

Work Classification: Library
Worktree root: ~/Code/PyAutoLabs-wt/drop-legacy-claude-md-patterns/

Affected Repositories

  • PyAutoBrain (primary)

Branch Survey

Repository Current Branch Dirty?
./organs/PyAutoBrain main clean

worktree_check_conflict exit 0 (one unrelated unregistered worktree warning on pending-release-published-only).

Suggested branch: feature/drop-legacy-claude-md-patterns

Implementation Steps

  1. agents/conductors/clone/_clone.py — delete the "Legacy per-tool pointer files" comment and the "CLAUDE.md", "scripts/CLAUDE.md", entries from the shared framework pattern list.
  2. bin/regroup_workspace.py — drop root / 'CLAUDE.md' from config_paths and reduce path.name in ('AGENTS.md', 'CLAUDE.md') to path.name == 'AGENTS.md'.
  3. tests/test_memory_surfaces.py — swap the planted wiki/CLAUDE.md for a generic per-tool adapter name so the test keeps its intent without naming CLAUDE.md.
  4. Run check_boundary.py (this branch) against lens/autolens_assistant, galaxy/autogalaxy_assistant, fit/autofit_assistant, cti/autocti_assistant — mirrors clone-boundary.yml.
  5. env -u PYTHONPATH python3 -m pytest -q -n auto in the worktree.

Key Files

  • agents/conductors/clone/_clone.py — clone profile framework patterns
  • bin/regroup_workspace.py — workspace regroup config rewrite
  • tests/test_memory_surfaces.py — Memory surface test fixture

Original Prompt

Click to expand starting prompt

Drop the tolerated-legacy CLAUDE.md patterns in _clone.py and regroup_workspace.py

Type: maintenance
Target: pyautobrain
Repos:

  • @PyAutoBrain
    Difficulty: small
    Autonomy: supervised
    Consequence: judge
    Priority: low
    Status: draft — blocked-by: the PyAutoMind#482 session_hook_propagate removal wave (human-dispatched)
    Filed: 2026-10-07

  • Split out of absorb-claude-notes-agents-md at close-out — the rest shipped in
    complete/2026/10/absorb-claude-notes-agents-md.md
    (docs: absorb Claude notes into the AGENTS.md policy block; trim skill descriptions (#492) #493); this is what remains of
    its "no file in PyAutoBrain names CLAUDE.md" done-when.

Scope

PyAutoBrain#493 kept CLAUDE.md as a tolerated-legacy file pattern in
agents/conductors/clone/_clone.py and bin/regroup_workspace.py, because the
assistants' scripts/CLAUDE.md pointers still exist and their
clone-boundary.yml CI would fail on unclassified files. Once the PyAutoMind#482
propagation wave (and the nested-pointer follow-up) has removed those files,
drop the legacy patterns and their tests.

Done when

No file in PyAutoBrain names CLAUDE.md as a thing that exists; Brain suite
green; the assistants' clone-boundary.yml still passes.

Activity

  1. Jammy2211 commented on Oct 7, 2026

    @Jammy2211
    ContributorAuthor

    Library PR Created

    • PR: chore: drop the tolerated-legacy CLAUDE.md patterns from clone and regroup (#494) #495 (branch feature/drop-legacy-claude-md-patterns, head 18b258f)
    • Validation: PyAutoBrain suite 1291 passed; assistants' clone-boundary check PASS.
    • Heart readiness: YELLOW, acknowledged by the human 2026-10-07 at ship:
      • manifest drift: workspace checkouts (manifest ↔ disk) — 2 mismatch(es) vs PyAutoMind/repos.yaml
      • release validation incomplete: no rehearsal for current source
    • Workspace impact: (iii) none. Only Brain-internal tooling changed.
    • PyAutoBrain is an organ, so the PR carries no pending-release label.

    Next: PR is open for human /prm (merge mode: human). Mind state: library-shipped, awaiting-merge.

  2. added a commit that references this issue on Oct 7, 2026
  3. Jammy2211 commented on Oct 7, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

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