Skip to content

Add pluggable LLM backends and Granite-friendly drafter postprocessing. - #24

Draft
yashoza19 wants to merge 1 commit into
opdev:mainfrom
yashoza19:feat/drafter-llm-backends
Draft

Add pluggable LLM backends and Granite-friendly drafter postprocessing.#24
yashoza19 wants to merge 1 commit into
opdev:mainfrom
yashoza19:feat/drafter-llm-backends

Conversation

@yashoza19

Copy link
Copy Markdown
Collaborator

Enable skills/messages/openai drafter backends with draft-compare tooling, compact prompts and epic-grouped payloads for small models, and deterministic link/gap enrichment so OpenAI-compatible endpoints produce reviewable drafts.

Summary

  • Add pluggable drafter backends: skills (hosted Claude skill), messages (local SKILL.md via Anthropic), and openai (OpenAI-compatible inference e.g. Granite 8B)
  • Add status draft-compare to run the same collector payload through multiple backends and write per-backend JSON + summary.json
  • Improve small-model output via compact OpenAI prompt, epic-grouped payload summary, and deterministic postprocessing (Jira/PR link injection, needs_human for null epics, stale-epic and unticketed-PR flags)
  • Normalize common Granite state values (in progressprogressing) and coerce null draft fields before validation

Test plan

  • pytest tests/test_evidence.py tests/test_payload_summary.py tests/test_llm_backends.py tests/test_drafter.py
  • status draft-compare --fixture fixtures/payload.json --backend openai -o ./draft-compare/ against Granite APIcast
  • Optional: compare --backend skills baseline when Anthropic credits are available
  • Confirm DRAFTER_LLM_BACKEND=openai + OPENAI_* env vars documented in .env.example work for your cluster endpoint

Enable skills/messages/openai drafter backends with draft-compare tooling,
compact prompts and epic-grouped payloads for small models, and deterministic
link/gap enrichment so OpenAI-compatible endpoints produce reviewable drafts.

Co-authored-by: Cursor <cursoragent@cursor.com>
@exe-prow-github-app exe-prow-github-app Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 3, 2026
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yashoza19

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant