D1Deep (Opt-In AI)scope: extendedweight: 1fix: manual

    D1: Contradictory rules

    Why this rule exists (Empirical Evidence)

    When the same rule exists at two levels with different wording, AI averages the signals instead of choosing one, producing unpredictable behavior.

    Anthropic Claude Code System Prompt Evolution (2026)Source
    Anti-pattern (Triggers D1)
    # Anti-pattern triggering D1 (Contradictory rules)
    # Rule or repository configuration violates this check without verification.
    Compliant pattern (Passes D1)
    # Compliant harness passing D1 (Contradictory rules)
    # Concrete, verifiable repository configuration backed by anthropic-265.
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check D1

    More Deep (Opt-In AI) checks