Last active
February 27, 2026 21:49
-
-
Save raymyers/2ddfece633537645d4b72923edc08d93 to your computer and use it in GitHub Desktop.
Quality Improvement Modeling in D2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Paste this into D2 Playground: https://play.d2lang.com | |
| direction: right | |
| classes: { | |
| outcome: { | |
| style: { | |
| shadow: true | |
| } | |
| } | |
| output: { | |
| style: { | |
| shadow: true | |
| } | |
| } | |
| success: { | |
| style: { | |
| fill: "#b3d9ff" | |
| } | |
| } | |
| warning: { | |
| style: { | |
| fill: "#ffe0a3" | |
| } | |
| } | |
| failure: { | |
| style: { | |
| fill: "#d5a6e6" | |
| } | |
| } | |
| cause: { | |
| style: { | |
| fill: transparent | |
| } | |
| } | |
| } | |
| output: Outputs { | |
| style: { | |
| fill: transparent | |
| stroke-dash: 3 | |
| } | |
| direction: down | |
| cov: Test Coverage { | |
| class: [output; failure] | |
| } | |
| precise: Type Precision { | |
| class: [output; warning] | |
| } | |
| log: Log Noise (-) { | |
| class: [output; failure] | |
| } | |
| traces: Traces | |
| v1: v1 Adoption { | |
| class: [output] | |
| } | |
| repo: Repo Merge { | |
| class: [output; success] | |
| } | |
| } | |
| outcome: Outcomes { | |
| style: { | |
| fill: transparent | |
| stroke-dash: 3 | |
| } | |
| delivery: Delivery Health { | |
| grid-columns: 1 | |
| style: { | |
| stroke-dash: 3 | |
| fill: transparent | |
| } | |
| cfr: Change Failure Rate (-) { | |
| class: [outcome; failure] | |
| } | |
| lead: Lead Time (-) { | |
| class: [outcome; warning] | |
| } | |
| } | |
| reliability: Reliability { | |
| grid-columns: 1 | |
| style: { | |
| stroke-dash: 3 | |
| fill: transparent | |
| } | |
| alert-inc: Alerted Incident Rate { | |
| class: [outcome; warning] | |
| } | |
| on-call: On-Call Health { | |
| class: [outcome; success] | |
| } | |
| } | |
| } | |
| observability: Observability { | |
| shape: step | |
| class: cause | |
| } | |
| coupling: Coupling Risk (-) { | |
| shape: step | |
| class: cause | |
| } | |
| confidence: Change Confidence { | |
| shape: step | |
| class: cause | |
| } | |
| quality: Quality! { | |
| shape: circle | |
| class: cause | |
| } | |
| output.cov -> confidence | |
| confidence -> outcome.delivery | |
| output.precise -> confidence | |
| coupling -> outcome.delivery | |
| output.repo -> coupling | |
| output.v1 -> coupling | |
| output.log -> observability | |
| output.traces -> observability | |
| observability -> outcome.reliability | |
| outcome.delivery -> quality | |
| outcome.reliability -> quality | |
| outcome.delivery.lead -- outcome.delivery.cfr: { | |
| style: { | |
| stroke-dash: 3 | |
| } | |
| } | |
| outcome.reliability.on-call -- outcome.reliability.alert-inc: { | |
| style: { | |
| stroke-dash: 3 | |
| } | |
| } | |
| key: Key { | |
| success-key: Success { | |
| class: success | |
| } | |
| warning-key: Warning { | |
| class: warning | |
| } | |
| failure-key: Failure { | |
| class: failure | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment