Skip to content

CAP-PFM-LLM-008Notify administrators at allowance thresholds

Markdown

CAP-PFM-LLM-008

Notify administrators at allowance thresholds

Markdown
  • DocumentDraft
  • Product intentProposed
  • ImplementationObserved

KindCapabilityProduct areaPlatformModuleAI Requests, Usage and the Jazz AI TeammateRevision1

Read atservices-platform ad3f6a65

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Outcomes
Recorded crossings drive administrator warning and pause notices.Recipients exclude other workspace staff.Failed notice delivery has bounded retry attempts.
Surfaces
job
Preconditions
Charged usage has crossed a notice threshold.
Postconditions
Crossing history records delivery attempts, completion and recipients.
Constraints
Administrator recipients are the current arrangement; responsibility-based recipients remain proposed.
Intent sources
services-platform:docs/proposals/llm-observability/11-decisions.md#D-4services-platform:docs/milestones/PLAT-M1-ai-usage-metered-and-visible.md#D-4 (proposal)

Controls

29 controls apply, from the corpus control catalogue.

TC-AVL-004 TC-AZ-001 TC-AZ-002 TC-AZ-003 TC-AZ-004 TC-DAT-001 TC-DAT-002 TC-DAT-003 TC-LOG-001 TC-LOG-002 TC-LOG-003 TC-LOG-004 TC-LOG-005 TC-MON-001 TC-MON-002 TC-PI-001 TC-PI-002 TC-PI-003 TC-PI-004 TC-PI-005 TC-PRV-001 TC-PRV-002 TC-TEN-001 TC-TEN-002 TC-TEN-003 TC-TEN-004 TC-VEN-001 TC-VEN-002 TC-VEN-003

Business Rules

12 rules, 9 to be proved before approval. A rule's product intent is derived from its origin: 0 confirmed by a product decision, the rest inheriting this capability's proposed.

IdRuleKindEnforced atProvenance
01must prove
Proposed
Charged usage reaching 80% or 100% records one crossing for that threshold and month despite concurrent settlements; held credits do not create crossings.
lifecycleservice, databaseobserved
02must prove
Proposed
Threshold evaluation uses whole-number arithmetic over charged credits and allowance including currently active additional capacity.
calculationserviceobserved
03must prove
Proposed
Each active holder of the organization’s built-in Administrator role receives one notice, excluding suspended holders, other staff and administrators of other organizations.
policyservicetest
services-platform:modules/llm/tests/integration/services/notices/threshold-notice.integration.spec.js#sends one message to each administrator, and to neither the suspended one nor the administrator of another organization
04must prove
Proposed
The warning provides used, allowed and remaining credits, the local reset date, the 100% consequence and support contact; the pause notice names the reset date and shares the customer pause wording.
calculationserviceobserved
05must prove
Proposed
An unsent crossing can be claimed only below three attempts and outside a ten-minute live claim, giving racing senders one delivery owner.
invariantservice, databaseobserved
06must prove
Proposed
Settlement sends only after its own transaction commits; an enclosing open transaction leaves the notice pending for reconciliation.
policyservicetest
07must prove
Proposed
Zero successful deliveries leave the crossing unstamped for hourly retry up to three attempts; partial success stamps the successful-recipient count, and three failures leave an unresolved crossing.
lifecycleservice, databaseobserved
08must prove
Proposed
A crossing without administrator recipients is stamped with zero recipients and logged as a warning without further retries.
policyserviceobserved
09
Proposed
Nonproduction email delivery follows the test-mailbox and allow-list policy, and environment-withheld messages count as handled.
policyservicedocumented
10
Proposed
Corrections and allowance reductions do not trigger threshold notices even when they move usage beyond a threshold.
policyservicedocumented
11
Proposed
Notice failures contribute a metric whose alarm triggers above three failures in fifteen minutes.
policyservicedocumented
12must prove
Proposed
A notice is delivered before its completion stamp is saved. If processing stops between those actions, a later attempt can deliver the same crossing again.
lifecycleserviceobserved

Scenarios

IdGivenWhenThenProvenance
01Two administrators share a workspace with other staff.Successive requests cross warning and pause thresholds.The tested sequence sends administrator notices without notifying other staff or repeating notices for refusals.test
services-platform:modules/llm/tests/e2e/allowance-warning.e2e.spec.js#tells nobody anything more for a refused call
02A crossing belongs to a workspace without administrators.Notice processing resolves its recipients.The crossing is completed with zero recipients and receives no retry.test

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.