railiance-platform/workplans/RAILIANCE-WP-0017-consumption-mode-enforcement.md
codex ea2e9ec97d
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
fix(workplans): adopt ADR-007 derived identifiers for unregistered records
These workplans exist only in the retired local hub. Their random pre-ADR-007
identifiers are refused by C-06 as stale references, so they cannot be
registered. Deriving from the canonical record id takes no identity from
anything: central does not hold them and the old ids die with the cache.

Records central already holds were deliberately left untouched.

Refs CUST-WP-0068-T06

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 2583210@bnt-lap001
Assistant-Session: f2bff2d5-e9b2-4338-92ca-10282a927006
2026-08-25 20:20:45 +02:00

2.1 KiB

id type title domain repo status owner topic_slug created updated related origin origin_ref state_hub_workstream_id
RAILIANCE-WP-0017 workplan Enforce resource-control consumption mode financials railiance-platform finished codex railiance 2026-08-14 2026-08-15
RESOURCE-WP-0005
residual RESOURCE-WP-0005 16e8f234-9305-5ff3-af82-4639215a0c54

RAILIANCE-WP-0017 — enforce consumption mode

Goal

Consume the open / restricted signal published by resource-control and enforce it on new orders and elastic usage. resource-control does not throttle the cluster.

Origin: RESOURCE-WP-0005-T07. Terms: resource-control/docs/TermsOfResourceProcurement.md § 11. Runbook: resource-control/docs/resource-procurement-facility.md.

Boundaries

  • Restricted monthly new-consumption is €50 transfer price minus that month's interest. At the default €1 000 overdue balance that is €45.83 transfer price / €38.19 delivered cost.
  • Already-committed provider contracts are flagged to human financial authority, not cancelled (OQ-2).
  • Safety paths (backup, identity, ingress needed to avoid data loss) may continue; overage is an exception line, not a hidden charge.

T01 — Subscribe to the consumption-mode signal

id: RAILIANCE-WP-0017-T01
status: done
priority: high
state_hub_task_id: "ac487f39-5c2f-5d9a-b95f-e59f0262bd26"

Define how platform procurement and admission read the latest per-entity consumption mode and remaining transfer-price allowance for the current period.

Done when a restricted entity cannot place a new order that would exceed the published allowance, and an open entity is unchanged.

Delivered 2026-08-15: scripts/consumption_mode.py, docs/consumption-mode-enforcement.md, make consumption-preflight. Restricted + estimate above allowance exits 2. Open and missing-signal admit. Safety/committed paths admit with an exception line. apps-pg-deploy runs the gate when CONSUMING_ENTITY is set.

Outcome

T01 done. Workplan finished. resource-control still owns the signal; this repo only enforces it.