Repository navigation
Document and test the hosted ancestor-review pin rollout - #1320
Conversation
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 6fbacdaf73115b07c654f8be801b780406e6f3ca, 39.5s: approve (0 critical, 0 important, 3 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.
| publisher.respond(f"api repos/{REPO}/pulls/9", fixtures.rest_pr_json( | ||
| pr_json(number=9, headRefOid=target), branch="mergify/merge-queue/main", | ||
| )) | ||
| monkeypatch.setattr(hosted.candidate_mod, "attest_candidate", |
There was a problem hiding this comment.
suggestion: Candidate case replaces the whole attestation, not just its transport
The test monkeypatches hosted.candidate_mod.attest_candidate with a lambda that calls source_policy(7, source) directly. As a result, the candidate rows never run candidate.attest_candidate/_attest: no Mergify lineage, no source-to-candidate compare, and no check that the policy runs on the attested source. The acceptance criteria asked for stubbed GitHub and candidate transport. What these rows actually cover is hosted._run's candidate policy closure plus eligibility.evaluate. They do not show that the real candidate path hands this source to the policy. Smallest fix: keep the real attest_candidate and stub only github.api_get/mergify.api_get with the payload helpers from tests/test_candidate.py (as tests/test_hosted.py already does around line 208). Otherwise, rename or comment the test so it does not claim end-to-end candidate coverage.
| hosted.main() | ||
| else: | ||
| assert hosted.main() == 0 | ||
| states = [json.loads(call["--input"])["state"] for call in publisher.calls if "--input" in call] |
There was a problem hiding this comment.
suggestion: Expected-state expression relies on non-obvious conditional precedence
["pending", ("failure" if candidate else "pending") if change == "ordinary" else "success"] is correct, but it takes some precedence reasoning to see that the outer conditional applies only to the second element. A small expected-state table keyed by (change, candidate) would be easier to check and extend. Also, the candidate+ordinary failure status comes from _mark_refresh_failed (generic "Eligibility refresh failed" message), not from a policy verdict. Consider asserting the description too, so a regression in which path produced the failure is caught.
| eligibility workflow for the existing PR, or run the command below with its | ||
| unchanged source SHA. The refreshed reader can use the approval already on GitHub. | ||
|
|
||
| For inherited review coverage, advance both source and candidate workflow pins to |
There was a problem hiding this comment.
suggestion: Rollout paragraph could state the unsafe window explicitly
The paragraph says to advance both pins, then refresh. It does not say that until both pins move, an older candidate or source reader can still accept an approval followed by an ordinary commit. It also does not say that statuses already published by the old reader stay green until refreshed. One sentence would make the order easier to follow for the coordinator who owns both pins: treat sources as unverified until both pins and the refresh are done, and refresh with the unchanged source SHA using the command below.
|
@Mergifyio queue |
❌ Left the queue ·
|
|
No description provided. |
There was a problem hiding this comment.
loopzero delta review by claude on bbda1e83f578fe2ee45fb1fecfbe81736e3fe882, 8.4s: approve (0 critical, 0 important, 0 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.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Both hosted eligibility paths already reject a post-review source commit on loop-zero main. Document how to advance the two consumer pins and refresh previously evaluated sources. An offline test uses local Git history and both hosted entry points to verify ordinary commits, exact-head reviews, and clean base merges.
Refs #1297
Validation
Recorded for
bbda1e83f578uv 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 0All six offline hosted cases passed against
52ddf36e. The IntelFlo pin changes and the eligibility refresh are owned by the IntelFlo coordinator.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review