Skip to main content

The built-in self test

http://<prism>/selftest

Prism runs where we cannot reach it. No logs, no shell, no query — so the box has to be able to answer, by itself, to someone with no context:

  1. What is running here, and where?
  2. Does it work?
  3. If not — is that Prism, or is it something upstream of Prism?

That third question is the one this page exists for. Press Run again to start a run; Download diagnostic bundle (.json) produces a file you can send us.

It is a verdict you run, not a meter. For what the ingest is doing right now — the rate Prism is calling your GitHub or Jira at, while it is calling — see What Prism is pulling, right now, which refreshes itself and is linked from the bottom of this page.

A run takes up to about two minutes on a cold install. That is deliberate: it waits out pods that are still starting rather than calling them down. The likeliest moment for anyone to press this button is minutes after an install, and a check with less patience than the product itself would report failures the product does not have.

How to read it​

Checks are grouped by what they prove.

PRISM — the parts we ship: the database, the headroom left on its volume, the agent runner, each MCP server, and a real chat round trip.

mcp semantic query fails when MCP_PROFILES has no Semantic Query entry. The chart renders that entry on every install. A missing entry usually means someone changed the app's environment by hand. Without it the agent cannot read any context stream. The chart renders the entry from the semantic query MCP's service name and the port in mcps.semanticMcp.port.

AGENT ROUTER — the parts you and we share: the management API, the inference endpoint, and the model catalogue.

SOURCES — GitHub pull requests, GitHub issues, Jira and Router spend: which mode each runs in (synthetic or live), how many rows it holds, and how fresh they are. There is no line for a user directory: Prism keeps no list of people of its own, and the people in your organisation come from the source you designate as your organizational context stream, which appears on Admin → Context streams like any other source.

The GitHub line says what its searches ran as, on the line that counts live rows and on a failed check where GitHub accepted the credential: searched as the GitHub App (all repositories) or (N selected repositories), searched as a classic PAT, searched as a fine-grained PAT, or searched as a token of unrecognised kind for a token with neither the ghp_ nor the github_pat_ prefix. GitHub's search answers a PAT from what the token's owner can see (Widen the scope), so beside a PAT the page adds the account it acts as, · acting as <login>. The diagnostic bundle and the check job's log carry the kind and never the login. The clause is absent until prism-ingest check github has recorded the credential, for a token GitHub refused, and where a credential is stored on the GitHub source in the admin surface.

Three more lines are about your organizational context stream (with the source registry on, which is the default), and they answer three different questions about it. designated route asks whether the agent has a tool that can read the source you designated — a designated stream is served through the semantic query MCP and through nothing else, so an install whose MCP_PROFILES has no Semantic Query profile has named a source of record for people that is not on the agent's tool list at all. identity crosswalk asks the further question: whether the last compile FROM that source left anything to resolve people through. It can fail while the source itself is connected, verified and fresh, because a stream the compiler will not read — a query-through view today — is emptied rather than left resolving, on purpose: a directory nobody can compile from must not go on answering about people. When it fails it carries the reason the ingest job recorded, which names the fix. On an install that designates nothing, designated route is SKIPped (there is nothing to route to) and identity crosswalk is a warning, because the crosswalk has no directory to compile from. The warning says so if the crosswalk still holds the last compile from a directory that is no longer designated, which stays until the next crosswalk run. If the source you designated is not enabled, identity crosswalk fails and names it, including between designating a source and enabling it, and the other two lines point to it.

The identity crosswalk line also carries how well the addresses Prism harvested from your forge join to the people on your staff list, and — where there are any — why the ones that do not, do not. Three questions are asked of every address that matches nobody:

  • it carries a local part your staff list holds at a different domain — the same person spelled two ways, and the only one of the three anybody can act on. Change one spelling and the person resolves.
  • it is on a domain your staff list never uses — usually a personal address someone put in their public profile.
  • it is on a domain your list does use, under a local part it does not hold.

Expect the third to be large, and do not read it as a fault. A forge organisation holds accounts that are not people on a staff list — contractors, service accounts, leavers, machine users — so most of that number is people your list was never going to name. It also cannot tell "not on the staff list" apart from "on it under a different naming convention" (asmith against alice.smith): separating those means matching names by their shape, which Prism does not do, because a guess there attaches one person's work to another.

The same counts are on each context stream's Overview in Admin → Context streams, as Identity match rate: one line for each harvest that resolves a kind of handle the stream's fields name. A harvest is counted for the whole installation, so two streams it resolves show the same figures.

The Identity resolution row beside it counts the stream's own values. It says how many distinct values in each person field resolve to one person in the directory, and on how many rows. An automation account, such as a login ending in [bot], is a value there that does not resolve. So the share can be lower than the share among people. Answers leave such accounts out of people counts.

When the last compile could not read the directory.

  • A warehouse that cannot be reached or times out, for a live directory whose pairs from an earlier read Prism still keeps: the crosswalk is compiled from those pairs, and the line is amber. It says when those pairs were read, and that the last read did not complete. Prism keeps the pairs until a live directory, this one or another, is read successfully, or until the crosswalk is emptied. Without them, the outage stops the compile, as the next case describes.

  • A compile that stops without compiling, for example because the directory's engine mode does not resolve. What the line says depends on whose crosswalk was standing:

    • Compiled from the same directory: the crosswalk is kept, and the line is amber. People still resolve through that earlier crosswalk, and the line says when it was compiled. It stays until a compile succeeds, or a later compile empties it.
    • Compiled from another directory, the one the stream was moved away from: the crosswalk is emptied, and the line is red. A directory the installation no longer designates does not go on answering. The same failure right after Move to onto a live directory Prism has never read ends this way too.
  • A compile stopped by a passing problem in the database. The crosswalk compiled from the same directory is kept, the line is amber, and it names the error. People still resolve through that earlier crosswalk, and the next run compiles again. A person the earlier crosswalk cannot place is told the organizational directory isn't available, not that their address matches no one. What each error means, and what to check if it repeats:

    The line namesWhat happenedCheck, if it repeats
    QueryCanceledErrorA statement of the compile was cancelled, by someone cancelling it on the database or by a statement_timeout set on Prism's database role or the database.Whether a DBA cancels long queries, or a statement_timeout shorter than the compile needs is set for Prism's login.
    DeadlockDetectedError, SerializationErrorThe compile collided with another session working on the same tables.Another ingest run or a command run by hand at the same moment.
    TablesBusyA table the compile reads stayed locked by another session for 10 seconds.A long migration, or an ingest run holding a table it is truncating.
    WouldEmptyThe directory read as empty inside the compile, where it had rows a moment before.A reload of the directory's table landing while the compile ran.
    DiskFullError, OutOfMemoryErrorThe database ran short of disk or memory.The database server's disk and memory.
    AdminShutdownError, CrashShutdownErrorThe database was shutting down or restarting.The database's availability, and failovers.
    A connection error, such as ConnectionDoesNotExistErrorThe connection to the database was lost during the compile. Prism records the state on a new connection.The network between the ingest and the database, and failovers.

    Every other failure still empties the crosswalk and turns the line red, because it means the compile cannot be trusted: a missing table or column, a permission, or directory data that no longer fits the rules, such as a check violation. The reason it names is the one to fix.

  • A directory whose copy its current manifest did not produce. Either a walk took the directory's tables over and has not fully completed (it is running, or it failed), or a table the crosswalk reads holds a copy taken under another definition of its stream: its query or file, its columns, or where they come from. That is a stream edited since its last walk, or an edit put back after a walk under it. An edit that moves the directory's stream to another table is the same case: until a walk lands the new table, the copy in the table it moved from is the previous definition's. The crosswalk is not compiled from that copy: read under a manifest that did not produce it, its columns can place nobody. A crosswalk compiled from this directory, where one stands, is kept, and the line is amber. It ends when a walk under the current manifest completes. An edit that changes nothing a stream lands, such as the label, the designation or a policy setting, does not wait for a walk. Neither does pointing the directory at another database or schema with its streams unchanged: its copy is the previous one's until the next walk, as any copy is between walks. After an upgrade from a version without this check, a directory's copy carries no record of its definition until its next walk, and is compiled as before until then. If the walk is failing, the directory's own row on Admin → Context streams says why.

A crosswalk kept this way for longer than app.crosswalkStaleMaxHours (24 hours by default) turns the line red. The line names the error, the crosswalk's age, and the bound. Admin → Context streams shows it as a fault. Nothing changes about who resolves: people still resolve through the kept crosswalk, as the directory stood when it was compiled. That is why it fails rather than warns. Find out why the compiles do not complete, from the error the line names, or lower the bound if a day is too long to learn it from a warning.

The same bound applies to a query-through directory whose warehouse pulls fail. Its crosswalk is compiled again on each run from the pairs the last good pull staged, so the line is amber. Prism pulls once a day, so the bound counts from when the next pull fell due, a day after the last good one. Once the pulls have failed for longer than the bound the line turns red, names when the pairs were pulled and how long the pulls have failed, and the page shows a fault. At the default bound of 24 hours, that is about two days after the last good pull, not one. Measured on the ingest: amber on the first failed pull, 24 hours and 15 minutes after the last good one; still amber at 47 hours 45 minutes; red at 48 hours 30 minutes.

Admin → Context streams shows the same state on the directory's row and pane.

