Infrastructural Logic.
A deep-dive into the high-performance tiers and decoupled logic layers that power the 2asana observation engine.
Tiered Decoupling
Tier 1: Identity & Authorization
Secure anchoring via Firebase Auth and project-scoped RBAC. All data access is governed by the 'memberUids' map on the root project document, enforced at the infrastructure level via Firestore Security Rules.
- Project-Scoped Isolation
- RBAC Authority (Admin/Editor/Member)
- Biometric Identity Support
Tier 2: Registry & Knowledge Graph
A high-fidelity Firestore registry mapping tactical Asana nodes to strategic assets. This layer stores the Knowledge Graph linking Tasks to Managed Tools, Data Pipelines, and Organizational Units.
- Molecular Data Ingestion
- Delta-Only Updates
- Cross-Node Dependency Mapping
Tier 3: Inference & Workers
Serverless Cloud Functions executing long-running API tasks and AI inference. This tier calculates EPS scores, discover signals, and generates daily executive snapshots without blocking the user interface.
- Genkit AI Pipelines
- Idempotent Sync Workers
- Mathematical Risk Pass (EPS)
Data Flow Pipeline
User triggers action in UI (e.g. 'Sync All Tasks').
UI writes a signal to the syncRequests registry.
Background worker wakes, fetches API data, and runs AI.
Registry updates; UI reflects new state via real-time listeners.
Non-Blocking Architecture
System Latency: <100ms UI update
Technical Foundation
| Application Framework | Next.js 15 (React 19, App Router, RSC) |
|---|---|
| UI / Interaction Layer | ShadCN UI, Tailwind CSS, Framer Motion |
| Database Infrastructure | Cloud Firestore (NoSQL Document Store) |
| Compute / Background Tier | Firebase Cloud Functions (Node.js 20) |
| Intelligence Engine | Gemini Pro 2.5 via Google Genkit v1.x |
| External API Protocol | Asana SDK v3 (OpenAPI 3.0 Specification) |
Ready to audit your Node?
Explore the daily workers that power the inference tier and maintain registry integrity.