Silicon Organizations implementation
The product contract is understanding/UNDERSTANDING.md. It is maintained by Carbons and must not be changed by agents. This document tracks implementation and verification; it does not replace that contract.
Baseline
Before implementation, existing Accounts changes were committed, merged with the remote, and pushed as 71855f395a48ac47a8f006fac135166b5b3ba802. The Organizations contract was committed and pushed as e6a2220.
Service boundaries
Organizations owns organizations, membership and roles, teams, invitations, ownership offers and removal votes, app policies, audit records, and notification jobs. Accounts owns immutable account identities, credentials, organization custody, account linking, hosted authentication and the account picker, app memberships, sessions, verification proofs, and account webhooks.
Work accounts are distinct Accounts identities. Apps continue using ordinary Accounts authentication and immutable account UUIDs. A work account must never borrow its personal account's app membership or leak its linked accounts to organization managers.
The Organizations backend uses the current official Accounts Rust client. Its private bridge is authenticated specifically as silicon-organizations; those service operations are not exposed by the Organizations end-user package or CLI. Accounts stores the organization identity and effective access needed for authentication, without moving teams or role ownership into Accounts.
Mutations spanning both services require stable operation identities, durable progress, and safe retries. Success must not be reported while a required work-account creation, closure, or access revocation is still unconfirmed. An uncertain response must be recoverable without allocating a duplicate account, repeating an invitation, or rotating a credential twice.
Implementation work
- Accounts: additive schema, scoped work handles and reservations, organization custody, secure linked-account groups, work-account lifecycle, account selection and targeted Silicon SLTs, policy enforcement and revocation, durable work-account events, SDK and CLI.
- Organizations: PostgreSQL service, authentication, domain permissions, memberships/invitations, owner offers and voting, admin teams, access policy composition, scoped logs, notification delivery and retries, typed stateless Rust client, complete CLI.
- Frontends: Accounts picker and linked identities; Silicon UI Organizations site with personal and work views, server-held sessions, role-aware actions, precise errors and retry behavior.
- Integration: local Accounts and Organizations with separate databases; browser, API, CLI, permission, race, and failure-recovery tests; distribution/deployment instructions and artifacts.
Verification rules
See acceptance.md. A passing unit test does not prove the browser journey or cross-service behavior. Record actual commands, runtime origins, observed outcomes, and remaining failures. Local mocks prove the local adapter contract only; they do not prove live provider or notification delivery. Do not call the release complete while a contract requirement is missing or unverified.
The isolated acceptance PostgreSQL cluster uses port 5548 under ignored .dev/pg. Accounts uses database organizations_accounts. Reserved local origins are Accounts API http://localhost:8649, Accounts site http://localhost:8650, Organizations API http://localhost:8660, and Organizations site http://localhost:8661. Accounts provider/messaging mocks use ports 8651 through 8656. Never use Accounts' scripts/dev-live.sh for acceptance fixtures: it connects to production.