Repository navigation
Refresh trusted review publishers before readiness - #1751
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
…review-publishers
There was a problem hiding this comment.
loopzero primary review by claude on 62d50970af69dd0a91c833c88d5a0223f2ad65c8, 39.0s: approve (0 critical, 0 important, 2 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.
| cwd=worktree, env_allowlist=worktree_mod.GIT_ENV, timeout=60, | ||
| ) | ||
| if fetched.exit_code != 0: | ||
| raise ConfigError(f"could not refresh origin/{branch}. {hint}") |
There was a problem hiding this comment.
suggestion: Fetch failure drops git's diagnostic
When the refresh fetch fails (authentication, network, a missing remote branch or a 60s timeout that returns a non-zero exit), the user only sees could not refresh origin/<branch>. Git's stderr is thrown away, and the hint ("Fetch the trusted base workflow") doesn't say why the fetch failed. base_revision in the same file already shows the last line of stderr with _proc.tail(done.stderr or done.stdout, 1). Smallest fix: add _proc.tail(fetched.stderr or fetched.stdout, 1) to the ConfigError message. The fail-closed behaviour stays the same.
| its current successful check receipt; hosted eligibility evaluates GitHub | ||
| review evidence using trusted base configuration. Losing local artifacts may | ||
| require rerunning checks or review, and never creates a hosted approval. | ||
| review evidence using trusted base configuration. Local readiness and merge fetch |
There was a problem hiding this comment.
suggestion: Docs say the base is fetched once, but there can be two fetches
load_trusted calls _remote_workflow(..., refresh=refresh) for origin's default branch. When that workflow's repo.base names a different branch, it calls it again for that branch. So ready/merge can fetch two branches, and the default branch it fetches isn't necessarily the configured base. Also, refs/remotes/origin/HEAD is not refreshed, so the branch chosen as the policy source can still come from stale local state. Either reword the doc (e.g. "fetch origin's default branch and the configured base branch at startup") or note that origin/HEAD is taken from local state.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Refresh trusted review publishers before readiness
Acceptance
Notes
The offline publisher rotation test compares both paths with green source checks and a stale local tracking ref. The test diff adds 15 net lines.
Base
main @ c81807a
Validation
Recorded for
62d50970af69uv 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 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review