flowchart TB
Stub["Stub appears in Provisional Reconcile Queue
provisional: true"]:::start
Match{"Reconciliation Worker
suggests a candidate match?"}:::decide
A1["Confident candidate shown"]:::auto
A2["Administrator clicks 'Accept Auto-Match'"]:::auto
B1["No confident candidate"]:::manual
B2["Administrator opens Manual Mapping"]:::manual
B3["Selects the correct published
Textbook / TextbookVersion / MicroSim / Concept"]:::manual
Promote["Stub promoted to provisional: false
COVERS / EMBEDS / DEPENDS_ON back-filled"]:::conv
Done["Entry removed from queue;
historical statements become richly queryable retroactively"]:::conv
Stub --> Match
Match -->|confident| A1 --> A2 --> Promote
Match -->|not confident| B1 --> B2 --> B3 --> Promote
Promote --> Done
classDef start fill:#37474f,stroke:#1c2529,color:#fff,font-size:13px
classDef decide fill:#f0d67a,stroke:#b8961f,color:#222,font-size:12px
classDef auto fill:#2a9d8f,stroke:#1f7a6f,color:#fff,font-size:12px
classDef manual fill:#e9a23b,stroke:#b8791f,color:#222,font-size:12px
classDef conv fill:#8b9bb0,stroke:#5f6e82,color:#fff,font-size:12px
linkStyle default stroke:#999,stroke-width:2px