<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d" -->

---
title: Judgment-Based API Governance at Scale | daily.dev
description: Gusto's GraphQL platform team built LLM-assisted tooling to catch subjective API design issues that static analysis can't, such as whether a field should be an...
canonical: https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Judgment-Based API Governance at Scale | daily.dev
og:description: Gusto's GraphQL platform team built LLM-assisted tooling to catch subjective API design issues that static analysis can't, such as whether a field should be an...
og:url: https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d
og:image: https://api.daily.dev/og/posts/5pAFbEJ4d.png
og:image:alt: Judgment-Based API Governance at Scale
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Judgment-Based API Governance at Scale

**[Gusto Engineering](https://daily.dev/sources/gustoeng)** · 8 min read · 5 upvotes · 5 comments

## Summary

Gusto's GraphQL platform team built LLM-assisted tooling to catch subjective API design issues that static analysis can't, such as whether a field should be an enum, paginated, or a custom scalar. They deployed an LLM code review agent to catch new design debt during pull requests, and a separate backward-scanning system that scores existing schema fields 1-5 for policy violations, aggregates findings by team, and feeds a ratcheting model in CI so new changes meet current standards while existing debt is tracked and migrated gradually rather than fixed all at once.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://engineering.gusto.com/judgment-based-api-governance-at-scale-43fe38e0dcb0>

## Questions this post answers

### How can I detect subjective GraphQL API design issues that linters can't catch, like whether a field should be paginated?

Gusto's engineering team built an LLM-based review system that reads a field's schema declaration and resolver implementation alongside written API design policy, then scores the field 1 to 5 for how likely it violates a subjective standard, such as an unbounded list that should be paginated or a string that should be an enum. A score of 3 or higher flags the field for human review with an explanation.

_Teams weighing LLM-assisted governance against manual review can compare real approaches on daily.dev._

### What is a ratcheting model in a CI pipeline for API governance?

A ratcheting model holds new API changes to the current design standard while tracking existing violations as known debt instead of blocking builds or requiring an immediate rewrite. The acceptable threshold tightens over time, so teams migrate or deprecate older patterns gradually as the surface improves, which matters most for public APIs where client migration constrains how fast cleanup can happen.

_Engineers designing debt-reduction strategies for large APIs can find similar CI patterns on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@trevorsuna** · 1 upvotes

> Using one review path for new GraphQL fields and another for existing schema debt seems practical. The ratchet can keep new changes honest without forcing a huge cleanup at once. I would want examples attached to each subjective finding so teams can challenge a score and tune the guidance.

**@nark3d** · 0 upvotes

> Treating subjective API design as something a model can be pointed at in review is hard, because the alternative is a style guide nobody reads and a reviewer's mood deciding whether a field gets paginated.  How did you keep the backward scan from becoming a blame list?  Scoring existing fields 1-5 and aggregating by team is one step away from a dashboard that punishes whoever owns the oldest schema.  Ratcheting works when the debt is tracked as work rather than as a score attached to a person.  The migration path has to be visible before the number is.  The one thing I'd steal is scanning...

**@pdfopsdev** · 0 upvotes

> this is basically the ratchet pattern, raise the bar on new code, grandfather existing debt, applied to schema design instead of lint rules. curious how noisy the LLM reviewer is on false positives, that's usually where these tools live or die in PR review.

**@agustinbarrientos** · 0 upvotes

> It could help to save some of the accepted exceptions as regression cases for the review agent. Each case should include the team's reason for keeping the API shape. Updates shouldn't reopen those decisions unless there is new evidence.

## Similar posts on daily.dev

- [Hybrid Automated Code Review: Deterministic AST Rules \+ LLMs](https://daily.dev/posts/hybrid-automated-code-review-deterministic-ast-rules-llms-cpb0eabf8) · SitePoint · 0 upvotes · 0 comments
- [Eval-Driven Design Systems \(Part 2\)](https://daily.dev/posts/eval-driven-design-systems-part-2--bxceu42yu) · RUBYLAND · 3 upvotes · 1 comments
- [Questioning Our API Governance Reality](https://daily.dev/posts/questioning-our-api-governance-reality-vqw5bvcjd) · API Evangelist · 0 upvotes · 0 comments
- [5 Open-Source Tools to Control Your AI API Costs at the Code Level](https://daily.dev/posts/5-open-source-tools-to-control-your-ai-api-costs-at-the-code-level-wncyok6uu) · finout · 0 upvotes · 0 comments
- [Don't Let the AI Find Your Bugs. Let It Judge Them.](https://daily.dev/posts/don-t-let-the-ai-find-your-bugs-let-it-judge-them--fpqkjl4lo) · Awesome Java Newsletter · 2 upvotes · 1 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#graphql](https://daily.dev/tags/graphql), [#technical-debt](https://daily.dev/tags/technical-debt)

[View this post on daily.dev](https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Judgment-Based API Governance at Scale","url":"https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d"},"datePublished":"2026-09-21T18:23:52.447Z","dateModified":"2026-09-21T18:24:14.113Z","description":"Gusto's GraphQL platform team built LLM-assisted tooling to catch subjective API design issues that static analysis can't, such as whether a field should be an...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f42442d56776f77a0572a9b54ca33e64?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f42442d56776f77a0572a9b54ca33e64?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Gusto Engineering","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Gusto Engineering","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/75cef36847e6483f8ea71383328c6ee2","url":"https://daily.dev/sources/gustoeng"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"architecture,graphql,technical-debt","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Gusto Engineering","item":"https://daily.dev/sources/gustoeng"},{"@type":"ListItem","position":3,"name":"Judgment-Based API Governance at Scale"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d","comment":[{"@type":"Comment","text":"Using one review path for new GraphQL fields and another for existing schema debt seems practical. The ratchet can keep new changes honest without forcing a huge cleanup at once. I would want examples attached to each subjective finding so teams can challenge a score and tune the guidance.","datePublished":"2026-09-22T02:40:45.284Z","url":"https://daily.dev/posts/5pAFbEJ4d#c-2LqrzTdiT","author":{"@type":"Person","name":"Trevor Suna","url":"https://daily.dev/trevorsuna","image":"https://media.daily.dev/image/upload/s--dZ7gXxpp--/f_auto/v1784081551/avatars/avatar_EMoP47rpuw8DNjhp6R1b6?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Treating subjective API design as something a model can be pointed at in review is hard, because the alternative is a style guide nobody reads and a reviewer’s mood deciding whether a field gets paginated.  How did you keep the backward scan from becoming a blame list?  Scoring existing fields 1-5 and aggregating by team is one step away from a dashboard that punishes whoever owns the oldest schema.  Ratcheting works when the debt is tracked as work rather than as a score attached to a person.  The migration path has to be visible before the number is.  The one thing I’d steal is scanning backwards at all, because most governance stops at the PR and never looks at what’s already shipped.","datePublished":"2026-09-28T10:24:58.991Z","url":"https://daily.dev/posts/5pAFbEJ4d#c-dOPmz8wTA","author":{"@type":"Person","name":"Adam","url":"https://daily.dev/nark3d","image":"https://avatars.githubusercontent.com/u/2162621?v=4"}},{"@type":"Comment","text":"this is basically the ratchet pattern, raise the bar on new code, grandfather existing debt, applied to schema design instead of lint rules. curious how noisy the LLM reviewer is on false positives, that’s usually where these tools live or die in PR review.","datePublished":"2026-09-22T18:21:41.157Z","url":"https://daily.dev/posts/5pAFbEJ4d#c-EMz1D17Ks","author":{"@type":"Person","name":"PDFops","url":"https://daily.dev/pdfopsdev","image":"https://media.daily.dev/image/upload/s---8isRBKc--/f_auto/v1782922291/avatars/avatar_orjMeK8QKaaVZwGq7ScPz?_a=BAMAMicg0"}},{"@type":"Comment","text":"It could help to save some of the accepted exceptions as regression cases for the review agent. Each case should include the team’s reason for keeping the API shape. Updates shouldn’t reopen those decisions unless there is new evidence.","datePublished":"2026-09-23T09:13:54.287Z","url":"https://daily.dev/posts/5pAFbEJ4d#c-WOddtH54y","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/judgment-based-api-governance-at-scale-5pafbej4d#faq","mainEntity":[{"@type":"Question","name":"How can I detect subjective GraphQL API design issues that linters can't catch, like whether a field should be paginated?","acceptedAnswer":{"@type":"Answer","text":"Gusto's engineering team built an LLM-based review system that reads a field's schema declaration and resolver implementation alongside written API design policy, then scores the field 1 to 5 for how likely it violates a subjective standard, such as an unbounded list that should be paginated or a string that should be an enum. A score of 3 or higher flags the field for human review with an explanation. Teams weighing LLM-assisted governance against manual review can compare real approaches on daily.dev."}},{"@type":"Question","name":"What is a ratcheting model in a CI pipeline for API governance?","acceptedAnswer":{"@type":"Answer","text":"A ratcheting model holds new API changes to the current design standard while tracking existing violations as known debt instead of blocking builds or requiring an immediate rewrite. The acceptable threshold tightens over time, so teams migrate or deprecate older patterns gradually as the surface improves, which matters most for public APIs where client migration constrains how fast cleanup can happen. Engineers designing debt-reduction strategies for large APIs can find similar CI patterns on daily.dev."}}]}
```

