Add shared cost allocation reporting

This commit is contained in:
tegwick 2026-08-11 11:05:13 +02:00
parent a28a40dfe9
commit b75ad06b3a
9 changed files with 348 additions and 15 deletions

View file

@ -116,7 +116,7 @@ prices remain auditable, and duplicate prices require an explicit revision.
```task
id: FIN-WP-0002-T03
status: todo
status: done
priority: medium
state_hub_task_id: "899a5c29-843c-481f-a63a-42d4d327af5d"
```
@ -130,11 +130,19 @@ where resource-control supplies it.
Test allocation totals, rounding, missing evidence, shared overhead, revised
allocations, and prevention of duplicate booked cost.
Completed 2026-08-11: added a reporting-only allocation consumer for current
resource-control `AllocationEvidence`. It requires uniquely claimed current
financial facts, validates period/environment/currency and producer totals,
retains the versioned method and provenance, and uses deterministic
largest-remainder minor-unit rounding. Per-instance targets plus the explicit
unattributed residual reconcile exactly to booked cost. Tests cover rounding,
missing facts, mismatches, evidence revisions, and duplicate allocation.
## Export a per-client billing basis
```task
id: FIN-WP-0002-T04
status: wait
status: todo
priority: medium
state_hub_task_id: "b5886131-82f6-49fb-a7e3-ba47d5b627a8"
```

View file

@ -162,7 +162,7 @@ without reproducing fin-hub's allocator or runway logic.
```task
id: FIN-WP-0004-T05
status: todo
status: wait
priority: high
state_hub_task_id: "9a411734-76f6-4c8d-9a48-b5a08cf8fd1f"
```
@ -179,6 +179,16 @@ Done when the same cost is booked exactly once, projected to resource-control,
joined to technical evidence, and returned as planning or variance evidence
without becoming a second financial fact.
Preflight 2026-08-11: resource-control verified fin-hub commit `0034330`, and
both implementations produced identical canonical payloads for all 12 live
backup forecast rows. Replaying them retained exactly 12 planning-store rows.
Evidence is in resource-control at
`docs/evidence/RESOURCE-WP-0003-fin-hub-contract-preflight-2026-08-11.md`.
The task now waits on `RESOURCE-WP-0002` procurement and the first real
provider fact attributable to `platform:audit-storage`. Synthetic records test
the contract but do not satisfy the operational booked-cost round trip.
## T06 — Generalize and operate the contract
```task