Skip to content

fix: classify the shared AI policy in validators #181

Description

@Jammy2211

Overview

The shared root AI_POLICY.md is currently unclassified by the assistant clone boundary, so every autolens assistant PR fails the boundary check and future clone births are blocked. Classify the policy as generic clone infrastructure and align the maintainer-facing boundary documentation across the three assistant cells. The analogous PyAutoMemory root allowlist regression remains tracked and fixed under PyAutoMemory #30.

Plan

  • Add AI_POLICY.md to the Clone Agent's shared generic file set.
  • Document that generic classification in each assistant cell's maintainer boundary guide.
  • Keep the current supported reference profiles; do not invent an AutoCTI clone profile.
  • Run focused clone-conductor tests and boundary checks only.
Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)
  • autolens_assistant
  • autofit_assistant
  • autocti_assistant

Branch Survey

Repository Current Branch Dirty?
./PyAutoBrain main skills/WORKFLOW.md modified (unrelated; isolated worktree required)
./autolens_assistant main clean, two commits behind origin/main
./autofit_assistant main clean
./autocti_assistant main clean

Suggested branch: feature/ai-policy-validator-followups

Implementation Steps

  1. Add AI_POLICY.md to _SHARED_GENERIC in PyAutoBrain/agents/conductors/clone/_clone.py.
  2. Add a focused regression assertion in PyAutoBrain/tests/test_clone_conductor.py if existing coverage does not already pin the shared generic classification.
  3. Update modes/maintainer.md in autolens_assistant, autofit_assistant, and autocti_assistant to identify the root policy as generic template infrastructure.
  4. Run the focused Clone Agent tests and boundary checks for the existing autolens and autofit profiles. Confirm AutoCTI remains intentionally outside REFERENCE_PROFILES.
  5. Keep the PyAutoMemory structure allowlist correction in its existing Python 3.12 workflow task and issue feat: intake census + dashboard modes — Mind backlog page #30.

Key Files

  • PyAutoBrain/agents/conductors/clone/_clone.py — shared generic clone classification.
  • PyAutoBrain/tests/test_clone_conductor.py — focused classification regression coverage.
  • autolens_assistant/modes/maintainer.md — lens assistant boundary documentation.
  • autofit_assistant/modes/maintainer.md — fit assistant boundary documentation.
  • autocti_assistant/modes/maintainer.md — CTI assistant boundary documentation.

Original Prompt

Click to expand starting prompt

clone-boundary is red on every autolens_assistant branch — AI_POLICY.md unclassified

Difficulty: small

The clone-boundary CI check in @autolens_assistant has failed on every branch
since feature/ai-policy merged on 2026-07-27. It is not branch-specific work that
breaks it — the check fails on the merge commit of any PR:

check_boundary: 1 file(s) in autolens_assistant fall on neither side of the template
boundary:

  ✗ AI_POLICY.md

AI_POLICY.md was added without being classified, and check_boundary.py refuses any
unclassified tracked file — "the Clone Agent refuses to birth a newborn while any is
unclassified", so this also blocks every future assistant birth, not just CI.

Fix

Classify AI_POLICY.md as generic, domain or mixed and record it in both
places, which the check requires to agree:

  1. @autolens_assistant modes/maintainer.md, ## Assistant-as-template — the prose that
    owns the boundary.
  2. @PyAutoBrain agents/conductors/clone/_clone.py
    REFERENCE_PROFILES['autolens_assistant'].

Almost certainly generic: the AI-use policy is framework-level, not lensing science,
and a newborn assistant should inherit it near-verbatim.

Grounding already done (2026-07-30):

  • AI_POLICY.md is a root-level file absent from _SHARED_GENERIC
    (_clone.py:52-72), which is why it lands unclassified. Adding "AI_POLICY.md" to
    that shared list covers both existing profiles at once.
  • All three cells (autolens_assistant, autofit_assistant, autocti_assistant) carry
    an AI_POLICY.md, and none of their modes/maintainer.md files mention it — so the
    prose half is missing everywhere, not just in the lens cell.
  • REFERENCE_PROFILES has entries for autolens_assistant and autofit_assistant only;
    autocti_assistant has no profile, and no boundary check ran on autofit_assistant's
    PRs — which is why only the lens cell goes red. Decide whether the other two should
    gain the check as part of this fix or in a separate task.

Related

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