Beside those, the line reports members Prism asked about and kept nothing for, by reason, counted over every member it has ever looked up. The reason worth checking is domain_not_allowed: that is the address allowlist (the github source's identity_email_domains) doing what you set it to do, and a number there means people on a second corporate domain are being left out of the crosswalk. Whether that domain belongs in the allowlist is your call — Prism reports the figure and changes nothing.

On the first bundles after upgrading, read that block with its companion number. Prism records the reason against each member as it looks them up, and the look-up is a rolling pass of a couple of hundred members at a time — so every member swept by an earlier version carries no reason until the pass comes round to them again, which on a large organisation takes weeks. The line says how many are in that state. While that number is large, an empty list of reasons is not a finding: it means almost nobody has been asked yet, not that nothing is being refused, and the line says so rather than leaving you to work it out.

None of these names a domain or an address. They are counts, because the self test's report is a file you may send back to us.

identity attribution asks the last question in that chain, and it is the one an install can fail while the other two pass: for each source whose rows name a person, does the crosswalk hold an identifier of a kind that source uses? A compile that linked four thousand email addresses and no GitHub logins has worked — and every question about who opened which pull request still resolves to nobody, because GitHub keys people by login and by nothing else. The line fails and names the sources and the kind each one needs:

FAIL identity attribution no activity on 2 enabled source(s) can be attributed
to a person — the crosswalk holds email 4589,
github_login 0 and github needs github_login;
gitlab needs gitlab_username. Every question about
who did what, on those sources, resolves to nobody

The kinds come from each source's own manifest — the identity: on a column — so a source you register from a recipe is measured by what your document declares, not by a list of source names we shipped. A source that names nobody at all, such as a resource plan, is not asked to resolve anyone. A source needing more than one kind passes on either: Jira can find a person by address or by login, so an installation holding addresses answers its questions even where the forges' go unresolved.

It stands down rather than adding a second red wherever the crosswalk line above already owns the fault — a refused or never-run compile, a compile that linked nothing, or one taken from a source that is no longer the designated one. And it says cannot tell rather than passing where a source's manifest will not parse in this build, or where the directory's own population could not be measured and the source rests on the anchor identifier: in both cases nothing has established that anybody resolves, and reporting that as green is what this line exists to stop.

ingest dispatch asks a question none of those does: is any stream switched on that Prism will never collect anything from? There are two such streams, and the line names both.

  • A stream of your own with no credential stored on it. A mirror or snapshot carrying a document you wrote, pasted, or edited is walked under whatever name you gave it, but the ingest job never lends it a credential from its own configuration — the document chooses where its requests go. Every other signal about the stream can stay green meanwhile. Enter the credential on the stream's page on Admin → Context streams; the job walks it from its next run. See If you want the plan's history.
  • A document naming a part this release does not implement. Nothing on your appliance fixes it, and the line under the stream names the part. Ask us.

What the line does not do is tell you to rename the stream, and that is deliberate: renaming it to a prebuilt name either collides with a stream your install already has, or quietly hands the walk to the prebuilt document and drops your edits.

Not every uncollected stream is a fault, and this line counts only the ones that are. A query-through stream copies nothing by design — its rows are read from your own system while a question is answered — and is not counted. Neither is a stream nobody has switched on yet, nor a file stream such as a roster upload, which is collected without a prebuilt stream at all. A stream whose stored document Prism could not read is named as not judged rather than counted as looked at and found well; it wears needs setup on Admin → Context streams and that is where its reason is.

A clean line here says what it checked and no more: none of the switched-on streams is one this build would never walk. It is not a promise that every stream will run on its next tick — the job has further gates this report cannot see (the stream's schedule, whether its engine is deployed on this installation, and whether its stored document still matches the one this release ships).

source registry reads what the Context streams page holds: how many sources, datasets and packs it has, and how many context streams are switched on against your entitlement. It never fails. It warns when the registry cannot be read, when what it holds disagrees with the older per-source configuration the chart renders, and when a stream claims the organizational directory in a way Prism cannot use, which it names.

GitHub gets two lines because it fills two indexes. Pull requests and issues are copied together, on the same schedule and with the same credential — there is no sources.githubIssues, and the issue line follows sources.github — but they are counted, dated and covered separately, because each of the two searches has its own limits and its own history.

An empty issue index is a pass, once the sweep has run. An organisation that files no GitHub issues is a normal shape for this product, so the line reports what it knows rather than failing:

PASS github_issues 0 issues — this organisation files none; the issue sweep
reaches back to 2026-05-28
WARN github_issues 0 issues — the issue lane has not completed a sweep here yet

The two are different facts, and the leading edge is what separates them: until a run has swept issues and recorded how far back it reached, nobody can say whether there are none or whether nothing has looked. The synthetic seed writes no issues at all, so on a synthetic install the line stands down and says so.

A live source is also measured against its own ingest schedule. Once four of its scheduled intervals have gone by with no ingest completing — 24 hours on the six-hourly default — the line fails outright rather than reporting an age for you to judge:

FAIL github ingest stalled — last completed 2d ago, past the 24h budget
(schedule is every 6h) · 26,029 rows

The rows are still there, which is exactly why this is a verdict and not a row count: a stalled index looks healthy until you know what its schedule was supposed to be. ingest.stallAfterIntervals sets the multiple, and 0 turns the verdict off and leaves the age on the line. The budget in force is in the bundle as ingest_stall_budget_hours. For GitHub and Jira it is built from their context stream's own schedule. For Router spend it is built from ingest.spend.schedule. It is absent where no schedule can be read, and the verdict then stands down rather than guessing.

It also stands down until that source's first live ingest has completed. A source you have just flipped from synthetic to live has not been swept yet, so there is nothing to date the schedule from; the line reports what is there while the first backfill runs, and the verdict starts applying from the first run that finishes.

A source you are preparing carries an upstream verdict before you flip it. Configure a source's target and credential and leave sources.<name> alone, and each helm upgrade probes that upstream and reports whether it is ready:

PASS github synthetic · 26,029 rows · seeded 6d ago · upstream ready to go live (1m ago)
WARN github synthetic · 26,029 rows · seeded 6d ago · upstream NOT ready:
org_visible_but_no_prs_found (1m ago) — going live now would
evict the rows above and ingest nothing

The mode is still synthetic on both, and the source is still answering from the seeded data — the clause is about the upstream, not about what is being served. Amber is deliberately not red: nothing is broken, and the finding is about a flip that has not happened. It is amber because there is a move to make, and because the flip is the destructive step — the first live ingest truncates the rows the same line is counting, so a credential that authenticates cleanly and sees nothing would replace a working demonstration with an empty source. See Take a source live.

A source set to synthetic that a live ingest has written to fails. An unset sources.* value means synthetic, so a values file that has lost a line reads that way, and the seed then leaves the source alone rather than replace its live rows:

FAIL github live data kept, and the seed leaves its rows alone, but the
chart sets this source to sample data (sources.github:
synthetic): a live run completed (2026-09-30 02:40 UTC).
Restore `sources.github: live`

The line reads the same records the seed does, in the same order: the ingest's watermark, its record of taking the tables over (also kept on the source's status, which survives DELETE FROM ingest_state), and its last status. A watermark or takeover record older than the seed's own last write does not count: that is a source set back to synthetic under an earlier release, and its rows are samples. See Troubleshooting.

Freshness is stated in the units the source actually keeps. Most sources stamp each row with the moment the thing happened, so the line reads data through 3h ago. Synthetic Router spend is aggregated per day and knows no finer, so its line names the day itself — data through 2026-07-28. A spend line showing yesterday's date is current: yesterday is the newest complete day. Compare it against the timestamp in the page header rather than against the ages on the other lines.

Live Router spend is the exception, and it has no row count or date at all. Once sources.spend=live, Prism keeps no local spend index — the question goes straight to the Agent Router's usage API each time it is asked — so there is nothing on this box whose size or age would mean anything. That line reads live · served by the Agent Router usage API (no local index), and it is telling you the wiring is right, not that the data is missing. Whether the Router is actually answering is the AGENT ROUTER lines' verdict, a few rows up; the answer's own currency is the Router's, and the chat states it with the figures. Do not read the absent date as stale spend.

sources.spend=indexed is the opposite case: it reads like the other indexes, because it is one. Prism sweeps the Router's request logs into router_spend_key_daily on a schedule, so that line carries a row count and a data through date, and — like GitHub and Jira — it fails when the sweep stops completing rather than reporting an age for you to interpret. A date of yesterday is current here for the same reason as synthetic spend: the rows are whole UTC days.

Four verdicts: pass, fail, warn, and skip. A skip is not a failure — it usually means the check stood down because something it depends on already failed and owns the verdict.

Three properties are worth knowing, because they change what the page is telling you:

Every line is exactly one hop, with one named exception. The indexed MCP servers — Agent Router Usage, Semantic Query — do not call GitHub or Jira. They read a local index that the ingest jobs populate (Semantic Query also sends a query-through stream's statement to that stream's own system). So "the GitHub MCP is healthy" says nothing at all about whether GitHub is reachable; those are four hops apart and each gets its own line. A green check at the wrong layer is the specific failure this page is built to prevent.

The exception is the GitHub Live line, and it is one because that server is not an index — it is a facade in front of GitHub's API, so there is no local thing for it to be healthy about. Checking it the way the others are checked would be a green check at the wrong layer, which is the fault this page exists to prevent rather than commit. So this one line does leave your network: it calls search_pull_requests with query="is:pr", perPage=1, one request against GitHub's 30-per-minute search allowance, on the same egress path the chat uses. It is the only line that does.

Two consequences worth having in advance:

  • Read a red GitHub Live line as "the path to GitHub is broken", not "the MCP is broken". The likely causes are in that order: no egress to api.github.com from the namespace, a GITHUB_TOKEN that is missing, expired or too narrowly scoped, or the github-mcp-server child process failing to start. The evidence in the bundle names which.
  • It costs a GitHub API request each time you press the button. The self test is operator-driven and not on a timer, and the request is a read, so running it repeatedly cannot change anything — but unlike the SMTP check, which deliberately stops short of sending a message, this one really does talk to the far end.

The line exists at all only when mcps.githubLive.enabled is true; the chart defaults it off, and with it off there is no GitHub Live line and nothing on this page leaves your network.

CONTEXT STREAMS — one line for every source registered on Admin → Context streams, including any you registered yourself, which the SOURCES lines above do not list. It appears only with the source registry on. Each line carries the word the Context streams page shows for that source and the reason beside it, with any person's name removed, plus what the ingest bookkeeping has recorded for it:

  • a failed run is recorded. An ingest run failed, and no run has completed since. A completed run clears it. The line carries the first 160 characters of the reason, on one line: a reason Prism composed is shown as written, and an error raised by a database driver is shown as its type alone, because a driver's message can quote a value. A longer reason is cut with no marker; the bundle keeps the first 300 characters. A switched-off source's line does not show it.
  • behind: changes (1 of 4). The source's tables are judged on their own latest copies, and these are behind. The rest of the line says how recently the others copied. See What stale means.
  • the last completed run could not fetch some partitions. A partial run.
  • its last completed run found nothing to read. The run completed, and the stream's table holds no rows. Check that the source holds data in the scope this stream reads, and that its credential can read it. Some streams are meant to be empty. GitHub Actions over repositories that run no workflows is one. For a stream like that, open it on Admin → Context streams and click Mark as expected to be empty. The line then stops warning that the stream is empty, and it says the stream was marked and on which day. The line's other checks still apply.
  • its shadow run has a failure recorded. The new ingest engine, running alongside the current one, failed. The data you are served is unaffected.
  • the ingest bookkeeping could not be read. Nothing is known either way.
  • the latest copy of people landed without a reload check: … The copy being served carries a note, in its own words. Today the only note is a Postgres snapshot copy that landed although its reload check could not be made, which can be short (see Postgres snapshot). Tables that share a note share one clause ("the latest copy of each of a, b …"). It is said and not graded: the line's result does not change for it.

What the line does not know: a run killed before it could write anything (an out-of-memory kill, or a stop that outlasted the pod's grace period) records nothing, and a source that has never run records nothing, so the absence of a recorded failure is not proof that ingest is healthy. A source read live where it lives (query-through) has no ingest, and its line says nothing about one.

LineWhen
PASSswitched on, and none of the below. An unverified source passes: it is connected, and nobody has checked a figure yet
PASS, with its connection is checked on its own SOURCES linea source your installation enabled, whose connection is checked by its SOURCES line above rather than by a test on the Context streams page
WARNthe word is not connected (a failed Test), wrong or stale; or a partial run or a shadow failure is recorded; or the last completed run found nothing to read, and the stream is not marked as expected to be empty; or, on any source except the organizational one, a failed run is recorded or the word is not ingested or needs setup; or another switched-on source carries a label that counts as this one's (the same apart from case or spacing), and the line names it; or a field's SQL reads a table another switched-on source fills. That source's questions may be affected; nothing else is
FAILthe source designated as your organizational context stream, switched on, with a failed run recorded, or reading not ingested or needs setup. Every person- and team-shaped answer on every source resolves through it, so the report's overall verdict fails. A failed Test on it is a WARN, not a FAIL: ingest does not read the Test result and keeps running
SKIPswitched off, including a synthetic source your installation has switched off. It is listed so the section names every registered source

What to do about each word is the same as on the Context streams page.

Lines assert numbers, not health. "1,204 rows", not "OK". A credential can authenticate cleanly, return 200 to everything, and see nothing — so counts are the assertion.

A line reports what failed. Where Prism recorded a reason, the CONTEXT STREAMS line shows it, as the bullets above say. The raw evidence is in the bundle.

One root fault, one red line​

If the database is unreachable, every source line reads from it and knows nothing — so those lines skip rather than each inventing a verdict. Same when the runner is down: the model catalogue line stands down, because the runner's own line already owns that failure.

So read the first failure in a group, not the count of failures.

The diagnostic bundle​

The bundle is the same report as JSON, plus the deployment identity — chart version, release, namespace, revision, image references — and the configuration this install is running with.

It carries counts, status codes, durations, versions and error classes.

It also carries an ingest block: one entry per source this installation has ever swept, whether or not that source has a line on the page. Every source you register from a recipe is in there — GitLab, an uploaded roster, a warehouse view — with the watermark, how far back the sweep reached, what the mirror actually holds (oldest and newest row), whether a resume point is pending, and, where the last run failed, when it failed and why.

Each entry also says which lane is feeding the source, under lane: engine where the ingest tick walks it — its context stream is switched on, the engine runs authoritative for it, and the tick has recorded a run of it; legacy where only the per-source ingest job from before the engine is collecting it; and shadow for a shadow row. Two facts ride beside the word, engine_feeds and legacy_job, and lane_why is the sentence that explains it.

The word is left out in two different situations, and lane_why says which. One is that Prism could not establish it: the source registry could not be read; the stream's stored document could not be judged; this installation gave the app no schedule to read for that source; or the stream is switched on and set to run on the engine but the ingest job has not yet recorded a run of it — which usually means the next run is minutes away, and occasionally means the job is turning it away for a reason this page cannot see, such as a connection the ingest job's own configuration does not cover. The other is that nothing is collecting the source: its stream is switched off and no older job is rendered for it, or it is one the ingest job turns away. A query-through stream reads that way too, and for it that is by design — nothing is copied.

legacy means the engine is not walking that source and an older per-source job is. Only Router spend still has one: it has no context stream, so legacy is simply the lane it runs on, and the sentence says so. The older GitHub and Jira jobs are retired, so a GitHub or Jira stream that is switched off reads as nothing collecting it.

That block is why sending the bundle is worth doing even when every line on the page is green: the page's verdicts cover the sources it ships lines for, and the block covers every source you have.

It also carries what the agent can see, and what each source publishes — the sources the semantic query server lists, which of them is your organizational context stream, and the column names each dataset declares. Names only: never a value, never a row, never a person. That is there for one question in particular. When an answer tells you it cannot do something because a field does not exist — "there is no github_login field" — the bundle is what lets us confirm that against your manifest instead of asking you to run a query and read it back to us.

Beside the identity crosswalk's own figures the bundle carries how many people your organizational context stream holds, counted at the moment you pressed the button. That is the denominator: "1,204 identifiers" means one thing in a team of forty and another in an organisation of four thousand, and until now the only way to find out which was to ask you to run SQL. It is stated as a measurement with its own timestamp rather than folded into a percentage, because the compile that produced the identifiers may have run before your last roster upload — a ratio across the two would look precise and be wrong.

For each source that walks one, the bundle also carries credential_reach_count — how much that source's credential could see when the last run looked, recorded on every run whether or not anything changed. It is a count and never the credential: comparing two bundles is how a grant that widened in steps too small for any single run to report becomes visible. Widen a source's scope is what to do about one.

It does not carry rows, issue titles, logins, names, chat questions or answers, model ids from your catalogue, or secrets. Secrets appear as present or absent, never by value. Our test suite pins this: one test runs every check against a configuration stuffed with recognisable secrets and fails if any of them appears anywhere in the report, at any nesting depth, including inside error text.

It is deliberately readable rather than packed: someone in your compliance team should be able to open it and confirm for themselves that nothing they care about left the building. That is the point of the format — please do check it.

A screenshot of this page is the single most useful thing to send us if something looks wrong. The bundle is the follow-up when the screenshot isn't enough. The GitHub line can name the GitHub account its token acts as; crop it from a screenshot if that should not leave.

Image digests in the bundle​

The bundle's deployment.shipped_images block lists the image digests that this release was published with. Each image has its name, its tag and its sha256: digest. The block also carries the release version and the source revisions it was built from.

The app reads these digests from images.txt inside the chart you installed. That is the same file you mirror the images from. The app does not read the digests from the running pods. It has no access to the Kubernetes API, so it cannot see which bytes a pod pulled. So the block says what the release shipped. It does not prove what is running.

To check your pods against the list, print the imageID of every container in your Prism namespace, init containers included:

kubectl get pods -n <namespace> \
-o jsonpath='{range .items[*].status.initContainerStatuses[*]}{.image}{" "}{.imageID}{"\n"}{end}{range .items[*].status.containerStatuses[*]}{.image}{" "}{.imageID}{"\n"}{end}'

The check goes one way. Every Prism container that kubectl prints should have a digest that is in the bundle's list. The list also holds images that no pod is running at that moment. github-live-mcp runs only when the live GitHub source is on. synth-seed and prism-ingest run only as Job pods, so kubectl shows them only while such a pod exists. pgvector is in the list even when you use your own database and no pod runs it. A container that is not Prism's, such as a service mesh sidecar, is not in the list.

The mirror loop in Mirror the images and the chart into your registry copies each image with skopeo copy --all, which keeps each digest unchanged. We checked this comparison on containerd. Another container runtime may report imageID in a different form. The bundle's deployment.images block shows the image reference each component is configured with.

The block is null when the chart has no images.txt. That happens with a chart taken from a source checkout rather than a release. A digest that the app cannot read in full is left out and counted in unreadable_lines. The bundle never shows a digest the app did not read. The block leaves out the registry host and the build link from images.txt.

Who can open it​

Under an identity front door (app.identity.mode of easyauth, iap or local) the page and its endpoint require the super admin role — the report names image refs, internal URLs and configuration, which a signed-in user of the chat has no business reading. See "Identity and roles" in install.md for how the role is granted. Under static mode there is no front door and the page is open, as before.

The datapond volume line​

Everything Prism keeps lives on one volume — the ingested index, the agent runtime's state, and a row per question asked and answer given — and nothing prunes any of it. A full volume is a database that stops accepting writes, and it announces itself as whatever the next write happens to be rather than as a disk fault. So this line exists to be read weeks early.

On a bundled install it sums pg_database_size() across every database on the instance — the datapond and the runtime's own database both sit on the same volume, and on a chatty install the runtime's is the larger half — and compares that to the usable space under postgres.storage:

datapond volume WARN 6.2 GiB of 10.0 GiB · 77% of usable space · it does not shrink on its own

Under 75% it passes; at 75% it warns; at 90% it fails. The percentage printed on the line is the one those thresholds are read against, so a screenshot of the line and the verdict on it can never disagree.

Usable is postgres.storage minus 2 GiB. pg_database_size() counts database files, and the volume also carries the write-ahead log (1–1.5 GiB after a checkpoint on stock settings), temporary files and the filesystem's own metadata and reserve — none of which any query can see. On the 10 GiB default that leaves about 8 GiB of room, so a percentage of the raw size could never reach 90% and the failure verdict would never fire on the install we ship. The two raw figures stay on the line so they still match kubectl get pvc.

One more thing about the capacity: it comes from postgres.storage because nothing inside the appliance can measure the volume — it is mounted in the Postgres pod, Postgres exposes no free-space function to SQL, and Prism has no Kubernetes API access by design. Expand the PVC and you must raise postgres.storage to match, or the warning keeps firing against the old number. The evidence in the bundle names the source of the capacity for exactly this reason.

With an external database (postgres.bundled=false) there is no capacity to compare against, and the line says so — 4.2 GiB in this database · volume size not known here — rather than implying headroom nobody has established. It reads only Prism's own database there, not the instance: a shared managed server grants every role CONNECT on every database by default, and summing that would report your other databases' bytes as Prism's usage and carry their names and sizes into the bundle you download. If the datapond line has already failed, this one skips: that failure owns the fault.

limits.md has the sizing formula and the measured per-row costs behind it, including what one question costs.

The ignored manifest settings line​

Shown when the source registry is on. It reads every registered context stream's manifest for a setting the ingest walk does not honour, or honours by losing rows:

  • a lookback under PT1H (the hour the walk always re-reads) or on a child stream, which have no effect, or over P30D or deeper than the stream's horizon, which the walk clamps to that limit;
  • a step on a request that never uses {{ window.end }}, on a child stream, or other than P1D on a day-bucket search;
  • a cap on a paged stream that isn't walked in bounded slices: max_pages, or the max_results / total_path that detect an upstream's cap, on a page, link-header or cursor paginator, on a stream the walk doesn't split: the source's first stream declares no step or is a day-bucket search, or this stream's request never uses {{ window.end }}. Once the cap bites, the run completes and the rows past it are never fetched. With step and a request bounded by {{ window.end }}, a capped window is split instead. Don't remove a max_results or total_path to quiet this: the upstream's cap stays, and the loss stops being recorded.
  • a policy.verification block in a stored manifest that this version refuses. The block is ignored: it does not stop the stream being read or answered from. Its Context streams page shows the same warning.
  • a stream whose verification record this version refuses. Nothing on it is offered as verified, and its Context streams page says so.
ignored manifest settings WARN 1 source(s) declare a setting the ingest walk ignores, limits or would lose rows by: acme_tickets — they keep copying; correct the manifest (Admin → Context streams) when you next edit it

It is never red. Such a stream keeps copying: a setting the walk doesn't honour still has no effect, a lookback over the limit is re-read only up to it, and a capped stream still loses what it always lost. Registering or saving a manifest with one of these settings is refused, naming it, so the warning clears when the manifest is corrected. The evidence lists each stream with the setting and why it is flagged.

The ingest lane line​

Names the lane each source's last copy used, from the ingest job's own run history: engine (the ingest engine), legacy (the older per-source ingest job), or legacy, with the engine in shadow beside it. A source the engine has walked only in shadow, with no copy of its own tables recorded, says so. A copy that found another copy of the same source running, and so did nothing, is not counted.

ingest lane WARN jira: not collected, its last attempt did not complete (20m ago) — the ingest engine turned it away: its Jira edition is `cloud`, the chart's default, and no account email is set, which is how a Data Center Jira that does not name its edition looks. If this Jira is Data Center, set `ingest.jira.deployment: data_center` · github: engine (2h ago) · spend: legacy (40m ago)

It warns when GitHub or Jira last ran on the legacy lane. Those legacy lanes are retired, so such a source has not been copied since the upgrade: the ingest tick copies a switched-on stream on its schedule, and the stream's Runs tab says why it has not. It is never red.

It also warns when the ingest engine turned GitHub or Jira away and its last attempt did not complete, so nothing is collected, which it says as jira: not collected, its last attempt did not complete. For Jira the usual cause is the edition: it is the chart's default, cloud, and no account email is set, which is how a Data Center Jira with a token and no email looks. Set ingest.jira.deployment: data_center to fix that. For any other reason the engine turned a source away, the stream's Runs tab says why.

A source with no engine lane, such as Router spend, reads legacy and is not a warning. The line is skipped when no copy has been recorded yet, and when the run history cannot be read.

The diagnostic bundle carries the same facts on this line's evidence: each source's lane, when it last ran, engine_turned_away and refused where they apply, and for Jira no_edition with the setting to change. It does not carry the ingest job's own reason text.

The connected here parity line​

Shown when a Semantic Query MCP is configured. Every chat turn tells the agent which context streams and datasets are connected here. This line checks that list against what the agent's list_sources tool returned in the same run, and against the sources switched on under Admin → Context streams:

  • a source that is switched on is listed with all of its datasets, and a dataset with no copy yet is marked as not landed;
  • a shipped source with no registry entry whose stream this installation runs (its SOURCE_<NAME> setting is live, indexed or unset) is listed as switched on, its datasets with no copy yet marked as not landed;
  • any other source that isn't registered is listed only with the datasets that have a copy, and not at all with none;
  • every source that is switched on is listed.
LineWhen
PASSthe two lists agree
WARNthey agree, and a shipped source that was never registered, and whose stream this installation does not run, is listed because its copy exists. The line names it
FAILthey disagree. The evidence names each difference: which side lists which source or dataset
SKIPthe Semantic Query line failed, the registry couldn't be read, or the datapond line failed: there is nothing to compare

The evidence carries source and dataset names only.

The copy table upkeep line​

Every copy the ingest makes deletes and rewrites rows in its table. Until a VACUUM reclaims them and marks the table's pages all-visible, a query that could read an index alone reads the table for every row instead: on one installation a count over a 22-million-row copy carrying 11% dead rows took 90 seconds, and 3 seconds after a vacuum. Since 1.0.0-beta2 the ingest vacuums and analyzes each table its engine writes at the end of every run; other tables in the datapond are left to Postgres' autovacuum. This line is how you see either falling behind.

It reads Postgres' catalog and statistics — without locking anything — for the 20 largest tables in Prism's schema with at least 1,000,000 rows, and reports for each its share of dead rows, its share of pages marked all-visible, and when it was last vacuumed and analyzed:

copy table upkeep WARN 2 large table(s) · most dead rows: clarity_resource_plan 11% · 1 at 10% dead or more: a count over them reads the table row by row

It warns when any of them carries 10% dead rows or more, or cannot be read: statistics reset since its last analyze — Postgres discards them on a failover — or a table not yet analyzed at all. A table the line cannot read is not reported as healthy; the next ANALYZE or VACUUM, which autovacuum or the ingest's post-run pass runs, makes it readable. Otherwise it passes. The figures are Postgres' own estimates.

For a table the ingest's engine writes, a warning that persists across runs means the post-run pass is not reaching it, and the run log's maintenance: line for that table says why. For any table, Troubleshooting has the VACUUM to run by hand.

The audit log chain line​

Checks that the audit log's hash chain is intact. Each row stores the hash of the row before it and a hash of its own content. This line walks the table in order and checks both, starting from the newest retention anchor if the log has been pruned:

audit log chain PASS audit chain intact: 1204 rows checked, from the prune anchor

It passes when every row checks out. It fails naming the first row that does not, and which check failed: its own hash no longer matching its content means the row was edited, and its link to the row before not matching means a row before it was deleted or reordered. It warns when the walk takes longer than 15 seconds and stops ("not checked to the end"). The rows it checked say nothing about the rest; "Check the chain" on the audit page allows longer.

A failure means a row was changed or removed outside Prism. A pass does not prove nothing was: see Tamper evidence, and its limit.

The admin SQL sandbox line​

A context stream's manifest can carry SQL an administrator wrote: a field's sql: and a dataset's source:. The app runs that SQL for the value pickers, the classification and value-set counts, the revision comparison and the automation-account counts. It always runs in a read-only transaction. Where this line passes, it also runs as prism_admin_sql, a role with no login and no superuser powers that can read every table (pg_read_all_data, Postgres 14 and later). On Postgres 16 and later, where the app's user bypasses row-level security, as a superuser does, the role does too (BYPASSRLS), so it reads the same rows. A DBA makes the role, or the app makes it at start-up and marks it with a comment. Installing Prism, step 1a says which way to use and what rights each needs. The app never changes a role of that name that already exists.

admin SQL sandbox PASS administrator-written SQL runs read-only as prism_admin_sql, a role with no superuser powers

It warns, and never fails, when the role is not used, and says why. The role is not used when it is absent, does not carry the comment, can log in, is granted to any role other than the app's user, or holds another power a sandbox must not have, or when it cannot read every row the app's user can (tables with row-level security, and a role without BYPASSRLS). A role with BYPASSRLS is not used below Postgres 16, or where the app's user does not bypass row-level security itself. Prism works the same either way: without the role, that SQL runs with the app user's own privileges. Where the role is absent, the warning names the statement a superuser can run:

CREATE ROLE prism_admin_sql NOLOGIN BYPASSRLS; COMMENT ON ROLE prism_admin_sql IS 'prism admin SQL sandbox'; GRANT pg_read_all_data TO prism_admin_sql; GRANT prism_admin_sql TO <app user>;

BYPASSRLS is in that line only when the app's user has it, on Postgres 16 or later. On Postgres 14 and 15, a DBA with CREATEROLE can run the line too.

On Postgres 16 or later, only a superuser can run that line and get a role the app uses. When a DBA who is not a superuser runs it, Postgres grants the role to that DBA as well. The line then warns granted to and names the DBA. Only a superuser can remove that grant. On a managed Postgres with no superuser for you, run DROP ROLE prism_admin_sql; as that DBA. Then give the app's user the rights for way 2 in step 1a, and restart the app. The app then makes the role itself.

When the role is not a sandbox, or the app's user may not take it, the warning ends with says how to replace it and points here. After a move to a new login, the warning says granted to, rolbypassrls or may not SET ROLE. Step 1a, "Moving an install to a new login", says who drops the role in each case.

Where a DBA has revoked EXECUTE on a function from PUBLIC, the role is refused it as any other role is, and a field or dataset that calls it is refused with a message naming the function. If administrator-written SQL should call it, grant it to the role:

GRANT EXECUTE ON FUNCTION <function> TO prism_admin_sql;

A foreign table whose server has a user mapping for the app's user and none for the role is refused the same way, with a message naming the server and the CREATE USER MAPPING FOR prism_admin_sql SERVER ... a DBA runs.

Never grant set_config or pg_logical_emit_message to the role. Those two are revoked from PUBLIC on purpose so that the role cannot call them; see Installing Prism, step 1h. Where the role is used, the line warns if the role can still execute either:

  • through PUBLIC, because nobody has run step 1h in Prism's database. The line names the functions and the step.
  • through a grant to the role, or to a role it belongs to. The line says prism_admin_sql can execute <function> and to revoke it. Prism never revokes it itself.

pg_read_all_data reads every database on the server. Grant it only where the app's user can already read everything, as a superuser can. Otherwise leave the line amber, because the role would give the app reads it does not have.

The memory migrations line​

The migrate Job brings Prism's memory up to the release you install. Then it checks the result and records a verdict. This line reads that verdict. The gate in front of each pod reads the same one (Pods wait for the migrate Job).

memory migrations PASS ready at head 0000 · last run 1.1.0, ok
  1. It passes when Prism's memory is ready for this release. The line names the head, and the release and result of the last migrate run.
  2. It still passes when a table holds a column the release does not know, for example one an earlier release added. The line counts them, and the bundle lists them under drift. Prism does not remove them.
  3. It fails when this release's last migrate run found a table or column missing, or a type changed, at a head that passed before. That run did not stop the upgrade, and the pods still start. But something removed part of Prism's memory after a migrate run built it. The line names what is missing, and the bundle lists all of it under problems. Restore what is missing, then run the migrate Job again. When the run finds nothing missing, the line passes.
  4. It fails when Prism's memory is not ready for this release. The line gives the reason in one sentence, as the gate's log does. One example is a check that refused an earlier migrate run and is still open. The upgrade stopped at the migrate Job says what to do.
  5. It warns when no migrate run has ever recorded anything. That happens only where no migrate Job runs, because the chart's gate holds the App until a migrate run passes. This release still builds Prism's memory when each component starts, so Prism works.

The SMTP check (local sign-in only)​

With app.identity.mode: local the report gains an smtp relay line: it connects to the configured relay, negotiates TLS per smtp.tls, authenticates if a username is set, and then asks — address by address — whether the relay would deliver to each bootstrap super admin (MAIL FROM/RCPT TO, then RSET/QUIT, never sending a message, so running the self test repeatedly cannot spam anyone). Per-address verdicts are in the evidence.

That per-address detail is the point: every other line can be green and the install is still dead on arrival if the relay refuses exactly the address of the one person who can let anyone else in. The report carries the relay host, port, TLS mode and sender — never the SMTP password. Under every other identity mode the line reads skip.

The sign-in proxy key line​

Under easyauth or iap this line says whether Prism checks a proxy key before it believes an identity header.

  • pass: a key is set, and the self test has just sent the app two requests that forge a sign-in, one with a wrong key and one with none. Both were refused. The two requests stay inside the pod. Each leaves a denied row in the app's event log, like any other refused request.
  • fail: a key is set, but a forged request was answered. The evidence shows what each request got.
  • warn: no key under header trust. The identity headers rest on the network fence alone.
  • skip: under local and static, under easyauth with token verification, and under iap with token verification, where no header decides who a request is; behind Cloud Run's IAP; and from the command line, which has no app in its own process to send the two requests through.

The line gives the number of keys, never a key.

The app users line​

Under easyauth or iap this line counts the people who started a session in the last 30 days and have no App users row, leaving out the addresses in app.auth.superAdmins. It gives a count, never the addresses.

  • pass: everyone who signed in recently has a row, or the count needs no action.
  • warn: rows are created at first sign-in (app.auth.autoProvision) and viewer scoping is on with a viewerScoping.default broader than the person's own reporting line. Each person counted is narrowed to their line at their next request; widen them on App users, or turn app.auth.autoProvision off.
  • warn: in the last hour the pod that ran the report served requests it could not check for deactivation, because Prism's database could not be read or did not answer in time. A deactivated person can get in while that lasts, so disable people at your identity provider too. This is that pod's own memory: another pod's, and the CLI's, do not include it.
  • fail: the count could not be read.
  • skip: under local and static, and with no database configured.

The chart super admins line​

Under easyauth, iap or local, this line checks the super admins that app.auth.superAdmins granted against the list as it stands. Removing an address from the list demotes nobody, so the line names, by address:

  • each active super admin the chart granted that it no longer lists. Demote them on App users if removing them was meant to revoke them;

  • each listed address whose row is not an active super admin, which the chart did not change: for example, an administrator set its role on App users or reset it for a new person, it is deactivated, or its source is not yet known (a row written by an older pod during an upgrade, which the next boot reads).

  • pass: every super admin the chart granted is still listed, and every listed address with a row is an active super admin.

  • warn: one of the two lists above is not empty.

  • fail: App users could not be read.

  • skip: under static, and with no database configured.

The CLI — the same report, from inside the box​

kubectl exec -n <namespace> deploy/<release>-app -- python -m prism_app.selftest

Runs the check list and prints the JSON report to stdout. This is the escape hatch for the moment the role gate cannot help with: mid-install, when something is broken and no super admin can sign in yet. Anyone who can exec into the pod already holds a stronger credential than any app role, so the report is theirs to read.

The exit code is always 0 — a failed check list is a successful diagnosis, the same rule as the endpoint answering 200 with a body. Read the report, not the exit code.

That holds even if the self test hits a bug in itself. A check that cannot finish becomes a failed line and the rest of the report still prints; if the run cannot be completed at all, you get a one-line report instead of a traceback:

[PRISM]
FAIL self test the self test could not run (TypeError)

That line is a fault in Prism, not in your environment, and nothing else on the page can be trusted while it is showing. Download the bundle and send it to us — it carries the version, the error class and the message.

The endpoints​

PathWhat it does
/selftestthe page (super admin under easyauth/iap/local)
/selftest/runruns the checks, returns the report as JSON (same rule)
/selftest/github-ownerthe GitHub account a PAT acts as, which the page shows (same rule); never in the report

/selftest/run is the only thing the button does, and one run at a time: it takes a lock, so a second caller waits rather than doubling the load on a box that may already be struggling. It takes no parameters — there is nothing a caller can make it do that the button cannot.