-
Notifications
You must be signed in to change notification settings - Fork 9
27 Discipline Intelligence and Analytics
Vicky Patel edited this page Sep 14, 2026
·
1 revision
Specifications for discipline velocity scoring, streak multipliers, and aggregate analytics computation in
src/lib/analytics.ts.
PACT OS computes an authoritative Discipline Velocity Score (0–100) to quantify execution momentum without vanity metrics:
Velocity Score = (Task Completion Rate × 0.40) + (Habit Consistency % × 0.35) + (Focus Session Ratio × 0.25)
-
Task Completion Rate (40%): Percentage of commitments marked
completedvs. total scheduled commitments (completed+missed). - Habit Consistency % (35%): Ratio of active days habits were logged vs. target recurrence schedules.
- Focus Session Ratio (25%): Ratio of completed deep work minutes vs. target planned focus minutes.
-
Streak Multiplier: Consecutive days meeting habit targets increment streak multiplier (
1.0x➔1.5x➔2.0x). - Missed Day Penalty: Missing a habit resets current streak count while preserving historical total completion records.
-
Server Views (
20260917000000_discipline_intelligence_and_enterprise_sso.sql): PostgreSQL views calculate weekly velocity rollups server-side for optimal rendering performance.
| 🏛️ Project Hub | 🛠️ Developer Docs | 💬 Community & Support |
|---|---|---|
| GitHub Repository | System Architecture | GitHub Discussions |
| Beginner Issue Catalog | Design System | Open Issues |
| Production Deployment | API Reference | Pull Requests |
| Project Roadmap | Testing & QA Matrix | Maintainer Governance |
- Codebase Tour
- Domain Model
- Database Architecture
- Security Model
- Financial System
- Consequence System
- External Integrations
- Discipline Intelligence
- Data Portability & Sync