Skip to content

doctor: warn when a local role file shadows a shipped fix (stale codev/roles/consultant.md) #1661

Open

Description

@waleedkadous

Problem

Framework files resolve through the four-tier chain — .codev/ → codev/ → runtime cache → installed package skeleton. A local copy wins.

That is the point of the resolver, but it means a fix shipped in the skeleton never reaches an adopter who has a local copy of that file, and nothing tells them. They keep their version indefinitely, and it looks like it is working.

#1649 is a live instance. The fix for "a review lane edited the code under review" is an instruction in codev/roles/consultant.md, shipped in codev-skeleton/roles/consultant.md. Any adopter with a local codev/roles/consultant.md — customised, or simply copied at install time — will keep resolving their own, and the instruction will never arrive. They still get the tripwire, because that is code rather than a resolved file, so they end up with the detection and not the prevention, which is exactly backwards.

Suggested fix

A codev doctor check: for each framework file that exists both locally and in the installed skeleton, flag the local one when it is missing something the shipped one has.

The cheap and probably sufficient version is a marker check rather than a diff — the shipped file carries a small set of section headings, and doctor warns when a local override lacks one:

⚠ codev/roles/consultant.md is a local override missing a section from the
  shipped role: "You Read the Tree; You Do Not Change It" (#1649).
  Your consultants are not being told not to modify the tree under review.
  Compare against the skeleton, or delete the local copy to inherit it.

A content diff against the skeleton would be more general but noisier — most local overrides differ legitimately, and a warning that fires on every customisation gets ignored. Worth deciding which way to go; the marker approach fails safe (silent when it cannot tell) and only speaks up about sections someone deliberately marked as load-bearing.

Roles are the obvious first target since they are prompts — a missing paragraph changes agent behaviour silently, with no error anywhere. Protocols and templates have the same shape.

Refs

Activity

  1. added
    area/config
    on Sep 9, 2026
  2. added a commit that references this issue on Sep 9, 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

    area/config

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions