Skip to main content

Take a source live

Each source — GitHub, Jira, Router spend — flips from synthetic to live independently, as its access lands. This is that flip, end to end.

It is two helm upgrades, not one, and the order is the whole point of the procedure. The first live ingest for a source truncates that source's synthetic rows before writing real ones, so a credential that authenticates cleanly but sees nothing leaves you with an empty source where you previously had a working demonstration — and from the chat, an empty source is indistinguishable from a broken product. The first upgrade proves the credential; the second one flips.

The worked example below is GitHub. Jira and Router spend differ only in which values they set, and both are called out at each step.

1. Put the credential where the chart will read it​

SourceChart valueSecret key
GitHubsecrets.githubTokengithub-token
Jirasecrets.jiraTokenjira-token
Router spendsecrets.valetApiKeyvalet-api-key

The optional live GitHub MCP reads the same github-token by default. To give it a token of its own:

  1. With a chart-managed Secret, set secrets.githubLiveToken.
  2. With existingSecret, add the key github-live-token to your Secret and set mcps.githubLive.ownToken: true. Without ownToken the live MCP keeps reading github-token.

What the GitHub credential needs says which grants each token needs.

With a chart-managed Secret that is a --set on the upgrade below. With existingSecret the chart renders no Secret and cannot add a key to yours, so patch it yourself first:

kubectl patch secret <your secret> -n <namespace> \
-p '{"stringData":{"github-token":"<the token>"}}'

Do this before step 2 on an existingSecret install. The probe reads that key, and a key that is absent when the pod is created is reported as no_token rather than found later.

2. Name the target, and do not flip yet​

helm upgrade <release> <chart> -n <namespace> -f <your values file> \
--set ingest.github.orgs=<orgs>

ingest.github.orgs is a comma list, and one credential is read for all of it — which is a constraint on the token rather than on the chart. A fine-grained personal access token can only reach resources owned by a single organisation, so an install naming two of them needs a classic PAT that is a member of both, or one Prism per organisation. What the GitHub credential needs is the rest of that list, and is worth reading before the token is minted rather than after the pre-flight says it saw nothing.

Jira sets ingest.jira.url and its edition instead (Cloud and Data Center). Router spend names its target in mcps.management.valetServiceUrl — the Agent Router management plane, a different address from the inference gateway in router.proxyUrl, and the one your admin key belongs to. Set it in step 1 alongside secrets.valetApiKey: until 0.8.0 it carried a default that was Tetrate's own Router, which meant a flip appeared to work and mirrored nothing. It ships empty now, and the flip below refuses to render without it.

Note what is not in that command: sources.github=live. The source keeps serving synthetic data through this upgrade.

Decide the request rate here too, if your instance is one you would rather be careful with. Prism calls each source at a ceiling you set, in requests per minute — ingest.github.maxRequestsPerMinute and ingest.jira.maxRequestsPerMinute, both 30 by default, one request every two seconds. That default is chosen for an upstream nobody has measured yet, which is the normal case for a self-hosted GitHub Enterprise Server or Jira Data Center. Lower it if your platform team wants to start smaller:

--set ingest.github.maxRequestsPerMinute=10

The cap covers retries as well as first attempts, so an ingest being rate-limited by your instance cannot answer by calling it faster, and the only cost of a low number is a longer run — nothing is skipped. Raise it later with an ordinary helm upgrade; nothing needs re-ingesting. The rate in force is the first line of every ingest log (step 5), and limits.md has the detail.

The rate Prism is actually calling at — as opposed to the ceiling you just set — is on What Prism is pulling, right now, live, with no shell needed. Open it before step 5 and leave it open; it is the page to have up while the first backfill runs, and the page to send anyone who asks what is calling their instance.

3. Read the verdict​

That upgrade runs prism-ingest check github as a hook, against the credential and target the ingest itself would use, and the verdict lands on the self test beside a source still serving synthetic data:

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

Read the amber line as "do not flip yet". Nothing is broken — the source is serving what it is meant to serve on day one — and the flip is the step that would turn a wrong credential into an empty source. Fix the credential, upgrade again to re-run the probe, and only go on when the line reads green.

On an existingSecret install there is no pre-flight for Router spend: the chart reads that signal from secrets.valetApiKey and cannot see inside a Secret it does not own. Nothing is at risk in flipping spend without it — the spend index is its own table, so a sweep that ingests nothing evicts nothing. GitHub and Jira are unaffected, because their targets are values.

4. Flip​

helm upgrade <release> <chart> -n <namespace> -f <your values file> \
--set ingest.github.orgs=<orgs> --set sources.github=live

The other two. Jira needs its edition as well: on Jira Cloud, the account the token belongs to; on Data Center, ingest.jira.deployment=data_center in place of the email (Cloud and Data Center).

--set ingest.jira.url=<your Jira> --set ingest.jira.email=<the token's account> --set sources.jira=live
--set mcps.management.valetServiceUrl=<your Router management URL> \
--set sources.spend=indexed

There is no sources.directory any more. Prism kept its own table of people — who exists, which GitHub login belongs to which Jira assignee, which team somebody is on — and it is retired. What replaces it is a data source you connect like any other and then designate as your organizational context stream, on Admin → Context streams. See One stream must carry your org directory for what that changes in the answers; the short version is that until you designate one, Prism will say a person cannot be resolved rather than give you a figure it cannot stand behind.

sources.spend takes indexed or live, and indexed is almost always the one to want; step 7 of the install has the reasoning.

Spell the mode exactly, in lower case. Anything else — Live, LIVE, a typo — fails the helm upgrade immediately, naming the key and what you typed. That is deliberate: an unrecognised mode used to install cleanly and start no ingest at all, while the app served the mirror the ingest was meant to fill, so the source went empty and stayed empty.

5. Watch the first backfill, and do not read the prompt as "done"​

helm upgrade returns before the backfill has started. The ingest tick starts it within ingest.engine.tickMinutes (15 by default); Copy now on the stream in Admin → Context streams starts it at once. The first run walks ingest.backfillDays (90 by default) of history for every org or project you named — over an hour, measured at 77 minutes for one GitHub org (8,965 pull requests and 14,386 issues, walked together) — so expect it to still be running long after the command comes back clean. A larger org takes longer; a backfill still going after an hour is normal, not stuck.

Add roughly 9–18 minutes per GitHub organisation at the default 90 days: issues reach back at least 365 days there whatever ingest.backfillDays says, and each day past the pull-request window costs one issue-search request per 100 issues updated that day — one or two at the density the figure above was measured at — and nothing else. At ingest.backfillDays of 365 or more there is nothing to add — the floor is not a cap, so both lanes walk the same window and the figure above already covers it.

Watch it on the stream's Runs tab (Admin → Context streams, the stream, Runs). The backfill is a copy started by schedule, or by Copy now; its log (Show every line) prints a line per day bucket. What Prism is pulling, right now shows the same progress another way — how far through the window the backfill is, the rate it is running at, and how your instance is answering — and it is what to watch if the people on the call do not have kubectl. Admin → Context streams shows the row count filling in, and the self test reports the source as populated once it has. If the app is not up, the ingest tick's own log is the fallback:

kubectl get jobs -n <namespace> -l app.kubernetes.io/component=ingest-tick
kubectl logs -n <namespace> -l app.kubernetes.io/component=ingest-tick -f

A source still showing zero rows after that copy has finished is a credential or egress problem, not a slow backfill — which is the state step 3 exists to have caught already.

Read it from the API​

To check whether a source has finished its first backfill, and how far back it reaches, without database access, read first_backfill on the source's row. It is on each row under registry.rows in GET /api/admin/sources, and on source in GET /api/admin/sources/<id>. Both routes need a super-administrator session. It is there for every context stream, GitHub, GitLab and Jira alike:

"first_backfill": {
"state": "started",
"streams": [
{"stream": "pull_requests", "recorded_as": "backfill_horizon", "by_date": true,
"state": "complete", "horizon": "2026-07-23T00:00:00+00:00", "from": null, "through": null},
{"stream": "commits", "recorded_as": "commit_backfill_horizon", "by_date": true,
"state": "started", "horizon": null,
"from": "2026-07-23T00:00:00+00:00", "through": "2026-08-15"}
]
}

There is one entry in streams for each stream the ingest walks from the start, in the order it walks them. Most sources have one. GitHub has three, because its issues and commits are each swept back to an edge of their own. recorded_as is the key the ingest records that stream's horizon under.

  • state is complete once a run has finished the stream's first backfill. started means a run has begun it and none has finished it. not_started means the ingest holds no record of a start. unknown means the ingest's record is there but cannot be read. The state beside streams is complete only when every stream is, not_started only when none has begun, and unknown if any stream is.
  • horizon, on a complete stream, is how far back it reaches. It is null where the ingest recorded none.
  • from and through, on a started stream, are the date the backfill began from and how far forward it has recorded. through is null where it has recorded no progress yet.
  • by_date is false for a stream copied whole on every run: a snapshot, a copy read by key, or an uploaded file. Such a stream has no horizon, so horizon, from and through are always null.
  • not_walked is a stream the lane walking the source does not walk. The source's state leaves it out.
  • A query-through source copies nothing. Its state is not_applicable, with no streams.

