AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH RESEARCH — SEMANTIC LIBRARY
AI Core / Entity Graph / Engineering Entities / Engineering Cost Entities
COST RATE ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8
Reference: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/engineering-cost-entities/cost-rate-ontology.html
Status: Proposed formal representation; live page not verified.
1. ENTITY DEFINITION
A CostRate is a contextual monetary amount per measurable unit of resource, activity, output or time. It is distinct from a total cost and from a realised transaction.
R = (id, revision, resource, amount, currency, denominator, scope, validity, basis, status, provenance).
Basis identifies standard, quoted, contractual, actual or forecast rates and whether overhead, tax and premiums are included.
2. ENTITY GRAPH
CostRate → isA → EngineeringCostEntity
CostRate → appliesTo → Resource / Activity / Equipment / Material / Labour
CostRate → denominatedIn → Currency
CostRate → measuredPer → UnitOfMeasure
CostRate → governedBy → Contract / RateSchedule
CostRate → supportedBy → CostRecord
CostRate → contributesTo → CostEstimate / UnitCost / CostBaseline
CostRate → supersedes → CostRateRevision
CostRate → effectiveDuring → TimeInterval
Relations are proposed semantic predicates, not verified published schema identifiers.
3. FLOW ALGEBRA
Define a typed flow F: X → Y and sequential composition G ∘ F, evaluated right to left.
ResourceDemand → QuantityNormalisation → RateResolution → CostCalculation → Allocation → CostRecord.
For compatible flows, (H ∘ G) ∘ F = H ∘ (G ∘ F).
Identity flow I preserves the input and its provenance.
For quantity q and rate r in currency per unit, C = q × r.
For heterogeneous resources, C_total = Σ_i q_i r_i after unit and currency normalisation.
Missing rates produce unresolved costs, not zero costs.
4. RATE CLASSIFICATION
LabourRate: currency/hour; EquipmentRate: currency/machine-hour; MaterialRate: currency/kg; EnergyRate: currency/kWh; OutputRate: currency/item; OverheadRate: currency/driver-unit or dimensionless fraction of a specified monetary base.
A percentage rate cannot be added to an hourly rate. Fixed charges are separate cost terms.
For a tiered tariff with incremental blocks b, C(q) = Σ_b r_b q_b + F, where Σ_b q_b = q and each q_b respects its block capacity.
5. TEMPORAL EFFECTIVITY AND RESOLUTION
Applicable(r,x,t) = ScopeMatch(r,x) ∧ Approved(r) ∧ start(r) ≤ t < end(r).
An open end date represents an unbounded interval.
Resolve(x,t) selects an applicable rate using documented contractual precedence and specificity. Equally ranked conflicting rates require review.
For continuous consumption, C = ∫ r(t) u(t) dt, where u is quantity per time.
For discrete records, C = Σ_j q_j r(t_j). Split records crossing rate changes when required.
Retain the applied revision for historical reproducibility.
6. UNIT AND CURRENCY NORMALISATION
If one source unit equals k target units, r_target = r_source / k and q_target = k q_source.
Thus q_target r_target = q_source r_source.
Currency conversion: r_B = FX(A→B,t,basis) × r_A.
Record exchange rate, source, date and conversion policy. Do not mix nominal and real price bases without adjustment.
7. RATE COMPOSITION AND ALLOCATION
Loaded labour rate = base wage rate + employer burden rate + allocated overhead rate, provided components are non-overlapping and share a denominator.
If burden is a fraction β of base wage w, burden rate = βw.
Equipment recovery rate = recoverable period cost / expected chargeable machine-hours, for positive denominator.
Allocate cost pool P using weights a_i ≥ 0 with Σ_i a_i = 1: C_i = a_i P.
Σ_i C_i = P. Avoid allocating overhead already embedded in a loaded rate.
8. RATE VARIANCE ALGEBRA
Let q_a,r_a be actual quantity and rate; q_b,r_b be baseline quantity and rate.
ΔC = q_a r_a − q_b r_b.
RateVariance = q_a(r_a − r_b).
UsageVariance = r_b(q_a − q_b).
ΔC = RateVariance + UsageVariance.
Positive variance means higher cost under this convention. This is distinct from earned value cost variance EV − AC.
Compare equivalent scope, units, currency and period.
9. UNCERTAINTY AND FORECASTING
For uncertain Q and R, E[QR] = E[Q]E[R] + Cov(Q,R).
Use scenario-weighted costs C_expected = Σ_s p_s C_s, with p_s ≥ 0 and Σ_s p_s = 1.
Escalation model: r_t = r_0(1+g)^t, where g is an assumed annual escalation rate and t is years.
For present value, discount future nominal cash flows using a consistent nominal discount rate. Record assumptions and scenario dependencies.
10. RECURSIVE IMPACT PROPAGATION
Let G be a finite directed dependency graph connecting rate revisions to estimates, work packages, budgets and forecasts.
S_0 = changed rate revisions.
S_(n+1) = S_n ∪ {v | ∃u ∈ S_n : (u,v) ∈ G}.
The monotone set expansion reaches a fixed point in at most |V| strict expansions.
Recalculate affected derived costs in dependency order; preserve approved baselines unless an authorised revision is issued.
Cyclic numerical dependencies require a separately validated solver; reachability convergence does not imply numerical convergence.
11. LIFECYCLE AND CONTROL
Draft → Reviewed → Approved → Effective → Superseded / Expired / Withdrawn.
Approval requires authorised actor, scope, evidence and effective interval.
Revision creates a new immutable version; historical transactions retain their original applied rate.
A withdrawn rate cannot authorise new transactions after withdrawal effectivity.
12. VALIDATION AND COHERENCE INVARIANTS
V1: Rate identity and revision are unique within their namespace.
V2: Currency and denominator are explicit and compatible with quantity.
V3: Effective intervals are valid; conflicting active rates are resolved or flagged.
V4: Every applied rate has traceable provenance and applicable scope.
V5: Allocation conserves the original cost pool.
V6: Aggregation excludes duplicate charges and reconciles rounding differences.
V7: Undefined denominators and missing evidence are explicitly flagged.
V8: Negative rates require an explicit credit or adjustment classification.
V9: Forecast, standard and actual rates remain distinguishable.
13. AI SEARCH, RETRIEVAL AND REASONING
Canonical entity: CostRate.
Aliases: resource rate, charge-out rate, hourly rate, cost per resource unit, standard cost rate.
Related concepts: labour cost, equipment cost, material cost, energy cost, unit cost, cost estimate, cost variance, cost baseline.
Query → EntityResolution → ScopeFilter → EffectivityFilter → EvidenceRetrieval → UnitNormalisation → Calculation → Explanation.
Example queries: Which labour rate applied to work package W on date T? Which estimates depend on rate revision R? Why did actual material cost exceed baseline?
Return entity identifiers, applied revision, quantity, units, currency, date, evidence and calculation. If ambiguity persists, return alternatives and unresolved fields rather than inventing a rate.
14. WORKED EXAMPLE
Illustrative values only, GBP, excluding VAT.
Baseline labour: 100 h × £40/h = £4,000.
Actual labour: 110 h × £44/h = £4,840.
Rate variance = 110 × (44 − 40) = £440.
Usage variance = 40 × (110 − 100) = £400.
Total variance = £840 = £440 + £400.
Equipment: 20 machine-hours × £30/machine-hour = £600.
Total actual resource cost = £5,440, assuming no overlapping charges.
A new approved labour rate triggers review of dependent future estimates, not retrospective replacement of the actual rate.
END OF FLOW ALGEBRA