docs/design/2026-07-29-github-channel-publication-contract.md
Make GitHub-channel replies safe to publish automatically and traceable after the fact. The channel publishes only the agent's final response through the adapter; intermediate reasoning, tool output, and streaming chunks never become GitHub comments.
gh or the GitHub API to create comments or reviews. The adapter owns public delivery.<no-reply/> sentinel is intentionally suppressed. Whitespace, case, a space before />, and a single wrapping code fence are normalized; any other content is published unchanged.~/.qwen/channels/<channel>-github-audit.jsonl. Records contain time, channel, session, source message, thread, outcome, GitHub comment identity/URL when present, and a SHA-256 plus character count of the reply. They never contain reply text, credentials, or a GitHub token.ChannelBase.ChannelBase.gh/API publication is an operational boundary for the agent, not sandbox enforcement. Enforcing tool-level GitHub write restrictions belongs to the runtime permission model.Focused GitHub adapter tests cover sentinel suppression, normal final-comment delivery, audit fields without reply text, and non-blocking audit write failures. Existing routing and delivery tests remain unchanged.