first_backfill is left out where Prism could not read the ingest's records or the source's manifest. That is not the same as not_started.

Two things that look wrong and are not: re-running an identical flip command does nothing, and a copy recorded as skipped on the Runs tab is a tick finding the source already being copied mid-backfill and leaving it to finish rather than racing it.

6. While the backfill runs: what the source can and cannot answer​

The flip empties the source's table before it refills it — the reason this page is two upgrades rather than one — and the refill is oldest day first. So between the flip and the moment that copy finishes, the source holds the start of your history and none of the recent end. On a low request rate that window is hours; on a very low one it is days.

That is a supported state, and Prism labels it. While the first backfill is unfinished, every answer from this source reports the day it has actually reached rather than the moment its rows were written, so a question about last month comes back marked as running past coverage, with the uncovered part named, instead of a confident figure over a table that does not hold the data yet. Nothing needs turning off, and the mirror is never a mix of synthetic and real rows.

Two levers if the wait is too long, and they are the only two worth pulling:

  • Raise ingest.github.maxRequestsPerMinute, once your platform team can tell you what the instance will actually take. Backfill time is very nearly inversely proportional to it.

  • Lower ingest.backfillDays for the first pass — 30 days of history arrives in a third of the time — and widen the window later with ingest.<source>.rewalkFrom (Widen the window later). Raising ingest.backfillDays after this first backfill has finished does nothing: it is read only where a source has no history at all.

    Lowering this lever moves the pull request walk only. On a source the engine has not ingested before, GitHub issues reach back at least 365 days however low you set it, so a 7-day first pass still walks a year of issues — roughly 12-24 minutes per organisation at the default request cap, the top of that range at the density the figures above were measured at. On a source the legacy lane has already walked, the engine reads that lane's recorded issue horizon out of the shared ingest_state row and the floor does not apply; ingest.<source>.rewalkFrom is the lever that recovers the year. Raising it past 365 is the other story: the floor is not a cap, so both lanes then walk the whole window and the issue lane costs a full bucket per day, not one request. See Issues reach back a year.

Do not shorten ingest.runDeadlineSeconds to make an interrupted backfill resume sooner. It is the one change that can stop a slow backfill converging altogether: progress is recorded per completed day bucket, so a run killed before it finishes one records nothing, and the run after it reads that as a first run — truncating and starting over, every firing. (The ingest warns in its log where a busy bucket will not fit, and refuses to start where not even an empty one would, rather than looping silently — but stay well clear of the edge. The Jira lane records its progress per page of search results and refuses a deadline too short to record one, in exactly the same way.)

Do not add an org to ingest.github.orgs while the first backfill is in flight. An interrupted run records which orgs it covered, and a resume point cannot vouch for ground it never walked — so a run that wants a wider list correctly refuses to resume, and starts the whole backfill again from empty. Wait for the copy to finish, then add the org.

Afterwards, the schedule takes over​

The CronJob re-probes on ingest.checkSchedule, and you can run it on demand rather than waiting:

kubectl create job -n <namespace> probe-github --from=cronjob/<release>-github-check

The probe exits 0 whatever it finds — a failed Job here is Prism's database, not your upstream. An upstream fault comes back as a red upstream check failed: <fault> line on the self test instead.

What a pass does not prove. That the credential still works tomorrow. A token revoked after go-live leaves a row count identical to a healthy one, which is exactly why the probe keeps running on a schedule and why the self test distinguishes "rows are here" from "the upstream is still answering".

If it still fails: the probe's evidence in the diagnostic bundle names the fault — bad_credential, org_not_visible, org_visible_but_no_prs_found, unreachable, timeout. Send that; it is the difference between a scope problem and a routing problem, and it carries no repository names, issue keys or logins.

The Jira stream adds three more, and the difference between them decides who picks the ticket up:

faultwhat it meanswho fixes it
projects_not_visibleone or more of the keys in ingest.jira.projects is unknown to this instance or invisible to this credential. project_verdicts.refused names them, and the self-test line carries them tooyou, in values.yaml — or your Jira admin, if the key is right and the grant is not
no_issues_visibleevery configured key resolved, and the credential can see no issues in any of themyour Jira admin: this is a permission or a genuinely empty scope, not a typo
edition_mismatchingest.jira.deployment says one edition and the instance says it is the other — cloud declared against a Data Center, or the reverse. The engine-managed Jira stream runs the declared edition and refuses on this before it walksyou, in values.yaml: set ingest.jira.deployment to the edition the evidence names

project_verdicts also carries readable_but_empty — keys that resolve and hold nothing. Those are not wrong keys, and correcting them is how a working configuration gets broken.

The pages this one hands on to​

This page is the flip itself. What used to follow it here is on pages of its own: