Copy architecture docs, ADRs, storage domain specs, research, reviews, and 56 storage architecture tasks from the alkhub_ts monorepo. Adapt for standalone @alkdev/hub repo structure (src/ not packages/hub/). Sanitize all sensitive information: - Replace private IPs (10.0.0.1) with localhost defaults - Remove internal server hostnames (dev1, ns528096) - Replace /workspace/ private paths with npm package references - Remove hardcoded credentials from examples - Rewrite infrastructure.md without private network details Add Deno project scaffolding: deno.json (pinned deps), .gitignore, AGENTS.md, entry point. Migrate existing code stubs (crypto, config types, logger) with updated import paths.
1.4 KiB
1.4 KiB
id, name, status, depends_on, scope, risk, impact, level
| id | name | status | depends_on | scope | risk | impact | level | |
|---|---|---|---|---|---|---|---|---|
| document-org-ownership-transfer | Document Org Ownership Transfer Workflow | completed |
|
narrow | low | isolated | implementation |
Description
W16: RESTRICT prevents deletion of accounts that own organizations, but no ownership transfer mechanism is documented. This depends on C13 (dual ownership model) being resolved first, since the transfer workflow depends on whether ownerId or membershipLevel: "owner" is authoritative.
Add transfer documentation: "Before deleting an account, transfer all owned organizations via org.transferOwnership operation." Document the transfer pattern in identity.md.
Acceptance Criteria
identity.mddocuments theorg.transferOwnershipoperation/workflow- Precondition: transfer must happen before account deletion (RESTRICT constraint)
- Transfer includes updating
organizations.ownerIdto the new owner - Transfer includes updating
organization_members.membershipLevelif membership-based ownership is in use - Dependency on C13 resolution noted (the authoritative ownership field determines what gets transferred)
References
- docs/reviews/storage-architecture-review-2026-04-21.md#W16
- docs/architecture/storage/identity.md:44
- docs/architecture/storage/table-reference.md:56
Notes
To be filled by implementation agent
Summary
To be filled on completion