Repository navigation
Description
pr-create is not a forge concept, so gh pr create is hardcoded and non-GitHub forges cannot work without a gh shim
The forge abstraction covers 15 concepts (pr-view, pr-list, pr-exists, pr-merge, issue-view, issue-comment, user-identity, …) and every one of them can be routed to a provider preset. pr-create is not among them.
As a result gh pr create is written literally into the skeleton prompts:
codev-skeleton/porch/prompts/pr.md
codev-skeleton/porch/prompts/review.md
codev-skeleton/protocols/air/prompts/pr.md
codev-skeleton/protocols/spir/prompts/review.md
codev-skeleton/protocols/pir/protocol.md
codev-skeleton/protocols/pir/prompts/review.md
codev-skeleton/protocols/bugfix/protocol.md
codev-skeleton/protocols/maintain/prompts/review.md
There is no configuration that redirects those calls. A project on Gitea or Forgejo with forge.provider: gitea fully configured still has every builder shell out to gh at the moment it opens a PR — the single most important write in the whole protocol.
Why this is a bug rather than a missing feature
The abstraction advertises provider independence and delivers it for reads and for pr-merge. pr-create is the one write that has no route, so the contract is incomplete in a way that is invisible until a builder reaches the PR phase and fails. On our fleet this is masked by a hand-maintained gh→Forgejo shim on PATH; without it, no builder can complete a protocol.
It also interacts badly with overlay tooling that deprecates such shims on the assumption that forge.provider: gitea covers the surface. Deleting the shim on that assumption breaks PR creation for every builder.
Scope of the fix
- Add
pr-createto the forge contract, alongside the existing concepts.
Inputs the prompts already have: title, body, base, head. Output: the created PR's number and URL. - Add
scripts/forge/github/pr-create.sh—gh pr create, preserving current behaviour so nothing changes for GitHub users. - Add
scripts/forge/gitea/pr-create.sh—tea pulls create --title --description --base --head, normalized to the same output shape as the GitHub script. - Replace the hardcoded
gh pr createin the skeleton prompts with the forge-concept invocation used by the other concepts.
Testing notes for whoever picks this up
- Body text must survive intact. A shim in our fleet silently dropped
--body-fileand posted empty bodies at exit 0 for months; assert the created PR's body read back from the server equals the input, not that the command exited 0. tea pulls createuses--description, not--body. Confirm against the installedtea, not from memory — the existing preset was authored against the REST API shape rather than the CLI's, which is what gitea forge preset is broken against the real tea CLI (0.14.2) #1137 / [Bugfix #1137] Fix gitea forge preset against the real tea CLI #1146 are about.- Worth confirming whether
tea pulls createneeds explicit--repo/--login. Autodetect prompting viahuhand dying in non-TTY contexts was a real failure ontea0.11.1; it does not reproduce on 0.14.2 with a single configured login, so any claim here should be version-qualified and tested rather than assumed.
Related
- gitea forge preset is broken against the real tea CLI (0.14.2) #1137 / [Bugfix #1137] Fix gitea forge preset against the real tea CLI #1146 fix the gitea preset's read concepts against the real
teaCLI. I verified that branch end to end against a live Forgejo withtea0.14.2 and all six previously-broken concepts pass. This issue is the gap that remains after that lands.
Happy to open a PR for this if the shape above is roughly what you'd want — the pr-create contract signature is the part worth agreeing on before anyone writes it.
Activity
pseudoseed commentedon Aug 14, 2026
On it! Working on a fix now.
pseudoseed commentedon Aug 14, 2026
On it! Working on a fix now.
pseudoseed commentedon Aug 14, 2026
On it! Working on a fix now.
[Bugfix cluesmith#1455] Fix: route PR creation through a pr-create fo…
[Bugfix cluesmith#1455] Fix: keep {{pr_create_command}} out of the prose
[Bugfix cluesmith#1455] Fix: address CMAP findings (codex + claude RE…
[Bugfix cluesmith#1455] Fix: reject an absent PR body instead of post…
[Bugfix cluesmith#1455] Fix: tolerate both tea `.head` shapes; correc…
[Bugfix cluesmith#1455] Fix: create the gitea PR through `tea api`, d…
[Bugfix cluesmith#1455] Fix: three CMAP integration-review findings o…
[PIR #12] fix(doctor): report tea for every gitea concept, not echo o…
[PIR #13] feat(forge): CI concept plumbing — shared timeout, extracti…
[Bugfix cluesmith#1455] Fix: restore Linear's pr-create fall-through;…
Merge pull request #1458 from pseudoseed/builder/bugfix-1455
Fix #1645: key rate limits by resolved backend, and restore pr-list's…
Fix #1645: stop clearing the suspension on cache invalidation
[Bugfix #1902] CMAP: phase consultation has no enabled/parallel switc…
[Spec 1951][Phase: forge_read_concepts] feat: forge read concepts for…