Skip to content

fix: align staged triage prompt contract#637

Draft
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/staged-triage-prompt-contract
Draft

fix: align staged triage prompt contract#637
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/staged-triage-prompt-contract

Conversation

@ApexWorm

Copy link
Copy Markdown

Problem

Staged observe and reflect prompts embed generic whole-plan auto-cluster guidance that advertises defer and break_up. The staged reflect validator accepts only promote, skip, and supersede, so valid-looking runner output can fail the accounting gate.

Fix

Keep the generic triage prompt contract unchanged by default, while allowing staged prompt builders to omit the incompatible legacy auto-cluster decision guidance. Staged prompts retain the auto-cluster summary and use their own promote/skip/supersede contract.

Validation

  • python3 -m pytest -q desloppify/tests/plan/test_epic_triage_prompt_direct.py desloppify/tests/commands/plan/test_triage_runner.py desloppify/tests/commands/plan/test_reflect_disposition_ledger.py (82 passed)
  • python3 -m ruff check desloppify/tests/commands/plan/test_reflect_disposition_ledger.py desloppify/tests/plan/test_epic_triage_prompt_direct.py
  • python3 -m compileall -q desloppify/engine/_plan/triage/prompt.py desloppify/app/commands/plan/triage/runner/stage_prompts.py

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant