Skip to content

fix(ai): the review prompt digest leaves out the chat persona prompts #4829

Description

@dan-petty

Problem Description

review_prompt_digest in src/devops_cli/ai/personas/__init__.py hashes each .md file under ai/personas/. No review loads these files. Thus an edit of a chat persona prompt changes the digest of the review benchmark arm, and splits one arm into two.

#4630 deleted the orphan prompts and the prompt fallbacks (#4710), but the digest still reads ai/personas/.

Reproduction Steps

  1. Compute review_prompt_digest().
  2. Edit ai/personas/challenger/prompt.md.
  3. Compute it again. The digest changes, but no review prompt changed.

Expected vs Actual Behavior

  • Expected: the digest changes only when a prompt that a review loads changes.
  • Actual: a chat persona edit changes the digest.

Proposed Solution

review_prompt_digest covers only the prompts that a review loads, and leaves out ai/personas/.

Existing Tool Considered

A fix of project code. No tool applies. Cost to build: about 20,000 tokens and 0.5 hours.

Acceptance Criteria

  • A test: an edit of personas/challenger/prompt.md does not change review_prompt_digest.
  • A test: an edit of review_group_analysis.md changes it.

Dependencies

None.

Source: #4780

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/bug
    scope/ai
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ai. The (ai) scope of the title gives the scope.
    • Priority: P2-Medium. A benchmark arm splits on unrelated edits, but no review breaks or data is lost.
    • Value: Medium. Benchmark arms stay consistent; users who edit chat personas no longer see spurious arm splits.
    • Effort: Low. Change is limited to the digest function and two tests, estimated at 0.5 hours.
    • Related: refactor(ai): delete orphan prompts and the prompt fallbacks #4630, which asks for a different change. Both touch review_prompt_digest and ai/personas/ files; #4630 deleted orphan prompts, the candidate narrows the digest to only review-loaded prompts.
  4. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ai. The (ai) scope of the title gives the scope.
    • Priority: P2-Medium. The defect splits one benchmark arm into two, but it does not block a release.
    • Value: Medium. Stable benchmark digests give correct comparisons between review runs.
    • Effort: Low. The change edits one digest function and adds two tests; the author estimates 0.5 hours.
    • Related: refactor(ai): delete orphan prompts and the prompt fallbacks #4630, which asks for a different change. Both items concern review_prompt_digest and files that no review loads, but #4630 deletes the orphan files and the candidate excludes the persona folder from the digest.
  5. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 11, 2026
  6. added
    status/in-review
    and removed
    status/in-progress
    on Nov 14, 2026
  7. removed
    status/in-review
    on Nov 14, 2026
  8. added a commit that references this issue on Nov 14, 2026
  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 15:02 UTC

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

    effort/lowpriority/p2-mediumscope/aisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions