DEV Community

Cover image for GEL: Five Plain CI Checks for AI Pull Requests, Starting in Report Mode
flisk
flisk

Posted on Edited on

GEL: Five Plain CI Checks for AI Pull Requests, Starting in Report Mode

Your agent says all tests pass. Is it true? GEL (gel.flisk.si) is a set of five checks that run on every pull request. It uses no model and no network, and works in any language.

The five guards

  1. secret-scan. AWS, GitHub, Anthropic, OpenAI, Stripe live and Slack keys, and private key blocks. It skips tests, sample keys and placeholders.
  2. pinned-actions. Another org's action must be pinned to a commit SHA. Your own org, and owners you list in trusted_owners, may use tags.
  3. workflow-permissions. Every workflow job gets a token scope, never write-all, and pull_request_target never checks out the fork's code.
  4. dead-links. Links to files that are not in the repo.
  5. done-without-green. The PR says "all checks pass" and a check on its last commit failed, timed out or was cancelled.

Why the fifth one exists

The page ran it on public PRs from 2026-10-01 to 2026-11-09 whose text says things like "all tests pass". Of 231 that had checks to compare, 35 said green while a check on the last commit was red. 19 of those were merged anyway. The page notes that some red checks were optional ones, and GEL cannot see which checks are required.

What it misses

The page lists limits, measured the same way. GEL did not catch a Google API key in a source file, or a password inside a database URL. Those are not in the rules yet. It checks that a token scope is set, not that it is needed. It reads workflow files only, so push protection and branch rules are not seen.

Install

The page shows three ways. As a step:

- uses: actions/checkout@v4
  with: { fetch-depth: 0 }
- uses: flisk-sh/gel@v1
Enter fullscreen mode Exit fullscreen mode

As a job:

jobs:
  gel:
    permissions: { contents: read, checks: read, pull-requests: read }
    uses: flisk-sh/gel/.github/workflows/gel.yml@v1
Enter fullscreen mode Exit fullscreen mode

On your laptop:

npx github:flisk-sh/gel run --root .
Enter fullscreen mode Exit fullscreen mode

Report first, block later

A pull request passes through GEL's five guards into report mode, gets logged to gel-record.jsonl, and a guard is promoted to block after 20 runs, 5 labelled findings and 95% precision, or demoted on one false alarm.

GEL starts in report mode. To make one guard block, add a gel.json:

{ "mode": "report", "guards": { "secret-scan": "block" }, "trusted_owners": ["your-org"] }
Enter fullscreen mode Exit fullscreen mode

Every run writes one JSON line to gel-record.jsonl. The page's rule for promoting a guard to block is: after 20 runs, 5 labelled findings and 95% precision. A blocking guard is demoted on one false alarm. GEL never changes your policy by itself. It writes advice, and a person edits gel.json.

A note on the numbers

The bench figures (such as 19 ms median per repo) come from the page, run on 2026-11-16 on 30 pinned public repos. Run it yourself with node bench/run.mjs && node bench/claims.mjs.

Top comments (0)