Summary
Wire GitHub data loading, AC extraction, and the LLM adapter into one pipeline: build a prompt that requests JSON matching an agreed schema (criterion id, status, rationale, evidence paths), validate the response, and post an accessible markdown advisory comment mapping each criterion to satisfied/partial/not found/not applicable with explicit uncertainty.
Scope
- In scope: End-to-end path for same-repo PRs with linked issues; synthetic test harness or fixtures proving mapping quality; GitHub API retry for rate limits (once + backoff per PRD); LLM timeout/5xx single retry; fallback PR comment when validation fails (no raw dump).
- Out of scope: Merging duplicate bot comments (GHA-PR-LLM-AC-006), diff/token truncation limits (GHA-PR-LLM-AC-007) except minimal stub if needed.
Acceptance criteria
Dependencies
- Depends on: GHA-PR-LLM-AC-001, GHA-PR-LLM-AC-002, GHA-PR-LLM-AC-003, GHA-PR-LLM-AC-004
- Blocks: GHA-PR-LLM-AC-006, GHA-PR-LLM-AC-007
Notes
Document the exact JSON schema in repo docs (PRD rubric follow-up). Prompt injection mitigations: treat issue/PR text as untrusted; instruct model to ignore embedded instructions; sanitize rendered comment.
Stacked delivery
N/A — v1 is advisory-only; no user-facing feature flag required beyond optional repo enablement documented in rollout.
PRD: https://github.com/hyperjumptech/mediapulse/blob/prds/pr-github-llm-ticket-acceptance.prd.md
{
"hyper_pm_id": "01KP1FZ5ZZVQ9RWMKHDYRESDME",
"type": "ticket",
"parent_ids": {
"epic": "01KP1JW0X7SZ4SYS4N68M8ZDWA",
"story": "01KP1JW25FFFPZAVZHQV4RZYNJ"
},
"depends_on": [
"01KP1FZ601BJV71KX0Z84K466J",
"01KP1FZ600JR9ZC7GE427GG527"
]
}
Summary
Wire GitHub data loading, AC extraction, and the LLM adapter into one pipeline: build a prompt that requests JSON matching an agreed schema (criterion id, status, rationale, evidence paths), validate the response, and post an accessible markdown advisory comment mapping each criterion to satisfied/partial/not found/not applicable with explicit uncertainty.
Scope
Acceptance criteria
Dependencies
Notes
Document the exact JSON schema in repo docs (PRD rubric follow-up). Prompt injection mitigations: treat issue/PR text as untrusted; instruct model to ignore embedded instructions; sanitize rendered comment.
Stacked delivery
N/A — v1 is advisory-only; no user-facing feature flag required beyond optional repo enablement documented in rollout.
PRD: https://github.com/hyperjumptech/mediapulse/blob/prds/pr-github-llm-ticket-acceptance.prd.md
{ "hyper_pm_id": "01KP1FZ5ZZVQ9RWMKHDYRESDME", "type": "ticket", "parent_ids": { "epic": "01KP1JW0X7SZ4SYS4N68M8ZDWA", "story": "01KP1JW25FFFPZAVZHQV4RZYNJ" }, "depends_on": [ "01KP1FZ601BJV71KX0Z84K466J", "01KP1FZ600JR9ZC7GE427GG527" ] }