Variant prices
Display whole-cent prices for task-type product variants in dollars and cents, always naming Product, Variant, price, and unit.
Every task type a holon runs is sold as one product with one or more variants. On screen, prices always name the Product, the Variant, the amount in dollars and cents, and the unit; a bare price or bare parent product never appears. Reference: task-types.mjs House note: products are variants Ruling 52
The table below shows the live catalogue from task-types.json. These amounts are draft placeholders set over measured raw cost; real prices are always set by a person. Reference: task-types.json
<div class="hx-card hx-stack">
<div class="hx-title">Holon task-type prices (draft placeholders)</div>
<div class="hx-price">Receive a message · Code only · $0.00 / message</div>
<div class="hx-price">Screen a message · Code only · $0.00 / message</div>
<div class="hx-price">Classify a message · Standard · $0.01 / message</div>
<div class="hx-price">Apply the rules · Code only · $0.00 / message</div>
<div class="hx-price">Prepare a reply · Reviewed · $0.05 / reply</div>
<div class="hx-price">Prepare a reply · Live · $0.06 / reply</div>
<div class="hx-price">Prepare a reply · Fixed · $0.00 / reply</div>
<div class="hx-price">Check a reply · Standard · $0.01 / reply</div>
<div class="hx-price">Check a reply · Code only · $0.00 / reply</div>
<div class="hx-price">Store the record · Code only · $0.00 / run</div>
<div class="hx-price">Profile an organisation · Standard · $0.02 / organisation</div>
<div class="hx-price">Explore a new type · Standard · $2.50 / type</div>
<div class="hx-price">Hold for a person to review · Code only · $0.00 / type</div>
</div>Anatomy
- Product name: The human-readable name of the task type's service (such as
Classify a messageorPrepare a reply). On public screens, replace any banned verb in internal keys with approved wording (naming the reply task typePrepare a reply). Reference: task-types.json Ruling 40 Wireframe review C2 - Variant name: The concrete purchasable variant chosen by the flow path (
Code only,Standard,Reviewed,Live, orFixed). Every product has at least one variant, and every billed step is an instance of one variant. Reference: task-types.mjs House note: products are variants - Formatted price (
$X.XX): Whole cents formatted through a single formatter (formatCents) into dollars and cents with thousands separators ($0.00,$0.01,$2.50,$1,234.56). Reference: money.js - Unit (
/ unit): The unit billed per run of that variant (message,reply,run,organisation, ortype). Reference: task-types.json Wireframe review B12
Best practices
- Always show Product, Variant, price, and unit together. Never print an unlabelled dollar figure (
$0.05) or a bare parent product without its variant. Ruling 52 Wireframe review B12 House note: products are variants - Keep prices in whole cents in data, never floating-point dollars. Store every variant price as a non-negative integer (
price_cents) intask-types.jsonand validate it at server startup so a malformed catalogue stops the server before launch. Reference: task-types.mjs Reference: money.js - Choose the variant in deterministic code, never with a model. The flow path decides whether a reply ran as
Reviewed,Live, orFixed, and whether a review ran asStandardorCode only. Reference: task-types.mjs Reference: flow.mjs - Never discount prices. Structure and app installs are free while task execution is metered; if you want to reward adoption, offer bonuses rather than percentage discounts or strikethrough sales. Ruling 52 Vocabulary term 69
- Mark draft prices clearly and let a person set real prices. Placeholder prices in
task-types.jsonsit above measured raw cost for demonstration; commercial pricing is always set by a person, and Australian legal channel fees must stay flat rather than percentage-based. Reference: task-types.json Ruling 51 - Keep raw cost off public surfaces. Raw spend arrives internally in millionths of a dollar (formatted as
<$0.01when non-zero and under a cent, never$0.00); only internal loopback views may display it. Reference: money.js Wireframe review C6
Reference catalogue (task-types.json)
| Task type (on screen) | Kind | Variant | Stored cents | Displayed price line |
|---|---|---|---|---|
| Receive a message | Code | Code only | 0 | Receive a message · Code only · $0.00 / message |
| Screen a message | Code | Code only | 0 | Screen a message · Code only · $0.00 / message |
| Classify a message | Model | Standard | 1 | Classify a message · Standard · $0.01 / message |
| Apply the rules | Code | Code only | 0 | Apply the rules · Code only · $0.00 / message |
| Prepare a reply | Model | Reviewed | 5 | Prepare a reply · Reviewed · $0.05 / reply |
| Prepare a reply | Model | Live | 6 | Prepare a reply · Live · $0.06 / reply |
| Prepare a reply | Model | Fixed | 0 | Prepare a reply · Fixed · $0.00 / reply |
| Check a reply | Model | Standard | 1 | Check a reply · Standard · $0.01 / reply |
| Check a reply | Model | Code only | 0 | Check a reply · Code only · $0.00 / reply |
| Store the record | Code | Code only | 0 | Store the record · Code only · $0.00 / run |
| Profile an organisation | Model | Standard | 2 | Profile an organisation · Standard · $0.02 / organisation |
| Explore a new type | Model | Standard | 250 | Explore a new type · Standard · $2.50 / type |
| Hold for a person to review | Code | Code only | 0 | Hold for a person to review · Code only · $0.00 / type |
Display Product, Variant, whole-cent price, and unit on every line. The buyer knows exactly which variant ran and what one unit costs.
<div class="hx-card hx-stack">
<div class="hx-price">Classify a message · Standard · $0.01 / message</div>
<div class="hx-price">Prepare a reply · Reviewed · $0.05 / reply</div>
<div class="hx-price">Check a reply · Standard · $0.01 / reply</div>
</div>Never show a bare price, a bare parent product, or a discounted price. Omitted variants hide what is being bought, and discounts violate Decidr's pricing rule.
<div class="hx-card hx-stack">
<div class="hx-price">$0.05</div>
<div class="hx-price">Prepare a reply · $0.05</div>
<div class="hx-price">Explore a new type · 20% off today · $2.00</div>
</div>Behaviour
- Zero billing on failed or running steps: While a step is running, its price slot stays blank. If a step fails, its billed
price_centsis recorded as0($0.00) even when internal raw cost was incurred. Reference: flow.mjs Reference: console.js - Run totals: When a run finishes,
endRunsumsprice_centsacross all completed steps and adds that whole-cent total toBilled today. Reference: flow.mjs - Startup validation:
loadTaskTypes()checks that every(flow, step)pair maps to one task type, every variant exists with a non-negative integerprice_cents, and no duplicate IDs exist; any error halts startup immediately. Reference: task-types.mjs