Skip to content

fix: preserve RCA context in bug Q&A#189

Merged
eshulman2 merged 2 commits into
forge-sdlc:mainfrom
eshulman2:fix/rca-qa-ticket-context
Jul 20, 2026
Merged

fix: preserve RCA context in bug Q&A#189
eshulman2 merged 2 commits into
forge-sdlc:mainfrom
eshulman2:fix/rca-qa-ticket-context

Conversation

@eshulman2

@eshulman2 eshulman2 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Root cause

The shared answer_question node is annotated with FeatureState. LangGraph uses node input annotations to filter state channels, and FeatureState does not define the bug-only rca_content or rca_options fields. Consequently, the compiled bug workflow removed both fields before invoking Q&A, producing a prompt with a blank RCA section even though the RCA had been generated and displayed at the preceding gate.

Direct qa_handler unit tests did not expose this because they called the function without compiling it into a LangGraph state graph.

Fix

  • register a BugState-typed Q&A wrapper in the bug graph so generated RCA content and fix options reach the shared handler
  • add a compiled-graph regression test that proves both fields survive LangGraph input filtering
  • include Jira summary and description in the generic Q&A prompt
  • fall back to the ticket description when artifact generation context has no raw requirements

Testing

  • 173 focused tests passed
  • Ruff passed

@eshulman2 eshulman2 changed the title fix: include ticket context in artifact Q&A fix: preserve RCA context in bug Q&A Jul 20, 2026
@eshulman2
eshulman2 merged commit 30d14e0 into forge-sdlc:main Jul 20, 2026
6 checks passed
@eshulman2
eshulman2 deleted the fix/rca-qa-ticket-context branch July 20, 2026 14:12
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