Verifiable requirements
How can “the distribution receives every cent” be proven in the specific case?
Several rounded individual shares may deviate from the cost pool together.
Starting point Approval binds the evidence manifest, allocation keys and receivable to one shared version.
Assumptions for the example case
Fictitious design for a house, a completed annual period and a contractually specified area key. The application documents released billings and correction versions; the legal examination of individual costs remains with property management. All quantities, thresholds and operational targets are illustrative assumptions. The signed amount due equals the allocated cost share minus advance payments already accounted for. A separate immutable payment ledger records only additional positive payments received later. Outstanding balance = current amount due minus the sum of these additional payments. A positive balance is the remaining amount due, zero means settled, and a negative balance is a credit equal to its absolute value. Corrections replace the amount due, retain all payments and post only the difference from the previous amount due. They remain permitted after settlement and for credit balances. Actual positive payments are accepted and deduplicated even when they exceed the remaining amount due or arrive after settlement. Advance payments are not counted again in the additional ledger. Refunds are outside this case; a credit documents a balance and does not receivable a payout.
Two chains of proof
Two evidence trails · receivable and delivery
Proof of calculation
Proof of delivery
The release needs a current manifest and the expected version. The proof of delivery is then created in its own chain.
Business requirements (functional)
Further reading
- Rule 1
- For each tenancy and period, there is exactly one currently released billing version.
- Rule 2
- The sum of distributed cent amounts corresponds to the released cost pool; rounding remainders are distributed according to fixed apartment order.
- Rule 3
- The amount due and the released document version are defined together. Additional payments do not change the document content and are retained in the event of corrections.
- Signed balance and payments
- The signed amount due equals the allocated cost share minus advance payments already accounted for. A separate immutable payment ledger records only additional positive payments received later. Outstanding balance = current amount due minus the sum of these additional payments. A positive balance is the remaining amount due, zero means settled, and a negative balance is a credit equal to its absolute value. Corrections replace the amount due, retain all payments and post only the difference from the previous amount due. They remain permitted after settlement and for credit balances. Actual positive payments are accepted and deduplicated even when they exceed the remaining amount due or arrive after settlement. Advance payments are not counted again in the additional ledger. Refunds are outside this case; a credit documents a balance and does not receivable a payout.
Quality goals (non-functional)
Further reading
- Measurement window
- In the test profile with 20 releases/s, 95 % of local releases should end within 500 ms; document delivery is measured separately.
- Open results
- A delivery request that has been open for 60 s is sent to property management. It shall remain open until proof of delivery.
Allocation preserves every cent.
Integer amounts in cents and a fixed remainder-allocation rule preserve equal totals.
Several rounded individual shares may deviate from the cost pool together.
120,000 cents multiplied by 60 divided by 600 gives exactly 12,000 cents, leaving 2,000 cents after advance payments. Each remaining cent goes to exactly one apartment in the documented order; comparing totals detects any discrepancy.
- Alternative considered
- Independent rounding of each apartment can generate or lose cents.
- Trade-off
- The fixed order affects which apartment receives the remaining cent.
- Reassess
- Many changing area periods require time-proportionate segmentation.
Try it yourself
Distribute 101 cents evenly on three apartments of equal size. First, use integer basic shares and distribute remaining cents in fixed order apartment one, two, three. Check the total amount.
A hint for your attempt
Track the released billing up to the proven result; observe the requirement for the effect.
Compare with a possible solution
- Basic share
- 101 divided by 3 gives 33 cents per apartment with 2 cents remainder; the basic sum is 99 cents.
- Residual distribution
- Apartment one and two each receive a residual cent: 34, 34 and 33 cents. The sum remains exactly 101 cents; the documented order makes the result reproducible.
Apply to your project
Which corresponding decision do you need in your project for a permanently applicable domain rule?