Skip to content

feat(enterprise): add tenant tombstone purge flow#113

Closed
Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-d5-tenant-exportfrom
feature/enterprise-multi-tenant-d5-tenant-tombstone
Closed

feat(enterprise): add tenant tombstone purge flow#113
Gracker wants to merge 1 commit intofeature/enterprise-multi-tenant-d5-tenant-exportfrom
feature/enterprise-multi-tenant-d5-tenant-tombstone

Conversation

@Gracker
Copy link
Copy Markdown
Owner

@Gracker Gracker commented May 8, 2026

Summary

  • Complete enterprise multi-tenant §0.5.5 tenant tombstone and purge flow.
  • Add /api/tenant/tombstone and /api/tenant/purge with confirm-tenant guard, admin/delete permission checks, 7-day purge window, async purge job polling, and purge proof hash.
  • Block tenant mutations after tombstone for trace uploads and agent analyze requests, and block purge while active runs or trace-processor leases remain.
  • Document the completed slice in docs/features/enterprise-multi-tenant/README.md.

Verification

  • cd backend && PATH="$HOME/.nvm/versions/node/v24.15.0/bin:$PATH" npx jest --runInBand --forceExit src/routes/__tests__/enterpriseTenantRoutes.test.ts src/routes/__tests__/enterpriseTraceMetadataRoutes.test.ts src/routes/__tests__/agentRoutesRbac.test.ts
  • cd backend && PATH="$HOME/.nvm/versions/node/v24.15.0/bin:$PATH" npm run typecheck
  • git diff --check
  • cd backend && PATH="$HOME/.nvm/versions/node/v24.15.0/bin:$PATH" npm run test:scene-trace-regression
  • PATH="$HOME/.nvm/versions/node/v24.15.0/bin:$PATH" npm run verify:pr

@Gracker
Copy link
Copy Markdown
Owner Author

Gracker commented May 9, 2026

已通过 commit 67856ec (merge) + 023a84a (frontend rebuild) 合入 main,关闭此 PR。

@Gracker Gracker closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant