framework git wrapper: Gitea comment action silently posts nothing #812
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
packages/mosaic/framework/tools/git/pr-review.shreports success for the Giteacommentaction even though no comment is posted.Root cause
The Gitea branch invokes:
The installed Tea CLI has no
pr commentsubcommand. It falls back to displaying/listing pull requests, exits zero, and the wrapper then printsAdded comment to Gitea PR #<number>.Integrity impact
A caller can believe a durable reviewer-of-record or gate comment exists when Gitea persisted nothing. This creates a false-positive provenance gate and can permit a merge without its required durable artifact unless the comment is independently read back.
This is distinct from #795, which concerns Codex PR-mode diffing the wrong branch.
Acceptance criteria
commentuses a supported Tea/API operation and targets the named PR.approveandrequest-changesbehavior remains covered.Verified interim discipline
Read back the PR comments from Gitea and verify the exact-head reviewer artifact exists before queue guard or merge. Never trust the wrapper success echo alone.
OpenBrain framework-improvement capture:
5c2eb047-ca18-42bb-9b46-51f9fa8bb1d9.