Repository navigation
Consolidate GitHub response parsing and Mergify retries - #1917
Conversation
Architecture-Review: unchanged; response validation, pagination bounds, retry budgets, and transport contracts remain intact. Co-Authored-By: Codex <noreply@openai.com>
…575-github-mergify-cut
There was a problem hiding this comment.
loopzero primary review by claude on 9489626130295f792fd966e742cab3bbe5e81cb2, 26.7s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| else message or body.strip() or stderr.strip().removeprefix("gh:").strip()) | ||
| message = " ".join(_redact_tokens(message, token).split())[:400] or "no response message" | ||
| path = (args[1] if len(args) > 1 else "").split("?", 1)[0] | ||
| if "://" in path: |
There was a problem hiding this comment.
suggestion: Inlining _api_path makes _api_error_detail longer to save a few lines
_api_path was a small pure helper with a clear name. Moving its logic into _api_error_detail makes a function that already handles status, request ID, payload decoding and redaction even longer, and the parsing logic loses its name. I checked the behavior and it is unchanged. Nothing else references _api_path, so this does no harm right now. Still, if you later need to parse endpoints anywhere else, this inlined code will tempt someone to copy it. Smallest fix: keep the helper, and save lines elsewhere if the budget allows.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Consolidate GitHub response parsing and Mergify retries
Context and goal
Refs #575
Acceptance
Base
Base: 48edeec
Validation
Recorded for
948962613029uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0(filled by loopzero check)
Review
(filled by loopzero review)
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Focused proof
test_github.pyandtest_mergify.pyeach ran together on48edeec0ande24bd1d6. Both runs passed all 302 cases.20fa3f21before the full check. This PR's patch still only changes the two scoped adapters.