Run the isolated development stack
Use sibling checkouts of silicon-accounts and silicon-organizations. The stack uses only local synthetic identities, its own PostgreSQL cluster, local provider/email mocks, and a current Accounts-compatible Ting checkout. Do not use silicon-accounts/scripts/dev-live.sh: it targets production.
Prerequisites: the pinned Rust toolchain, Node 24 or newer, pnpm, Python 3.11 or newer, and PostgreSQL 16. Set PG_BIN when PostgreSQL's binaries are not under /opt/homebrew/opt/postgresql@16/bin. Set SILICON_ACCOUNTS_DIR when Accounts is not a sibling checkout.
From the Organizations repository:
python3 scripts/dev.py prepare
python3 scripts/dev.py accounts
cargo build --workspace
pnpm -C web install --frozen-lockfile
prepare creates a private .dev/runtime.json with random local service credentials, a local app registration file, and the isolated databases. Repeating it preserves credentials and data. accounts builds and starts Accounts plus its mocks, then registers Organizations and Ting with local Accounts. accounts --no-build reuses built Accounts binaries. It does not reset either database.
Use the current Accounts-compatible Ting source rather than an older IAM-based working tree. One isolated checkout can be prepared without modifying the existing Ting worktree:
git -C ../silicon-ting fetch origin
git -C ../silicon-ting worktree add --detach "$PWD/.dev/ting-sessions" 163e5ca
cargo build --locked --manifest-path .dev/ting-sessions/Cargo.toml -p silicon-ting-server
python3 scripts/dev.py ting
python3 scripts/dev.py api
python3 scripts/dev.py web
python3 scripts/dev.py status
The test checkout above includes Ting 0.4 receiver sessions, two-part notification types and JSON Schemas, plus work-account compatibility. The published Rust client is pinned to 0.4.0. SILICON_TING_DIR selects another local Ting checkout; it must support this protocol. Do not reset the old acceptance database or worktree.
The Organizations API uses live delivery adapters directed at local Accounts and Ting. Accounts routes email and provider authentication to the local testkit. A queued notification alone is not proof that Ting accepted it; inspect recipient inbox and delivery evidence in acceptance testing.
| Component | Local address |
|---|---|
| PostgreSQL | 127.0.0.1:5548 |
| Accounts API | http://localhost:8649 |
| Accounts site | http://localhost:8650 |
| Provider mock | http://localhost:8651 |
| Messaging mock | http://localhost:8652 |
| Fake apps and webhook receiver | http://localhost:8653 |
| Iris mock | http://localhost:8654 |
| Apps catalog stand-in | http://localhost:8656 |
| Organizations API | http://localhost:8660 |
| Organizations site | http://localhost:8661 |
| Ting API | http://localhost:8662 |
Accounts' browser/API logs live under its .dev/logs/8650/. Organizations and Ting logs live in this repository's .dev/. Runtime credentials, sessions, databases, provider outboxes, and raw logs must remain ignored. Record sanitized test observations in acceptance.md.
The launcher detects an already healthy service. If a recorded process is alive but unhealthy, it fails instead of starting another instance. Inspect the named process and log before restarting it. PostgreSQL keeps its data between runs.
Checks
Run the changed service's Rust tests and both frontend checks. Accounts database tests use ACCOUNTS_TEST_ADMIN_URL=postgres://postgres@127.0.0.1:5548/postgres; each creates its own throwaway database. Browser acceptance uses the real local services and the synthetic Carbon/Silicon fixtures, including email/phone/provider proof, selection, invitations and role denials. Production checks and real external provider delivery must be reported separately from this local environment.
python3 scripts/acceptance-sessions.py exercises concurrent receivers, scope isolation, hidden votes, reconnect, revocation, member removal, CLI streaming and real account-wide notification delivery against this local stack. It writes only sanitized assertions to docs/evidence/receiver-sessions.json; synthetic credentials stay private under .dev/.
Then pnpm -C web test:live uses that private fixture to test actual browser streams through the BFF, two-view synchronization, reconnect recovery and cross-view sign-out. It revokes its synthetic founder app session at the end; rerun the API acceptance script before repeating the browser test. Sanitized browser assertions go to docs/evidence/receiver-sessions-browser.json.
For a deployment using HTTPS Ting, also verify the secure WebSocket path (it exercises TLS providers that loopback ws:// cannot cover):
ORGANIZATIONS_TEST_TING_URL=https://ting.teamofsilicons.com cargo test -p silicon-organizations-server secure_ting_receiver_connects -- --ignored
This opt-in check opens and closes an anonymous receiver; it sends no notification or account credential.