
DecisionOps Lab
Most portfolio projects stop after analysis.
DecisionOps Lab continues until a decision can be made.
DecisionOps Lab is a product analytics and analytics engineering portfolio project that turns synthetic product event data into SQL models, metric definitions, data quality checks, A/B test results, multi-guardrail review, and final decision memos.
This project is intentionally not another domain-specific analysis project. It is designed to show how a data team can move from raw events to trustworthy metrics and product decisions.
Current Evidence Snapshot
DecisionOps Lab now demonstrates a V2 multi-guardrail decision workflow.
The default reviewer case is strong_positive, where Variant B improves activation and all guardrails pass.
| Evidence |
Current Result |
| Public reviewer report |
Open report |
| Default decision |
Ship |
| Data quality |
PASS |
| Primary metric |
Activation Rate |
| Variant A activation |
30.15% |
| Variant B activation |
34.12% |
| Absolute lift |
+3.97 percentage points |
| Statistical evidence |
p-value 0.000011 |
| Guardrail review |
PASS across D7 revisit, refund rate, and session activity |
| Verification |
full workflow + semantic report freshness check + GitHub Actions |
Generated reviewer artifacts:
Scenario Matrix
The project is not hard-coded to one positive result. The same pipeline runs across multiple synthetic decision situations.
| Scenario |
Quality |
Guardrail |
Decision |
Purpose |
strong_positive |
PASS |
PASS |
Ship |
Strong lift with stable guardrails |
guardrail_risk |
PASS |
WARN |
Retest |
D7 revisit weakens despite activation lift |
refund_risk |
PASS |
WARN |
Retest |
Refund rate worsens despite activation lift |
session_activity_risk |
PASS |
WARN |
Retest |
Average sessions drop despite activation lift |
weak_evidence |
PASS |
PASS |
Retest |
Lift is positive but weak |
neutral |
PASS |
PASS |
Hold |
Variant B does not improve activation |
quality_failure |
FAIL |
PASS |
Investigate |
Data quality fails before interpretation |
DecisionOps Lab checks quality first, then primary metric evidence, then guardrails. A positive activation lift is not enough to Ship if downstream user behavior looks risky.
Documentation Guide
1. Project Question
Can a data analyst build a reproducible workflow that checks data quality, defines product metrics, analyzes an experiment, and produces a decision memo?
DecisionOps Lab answers this by implementing the following flow:
raw product events
→ SQL staging models
→ intermediate analysis tables
→ mart layer
→ data quality report
→ experiment analysis
→ multi-guardrail review
→ decision memo
→ reviewer report
→ scenario matrix
→ automated verification
2. Portfolio Positioning
Existing projects show domain-specific decision systems:
| Project |
Role |
| Redveil |
Risk review UX and decision artifacts |
| Shelter Signal |
Public-data API service with freshness, cache, fallback, and PWA flow |
| LH Traffic Safety |
Spatial risk scoring and field-review priority design |
| Starbucks Promotion |
CRM event restructuring, prediction, recommendation, and dashboard story |
| DecisionOps Lab |
SQL modeling, metric layer, quality check, experiment analysis, guardrail-aware decision workflow |
DecisionOps Lab fills the missing technical layer: how raw data becomes a reliable decision workflow inside a data team.
3. Product Scenario
The synthetic product is a routine / study habit app.
A user can:
signup
→ onboarding_start
→ onboarding_complete
→ create_routine
→ complete_routine
→ return_visit
→ trial_start
→ paid_conversion
→ refund
The product team is testing a new onboarding experience.
Experiment question:
Does Variant B increase the share of new users who create their first routine within 24 hours after signup?
4. Core Outputs
| Output |
Description |
| Synthetic dataset |
Reproducible product event data generated with fixed seeds and scenario modes |
| SQL models |
DuckDB-based raw loading, staging models, intermediate tables, and final marts |
| Metric layer |
Clear definitions for activation, retention, monetization, and guardrail metrics |
| Data quality report |
PASS / WARN / FAIL checks for row count, nulls, accepted values, referential integrity, duplicates, and experiment balance |
| Experiment result |
Variant A/B comparison, lift, statistical test, confidence interval, segment diagnostics, and guardrail review |
| Scenario matrix |
Ship / Retest / Hold / Investigate outcomes across multiple synthetic conditions |
| Decision memo |
Final recommendation based on data quality, evidence strength, and guardrails |
| Reviewer report |
Static HTML summary for quick portfolio review |
5. Tech Stack
| Area |
Tools |
| Data generation |
Python, pandas, NumPy |
| SQL engine |
DuckDB |
| Experiment analysis |
scipy, statsmodels |
| Quality checks |
Python, pytest-ready structure |
| Reporting |
Markdown, JSON, static HTML |
| Documentation |
Markdown |
The current implementation uses DuckDB and plain SQL to keep the workflow transparent and easy to review.
6. How to Run
Run the full verification workflow and confirm that tracked reviewer reports are still semantically current:
python scripts/run_full_verification.py
python scripts/check_report_freshness.py
The freshness check compares regenerated artifacts with the versions committed at HEAD. It normalizes only volatile generated_at timestamps; any changed metric, guardrail, scenario decision, memo copy, or HTML report content still fails the check.
Or run the pipeline step by step:
python scripts/generate_dataset.py
python scripts/run_pipeline.py
python scripts/run_quality_checks.py
python scripts/run_experiment_analysis.py
python scripts/generate_decision_memo.py
python scripts/generate_review_report.py
python scripts/run_scenario_matrix.py
python -m pytest
python scripts/check_report_freshness.py
Expected local artifacts:
data/raw/*.csv
data/processed/decisionops.duckdb
reports/quality_report.json
reports/experiment_result.json
reports/decision_memo.md
reports/review_report.html
reports/scenario_matrix.json
reports/scenario_matrix.md
7. Repository Structure
DecisionOps-lab/
├── README.md
├── requirements.txt
├── .gitignore
├── data/
│ ├── raw/
│ ├── processed/
│ └── sample/
├── scripts/
│ ├── generate_dataset.py
│ ├── run_pipeline.py
│ ├── run_quality_checks.py
│ ├── run_experiment_analysis.py
│ ├── generate_decision_memo.py
│ ├── generate_review_report.py
│ ├── run_scenario_matrix.py
│ ├── run_full_verification.py
│ └── check_report_freshness.py
├── sql/
│ ├── staging/
│ ├── intermediate/
│ ├── marts/
│ └── metrics/
├── reports/
│ ├── quality_report.json
│ ├── experiment_result.json
│ ├── decision_memo.md
│ ├── review_report.html
│ ├── scenario_matrix.json
│ └── scenario_matrix.md
├── docs/
│ ├── REVIEW_GUIDE.md
│ ├── V2_GUARDRAILS.md
│ ├── SCENARIO_MODE.md
│ ├── DECISION_RULES.md
│ ├── MART_LAYER.md
│ ├── PORTFOLIO_PITCH.md
│ ├── ARCHITECTURE_DIAGRAM.md
│ ├── CASE_STUDY.md
│ └── V1_RELEASE_NOTES.md
└── tests/
Claim Boundary
DecisionOps Lab uses synthetic data. It does not claim real product performance, real business impact, or real user behavior.
The claim is about workflow design: reproducible data modeling, metric definition, quality checks, experiment interpretation, guardrail-aware decision-making, and reviewer-facing communication.
评论