Checks that parsed their own evidence

· Automation must reduce risk · Testing comes before trust

You read a post about LLM slop, and your first thought is “wait, does that include my code?”

A few weeks ago I read Boris Tane’s post on slop creep, the slow enshittification of software by LLMs producing fluent mediocrity that gets accepted because it’s hard to tell from competent work. I’d been building a tool partly with LLM assistance, and his framing made me wonder whether another LLM could critique an LLM-assisted codebase well enough to help, so I asked GitHub Copilot to act as a senior engineer and review the architecture.

The result was about what you’d expect, and more useful than I expected.

gh-baseline is a gh extension for auditing GitHub repository security baselines. Its core design is a collect-then-evaluate pipeline: GitHub API calls produce a snapshot, and a set of pure functions evaluate the snapshot against a policy. The boundary keeps checks fast, testable, and reproducible without network access.

Copilot’s review flagged ten items across P0, P1, and P2. It opened with a disclaimer: direct retrieval of the source tree was blocked, so confidence was high in architectural recommendations and medium in implementation-level observations.

Most of the P0 items were already done, including strict unknown handling, schema versioning, and hardened redirect handling. --fail-on-unknown existed, schema versioning was at v3, and the redirect protection was in place. Copilot couldn’t see the code, so it flagged what any thoughtful reviewer would flag for a tool at this stage, which was the most it could do with the information it had.

The package restructure recommendation was wrong. Copilot suggested splitting into eight packages: internal/collector, internal/finding, internal/report, internal/exitpolicy, and so on. For a tool with five real users and one maintainer, that’s premature architecture, the kind of structure you grow into once the seams start to hurt instead of one you impose to satisfy a diagram. I filed it as “revisit at scale” and moved on.

The one item worth acting on was the workflow inspection boundary, which the review flagged as the weakest part of the architecture. Workflow checks were being run against raw YAML strings stored in the snapshot. The checks were parsing their own evidence at evaluation time, every time, including during offline re-evaluation with --snapshot. That meant a workflow YAML change between collection and evaluation would produce different results. The effective check inputs weren’t stable.

I’d half-noticed this before. Seeing it written out as “checks parse at evaluation time, not at collection time” turned a known rough edge into the next thing I fixed.

The fix: parse each workflow’s YAML at collection time and store the structured domain facts in the snapshot. Triggers, top-level permissions, referenced actions, secrets. The snapshot then captures what was true when it was collected. Offline re-evaluation uses those facts, not a re-parse of the original YAML. The check functions become table lookups against structured data rather than parsers embedded in policy logic.

This became WorkflowEvidence in the snapshot schema. The collector runs workflowparse once per file and stores the result. Checks consume w.Evidence.Actions, w.Evidence.Permissions, w.Evidence.Triggers. The boundary between collection and evaluation, which is the core design of the tool, got meaningful for workflows for the first time.

It also unlocked two new checks in the same release cycle: workflow.token-permissions-scope, which catches permissions: write-all (declared permissions, but not least-privilege), and workflow.reusable-callee-pinned, which catches reusable workflow calls not pinned to a commit SHA. That’s the same supply-chain risk as an unpinned action, one layer up.

The slop creep post warns against rubber-stamping LLM output and letting fluency stand in for the judgment that should follow it. What I could add was the context Copilot didn’t have. gh-baseline is a small tool I built for my own convenience and keep improving to complement larger, better-established tools, so I could judge each recommendation against its real users and scale.

Because Copilot told me upfront it couldn’t read the source, I checked every implementation-level observation against the code. That’s how I knew several P0 items were already done, and that the package restructure was the wrong call at this scale, since I knew where the friction was. The workflow inspection boundary was a problem I’d thought about before, but seeing it written as a crisp diagnosis made it easier to act on.

That context is how I knew which ten percent of the review was right. What I don’t know yet is what the same review would have found if it could read the source.

gh-baseline is at github.com/jackson-asmith/gh-baseline. The WorkflowEvidence change landed in v0.8.0.

← All writing