Skip to content

Publish through gh when it is authenticated, not through a host connector #76

Closed

Description

@datacas

Problem

On PR #74 the cc-resolve-comments stage, dispatched to Codex, tried to publish its status comment through the Codex GitHub connector (mcp__codex_apps__github_add_comment_to_issue). It got HTTP 403 Resource not accessible by integration, even though the authenticated gh CLI in the same environment can comment on that repository. The earlier stages of the same cycle, which used gh, published without trouble.

The skills describe code-host operations as "the configured code-host tooling" with gh as a GitHub example. They don't say which tool to prefer when several are available, so the agent may pick a connector whose permissions differ from the account the runtime verified. The runtime's publication preflight checks gh authentication and push permission, not the connector's, so the preflight passed and the stage still failed.

Expected

  • The cycle skills that publish (cc-implement-issue, cc-initial-review, cc-resolve-comments, cc-rereview) say: when the code host is GitHub and gh is authenticated, use gh for every read and write on the change request. Use a connector or MCP tool only when gh is unavailable. This keeps the tool that publishes identical to the one the runtime's preflight verified. Bitbucket keeps its configured tooling.
  • The runtime states the same rule in every publishing stage's prompt, next to the publication policy it already includes, so it holds even for a host whose agent prefers connectors.
  • If a publication fails with 403/404 through one tool, the stage retries through gh before reporting BLOCKED, and reports which tool failed.

The duplicated-section rules in CONTRIBUTING.md apply if this lands in a shared section.

Acceptance

  • The four skills contain the rule, and the validator passes.
  • A test asserts that the publishing stage prompt names gh as the tool for GitHub publication.
  • Documented in docs/routing.md → Publication boundary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions