ATS-PFM-LLM-014 Provide temporary AI capacity and revoke it: Capability Test Specification
Markdown Design / Platform / AI Requests, Usage and the Jazz AI Teammate / Rhythm HQ AI Controls / Capability Test Specification Show evidence (sources, provenance, origins, pinned commits)Coverage Rule gap: FND-PFM-LLM-073 Transition gap: FND-PFM-LLM-073 Validation covered Permission covered Edge gap: FND-PFM-LLM-073 Failure gap: FND-PFM-LLM-073 Boundary covered Concurrency covered Invariant gap: FND-PFM-LLM-073 Interaction covered Test Scenarios 15 scenarios proving CAP-PFM-LLM-014 ; 14 bound to an existing test.
01 Temporary grants require management authority permission api negative test
Proves BR-CAP-PFM-LLM-014-01 Preconditions Read-only staff and customer administrators are authenticated. Steps Attempt grant, preview and revocation through HQ. Expected All attempts are denied without writes. Data Fixtures representing read-only staff and customer administrators are authenticated. Bound to Source services-platform:modules/llm/tests/e2e/llm-overrides.e2e.spec.js #is refused the grant 02 Invalid grant shape is rejected validation api negative test
Proves BR-CAP-PFM-LLM-014-02 Preconditions An organization has a normal allowance. Steps Submit zero or excessive credits, unknown kind, undeclared field and unknown operation examples. Expected Every invalid input is refused with its offending field identified. Data Fixtures representing an organization has a normal allowance. Bound to Source services-platform:modules/llm/tests/e2e/llm-overrides.e2e.spec.js #is refused above the credit limit, naming the field 07 Revocation preserves original authorization transition api negative test
Proves BR-CAP-PFM-LLM-014-07 INV-DOM-PFM-LLM-003-08 Preconditions An active grant, ended grant and foreign grant exist. Steps Revoke the active grant and repeat, then attempt ended and foreign revocations. Expected The active grant records revoker and reason without editing original fields; repeated and ended actions fail and foreign grants are not found. Data Fixtures representing an active grant, ended grant and foreign grant exist. Bound to Source services-platform:modules/llm/tests/integration/services/overrides/allowance-overrides.integration.spec.js #sets who, when and why together, the reason trimmed 10 Restored capacity can later be revoked interaction api proposed
Proves AS-JNY-PFM-LLM-003-01 AS-JNY-PFM-LLM-003-02 AS-JNY-PFM-LLM-003-03 Preconditions A stopped organization has an administrator. Steps Follow preview, grant, admission, audit and revocation through the restoration journey. Expected The earlier estimate admits with the grant and returns to base-only judgment after revocation, with reasons retained for both actions. Data Fixtures representing a stopped organization has an administrator. Source FND-PFM-LLM-027 12 Grant conversion preserves local month capacity transition api test
Proves BR-CAP-PFM-LLM-014-03 Preconditions The suite owns isolated fixtures representing the valid control and the contrasting case described by its steps. Steps Apply the existing grant conversion against monthly grants in different local calendars. Expected Each window preserves the earlier monthly allowance at its local boundaries. Data Suite-owned fixtures, with a fixed clock where dates or grant windows matter. Bound to Source services-platform:modules/llm/tests/integration/db/llm-overrides-migration.integration.spec.js #leaves this month’s allowance identical: the overrides in force sum to the period’s cached total, from its first instant to its last 15 Grant kinds have distinct required values validation unit negative test
Proves BR-CAP-PFM-LLM-014-02 Preconditions The suite owns isolated fixtures representing the valid control and the contrasting case described by its steps. Steps Validate extra-credit and operation-exemption shapes, including mismatched fields. Expected Only the shape belonging to each declared kind is accepted. Data Suite-owned fixtures, with a fixed clock where dates or grant windows matter. Bound to Source services-platform:modules/llm/tests/unit/services/allowance-overrides.spec.ts #refuses an additional_credits override with no credits ← Previous Capability Test Specification ATS-PFM-LLM-013 · undefined Next Capability Test Specification → ATS-PFM-LLM-015 · Correct an organization’s AI charges: Capability Test Specification