Consistency · Definitions & context

Which number do we trust?

Your analysts decide what a KPI means. Bicycle carries that definition into each answer, finding and weekly review. Follow one number from the report your team trusts to the query an agent ran, then see what happens when the rules change.

A worked example · retail

One question. Four ways to count.

“What was checkout conversion last week?” For October 18–24, 10,000 eligible online visits included 1,000 checkout starts and 261 purchasing visits. Here’s what four people could reasonably bring to Monday’s meeting.

Analyst’s Claude skill

2.53%

261 purchasing visits ÷ 10,300 visits. Its query included 300 internal test visits.

PM’s ChatGPT query

3.65%

365 order lines ÷ 10,000 visits. A shopper who bought two items counted twice in the numerator.

Checkout funnel

26.1%

261 purchasing visits ÷ 1,000 visits that started checkout. A useful answer to a different question.

Monday’s trading report

2.61%

261 purchasing visits ÷ 10,000 eligible visits. Commerce Analytics approved this definition for the report.

Approved

Any of the assistants can return 2.61%. What matters is which definition and records the calculation uses. The same issue arises when “active” could mean an account, a workspace or a person.

Sources and ownership

Start where the team already defines the number.

A dbt metric might own the formula while a dashboard owns the reporting calendar. Bicycle’s onboarding agent reads both. If you start with tables or files, it uses their metadata and your context to propose the business model and the KPI agents it can support. An analyst reviews the proposal before the assignment uses it.

Semantic models

A dbt metric, LookML measure, Snowflake semantic view or Power BI model can supply a formula and join path. The approved definition keeps a reference to the source and its owner.

Tables, files and SQL

Keys, event times and the queries behind a weekly report show how records fit together. A duplicate-count test checks a proposed join against the data.

Dashboards and funnels

A Tableau report can establish the week, filters and counts to reconcile. An Amplitude funnel may reveal another denominator worth naming separately.

Business knowledge

A glossary, notebook or team playbook can supply an eligibility rule or an investigation method. The person who owns the rule confirms where it applies.

Grain, joins and time

What does one row represent?

One shopper clicks checkout three times, places one order and buys two items. For this metric, that’s one eligible visit, one visit that started checkout and one purchasing visit.

Joining order lines straight to visits can turn that one purchase into two. The analyst checks that purchases are grouped by visit before the join and that the join preserves the eligible visit count. For warehouse data, code runs these profiling checks at the source. The model can use the schema and resulting counts to propose the mapping.

The visit model used for this report

Record
One visit keyed by session_id. A visit can contain several events and order lines.
Join
Link each order to its visit. Set a purchase flag once per visit.
Time basis
Visit start determines the trading week, Sunday through Saturday in Pacific time.
Breakdowns
Region, device, category and channel are the assignment’s approved breakdowns. This report asks for all eligible online visits.

Definition review

Find where each rule takes effect.

The glossary says “human, external visits.” The report SQL removes internal traffic. Where did the bots go? Bicycle flags the apparent conflict. The analyst traces bot filtering to the upstream sessions model and checks the remaining exclusion against the report.

Checkout conversion v3 · owned by Commerce Analytics · effective October 1

RuleSourceWhat the analyst verifies
Formuladbt metricPurchasing visits divided by eligible visits, expressed as a percentage.
Grain and eligibilitySessions model and KPI glossaryOne row per visit. Upstream filtering removes bots once.
Internal trafficVersioned SQL exclusionv2 included internal tests. v3 excludes them. On the pinned week the denominator falls by 300.
Reporting periodWeekly trading dashboardMatch both counts for the complete Pacific trading week before approving v3.

The answer receipt

Show the calculation behind 2.61%.

“For October 18–24, 261 of 10,000 eligible online visits ended in a purchase.” An analyst inspecting that sentence can trace three things.

Which definition?

Checkout conversion v3, approved by Commerce Analytics. The receipt identifies the dbt formula, the source of the exclusions and the Pacific trading week.

What ran?

The October 26 snapshot returned 261 and 10,000.

SELECT COUNTIF(purchased), COUNT(*) FROM eligible_sessions_v3 WHERE week = DATE '2026-10-18'

What was checked?

Both counts reconcile to the report. Each eligible visit appears once and the week is complete. A shared upstream omission could affect both calculations, so the receipt also names the checks performed.

Names and defaults

When “conversion” is ambiguous, ask.

Two names for one metric

Commerce Analytics approves “visit-to-order rate” as an alias for checkout conversion v3. Either phrase resolves to the same calculation.

