Skip to content

claude-memory: discover-instruction-surfaces.sh inventories no project surface once a repo drops its CLAUDE.md shim #4300

Closed

Description

@kyle-sexton

Problem

plugins/claude-memory/skills/audit/scripts/discover-instruction-surfaces.sh inventories no project instruction surface once a repository drops its CLAUDE.md shim. Its project-scope branch tests only CLAUDE.md (:159-163), CLAUDE.local.md (:164) and .claude/rules (:166-170); the script contains zero occurrences of AGENTS. A post-cutover repository whose content lives in AGENTS.md emits no row, so /claude-memory:audit silently reports nothing to audit.

Proposed work

  • Add an agents-md surface kind alongside the existing ones, emitted for a root AGENTS.md when no CLAUDE.md imports it (avoid double-counting under the shim).
  • Have instruction-load-stats.sh count its bytes the same way.
  • Then add the reviewed row for discover-instruction-surfaces.sh to .claude/cutover-pathdet-ack.txt.

Acceptance criteria

  • A fixture repo with a lone non-empty AGENTS.md emits one project instruction-surface row and non-zero always-loaded bytes.
  • A shimmed fixture repo emits the same rows it does today.
  • cutover-check.sh --skip-canary --repo <this repo> reports condition 4 [MET].

Context

Found by the independent verifier of the cutover check (Refs #4281). Until this lands, the cutover check correctly reports condition 4 [UNMET] for this repository.

Activity

  1. added
    needs-triage
    on Sep 20, 2026
  2. added 7 commits that reference this issue on Sep 20, 2026
    963ddea
    a7681f7
    aedf5f0
    b35f26f
    c100ef3
    770017f
    0fe31a7
  3. added 2 commits that reference this issue on Sep 21, 2026
    43b1b13
    d557589
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

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions