Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes backlog refine
--writebehavior so structured refinement output is parsed into canonical fields instead of being written verbatim into a single body field. This restores provider-aware writeback behavior for ADO (description + acceptance criteria split) and hardens GitHub rendering fallback when structured sections omit canonical headings.Also refactors the backlog refine command by extracting focused helper methods from an oversized command function to reduce complexity and improve readability/maintainability.
Fixes #N/A
New Features #N/A
Contract References: No new public contract decorators were introduced; existing command and adapter behavior was validated through targeted unit tests and contract-first quality gates already executed for this change.
Type of Change
Please check all that apply:
@icontractdecorators)Contract-First Testing Evidence
Required for all changes affecting CLI commands or public APIs:
Contract Validation
@icontractdecorators on public APIs)@beartypedecorators applied)hatch run contract-test-explorationTest Execution
hatch run contract-test-contracts✅hatch run contract-test-exploration✅hatch run contract-test-scenarios✅hatch run contract-test-full✅Test Quality
How Has This Been Tested?
Contract-First Approach: Added targeted regression tests for refinement output parsing and provider writeback splitting, then validated with formatting/type-check gates and focused unit suites for backlog command and ADO/GitHub adapters.
Manual Testing
Automated Testing
Test Environment
Checklist
@icontract,@beartype)Quality Gates Status
hatch run type-check)hatch run lint)hatch run contract-test-contracts)hatch run contract-test-exploration)hatch run contract-test-scenarios)Screenshots/Recordings (if applicable)
N/A