Evidence ledger
Every number on this site, with its method.
Demo metrics are produced by one recorder that runs each project's own
make targets, keeps the transcript, and
refuses to write a value that doesn't match what the command printed. Career
figures from AT&T are résumé-reported and live on the About page, never here.
-
01
make targets
test · benchmark · eval · demo · dbt build — the projects' own commands
-
02
Transcripts
ANSI-stripped output saved to src/data/measurements/
-
03
Exporters
scripts/artifacts/*.py re-derive each value; mismatches fail the run
-
04
measured.json
values + methods + caveats, labels rendered from a spec
-
05
The page
MetricTiles and charts read only from that file
- Measured
- 2026-10-05
- Seed
- 42 (all generators)
- CPU
- 4 vCPU · Intel(R) Xeon(R) Processor @ 2.10GHz
- Runtime
- Python 3.11.15 · uv 0.8.17
- OS
- Linux-6.18.44-fc-v70-x86_64-with-glibc2.39
- Re-run
- npm run measure
01 Ledger
All measured metrics
Anchored by id — metric tiles across the site link straight to their row.
Real-Time Fraud Signals make eval: producer seed 42, 1,000 accounts, 50 ev/s × 300 s; account-level P/R
| Value | What it is | Kind | Method |
|---|---|---|---|
| ~154k/s | events scored by 3 detectors 16,664 events · single process · median of 5 | Measured | make eval, then detect_all() timed in-process by scripts/artifacts/fraud.py |
| 1.00 / 1.00 | impossible-travel precision / recall account-level vs seeded ground truth | Measured | make eval (anomaly.evaluate) |
| 0.97 / 0.58 | amount z-score precision / recall 117 of 200 outlier accounts caught | Measured | make eval (anomaly.evaluate) |
| 0.26 / 1.00 | velocity precision / recall 865 of 1,000 accounts flagged at threshold 5 Caveat: A fixed 5-events-in-60s rule fires on ordinary traffic at this simulated rate; the sweep peaks at F1 0.79 with threshold 9. | Measured | make eval (anomaly.evaluate) |
Telecom Billing Lakehouse make demo (seed 42) → DuckDB medallion transform; dbt build over the same raw parquet
| Value | What it is | Kind | Method |
|---|---|---|---|
| 0.24s | raw → Gold, 49,998 CDRs median of 5 in-process runs · DuckDB | Measured | make demo, then scripts/artifacts/telecom.py times raw_to_bronze → bronze_to_silver → silver_to_gold |
| 41/41 | dbt tests passing 8 models · bronze → gold | Measured | dbt build (dbt-duckdb, scratch profile) over make demo output |
| 10 | Bronze contract expectations types · nulls · ranges · MSISDN regex Caveat: Defined in the suite; the transform_silver DAG's checkpoint task is a stub, so the contract is not enforced at runtime yet. | Defined | count of great_expectations/expectations/cdr_bronze_suite.json |
| 8 | unit tests passing generator + transforms | Test run | make test |
AI-Assisted SQL Optimizer make benchmark (dry run) over corpus/queries/*.sql vs corpus/ground_truth.yaml
| Value | What it is | Kind | Method |
|---|---|---|---|
| 4 / 5 | queries with ≥1 analyzer finding real corpus · heuristics only, no API Caveat: Any finding counts as a hit; whether the finding is the right one is not scored. | Measured | make benchmark (dry run) |
| 0.33 | benchmark keyword overlap analyzer findings only · heuristics, no API | Measured | make benchmark (dry run) |
| 0.9 ms | analyzer latency per query in-process median, warm · n=200 | Measured | scripts/artifacts/sqlopt.py times analyze() over the 5 corpus queries ×40 |
| 45 | unit tests passing analyzer, benchmark, CLI, client, EXPLAIN | Test run | make test |
Site-wide
| Value | What it is | Kind | Method |
|---|---|---|---|
| 71 | unit tests passing pytest across 3 projects · 1 skipped | Test run | make test ×3 |
02 Known limitations
What the data itself exposes
Found while re-measuring. Each is fixable in the project code; until then the site labels the affected numbers instead of hiding them.
- Limitation
Dry-run keyword overlap is low
Scored on analyzer findings only, the mean is 0.33: the heuristics flag patterns but rarely name the fix, and cte_flattening and partition_pruning score 0.00. Until 2026-10-05 the scorer also searched the query text, which inflated it.
See it on the page → - Limitation
Two analyzer rules are never exercised
cross_join and missing_partition_predicate don't fire on the corpus — the partition rule needs --partition-columns, which the benchmark doesn't pass.
See it on the page → - Limitation
Velocity rule over-flags at this traffic rate
Threshold 5 flags 865 of 1,000 accounts (precision 0.26). The sweep's best F1 is 0.79 at threshold 9.
See it on the page → - Limitation
Churn mart is degenerate on synthetic data
The generator draws a new MSISDN per record, so all 49,998 callers appear once and classify as high churn risk.
See it on the page → - Limitation
Great Expectations contract isn't enforced
The great_expectations_bronze task loads the GE context and prints; it doesn't run a checkpoint, so the 10 expectations are defined but not blocking.
See it on the page → - Limitation
Fraud detectors run in batch, not in the stream
The Spark consumer writes raw events to Delta; detectors run over the JSONL evaluation set. Streaming latency is therefore not measured.
See it on the page →
03 Not measured
Deliberately left unclaimed
Things a reviewer might expect a number for. They need infrastructure or work that doesn't exist yet, so there is no number.
Real-Time Fraud Signals
- Planned Sustained Spark Structured Streaming throughput
- Planned End-to-end latency p50 / p95 / p99 (needs the Kafka + Spark stack)
- Planned Data loss on restart from checkpoint
Telecom Billing Lakehouse
- Planned Great Expectations enforcement — the checkpoint task is a stub
- Planned Airflow end-to-end run timing (needs the docker compose stack)
- Planned Iceberg / Athena query performance on AWS
AI-Assisted SQL Optimizer
- Planned Claude rewrite quality — `benchmark --no-dry-run` is implemented; no live run recorded (needs ANTHROPIC_API_KEY)
- Planned EXPLAIN cost delta — `benchmark --explain spark|snowflake` is implemented; no run recorded (needs an engine holding the corpus tables with statistics)
- Planned Human acceptance rate of suggestions
04 Transcripts
Raw command output
Exactly what the make targets printed during the last measurement run.
fraud-signals — make test, make eval
$ make test
uv run pytest
..................s [100%]
18 passed, 1 skipped in 0.59s
$ make eval
==> Generating a labeled evaluation set (seed 42, ~17k simulated events)
uv run python -m producer.generate --sink jsonl --rate 50 --duration 300 --accounts 1000 --out data/eval_events.jsonl
Wrote 16664 events to data/eval_events.jsonl in 0.2s
==> Scoring detectors against the embedded ground-truth labels
uv run python -m anomaly.evaluate data/eval_events.jsonl
Detector evaluation over 16664 labeled events
┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━┓
┃ Detector ┃ Ground-truth pattern ┃ Accounts w/ pattern ┃ Accounts flagged ┃ Precision ┃ Recall ┃ F1 ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━┩
│ velocity │ velocity_burst │ 226 │ 865 │ 0.26 │ 1.00 │ 0.41 │
│ geo │ impossible_travel │ 240 │ 240 │ 1.00 │ 1.00 │ 1.00 │
│ amount │ amount_outlier │ 200 │ 121 │ 0.97 │ 0.58 │ 0.73 │
└──────────┴──────────────────────┴─────────────────────┴──────────────────┴───────────┴────────┴──────┘
Scored 16664 events in 0.11s (151,143 events/sec, single process)
telecom-lakehouse — make test, make demo, dbt build
$ make test
uv run pytest
........ [100%]
8 passed in 13.38s
$ make demo
==> Generating 50k synthetic CDR rows -> data/raw/
uv run python -m data_generator.generate_cdrs --rows 50000 --out data/raw/
Wrote 49998 CDRs across 3 day partitions to data/raw
==> Running lightweight Bronze -> Silver -> Gold transform (no Airflow)
uv run python -m lakehouse.transform run-all
Medallion row counts
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Layer ┃ Rows ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ Bronze │ 49,998 │
│ Silver │ 49,998 │
│ Gold / revenue_by_market │ 15 │
│ Gold / arpu_monthly │ 5 │
│ Gold / churn_signals │ 49,998 │
└──────────────────────────┴────────┘
Demo complete. See data/{bronze,silver,gold}/.
$ dbt build # scratch profile
2 of 49 PASS source_not_null_raw_cdr_raw_caller_msisdn ......................... [PASS in 0.13s]
4 of 49 PASS source_not_null_raw_cdr_raw_start_time ............................ [PASS in 0.12s]
3 of 49 PASS source_not_null_raw_cdr_raw_cdr_id ................................ [PASS in 0.13s]
1 of 49 PASS source_accepted_values_raw_cdr_raw_call_type__VOICE__SMS__DATA .... [PASS in 0.14s]
5 of 49 PASS source_unique_raw_cdr_raw_cdr_id .................................. [PASS in 0.08s]
8 of 49 PASS accepted_values_br_cdr_market__NORTH__SOUTH__EAST__WEST__CENTRAL .. [PASS in 0.08s]
10 of 49 PASS not_null_br_cdr_cdr_id ........................................... [PASS in 0.08s]
9 of 49 PASS not_null_br_cdr_caller_msisdn ..................................... [PASS in 0.09s]
7 of 49 PASS accepted_values_br_cdr_call_type__VOICE__SMS__DATA ................ [PASS in 0.11s]
11 of 49 PASS not_null_br_cdr_ingest_date ...................................... [PASS in 0.04s]
12 of 49 PASS unique_br_cdr_cdr_id ............................................. [PASS in 0.05s]
16 of 49 PASS not_null_br_account_register_caller_msisdn ....................... [PASS in 0.06s]
15 of 49 PASS not_null_br_account_register_account_key ......................... [PASS in 0.07s]
17 of 49 PASS unique_br_account_register_account_key ........................... [PASS in 0.10s]
20 of 49 PASS expression_is_true_sl_cdr_clean_billable_minutes___0 ............. [PASS in 0.08s]
19 of 49 PASS expression_is_true_sl_cdr_clean_billable_mb___0 .................. [PASS in 0.08s]
21 of 49 PASS not_null_sl_cdr_clean_caller_msisdn .............................. [PASS in 0.08s]
18 of 49 PASS accepted_values_sl_cdr_clean_call_type__VOICE__SMS__DATA ......... [PASS in 0.09s]
22 of 49 PASS not_null_sl_cdr_clean_cdr_id ..................................... [PASS in 0.04s]
23 of 49 PASS unique_sl_cdr_clean_cdr_id ....................................... [PASS in 0.05s]
26 of 49 PASS expression_is_true_sl_revenue_event_revenue_usd___0 .............. [PASS in 0.07s]
27 of 49 PASS not_null_sl_revenue_event_cdr_id ................................. [PASS in 0.08s]
28 of 49 PASS unique_sl_revenue_event_cdr_id ................................... [PASS in 0.09s]
29 of 49 PASS not_null_sl_account_daily_caller_msisdn .......................... [PASS in 0.09s]
30 of 49 PASS not_null_sl_account_daily_ingest_date ............................ [PASS in 0.09s]
31 of 49 PASS not_null_sl_account_daily_plan_id ................................ [PASS in 0.07s]
32 of 49 PASS relationships_sl_account_daily_caller_msisdn__caller_msisdn__ref_br_account_register_ [PASS in 0.08s]
36 of 49 PASS accepted_values_arpu_monthly_plan_id__BASIC_5GB__PRO_25GB__UNLIMITED__FAMILY_50GB__PREPAID [PASS in 0.07s]
37 of 49 PASS expression_is_true_arpu_monthly_arpu_usd___0 ..................... [PASS in 0.09s]
38 of 49 PASS not_null_arpu_monthly_arpu_usd ................................... [PASS in 0.10s]
39 of 49 PASS not_null_arpu_monthly_month ...................................... [PASS in 0.10s]
40 of 49 PASS not_null_arpu_monthly_plan_id .................................... [PASS in 0.10s]
41 of 49 PASS accepted_values_revenue_by_market_market__NORTH__SOUTH__EAST__WEST__CENTRAL [PASS in 0.10s]
42 of 49 PASS expression_is_true_revenue_by_market_revenue_usd___0 ............. [PASS in 0.11s]
43 of 49 PASS not_null_revenue_by_market_ingest_date ........................... [PASS in 0.09s]
44 of 49 PASS not_null_revenue_by_market_market ................................ [PASS in 0.08s]
45 of 49 PASS not_null_revenue_by_market_revenue_usd ........................... [PASS in 0.09s]
46 of 49 PASS accepted_values_churn_signals_churn_risk__high__medium__low ...... [PASS in 0.09s]
47 of 49 PASS not_null_churn_signals_caller_msisdn ............................. [PASS in 0.09s]
48 of 49 PASS not_null_churn_signals_churn_risk ................................ [PASS in 0.06s]
49 of 49 PASS unique_churn_signals_caller_msisdn ............................... [PASS in 0.07s]
Finished running 6 table models, 41 data tests, 2 view models in 0 hours 0 minutes and 2.20 seconds (2.20s).
Completed successfully
Done. PASS=49 WARN=0 ERROR=0 SKIP=0 NO-OP=0 REUSED=0 TOTAL=49
ai-sql-optimizer — make test, make benchmark
$ make test
uv run pytest
............................................. [100%]
45 passed in 1.32s
$ make benchmark
uv run sql-optimizer benchmark --dry-run
Benchmark over 5 queries (dry_run=True)
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ Category ┃ Queries ┃ Avg keyword overlap ┃ Findings hit rate ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ join_optimization │ 1 │ 1.00 │ 1.00 │
│ aggregation_rewrite │ 1 │ 0.33 │ 1.00 │
│ cte_flattening │ 1 │ 0.00 │ 1.00 │
│ partition_pruning │ 1 │ 0.00 │ 0.00 │
│ broadcast_join │ 1 │ 0.33 │ 1.00 │
└─────────────────────┴─────────┴─────────────────────┴───────────────────┘
EXPLAIN step not run: no engine (pass --explain spark|snowflake).
05 Reproduce
Run it yourself
git clone https://github.com/AlexHuggler/Huggler-portfolio
cd Huggler-portfolio/portfolio-site
npm ci
npm run measure # installs, tests and measures all three projects (needs uv)
npm run build # the site re-renders from the new measured.json