Engineering case study

Prism Review.

A deterministic GitHub Action that prepares pull requests for human review by surfacing the changes that deserve extra attention.

The problem behind the tool.

Human review is expensive attention. The goal was not to replace reviewers, but to give them a focused starting point before they open the diff.

01

Risk is distributed

Tests, dependencies, permissions and migrations may change across many files in the same pull request.

02

Attention is limited

Reviewers need to understand where risk concentrates without manually classifying every changed file.

03

Trust must be earned

A review tool should remain predictable, testable and useful without requiring a paid AI service.

A small, explicit pipeline.

Each stage has one responsibility, from receiving the pull request event to publishing a single reviewer-focused report.

Pull request event
Changed files
Rule engine
Review comment

Deterministic rules, useful signals.

The first version favors explainable checks over opaque scoring. Every finding maps to a concrete change in the pull request.

large-diff

Flags pull requests that exceed configured file or changed-line thresholds.

missing-tests

Highlights source changes that are not accompanied by matching test changes.

sensitive-files

Surfaces changes to authentication, permissions, CI, migrations and deployment files.

dependency-risk

Calls attention to dependency manifests and lockfiles for supply-chain review.

Decisions that shaped the product.

The architecture optimizes for clarity, safe defaults and a low-friction experience for maintainers.

Deterministic core first

Rules can be tested against fixtures, configured per repository and understood without external services. AI remains an optional advisory layer on the roadmap.

One comment, continuously updated

An HTML marker identifies the existing report, allowing Prism Review to update it instead of creating notification noise on every push.

Minimal API surface

The GitHub client uses explicit REST paths and avoids broad helper packages, keeping permissions and behavior easier to audit.

Local analysis without GitHub

Fixture-based analysis makes rule development fast and repeatable without depending on a live pull request.

Security model

Treat pull-request content as untrusted.

  • ✓No repository code executionThe analysis works from GitHub data instead of running code from the pull request.
  • ✓Minimal token permissionsOnly the permissions required to read changes and maintain the report are requested.
  • ✓Patch-content redactionSensitive patch content is redacted before future enrichment flows can use it.

Built to grow without weakening the core.

The roadmap expands the reporting surface while preserving deterministic checks as the foundation.

01

Advisory summaries

Optional AI-generated context after redaction, clearly separated from deterministic findings.

02

GitHub App mode

Queue-based processing and organization-level installation for broader adoption.

03

Risk trends

A dashboard for teams to observe recurring review risks across repositories.

The best review tool makes human judgment more effective.

Explore the implementation, configuration, tests and security model in the public repository.