Add centralized slash-command trigger strategy with compiler-generated agentic_commands router workflow#31605
Add centralized slash-command trigger strategy with compiler-generated agentic_commands router workflow#31605Copilot wants to merge 21 commits into
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot make /cloclo and /archie centralized |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
Hey One thing to address before this is ready for review:
If you'd like help, you can assign this prompt to your coding agent:
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot remove legacy trigger file |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Implemented in 6f97404. The compiler now targets |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| permissions: | ||
| actions: write | ||
| contents: read |
There was a problem hiding this comment.
@copilot empty permission at the top level and specific permissions in each job
There was a problem hiding this comment.
Done in 0776395 — set top-level permissions: {} and moved explicit permissions to the route job.
|
@copilot review all comments |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Reviewed and addressed the actionable review threads in commits e471720 and dd5fb5b:
|
|
@copilot do a complete code review of the changes, and the compiled code. focus on permissions, event filtering, proper dispatch on the correct slash command |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Completed a full pass on the PR + compiled outputs with focus on permissions, event filtering, and slash-command dispatch routing. I found one compiled mismatch and fixed it in
Review results:
|
|
|
@copilot mark feature as experimental |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot ensure that the workflow_dispatch generated has the fork and membership protections |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Addressed in 427b3c7 — the generated
Addressed in 427b3c7 — centralized |
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Implemented in 5cc5e03 and c9609be.
|
New Feature
What does this feature do?
Adds centralized slash-command routing so workflows can opt into
on.slash_command.strategy: centralized, with a single compiler-generated router workflow that unions supported events and dispatches only matching command+event routes.Why is this feature needed?
It reduces duplicated slash trigger listeners across workflows, keeps permissions scoped in one router path, and makes slash dispatch behavior more predictable at scale.
Implementation details
.github/workflows/agentic_commands.yml(renamed fromagentic_slash_commands.yml).label_commandstill allowworkflow_dispatchruns.workflow_dispatchis not treated as a trusted event.aw_context.actorand blocks fork-based PR dispatches during compiled workflow membership validation.on.slash_command.strategy: centralizedas experimental via compiler warning output and updates reference docs accordingly.Testing
pkg/workflowpassed.pkg/clipassed.workflow_dispatchactor validation and fork-based PR blocking.