Findings and accounts
Read API
The read API returns what the web app shows, as JSON. Use it to pull findings into a script, a dashboard, or a CI check. Every route answers GET and returns application/json.
Admin actions and the audit log are in the web app only. Their routes answer an admin’s browser session and never an API key, so this page does not list them. See Audit log.
Authenticate with a read key
The base URL is https://app.otherlode.dev/api/v1. The API answers only on that host. The host ingest.otherlode.dev is for agents and collectors, and it answers 404 for every API path.
Send a read key as a bearer token:
curl -H "Authorization: Bearer $OTHERLODE_READ_KEY" https://app.otherlode.dev/api/v1/me
An admin creates the key in the web app. See Manage API keys. A key has one scope. An ingest key, the kind an agent or a collector holds, gets 403 on every API route and reads nothing.
The web app calls the same routes with the session cookie of a signed-in user. A request that carries an Authorization header is judged on the key alone, even when it also carries a valid cookie, and an empty header counts as present. The read API has no rate limit.
Errors
Every error a route on this page returns has a JSON body with one field, error. A path that names no route gets 404 with a plain-text body.
{"error": "service not found"}
| Status | error | Cause |
|---|---|---|
400 | A sentence naming the parameter, such as “limit must be between 1 and 5000” | A parameter is missing or has a value the route refuses. The route tables below list the values. |
401 | “unauthorized” | The header is missing, is not a bearer header, or holds an unknown or revoked key. |
403 | “this route needs a read key” | The key is valid and has the ingest scope. |
404 | “service not found” or “service not tracked” | The tenant has no such service, or the service holds no slot of your service cap. See name a service in the path and GET /services. |
422 | “the call graph of this scope is too large to resolve” | /unreached-clusters for a scope whose clusters passed the limit on the work Otherlode does to resolve them, and /call-edges, /class-call-edges and /method-call-edges for a scope whose call graph passed it. /graph-roots and /graph-closure answer it when either passed. A live read has a lower limit than a snapshot, so a scope can answer 422 live and 200 from its snapshot. The clusters also resolve test calls, so /unreached-clusters can answer 422 while the three call-edge routes answer 200. See A graph too large. |
422 | “the scope is too large to read live” | A live read whose scope is too large for the server’s memory. It stopped and stored nothing. Send a request that a snapshot serves. An environment or a version does not make the read smaller, and a window with active_within_days does only when it leaves out some runs of an environment and version it includes. |
500 | “internal error” | Otherlode failed. The body never names the cause. |
503 | “unavailable”, with Retry-After: 5 | Otherlode could not check the key. The key may still be valid, so retry after the number of seconds in Retry-After. |
503 | “another read of live findings is running; try again”, with Retry-After: 5 | A live read, of any route that has one, waited 20 seconds for its turn, or its request ended while it waited. Retry after the number of seconds in Retry-After. |
504 | “the read did not finish in the time allowed” | A live read had not finished 54 seconds after the read started, the wait for its turn included. It stopped, so the same request is likely to stop again. Name an environment or a version, or read a scope that has a snapshot. |
A route checks the service before it checks the other parameters. A request for an unknown service gets 404 even when its limit is also wrong.
Name a service in the path
A service is known by its namespace and its name together. The same name in two namespaces is two services. Every per-service route has two shapes:
| Service | Path prefix |
|---|---|
| In the unspecified namespace | /api/v1/services/{service}/ |
| In a named namespace | /api/v1/namespaces/{namespace}/services/{service}/ |
Both shapes take the same parameters and return the same fields. The rest of this page writes routes as /services/{service}/... and lists no second shape.
- Both values come from
/services. Thenamespaceandnamefields of/servicesgive both values for the path. Anamespaceofnullmeans the first shape. - A slash is escaped. Write a
/in a namespace or a name as%2F, as in/api/v1/namespaces/team%2Fa/services/checkout/report. - Case is kept. Otherlode trims spaces around either value and keeps the case.
Shopandshopare two namespaces. - The unspecified namespace stands alone. It never matches a named one, even one called
none. A blank or unknown namespace in the second shape gets404and never falls back to the first shape.
A service that only test runs reached is missing from /services, but its own routes answer.
Identifiers are the agent’s
The API names things the way the agent does and never returns a database row id. A class is its dotted binary name, such as com.acme.OrderService or com.acme.Outer$Inner. A method is its class, its name and its JVM descriptor, such as (Ljava/lang/String;I)V. An endpoint is its verb, its route_template and its template_kind. A dependency is its identity_key, the sorted group:artifact pairs of its identities joined with commas. A backslash, colon or comma inside a group or an artifact gets a backslash before it, so a group a:b reads a\:b. An instance is its instance_id, and a run is its run_id. See the agent’s classes, endpoints and dependencies pages for how each name is formed.
Read the shared parameters and fields
Scope parameters
Every per-service route takes these three parameters. They choose which runs a route reads. See Scope and environments for what they mean.
| Parameter | Value | Effect |
|---|---|---|
environment | A name | Keeps only runs in that environment. Otherlode trims the name and lowercases it, so PROD and prod match. none selects the runs that named no environment. A blank value means every environment. This is the one scope parameter that also picks which dates a route shows. |
version | A string | Keeps only runs that reported exactly that version. An unset value means every version. |
active_within_days | A whole number, 1 to 36500 | Keeps only runs last seen within that many days. Another value gets 400 with “active_within_days must be a whole number from 1 to 36500”. |
An environment or a version the service never reported is not an error. The route answers 200 with empty lists and zero counts.
Paging
Every list route takes limit and offset. The routes without them are /me, /services, /instances and /report.
| Parameter | Default | Range | Error |
|---|---|---|---|
limit | 500 | 1 to 5000 | “limit must be between 1 and 5000” |
offset | 0 | 0 or more | “offset must be 0 or greater” |
Each list response carries total, the number of matching rows across every page. Otherlode computes it with the same filters and before limit and offset apply. To read everything, request pages until offset reaches total. Rows come in a fixed order. A page counts the unit the route lists. On /never-hit a site is one row, however many outcomes it has, and on /unreached-clusters a cluster is one row, however many members it has.
Filters shared by list routes
| Parameter | Routes | Effect |
|---|---|---|
class_prefix | Every list route except /dependencies, /absent-references, /class-call-edges and /method-call-edges | Keeps rows whose class name starts with the prefix. On /endpoints it matches the handler class, on /unreached-clusters the root’s class, on /call-edges the caller’s class, and on /removed the class of a class row or a method row, so a prefix drops every endpoint and dependency row. |
known_for_days | /never-hit, /never-initialized, /never-instantiated, /unreached-clusters, /dependencies, /endpoints | Keeps only code known for at least that many days. A whole number from 1 to 36500, else 400 with “known_for_days must be a whole number from 1 to 36500”. A row with a capped date is kept when that date is old enough. See Dates. |
A route ignores a parameter it does not read.
Fields every response uses
- Timestamps are RFC 3339 in UTC, such as
2026-09-24T21:40:10Z. Every date is the time Otherlode received the data, exceptas_ofandlast_failed_at, which are times it computed or tried to compute a result. See Dates. as_ofandfrom_snapshotare on every200of the routes read from a snapshot.as_ofis when Otherlode read the data.from_snapshotistruewhen a stored snapshot gave the answer andfalsewhen Otherlode read it live.- Absent values are
null. A list with nothing in it is[], nevernull. watched_sinceis the time the service first reported in the scoped environment. With noenvironment, it is the earliest across the environments. It isnullwhen nothing matches. A finding’s age means something only against it. The routes that carry it say so.first_known_at,first_hit_at,last_hit_atand their endpoint names (first_called_at,last_called_at), optional-parameter names (first_omitted_at,last_omitted_at) and dependency names (first_loaded_at,last_loaded_at) are the dates Otherlode keeps for each location. Each last date can trail the true one by up to an hour, since it moves only when the stored date is more than an hour old. See Dates.dates_cappedistruewhen the row has no service-wide dates, so its dates come from the runs in scope. A capped first date can be later than the true one, and a capped last date earlier.instances_knownis the number of distinct instances with an in-scope run that knows the location.
Routes read from a snapshot
/report, /never-hit, /stale-hit, /never-initialized, /never-instantiated, /unreached-clusters, /probes, /classes, /removed, /endpoints, /optional-parameters, /dependencies, /absent-references, /never-loaded, /failed-to-load, /failed-to-initialize, /unclassified, /call-edges, /class-call-edges, /method-call-edges, /graph-roots and /graph-closure read a stored snapshot for these scopes, when the request has no active_within_days:
- no
environmentand noversion; - an
environmentand noversion; - an
environmentand one of the 3 newest versions in it. A version is newer when its newest production run in that environment started later.
A snapshot holds the scope’s report and every row of the other seventeen routes. /class-call-edges and /method-call-edges read the rows of /call-edges. /graph-roots and /graph-closure read the code path graph that the snapshot stores, judged when Otherlode computed it. The route applies the request’s other parameters to those rows when the request arrives, as a live read applies them: class_prefix, class, method_name, method_descriptor, kind, routed, routine, order, include_generated, include_unread, framework, outside, status, limit and offset, days on /stale-hit and /endpoints, and known_for_days on /never-initialized, /never-instantiated, /dependencies and /endpoints. A day parameter counts back from the snapshot’s as_of, not from the time of the request, so /endpoints finds the live endpoints from their last call at as_of. failing_for_days on /failed-to-load and /failed-to-initialize also counts to as_of. known_for_days on /never-hit and /unreached-clusters changes which code folds into another row or cluster, so a request to either route with it is computed live.
Otherlode refreshes a snapshot when something its findings read has changed in the runs it covers, at most once every 15 minutes, and at least once every 2 hours with nothing changed. On the free plan both are 6 hours. A refresh works on a whole service: when one snapshot is due, every snapshot of the service is refreshed together from one read of its data, and they all have the same as_of. A batch that only raises counts on code hit within the last day changes nothing, unless they are counts of an optional parameter or the method it belongs to, which the report’s optional_parameters counts read. A version’s snapshot covers that version’s runs. It counts test runs and stripped runs only while one of the version’s other runs is still reporting. A change that can take findings away refreshes without the wait, on every plan: a new run, a run that ends, passes its live deadline, reports again after it or falls behind, a run’s first delta batch, a run’s first report of a disabled endpoint module, and a class listing or static baseline that completes. How findings are judged says which snapshots each refreshes. A snapshot’s findings can trail the data by up to about 20 minutes, the interval plus the 5-minute period of the refresh job, and more while the refresh has a backlog. Counts and dates on it, such as hits_total and last-hit times, can trail by up to about 2 hours. On the free plan both can trail by up to about 6 hours. The routes trail together, so a count in the report matches the total of a route read from the same snapshot, and can differ from a route computed live by what arrived in that time. Every other request is computed live when it arrives: a version outside the 3 newest, a version with no environment, any active_within_days, known_for_days on /never-hit or /unreached-clusters, a service or environment that only test runs have reached, and an environment the service does not track. /instances is always computed live. See How findings are judged.
Every 200 of these routes carries as_of, the time Otherlode read the data, and from_snapshot. For a snapshot, from_snapshot is true and as_of is the time the snapshot was computed. For a live read, from_snapshot is false and as_of is the time the read started.
Live reads
A request that no snapshot serves is a live read. That is any of the routes read from a snapshot, /class-call-edges, /method-call-edges, /graph-roots and /graph-closure included, for a scope or a parameter that has no snapshot. Otherlode works its answer out from the stored runs when the request arrives. It runs one live read at a time on each server instance, and every tenant shares that turn, so a second live read waits for the first to finish, whoever sent it. A read that has waited 20 seconds without its turn, or whose request ends while it waits, answers 503 with Retry-After: 5. It has read nothing by then, so repeating the request is safe. A read stops and answers 504 54 seconds after it starts, wait for its turn included, and the next read takes its turn. A stage of a large read can run a few seconds past that. A live read of a scope too large for the server’s memory stops once it has counted the scope’s rows, and answers 422. A live read of an environment or a version loads the whole service, so naming one does not help. A window with active_within_days loads fewer runs only when it leaves out some runs of an environment and version it includes, and a report, /unreached-clusters or graph read of one also reads the class names of every run. A request that a snapshot serves is never refused. A request that a snapshot serves never waits, and neither does /instances.
A refresh can replace a snapshot while you page through a route, and the pages of two snapshots do not fit together. When a later page has another as_of than the first and either page has from_snapshot true, start again from the first page. Two live pages always differ in as_of, since each is read when it arrives, so do not start again for them.
A snapshot scope with no snapshot yet answers 202 with no rows or counts and a Retry-After: 60 header:
{"status": "computing", "last_failed_at": null}
A new service, environment or version has none until the next refresh computes it, and neither has any scope after Otherlode changes how findings are judged. The refresh runs every 5 minutes. It computes your missing snapshots before your other snapshots, and among them every scope with no version before any scope with one. It computes a service at a time, so the missing snapshots of a service arrive together. The 202 is not an error. Repeat the request a minute or two later. A route never computes a snapshot scope live in its place.
last_failed_at is the time the last refresh of the scope failed, or null when none has failed since its last snapshot. A refresh that stopped without a result, such as one that ran out of memory, counts as failed at the time it started, once it is more than 6 minutes old. A refresh fails as a whole service, and every snapshot of the service stays as it was. The failure holds back every scope of the service for an hour, so a scope can wait with last_failed_at null while another scope of its service failed. A failure that a retry can fix, such as a lost database connection, does not hold the service back: the next run tries it again, unless that retry fails too. The 202 never says why a refresh failed.
GET /me
Names the tenant of the credential.
{"tenant": "acme", "user": null}
| Field | Type | Meaning |
|---|---|---|
tenant | string | The tenant’s name. |
user | object or null | The signed-in user, {"email", "role"} with role admin or viewer. A request made with a key carries no user, so the field is null. |
A call to /me is the quickest check that a key works.
GET /services
Lists every tracked service that a production run has reported, ordered by namespace and then name. The unspecified namespace comes first. A service past your tenant’s service cap is not tracked and appears in not_tracked_services instead.
{
"services": [
{
"namespace": null,
"name": "checkout",
"instances": 3,
"last_seen_at": "2026-10-06T14:02:51Z",
"watched_since": "2026-08-19T08:30:12Z",
"environments": [
{"name": "prod", "watched_since": "2026-08-19T08:30:12Z"},
{"name": "staging", "watched_since": "2026-09-02T11:47:30Z"}
],
"not_tracked_environments": []
}
],
"not_tracked_services": [
{
"namespace": null,
"name": "reports",
"instances": 1,
"last_seen_at": "2026-10-06T13:40:02Z"
}
]
}
| Field | Type | Meaning |
|---|---|---|
namespace | string or null | The service’s namespace. null is the unspecified namespace. |
name | string | The service’s name. |
instances | integer | Distinct instances with a production run. It counts instances, not runs. |
last_seen_at | timestamp or null | The latest time any production run was seen. null when no instance is left. |
watched_since | timestamp or null | The earliest watched_since of the environments. |
environments | array | Each watched environment, ordered by name. Each is {"name", "watched_since"}. |
not_tracked_environments | array | The names of the environments a production run reported in after the service reached its environment cap, ordered by name. No dead-code claim counts their runs. instances and last_seen_at do. See Scope and environments. |
Each entry of not_tracked_services is a service that a production run has reached and that holds no slot of your tenant’s service cap. Its runs are stored, and no dead-code claim counts them. The array is empty when there is none.
| Field | Type | Meaning |
|---|---|---|
namespace | string or null | As in services. |
name | string | The service’s name. |
instances | integer | Distinct instances with a production run, counted as in services. |
last_seen_at | timestamp or null | The latest time any production run was seen, as in services. |
Every route under /services/{service}/ for a service that is not tracked answers 404 with {"error":"service not tracked"}. A service that does not exist answers {"error":"service not found"}. See Scope and environments for how a service gets a slot.
A test run counts toward none of these figures. See Inventory for the same list in the web app.
Add each service’s finding counts
GET /services?include=findings adds a findings object to each entry of services. Without include, the response has no findings. Any other value of include answers 400 with include must be "findings".
The counts come from the service’s all-environments snapshot, the one /report reads with no environment. They mean what the same fields mean in the report. Otherlode computes nothing for the request, so a service whose snapshot is missing answers computing.
{
"status": "ready",
"as_of": "2026-10-06T14:00:12Z",
"methods": {"never_hit": 41},
"branch_sites": {"with_never_hit_outcome": 17},
"classes": {"never_loaded": 6},
"endpoints": {"never_called": 3},
"dependencies": {
"unloaded": 2,
"unreferenced": 1,
"unreached": 0,
"no_live_reference": 4,
"listing_complete": true,
"instances_awaiting_listing": 0
}
}
status | Meaning | Other fields |
|---|---|---|
ready | The service has an all-environments snapshot of the current format. | The counts below, and as_of. |
computing | The service has an all-environments scope and no snapshot of the current format. It is the case where /report answers 202. | last_failed_at, as in the 202 answer. |
none | No environment of the service is watched, so it has no all-environments scope. | None. |
| Field | Type | Meaning |
|---|---|---|
as_of | timestamp | When the snapshot was computed. |
methods.never_hit | integer | The report’s methods.never_hit. |
branch_sites.with_never_hit_outcome | integer | The report’s branch_sites.with_never_hit_outcome. |
classes.never_loaded | integer | The report’s classes.never_loaded. |
endpoints.never_called | integer | The report’s endpoints.never_called. |
dependencies | object | The report’s unloaded, unreferenced, unreached, no_live_reference, listing_complete and instances_awaiting_listing. While listing_complete is false, a count may be missing entries. |
An entry of not_tracked_services never carries findings.
Read a service
Every route below starts with /services/{service}/ and takes the scope parameters. The tables list each route’s own parameters and fields.
GET /services/{service}/instances
One row per instance with at least one in-scope run. The rows come newest first by last_seen_at. The route has no paging and no total.
The response is {"instances": [...]}. run_id, version and environment come from the instance’s latest in-scope run, the one that started last.
| Field | Type | Meaning |
|---|---|---|
instance_id | string | The agent’s instance ID. |
run_id | string | The latest run’s ID. |
runs | integer | The number of in-scope runs of the instance. |
version | string or null | The latest run’s version. |
environment | string | The latest run’s environment. none when the run named none. |
first_seen_at | timestamp | When Otherlode first heard from the instance. |
last_seen_at | timestamp | The latest time any in-scope run was seen. |
baseline | string | complete when any in-scope run holds a complete static baseline, incomplete when one holds a scan that is not complete, else none. |
ended_cleanly | boolean | true once the latest run’s shutdown flush arrived. |
dependencies_listed | boolean | true when every in-scope run sent its whole dependency listing. A run that lost its history never counts as having sent it. |
agent_version | string | The agent version of the latest run. |
fields_stripped | boolean | true when the latest run is a stripped run. The list shows it, and no finding counts it. A run that carried fields Otherlode does not know is a stripped run too. |
unknown_fields | boolean | true when the latest run carried a field that Otherlode does not know. The agent is newer than Otherlode. fields_stripped is true for such a run as well. |
deltas_received | boolean | true once a delta batch of the latest run has arrived. A run that sent only a manifest reads false. |
starting | boolean | true while the latest run says its application is still loading its classes and the run is live. |
history_lost | boolean | true when the latest run lost its history. Otherlode had removed the run’s row while its process kept running, so the run’s counts name classes Otherlode has no record of. While such a run is in scope, it holds every zero-count claim of its scope. The claims return when the run leaves the scope, which is when it expires. A restart starts a new run that reports in full, but it does not release the hold. |
earlier_run_history_lost | boolean | true when an in-scope run of the instance other than the latest lost its history. That run holds the scope’s claims until it expires, though the latest run is a full run. |
earlier_run_unsettled | boolean | true when an in-scope run of the instance other than the latest has received no delta batch, has counts that are behind, or is starting and still live. The report’s unsettled counts the instance for it. |
counts_behind_since | timestamp or null | When Otherlode received the first payload that said some hits the latest run recorded had not reached it. null when the run’s newest payload says none are missing. |
GET /services/{service}/report
The counts behind the overview page. It has no paging. Every count covers the in-scope runs, except instances.listed, which also counts stripped runs that match the scope: runs that came through a collector older than their agent, or carried fields Otherlode does not know. The meaning of each finding is in Findings, Inventory and Unreached clusters.
The route is read from a snapshot for most scopes, and answers 202 while the snapshot is computing. It reads no parameter other than the three scope parameters.
| Field | Type | Meaning |
|---|---|---|
namespace, service | string or null, string | The service. |
version | string or null | The version filter, null when unset. |
active_within_days | integer or null | The active_within_days filter, null when unset. |
as_of | timestamp | When Otherlode read the data. See routes read from a snapshot. |
from_snapshot | boolean | true when a stored snapshot gave the report, false for a live read. |
instances | object | total, listed, with_complete_baseline, ended_cleanly, silent_without_final_flush, unsettled, verifier_unwatched, unplaced_verification, with_skipped_class and history_lost. Each counts distinct instances. with_complete_baseline leaves out an instance whose only complete baseline came from a run that never delivered a delta batch and is no longer live, since that run is no evidence; its instance still shows the baseline on /instances. unsettled counts the instances with an in-scope run that has received no delta batch, whose counts are behind, or that is starting and still live. total counts the instances with a run a finding can judge. listed counts every instance the /instances route lists, so it also counts an instance whose every run that matches the scope is a stripped run. It is never below total. ended_cleanly and silent_without_final_flush judge an instance by its latest run. unsettled counts an instance once when any of its in-scope runs is unsettled, so the instance list shows the same instance with a badge for its latest run or with earlier_run_unsettled. A run is silent when it has not ended cleanly and was not seen for an hour or more, or for three of its flush intervals when that is longer. verifier_unwatched counts the instances with an in-scope run whose agent could not see the verifier’s rejections. unplaced_verification counts the instances with an in-scope run that reported a verification failure it could not place in a class. Neither kind of run supports a zero-count claim. history_lost counts the instances with a run in scope, the latest or an earlier one, that lost its history. with_skipped_class counts the instances with an in-scope run whose manifest named a skipped class. A skipped class supports no zero-count claim in any run, and a skip kept from a run that has expired is not counted. See Findings. |
methods | object | known is the sum of hit, never_hit, in_class_findings, in_never_hit_code, unjudged_constructors, counts_behind and without_evidence. It counts judgeable methods and leaves out static initialisers. A method the service has recorded a hit of counts in hit when the request names no version and no active_within_days, even when no run in scope holds a hit. counts_behind counts the methods with no hits that a run not yet settled knows. They make no zero-count claim. without_evidence counts the other methods with no hits that no run is evidence about. They make no zero-count claim either. |
branch_sites | object | known, all_outcomes_hit, with_never_hit_outcome, in_never_hit_code, routine, counts_behind, withheld and without_evidence. A site that folds into code a finding already lists counts in in_never_hit_code. routine counts sites whose only never-hit outcomes are routine. counts_behind counts sites whose judgeable outcomes with no hits are all in locations a run not yet settled knows. withheld counts the other sites with an outcome with no hits and no branch key, in an environment that has lost a production run. without_evidence counts the other sites with a never-hit outcome that no run is evidence about. They make no claim. The first three leave the other five out. |
probes | object | inline and generated count the probes the counts above leave out. no_debug_info counts judgeable probes in classes that carry no line numbers. |
classes | object | declared, loaded, never_loaded, never_initialized, never_instantiated, all_inline_or_generated, unreported, failed_to_load, failed_to_initialize and skipped. unreported counts classes a sweep found loaded that the agent reported nowhere else. They count as loaded. A class that failed to load is in none of declared, loaded or never_loaded, and neither is a class that no run loaded and that a live run not yet settled could have loaded, as Never loaded says. failed_to_initialize counts the classes that failed to initialise. The JVM defined them, so they stay in declared and loaded, and they are in no class finding. skipped counts the classes with code in scope that a run skipped. A skipped class supports no claim that rests on missing hits. A read that names no version and no active_within_days also counts the classes with code in scope that the environment’s record names, so the count outlives the run that skipped them. |
endpoints | object | known, called, never_called, never_called_outside, module_disabled, counts_behind and without_evidence. An endpoint with no calls whose module switched itself off counts only in module_disabled. A called endpoint counts in known and called whatever its module did. An endpoint with no calls that a run not yet settled knows counts only in counts_behind. without_evidence counts the endpoints that would be never-called but have no run that is evidence about them. never_called counts the endpoints whose status is never-called, except the outside routes. never_called_outside counts the outside routes whose status is never-called. known is not called plus never_called: the difference is the endpoints found only by dispatch that show no call, which read not-judged, the without_evidence endpoints, and the outside routes in never_called_outside. |
optional_parameters | object | known, never_supplied and always_supplied. |
disabled_endpoint_modules | array | {"module", "kind", "kind_label", "reason", "instances"} for each endpoint module that switched itself off or that the agent’s configuration kept off. The kind and reason are the ones the newest in-scope run gave. kind is linkage_error (the framework release differs from the one the module was built for), advice_failed (the module’s advice threw), transform_failed (the module’s transform threw, or a framework class it hooks failed to weave), route_walk_failed (walking the framework’s route objects threw), hook_unmatched (a hook matched no method on the framework class it hooks), configured_off (the agent’s configuration kept the module off), routes_not_counted (the runtime has no dispatch point the module counts requests at, so it declared no route), unspecified when the agent gave none, or unknown for a kind Otherlode does not name, which a newer agent sent. kind_label is Otherlode’s text for the kind. On a request that names no version and no active_within_days, the list also names each module the environment has ever had a run switch off that no in-scope run reports, with the kind and reason of its latest disable and instances 0. unspecified still means only that the agent gave no kind. |
framework_markers | array | {"id", "kind", "label", "classes", "instances"} for each framework marker some in-scope run reported and Otherlode does not judge covered for that run’s agent version, ordered by id. A marker is the agent’s observation that one framework’s routing was set up, so the endpoint list leaves its routes out. kind is started or configured, the claim the agent observed, or unknown for an id Otherlode does not name. label is Otherlode’s text for the claim. For an unknown id it says a newer agent reported the marker. classes are the class names that proved it, from the newest in-scope run that reported it and is not judged covered. instances counts the instances with such a run. |
unreached_clusters | object | state, count, methods_attributed, called_only_by_tests, test_only_unconfirmed, called_from_outside_scope, and largest. state is ok, or graph_too_large when the scope’s call graph is too large to resolve. With graph_too_large every other field is null, so a client never reads no clusters from it. largest is {"root", "members_total"} for the biggest cluster, or null. root has the shape of a cluster root. |
dependencies | object | known, one count for each status (unloaded, unreferenced, unreached, no_live_reference, failed_to_load, failed_to_initialize, counts_behind, without_evidence, stale, used, loaded, resources_only), absent_references, and four more fields. failed_to_initialize counts the loaded dependencies with no live reference that only a class that failed to initialise references, and claims no removal. without_evidence counts the dependencies whose unreached or no-live-reference status would rest on zero counts that no settled run is evidence for. It claims nothing, and no other count includes those dependencies. counts_behind counts the dependencies whose status would rest on counts that a run not yet settled has not delivered. It claims nothing, and no other count includes those dependencies. stale counts the startup dependencies that no run in scope loaded a class from, though the service has recorded a load. It claims no removal, and the read must name no version and no active_within_days. references_recorded is true when some run records references. split_available is true when some dependency was judged on its references and every such dependency was judged only by runs with a complete baseline that records the references of its unprobed classes. listing_complete and instances_awaiting_listing say whether every dependency listing arrived. A zero in unreferenced or unreached means none only when split_available and listing_complete are both true. |
removed | object | classes, methods, endpoints and dependencies, the count of each kind on the /removed list. A method of a removed class is not counted. No other count in the report includes removed code. Each count is 0 for a read that names a version or an active_within_days. |
test_runs | object | count and last_seen_at of the service’s test runs in every environment and version. No other figure counts them. |
stripped_runs | integer | The service’s stripped production runs in every environment and version. |
unread_shapes | object | methods and outcomes map each unread-shape family to a count, and agent_versions lists the agent versions that sent any. A family Otherlode does not name adds up under unknown. |
GET /services/{service}/never-hit
The never-hit finding as rows. A row is a method row or a site row. See Site rows for the second kind. The route is read from a snapshot for most scopes when the request has no known_for_days, and answers 202 while the snapshot is computing. A request with known_for_days is computed live.
| Parameter | Value | Effect |
|---|---|---|
kind | method or branch | Keeps only method rows or only site rows. Another value gets 400 with kind must be "method" or "branch". optional_argument gets its own 400, which names /optional-parameters. |
routine | exclude or include | exclude, the default, leaves routine outcomes out of the finding. include lists them too. Another value gets 400 with routine must be "exclude" or "include". |
The route also takes class_prefix and known_for_days. Rows come in order of class, method and descriptor, with a method row before its site rows. total counts rows.
A method row has these fields, plus the method naming fields:
| Field | Type | Meaning |
|---|---|---|
kind | string | Always method. |
class_name, method_name, method_descriptor | string | The method. |
line | integer | The method’s line. -1 when the class carries no line numbers. |
branch_index, branch_key | null | Always null on a method row. |
instances_known, first_known_at, dates_capped | See shared fields. | |
generated_by | string | The method’s generated mark. See generated methods. |
unread_shape | string | Always none, since the finding lists no unread method. |
inlined_from_class_name | string or null | The class an inlined copy came from. |
routes | array | The endpoints this method handles, as {"verb", "route_template", "template_kind", "template_kind_label"}, sorted by verb, then template, then kind. verb is * when the framework takes any method. See template_kind under the endpoints route. |
The response is {"rows", "total", "capped_hidden", "watched_since", "as_of", "from_snapshot"}. capped_hidden counts the capped outcomes that known_for_days left out, and the outcomes with no branch key that an environment of the read lost a run for. Without known_for_days it counts only the second kind. See Dates.
GET /services/{service}/stale-hit
The stale-hit finding: code that some run hit, but not within the last days days. When the request names no version and no active_within_days, code that the service has recorded a hit of counts as hit by some run, so a row can have hits_total 0. It returns the same two row kinds as /never-hit. The route is read from a snapshot for most scopes, with every parameter applied to the snapshot, and answers 202 while the snapshot is computing. days then counts back from as_of.
| Parameter | Value | Effect |
|---|---|---|
days | A whole number, 1 to 36500 | The cutoff in days. The default is 30. Another value gets 400 with “days must be a whole number from 1 to 36500”. |
kind | method or branch | As on /never-hit. |
order | last_hit or class | last_hit, the default, puts the stalest row first. class keeps the rows of one class together, in the order of /never-hit. Another value gets 400 with order must be "last_hit" or "class". |
The route also takes class_prefix. A method row has the fields of a /never-hit method row, with these differences: it adds first_hit_at (timestamp or null), hits_total (integer) and last_hit_at (timestamp, never null), and it has no known_for_days filter. The response carries the same six fields as /never-hit, and days, the value it used.
Site rows
A site row stands for one branch site, a conditional jump or a switch, with at least one outcome that is in the finding. It lists every outcome of the site. in_finding marks the outcomes that put the site on the list. /never-hit and /stale-hit return site rows, and so does the site field of an untaken_outcome cluster root.
| Field | Type | Meaning |
|---|---|---|
kind | string | Always branch. |
class_name, method_name, method_descriptor, line | The method that holds the site, and the site’s line. | |
site_key | string or null | The agent’s key for the site. |
condition | array | The condition as parts, {"kind", "text"}. kind is code, string_literal or placeholder. Show the parts one after the other with nothing between them. |
guard | integer or null | The branch index of the innermost outcome that the site sits behind. A site behind a finding folds into that outcome’s row. |
instances_known, inlined_from_class_name, routes | As on a method row. | |
outcomes | array | The outcomes of the site, described next. |
Each outcome has these fields:
| Field | Type | Meaning |
|---|---|---|
branch_index | integer | The agent’s index for the outcome. |
branch_key | string or null | The agent’s key. An outcome with a key has service-wide dates. |
role | string or null | taken, fall_through, case or default. |
case_key, case_label | integer or null, array | For a switch case. case_label has the shape of condition. |
hits_total | integer | Hits across the in-scope runs. |
first_known_at, first_hit_at, last_hit_at, dates_capped | See shared fields. The last two are null for an outcome never hit. | |
guarded_lines, partly_guarded_lines | array | Lines that run only through this outcome, and lines that also hold code reached another way. Each is {"source_file", "first_line", "last_line"}. |
routine | string | none, null_default, throw_only or finally_copy. See routine outcomes. |
unread_shape | string | The outcome’s unread-shape family, or none. See unread shapes. An unread outcome is never in_finding. |
in_finding | boolean | true when this outcome puts the site on the list. |
A site row also carries the method naming fields.
GET /services/{service}/probes
Every known probe location, merged across the in-scope runs, with its hit count, whatever the kind. It shows the raw evidence behind a finding.
| Parameter | Value | Effect |
|---|---|---|
kind | method, branch or optional_argument | Keeps one kind. Another value gets 400 with kind must be "method", "branch", or "optional_argument". |
class | A class name | Keeps one class, matched exactly. It combines with class_prefix. |
routed | true or false | true keeps probes whose method handles an in-scope endpoint, and false keeps the rest. Another value gets 400 with routed must be "true" or "false". |
include_generated | true or false | false, the default, leaves out generated probes. |
include_unread | true or false | false, the default, leaves out probes with an unread shape. |
The response is {"probes", "total", "watched_since", "as_of", "from_snapshot"}. Rows come in order of class, method, descriptor and kind. The route is read from a snapshot for most scopes, with every parameter applied to the snapshot, and answers 202 while the snapshot is computing. hits_total is then the count when the snapshot was computed. A probe has the method naming fields and these fields:
| Field | Type | Meaning |
|---|---|---|
class_name, method_name, method_descriptor, line | The location. On a branch row, line is the site’s line. | |
kind | string | method, branch or optional_argument. |
branch_index, branch_key | integer or null, string or null | Set on a branch row. |
instances_known, first_known_at, first_hit_at, last_hit_at, dates_capped | See shared fields. | |
hits_total | integer | Hits across the in-scope runs. For an optional-argument probe, the calls that left the parameter out. |
counts_behind | boolean | true when an in-scope run that knows the location is not settled. With hits_total 0 no finding claims the location never ran. The hits of that run still count. |
without_evidence | boolean | true when every run that knows the location is settled and none is evidence about it. With hits_total 0 no finding claims the location never ran, as with counts_behind. It is false where counts_behind is true. |
recorded_hit | boolean | true when the request names no version and no active_within_days, the service has recorded a hit of the location, and the location’s dates are not capped. hits_total stays the in-scope count, so a location with recorded_hit can show 0 hits. Such a location counts as hit. A client that draws a hit status reads hits_total above 0 or recorded_hit. |
claim_withheld | boolean | true on a branch row with no branch_key when an environment of the read has lost a production run. With hits_total 0 the outcome is neither hit nor never hit, since a removed run may have hit it. false on every other row. A client must not draw such an outcome as never hit. |
inline | boolean | true for a probe inside a Kotlin inline function. |
generated_by, unread_shape | string | The probe’s marks. A probe with either mark is stored and shown, and never judged. generated_by is none, enum, data_class, default_impls, record, jvm_overloads, multifile_facade, case_class, static_forwarder, scala_object, value_class, kotlinx_serialization, trait_forwarder, class_delegation, or unknown for a value Otherlode does not name, which a newer agent sent. |
inlined_from_class_name | string or null | The class an inlined branch copy came from. |
routes | array | As on a never-hit row. |
parameter_index, parameter_name, overridable, target_class_name | integer or null, string or null, boolean, string or null | For an optional-argument probe. target_class_name is set only for a Scala constructor default. |
site_index, site_key, condition, guard | The site of a branch row. Otherwise null. | |
role, case_key, case_label, guarded_lines, partly_guarded_lines | The outcome of a branch row, as in site rows. Otherwise null. | |
in_never_hit_code | boolean or null | On a branch row, true when the site folds into a never-hit method. Otherwise null. |
routine | string or null | On a branch row, the outcome’s routine kind. Otherwise null. |
outside_caller | object or null | On a method row, why code outside the scope may call it: {"kind", "type_name"}. kind is overrides_method, callback_annotation, or unknown for a kind Otherlode does not name, which a newer agent sent. |
GET /services/{service}/classes
One row per class with probes in scope. The rows of every class add up to the report.
| Parameter | Value | Effect |
|---|---|---|
class | A class name | Keeps one class, matched exactly. |
routed | true or false | true keeps classes with a method that handles an in-scope endpoint, and false keeps the rest. Another value gets 400. |
The response is {"classes", "total", "as_of", "from_snapshot"}, ordered by class name. The route is read from a snapshot for most scopes, with every parameter applied to the snapshot, and answers 202 while the snapshot is computing. A row has the class naming fields and these fields:
| Field | Type | Meaning |
|---|---|---|
class_name | string | The class. |
methods | object | The report’s methods counts for this class. |
branch_sites | object | The report’s branch_sites counts for this class. |
routed | boolean | true when any method of the class handles an in-scope endpoint. |
finding | string or null | never_initialized, never_instantiated or null. |
failed_to_initialize | boolean | true when the class is on /failed-to-initialize. Such a class has finding null. |
No filter changes a row’s counts.
Class finding routes
Five routes list classes by one finding each. All five take class_prefix, and the response is {"classes", "total", "as_of", "from_snapshot"}, ordered by class name. Every one is read from a snapshot for most scopes, with every parameter applied to the snapshot, and answers 202 while the snapshot is computing.
| Route | Lists | Extra parameters |
|---|---|---|
/never-loaded | Classes a complete static baseline declared that no in-scope run loaded. A class that failed to load is left out, and so is a class that a run not yet settled could have loaded. | None |
/never-initialized | Loaded classes whose static initialiser never ran. | known_for_days |
/never-instantiated | Loaded classes with a constructor and an instance method, where no constructor and no instance method ran. | known_for_days |
/failed-to-load | Classes the agent instrumented that the JVM never defined. Each is a deployment problem and never dead code. | None |
/failed-to-initialize | Classes the JVM defined whose verification or static initialiser failed, and the subtypes that fail with them. Each is a deployment problem and never dead code. | None |
/never-initialized and /never-instantiated also return watched_since. Their known_for_days keeps a class only when its first_known_at is at least that many days old, counted back from as_of. See Findings.
/never-loaded, /never-initialized and /never-instantiated rows have the class naming fields and these fields:
| Field | Type | Meaning |
|---|---|---|
class_name | string | The class. |
methods | array of strings | The class’s method names. A static initialiser is not listed. |
methods_generated_by, methods_unread_shape | array of strings | One value for each entry of methods, in the same order. |
instances_declaring | integer | /never-loaded only. Instances whose baseline declares the class. |
instances_loading | integer | The other two routes. Instances that loaded the class. |
first_known_at | timestamp | The other two routes. The date of the probe that decides the finding. |
A /failed-to-load row has no probes, so it has no naming fields:
{
"classes": [
{
"class_name": "com.acme.pay.LegacyGateway",
"instances_naming": 2,
"first_failed_at": "2026-09-30T06:13:02Z",
"last_failed_at": "2026-10-06T14:02:51Z",
"failing_for_days": 6
}
],
"total": 1
}
| Field | Type | Meaning |
|---|---|---|
class_name | string | The class. |
instances_naming | integer | Instances whose in-scope runs name the class as failed. |
first_failed_at, last_failed_at | timestamp or null | When the first and the latest manifest named the class. With no environment, they are the earliest first and the latest last across environments. null when no environment in scope has a row. |
failing_for_days | integer or null | Whole days from first_failed_at to as_of. |
A /failed-to-initialize row carries no naming fields:
{
"classes": [
{
"class_name": "com.acme.pay.Gateway",
"reasons": ["static-initializer-threw"],
"carried_from": [],
"instances_naming": 2,
"first_failed_at": "2026-09-30T06:13:02Z",
"last_failed_at": "2026-10-06T14:02:51Z",
"failing_for_days": 6
},
{
"class_name": "com.acme.pay.GatewayClient",
"reasons": [],
"carried_from": ["com.acme.pay.Gateway"],
"instances_naming": 2,
"first_failed_at": null,
"last_failed_at": null,
"failing_for_days": null
}
],
"total": 2
}
| Field | Type | Meaning |
|---|---|---|
class_name | string | The class. |
reasons | array of strings | The reasons in-scope runs named the class with, sorted: static-initializer-threw, verifier-rejected, or unknown for a reason a newer agent sent. Empty for a class that fails only because a supertype does. |
carried_from | array of strings | The supertypes that some in-scope run named and that the class’s failure carries from, sorted. Empty when no named supertype carries the failure to the class. |
instances_naming | integer | Instances with an in-scope run that failed the class, named or carried. |
first_failed_at, last_failed_at | timestamp or null | As on /failed-to-load, from the manifests that named the class itself. null when no manifest from the scoped environments has named the class itself. |
failing_for_days | integer or null | Whole days from first_failed_at to as_of. |
GET /services/{service}/unclassified
Classes a scan found but could not read or probe. It takes class_prefix, and the response is {"classes", "total", "as_of", "from_snapshot"}, ordered by class name and then bucket. Each row has class_name, bucket (unreadable or unprobed) and reason (string). The route is read from a snapshot for most scopes, and answers 202 while the snapshot is computing. See Inventory.
GET /services/{service}/removed
Classes, methods, endpoints and dependencies that every live run of the environment proves absent. See Removed for what proves it. The route takes class_prefix, and the response is {"rows", "total", "as_of", "from_snapshot"}. The route is read from a snapshot for most scopes, and answers 202 while the snapshot is computing. So without a class_prefix its total equals the sum of the report’s removed counts, and a class on this list is in none of the findings that the same snapshot holds. A request that names a version or an active_within_days lists no rows, and its total is 0.
Rows come in this order: by kind (class, method, endpoint, dependency), and then within a kind by the identifiers as Otherlode stores them, compared byte by byte. A class row goes by class_name. A method row goes by class_name, method_name and method_descriptor. An endpoint row goes by verb, then route_template, then template_kind, so the stored verb *, which stands for any verb, comes before every named verb. A dependency row goes by identity_key, which is its group:artifact pairs sorted and joined with commas, so a dependency whose first identity has no group comes before one that has a group, and the order is not that of the names a page shows. The backslashes that escape a separator are part of the key and sort with it.
A row has the fields of its kind and no others:
| Field | Kinds | Meaning |
|---|---|---|
kind | every row | class, method, endpoint or dependency. |
class_name | class, method | The class, as the agent names it. |
method_name, method_descriptor | method | The method, as the agent names it. |
line | method | A lambda body’s own line, which its label reads. 0 for any other method, or when no line is known. |
verb, route_template, template_kind, template_kind_label | endpoint | The endpoint, as an /endpoints row carries it. The verb * stands for any verb. |
identity_key | dependency | The dependency’s cross-run name. |
identities | dependency | {"group_id", "artifact_id", "versions"} for each identity, as /dependencies shows them. |
stopped_at | every row | The latest time Otherlode received a payload from a run that held the thing. |
A class row also carries the class naming fields, and a method row the method naming fields, which already describe the method’s class. They come from the same facts as any other row of that class or method, so a client names a removed row as it names the rest. The row has no name field. A client builds the text it shows from these fields.
GET /services/{service}/endpoints
Endpoints merged across the in-scope runs and identified by verb, route_template and template_kind. A regular expression, a servlet pattern and a path with the same text are two endpoints. The response is {"endpoints", "total", "capped_hidden", "days", "watched_since", "as_of", "from_snapshot"}. days is the value the request used. The rows follow order. The route is read from a snapshot for most scopes, with every parameter applied to the snapshot, and answers 202 while the snapshot is computing. days then counts back from as_of.
| Parameter | Value | Effect |
|---|---|---|
status | all or a row status | all is the default. Any other value keeps the endpoints with that status. Another value gets 400 with status must be "all", "module-disabled", "live", "counts-behind", "without-evidence", "never-called", "stale", or "not-judged". |
days | A whole number, 1 to 36500 | The cutoff between live and stale. The default is 30. Every status accepts it, and never-called ignores it. Another value gets 400 with “days must be a whole number from 1 to 36500”. |
order | route, never_called_first or live_first | route, the default, sorts by verb, then route template, then template kind. A client that pages with offset should keep it, since a status order moves rows between pages as calls arrive. never_called_first sorts never-called, then stale, then live. live_first sorts live, then stale, then never-called. Within a status the strongest case comes first: the earliest first_known_at for never-called, the oldest last_called_at for stale and the newest for live. Then come module-disabled, then counts-behind and without-evidence together, then not-judged, each by verb, route template and template kind. The order applies to the rows status keeps. Another value gets 400 with order must be "route", "never_called_first", or "live_first". |
framework | A module name | Keeps endpoints from that framework module, matched exactly. |
known_for_days | A whole number, 1 to 36500 | Keeps only endpoints whose first_known_at is at least that many days before as_of. It applies after every other parameter, changes no status, and is independent of days. total and paging count the kept rows. capped_hidden counts the endpoints that match every other parameter, have dates_capped true and a first_known_at that is not old enough. Their true date can be older, so the request cannot tell their age. It is 0 without known_for_days. A snapshot serves a request with it. Another value gets 400 with “known_for_days must be a whole number from 1 to 36500”. |
outside | exclude or only | Without it every endpoint is listed. exclude keeps the endpoints whose handler_included is not false, which are the service’s own routes and the ones with no answer. only keeps the outside routes, the endpoints whose handler_included is false. total counts the rows it keeps. Another value gets 400 with outside must be "exclude" or "only". |
class_prefix matches the handler class. A row has these fields:
| Field | Type | Meaning |
|---|---|---|
verb | string | The HTTP method, upper case. * when the framework takes any method. |
route_template | string | The agent’s normalised template. For a regex template it is the framework’s regular expression as written. For a servlet_pattern template it is the servlet mapping as written, such as *.do or /. |
template_kind | string | path for a path template, regex for a regular expression, servlet_pattern for a servlet extension mapping or default mapping, or unknown for a kind Otherlode does not name. An agent that predates the field reads as path. A regex or servlet_pattern template is never a path. No filter or label reads it as one. |
template_kind_label | string | The text Otherlode writes for the kind: Path, Regular expression, Servlet pattern, or for unknown a label saying a newer agent sent it. |
verbatim_template | string | The framework’s own spelling of the template. |
framework | string | The endpoint module that reported it. |
discovery_source | string | registration when a framework hook declared it, dispatch when the first request found it. |
handler_class, handler_method, handler_descriptor | string or null | The handler, when the agent could join the endpoint to one. |
handler_included | boolean, or absent | false for an outside route: every in-scope run that declares the endpoint named a handler class and sent include rules that do not cover it. true when the include rules of some in-scope run cover a handler class that run named. The key is absent when no run covers the handler class and some run named no handler class or sent no rules. It changes no status. |
instances_known, first_known_at, first_called_at, last_called_at, dates_capped | See shared fields. | |
calls_total | integer | Calls across the in-scope runs. It never includes a call that only the service’s record holds, so on a request that names no version and no active_within_days a stale endpoint can show 0. |
status | string | The one status of the endpoint. live: it was called and its last call is on or after the cutoff. module-disabled: some in-scope run had its module switched off, or on a full read the environment has ever had a run switch it off, or a run that disabled a module by failure had reported no endpoint of it, and the endpoint is not live. counts-behind: a run that knows it is not settled, and it is not live. never-called: it was registered, has no calls and no call on record, no run that knows it is unsettled, and some settled run that reports it is evidence about it. without-evidence: it would be never-called, but no run that reports it is evidence about it. stale: it was called, its last call is before the cutoff, and its dates are not capped. not-judged: none of these, for example an endpoint found only by dispatch whose count was lost, or a called endpoint whose capped last call is before the cutoff. The checks run in this order and the first match wins. |
module_disabled | boolean | true when some in-scope run had the endpoint’s module switched off, whether or not that run knows the endpoint, or on a full read when the environment has ever had a run switch it off. It is also true for every endpoint when a run that disabled a module by failure had reported no endpoint of it. A full read decides that for a run that has been deleted when the run is deleted. A module kept off by configuration, or one that does not count routes, never does this. The module did not count every call. The endpoint’s status is still live when it was called within the cutoff. |
call_recorded | boolean | true when the request names no version and no active_within_days, the service has recorded a call of the endpoint, and its dates are not capped. calls_total stays the in-scope count. An endpoint with call_recorded counts as called. |
counts_behind | boolean | true when the endpoint has no calls, an in-scope run that knows it is not settled, and the module is not switched off. On a request that names no version and no active_within_days, an endpoint with a call the service has recorded is called, so it is never true. The calls that run has not delivered could make the endpoint called. The counts-behind status is wider: it also holds a called endpoint that such a run knows, when that endpoint is not live. |
Each row also describes its handler with handler_-prefixed copies of the method naming fields (handler_created_in, handler_lambda_body, handler_captured_count, handler_lambda_interface, handler_creation_ordinal, handler_parameter_names, handler_generic_signature, handler_extension_receiver) and of the class naming fields (handler_source_file, handler_body_kind, handler_source_name, handler_kotlin_kind, handler_body_interface). handler_line is the line of a lambda-body handler, else 0. Without a known handler class the fields hold null, false, 0, [], "", none, in the type each field has.
GET /services/{service}/optional-parameters
Optional-parameter probes merged across the in-scope runs, with the method naming fields of the target function. The response is {"optional_parameters", "total", "watched_since", "as_of", "from_snapshot"}, ordered by class, method, descriptor and parameter index. The route is read from a snapshot for most scopes, and answers 202 while the snapshot is computing. A full read withholds never-supplied for a parameter that an expired run supplied, and for a function first hit more than a day before any run reported the parameter. See Never supplied.
| Parameter | Value | Effect |
|---|---|---|
status | all, never-supplied or always-supplied | all is the default. Another value gets 400 with status must be "all", "never-supplied", or "always-supplied". |
| Field | Type | Meaning |
|---|---|---|
class_name, method_name, method_descriptor, line | The target function. | |
parameter_index | integer | The zero-based index of the optional parameter. |
parameter_name | string or null | The name, when the class carries debug information. |
inline, overridable | boolean | The function is inline, or can be overridden. |
generated_by, unread_shape | string | The probe’s marks. |
instances_known, first_known_at, first_omitted_at, last_omitted_at | See shared fields. | |
omissions_total | integer | Calls that left the parameter out. |
target_hits_total | integer or null | Hits of the target function. null when it has no method probe in scope. |
GET /services/{service}/unreached-clusters
Unreached clusters, largest first and then by root. The route takes class_prefix and known_for_days, and a page counts clusters. The response is {"clusters", "total", "as_of", "from_snapshot"}. See Unreached clusters for what a cluster is. The route is read from a snapshot for most scopes when the request has no known_for_days, and answers 202 while the snapshot is computing. A request with known_for_days is computed live. A scope whose clusters are too large to resolve answers 422 with the error “the call graph of this scope is too large to resolve”, from a snapshot and live alike.
| Field | Type | Meaning |
|---|---|---|
root | object | The cluster’s root. |
members_total | integer | The true count of methods in the cluster, whole classes included. |
never_loaded_classes | integer | Members that are classes only a complete baseline knows. |
whole_classes | array | Classes the cluster holds in full: class_name, finding, methods_total, and the class naming fields. finding is never_loaded, never_initialized, never_instantiated or null. |
members | array | The other methods, as graph nodes. |
test_callers | array | Calls from tests into the cluster’s methods: caller (class_name, method_name, method_descriptor, line) and callee (a graph node). The root’s own come first. |
test_callers_total | integer | The true count of test callers. |
test_only_unconfirmed | boolean | true on an uncalled root that a test calls while no complete baseline of production is in scope. |
members and test_callers each hold at most 200 entries. The totals are always true counts.
A graph node has class_name, method_name, method_descriptor, line, hits_total, never_loaded, generated_by, unread_shape, counts_behind, without_evidence, recorded_hit and the method naming fields. never_loaded is true for a method only a complete baseline knows, and its line is 0. counts_behind is true when a run that knows the method is not settled, or a stripped run in the scope hit it, and, on a request that names no version and no active_within_days, the service has recorded no hit of it. With hits_total 0 the method may have run, and the cluster rules treat it as neither hit nor never hit. without_evidence is true when every run that knows the method is settled and none is evidence about its class. The cluster rules treat it as counts_behind, and it is false where counts_behind is true. recorded_hit is true when the service has recorded a hit of the method, on a request that names no version and no active_within_days. hits_total stays the in-scope count, and the method counts as hit. counts_behind, without_evidence and recorded_hit are all false for a method only a baseline knows and on a class_finding root. A root, a member and an edge end are never generated or unread, so both marks read none on them. A reached_from node can be a generated or unread method that ran, and carries its own marks.
The root is a graph node with these extra fields:
| Field | Type | Meaning |
|---|---|---|
root_kind | string | reached_from_hit, uncalled, called_only_by_tests, called_from_outside_scope, untaken_outcome or class_finding. |
finding | string or null | On a class_finding root, never_loaded, never_initialized or never_instantiated. Otherwise null. |
routes | array | The endpoints the root method handles. [] on a class_finding root. |
site | object or null | On an untaken_outcome root, the site row of the outcome, with in_finding set only on the root outcome. Otherwise null. |
reached_from | array | Graph nodes that ran (hits in scope or, on a request that names no version and no active_within_days, a hit the service has recorded) and call a reached_from_hit or class_finding root. Such a node can show hits_total 0. [] for every other kind. |
outside_caller | object or null | {"kind", "type_name"} when a type outside the scope may call the method. See outside callers. null on class_finding and untaken_outcome roots. |
On a class_finding root, class_name and the class naming fields name the class, method_name and method_descriptor are "", and line and hits_total are 0. On an untaken_outcome root, the method fields name the method that holds the outcome, and that method ran.
GET /services/{service}/call-edges
The resolved call graph. It takes class_prefix, which matches the caller’s class. The response is {"edges", "total", "as_of", "from_snapshot"}, and total counts the edges that match. Rows come in order of caller, callee, kind, virtual, captured_count and guard, with a null guard first. The route is read from a snapshot for most scopes and answers 202 while the snapshot is computing. hits_total and the other counts on a node are the counts when the snapshot was computed.
A scope whose call graph is too large to resolve answers 422 with the error “the call graph of this scope is too large to resolve”. A scope whose only overrun is in the clusters, which also resolve test calls, answers 200. See call graph.
| Field | Type | Meaning |
|---|---|---|
caller, callee | object | Graph nodes, as under unreached clusters. |
kind | string | call or creates. |
virtual | boolean | true for a virtual call, which Otherlode already widened to every override in scope. |
captured_count | integer | For a creates edge from invokedynamic, how many leading parameters the edge captures. Otherwise 0. |
guard | integer or null | The branch index, in the caller’s class, of the innermost outcome that must run before the call. |
declared_owner | string | The callee’s class as the caller’s bytecode named it. It differs from callee.class_name for an inherited or overridden method. |
One pair of methods can have several rows, for example a call and a creation.
GET /services/{service}/class-call-edges
The edges of /call-edges that have either end in one class: the calls the class makes, the calls it receives, and the bodies it creates or has created. A call from a method of the class to another method of it is one row.
| Parameter | Value | Effect |
|---|---|---|
class | A class name | Required, matched exactly. Without it the route answers 400 with “class is required”. |
The rows and the response are those of /call-edges, in the same order, and the route takes limit and offset. A class with no edge gives "edges": [] and "total": 0. The route is read from a snapshot for most scopes, answers 202 while the snapshot is computing, and answers 422 as /call-edges does.
curl -s -H "Authorization: Bearer $KEY" --get \
--data-urlencode "class=com.acme.Cart" --data-urlencode "limit=1" \
"https://app.otherlode.dev/api/v1/services/checkout/class-call-edges"
With limit=1 the answer holds one edge in edges, and total counts every edge of the class.
GET /services/{service}/method-call-edges
The edges of /call-edges that have one method as their caller or their callee: the methods it calls, the methods that call it, and the bodies it creates or has created. Tell them apart by kind and by whether caller or callee is the method.
| Parameter | Value | Effect |
|---|---|---|
class, method_name, method_descriptor | The method’s class, name and descriptor | All three are required, each matched exactly. A missing one gets 400 with “class is required”, “method_name is required” or “method_descriptor is required”. |
The rows and the response are those of /call-edges, in the same order, and the route takes limit and offset. A method with no edge gives "edges": [] and "total": 0. The route is read from a snapshot for most scopes, answers 202 while the snapshot is computing, and answers 422 as /call-edges does.
curl -s -H "Authorization: Bearer $KEY" --get \
--data-urlencode "class=com.acme.Cart" --data-urlencode "method_name=add" --data-urlencode "method_descriptor=(Lcom/acme/Item;)V" \
"https://app.otherlode.dev/api/v1/services/checkout/method-call-edges"
GET /services/{service}/graph-roots
The roots of the code path graph: every endpoint and every entry method, with the flags the graph’s status filter reads. An entry method is a method that ran, that no endpoint handles, and that no caller which ran, or may have run, calls. A call from a class’s static initialiser counts as a call from a method that ran when the initialiser ran and some method that ran calls into the class. An initialiser that ran with no such caller is an entry of its own, so the methods it calls are entry methods.
Endpoints come first, in the order of /endpoints with outside=exclude. Entry methods follow, in the order of /probes, then the methods that only a call edge names, then the methods that only a cluster’s reached_from row names.
| Parameter | Value | Effect |
|---|---|---|
days | A whole number from 1 to 36500 | The stale-after value, 30 by default. It judges the endpoint statuses and when a method is stale. The count runs back from as_of. |
status | all, dead, cluster-under or stale | Keeps the roots with that flag. all is the default, and any other value gets 400. |
search | Text | Keeps the roots whose route, verb or any method they reach matches the text, ignoring case. A method matches on its class name, its method name and, for a Kotlin file facade or multi-file part, the file its class reads as. ANY matches the verb *. Blank text keeps every root. |
The route takes limit and offset, which page the roots that match. The response is {"roots", "total", "roots_total", "days", "as_of", "from_snapshot"}. total counts the roots that match status and search, and roots_total counts every root. The route is read from a snapshot for most scopes, answers 202 while the snapshot is computing, and answers 422 when the call graph or the clusters are too large to resolve. A scope with no snapshot is read live, and the live read builds the whole graph first, so a search on it runs when you send it.
Each root has the fields of its kind, and these on both:
| Field | Type | Meaning |
|---|---|---|
kind | string | endpoint or method. |
status | string | An endpoint’s status at days, or a method’s: never-loaded, not-judged, never-hit, stale or live. |
dead | boolean | true for an endpoint that is never called. A handler that is a real method decides it, and otherwise the endpoint’s status does. A method root is never dead. |
stale | boolean | true for a stale endpoint or a stale method. |
cluster_under | boolean | true when the root reaches the root of an unreached cluster: a method that roots one, a method that holds the outcome that roots one, or a class that roots one. |
An endpoint root also has verb, route_template, template_kind, template_kind_label and handler, which is {"kind", "class_name", "method_name", "method_descriptor"} or null. A method root has class_name, method_name, method_descriptor, hits_total, recorded_hit and last_hit_at.
curl -s -H "Authorization: Bearer $KEY" --get \
--data-urlencode "status=dead" --data-urlencode "limit=1" \
"https://app.otherlode.dev/api/v1/services/checkout/graph-roots"
GET /services/{service}/graph-closure
What a set of roots reaches in the code path graph: the endpoints, methods, classes and edges the graph draws for them, cut at a number of methods. Otherlode walks outward from the roots one step at a time, over calls, creations, handlers and static initialisers, and keeps the methods it meets first. The cut keeps the methods nearest the roots. With search, the cut keeps the roots first, then the methods on a shortest path from a root to each method the text matches that it reaches, roots in order, and then the methods nearest the roots. So a match deep under a root is in the answer when the budget holds the roots and the path to it.
Name the roots with root or cluster, or leave both out and pick the roots as /graph-roots does.
| Parameter | Value | Effect |
|---|---|---|
root | A JSON object | Names one root. Repeat it for up to 100 roots. An endpoint is {"kind": "endpoint", "verb", "route_template", "template_kind"}, where template_kind defaults to path. A method is {"kind": "method", "class_name", "method_name", "method_descriptor"}. A class is {"kind": "class", "class_name"}, which roots a class’s static initialiser. A root the graph does not hold is listed in roots_not_found. A root given twice is answered once, in the order of its first appearance, in roots or in roots_not_found. When none is held the route answers 400 with “no root names a node of the graph”. |
cluster | A JSON object | Names an unreached cluster by its reference: {"root_kind", "class_name", "method_name", "method_descriptor", "branch_index", "branch_key"}, as cluster is served on a method and on a class. root_kind is one of reached_from_hit, uncalled, called_only_by_tests, called_from_outside_scope, untaken_outcome and class_finding, and an untaken_outcome root requires branch_index. A request that gives cluster twice, or names no such root_kind, answers 400. method_name and method_descriptor are left out for a class_finding root, and branch_index and branch_key are given for an untaken_outcome root. The closure starts from the cluster’s root, which is the method that holds the outcome for an untaken_outcome root and the class for a class_finding root, and from every method and class whose cluster is that cluster, however many /unreached-clusters lists, and then walks as it does from a root. It can be given with root. roots holds the cluster’s root, and roots_total counts it. A cluster the scope does not hold is listed in roots_not_found as its root, and when no root or cluster is held the route answers 400. |
budget | A whole number from 1 to 2000 | How many methods to keep, 500 by default. A method root counts as a method. |
days, status, search, limit, offset | As on /graph-roots | Without root, they pick the roots, in the order of /graph-roots. With root or cluster, only days and budget apply, and status, search and offset get 400. |
The response is {"roots", "roots_not_found", "endpoints", "methods", "classes", "edges", "roots_total", "methods_total", "cut", "budget", "days", "as_of", "from_snapshot"}. The route is read from a snapshot for most scopes, answers 202 while the snapshot is computing, and answers 422 as /graph-roots does.
| Field | Type | Meaning |
|---|---|---|
roots | array | The roots kept, as {"kind", ...} objects in the shape of root. |
roots_total | integer | How many roots the filters keep, which limit and offset page. With root, how many of the named roots the graph holds. roots holds the page, so a roots_total above its length means roots are left out. |
methods_total | integer | How many methods the roots reach in all, method roots included. search does not change it. |
cut | boolean | true when methods_total is more than budget, so the answer holds the first budget methods and leaves out the rest. |
endpoints | array | The rows of /endpoints for the endpoints kept. |
methods | array | One object per method kept, described below. |
classes | array | The class of each method kept, and each class the walk entered through its static initialiser, described below. |
edges | array | Each edge between two things kept, as {"from", "to", "kind", "virtual", "shown"}. from and to name an endpoint (kind, verb, route_template, template_kind), a method (kind, class_name, method_name, method_descriptor) or a class (kind, class_name), which stands for its static initialiser. kind is call, creates, handles for an endpoint and its handler, or initialises for a call into or out of a static initialiser. virtual is true for a virtual call. shown is true only on an initialises edge that joins two classes and whose caller does not already call a method of the class. It is false on every other initialises edge, and on every call, creates and handles edge. |
A method object has class_name, method_name, method_descriptor, status, entry, stub, cluster, roots_cluster, outcome_clusters, naming, probe, node and outcomes. naming holds the method naming fields of the first row that names the method, in the order given under the class object below, or null when no row names it. A method that only a cluster row or a branch row names has naming though it has no probe and no node. status is as on /graph-roots. entry is true for an entry method. stub is true for a method that has no row of its own, because its probe has only outcome rows or it is only an endpoint’s handler. A stub with no hits reads as not-judged. cluster is {"root_kind", "class_name", "method_name", "method_descriptor", "branch_index", "branch_key"} for the last unreached cluster that holds the method, or null. On an untaken_outcome root, branch_index and branch_key name the outcome, which tells apart the clusters of one method. branch_key is null for an outcome with no key, and both are null on every other kind of root. roots_cluster is true when that cluster is rooted at the method. outcome_clusters counts the clusters rooted at an outcome of the method. probe is the method’s row on /probes, or null, node is its graph node when it has no probe row but a call edge, and outcomes are the branch rows of the method on /probes.
A class object has class_name, naming, finding, initialiser_hits, initialiser_ran, cluster and roots_cluster. naming holds the class naming fields that a label is built from, which the class takes from its first named method, preferring one that is not a lambda body, or null when no method of the class is named. A lambda body names its own creator, so a class that takes its naming from one has no created_in and no creation_ordinal. The first row that gives a method its fields names it, taking the rows in this order: the method rows of /probes, the outcome rows of /probes that are not inlined copies, the ends of the call edges, then each unreached cluster’s root, reached_from callers and members. A class with no method before its class_finding root takes the naming of that root until a row names one of its methods. finding is never_initialized, never_instantiated, never_loaded or null. initialiser_ran is true when the class’s static initialiser ran, and initialiser_hits counts its hits. cluster and roots_cluster read as on a method.
curl -s -H "Authorization: Bearer $KEY" --get \
--data-urlencode 'root={"kind":"endpoint","verb":"POST","route_template":"/checkout"}' \
--data-urlencode "budget=50" \
"https://app.otherlode.dev/api/v1/services/checkout/graph-closure"
GET /services/{service}/dependencies
Every dependency some in-scope run listed, merged across runs by identity_key. Rows come in status order (unloaded, unreferenced, unreached, no-live-reference, failed-to-load, failed-to-initialize, counts-behind, without-evidence, stale, used, loaded, resources-only) and then by identity_key. The route does not take class_prefix.
| Parameter | Value | Effect |
|---|---|---|
status | all, unused, or one status name | all is the default. unused keeps unloaded, unreferenced, unreached and no-live-reference. failed-to-load, failed-to-initialize, counts-behind, without-evidence, stale and resources-only claim no removal, so unused leaves them out. Another value gets 400 that lists every accepted value. |
known_for_days | A whole number, 1 to 36500 | Keeps only dependencies whose first_known_at is at least that many days before as_of. It applies after status. total and paging count the kept rows. capped_hidden counts the dependencies that match status, have dates_capped true and a first_known_at that is not old enough. Their true date can be older, so the request cannot tell their age. It is 0 without known_for_days. listing_complete and instances_awaiting_listing describe the whole listing and do not change. A snapshot serves a request with it. Another value gets 400 with “known_for_days must be a whole number from 1 to 36500”. |
The response is {"dependencies", "total", "capped_hidden", "watched_since", "listing_complete", "instances_awaiting_listing", "as_of", "from_snapshot"}. The route is read from a snapshot for most scopes, and answers 202 while the snapshot is computing. When listing_complete is false, every row shown is right, but the list can be missing dependencies. See Inventory for what each status means.
| Field | Type | Meaning |
|---|---|---|
identity_key | string | The dependency’s identity. |
identities | array | Each {"group_id", "artifact_id", "versions"}. versions lists every version seen. A shaded jar carries several identities. |
status | string | One of the twelve statuses above. stale means the dependency was listed from the startup classpath, no run in scope loaded a class from it, and the service has recorded a load, dated by last_loaded_at. A request with version or active_within_days never gets stale, and answers unloaded instead. counts-behind means the status the dependency would take (stale, unloaded, unreached or no-live-reference) rests on counts that a run not yet settled has not delivered, and it claims nothing. resources-only means every in-scope listing counted no class in the jar and no run loaded a class from it. loaded also means a stripped run in the scope loaded a class from the jar, reports a reference to it, hit a method that holds a reference to it, or loaded a class that holds one, which stops unloaded, unreferenced, unreached and no-live-reference. failed-to-initialize means the dependency is loaded, has no live reference, and some run that judged it references it from a class that reads as failed to initialise. without-evidence means the status it would take (unreached or no-live-reference) rests on zero counts that no settled run is evidence for. Both claim nothing. |
loaded_classes_total | integer | The largest count of loaded classes any in-scope run reported. |
class_count | integer or null | Classes in the jar, when a run reported it. |
discovery_sources | array of strings | How the agent learned of it: startup_classpath, load, or unspecified. |
first_known_at, first_loaded_at, last_loaded_at, dates_capped | See shared fields. first_loaded_at and last_loaded_at are null for a dependency never loaded, and last_loaded_at is null when dates_capped is true. last_loaded_at is the arrival time of the latest batch that raised a loaded-class total, and can trail the true one by up to an hour. | |
sites | array | The places in your code that reference the dependency. Filled only for unreached, no-live-reference, failed-to-load and failed-to-initialize. Every other status, counts-behind and without-evidence included, has []. At most 50 entries. |
sites_total | integer | The true count of sites. |
sbom | object | What the build’s SBOM states about the dependency, as described below. Every row has it. |
The sbom object is {"match", "reason", "coordinates", "version", "paths"}. Its facts come from one run: the newest in-scope run, by start time, that lists the dependency and gave an SBOM match for it. A run that carried fields_stripped or a field Otherlode does not know is never that run, and neither is a run whose result breaks the agent’s protocol, such as a found SBOM with no match for the dependency. When no in-scope run gave a match, the facts come from the newest in-scope run that lists the dependency and found no SBOM or could not read one.
| Field | Type | Meaning |
|---|---|---|
match | string | matched means the agent matched the jar to one component of the SBOM. not-listed means no component fits the jar. ambiguous means the agent could not single out one component: more than one fits, or it could not read the jar’s hash while the SBOM gives hashes. no-sbom means no in-scope run read an SBOM and the newest run that looked found none. unreadable means that run found one it could not read, and reason says why. not-read means no in-scope run that lists the dependency gave an SBOM result for it, as from an agent that does not read SBOMs. |
reason | string or null | Why the SBOM could not be read, as the agent reported it. null for every other match. |
coordinates | object or null | {"group", "name", "version"} of the matched component. group is null when the component has none. null unless match is matched. The dependency’s identity_key and identities do not change. |
version | string or null | The service version of the run the facts come from, so you can see which build they describe. null for not-read, and when that run has no version. |
paths | array | Every direct dependency of the application that brings a matched component in, each with the shortest path from that dependency down to the component. A path is an array of {"group", "name", "version"} objects, in the shape of coordinates, and it includes both ends. A jar that is itself a direct dependency has a path of one element. When two shortest paths tie, the one whose component references sort first is the one shown. Paths are ordered by their direct dependency’s reference. A path never runs through a component the SBOM marks optional or excluded, unless the run the facts come from matched that component. A matched dependency that only such components bring in has no paths. A reference that the SBOM’s dependency list names but its components do not list reads as an element whose name is the reference, with a null group and an empty version. [] unless match is matched. |
A site is {"class_name", "method_name", "method_descriptor", "never_loaded", "counts_behind", "failed_to_load", "failed_to_initialize", "failed_since", "line"} plus the method naming fields. method_name and method_descriptor are null on a class-level site, which then names the class in the naming fields. never_loaded is true for a site only a static baseline knows, in a class that reads as never loaded: no run in scope loaded it, and on a read with no version and no active_within_days the service has no record of it loading. counts_behind is true for a site only a static baseline knows, in a class that no run in scope loaded and that a run not yet settled could have loaded. Its never_loaded is then false. failed_to_load is true when that class failed to load, and failed_since is then the class’s first_failed_at, or null when no environment in scope has a row for it. failed_to_initialize is true when the site is in a class that reads as failed to initialise.
GET /services/{service}/absent-references
Classes that your code references and that no class loader could find on some in-scope run that records references, such as code guarded by a check for an optional library. The route does not take class_prefix. The response is {"absent_references", "total", "listing_complete", "instances_awaiting_listing", "as_of", "from_snapshot"}, ordered by class name. Each row has class_name, sites and sites_total, in the shape that /dependencies uses. The route is read from a snapshot for most scopes, and answers 202 while the snapshot is computing.
Shared row fields
Method naming fields
Every row that names a method carries these fields, so a client can show hidden code, such as a lambda body, in its source language. They come from the newest in-scope run that knows the method.
| Field | Type | Meaning |
|---|---|---|
created_in | object or null | {"class_name", "method_name"} of the method that creates this lambda body or body class. null for any other method, or when no creator is in scope. |
lambda_body | boolean | true for a lambda body. |
captured_count | integer | How many leading parameters of a lambda body are captured values. |
source_file | string | The source file, as stored. On an inlined branch copy it is the file of the class the code came from. |
class_source_file | string | The source file of the row’s own class. |
body_kind | string | The kind of the method’s class: none, anonymous_class, object_expression, local_class or lambda_class. |
source_name | string | The class’s name in source. |
kotlin_kind | string | none, kotlin_class, file_facade, synthetic_class, multifile_facade or multifile_part. |
lambda_interface | string or null | The interface a lambda body implements. |
body_interface | string or null | The interface or superclass an anonymous class or object expression leads with. |
creation_ordinal | integer or null | The body’s number among those of one creator, when the creator alone does not tell them apart. |
parameter_names | array of strings | The declared parameter names in order. [] when the class file holds none. |
generic_signature | string | The method’s generic signature as written. "" when it has none. |
extension_receiver | boolean | true when the first parameter is a Kotlin extension receiver. |
Class naming fields
A class row carries created_in, body_kind, source_name, source_file, kotlin_kind, body_interface and creation_ordinal, with the meanings above. created_in is set only for a body class.
Example
This script lists the never-hit methods of one service in production, a page at a time.
BASE=https://app.otherlode.dev/api/v1/services/checkout
curl -s -H "Authorization: Bearer $OTHERLODE_READ_KEY" \
"$BASE/never-hit?environment=prod&kind=method&known_for_days=30&limit=100&offset=0"
The response has rows, total, capped_hidden, watched_since, as_of and from_snapshot. To read the next page, repeat the call with offset=100, and stop when offset reaches total.