Skip to content

feat(ai): retract the false "prompt mutation testing" delivery claim #600

Closed

Description

@dan-petty

Context & Rationale

The "Next-Gen PydanticAI Agent Architecture" entry and docs/RELEASE_NOTES.md:10 list "prompt mutation testing" as delivered, and CHANGELOG.md:749-750 credits it to devops ai prompt-eval. No code in src or tests perturbs a prompt. The only thing shipped under that name was a "Prompt Mutation Benchmark" label, added in v0.2.4, over output that reported a constant accuracy of 1.0 (src/devops_cli/ai/prompt_eval.py:7-12). #385 fixed the command, and v0.2.22 removed the label. The claim lives on in src/devops_cli/docs/compactor.py:25,35, which writes it back whenever devops docs compact consolidates the v0.2 series. vibes' fuzzer applies five seeded classes (dilution, distraction, injection escape, truncation, complexity trap) and reports failures per class plus one resilience score.

Scope & Deliverables

  • Context & Rationale*: The "Next-Gen PydanticAI Agent Architecture" entry and docs/RELEASE_NOTES.md:10 list "prompt mutation testing" as delivered, and CHANGELOG.md:749-750 credits it to devops ai prompt-eval. No code in src or tests perturbs a prompt. The only thing shipped under that name was a "Prompt Mutation Benchmark" label, added in v0.2.4, over output that reported a constant accuracy of 1.0 (src/devops_cli/ai/prompt_eval.py:7-12). fix(ai): make prompt-eval measure something instead of reporting 1.0 #385 fixed the command, and v0.2.22 removed the label. The claim lives on in src/devops_cli/docs/compactor.py:25,35, which writes it back whenever devops docs compact consolidates the v0.2 series. vibes' fuzzer applies five seeded classes (dilution, distraction, injection escape, truncation, complexity trap) and reports failures per class plus one resilience score.
  • Deliverable*: Remove the phrase from both compactor bullet lists, the "Next-Gen PydanticAI Agent Architecture" entry and RELEASE_NOTES.md:10. Under CHANGELOG.md:749-750, add a correction that points to fix(ai): make prompt-eval measure something instead of reporting 1.0 #385 instead of rewriting history. Add an assertion to tests/test_docs_compactor.py that the series bullets do not contain the phrase, so compaction cannot bring it back. None of this depends on a benchmark. Do not build a perturbation feature now. Instead, add one follow-on line to "Model-in-the-Loop Prompt Benchmarking": once its corpus replays, the candidate-prompt input may also accept seeded dilution variants of a persona system prompt. Each variant is sampled repeatedly and reported with its own figures, counting replies that needed fix_llm_response repair, and there is no exit threshold. That runs through the parent's harness. pydantic-evals is already installed with pydantic-ai 2.35.0, is unused, and offers repeat= and baseline reports. Do not port the vibes harness.
  • Constraint*: Replacing the claim with a port of the vibes fuzzer would restore it in a new form. Its mock provider returns drifted code for any prompt containing INJECTION_ESCAPE, SYSTEM OVERRIDE, COMPLEXITY_TRAP or monolithic (providers.py:248-254), so its score measures vocabulary. It sends the pristine prompt as the system prompt and the mutated copy as the user turn (fuzzer.py:508), so truncation removes nothing the model sees. It draws one sample per class, so its 50.0 gate flips on a single reply. The other classes do not transfer. The distraction and complexity-trap snippets instruct code generation, but personas return findings. Truncation is a rule ablation, which is already the deliverable of "Generator-Side Rule Pruning". Injection inside reviewed content is covered by the open "Synthetic Prompt Adversaries for Injection Resistance".
  • Measured*: On a scratch copy of the vibes fuzzer with its mock provider, python3 fuzzer.py --json reports resilience_score 80.0, and python3 fuzzer.py --json -f AGENTS.md reports 0.0 because this repository's AGENTS.md contains the trigger word (grep -c monolithic AGENTS.md = 2). At HEAD, mutate_prompt(PERSONAS[p].system_prompt, TRUNCATION) at intensity 0.5 drops between 0 and 3 of the 15 markers in tests/test_personas.py:71, depending on the persona.
  • Source*: vibes examples/prompt-mutation-fuzzer/fuzzer.py, vibes examples/prompt-mutation-fuzzer/providers.py, vibes examples/prompt-mutation-fuzzer/README.md, vibes docs/landscape/SURVEY.md

Strategic Alignment

  • Milestone: v0.2.23 (devops ai Review Quality, LLM Routing & Multi-Language Validation)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.23 milestone on Sep 25, 2026
  2. added
    type/feature
    scope/ai
    priority/p0-critical
    on Sep 25, 2026
  3. dan-petty commented on Sep 25, 2026

    @dan-petty
    OwnerAuthor

    Closed by #610, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

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

    priority/p0-criticalscope/aitype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions