Record original-alignment implementation and traceability checkpoint
Capture current source, content data, tests, asset licenses, and original-specification traceability. Original implementation remains incomplete. The accepted matching UI generation passed 154 suites and 12,253 checks, with eight rendered staff-contract screens reviewed. Latest native Windows and full-original acceptance remain outstanding.
This commit is contained in:
@@ -27,6 +27,23 @@ static func quote(base_price: int, policy: Dictionary) -> int:
|
||||
return result
|
||||
|
||||
|
||||
static func apply_multiplier(price: int, multiplier_bp: int) -> int:
|
||||
# Same nearest-G, half-up convention as policy pricing.
|
||||
@warning_ignore("integer_division")
|
||||
return (maxi(price, 0) * maxi(multiplier_bp, 0) + 5000) / 10000
|
||||
|
||||
|
||||
## Caller supplies already-determined deficient attributes. Threshold and surcharge
|
||||
## are deliberately not invented. An unresolved quote must not be charged.
|
||||
static func quote_service(base_price: int, policy: Dictionary, service_attribute: StringName, deficient_attributes: Array[StringName], surcharge_amount: int = -1) -> Dictionary:
|
||||
var base := quote(base_price, policy)
|
||||
var matches := not service_attribute.is_empty() and deficient_attributes.has(service_attribute)
|
||||
var resolved := not matches or surcharge_amount > 0
|
||||
var surcharge := surcharge_amount if matches and resolved else 0
|
||||
return {&"base_price": base, &"matches": matches, &"resolved": resolved,
|
||||
&"surcharge": surcharge, &"total": base + surcharge, &"eligible": true}
|
||||
|
||||
|
||||
static func satisfaction_modifier(
|
||||
policy: Dictionary,
|
||||
quality: int,
|
||||
|
||||
Reference in New Issue
Block a user