Skip to content

fix(roadmap): intake asks the model again when proposal names value off list (#1677) - #1709

Merged
dan-petty merged 1 commit into
release/v0.2.37from
fix/1677-intake-retry-invalid-proposal
Oct 20, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.37from
fix/1677-intake-retry-invalid-proposal

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Description

When devops roadmap intake asks the analysis model for a proposal, the model may return values outside the allowed domain (such as an unrecognized type or non-standard Value/Effort). Previously, any validation failure immediately skipped the candidate. Additionally, when a candidate passed via --title and --body-file with --confirm was skipped, the CLI exited 0 as if it succeeded.

This PR implements:

  • Single retry with structured feedback (problem field) in ProposalRequest when validate_proposal raises _InvalidProposal.
  • System prompt instruction informing the model to correct invalid values when problem is present, with conventional commit mappings for prefixes without dedicated labels.
  • Comprehensive skip reporting joining both problems in the decision and rendered report when both attempts fail validation.
  • Model call spend accounting for retry attempts.
  • Non-zero CLI exit (code 1) when a --title candidate cannot be placed and is skipped under --confirm, preserving exit code 0 for existing candidate runs.

Closes #1677.

@dan-petty
dan-petty force-pushed the fix/1677-intake-retry-invalid-proposal branch from dcd0c6e to c545910 Compare October 20, 2026 02:39
…ff list (#1677)

- When validate_proposal fails due to an off-list type, Priority, Value, or Effort, retry once asking the model with structured feedback in problem.
- Report both problems in the run report and skip candidate when both attempts fail.
- Instruct model in roadmap_intake_system.md to correct invalid values when problem is present and map conventional commit prefixes without dedicated labels to type/infra.
- Terminate devops roadmap intake --title ... --confirm with exit code 1 when the candidate cannot be placed and is skipped.
- Count retries as model proposal calls in SpendMeter.
@dan-petty
dan-petty force-pushed the fix/1677-intake-retry-invalid-proposal branch from c545910 to c7b7382 Compare October 20, 2026 02:45
@dan-petty
dan-petty merged commit 9bae4fc into release/v0.2.37 Oct 20, 2026
15 checks passed
@dan-petty
dan-petty deleted the fix/1677-intake-retry-invalid-proposal branch October 20, 2026 02:51
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