Set a default scope for every question
Your GitHub credential probably reaches more of your organisation than the people you are asking about. Prism's index holds whatever it was given, so "who merged the most pull requests last month" is answered about everyone in it — which on an organisation-wide credential is mostly people the person asking has never heard of.
This page is how you say, once, which part of the organisation this installation is about. It takes a few minutes. The scope is always one of your own definitions that selects people, named — and for one leader's organisation the chooser makes that definition for you.
For one leader's organisation, pick the leader in the chooser. The scope is not a value you type — it is one of your own definitions, named — and the usual one is a leader's organisation. Admin → Definitions → Change → Everyone who reports to a person… → Choose a leader walks you through finding the leader by name, counting the people below them and making that the scope, in the same dialog (below). Behind it is the same Everyone who reports to… definition the job of that name makes (below), so answers name it and its revision like any other scope. It needs a designated organisational context stream whose rows Prism holds (a warehouse view copied in, or an uploaded staff list), with a manager link and a name column for Find to search. For any other shape of scope, activate another definition that selects people first: a classification under Who counts as a developer, or a set of them from a spreadsheet with Upload who owns what.
Pick a leader from the chooser
When your organisational context stream is set up for it — its rows are copied
into Prism, a column marked person: true names each person, its reports_to
link can be walked, and the semantic query MCP is attached — the chooser that
Change opens lists Everyone who reports to a person… after your
definitions — and on an installation with no
definition that can be the scope yet, it is what makes Change usable at
all. Choose it and press Choose a leader. The dialog stays open and takes
you through the steps of Everyone who reports to… (the next section):
Find the leader, choose who it covers and, if you like, its name, Count
the people, then Make it live (Activate, for a name used before). Its
last step, Make the default, saves
the scope and closes the dialog, and the band shows the definition by name and
revision. Back on the first step returns to the chooser.
Each step is the one the Everyone who reports to… job takes, with the same checks: a step Prism refuses says why, in its own words, and leaves the dialog where it was. If you stop part-way — a count that failed, or a closed dialog — and start again, the definition already written is used again rather than written a second time when its newest revision is a draft or live and has the same name, the same leader identified the same way (the same identifier and identifier kind), the same depth, the same organisational context stream and, if you typed one, the same summary. A draft is then counted, and you still press Make it live or Activate; a live one goes straight to Make the default.
On this path Prism refuses a definition named the same as the scope in force — for example a second leader with the same name as the one the scope already follows. Making it live would change the scope at once, before Make the default; give it another name instead.
The chooser does not list this choice when those checks of the stream's manifest fail or the semantic query MCP is not attached. When no scope is set and nothing else can be the scope either, the band says which one is missing. The checks read the manifest, so Find or Count can still refuse — for example when a column the manifest declares is missing from the copied rows — and that step then says why.
Everyone who reports to someone
The usual scope is one leader's organisation. Admin → Definitions → Everyone who reports to… → Start → makes that definition in a dialog, one step at a time:
- Type the leader's name the way your directory writes it, and press Find. Your directory says who that could be. If several people match, each is listed with the fields your directory shows for them, and you choose one; Prism never chooses for you. If the directory holds more matches than it will list, none is chosen either, so type more of the name.
- Choose who it covers: direct reports, direct reports and theirs, or everyone below.
- Count the people. Unless you type a name, it is named for the depth: Direct reports of …, Two levels below …, or Everyone who reports to …. That name is what answers scoped by it show. Count the people saves it as a draft and counts everyone it covers; Save as draft saves it only. A name you have used before gets a new revision of that definition.
- Make it live — for a name nobody has used — or Activate, for a new revision. The button carries the number of people the draft was counted at, so what goes live is a size you have seen. When a revision of that name is live, the step first compares the draft with it: +5 / −1 people compared with revision 1, which answers use now. Show who lists who joins and who leaves. If the comparison cannot be made, the step says so and Activate stays available. If another revision was made live since the comparison, pressing Activate activates nothing, says so and compares again.
- Optionally, Make the default, which names the definition and its size again. The step first says what questions default to now, and the save replaces exactly that: if the scope changes after this step showed it, the save is refused rather than overwritten, and the step reads it again and shows what is in force.
Edit in the definition's ⋯ menu opens this dialog with the leader's name typed, Find pressed, the stored person chosen and the stored depth set, and its summary in the summary box. A new revision keeps that summary while the leader and depth are the stored ones. Choose another leader or depth and the box is cleared, so Prism writes the sentence for the new choice, unless you have typed in the box yourself. Clear it to have Prism write the sentence anyway. If your directory no longer lists that person under that name, nobody is chosen and the step says so. A definition compiled from an ownership table, one that walks from several people, or one with other words for it opens as JSON instead, with the reason. Edit as JSON instead is always at the bottom of the dialog.
Each button unlocks only when the step before it has worked, and Next moves on only when the step has what the next one needs. Changing the leader's name starts again; choosing a different person, depth or name drops the draft, so what you count and activate is always what is on the screen.
What is stored is the person your directory resolved: Prism looks the leader up again when it creates the draft, and refuses a choice that lookup did not offer. It also keeps the name your directory gave that person, as evidence of how the leader was chosen.
This needs two things from your directory. With no designated organisational context stream, Find says so; otherwise counting says which is missing:
- a designated stream whose rows Prism holds, which means an uploaded staff list or a warehouse copy. A query-through stream cannot be counted against.
- a manager id column and the
reports_tolink that goes with it (the manager column).
Set it
On Admin → Definitions, the band at the top of the page says in one sentence what questions currently default to — on a new installation, Questions default to: everyone in the index; once one is set, the definition's name, its size today, its size when it was activated, and its revision.
Press Change. The chooser opens in a dialog and lists Everyone in the index first, and then every activated definition, with its kind, its revision and, for one that can be the scope, its size today and when it was activated. Choose one and What changes shows the line every answer will name the scope with. Then press Save the scope; the band reads the setting back and shows what is now in force.
A definition that cannot be the scope is still listed, greyed out, with the reason Prism would refuse it — so a context document you were looking for is there, saying why it is not a choice, rather than missing. If no scope is set, none of your activated definitions can be the scope and the chooser cannot offer a leader either, Change is greyed out and the band says why.
If the band says the scope could not be read, the reason is beside it: this build or its database cannot read the setting, and nothing on the page will change it.
Prism refuses a name that is not an active definition that selects people, and says why. That refusal is deliberate: you are standing there, choosing, so a choice that could never work should fail while you can still pick another.
Two kinds of definition can be the scope:
| Kind | What it means |
|---|---|
| a reporting line | everyone under a leader, at a depth you chose |
| a classification | everyone your directory's own fields say is something — a job family, a division |
A list of identifiers cannot. On this version one cannot be previewed or activated at all: nothing in this version counts one, and preview says so. So it is never an active definition, and never appears in the chooser.
A context document — the prose kind, where you write down what an acronym means — cannot be the scope. It describes words, not people.
What changes
A question that names nobody in particular runs under it, and the answer says so. Where an answer used to be about everyone in the index, it is now about the people your scope selects, with a line naming the definition, its revision and its size:
this installation's default scope: 'Payments engineering' (revision 3) — 220 people today; 214 people when it was activated on 8 September 2026
The size today is the authoritative one. It is counted when it is read, by
the same walk of your directory that an answer under the scope runs, so the band
on Admin → Definitions, the chooser and GET /api/admin/definitions/scope
give the same figure. The size when it was activated is history: it changes only
when a new revision is activated. When the size today cannot be counted, the
page and the route say so and never give the activation size in its place. The
page and the route stop counting after a few seconds.
A question that names someone overrides it, silently. Ask about a particular leader, team or definition and that is what you get — the answer says which population it used, in full, and does not also mention the default. Two population sentences in one answer would describe two different sets of people in one breath.
A question can opt out of it, unless the reader is restricted. An administrator, or a viewer with no restriction, can ask about everything Prism holds: "hours on that investment, across the whole organisation", or "people outside the default". That question applies no default and no population. It counts every record, including records whose person is not in the directory, and the answer says so:
the whole index: this question did not apply this installation's default scope 'Payments engineering' (revision 3), so every record counts, including records whose person is not in the directory
When an answer ran under the default, it tells the assistant how to ask past it, so a question about people outside the default is not answered from inside it. For a count or a sum, "people outside the default" is the whole-organisation figure minus the default's own figure. When both lookups are in the same answer, ask the same question (the same figures, filters, window and breakdown) and differ only in who they are about, the "About these figures" band under the answer says that records whose person is not in the directory count as outside, and so do records the default's figure could not match to its people. Where Prism counted those records, the band gives the count as an upper bound, taken before each figure's own filters, and withholds it under the per-person floor. The band is drawn by Prism from the two lookups, not written by the assistant. With any other pair of lookups, or with two populations asked the same question, the band says nothing about outside. An average, a median or a distinct count outside the default is not a difference, and the answer says it cannot give one. A viewer restricted to a reporting line can never opt out. Their question is answered as if it named no population: under the default, within their line. The answer tells them the whole index is not available to them. So the setting locks no unrestricted reader out of anything, and changes nothing about what a restricted viewer can see.
A reader can ask what the scope is. "Does this installation have a default scope?" is answered from the setting itself: an administrator is told which definition it names, its revision, who set it and when. A viewer restricted to a reporting line is told which definition it is while it applies, and not who set it or how many people it selects.
What it never does
It never silently narrows a number. Every answer that ran under the scope says so. That is the whole design: a denominator that moves without saying so is worse than a wrong one, because nothing shows.
It never takes the installation down. Once set, this setting is read on every question — so it is deliberately hard to make a question fail because of it, and easy to make one say something true:
| What happened | What a question does |
|---|---|
| nothing is set | answers about everyone, and says org-wide: this installation has no default scope set |
| you withdrew the definition the scope names | answers about everyone, and says the scope names a definition with no active revision |
| that name is now a context document rather than a population | answers about everyone, and says so, naming the kind |
| the source computes its own figures (a warehouse view) | answers about everyone it holds, and says the scope does not apply on that path |
| no organisational directory is designated | answers about everyone, and says to designate one on the Data sources page |
the dataset's manifest says its records are about no person (subject: none) | answers about everything it holds, and says the scope does not apply (Job 5) |
| Prism could not read its own database | refuses, and says to ask again |
Every row but the last is a state — of your data, or of where a figure is computed — and an administrator who withdrew a definition has not asked for every question on the installation to stop working. The warehouse row is the one worth knowing about before you set a scope: a source Prism queries live rather than copying computes its figures in your own system, where Prism's identity crosswalk does not exist, so no population can reach those rows. Those answers stay org-wide and say so.
The last is a fault, and it is the one case where refusing is right — a question answered as though no scope were set, on an installation that has one, would be about more people than the reader was told.
And it does not reach everything. Four kinds of answer are built from an index directly, or from a live query, and cannot apply it: the GitHub index, the Jira index, a live GitHub drill-down, and the two internal leaderboard endpoints. Each says so in a line of its own. Limits is the list.
Change it, or clear it
The same chooser, from the band's Change button. Choose another definition to change it, or Everyone in the index to clear it. Changing the scope changes what unscoped questions are about from that moment — it does not rewrite answers already given, and an archived answer still names the scope it ran under, so a figure someone acted on last month is still explicable.
Clearing it returns the installation to org-wide, which every answer then says. If somebody changed the scope after you opened the chooser, saving is refused and says what it is now, so you cannot replace or remove a scope you never saw. Setting and clearing are both recorded with who did it.
Verification questions that name no population go back to pending when
you set the scope, change it, or clear it. They also go back to pending when
the definition the scope names is withdrawn, or gets a new active revision
with different content. This happens even where the scope cannot change the
figure, for example on a context stream whose records name no person. The
Verification tab says which change did it and who made it. Run each pending
question again and judge it. A verdict on a figure computed under an older
scope is refused. Questions on a query-through context stream keep their
verdicts, because Prism never applies the default scope to those streams.
Clearing a scope whose definition is already withdrawn takes back no verdict,
because no figure moves.
What to check afterwards
Ask a question you know the answer to, with no leader or team named:
How many pull requests were merged last month?
The answer should carry the scope line above, naming the definition you chose and its revision. If it says org-wide: this installation has no default scope set, the setting did not save. If it names a definition you did not choose, somebody else set it — every change records who made it.
For scripting
The page calls two routes you can call yourself, with a super-administrator session, the same as the page.
curl -sS -X POST "https://<host>/api/admin/definitions/scope" \
-H "Content-Type: application/json" \
-d '{"name": "Payments engineering"}'
{"name": null} clears it. Add "expect_name_key" — the name_key you read,
or null if none was set — to either call, and it is refused (409) if the
scope has changed since, as the page's calls are. A name you type
is matched against aliases too, as a question would be; {"name_key": ...}
names a definition by its own name only, which is what the page sends. GET /api/admin/definitions/scope reads back what
the installation defaults to, what that resolves to now, and candidates:
every activated definition, with eligible, and for one that cannot be the
scope, why_not — the sentence a POST naming it would be refused with. For
the scope in force, people is the size today, or null when it could not be
counted, and size says both counts: people, people_when_activated,
activated_on, error when the count failed, and says, the line the page
shows (220 today · 214 when activated on 8 Sep 2026). When the definition was
written against a stream other than the designated one, written_against names
it and says adds it beside the activation count; when today's count was taken,
counted_against names the stream it was taken against and says adds it
beside that count (220 today, counted against hr_roster · 214 when activated on 8 Sep 2026, written against roster).