Skip to content

Independent engineering research

Small experiments.
Clearer engineering decisions.

Reproducible investigations into data quality, SQL correctness and business intelligence. Start with a question. Inspect the method. Check the result yourself.

01 / Executed investigations

The details change the answer.

Small, inspectable experiments that expose practical reporting and data-engineering decisions.

Search research
Executed · Reporting correctness

How group size changes an overall completion KPI

Does averaging team percentages produce the same answer as dividing total completions by total eligible records? Two synthetic teams make the distinction visible.

Method: compare the mean group rate with the ratio of totals, using validated whole-number counts and automated correctness checks.

Datta SableVersion 1
Read the complete investigation
Same inputs. Two different questions.
Mean team rate50.00%
Overall completion rate17.27%
Team A: 9 of 10. Team B: 10 of 100. The overall rate is 19 / 110; the mean gives each team equal weight. This is a synthetic arithmetic example, not a client outcome.
Executed · Data quality

A small profile can miss a rare defect

Does checking the first 100 records establish that every record has an email?

Method: Evaluate the same nonempty-email rule over the full array and the first 100 rows. Retain the generated row ID of the planted defect.

Observed resultExact: 1 / 1000 invalid. Prefix sample: 0 / 100 invalid.
Version 1 · Synthetic fixture
Inspect method and limitations
Executed · SQL

Why a detail join can inflate an order total

Does summing an order-level amount after joining detail lines preserve its grain?

Method: Execute both SQL queries in the embedded PostgreSQL engine. Compare a direct join sum with an EXISTS-filtered sum at order grain.

Observed resultExecuted join sum: 250. Executed order-grain sum: 150.
Version 1 · Synthetic fixture
Inspect method and limitations

02 / Reproducibility

A result you can challenge.

Research is useful when another engineer can inspect the inputs and reproduce the calculation.

  1. 01

    Inspect the inputs

    Read the complete synthetic fixture, population definition, environment and assumptions before interpreting the result.

  2. 02

    Run the same method

    Use the provided repository command. Expected answers are asserted, actual output is recorded and the ephemeral database is closed.

  3. 03

    Test the boundary

    Change the input or challenge the grain. Limitations explain what the result does not establish, including performance and production behavior.

node scripts/run-engineering-experiments.mjsDownload fixtures and recorded results

03 / Methodology & synthetic fixture design

Why minimal adversarial fixtures beat anecdotal screenshots.

Production incidents in Business Intelligence rarely stem from exotic distributed-systems bugs. Most executive reporting errors trace back to three deterministic mechanics: grain multiplication in SQL joins, unweighted averaging of unequal cohorts, and partial-prefix data profiling.

1. Minimal counterexamples over noisy big data

A two-order SQL table and a three-row line-item table are enough to prove why SUM(o.amount) after a 1-to-many join inflates revenue from 150 to 250. Stripping away millions of irrelevant rows makes the arithmetic auditable by any analyst in thirty seconds, without requiring access to confidential client databases.

Once the minimal counterexample is understood, the same structural pattern applies directly to enterprise star schemas, Power BI semantic models, and Microsoft Fabric Lakehouse transformations.

2. In-process PostgreSQL & deterministic test runners

Rather than writing SQL snippets by hand in prose, the SQL and profiling experiments execute inside an ephemeral in-process PGlite PostgreSQL instance via scripts/run-engineering-experiments.mjs. Expected outputs are asserted programmatically, and the exact engine version, Node runtime, and UTC execution timestamp are serialized to data/research/verified-experiments.json.

Arithmetic studies such as the weighted KPI investigation use pure functions in lib/weighted-kpi.ts guarded by integer-boundary assertions and automated unit tests in tests/mission95.test.mjs.

3. Explicit scope & non-claim boundaries

Every study separates what the fixture proves from what it intentionally omits. A 1,000-row profiling counterexample with an empty email at row 901 proves that a 100-row prefix check can miss a defect; it does not claim to measure random-sampling variance or production query latency.

Likewise, an unexecuted architecture protocol is never presented as an empirical benchmark. Review our trust & verification standards and editorial policy for full disclosure rules.

5. Verification commands & local audit workflow

Engineers reviewing these studies can inspect the full fixture payload in data/research/verified-experiments.json and re-run both the PGlite SQL harness (node scripts/run-engineering-experiments.mjs) and the arithmetic unit suite (node --test tests/mission95.test.mjs) locally without provisioning external cloud warehouses or database credentials.

Each run verifies three invariants: exact row-level grain preservation in semi-joins, deterministic completeness scanning across full populations rather than prefix slices, and safe-integer boundary validation for weighted versus unweighted KPI ratios.

6. Applying these invariants to Power BI & Fabric

In Power BI semantic models and Microsoft Fabric Lakehouses, the same three failure modes appear when teams rely on Power Query's default 1,000-row column profiling, enable bi-directional cross-filtering across multi-grain fact tables, or store pre-computed percentage columns instead of defining explicit DIVIDE(SUM(...), SUM(...)) DAX measures. Auditing these three boundaries during code review eliminates the majority of silent executive scorecard discrepancies before deployment.

04 / Research protocols

A plan is not a finding.

Protocol only · Not executed

Microsoft Fabric capacity evaluation

A controlled protocol for checking workload correctness and capacity behavior. Execution requires an authorized tenant, an isolated test capacity, workload telemetry and a fixed dataset. No Fabric performance findings are claimed here.

Inspect the proposed evaluation method
  1. Record tenant permissions, capacity SKU, region, workload versions and competing jobs.
  2. Fix the synthetic dataset and expected query results before measuring.
  3. Warm up and repeat identical workloads, preserving correctness checks and raw telemetry.
  4. Report run-to-run variation, observed utilization, costs and limitations; separate estimates from measured results.
  5. Retain reproduction assets and disclose access or configuration gaps before publishing findings.

05 / Designing your own verification fixture

How to test reporting logic before production deployment.

1. Isolate the Failure Mode in 10 Rows

Whenever a dashboard total disagrees with an ERP ledger, resist debugging against millions of production rows. Construct a 10-row synthetic fixture containing the exact suspect pattern—such as two branches of unequal size, one duplicate dimension key, or a null denominator—so you can compute the true answer by hand in seconds.

2. Assert Invariants in SQL or Browser Tools

Encode your hand-calculated expectation as an explicit assertion in SQL or profile the fixture locally in Nexdial OpenMIS. If a Power Query merge or DAX measure fails on 10 rows, it will silently corrupt 10 million rows. Document the check in Mermaid Forge so future maintainers know which invariant the pipeline protects.

Continue the investigation.

Build the foundations, try a practical exercise, or explore implementation evidence.

Authored by Datta Sable. No peer review, client impact or independent certification is implied. Read the editorial policy.

Found an error? Suggest a correction.
External contributions: publications and community.