1. The problem
In one sentence
The server has a route that the spec does not describe, so nothing checks what it returns.
A story
A developer adds GET /undocumented for an internal tool and forgets the spec. Some weeks later, a partner finds it and builds on it. It returns {"id":1} today. Nobody promised the shape, the status codes or the errors, and nobody tests them.
Why it hurts
A route outside the spec is a promise that exists only in practice. It can be changed without a review, and it can expose things the team did not mean to publish.
- For developers: an undocumented route is part of the real API surface. It can carry data or actions that were never reviewed.
- For managers: this is also a security question: you cannot protect or audit what you have not listed.
- For DevOps: compare the routes the server has with the spec in the pipeline. A route that is in the server and not in the spec should fail a review.
Example
The spec has no /undocumented path. The server answers anyway:
GET /conform-fail/undocumented -> 200 OK
content-type: application/json
{"id":1}
A scenario step that calls this URL is not compared with anything, because the spec has no matching operation.
How to detect it without clrsig
- List the routes the framework registers, and compare them with the
pathsof the spec. - Look in the access logs for paths that the spec does not contain.
How to fix it
There are two usual causes:
- The spec is incomplete (the route is meant to be public). Add it, with its responses, so it is checked and documented.
- The route should not be public. Remove it, or protect it and keep it out of the public spec on purpose.
To tell which: ask who calls it and whether they should.
Related problems
AC-020 A documented route does not exist, AC-021 The route exists, but not for that HTTP method, AC-024 The server needs something the spec never mentions.
Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-NC-001 Path not in the spec. State: not checked. It never fails the run and never counts as a checked pass. clrsig does not look for undocumented routes by itself: conform builds its requests from the spec, so it never calls a route the spec lacks. It only notices when a scenario step calls one.
Command
Save this scenario as undocumented.yaml. It sends one GET, so nothing is written:
schemaVersion: "1"
title: undocumented route
steps:
- label: call a route the spec does not describe
request: { method: GET, url: "{{baseUrl}}/undocumented" }
assertions:
- { type: status, operator: eq, expected: 200 }
failPolicy: continue
clrsig run undocumented.yaml \
--env clrsig/environments/conform-fail.yaml \
--spec specs/conform-fail.yaml
Exit code: 0 all steps pass, 1 a step failed, 2 the scenario or the setup is broken. Here it is 0.
What you see
Output from clrsig v0.21.0, recorded on 2026-11-30:
Scenario: undocumented route
PASS call a route the spec does not describe 200 18ms
✓ status eq 200
Spec: 1 of 1 responses were not compared with the spec (no matching operation in the spec: 1)
PASSED 1 passed, 0 failed, 0 skipped (1/1 assertions passed) 19ms
How to read it: the step passes because its own assertion passes. The Spec: line is the signal: the response was not compared with the spec, because no operation matches.
Without --spec, the run gives the same pass and prints no Spec: line at all, so you could not tell that nothing was compared (CS-NC-005).
Where to look
- Desktop app: a scenario result shows the step as “not checked” with the reason “path not in the spec”.
- Reports: the sandbox notes say the “not checked” state is not shown by any report format. Rely on the summary line and the app.
- Help, What We Check:
CS-NC-001andCS-NC-005describe the two cases.
How clrsig helps you fix it
It tells you, in the summary, how many responses were not compared. It does not tell you what the route is or whether it should be public.
Limits
conformnever finds an undocumented route, because it starts from the spec.- A server’s base path (
servers: [{url: https://host/v1}]) is removed before matching, so/v1/usersmatches/users. - Finding all routes the server has needs the server’s own route list.
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-022 · A route on the server is not in the spec
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: a route that exists on the server but not in the spec is a promise that exists only in practice; nothing checks it.
Open with this story: A developer adds a route for an internal tool and forgets the spec. Some weeks later, a partner finds it and builds on it. It returns a small object today. Nobody promised the shape, the status codes or the errors, and nobody tests them.
Say these facts, in this order:
1. The spec has no such path; the server answers 200 anyway.
2. clrsig conform builds its requests from the spec, so it never calls a route the spec lacks.
3. In a scenario, a step that calls such a URL is not compared with anything. The summary says so: one of one responses were not compared with the spec.
4. The step still passes on its own assertion; that is why it is called not checked, not failed.
5. Without the spec, the run gives the same pass and no warning line at all.
6. Two usual causes: the spec is incomplete (add the route) or the route should not be public (remove or protect it).
7. For managers: you cannot protect or audit what you have not listed.
8. For DevOps: compare the server's routes with the spec in the pipeline.
Show on screen: the answer from the undocumented route, the scenario YAML, the command (clrsig run undocumented.yaml --env clrsig/environments/conform-fail.yaml --spec specs/conform-fail.yaml), and the output block, copied exactly from the card.
Name the check: CS-NC-001, Path not in the spec. Say the clrsig version: v0.21.0.
Explain these words once: operation (one method on one path); not checked (looks like a pass, but nothing was compared); scenario (a script of steps with your own checks, called assertions); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: conform never finds an undocumented route; finding all routes needs the server's own route list.
Safety line (if a write is shown): not needed, the scenario sends one GET.
Finish with three recap questions:
1. Why does conform not find this route? (It starts from the spec.)
2. Which line in the output shows the response was not compared? (The Spec line.)
3. What do you do with an undocumented route? (Add it to the spec, or remove or protect it.)
Tease the next video: AC-023 · A path parameter has a different type than the spec says.
Do not: say "contract testing" alone; say clrsig "catches everything"; invent flags, IDs or numbers; read tables aloud; use any fact that is not in the card.