Skip to content

Require named review publishers in trusted delivery workflows - #1786

Draft
eowca wants to merge 2 commits into
mainfrom
lean178/1386-trusted-readiness-publishers
Draft

eowca wants to merge 2 commits into
mainfrom
lean178/1386-trusted-readiness-publishers

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Require named review publishers in trusted delivery workflows

Context and goal

  • Context: Hosted eligibility already requires the trusted workflow to name review publishers.
  • Problem: Omitting that list lets the local verdict trust the active GitHub login.
  • Goal: Make ready and merge fail closed when the trusted list is absent or empty.

Closes #1386

Acceptance

  • Ready and merge reject missing and empty review publisher lists with the workflow source, setting, and operator instruction.
  • An explicitly listed publisher still qualifies.

Base

Base: 6c58d64

Validation

(no loopzero check run recorded)


Start Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, a00e31a, approve

Architecture-Review: unchanged; the pinned workflow still owns review authorization and now requires an explicit publisher list.
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; retain main’s trusted publisher refresh before validating the current list.
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 a00e31a3e23cec094c53f14ea7bd5ad4e76117db, 33.3s: 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)

Findings without a file location:

  • suggestion: The fallback to the active login is still in place behind the new guard — _readiness still uses config.review_publishers or (github.login(),). So does cmd_resolve at line 1835, and the review path at 1015 uses config.review_publishers or (publisher,). The new check in _load_config only stops this fallback for ready/merge with the trusted config. It can still be reached in two ways: loopzero ready/merge --config <file> with no publishers (the args.config early return at line 135 skips the check), and status (line 1882 calls _readiness). With --config the operator writes the publisher list anyway, so this doesn't add any trust. Still, the delivery path now has two rules that can drift apart. Smallest fix: remove the or (github.login(),) fallback from _readiness, so an empty list finds no qualifying review instead of trusting the current token. If --config should also be covered, apply the same publisher check on the args.config branch for ready/merge.

Native Claude output is retained in the restricted local review receipt.

Comment thread src/loopzero/cli.py
config = config_mod.load_trusted(root, previous=previous, refresh=refresh)
if (args.command in {"ready", "merge"} and not getattr(args, "cancel", False)
and not config.review_publishers):
raise config_mod.ConfigError(

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: The error message says what's wrong but not what to do next

The acceptance criteria ask for the workflow source, the setting and an operator instruction. The message gives the source and the setting. Its only instruction is 'must list the intended publisher logins', which doesn't say where to make the change. Consider adding a concrete next step, such as adding review_publishers = ["<login>"] under [delivery] and merging that into the base branch. That matches the more actionable hints in config.py (e.g. lines 113 and 162).

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

waits for test headroom after #1663

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require explicit review publishers for local readiness

1 participant