Skip to content

DOM-PFM-LLM-001AI Request

Markdown

DOM-PFM-LLM-001

AI Request

Markdown
  • DocumentDraft
  • ImplementationObserved

Planning

Specified by
CON-PFM-LLM-001

Design

Owned by
SVC-PFM-LLM-llm

KindDomain objectProduct areaPlatformModuleAI Requests, Usage and the Jazz AI TeammateRevision1

Read atservices-platform ad3f6a65react-console baf6dae3

Relationships

ToCardinalityOwnershipCrosses a serviceOn archive or delete
DOM-PFM-LLM-002many requests to one routing version and one rate versionThe operation catalogue owns its definitions; related records keep references.no
DOM-PFM-LLM-003many requests to one monthly allowance periodThe allowance owns period accounting and configuration; linked records consume those figures.no
DOM-PFM-LLM-004many requests summarised into many daily usage rowsReporting derives its values without owning the underlying records.no

Invariants

InvariantProtectsEnforced atProvenance
INV-DOM-PFM-LLM-001-01
The runtime creates the request before reserving credits or contacting a provider.
serviceobserved
INV-DOM-PFM-LLM-001-02
Normal status writes compare the expected state, and a competing change produces a no-op.
service, databaseobserved
INV-DOM-PFM-LLM-001-03
Settlement changes the request and task totals once; period accounting remains separate and cleanup can still release credits after a competing settlement.
service, databaseobserved
INV-DOM-PFM-LLM-001-04
Estimate settlement omits cents, while release records zero credits and cents.
service, databaseobserved
INV-DOM-PFM-LLM-001-05
Admission refusal records its reason and snapshot without dispatching or taking a hold.
serviceobserved
INV-DOM-PFM-LLM-001-06
The runtime derives routing and feature attribution from published configuration.
serviceobserved
INV-DOM-PFM-LLM-001-07
Only the exact task-scoped context attaches a request to an execution.
serviceobserved
INV-DOM-PFM-LLM-001-08
Attempt rows contain operational metadata; counts beyond sixty-four mark truncation without storing more rows.
service, databaseobserved
INV-DOM-PFM-LLM-001-09
A captured body requires a non-null storage key.
databaseobserved
services-platform:db/migrations/0048_llm.sql:llm_invocations_request_payload_key_check
INV-DOM-PFM-LLM-001-10
Request settlement increments task totals in the same transaction.
service, databaseobserved
INV-DOM-PFM-LLM-001-11
Documented organization row policy restricts request and attempt access to the selected organization.
databasedocumented
INV-DOM-PFM-LLM-001-12
Stored request failure classifications use a closed vocabulary, and caller errors use Rhythm’s wording.
serviceobserved

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.