Skip to content

STD-OPS-002: Emulator Lifecycle

1. Context

To maintain a stable development environment ("The Simulator") preventing data loss or port conflicts.

2. The Standard (The Floor)

  • [MUST] Safe Start: Always use pnpm dev:platform (invokes safe-start.js) to handle lifecycle.
  • [MUST] Ports: Emulators MUST run on 8080 (Firestore) and 9099 (Auth).
  • [MUST] Persistence: Data MUST be saved to .firebase/emulator-persistence on exit.

3. Best Practices (The Path)

  • [SHOULD] Verification: Check emulator status before running seeds.
  • [SHOULD] Clean Exit: Allow safe-start.js to catch SIGINT/SIGTERM to ensure emulator:export runs.

5. Version History

Version Date Author Change
1.0 2026-01-25 AI Extracted from .cursorrules

Version History

Version Date Author Change
0.1.0 2026-01-26 Antigravity Initial Audit & Metadata Injection