Two legitimate metrics

“Checkout completion” counts only visits that started checkout. Ask for completion and Bicycle cites the funnel definition alongside 26.1%.

Two sources disagree

If both say “conversion” and disagree about test traffic, Bicycle surfaces the conflict to the owner. A correction in chat is feedback for that review.

What the user hears

Without an approved default, Bicycle asks, “All eligible visits, or just visits that started checkout?” In Monday’s trading review it can answer directly and name the report’s approved denominator.

Context lifecycle and upgrades

Keep definitions and skills in sync as the business changes.

A request for “West only” changes one answer. A skill that still reads raw sessions needs its reference fixed. A new policy on which visits qualify changes the shared metric. Those three corrections reach different people and have different effects.

Suppose the sessions team replaces a field. The old model used is_internal. The new one classifies traffic as customer, employee or test. The analyst checks every classification against the approved exclusion. A renamed field may need only a mapping update. A decision to count employee shopping changes the meaning of conversion.

A skill is a reusable procedure with its own source, owner and revision. The onboarding agent can use one to check visit keys. The KPI agent can use another to compare prices for the same products and hours. When a source changes, review the skills that read it along with the metric.

  1. Step 1 · Trace

    Trace the dependency.

    Identify the source revision, the rule it supplies, and the affected agent assignments and skills. Flag an unverified mapping for review.

    ML + code
    Source revision
    The sessions model replaces is_internal with customer, employee or test.
    Rule it supplies
    The internal-traffic exclusion in checkout conversion v3.
    Unverified mapping
    Flagged for the analyst’s review.
  2. Step 2 · Replay

    Replay a pinned period.

    Run the old and proposed rules on the same snapshot. Compare both counts and inspect employee and test visits separately.

    ML + code
    Snapshot
    The same pinned period for both rules.
    Compare
    Eligible visits and purchasing visits, old rule against proposed.
    Inspect separately
    Employee visits and test visits.
  3. Step 3 · Publish

    Publish the approved change.

    The metric owner signs off on any change in meaning and its effective date. Publish in the system that owns the definition. Update the references, skill instructions and report defaults that rely on it. Retire superseded guidance from the active skills directory.

    Your team
    Sign-off
    The metric owner approves the change in meaning and its effective date.
    Update
    References, skill instructions and report defaults.
    Retire
    Superseded guidance in the active skills directory.
  4. Step 4 · Preserve

    Preserve what people saw.

    New runs cite the applicable revision. Earlier receipts still identify the definition and snapshot they used. Label a recalculation under the new rule as a restatement.

    ML + code
    New runs
    Cite the applicable revision.
    Earlier receipts
    Keep the definition and snapshot they used.
    Recalculations
    Labelled as restatements.

From an answer to an assignment

The definition follows the finding into the decision.

“Show me last week” needs a cited calculation. “Have it ready every Monday and flag unusual changes” also needs a schedule, segment rules and an owner. Bicycle’s business model links the signal to the evidence an agent may test and the action someone may approve.

LayerWhat it contributes to the checkout assignmentUsed by
SignalMeasure checkout conversion v3 for the approved segments. The finding identifies West mobile and cites the definition and run.Answer and Detect
Causal driversThe pricing playbook calls for a dated comparison of the same promoted shoes in markets with and without a price gap. Code tests that explanation alongside inventory and checkout errors.Explain
ActionIf the comparison supports price as the leading explanation, propose a temporary price match on the affected shoes. State region, duration, margin guardrail and the outcome check.Act
AuthorityThe merchandising lead decides within the approved markdown range. A wider change goes to the category VP. The pricing policy supplies that authority. A previous approval only shows whom to ask.Act and Control

A missing price feed leaves the price explanation open. The measured decline still stands. If checkout errors explain the timing better, the finding goes to the team that can fix checkout.

Evaluate it on your setup

Can a second person reproduce the number?

Bring a report your analysts trust and a Claude skill or ChatGPT workflow you already use. Have someone who didn’t build either ask the same question in their own assistant.

Repeat the known question

Match definition version, filters, permitted scope, period and snapshot. In the example, Claude and ChatGPT should each return 261 of 10,000. Someone with West-only access should see their narrower scope.

Change the question

Ask for checkout completion. Look for 261 of 1,000 and its own citation. Try “conversion” outside the Monday report and see whether a clarifying question appears.

Make a correction

Change a source rule. Can the second person find its owner, see the effect on both counts and explain an earlier answer? Track where the analyst had to step in and how long it took to settle the difference.