Skip to content

minimize: optional intra-message ddmin after turn-level shrink #34

Open

Description

@CodewithJha

Problem

minimize_genome (packages/mutiny_core/src/mutiny_core/minimize/__init__.py) implements classic ddmin over whole attacker messages (turns). Once a single long turn remains, content is not shrunk further. SYSTEM_DESIGN § minimize is message-oriented; for evidence UX, multi-sentence turns often stay verbose.

Repository evidence

  • minimize_genome + _partition — turn subsets only
  • tests/unit/test_minimize.py
  • Regression artifacts store full conversation: list[str] (regress/__init__.py)

Why it matters

Smaller permanent regressions → clearer FAIL→PASS diffs and less secret surface in conversation text.

Proposed direction

After turn-level ddmin succeeds, optionally run a second-phase shrink on each remaining message (e.g. sentence/paragraph partitions or binary split of content) with the same re-exec gate (_interesting / same rule ids). Feature-flag or parameter intra_message: bool = False default off for behavior compatibility.

Acceptance criteria

  • Default behavior unchanged when flag off
  • When enabled, can reduce character length while still reproducing target violations
  • Unit tests with a multi-sentence single-turn violating fixture
  • No LLM in minimize path

Testing expectations

uv run pytest tests/unit/test_minimize.py -q

Scope / NOT included

  • Tokenizers / model-based compression

Difficulty

L · core / advanced

Activity

  1. added
    enhancementNew feature or request
    help wantedExtra attention is needed
    priority:P2Meaningful independent improvement
    coremutiny_core engine
    on Sep 9, 2026
  2. self-assigned this
    on Sep 9, 2026
  3. BasilZafar11 commented on Nov 10, 2026

    @BasilZafar11
    Contributor

    Opened PR #145 adding optional intra-message ddmin after turn-level shrinking. Every accepted deletion preserves all target violations through re-execution. Default behavior remains unchanged. All 771 tests and seven CI checks pass.

    #145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coremutiny_core engineenhancementNew feature or requesthelp wantedExtra attention is neededpriority:P2Meaningful independent improvement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions