Skip to content

Document and test the hosted ancestor-review pin rollout - #1320

Merged
mergify[bot] merged 4 commits into
mainfrom
lean178/1297-hosted-pin-guidance
Nov 26, 2026
Merged

mergify[bot] merged 4 commits into
mainfrom
lean178/1297-hosted-pin-guidance

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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 bbda1e83f578

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

All 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-bot with what you need.

Review

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

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.

Comment thread tests/test_hosted.py
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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread tests/test_hosted.py
hosted.main()
else:
assert hosted.main() == 0
states = [json.loads(call["--input"])["state"] for call in publisher.calls if "--input" in call]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread SETUP.md
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Parking this approved head (6fbacda) under the size-gate instruction. A clean merge tree with origin/main at bafb356 contains 13,518 test lines against the 13,500 test cap. Source size is unchanged. The full slotted suite passed on the PR head and the six hosted regression cases passed locally.

@eowca
eowca marked this pull request as ready for review November 26, 2026 02:35
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

❌ Left the queue · checks failed

7 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 02:49 · rule main · triggered by @eowca with the @mergifyio queue command
  • ❌ Checks failed · draft #1434
  • 🚫 Left the queue 02:56 · e1223e7

Not proven to be this pull request's failure. It failed on top of the pull requests ahead of it, and was not tested alone.

Reason

The merge conditions cannot be satisfied due to failing checks

  • checks

Failing checks:

To get back in the queue

  • If the failure comes from the pull requests it was tested with, or is a flake, comment @mergifyio queue to queue it again as it is.
  • If it is this pull request's, push a fix: the pull request is queued again once its queue conditions match.

Merge conditions not met when it left the queue

  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = checks
    • check-skipped = checks
    • check-success = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility
    • check-success = Loop-zero Eligibility
1 merge condition met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Parking approved head e1223e7 under the size-gate instruction. Its full local check and readiness passed. Mergify candidate #1434 reported tests=13,905 against the raised 13,850 cap (base 13,764). Mergify reported that the candidate was tested on top of queued PRs and was not tested alone.

@mergify mergify Bot added dequeued and removed queued labels Nov 26, 2026

@loopzero-feder-positronics loopzero-feder-positronics 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.

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.

@mergify mergify Bot removed the dequeued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as c7544eb at 11:55 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 11:49 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1857
  • ✅ Merged 11:55 · c7544eb · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit c7544eb into main Nov 26, 2026
16 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1297-hosted-pin-guidance branch November 26, 2026 11:56
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