flowchart TB
subgraph TOP["Bug 1: Smoke Harness Decorative Check"]
direction TB
T1["Run check: query store, grep result"]:::ok
T2["grep fails to match
a real problem exists"]:::ok
T3["&& chaining means set -e does not apply here"]:::break
T4["Script prints checkmark anyway"]:::ok
T5["Exit code 0: harness reports success"]:::ok
T1 --> T2 --> T3 --> T4 --> T5
end
subgraph BOT["Bug 2: Mastery Path Disconnection"]
direction TB
B1["BKT computes P(L) update"]:::ok
B2["Aggregation query does not select a mastery column"]:::break
B3["Materialized rollup does not compute one either"]:::ok
B4["Store has the column, nothing writes to it"]:::ok
B5["Graph write sets mastery from a value never produced"]:::ok
B6["Result: mastery score is null, no error raised"]:::ok
B1 --> B2 --> B3 --> B4 --> B5 --> B6
end
classDef ok fill:#2a9d8f,stroke:#1f7a6f,color:#fff,font-size:12px
classDef break fill:#e9a23b,stroke:#b8791f,color:#222,font-size:12px
linkStyle default stroke:#999,stroke-width:2px