docs(conventions): require agent-relay github primitive for PR creation#72
Merged
khaliqgant merged 1 commit intomainfrom May 8, 2026
Merged
docs(conventions): require agent-relay github primitive for PR creation#72khaliqgant merged 1 commit intomainfrom
khaliqgant merged 1 commit intomainfrom
Conversation
Workflows that own the PR-creation boundary must use @agent-relay/github-primitive (createGitHubStep with action createPR, or GitHubClient.createPR) rather than shelling out to gh pr create. The primitive handles runtime selection across local gh, Nango cloud, and relay-cloud proxy and produces structured outputs the orchestrator can chain on. Master/orchestration workflows that complete an end-to-end deliverable should default to including a final-pr step using this primitive. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.md(and via symlinkCLAUDE.md): when a workflow owns the PR-creation boundary, it MUST use@agent-relay/github-primitiverather than shelling out togh pr create.createGitHubStepfrom@agent-relay/github-primitive/workflow-stepwithaction: 'createPR') and imperative (GitHubClient.create({ runtime: 'auto' })thenclient.createPR(...)).final-prstep by default; specs must opt out explicitly.Why
The primitive handles runtime selection (local
ghvs Nango cloud vs relay-cloud proxy) and produces structured outputs the orchestrator can chain on. Rawgh pr createis opaque to the workflow runner and won't reliably work in cloud / no-ghenvironments. Discovered while diagnosing why a master orchestration that completed seven implementation slices left the user without a PR — the master spec had no PR-creation step at all, and the conventions didn't explicitly mandate the primitive overgh.Test plan
AGENTS.md:195reflects the new rule.🤖 Generated with Claude Code