MVP-1.4 · Tenant lifecycle endpoints that take effect (provision/suspend/export/delete) #265

Open
opened 2026-09-20 20:17:21 +00:00 by sharang · 0 comments
Owner

Goal

The §4.1 lifecycle endpoints in handlers/platform.rs accept calls but largely do not take effect: provisioning does not persist identity, suspend/reactivate/terminate are cosmetic, export is not a real data export, and delete does not purge. Without these, a tenant cannot be offboarded and GDPR erasure cannot be evidenced.

What to change

  • provision stores the slug and name.
  • suspend / reactivate / terminate take effect; terminate schedules erasure.
  • export = a streamed ZIP including blobs, SBOMs and evidence packs.
  • DELETE data requires confirm == slug, purges MCP tokens, blobs and clones, and is audited (MVP-1.6).

Acceptance

  • After provisioning, the tenant slug and name appear in the agent's own records and in the dashboard identity (MVP-1.10).
  • Suspend blocks writes, reactivate restores them, terminate schedules erasure — each covered by a test.
  • export streams a ZIP that actually contains blobs, SBOMs and evidence packs, verified by a stage script.
  • DELETE data without the exact slug is refused; with it, MCP tokens, blobs and clones are gone and an audit event is recorded.
  • Retention/cleanup of the underlying files is wired to MVP-4.3.
## Goal The §4.1 lifecycle endpoints in `handlers/platform.rs` accept calls but largely do not take effect: provisioning does not persist identity, suspend/reactivate/terminate are cosmetic, export is not a real data export, and delete does not purge. Without these, a tenant cannot be offboarded and GDPR erasure cannot be evidenced. ## What to change - `provision` stores the slug and name. - suspend / reactivate / terminate take effect; terminate schedules erasure. - `export` = a streamed ZIP including blobs, SBOMs and evidence packs. - `DELETE data` requires `confirm == slug`, purges MCP tokens, blobs and clones, and is audited (MVP-1.6). ## Acceptance - [ ] After provisioning, the tenant slug and name appear in the agent's own records and in the dashboard identity (MVP-1.10). - [ ] Suspend blocks writes, reactivate restores them, terminate schedules erasure — each covered by a test. - [ ] `export` streams a ZIP that actually contains blobs, SBOMs and evidence packs, verified by a stage script. - [ ] `DELETE data` without the exact slug is refused; with it, MCP tokens, blobs and clones are gone and an audit event is recorded. - [ ] Retention/cleanup of the underlying files is wired to MVP-4.3.
sharang added this to the Production MVP milestone 2026-09-20 20:17:21 +00:00
sharang added the infrastructureenhancement labels 2026-09-20 20:17:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#265