/sdlc-documentation:07-saas-tenant-lifecycle-runbookfrom sdlc-documentation
Produces or updates a SaaS tenant lifecycle runbook covering provisioning, suspension, reactivation, export, deletion, isolation, and evidence. Useful for SaaS operations and support teams.
Ships in sdlc-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Artefact | Source/provider | Required? | Behaviour when absent |
|---|---|---|---|
| Project _context/, approved requirements, and relevant architecture | Project owner and upstream phase skills | Required | Stop at a gap register; do not invent scope, thresholds, integrations, or owners. |
| Existing artefact, implementation, configuration, and evidence named below | Repository, delivery team, or service owner | Required when updating or assessing | Mark inaccessible items not assessed; do not treat them as passed. |
| Target audience, environment, risk tolerance, and authority | Requester and accountable owner | Required | Produce a read-only outline with explicit assumptions; do not mutate project or production state. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| SaaS Tenant-lifecycle Runbook | SaaS operations and support | Each lifecycle transition has authority, idempotency, tenant-isolation checks, audit evidence, and recovery steps. |
| Decision and gap register | Reviewer and downstream phase owner | Every assumption, rejected option, unresolved dependency, waiver, and owner is explicit. |
| Validation evidence | Release or governance reviewer | Checks identify command or method, date, result, evidence location, and all unassessed items. |
| Evidence | Minimum content | Acceptance |
|---|---|---|
| Traceability record | Source artefact, decision, output section, owner | No mandatory decision is source-free. |
| Quality-gate result | Check, expected result, observed result, evidence path | Failures and unavailable checks cannot appear as passes. |
| Review record | Reviewer, date, disposition, open actions | The consumer can reproduce the acceptance decision. |
If files, execution, network, rendering, environment access, fonts, or current evidence are unavailable, return the narrowest useful draft plus a gap register. Label affected checks not assessed, retain the intended acceptance oracle, and state who must supply or verify the missing evidence. Never convert an unavailable check into a pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Evidence is complete and authority is explicit | Choose lifecycle action from verified tenant state and authority and produce the full artefact. | Cross-tenant or irreversible lifecycle errors. |
| A required source or approval is missing | Stop the affected branch; record the gap, owner, and unblock condition. | Fabricated requirements or unauthorised action. |
| Evidence conflicts across sources | Preserve both claims, identify the controlling owner, and request a recorded decision. | Silent selection of a convenient but wrong source. |
| A check cannot run in the available environment | Keep its oracle and mark it not assessed; require later execution evidence. | False assurance from capability limits. |
not assessed, preserve the oracle, and name the verifier.Given an approved project source and a conflicting implementation detail, record both with provenance, stop the affected branch, and obtain the accountable owner's decision. Then update the relevant contract, define a reproducible acceptance check, and retain its observed result. The artefact is accepted only when each lifecycle transition has authority, idempotency, tenant-isolation checks, audit evidence, and recovery steps.
Generates the operational runbook covering the SaaS-distinctive tenant lifecycle events. Captures the procedures, automation hooks, manual gates, audit trail, retention obligations, and customer-comms templates that the generic runbook leaves out.
Runbook.md already exists in Phase 06.Multi_Tenancy_Architecture_Spec.md from Phase 03 exists.| Attribute | Value |
|---|---|
| Inputs | Multi_Tenancy_Architecture_Spec.md, Runbook.md, Compliance_Docs.md, billing & metering spec |
| Output | projects/<ProjectName>/<phase>/<document>/Tenant_Lifecycle_Runbook.md and playbooks/*.md |
| Tone | Procedural, audit-grade, customer-comms-aware |
| Standard | SRE Best Practices; GDPR Art.17 (deletion); POPIA / DPPA equivalents |
| File | Description |
|---|---|
| Tenant_Lifecycle_Runbook.md | Master runbook indexing each stage |
| playbooks/01-provisioning.md | Provisioning procedure |
| playbooks/02-tier-change.md | Upgrade / downgrade procedure |
| playbooks/03-suspension.md | Suspension procedure (billing / compliance) |
| playbooks/04-reactivation.md | Reactivation procedure |
| playbooks/05-offboarding.md | Self-service offboarding |
| playbooks/06-data-export.md | Customer-requested data export (GDPR portability) |
| playbooks/07-hard-delete.md | Hard delete with verification |
| playbooks/08-retention.md | Retention obligations & destruction schedule |
Read the tenancy spec, generic runbook, compliance docs. Identify which lifecycle events the system supports, which control-plane services own each, and what retention obligations apply (per region, per data class).
| Event | Trigger | Source service | Downstream consumers | SLA |
|---|---|---|---|---|
tenant.created | Signup or sales-led | Onboarding | App services, billing, comms | < 5 min self-serve / < 1 business day enterprise |
tenant.tier_changed | Admin upgrade/downgrade | Tenant Management | All app services | < 10 min |
tenant.suspended | Billing failure / compliance / admin | Tenant Management | All app services, comms | immediate |
tenant.reactivated | Payment / admin | Tenant Management | All app services, comms | immediate |
tenant.offboarded | Customer cancellation | Tenant Management | All app services, billing, comms | immediate, with grace |
tenant.export_requested | Customer / DSAR | Operations | Data services | per regulation (GDPR: 30 days) |
tenant.hard_deleted | After grace period | Tenant Management | All app services, audit | per retention policy |
Every playbook MUST contain:
tenant.created MUST NOT create duplicate resources.This is the regulated path. GDPR Art.17 / Art.20 obligations:
Tenant_Lifecycle_Runbook.md shall index every stage, link each playbook, document the event catalogue, list audit-trail destinations, list retention obligations per region, and list customer-comms templates. Cross-link to 09-governance-compliance/13-saas-dpa-and-privacy-doc-set.
| Direction | Skill | Relationship |
|---|---|---|
| Upstream | 03-design-documentation/10-saas-multi-tenancy-architecture-spec | Provides the event catalogue and pattern context |
| Upstream | 06-deployment-operations/02-runbook | Generic runbook is the parent |
| Parallel | 09-governance-compliance/13-saas-dpa-and-privacy-doc-set | Retention and DSAR obligations |
| Parallel | 09-governance-compliance/11-saas-data-isolation-evidence-pack | Hard-delete verification feeds the evidence pack |
| Downstream | 08-end-user-documentation/05-saas-customer-success-playbook | Customer-comms templates flow into CS plays |
logic.prompt — Executable prompt.README.md — Quick-start.references/saas-tenant-lifecycle-runbook-template.md — Master template.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
saas, tenant-lifecycle, runbook, provisioning, operations, evidence
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job