Bottom-Up Population Analysis
After explicit selection, turn an aggregate statistical question into inspectable
constituent observations, then reaggregate them into a population conclusion
that another analyst can audit.
Mission And Stakes
Totals, averages, and dashboards can compress different cohorts, mechanisms,
and data-quality problems into one number. A missing event may mean the action
did not occur, the observation was not constructed, the request was rejected,
the record used another identity, or the query excluded it. Treating those
cases as interchangeable produces false statistical conclusions.
This output becomes the evidence base for the next product, operational, or
engineering decision. Strong work lets a reader open the artifacts, follow the
important cases, reproduce the counts, and see exactly what is observed,
derived, inferred, and still unknown. Weak work paraphrases a dashboard,
promotes a convenient sample into a population claim, or treats a statistical
anomaly as a diagnosed software cause.
Use When
Use this skill for asks such as:
- "Dump the raw event population and trace the drop-off user by user before
telling me what the funnel means."
- "Reconcile every purchase behind this revenue total against the store,
entitlement, and telemetry records."
- "Break this average down by cohort and inspect the outliers before deciding
whether the change is real."
Within a selected analysis, inspect cases when a sample and aggregate disagree, a population-level
claim cannot be audited from its constituent observations, or when statistical
analysis may reveal a cohort or pattern worth handing to a product or bug
workflow.
Do Not Use When
- The root ask is software diagnosis, reproduction, repair, or verification,
even when logs or several affected users are available. Follow the repo's
required bug discipline; ordinary diagnosis need not select another skill.
- The job is experiment selection or code review rather than population analysis.
- The answer is already available from one authoritative record and no
aggregate, cohort, or case-level ambiguity remains.
Ground Truth And Proof
- Source records and directly inspectable artifacts are authoritative for what
they contain or show, not automatically for what happened beyond their
capture boundary. The user's desired outcome and explicit constraints are
authoritative for the question. Starting explanations, including the
caller's and agent's, are hypotheses that the cases may overturn.
- Preserve four proof levels: observed directly in a record or frame,
derived by a reproducible transformation, inferred from the observed
pattern, and unknown because the needed evidence is absent.
- Do not turn "not present in this source" into "did not happen." Name the
source boundary and distinguish a missing observation from evidence of
absence.
- Keep artifact paths, source anchors, query boundaries, time windows,
identity rules, and exclusions with the evidence. A conclusion without a
route back to its cases is not durable proof.
- Preserve awkward evidence when it changes interpretation: missing values,
duplicates, contradictory rows, late arrivals, unresolved identities, and
cases that do not fit the dominant pattern.
First Move
- Restate the statistical or population question without embedding a software
cause.
- Name the smallest independent grain that can be counted or compared: one
event, user, journey, request, transaction, record, entity-day, or other
population unit.
- Bound the evidence universe. Record the source, time window, population,
identity rule, inclusion and exclusion rules, and expected count when known.
- Choose a durable artifact that makes both raw observations and case-level
interpretation inspectable. Read
references/evidence-artifacts.md before
constructing it.
- Read
references/worked-examples.md when the
grain is unfamiliar, the first theory is attractive, or the proof boundary
is easy to overstate.
Do not ask the user to choose a formal mode or fill a schema. Infer the grain
from the question and available evidence. Ask only for access or a fact whose
absence would materially change the evidence universe.
Process
1. Materialize The Primary Evidence
Retrieve the rows, payloads, logs, records, files, screenshots, recordings, or
test artifacts that bear on the claim. Prefer the complete bounded population
when it is practical. Otherwise choose coverage that can expose variation and
state exactly what was and was not inspected.
Keep raw source fields alongside normalized or derived fields. When evidence
crosses systems, retain the join keys and system-specific meanings instead of
flattening non-equivalent statuses into one label. Save the artifact before
forming the final story.
2. Organize At The Natural Grain
Make each case independently inspectable. A useful case view normally lets the
reader answer:
- What is this case and where did it come from?
- What happened, in order?
- Which fields or frames are direct evidence?
- What is missing, contradictory, or unusual?
- How is the case classified, and why?
Inspect every case for a small bounded universe. For a large population, state
the total coverage, inspect the consequential cohorts and contradictions, and
make the remaining population available for reaggregation. A few convenient
anecdotes are not a population analysis.
3. Let Cases Revise The Statistical Explanation
Compare the observed cases with the starting explanations. Seek the cases that
should exist if an explanation is true, the near-misses that distinguish
competing mechanisms, and the contradictions that would force a narrower
population claim.
Separate mechanisms that an aggregate can collapse, such as an action not
occurring, an observation not being emitted, a payload not being constructed,
a request being rejected, or a query excluding valid rows. These are examples
of distinctions to analyze, not a finite classification menu.
When the detailed evidence disagrees with the initial story, update the story.
Do not reinterpret the cases to preserve a favored cause. If the pattern points
to a software defect, report the affected cohort and evidence boundary, then
report the signal; begin diagnosis or repair only if the user's task includes it.
4. Reaggregate And Reconcile
Compute the totals, rates, cohorts, and outcomes again from the decomposed
artifact. Reconcile source population, extracted cases, classified cases,
unknown cases, duplicates, and exclusions. Explain every material mismatch.
Keep independent proof layers independent. An accepted request is not the same
as downstream visibility; a store transaction is not the same as an
entitlement or analytics event; a visible control is not the same as an
actionable control. Join them to answer the question without pretending they
are equivalent facts.
5. Stress-Test The Population Conclusion
Before finalizing:
- inspect the strongest contradiction and at least one near-miss or negative
case that separates the leading explanation from its nearest alternative;
- check whether the artifact represents the intended environment, identity,
time boundary, and population state;
- check that every important numeric claim can be recomputed from the saved
artifact;
- lower confidence or retrieve the next discriminating evidence when a causal
step remains inferred rather than observed.
If the primary source is unavailable, use the next-best evidence path and name
its limit. If no available evidence can responsibly distinguish the leading
explanations, return a coverage gap and the smallest evidence acquisition that
would resolve it. Do not convert an anomaly into a diagnosed software cause.
6. Save The Evidence And Return The Population Analysis
Keep the primary artifact and any case ledger, cohort table, reconciliation,
or query result at stable paths available to the user. The final answer should
point to them rather than replacing them with prose.
Quality Bar
Strong population analysis:
- changes the grain of the analysis rather than decorating the aggregate;
- makes consequential cohorts, cases, outliers, and contradictions visible in
artifacts;
- reconciles the final counts from those artifacts;
- distinguishes observation, derivation, inference, and unknowns;
- gives the next decision-maker a narrower, more defensible model of the
population.
Weak work:
- retells dashboard totals with more prose;
- inspects only a hand-picked sample and generalizes silently;
- says raw observations were checked without saving or indexing them;
- treats missing telemetry, HTTP acceptance, a green workflow, or a passing
summary as proof of a population outcome;
- claims a software root cause instead of reporting a statistical bug signal
and reporting it without starting a repair workflow.
Output Contract
Adapt the headings to the analysis; do not fabricate empty sections. A valid
result includes:
- Question and scope — the neutral statistical question, population grain,
evidence universe, time and identity boundaries, and coverage achieved.
- Evidence artifacts — stable paths or links, source provenance, how to
inspect them, and which columns, rows, cohorts, or cases carry the result.
- Case-level findings — the recurring patterns, consequential cohorts,
outliers, contradictions, and unknowns with source anchors.
- Reaggregation and reconciliation — recomputed totals, rates, or
distributions and an explanation for material differences from the original
aggregate or claim.
- Population conclusion — what is observed, derived, inferred, refuted,
and still unknown. Confidence must match coverage and proof level.
- Next analytical action or handoff — only the smallest evidence read,
query, or instrumentation that would materially reduce uncertainty. If the
result is a credible software-defect signal, report it without silently
starting diagnosis or repair.
A result is invalid if its key claims cannot be traced to the saved artifacts,
if its population math does not reconcile, if it reports causal certainty from
correlation or missing data, or if it becomes a software bug-fix workflow.
Completion Test
Finish only when:
- the atomic grain and evidence boundary are explicit;
- primary evidence is saved in an inspectable artifact;
- the necessary cases, including contradictions, were directly inspected;
- the population was reaggregated or the coverage limit was quantified;
- the population conclusion can survive the strongest observed counterexample;
- every material conclusion is labeled at the proof level the artifact earns;
- another investigator could follow the paths and reproduce the reasoning.
Reference Map
references/evidence-artifacts.md — how
to choose, build, inspect, and reconcile event, journey, transaction, request,
visual-observation, repeated-attempt, and population artifacts, with concrete
sample tables
references/worked-examples.md — worked
examples and compact anti-examples showing how case-level evidence
can confirm, overturn, or narrow an attractive aggregate story
1---2name: bottom-up-diagnostic3description: Explicitly selected case-level population analysis: materialize constituent observations, inspect cohorts and outliers, and reaggregate a bounded statistical question. Use when the user chooses $bottom-up-diagnostic or binding task instructions require it. Ordinary bug diagnosis, logs, and multiple affected users do not select this workflow.4---56# Bottom-Up Population Analysis78After explicit selection, turn an aggregate statistical question into inspectable9constituent observations, then reaggregate them into a population conclusion10that another analyst can audit.1112## Mission And Stakes1314Totals, averages, and dashboards can compress different cohorts, mechanisms,15and data-quality problems into one number. A missing event may mean the action16did not occur, the observation was not constructed, the request was rejected,17the record used another identity, or the query excluded it. Treating those18cases as interchangeable produces false statistical conclusions.1920This output becomes the evidence base for the next product, operational, or21engineering decision. Strong work lets a reader open the artifacts, follow the22important cases, reproduce the counts, and see exactly what is observed,23derived, inferred, and still unknown. Weak work paraphrases a dashboard,24promotes a convenient sample into a population claim, or treats a statistical25anomaly as a diagnosed software cause.2627## Use When2829Use this skill for asks such as:3031- "Dump the raw event population and trace the drop-off user by user before32 telling me what the funnel means."33- "Reconcile every purchase behind this revenue total against the store,34 entitlement, and telemetry records."35- "Break this average down by cohort and inspect the outliers before deciding36 whether the change is real."3738Within a selected analysis, inspect cases when a sample and aggregate disagree, a population-level39claim cannot be audited from its constituent observations, or when statistical40analysis may reveal a cohort or pattern worth handing to a product or bug41workflow.4243## Do Not Use When4445- The root ask is software diagnosis, reproduction, repair, or verification,46 even when logs or several affected users are available. Follow the repo's47 required bug discipline; ordinary diagnosis need not select another skill.48- The job is experiment selection or code review rather than population analysis.49- The answer is already available from one authoritative record and no50 aggregate, cohort, or case-level ambiguity remains.5152## Ground Truth And Proof5354- Source records and directly inspectable artifacts are authoritative for what55 they contain or show, not automatically for what happened beyond their56 capture boundary. The user's desired outcome and explicit constraints are57 authoritative for the question. Starting explanations, including the58 caller's and agent's, are hypotheses that the cases may overturn.59- Preserve four proof levels: **observed** directly in a record or frame,60 **derived** by a reproducible transformation, **inferred** from the observed61 pattern, and **unknown** because the needed evidence is absent.62- Do not turn "not present in this source" into "did not happen." Name the63 source boundary and distinguish a missing observation from evidence of64 absence.65- Keep artifact paths, source anchors, query boundaries, time windows,66 identity rules, and exclusions with the evidence. A conclusion without a67 route back to its cases is not durable proof.68- Preserve awkward evidence when it changes interpretation: missing values,69 duplicates, contradictory rows, late arrivals, unresolved identities, and70 cases that do not fit the dominant pattern.7172## First Move73741. Restate the statistical or population question without embedding a software75 cause.762. Name the smallest independent grain that can be counted or compared: one77 event, user, journey, request, transaction, record, entity-day, or other78 population unit.793. Bound the evidence universe. Record the source, time window, population,80 identity rule, inclusion and exclusion rules, and expected count when known.814. Choose a durable artifact that makes both raw observations and case-level82 interpretation inspectable. Read83 [`references/evidence-artifacts.md`](references/evidence-artifacts.md) before84 constructing it.855. Read86 [`references/worked-examples.md`](references/worked-examples.md) when the87 grain is unfamiliar, the first theory is attractive, or the proof boundary88 is easy to overstate.8990Do not ask the user to choose a formal mode or fill a schema. Infer the grain91from the question and available evidence. Ask only for access or a fact whose92absence would materially change the evidence universe.9394## Process9596### 1. Materialize The Primary Evidence9798Retrieve the rows, payloads, logs, records, files, screenshots, recordings, or99test artifacts that bear on the claim. Prefer the complete bounded population100when it is practical. Otherwise choose coverage that can expose variation and101state exactly what was and was not inspected.102103Keep raw source fields alongside normalized or derived fields. When evidence104crosses systems, retain the join keys and system-specific meanings instead of105flattening non-equivalent statuses into one label. Save the artifact before106forming the final story.107108### 2. Organize At The Natural Grain109110Make each case independently inspectable. A useful case view normally lets the111reader answer:112113- What is this case and where did it come from?114- What happened, in order?115- Which fields or frames are direct evidence?116- What is missing, contradictory, or unusual?117- How is the case classified, and why?118119Inspect every case for a small bounded universe. For a large population, state120the total coverage, inspect the consequential cohorts and contradictions, and121make the remaining population available for reaggregation. A few convenient122anecdotes are not a population analysis.123124### 3. Let Cases Revise The Statistical Explanation125126Compare the observed cases with the starting explanations. Seek the cases that127should exist if an explanation is true, the near-misses that distinguish128competing mechanisms, and the contradictions that would force a narrower129population claim.130131Separate mechanisms that an aggregate can collapse, such as an action not132occurring, an observation not being emitted, a payload not being constructed,133a request being rejected, or a query excluding valid rows. These are examples134of distinctions to analyze, not a finite classification menu.135136When the detailed evidence disagrees with the initial story, update the story.137Do not reinterpret the cases to preserve a favored cause. If the pattern points138to a software defect, report the affected cohort and evidence boundary, then139report the signal; begin diagnosis or repair only if the user's task includes it.140141### 4. Reaggregate And Reconcile142143Compute the totals, rates, cohorts, and outcomes again from the decomposed144artifact. Reconcile source population, extracted cases, classified cases,145unknown cases, duplicates, and exclusions. Explain every material mismatch.146147Keep independent proof layers independent. An accepted request is not the same148as downstream visibility; a store transaction is not the same as an149entitlement or analytics event; a visible control is not the same as an150actionable control. Join them to answer the question without pretending they151are equivalent facts.152153### 5. Stress-Test The Population Conclusion154155Before finalizing:156157- inspect the strongest contradiction and at least one near-miss or negative158 case that separates the leading explanation from its nearest alternative;159- check whether the artifact represents the intended environment, identity,160 time boundary, and population state;161- check that every important numeric claim can be recomputed from the saved162 artifact;163- lower confidence or retrieve the next discriminating evidence when a causal164 step remains inferred rather than observed.165166If the primary source is unavailable, use the next-best evidence path and name167its limit. If no available evidence can responsibly distinguish the leading168explanations, return a coverage gap and the smallest evidence acquisition that169would resolve it. Do not convert an anomaly into a diagnosed software cause.170171### 6. Save The Evidence And Return The Population Analysis172173Keep the primary artifact and any case ledger, cohort table, reconciliation,174or query result at stable paths available to the user. The final answer should175point to them rather than replacing them with prose.176177## Quality Bar178179Strong population analysis:180181- changes the grain of the analysis rather than decorating the aggregate;182- makes consequential cohorts, cases, outliers, and contradictions visible in183 artifacts;184- reconciles the final counts from those artifacts;185- distinguishes observation, derivation, inference, and unknowns;186- gives the next decision-maker a narrower, more defensible model of the187 population.188189Weak work:190191- retells dashboard totals with more prose;192- inspects only a hand-picked sample and generalizes silently;193- says raw observations were checked without saving or indexing them;194- treats missing telemetry, HTTP acceptance, a green workflow, or a passing195 summary as proof of a population outcome;196- claims a software root cause instead of reporting a statistical bug signal197 and reporting it without starting a repair workflow.198199## Output Contract200201Adapt the headings to the analysis; do not fabricate empty sections. A valid202result includes:2032041. **Question and scope** — the neutral statistical question, population grain,205 evidence universe, time and identity boundaries, and coverage achieved.2062. **Evidence artifacts** — stable paths or links, source provenance, how to207 inspect them, and which columns, rows, cohorts, or cases carry the result.2083. **Case-level findings** — the recurring patterns, consequential cohorts,209 outliers, contradictions, and unknowns with source anchors.2104. **Reaggregation and reconciliation** — recomputed totals, rates, or211 distributions and an explanation for material differences from the original212 aggregate or claim.2135. **Population conclusion** — what is observed, derived, inferred, refuted,214 and still unknown. Confidence must match coverage and proof level.2156. **Next analytical action or handoff** — only the smallest evidence read,216 query, or instrumentation that would materially reduce uncertainty. If the217 result is a credible software-defect signal, report it without silently218 starting diagnosis or repair.219220A result is invalid if its key claims cannot be traced to the saved artifacts,221if its population math does not reconcile, if it reports causal certainty from222correlation or missing data, or if it becomes a software bug-fix workflow.223224## Completion Test225226Finish only when:227228- the atomic grain and evidence boundary are explicit;229- primary evidence is saved in an inspectable artifact;230- the necessary cases, including contradictions, were directly inspected;231- the population was reaggregated or the coverage limit was quantified;232- the population conclusion can survive the strongest observed counterexample;233- every material conclusion is labeled at the proof level the artifact earns;234- another investigator could follow the paths and reproduce the reasoning.235236## Reference Map237238- [`references/evidence-artifacts.md`](references/evidence-artifacts.md) — how239 to choose, build, inspect, and reconcile event, journey, transaction, request,240 visual-observation, repeated-attempt, and population artifacts, with concrete241 sample tables242- [`references/worked-examples.md`](references/worked-examples.md) — worked243 examples and compact anti-examples showing how case-level evidence244 can confirm, overturn, or narrow an attractive aggregate story