Skip to content

fix(ci): the index sync merges with the entitlement it actually holds - #88

Merged
David-Noble-at-work merged 1 commit into
developfrom
fix/index-sync-merges-with-entitlement
Aug 28, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
fix/index-sync-merges-with-entitlement

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Every PR this workflow opened was left green and stranded. Four accumulated in two days — #83,
#85, #87, and the branch behind #80 — each with quality-gate and validate-yaml-schemas passing
and nothing wrong but the merge.

Two rulesets, one of them bypassable

Ruleset Requires Automation app
org 12426847 an approving review is a bypass actor, pull_request mode
repo 21604093 quality-gate, validate-yaml-schemas not a bypass actor

--admin was dropped on the reasoning that it "cannot grant entitlement the app does not have".
True of 21604093. False of 12426847. Conflating the two broke the workflow: without the flag,
gh's client-side veto refuses on REVIEW_REQUIRED before the server is ever asked — and no human
reviews a machine-generated index update.

What the flag does, and does not

It stops gh refusing on a requirement the app is entitled to bypass. A red quality-gate or
validate-yaml-schemas still refuses, because 21604093 has no bypass for this actor. The freeze
is unaffected
— a failing registry still stops the sync.

Why not --auto

allow_auto_merge is false on this repository. Enabling it would not help: auto-merge waits for
all requirements, and the review will never arrive. require_last_push_approval is true, so the
app cannot approve its own push either.

Companion fix in devlore-cli's knowledge-extract.yaml, which carries the identical defect for the
identical reason.

Every pull request this workflow opened was left green and stranded. Four
accumulated in two days -- #83, #85, #87, and the branch behind #80 -- each with
quality-gate and validate-yaml-schemas passing and nothing wrong but the merge.

Two rulesets apply, and only one of them is bypassable here:

  org 12426847    requires an approving review; the NobleFactor Automation app IS
                  a bypass actor, in pull_request mode
  repo 21604093   requires quality-gate and validate-yaml-schemas; the app is NOT
                  a bypass actor, so a red check refuses the merge server-side

--admin was dropped on the reasoning that it "cannot grant entitlement the app
does not have". True of 21604093. False of 12426847. Conflating them broke the
workflow: without the flag, gh's client-side veto refuses on REVIEW_REQUIRED
before the server is ever asked, and no human reviews a machine-generated index
update.

The flag does exactly one thing: it stops gh refusing on a requirement the app is
entitled to bypass. A red gate still refuses, because 21604093 has no bypass for
this actor. Nothing about the freeze changes.

--auto is not the alternative. allow_auto_merge is false on this repository, and
even enabled it would queue behind a review that never arrives;
require_last_push_approval is true, so the app cannot approve its own push either.
@David-Noble-at-work
David-Noble-at-work merged commit 8efec70 into develop Aug 28, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/index-sync-merges-with-entitlement branch August 28, 2026 20:21
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