Skip to content

chore(greenlight): auto-approve all paths and opt in to the two_humans check - #144

Merged
jayantk merged 2 commits into
mainfrom
hydra/i-cmqwosur/pyth-examples
Nov 3, 2026
Merged

jayantk merged 2 commits into
mainfrom
hydra/i-cmqwosur/pyth-examples

Conversation

@hydra-by-douro-labs

@hydra-by-douro-labs hydra-by-douro-labs Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds a two_humans block to .github/greenlight.yml. With it, Greenlight posts a greenlight/two-humans check on every PR: one human for a PR Greenlight could auto-approve, two for any other PR. The check is not required in the ruleset, so this blocks nothing. Making it required is a separate step.

.github/greenlight.yml is on Greenlight's hard floor, so this PR needs a human merge.

Fixes a malformed config and opens all paths to auto-approval

The file on main has no auto_approve_paths key. Greenlight requires it, so the file fails to parse (missing field auto_approve_paths) and Greenlight treats the repo as malformed: it posts no checks here today.

This PR adds auto_approve_paths: ["**"]. The repo holds example code only, so any path may auto-approve. The server's hard floor (HARD_DEFAULT_PATHS in the greenlight deployment) still keeps these paths human-only, whatever this file says:

  • .github/workflows/**
  • .github/greenlight.yml
  • .github/greenlight/prompts/**
  • **/CODEOWNERS

machine_users

  • pyth-ops: Pyth's ops bot user; it merged a PR here in the last 30 days. Also listed on pyth-lazer.

No other bot user accounts among the authors and approvers of the last 30 days. hydra-by-douro-labs is a GitHub App and is excluded on its own.

Impact sample

5 PRs merged since 2026-10-03, none by Greenlight. 2 of them had fewer than 2 humans among the author and approvers. With auto_approve_paths: ["**"], a PR that touches no hard-floor path needs 1 human; a PR that touches one needs 2.

Checks

Parsed both files with Greenlight's own parse_repo_config (dourolabs/prototypes greenlight/server/src/app/eligibility.rs): the file on main fails with missing field auto_approve_paths; the new file loads with enabled=true, auto_approve_paths=[**] and machine_users=[pyth-ops].

🤖 Generated with Claude Code

…s check

The file was missing the required auto_approve_paths key, so Greenlight treated it as malformed. Advisory only: the two_humans check is not required in the ruleset yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repo holds example code only. The server hard floor still keeps
workflows, greenlight.yml, the prompts and CODEOWNERS human-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hydra-by-douro-labs hydra-by-douro-labs Bot changed the title chore(greenlight): add auto_approve_paths and opt in to the two_humans check chore(greenlight): auto-approve all paths and opt in to the two_humans check Nov 3, 2026
@jayantk
jayantk merged commit f8da948 into main Nov 3, 2026
6 of 7 checks passed
@jayantk
jayantk deleted the hydra/i-cmqwosur/pyth-examples branch November 3, 2026 17:48
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.

2 participants