How well the check works
Measured on open-source code we didn't write, and on portal itself. Every commit below links to the project it came from.
The numbers
- 1,080 recent commits, 9 flagged, 7 of them right. In December we replayed the latest 120 merged commits of 9 open-source systems through the check, against the spec portal would have written 120 commits earlier, and read the change behind every flag. 1,071 passed. The 7 right flags were real changes to the architecture: services added (spring-petclinic's GenAI service, Nemesis #122) or removed (Hystrix dashboard, eShop's mobile BFF, fastapi-template's prestart and Mailcatcher, Nemesis's Dapr placement). Two were wrong:
- spring-petclinic #125 moved the gateway from Zuul to Spring Cloud Gateway. The gateway already routed to vets-service, but portal didn't read Zuul's routes, so the connection looked new.
- eShopOnWeb #844 added Azure Bicep files that deploy the app and its databases. Portal called them three new parts instead of the ones it already knew.
- No false failures in 252 commits, in an earlier run. We replayed the merged commits of 9 open-source repos through the check. It flagged 2, and both were right: wild-workouts #56 added two packages no part of the spec claims, and Nemesis #122 added two services the spec didn't have.
- Every service added or removed was caught. Across the full histories of five multi-service repos, the check failed on 43 of 43 commits that added a running service and 32 of 32 that removed one.
- A new connection between existing services, added in code: 8 of 8 caught. Across the full histories of 10 multi-service repos (about 7,000 commits), we found every commit where one service's code starts calling another that already ran, without using portal to find them. There are only 8, so this is a small sample: 4 in opentelemetry-demo (services starting to read feature flags) and 4 in robot-shop (payment calling user and cart, shipping calling cart, the web proxy calling shipping).
- 93 of 103 connections read. On 9 systems mapped by hand from their own docs, portal finds 93 of the 103 connections and adds none that aren't there. The 10 it misses are below.
Left alone on purpose: observability tools (Prometheus, Grafana, a collector), local developer tools and test containers.
What it misses
The 10 connections on the hand-mapped systems that portal doesn't read, and why:
- wild-workouts: trainings → trainer, trainings → users, trainer → users. Each app runs as two containers (HTTP and gRPC) from one image, told apart by environment. Portal draws the containers, so the calls land between them, not between the apps.
- wild-workouts: web → trainer, web → trainings, web → users. The web app's API addresses are build variables that no config in the repo sets.
- fastapi-template: frontend → backend. The same: the frontend's API address is a build variable (VITE_API_URL) set outside the repo.
- spring-petclinic: customers-service → config-server. Spring Cloud Config clients (spring.config.import) aren't read yet.
- spring-petclinic: customers-service → discovery-server, api-gateway → discovery-server. Eureka clients (eureka.client.serviceUrl) aren't read yet.
On repos it hasn't been checked against, portal does worse. In December we read 20 multi-service repos we hadn't looked at and checked each map against the project's own docs. The fixes are in. What's left: a repo deployed two ways (Compose and Bicep, say) drawn as one system, and connections made through Dapr, nginx, Feign and YARP, which portal doesn't read yet.
A written rule, on a real change
opentelemetry-demo #2859 (“[product-catalog] use database for products”, merged 7 January 2026) pointed product-catalog at the PostgreSQL database that accounting stores orders in, with the same user and database. We replayed it with the spec portal would have written the commit before, plus one rule describing who used that database then: only_called_by 'accounting, product-reviews'.
The check fails with 1 broken rule: Only accounting and product-reviews call postgresql. product-catalog → postgresql, in the config (docker-compose.yml:506). The rule holds at the commit before, so it's this change that breaks it.
The project has no such rule, and sharing the database may be exactly what its maintainers wanted. With the rule written, it's a decision someone confirms rather than a line in a diff. That's the point of a rule.
On real projects' own history
Each of these is a real commit, replayed with a spec that matched the code just before it.
- SpecterOps/Nemesis #122 · 2026-12-03
sec-fixes. Fails: 2 new parts not in the spec, decompiler-service (compose.yaml:326) and egress-proxy, the new single way out to the internet (compose.yaml:1256). - fastapi/full-stack-fastapi-template #694 · 2024-03-12
Remove Celery and Flower. Fails: 3 parts gone from the code, still in the spec (the queue, Flower and the Celery worker). The architecture description would have gone stale here. - open-telemetry/opentelemetry-demo #457 · 2022-12-07
Implement message queue. Fails: 3 new parts not in the spec (Kafka, accounting, fraud detection), and the share of code the spec covers dropped. - open-telemetry/opentelemetry-demo #1619 · 2024-06-21
Replace Redis with Valkey. Fails: valkey-cart is new and redis-cart is gone from the code, while the spec still has it. - spring-petclinic/spring-petclinic-microservices #141 · 2019-11-21
Circuit breaker. Fails: the pull request removes all of hystrix-dashboard's code, and the spec still describes it.
These keep a description true. Rules go further, as the change above shows: they catch a connection a team decided against.
Portal is built under portal
Most of portal's code is written by a coding agent, on its own branches, and checked by portal against a spec we wrote by hand.
- 430 pull requests checked, 427 merged, and 298 agent pushes read before there was a pull request.
- 5 rules. Four say that the parts which decide a check never call the Claude API. The fifth names the five parts allowed to write the database.
- Live traffic from portal's own services: about 40,000 calls, compared with the spec.
- It catches us too. In December, portal's main branch showed that its web routes call the readers Worker while the spec didn't say so. We added the connection, and the pull request that did it asked a person to confirm the spec change.