chrismdp / counting-house-price-keeper
Fernwick Air: keeping the price list current
workflow.yaml
awml: "0.8"
title: "Fernwick Air: keeping the price list current"
description: |
A fix for a gap in the Counting House: finance owned the price of each kind of mistake, but no
workflow kept those prices current. Every mistake that cost more than its price goes to a named
keeper in finance, who sets the new price and writes down why. Fernwick Air is fictional.
scopes:
- { id: tokenised, label: "tokenised: Fernwick staff", processing: { anthropic: any } }
parts:
- { id: costly, kind: trigger, label: "A mistake costs more than its price", wait: P1D }
- { id: mistakes, kind: context, label: "Costly mistakes: the case, its confusion cell, its price and what it really cost", in: tokenised }
- { id: costs, kind: context, label: "Finance's cost for each confusion-matrix cell", in: tokenised, ref: chrismdp/counting-house-promotion#costs }
- { id: keeper, kind: person, op: do, label: "Finance's price keeper sets the cell's new price and writes down why", in: tokenised }
- { id: changes, kind: context, label: "Price changes: old price, new price, the case behind it, why, and who changed it", in: tokenised }
lines:
- { from: costly, to: keeper, kind: start }
- { from: mistakes, to: keeper, kind: data, label: the case }
- { from: costs, to: keeper, kind: data, label: the current price }
- { from: keeper, to: costs, kind: data, label: the new price }
- { from: keeper, to: changes, kind: data }