Repository navigation
Closed
Labels
Description
Part of #9221. The approach is in #9221 (comment): the per-repo shim moves from pull_request_target to pull_request (same-repo PRs only, as github/gh-aw does), and fork PRs are reviewed through /fs-review.
This issue covers only the Go code, its tests and the docs that describe it. A maintainer adds the workflow and shim-template changes to the same PR during takeover, so do not try to edit them.
Rules for this run
- Do not sign off commits. No
git commit -s, noSigned-off-bytrailer. - Do not edit anything under
.github/workflows/orinternal/scaffold/fullsend-repo/templates/. - Do not edit
internal/scaffold/cel_route_test.goorinternal/scaffold/workflow_call_alignment_test.go: they test the workflow files, which change in the takeover. - Backward compatible: every
pull_request_targetbehaviour and test stays as it is. Repos that have not upgraded their shim keep sendingpull_request_target. You addpull_requestnext to it; you never replace it.
Code changes
internal/harnessdispatch/auth.go,IsLifecycleCloseAuthorized: acceptevent.Source.RawTypepull_requestas well aspull_request_target. Everything else in the check stays (GitHub system, change proposal, closed or merged, harness roleretro). Update the doc comment to name both events.internal/harnessdispatch/input/ghaevent.goalready maps both event names throughmapPREvent. No logic change, but make sureraw_typestays the exact event name (pull_requeststayspull_request, not normalized).- Comment-only updates that name the event:
internal/poll/events.go(the[bot]exception comment nearfilterBotEvents) andinternal/cli/run.go(the PR-shaped env var fallback comment). Saypull_request/pull_request_target. - Search
internal/andcmd/for any other non-test check of the literal"pull_request_target"and treat"pull_request"the same way there. Report in the PR body what you found (or that there was nothing else).
Tests (add pull_request rows next to the existing pull_request_target rows)
internal/harnessdispatch/auth_test.go: lifecycle-close is authorized for apull_requestclose and merge with roleretro, not for other roles, and not forpull_requestopened.internal/harnessdispatch/input/ghaevent_test.go: apull_requestpayload maps to the same normalized event as the samepull_request_targetpayload, exceptsource.raw_type. A table over both event names is fine.internal/cli/review_route_parity_test.go: duplicate thepull_request_targetrows forpull_requestwith the samebashandcelexpectations. The bash router inreusable-dispatch.ymlwill routepull_requestexactly likepull_request_targetafter the takeover adds it.internal/cli/retro_route_test.goandinternal/cli/dispatch_route_test.go: retro on apull_requestclose or merge routes and is authorized likepull_request_target(writer, triager, read author, App bot).internal/cli/dispatch_botrole_test.go: a bot-authoredpull_requestopened event behaves like thepull_request_targetone.- Keep patch coverage at or above the 80% target.
Docs
docs/normative/authorization/v1/README.md, section "Lifecycle close" (thepull_request_target.closedexception): the exception covers apull_requestorpull_request_targetclose. Keep the anchor#lifecycle-close-pull_request_targetclosedworking, becausedocs/guides/user/cel-triggers-reference.mdand the same README link to it; if you rename the heading, update both links.docs/normative/authorization/v2/README.md(line aboutpull_request_target.closedto retro): name both events.docs/normative/normalized-event/v1/README.md(theevent_type/pull_request_targetparagraph):raw_typeis the GitHub Actions event name,pull_request_targetorpull_request, never normalized. Leave the example JSON files as they are.- Do not edit ADRs,
docs/architecture.mdor the user guides that describe the shim trigger; the takeover updates them with the workflow change.
Done when
make lintandgo test ./...pass.- All existing
pull_request_targettests are unchanged and pass. - The PR title uses a
fix(dispatch):orfeat(dispatch):prefix per COMMITS.md, with no!: nothing breaks for existing callers.
Reacted by fullsend-ai-triage and fullsend-ai-coder
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
waynesun09 commentedon Nov 9, 2026
/fs-code
Do not sign off commits. No
git commit -s, noSigned-off-bytrailer.fullsend-ai-triage commentedon Nov 9, 2026
🤖 Finished Triage · ✅ Success · Started 8:22 PM UTC · Completed 8:24 PM UTC
Commit:
96e0c43· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.17
fullsend-ai-coder commentedon Nov 9, 2026
🤖 Code ·⚠️ Cancelled · Started 8:22 PM UTC · Ended 8:25 PM UTC
Commit:
96e0c43· View workflow run →fullsend-ai-triage commentedon Nov 9, 2026
This issue is detailed enough to implement without further input. Notes from triage:
internal/harnessdispatch/auth.gois the only non-test literal check ofpull_request_targetfound ininternal/andcmd/;ghaevent.goalready maps both event names. The implementer should still report the search result in the PR body as requested.Proposed test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 9, 2026
🤖 Finished Code ·⚠️ Cancelled · Started 8:22 PM UTC · Completed 8:24 PM UTC
Commit:
96e0c43· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high
fullsend-ai-coder commentedon Nov 9, 2026
🤖 Finished Code · ✅ Success · Started 8:27 PM UTC · Completed 8:48 PM UTC
Commit:
96e0c43· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.66
fix(dispatch): accept pull_request for the lifecycle-close exception