Findings and accounts
What Otherlode keeps
Otherlode stores what your agents send, straight or through a collector, what it needs to know about the people who sign in, and a record of changes to your tenant. It deletes runs once they pass your tenant’s retention period, and it deletes other reported data only when an operator removes it on your request. It also sweeps five other things on a daily schedule: ended sessions, expired tenant choices, old client addresses in the audit log, old counts of refused payloads and usage days.
What Otherlode stores from a payload
Otherlode stores each payload under the tenant that owns the ingest key it arrived with. What the agent sends lists every field of every payload. Otherlode does not redact, and neither does an agent that sends straight to ingest, so its literals arrive as your code holds them. A collector with redaction on replaces the text of string literals in branch conditions, and in the case labels of a when or switch on a string, with … before a payload arrives. It replaces every such literal, or only those that match a pattern set on the collector. It also replaces every branch and site key with a keyed hash, and clears the case keys that could give a blanked literal away. It drops the fields it does not know, and marks a payload that lost one with fields_stripped. See Blank out string literals. Otherlode stores what arrives. A tenant can make ingest refuse every payload that did not come through such a collector. See Require redacted payloads.
| Payload | What Otherlode keeps |
|---|---|
| Any payload | The service namespace and name, the instance ID, the run ID, the service version, the environment, the test-run flag, the agent version and the flush interval. A payload from a run whose fields_stripped flag is set marks the run as stripped for good. So does a payload that carries a field Otherlode does not know. |
| Delta batch | The cumulative count for each probe, endpoint and dependency, for its run. Otherlode merges a count with max() within a run, so a repeated or late batch changes nothing. A final flush marks the run as ended cleanly. |
| Any delta batch or manifest | The run’s delivery state. The run keeps whether a delta batch has arrived, which only a delta batch sets and which never reverts, and the highest payload_sequence it has sent. A delta batch or manifest with a higher sequence sets whether the run’s counts are pending. A delta batch moves the state only after Otherlode stored all of its counts. The run is marked as behind from the time Otherlode received the first payload that said some counts are pending, until a payload with a higher sequence says none are. A payload with a lower or equal sequence changes nothing. |
| Probe manifest | What the ids in a delta batch name: class, method and parameter names, source file names and lines, call edges, referenced classes, branch sites with their condition text, endpoint route templates, dependencies with their jar locations, the skipped, failed and unreported classes with the reasons the agent gave, the classes it loaded that have nothing to probe with the classes each references, and the classes that failed to initialise with their reasons. A run also keeps the SBOM report its agent sent: its state, where it was found, the reason when it could not be read, the root component, every component’s reference, group, name, version and scope, every dependency edge, and the match of each dependency with a component. The run keeps one report, and a repeat of it changes nothing. A run keeps whether the agent could watch the verifier, which only a manifest that says it could not sets and which never reverts, and the largest count of verification failures the agent could not place in a class. |
| Static baseline chunk | The classes the scan declared, with their methods, call edges, branch sites and references, the classes it could not read and the classes with nothing to probe with the classes each references, and the include and exclude rules the scan applied. A scan records the references of its classes with nothing to probe only when every chunk says so. A scan counts as complete when every chunk has arrived. |
| Class listing chunk | The names of the classes the run’s build holds, and the include and exclude rules the agent applied. A listing counts as complete when every chunk has arrived. A chunk with other rules than the first chunk to arrive is not stored. |
A string literal in a condition and a jar path are stored as they arrive, so a literal is stored as the agent sent it unless a collector with redaction on replaced it. A NUL character in a manifest, static baseline or class listing is stored as U+FFFD (�), since the database cannot hold one, so a class or method name, a route or a literal that held one shows that character in its place. A class name, method name, route or other identifier longer than 768 bytes is stored as its first bytes, then …, then a digest of the whole name, and the API and the UI show it in that form. A method descriptor and a dependency’s identity_key are always stored whole. A test run is stored too, but it never lists a service. See Test runs.
Otherlode stores some code that it never judges: inline, generated, routine and unread-shape code, and every run that carried fields_stripped or a field Otherlode does not know. These are kept and shown, and they never count in a dead-code claim. Code a stripped run hit stays off the lists that say it never ran: a method or branch outcome it hit is not never hit, a class it loaded is not never loaded, and an endpoint it saw called is not never called. Such a method or endpoint is not listed as stale either. A dependency the run loaded a class from is not unloaded. A dependency the run reports a reference to is not unreferenced. A dependency whose referencing method the run hit, or whose referencing class it loaded, is not unreached and has no dead reference, whether the judged runs know the reference or only the run reports it. Such a dependency reads as loaded. An optional parameter is not never supplied when the run hit its method, and not always supplied when the run hit an omission of it. A class whose <clinit>, constructor or instance method it hit loses its never-initialised or never-instantiated finding, and its other methods with no hits, apart from its constructors, then show as never-hit rows. Branch sites and lambda bodies that were grouped under such a method show as rows of their own. A method it hit leaves its unreached cluster, and the code that method calls gets no root from it. This lasts only while that run is in scope, so a claim it held back can return when it expires. How findings are judged explains why.
Removed code is not stored
Otherlode stores no list of removed code and no removal date. It works removal out from the retained runs when you read, and when it computes a snapshot. The only stored result is a snapshot, which holds the findings with removed code left out, the report’s counts of it and the rows of the Removed list, and Otherlode replaces a snapshot whole. The date a Removed row shows is the last time a run that held the thing was seen, so a row leaves the list when those runs expire. See How findings are judged.
Dates come from Otherlode’s clock
Otherlode dates every first and last hit by the time a payload arrived, not by a time the agent sent. It keeps those dates once per service and environment, not per run. A first date only moves earlier and a last date only later. Expiry and pruning do not touch them. Dates describes each one.
Otherlode also keeps, for each environment, the classes a run there has skipped. Each has the arrival time of the first and the latest manifest that named it. A test run or a stripped run adds none. A class in this record supports no zero-count claim in a read that names no version and no seen-within window, whether or not the run that skipped it still exists. A read that names a version or a seen-within window weighs only the skips of the runs it selects. See Without evidence.
Otherlode keeps, for each environment, the endpoint modules a run there has disabled, with the arrival time of the first and the latest manifest that named each. A test run or a stripped run adds none. A module in this record supports no never-called or stale claim for its endpoints in a read that names no version and no seen-within window, whether or not the run that disabled it still exists. The record also keeps whether a run that disabled the module by failure had reported no endpoint of it. Otherlode decides that when the run is deleted, from the endpoints the run reported by then. A module kept off by configuration, or one that reports it does not count routes, is never recorded this way. When the record holds it, the read makes no never-called or stale claim for any endpoint of the environment. See Never called.
When a run that supplied an optional parameter expires or is pruned, Otherlode records the function and the parameter for the run’s environment, with the time. The parameters of a function come from the omission locations any environment of the service has reported, so the record is written even when no run kept the class that holds the omission probe. A read that names no version and no seen-within window does not claim the parameter never supplied while the record is set. A test run or a stripped run records none. Runs that expired before the record existed left none. See Never supplied.
Usage days
When a production run’s payload arrives for a service that Otherlode tracks, Otherlode records a usage day: the service’s namespace and name, and the UTC date of the payload’s arrival. It records one a day for each service. A test run records none, and neither does a service that isn’t tracked. A run that carries fields_stripped records one. A usage day names no instance, run or version. Otherlode counts the distinct services with a usage day in a period to know how many services your tenant used in it. It records no usage day for a day before it began recording them. See Scope and environments for which services Otherlode tracks.
What Otherlode keeps about refused payloads
While your tenant requires redacted payloads, ingest refuses a payload that does not carry your collector’s fingerprint. It stores nothing from that payload or its request: no service, instance, run, address or key. It keeps only a count for each UTC day and reason, and the time of the last refusal of that day and reason. The reason is redaction_required or redaction_secret_mismatch. A daily job deletes a day’s counts once the day is more than 30 days old. While the requirement is off, ingest ignores the Otherlode-Redaction header and keeps nothing about it.
How runs are kept apart
Each process has its own run ID, and Otherlode keeps every run’s rows apart. A restart starts a new run and never overwrites an earlier one. That holds under a pinned instance ID, and it holds when the new process reports a different service version. The instance then has both runs, each with its own version, and the earlier run stays until it expires or an operator removes it.
A run takes its environment and its test-run flag from its first payload. It takes its version from the first payload that carries one, and an empty version never replaces a known one. See Scope and environments.
A run keeps which classes it loaded and its own counts. What it reported about each class is stored once per service and shared by every run that reported the same content, so a restart of a build the service has already reported adds little. A class record that no run names is deleted when an expiry, a prune or an environment deletion removes the last run that named it. A class listing is kept the same way: what a chunk said is stored once per service and deleted when no run names it.
What Otherlode stores about people
For each user, Otherlode stores:
- The email address.
- The role,
adminorviewer. - The WorkOS user ID, once the person first signs in.
- When the user was created, when the person last signed in, and when they last signed in through your SSO connection.
- With directory sync, which person in which of your directories the user is, once a directory event names them.
- For a user created just in time, the WorkOS organization that created it, until an admin changes the user’s role.
Otherlode stores no name and no profile picture, even when the sign-in provider shares them. A person who has users in two tenants has two separate users. For a tenant it also stores the name, whether SSO is enforced, whether just-in-time provisioning is on, the link to its WorkOS organization, its verified email domains, and the fingerprint it requires on ingest while it requires redacted payloads. The fingerprint names your collector’s secret without revealing it.
For each session, Otherlode stores a hash of the cookie’s value, never the value. It also stores whether the session was made through SSO, when it was made, and when it was last used. A session stops working when it ends, as Sign-in and sessions lists. A sign-out and the removal of a user delete the session’s row at once. The daily sweep deletes the rows of sessions that ended by idle time or age.
While a person chooses a tenant on the tenant picker, Otherlode holds a tenant choice. It holds the WorkOS user ID, the email when WorkOS verified it, the tenants on offer and the page to open afterwards. The browser holds only a random token, and Otherlode keeps a hash of it. A tenant choice expires after 5 minutes and works once.
The audit log
Each tenant has an audit log that its admins read. An event holds the time, the actor, the action, the target and a few details. Otherlode copies the actor’s name when it writes the event. Deleting a user or revoking a key therefore leaves the events that name them. Otherlode keeps audit events for as long as the tenant exists.
An event that a person’s browser request caused also holds the client’s IP address. Otherlode clears that address when the event is more than a year old and keeps the rest of the event. The IP column then reads “No address was recorded”. See Audit log.
What Otherlode stores about API keys
Otherlode stores only the SHA-256 hash of an API key and its prefix, otl_ followed by 8 characters. It also stores the key’s name, its scope, when it was created and, for a revoked key, when it was revoked. It shows you the plaintext once, when you create the key, and cannot show it again. A revoked key stays on record with its revoke time and never authenticates again. See Manage API keys.
How tenants are kept apart
An ingest key belongs to one tenant, so every payload that arrives already names its tenant. A person’s session names one tenant too. Otherlode takes the tenant from the key or the session and never from the request.
Every query that reads or writes tenant data filters by tenant. The database adds a second check. It shows a request only the rows of the tenant that the request belongs to, so a query that missed its filter would still read nothing from another tenant.
What Otherlode deletes on a schedule
Otherlode deletes runs on a schedule, by each tenant’s retention period. A service that goes quiet stays in the service list with its dates. The scope parameter active_within_days only narrows what a read shows. It deletes nothing. See Scope and environments.
The retention period
Each tenant has a retention period. The default is 30 days. It can be from 7 to 3650 days. An operator sets it for the tenant. Once a day Otherlode deletes, for each tenant:
- Every run not seen within the period. A run counts as seen when its latest delta batch arrived. A run that still reports is kept whole, however long ago it started, because its counts are cumulative and cannot be split by date.
- Every test run that a newer run of the same test instance has replaced, whatever its age. A newer run replaces a test run when it started after the test run last reported, so test runs that share an instance ID and overlap are all kept. A read of test callers uses the newest test run, the newest unstripped one and the one with the newest complete scan of each test instance. A test run that such a read uses is kept.
- Every instance left with no run.
- Every stored class that no run names.
Services, environments and their dates stay. So does every service-wide record: the first and last hit of each location and endpoint, the classes each environment has loaded, the classes each environment has seen a run skip, the endpoint modules each environment has seen a run disable, the optional parameters an expired run supplied, and the last time each dependency loaded a class. A finding that code has had no hit for longer than the period therefore stays as sound as a newer one. What goes is per-run detail: hit counts, call edges, a run’s SBOM report with its components and edges, and the per-instance and per-version views. Code can show 0 hits beside a last-hit date. A read that names a version or a seen-within window answers for the runs it selects, so it cannot see past the period. See Dates and Scope and environments.
An expiry that removes anything records one Runs expired event for the tenant in your audit log. Changing the period records Retention period set. Deleted rows leave database backups within 7 days.
Other sweeps
Otherlode deletes five other things once a day.
| What | When it is deleted |
|---|---|
| A session | After 7 days without use, or 30 days after sign-in, whichever comes first. |
| A tenant choice | After it expires, 5 minutes after it starts. |
| An audit event’s client address | When the event is more than a year old. The rest of the event stays. |
| A day’s count of refused payloads | When the day is more than 30 days old. |
| A usage day | When the day is more than 25 months old, whatever the tenant’s retention period. |
Each deletion happens within a day of its cutoff. A session that has ended stops working at once, whether or not the sweep has removed its row.
What an operator removes on request
An operator is a person who runs the hosted service. To ask for any removal below except expiry, email support@otherlode.dev. Expiry runs every day without a request. Expiry, deleting a service, deleting an environment and a prune that removes something each record an event in your audit log.
| Removal | What goes | What stays |
|---|---|---|
| Delete a service | The service, its instances and runs, its dates and its records of skipped classes, disabled modules and supplied parameters in every environment. | Every other service, and the service’s usage days. |
| Delete an environment | The environment’s runs, dates and records of skipped classes, disabled modules and supplied parameters, then every instance left with no run. | The service and its other environments. |
| Prune old runs | Every run whose last delta batch is older than the number of days the operator names, then every instance left with no run, then every stored class that no run names. A run counts as seen when its latest delta batch arrived. | Every service, every date, the names of the classes each environment has loaded, the classes each environment has seen a run skip, the modules each environment has seen a run disable and the optional parameters a pruned run supplied. |
| Expire old runs | Every run whose latest delta batch is older than the tenant’s retention period, every test run that a newer run of the same test instance replaced after it last reported, then every instance left with no run, then every stored class that no run names. It runs daily, tenant by tenant. | Every service, every date, every service-wide record, including the classes each environment has seen a run skip, the modules each environment has seen a run disable and the optional parameters an expired run supplied, and every run seen within the period. |
| Delete a tenant | Everything the tenant holds: users, sessions, API keys, reported data, usage days and the audit log. Otherlode ends the tenant’s sessions and revokes its keys first. | Nothing of the tenant. |
A prune covers the runs of every tenant at once, and an operator runs it by hand. After a prune or an expiry removes a production run of an environment, a condition outcome without a branch key makes no never-hit claim in that environment, since the removed run may hold its only hit. Dates explains why. An agent that still reports in a deleted environment brings the environment back with a new run and fresh dates.
Deleted rows stay in database backups for up to 7 more days. The privacy policy covers what else is kept, including logs and the records WorkOS holds.
Related
- What the agent sends lists the fields of each payload.
- Sign-in and sessions lists the ways a session ends.
- Audit log lists every action and actor kind.
- Dates explains why dates outlive runs.