Skip to content

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"}
StatuserrorCause
400A 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: 5Otherlode 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: 5A 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:

ServicePath 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. The namespace and name fields of /services give both values for the path. A namespace of null means 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. Shop and shop are 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 gets 404 and 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.

ParameterValueEffect
environmentA nameKeeps 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.
versionA stringKeeps only runs that reported exactly that version. An unset value means every version.
active_within_daysA whole number, 1 to 36500Keeps 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.

ParameterDefaultRangeError
limit5001 to 5000“limit must be between 1 and 5000”
offset00 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

ParameterRoutesEffect
class_prefixEvery list route except /dependencies, /absent-references, /class-call-edges and /method-call-edgesKeeps 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, /endpointsKeeps 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, except as_of and last_failed_at, which are times it computed or tried to compute a result. See Dates.
  • as_of and from_snapshot are on every 200 of the routes read from a snapshot. as_of is when Otherlode read the data. from_snapshot is true when a stored snapshot gave the answer and false when Otherlode read it live.
  • Absent values are null. A list with nothing in it is [], never null.
  • watched_since is the time the service first reported in the scoped environment. With no environment, it is the earliest across the environments. It is null when 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_at and 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_capped is true when 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_known is 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 environment and no version;
  • an environment and no version;
  • an environment and 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}
FieldTypeMeaning
tenantstringThe tenant’s name.
userobject or nullThe 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"
    }
  ]
}
FieldTypeMeaning
namespacestring or nullThe service’s namespace. null is the unspecified namespace.
namestringThe service’s name.
instancesintegerDistinct instances with a production run. It counts instances, not runs.
last_seen_attimestamp or nullThe latest time any production run was seen. null when no instance is left.
watched_sincetimestamp or nullThe earliest watched_since of the environments.
environmentsarrayEach watched environment, ordered by name. Each is {"name", "watched_since"}.
not_tracked_environmentsarrayThe 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.

FieldTypeMeaning
namespacestring or nullAs in services.
namestringThe service’s name.
instancesintegerDistinct instances with a production run, counted as in services.
last_seen_attimestamp or nullThe 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
  }
}
statusMeaningOther fields
readyThe service has an all-environments snapshot of the current format.The counts below, and as_of.
computingThe 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.
noneNo environment of the service is watched, so it has no all-environments scope.None.
FieldTypeMeaning
as_oftimestampWhen the snapshot was computed.
methods.never_hitintegerThe report’s methods.never_hit.
branch_sites.with_never_hit_outcomeintegerThe report’s branch_sites.with_never_hit_outcome.
classes.never_loadedintegerThe report’s classes.never_loaded.
endpoints.never_calledintegerThe report’s endpoints.never_called.
dependenciesobjectThe 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.

FieldTypeMeaning
instance_idstringThe agent’s instance ID.
run_idstringThe latest run’s ID.
runsintegerThe number of in-scope runs of the instance.
versionstring or nullThe latest run’s version.
environmentstringThe latest run’s environment. none when the run named none.
first_seen_attimestampWhen Otherlode first heard from the instance.
last_seen_attimestampThe latest time any in-scope run was seen.
baselinestringcomplete when any in-scope run holds a complete static baseline, incomplete when one holds a scan that is not complete, else none.
ended_cleanlybooleantrue once the latest run’s shutdown flush arrived.
dependencies_listedbooleantrue when every in-scope run sent its whole dependency listing. A run that lost its history never counts as having sent it.
agent_versionstringThe agent version of the latest run.
fields_strippedbooleantrue 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_fieldsbooleantrue 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_receivedbooleantrue once a delta batch of the latest run has arrived. A run that sent only a manifest reads false.
startingbooleantrue while the latest run says its application is still loading its classes and the run is live.
history_lostbooleantrue 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_lostbooleantrue 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_unsettledbooleantrue 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_sincetimestamp or nullWhen 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.

