Skip to content

JNY-PFM-TNL-004Staff complete a departed customer’s deletion

Markdown

JNY-PFM-TNL-004

Staff complete a departed customer’s deletion

Markdown
  • DocumentDraft
  • Product intentProposed
  • ImplementationObserved

KindJourneyProduct areaPlatformModuleWorkspace Lifecycle Across ApplicationsRevision2End-to-endRequired

Read atservices-platform ad3f6a65services-crm a8d1364f

The Formal Contract

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

Goal
The request progresses from reversible waiting to verified removal and retained history.

Steps

#SurfaceActionCapabilityExpectedProvenance
1patchHqTenantDisable the departing customer’s workspace.CAP-PFM-TNL-006Ordinary customer access closes.test
2requestTenantDeletionConfirm its exact name and record the deletion reason.CAP-PFM-TNL-013The standard request fixes a waiting date and pending-deletion lifecycle.test
services-platform:modules/tenants/tests/e2e/tenant-deletion-requests.e2e.spec.js#answers a scheduled request against the tenant asked about
3tenant_deletion_schedule: noticesSend the initial internal deletion notice.CAP-PFM-TNL-015The request notice reaches the staff list and requester.test
4holdTenantDeletionRequest, releaseTenantDeletionRequestHold for export questions and release after resolution.CAP-PFM-TNL-014The recorded pause and release preserve review time and reminder obligations.test
5tenant_deletion_schedule: noticesDeliver the scheduled waiting-period reminders.CAP-PFM-TNL-015The reminders occur at their due instants.test
6tenant_deletion_schedule: begin-destructionRecheck current guards at eligibility.CAP-PFM-TNL-016Executing state, deleting lifecycle and the purge job are recorded together.test
7getHqTenantRead the workspace details through HQ during removal.CAP-PFM-TNL-005The workspace details remain available to authorized staff.observed
8tenant_purgeDrive planned participant batches and inventories.CAP-PFM-TNL-017The tested purge completes its declared removal and verification.test
9getTenantDeletionRequestInspect the retained completed deletion decision.CAP-PFM-TNL-018Removal totals, verification and completed ledger work remain recorded.test
services-platform:modules/tenants/tests/integration/services/deletion/tenant-purge.integration.spec.js#records on the request what was removed, and the counts it verified

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
alternate4The customer returns before execution.Cancel the scheduled removal.The workspace becomes active but needs separate staff re-enablement.test
services-platform:modules/tenants/tests/integration/services/deletion/deletion-holds.integration.spec.js#leaves the tenant disabled: calling off a deletion restores nobody access
failure5A required reminder fails delivery.Keep the schedule waiting for its gating notice.Destruction does not start with failed required delivery.test
services-platform:modules/tenants/tests/integration/services/deletion/tenant-deletion-schedule.integration.spec.js#holds the deletion indefinitely when a notice could not be delivered, rather than destroying the tenant unannounced
failure8A participant cannot remove its resource.Record the blocked failure, correct its cause and request retry.The replacement purge finishes the fixture’s remaining work.test
failure6The requester loses staff deletion authority.Hold the request with an authority explanation.A person must review before destruction proceeds.test
services-platform:modules/tenants/tests/integration/services/deletion/begin-destruction.integration.spec.js#holds the request in that case, so a person has to look at it rather than a job retrying forever

Assertions

IdStatementProvenance
01The tested declared Platform and CRM tables retain no removed-workspace rows after purge.test
02The sibling workspace fixture remains unchanged.test
03Cancellation that wins before destruction preserves the records; a later cancellation refuses.test
04The completed fixture retains numeric evidence and refuses reuse of the retired identifier.test

End-to-end policy: required: The outcome crosses lifecycle operations and warrants end-to-end verification; the current bindings establish backend fixtures, while screen and deployed-service coverage remain separate gaps.

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.