Decentralised News · 2027 planning edition · Documentation reviewed 25 November 2026
What Matters
An agent buying “four” must know whether that means four items, four packs or four kilograms. Product content, sale quantity and pricing basis are separate facts. DN’s Pack and Quantity Checker converts a required mass into whole packs, shows the resulting items, surplus and cost, and exports the assumptions. It does not place orders or certify a merchant’s protocol implementation.
Consider a café asking its purchasing assistant to buy six kilograms of an ingredient. The supplier lists six 250-gram bags in a pack for R24.99. The assistant sees “6”, “250 g” and “R24.99”. All three facts can be correct while the proposed order is wrong.
One pack contains 1.5 kilograms. The café needs four packs, which contain 24 individual bags and cost R99.96 before delivery or tax adjustments. Four bags would provide only one kilogram. Six packs would provide nine kilograms. This is a hypothetical purchasing example, not a claim about an actual merchant or a measured AI failure rate.
The Signal
A valid number is not a complete commercial instruction. Quantity errors can survive model reasoning, structured output and successful payment because every system accepts the number while assigning it a different meaning.
DN Alpha Thesis
Agentic commerce needs a shared record of what is being bought before it needs faster execution. The competitive advantage belongs to systems that preserve units, packaging, authoritative revisions and consent through the entire order. Clear semantics are part of financial control.
The three layers hidden inside a product listing
Product content describes what a package contains. A sealed bag may contain 250 grams; a pack may contain six such bags. Sale quantity describes the unit the merchant allows a buyer to order. A merchant selling sealed packs can require whole packs. Pricing basis explains the denominator used for a price or comparison.
A price per kilogram can help compare products while the transaction still buys whole packs. Conversely, loose produce can be sold by mass and measured at fulfilment. An agent must not infer the sale unit solely from the most prominent price on a page.
GS1 US’s product field definitions distinguish net content from the product identifier. GS1 Australia’s net-content guidance treats a multipack’s total content and count as information that can both matter. A package’s contents do not automatically specify how many packages a customer ordered.
| Fact | Example | Meaning |
|---|---|---|
| Content per bag | 250 g | Mass inside one individual bag |
| Items per pack | 6 bags | Packaging relationship |
| Mass per pack | 1.5 kg | 6 × 250 g, converted to kilograms |
| Order quantity | 4 packs | Four merchant sale units |
| Delivered content | 24 bags / 6 kg | What the four packs contain |
| Price | R24.99 per pack | The transaction’s price denominator |
Why the product name cannot carry the whole contract
A title such as “six-pack, 250 g” is useful to a person but incomplete as a machine instruction. Does 250 g refer to every item or the entire pack? Has the package size changed while the product title stayed the same? Is the quoted price for one bag, one pack or a case containing several packs?
Record these as separate fields. Keep the merchant’s identifier and the exact package configuration alongside the human-readable name. If an agent extracts a field from prose, mark it as extracted until the merchant or an authoritative catalogue confirms it. A fluent explanation should not upgrade uncertain evidence into a purchase fact.
The same problem appears outside groceries. Fabric may be priced by length, flooring by area, fasteners by mass, software by seats and professional services by hours. A conversion between two mass units is arithmetic. A conversion from items to mass needs evidence about the items. That evidence can be fixed, estimated or unknown.
The practical test is simple: could another person reconstruct the intended delivery using only the order record? If the record contains a quantity of four and no sale unit, it has not preserved enough meaning. Adding a currency code does not repair the missing unit.
What the current UCP documentation contributes
The Universal Commerce Protocol’s shared quantity contract, reviewed on 25 November 2026, represents quantity using integer steps and a unit descriptor. Scale determines the decimal interpretation. The documentation separates machine identity from display labels and describes ordering increments. This makes the meaning of a number explicit instead of relying on the word shown beside it.
The checkout contract gives the merchant’s response authority over the sale basis. Request omission does not assert that an item is sold individually. Non-default response units must be expressed. An asserted mismatch requires a visible conversion or a recoverable rejection; the parties must not silently reinterpret the request. Presented merchant totals remain authoritative, with discrepancies requiring resolution rather than an agent substituting its own total.
Those are specification requirements, not proof that every merchant or agent implements them. The linked documentation is a living source; its examples include multiple dated protocol versions. An implementation review should record the negotiated capability and schema version, rather than labelling everything on a floating documentation page as one universal deployed version.
DN’s pack calculator is intentionally narrower. It does not send UCP requests, emulate a checkout or assert conformance. It shows the arithmetic and consent questions a buyer must resolve before committing to a sealed-pack order.
Use the DN Pack and Quantity Checker
Enter the mass needed, items per pack, grams per item and price per pack. The tool rounds the number of packs upward to satisfy the entered mass using whole packs. It shows the extra content explicitly. A calculated surplus is a proposal for review, not permission to buy more than the requester intended.
DN Pack and Quantity Checker
Change the assumptions to calculate an illustrative scenario. Calculations run in your browser. Choosing Export downloads your inputs and results as a JSON file. This page also uses the site’s standard analytics. Scenario exports are separate from the article’s source evidence.
Inputs describe one fixed-content product. Mass is represented in whole grams, target kilograms allow up to three decimal places, and prices allow two decimal places. Currency selection changes the label only. There is no exchange-rate conversion. Delivery charges, taxes, discounts and variable-weight fulfilment are outside this calculation.
The arithmetic that should survive every handoff
For the café example, multiply six items by 250 grams to obtain 1,500 grams per pack. Convert the target six kilograms to 6,000 grams. Divide 6,000 by 1,500 to obtain four packs. Multiply four packs by six items to obtain 24 items, and four by 2,499 cents to obtain 9,996 cents.
Using integer grams and integer minor currency units makes the intended precision visible. It also avoids treating a binary floating-point artefact as a real fraction of a cent. The calculator validates the declared precision instead of silently accepting arbitrary decimals and rounding them into a different commercial promise.
Now change the requirement to 6.1 kilograms. Four packs are insufficient. Five packs contain 7.5 kilograms, costing R124.95 and creating a 1.4-kilogram surplus. The cost per delivered kilogram remains R16.66 because this example has a fixed pack price and no other charges.
Whether five packs are acceptable is a different question. The café may have a budget limit, storage constraint or spoilage risk. It may prefer another package size or permission to purchase loose stock. The model reports the consequence so the buyer can make that decision.
| Required mass | Whole packs | Delivered mass | Surplus | Pack charge |
|---|---|---|---|---|
| 6 kg | 4 | 6 kg | 0 kg | R99.96 |
| 6.1 kg | 5 | 7.5 kg | 1.4 kg | R124.95 |
| 0.001 kg | 1 | 1.5 kg | 1.499 kg | R24.99 |
Package changes deserve an explicit comparison
Suppose a replacement offer contains five 250-gram bags per pack at the same price. One pack now contains 1.25 kilograms. Meeting a six-kilogram target requires five packs, delivering 6.25 kilograms for R124.95. The name of the ingredient can remain unchanged while the economic comparison changes substantially.
The buyer should see the revised configuration, final quantity, delivered content and amount payable together. A notification saying “equivalent item found” is not enough. The system needs to explain which dimensions are equivalent and which have changed.
GS1 US’s product-data quality guidance explains the relationship between changes to declared net content and GTIN assignment. The broader operational lesson is to retain identifiers with versioned attributes. Even a valid identifier must be read in the context of the actual offer and the packaging level being ordered.
A changed pack may improve the decision. It might reduce waste or fit a storage limit. The purpose of the comparison is not to reject every difference; it is to prevent an agent from concealing a material difference behind a confident substitution.
Variable weight creates a second decision point
The fixed-pack model does not handle a fresh item whose final weight is measured during fulfilment. GS1’s variable-measure guidance describes goods whose ordered or invoiced quantities can vary. In such cases, the record needs both the requested basis and the actual measured amount.
A buyer may approve an estimated quantity with a stated tolerance and maximum charge. Fulfilment can then produce a final mass and price that must remain inside the authorised conditions. If the merchant changes the basis or exceeds the allowed tolerance, the workflow needs a new decision rather than a hidden adjustment.
Record who supplied the measured value, its unit, its timestamp and the applicable offer. A photograph of a scale is different evidence from a signed fulfilment record; neither should be presented as an independent laboratory measurement. The strength required depends on the commercial use and the consequences of error.
Returns must also preserve the original basis. Returning two bags from a four-pack order is not automatically the same as returning two packs. Refund allocation can involve discounts, delivery charges and merchant rules. Keep those questions distinct from the initial quantity conversion.
A purchase record that a person and an agent can both use
DN’s reusable record separates the requester’s need from the merchant’s proposal. The request contains the target amount, unit, acceptable surplus and budget. The offer contains product identity, pack configuration, sale basis, price denominator, currency and time of quotation. The decision links the accepted version of that offer to the authorised quantity.
This structure helps a person review the purchase without reading protocol fields. It also helps an agent verify that a later response still describes the same transaction. A changed title may be harmless; a changed number of items per pack can require a fresh calculation and approval.
| Group | Fields to preserve | Failure prevented |
|---|---|---|
| Need | Target amount, unit, permitted excess, budget | Confusing a recommendation with authority to overbuy |
| Offer | Product identifier, pack count, content per item, sale basis | Reusing the wrong packaging configuration |
| Price | Currency, price denominator, total and additional charges | Comparing incompatible amounts |
| Revision | Previous offer, changed fields, visible explanation | Silent substitutions and unit reinterpretation |
| Acceptance | Accepted offer version, quantity and decision time | Losing which terms the buyer actually accepted |
Test the mistakes, not just the happy path
A useful test suite includes exact multiples, a target just above one pack boundary, very small positive requirements, a changed pack size and a zero-price item. Validation cases should include blank fields, fractional item counts, zero content per item, excessive precision and values too large for safe arithmetic.
Expected outcomes must describe the business meaning. “Returns a number” is a weak assertion. A stronger assertion says a 6.1-kilogram need under the declared packaging requires five packs, contains 30 bags, exceeds the need by 1.4 kilograms and costs R124.95 before excluded charges.
The downloadable DN fixture record contains labelled synthetic inputs and calculated outputs for this model. It is not a benchmark of UCP, ACP, a model provider or a merchant. To assess a real integration, replay agreed cases through the actual authorised test environment and retain the merchant responses and version information.
Three changes a merchant or builder can make now
- Separate the fields. Store product content, package hierarchy, sale quantity and price denominator explicitly. Keep uncertainty visible where extraction is incomplete.
- Review material revisions. Present changes to packaging, delivered amount and charge in one place before commitment. Recalculate against the requester’s actual limits.
- Publish reproducible examples. Give integration partners valid and invalid cases with expected results, then update them when catalogue or protocol assumptions change.
The practical win is a smaller gap between what the buyer meant, what the merchant offered and what the systems executed. A faster purchase is valuable when that chain remains intact.
Methodology and limits
DN’s version 1.0 model computes pack mass as items per pack multiplied by grams per item. Required packs equal the mathematical ceiling of target grams divided by pack grams. Delivered mass, item count, surplus and pack charge follow from that whole-pack quantity. Cost per delivered kilogram is total pack charge divided by delivered kilograms.
Inputs are assumptions supplied by the reader. The model has no live catalogue, tax engine, checkout connection or product-authenticity check. It assumes each item has the declared fixed content and every pack has the same configuration and price. The lowest whole-pack count is not necessarily the lowest-cost mix across several products.
All worked figures are hypothetical. Documentation was reviewed on 25 November 2026. The 2027 edition label is a planning designation, not a claim to have observed future implementations. Recheck negotiated schemas and merchant rules when applying the framework.
Frequently asked questions
Is an item’s net content the same as its sale quantity?
No. Net content describes what a package contains. Sale quantity describes how many merchant sale units are ordered.
Why does a six-kilogram request require four packs in the example?
Each pack contains six 250-gram bags, or 1.5 kilograms. Four packs therefore contain six kilograms and 24 bags.
Does rounding upward authorise the agent to buy extra?
No. The tool exposes the surplus. The buyer’s budget, storage limits and permitted quantity must still allow it.
Does the calculator test UCP compliance?
No. It tests DN’s declared pack arithmetic. A protocol implementation requires separate schema, version and response testing.
Can it price loose produce by its final weight?
No. It assumes fixed-content packs. Variable-weight fulfilment needs actual measurement, price rules and the buyer’s permitted tolerances.
Does selecting another currency convert the price?
No. The selector changes the label. Every entered amount must already use the same supported currency.
Primary sources and evidence record
- UCP overview: shared quantities, units and versioning.
- UCP checkout: authoritative sale basis, visible revisions and totals.
- GS1 US product field definitions: product and net-content fields.
- GS1 Australia net content and UOM: multipack content representation.
- GS1 US product-data quality: declared content changes and identifiers.
- GS1 variable-measure guidance: variable quantity trade items.
Author: Heath Muchena / Decentralised News. Instrument version 1.0.0. No merchant or model-provider performance score is assigned. No paid placement influenced the analysis. Corrections: press@decentralised.news.
Build a useful record with DN
Have a product, platform or dataset that can make this decision clearer? Propose a documented product walkthrough, a clearly labelled sponsored feature or a scoped data collaboration. Bring the evidence, access and limitations that readers need to assess it.
Discuss coverage or a research partnership. Commercial participation does not buy a favourable finding.
Original cover: AI-generated editorial illustration; not a photograph of a real project. Download the dated evidence record (JSON). The 2027 label identifies the planning edition; sources were reviewed on 25 November 2026.