FieldTypeMeaning
namespace, servicestring or null, stringThe service.
versionstring or nullThe version filter, null when unset.
active_within_daysinteger or nullThe active_within_days filter, null when unset.
as_oftimestampWhen Otherlode read the data. See routes read from a snapshot.
from_snapshotbooleantrue when a stored snapshot gave the report, false for a live read.
instancesobjecttotal, 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.
methodsobjectknown 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_sitesobjectknown, 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.
probesobjectinline and generated count the probes the counts above leave out. no_debug_info counts judgeable probes in classes that carry no line numbers.
classesobjectdeclared, 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.
endpointsobjectknown, 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_parametersobjectknown, never_supplied and always_supplied.
disabled_endpoint_modulesarray{"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_markersarray{"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_clustersobjectstate, 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.
dependenciesobjectknown, 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.
removedobjectclasses, 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_runsobjectcount and last_seen_at of the service’s test runs in every environment and version. No other figure counts them.
stripped_runsintegerThe service’s stripped production runs in every environment and version.
unread_shapesobjectmethods 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.

ParameterValueEffect
kindmethod or branchKeeps 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.
routineexclude or includeexclude, 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:

FieldTypeMeaning
kindstringAlways method.
class_name, method_name, method_descriptorstringThe method.
lineintegerThe method’s line. -1 when the class carries no line numbers.
branch_index, branch_keynullAlways null on a method row.
instances_known, first_known_at, dates_cappedSee shared fields.
generated_bystringThe method’s generated mark. See generated methods.
unread_shapestringAlways none, since the finding lists no unread method.
inlined_from_class_namestring or nullThe class an inlined copy came from.
routesarrayThe 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.

ParameterValueEffect
daysA whole number, 1 to 36500The cutoff in days. The default is 30. Another value gets 400 with “days must be a whole number from 1 to 36500”.
kindmethod or branchAs on /never-hit.
orderlast_hit or classlast_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.

FieldTypeMeaning
kindstringAlways branch.
class_name, method_name, method_descriptor, lineThe method that holds the site, and the site’s line.
site_keystring or nullThe agent’s key for the site.
conditionarrayThe condition as parts, {"kind", "text"}. kind is code, string_literal or placeholder. Show the parts one after the other with nothing between them.
guardinteger or nullThe 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, routesAs on a method row.
outcomesarrayThe outcomes of the site, described next.

Each outcome has these fields:

FieldTypeMeaning
branch_indexintegerThe agent’s index for the outcome.
branch_keystring or nullThe agent’s key. An outcome with a key has service-wide dates.
rolestring or nulltaken, fall_through, case or default.
case_key, case_labelinteger or null, arrayFor a switch case. case_label has the shape of condition.
hits_totalintegerHits across the in-scope runs.
first_known_at, first_hit_at, last_hit_at, dates_cappedSee shared fields. The last two are null for an outcome never hit.
guarded_lines, partly_guarded_linesarrayLines that run only through this outcome, and lines that also hold code reached another way. Each is {"source_file", "first_line", "last_line"}.
routinestringnone, null_default, throw_only or finally_copy. See routine outcomes.
unread_shapestringThe outcome’s unread-shape family, or none. See unread shapes. An unread outcome is never in_finding.
in_findingbooleantrue 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.

ParameterValueEffect
kindmethod, branch or optional_argumentKeeps one kind. Another value gets 400 with kind must be "method", "branch", or "optional_argument".
classA class nameKeeps one class, matched exactly. It combines with class_prefix.
routedtrue or falsetrue 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_generatedtrue or falsefalse, the default, leaves out generated probes.
include_unreadtrue or falsefalse, 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:

FieldTypeMeaning
class_name, method_name, method_descriptor, lineThe location. On a branch row, line is the site’s line.
kindstringmethod, branch or optional_argument.
branch_index, branch_keyinteger or null, string or nullSet on a branch row.
instances_known, first_known_at, first_hit_at, last_hit_at, dates_cappedSee shared fields.
hits_totalintegerHits across the in-scope runs. For an optional-argument probe, the calls that left the parameter out.
counts_behindbooleantrue 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_evidencebooleantrue 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_hitbooleantrue 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_withheldbooleantrue 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.
inlinebooleantrue for a probe inside a Kotlin inline function.
generated_by, unread_shapestringThe 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_namestring or nullThe class an inlined branch copy came from.
routesarrayAs on a never-hit row.
parameter_index, parameter_name, overridable, target_class_nameinteger or null, string or null, boolean, string or nullFor an optional-argument probe. target_class_name is set only for a Scala constructor default.
site_index, site_key, condition, guardThe site of a branch row. Otherwise null.
role, case_key, case_label, guarded_lines, partly_guarded_linesThe outcome of a branch row, as in site rows. Otherwise null.
in_never_hit_codeboolean or nullOn a branch row, true when the site folds into a never-hit method. Otherwise null.
routinestring or nullOn a branch row, the outcome’s routine kind. Otherwise null.
outside_callerobject or nullOn 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.

ParameterValueEffect
classA class nameKeeps one class, matched exactly.
routedtrue or falsetrue 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:

FieldTypeMeaning
class_namestringThe class.
methodsobjectThe report’s methods counts for this class.
branch_sitesobjectThe report’s branch_sites counts for this class.
routedbooleantrue when any method of the class handles an in-scope endpoint.
findingstring or nullnever_initialized, never_instantiated or null.
failed_to_initializebooleantrue 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.

RouteListsExtra parameters
/never-loadedClasses 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-initializedLoaded classes whose static initialiser never ran.known_for_days
/never-instantiatedLoaded classes with a constructor and an instance method, where no constructor and no instance method ran.known_for_days
/failed-to-loadClasses the agent instrumented that the JVM never defined. Each is a deployment problem and never dead code.None
/failed-to-initializeClasses 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:

FieldTypeMeaning
class_namestringThe class.
methodsarray of stringsThe class’s method names. A static initialiser is not listed.
methods_generated_by, methods_unread_shapearray of stringsOne value for each entry of methods, in the same order.
instances_declaringinteger/never-loaded only. Instances whose baseline declares the class.
instances_loadingintegerThe other two routes. Instances that loaded the class.
first_known_attimestampThe 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
}
FieldTypeMeaning
class_namestringThe class.
instances_namingintegerInstances whose in-scope runs name the class as failed.
first_failed_at, last_failed_attimestamp or nullWhen 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_daysinteger or nullWhole 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
}
FieldTypeMeaning
class_namestringThe class.
reasonsarray of stringsThe 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_fromarray of stringsThe 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_namingintegerInstances with an in-scope run that failed the class, named or carried.
first_failed_at, last_failed_attimestamp or nullAs 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_daysinteger or nullWhole 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:

FieldKindsMeaning
kindevery rowclass, method, endpoint or dependency.
class_nameclass, methodThe class, as the agent names it.
method_name, method_descriptormethodThe method, as the agent names it.
linemethodA 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_labelendpointThe endpoint, as an /endpoints row carries it. The verb * stands for any verb.
identity_keydependencyThe dependency’s cross-run name.
identitiesdependency{"group_id", "artifact_id", "versions"} for each identity, as /dependencies shows them.
stopped_atevery rowThe 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.

ParameterValueEffect
statusall or a row statusall 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".
daysA whole number, 1 to 36500The 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”.
orderroute, never_called_first or live_firstroute, 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".
frameworkA module nameKeeps endpoints from that framework module, matched exactly.
known_for_daysA whole number, 1 to 36500Keeps 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”.
outsideexclude or onlyWithout 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:

FieldTypeMeaning
verbstringThe HTTP method, upper case. * when the framework takes any method.
route_templatestringThe 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_kindstringpath 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_labelstringThe text Otherlode writes for the kind: Path, Regular expression, Servlet pattern, or for unknown a label saying a newer agent sent it.
verbatim_templatestringThe framework’s own spelling of the template.
frameworkstringThe endpoint module that reported it.
discovery_sourcestringregistration when a framework hook declared it, dispatch when the first request found it.
handler_class, handler_method, handler_descriptorstring or nullThe handler, when the agent could join the endpoint to one.
handler_includedboolean, or absentfalse 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_cappedSee shared fields.
calls_totalintegerCalls 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.
statusstringThe 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_disabledbooleantrue 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_recordedbooleantrue 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_behindbooleantrue 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.

ParameterValueEffect
statusall, never-supplied or always-suppliedall is the default. Another value gets 400 with status must be "all", "never-supplied", or "always-supplied".
FieldTypeMeaning
class_name, method_name, method_descriptor, lineThe target function.
parameter_indexintegerThe zero-based index of the optional parameter.
parameter_namestring or nullThe name, when the class carries debug information.
inline, overridablebooleanThe function is inline, or can be overridden.
generated_by, unread_shapestringThe probe’s marks.
instances_known, first_known_at, first_omitted_at, last_omitted_atSee shared fields.
omissions_totalintegerCalls that left the parameter out.
target_hits_totalinteger or nullHits 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.

FieldTypeMeaning
rootobjectThe cluster’s root.
members_totalintegerThe true count of methods in the cluster, whole classes included.
never_loaded_classesintegerMembers that are classes only a complete baseline knows.
whole_classesarrayClasses 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.
membersarrayThe other methods, as graph nodes.
test_callersarrayCalls 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_totalintegerThe true count of test callers.
test_only_unconfirmedbooleantrue 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:

FieldTypeMeaning
root_kindstringreached_from_hit, uncalled, called_only_by_tests, called_from_outside_scope, untaken_outcome or class_finding.
findingstring or nullOn a class_finding root, never_loaded, never_initialized or never_instantiated. Otherwise null.
routesarrayThe endpoints the root method handles. [] on a class_finding root.
siteobject or nullOn an untaken_outcome root, the site row of the outcome, with in_finding set only on the root outcome. Otherwise null.
reached_fromarrayGraph 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_callerobject 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.

FieldTypeMeaning
caller, calleeobjectGraph nodes, as under unreached clusters.
kindstringcall or creates.
virtualbooleantrue for a virtual call, which Otherlode already widened to every override in scope.
captured_countintegerFor a creates edge from invokedynamic, how many leading parameters the edge captures. Otherwise 0.
guardinteger or nullThe branch index, in the caller’s class, of the innermost outcome that must run before the call.
declared_ownerstringThe 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.

ParameterValueEffect
classA class nameRequired, 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.

ParameterValueEffect
class, method_name, method_descriptorThe method’s class, name and descriptorAll 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.

ParameterValueEffect
daysA whole number from 1 to 36500The stale-after value, 30 by default. It judges the endpoint statuses and when a method is stale. The count runs back from as_of.
statusall, dead, cluster-under or staleKeeps the roots with that flag. all is the default, and any other value gets 400.
searchTextKeeps 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:

FieldTypeMeaning
kindstringendpoint or method.
statusstringAn endpoint’s status at days, or a method’s: never-loaded, not-judged, never-hit, stale or live.
deadbooleantrue 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.
stalebooleantrue for a stale endpoint or a stale method.
cluster_underbooleantrue 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.

ParameterValueEffect
rootA JSON objectNames 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”.
clusterA JSON objectNames 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.
budgetA whole number from 1 to 2000How many methods to keep, 500 by default. A method root counts as a method.
days, status, search, limit, offsetAs on /graph-rootsWithout 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.

FieldTypeMeaning
rootsarrayThe roots kept, as {"kind", ...} objects in the shape of root.
roots_totalintegerHow 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_totalintegerHow many methods the roots reach in all, method roots included. search does not change it.
cutbooleantrue when methods_total is more than budget, so the answer holds the first budget methods and leaves out the rest.
endpointsarrayThe rows of /endpoints for the endpoints kept.
methodsarrayOne object per method kept, described below.
classesarrayThe class of each method kept, and each class the walk entered through its static initialiser, described below.
edgesarrayEach 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.

ParameterValueEffect
statusall, unused, or one status nameall 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_daysA whole number, 1 to 36500Keeps 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.

FieldTypeMeaning
identity_keystringThe dependency’s identity.
identitiesarrayEach {"group_id", "artifact_id", "versions"}. versions lists every version seen. A shaded jar carries several identities.
statusstringOne 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_totalintegerThe largest count of loaded classes any in-scope run reported.
class_countinteger or nullClasses in the jar, when a run reported it.
discovery_sourcesarray of stringsHow the agent learned of it: startup_classpath, load, or unspecified.
first_known_at, first_loaded_at, last_loaded_at, dates_cappedSee 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.
sitesarrayThe 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_totalintegerThe true count of sites.
sbomobjectWhat 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.

FieldTypeMeaning
matchstringmatched 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.
reasonstring or nullWhy the SBOM could not be read, as the agent reported it. null for every other match.
coordinatesobject 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.
versionstring or nullThe 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.
pathsarrayEvery 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.

FieldTypeMeaning
created_inobject 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_bodybooleantrue for a lambda body.
captured_countintegerHow many leading parameters of a lambda body are captured values.
source_filestringThe source file, as stored. On an inlined branch copy it is the file of the class the code came from.
class_source_filestringThe source file of the row’s own class.
body_kindstringThe kind of the method’s class: none, anonymous_class, object_expression, local_class or lambda_class.
source_namestringThe class’s name in source.
kotlin_kindstringnone, kotlin_class, file_facade, synthetic_class, multifile_facade or multifile_part.
lambda_interfacestring or nullThe interface a lambda body implements.
body_interfacestring or nullThe interface or superclass an anonymous class or object expression leads with.
creation_ordinalinteger or nullThe body’s number among those of one creator, when the creator alone does not tell them apart.
parameter_namesarray of stringsThe declared parameter names in order. [] when the class file holds none.
generic_signaturestringThe method’s generic signature as written. "" when it has none.
extension_receiverbooleantrue 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.