Skip to content

Chore: add Telegram repo safe workflow#13

Merged
speech115 merged 1 commit into
mainfrom
codex/telegram-github-workflow-cleanup
Jun 26, 2026
Merged

Chore: add Telegram repo safe workflow#13
speech115 merged 1 commit into
mainfrom
codex/telegram-github-workflow-cleanup

Conversation

@speech115

Copy link
Copy Markdown
Owner

Summary

  • add repo-local AGENTS rules, Telegram maintenance skill, and reusable scripts/safe-gate
  • sync agent docs to fix the current tools.md CI drift
  • harden approval replay behavior and preserve typed fast-read MCP errors

Verification

  • scripts/safe-gate
  • MCP: 365 tests OK
  • control-plane: 212 passed, 5 deselected
  • agent docs sync: drift []

GitHub context

  • main CI was failing on stale tools.md in portable-tests; this branch updates the docs sync output
  • PR Fix Telegram MCP error boundaries #12 is currently dirty against main and its two review findings are addressed here

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69bab85a9a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +351 to +354
if isinstance(exc, FastReadToolError):
error["endpoint"] = exc.endpoint
error["tool_error_code"] = tool_error_code(exc.payload)
error["tool_error_payload"] = exc.payload

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Propagate typed fast-read errors to main

In the CLI path this branch never sees tool failures from telegram_read: read_once raises FastReadToolError, but read_with_failover catches it as the base FastReadError and re-raises a generic FastReadError after the loop. For structured MCP errors such as {"code":"permission_denied"}, the final string does not satisfy exception_is_tool_error, so telegram-fast-read-today emits a raw error instead of the new tool_error_code/payload fields.

Useful? React with 👍 / 👎.

Comment thread scripts/safe-gate

(
cd "${ROOT}/mcp"
"${MCP_PYTHON}" -m unittest discover -s tests

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use pytest for the MCP leg

This gate is advertised as running the MCP tests, but unittest discover skips the repo's pytest-style module-level tests, such as mcp/tests/test_metadata_reads.py and mcp/tests/test_metadata_scaffold.py. A regression in those files can pass scripts/safe-gate locally while still failing the release/CI pytest run, so the pre-commit gate is not checking the same MCP suite it claims to cover.

Useful? React with 👍 / 👎.

@speech115 speech115 merged commit 342d486 into main Jun 26, 2026
2 checks passed
@speech115 speech115 deleted the codex/telegram-github-workflow-cleanup branch June 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant