DecidrHolon Design Kit

Components

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

Holon task-type prices (draft placeholders)
Receive a message · Code only · $0.00 / message
Screen a message · Code only · $0.00 / message
Classify a message · Standard · $0.01 / message
Apply the rules · Code only · $0.00 / message
Prepare a reply · Reviewed · $0.05 / reply
Prepare a reply · Live · $0.06 / reply
Prepare a reply · Fixed · $0.00 / reply
Check a reply · Standard · $0.01 / reply
Check a reply · Code only · $0.00 / reply
Store the record · Code only · $0.00 / run
Profile an organisation · Standard · $0.02 / organisation
Explore a new type · Standard · $2.50 / type
Hold for a person to review · Code only · $0.00 / type
HTML
<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

  1. Product name: The human-readable name of the task type's service (such as Classify a message or Prepare a reply). On public screens, replace any banned verb in internal keys with approved wording (naming the reply task type Prepare a reply). Reference: task-types.json Ruling 40 Wireframe review C2
  2. Variant name: The concrete purchasable variant chosen by the flow path (Code only, Standard, Reviewed, Live, or Fixed). 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
  3. 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
  4. Unit (/ unit): The unit billed per run of that variant (message, reply, run, organisation, or type). 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) in task-types.json and 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, or Fixed, and whether a review ran as Standard or Code 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.json sit 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.01 when 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)KindVariantStored centsDisplayed price line
Receive a messageCodeCode only0Receive a message · Code only · $0.00 / message
Screen a messageCodeCode only0Screen a message · Code only · $0.00 / message
Classify a messageModelStandard1Classify a message · Standard · $0.01 / message
Apply the rulesCodeCode only0Apply the rules · Code only · $0.00 / message
Prepare a replyModelReviewed5Prepare a reply · Reviewed · $0.05 / reply
Prepare a replyModelLive6Prepare a reply · Live · $0.06 / reply
Prepare a replyModelFixed0Prepare a reply · Fixed · $0.00 / reply
Check a replyModelStandard1Check a reply · Standard · $0.01 / reply
Check a replyModelCode only0Check a reply · Code only · $0.00 / reply
Store the recordCodeCode only0Store the record · Code only · $0.00 / run
Profile an organisationModelStandard2Profile an organisation · Standard · $0.02 / organisation
Explore a new typeModelStandard250Explore a new type · Standard · $2.50 / type
Hold for a person to reviewCodeCode only0Hold for a person to review · Code only · $0.00 / type
Do

Display Product, Variant, whole-cent price, and unit on every line. The buyer knows exactly which variant ran and what one unit costs.

Classify a message · Standard · $0.01 / message
Prepare a reply · Reviewed · $0.05 / reply
Check a reply · Standard · $0.01 / reply
HTML
<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>
Don’t

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.

$0.05
Prepare a reply · $0.05
Explore a new type · 20% off today · $2.00
HTML
<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_cents is recorded as 0 ($0.00) even when internal raw cost was incurred. Reference: flow.mjs Reference: console.js
  • Run totals: When a run finishes, endRun sums price_cents across all completed steps and adds that whole-cent total to Billed 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 integer price_cents, and no duplicate IDs exist; any error halts startup immediately. Reference: task-types.mjs