Skip to content

Require explicit review publishers for local readiness #1386

In progress

Description

@eowca

Local readiness silently changes who can approve a PR when the trusted workflow omits delivery.review_publishers or renders it as an empty list. It trusts the active GitHub login. Hosted eligibility requires an explicitly configured publisher list, so the same workflow can produce conflicting verdicts.

Offline replay

Use this trusted origin/main:workflow.toml with a clean task head and a passing loopzero check receipt.

[repo]
name = "audit/example"
[checks]
commands = ["true"]
required_ci = []
[delivery]
review_publishers = []

With GitHub responses stubbed, the active login is local-operator and the PR has a loop-zero review from that login. loopzero ready prints ready and exits 0. Removing the entire delivery section has the same result. Setting review_publishers = ["app[bot]"] makes the same PR exit 1 for missing eligible review. IntelFlo currently declares its App publisher.

The loader collapses omitted and empty lists at src/loopzero/config.py:243. Local readiness substitutes the CLI login at src/loopzero/cli.py:266. Hosted eligibility rejects the missing policy at src/loopzero/hosted.py:44. Loader · Readiness

Acceptance

  • Local readiness and merge exit nonzero with the workflow source, delivery.review_publishers, and the instruction to list intended publisher logins when the trusted list is absent or empty. No active-login fallback is used for the verdict.
  • One offline regression covers absent and empty lists, an active-login review, and an explicitly listed publisher that still qualifies.
  • Keep publisher configuration in the existing loader. review trust: Use the same base revision for local and hosted review publishers #1251 covers stale base revisions, which can occur even with a populated list.

Activity

  1. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Closed PR #1482 in the stale PR sweep. It conflicts with current main and has used both review rounds. This issue remains open for a fresh PR.

  2. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Auth hold on #1786. The current fallback lets the active GitHub identity supply trusted local review evidence. The draft requires publisher logins in the trusted workflow. End condition: the decisions owner or human owner approves changing how existing workflows designate review publishers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions