Skip to content

CAP-PFM-LLM-004Retain redacted AI evidence and remove it safely

Markdown

CAP-PFM-LLM-004

Retain redacted AI evidence and remove it safely

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
Capture records distinguish saved, skipped and failed content.Redaction removes recognized credentials while retaining useful diagnostic text.Organization deletion purges its AI records and saved evidence.
Surfaces
job
Postconditions
Request and response capture each have a recorded status.
Constraints
The provider’s own content-retention policy remains unestablished.
Intent sources
services-platform:docs/proposals/llm-observability/11-decisions.md#D-1services-platform:docs/milestones/PLAT-M1-ai-usage-metered-and-visible.md#D-1 (proposal)

Controls

47 controls apply, from the corpus control catalogue.

TC-AI-006 TC-AI-007 TC-AZ-001 TC-AZ-002 TC-AZ-003 TC-AZ-004 TC-AZ-005 TC-CHG-001 TC-CHG-002 TC-CHG-003 TC-CHG-004 TC-CHG-005 TC-CHG-006 TC-CRY-001 TC-CRY-002 TC-CRY-003 TC-CRY-004 TC-DAT-001 TC-DAT-002 TC-DAT-003 TC-DAT-004 TC-IAM-001 TC-IAM-002 TC-IAM-003 TC-IAM-004 TC-IAM-005 TC-LOG-001 TC-LOG-002 TC-LOG-003 TC-LOG-004 TC-LOG-005 TC-MON-001 TC-PI-001 TC-PI-003 TC-PI-005 TC-PRV-001 TC-PRV-002 TC-SEC-001 TC-SEC-002 TC-SEC-003 TC-SEC-004 TC-TEN-001 TC-TEN-002 TC-TEN-003 TC-VEN-001 TC-VEN-002 TC-VEN-003

Business Rules

9 rules, 6 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
The runtime attempts redacted request capture before dispatch and response capture after a loop result under a ninety-day retention policy; allowance refusals have no bodies and capture may be skipped or fail.
policyserviceobserved
02must prove
Proposed
Redaction replaces secret-named field values and recognizable credentials wherever they appear while retaining ordinary prompt text.
policyserviceobserved
03must prove
Proposed
Evidence bodies are stored separately from request and attempt records, whose contents consist of references, counts and operational details.
invariantserviceobserved
04
Proposed
Capture status distinguishes pending, captured, skipped, failed and purged, and database constraints require a storage reference for a captured body.
invariantdatabaseobserved
05must prove
Proposed
Organization deletion removes its AI records in dependency order and all versions of its evidence without changing neighboring organizations’ data.
lifecycleserviceobserved
06must prove
Proposed
Deletion removes evidence after the last dependent AI record, preserving references until those records are gone.
invariantservicetest
services-platform:modules/llm/tests/integration/services/maintenance/tenant-participant.integration.spec.js#removes the evidence only after the last row, so a surviving row never names a deleted body
07
Proposed
AI provision creates no allowance or request records for a new organization; the first request creates them when needed.
lifecycleservicetest
services-platform:modules/llm/tests/integration/services/maintenance/tenant-participant.integration.spec.js#provisions nothing, because a tenant’s allowance is created by its first call
08
Proposed
Runtime functions may write evidence and use model credentials, the HQ content-reading function may read evidence without model credentials, and reconciliation holds neither authority.
invariantservicedocumented
services-platform:docs/llm.md#Reading a body, and what deletes it
09must prove
Proposed
Capture returns skipped when no evidence store is configured and failed when redaction, serialization or writing fails, allowing request processing to continue. A memory evidence store cannot be constructed in deployed configuration.
validationserviceobserved

Scenarios

IdGivenWhenThenProvenance
01A prompt contains a recognized credential.The redactor processes captured content.The credential is replaced while surrounding prompt text remains.test
02An organization has stored AI history.Its deletion participant runs.Its records and evidence are removed without purging a similarly named organization.test
services-platform:modules/llm/tests/integration/services/maintenance/tenant-participant.integration.spec.js#leaves the evidence of another tenant, and of one whose id begins like the purged one, exactly as it was

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.