-
Notifications
You must be signed in to change notification settings - Fork 9
01 Product Overview
Vicky Patel edited this page Sep 14, 2026
·
1 revision
PACT OS: Personal Productivity & Accountability System
PACT OS is designed to solve the Execution Gap—the psychological disconnect between forming ambitious long-term goals and executing immediate daily habits.
Most productivity systems fail because they rely exclusively on motivation or passive task lists. PACT OS replaces passive list-making with Server-Authoritative Commitments:
- Intention without friction: Commitments are sealed in under 5 seconds with a title and a deadline.
- Accountability with consequences: Missing a deadline activates a pre-sealed consequence state machine.
- Financial clarity: Money and budget tracking enforce integer-cent precision to prevent rounding errors.
- Data privacy: User data remains strictly owned by the user, governed by Row Level Security (RLS).
graph TD
Goal[Strategic Goal] --> Project[Scoped Project]
Project --> Task[Actionable Task]
Task --> Commitment[Sealed Commitment]
Commitment --> Consequence[Binding Consequence]
Commitment --> Proof[Proof of Work]
- Goals: High-level strategic objectives with target completion dates.
- Projects: Scoped initiatives containing actionable deliverables.
- Tasks: Specific, time-blocked action items.
-
Commitments: Tasks bound to an explicit deadline (
deadline_at) and an accountability state machine. - Consequences: Pre-configured outcomes (reflections, declarations, financial pledges) activated upon deadline breach.
PACT OS operates on structured daily and weekly temporal boundaries:
- Daily Cadence: Morning intent setting and evening reflection.
- Weekly Review & Sunday Ritual: A 5-step guided reflection ritual that audits completed tasks, carries over pending items, and plans the upcoming week's top 5 priorities.
Monetary management is integrated directly into the OS as a discipline ledger:
-
Integer Cents: All transactions store
amount_cents(bigint) to eliminate IEEE 754 float inaccuracies. - Budget Envelopes: Monthly and category-based spending limits.
- Open Task Modal (
TaskFormModal). - Type title and select deadline preset (e.g., "Today 10 PM").
- Submit commitment. The system records
scheduled_start,deadline_at, and initializes the commitment state machine.
- Navigate to Focus Engine (
/app/focus). - Select target task and duration (e.g., 25 minutes).
- Start timer. The offline Web Audio soundscape synthesizer (
src/lib/focus/sound.ts) generates ambient focus audio. - Complete session to log
actual_duration_secondsto user analytics.
- User submits proof or completes task before deadline.
- For external proof tasks (GitHub commit, LeetCode submission), the system calls server connectors (
src/lib/integrations/). - Upon verification, task status transitions to
completedand streak multipliers increment. - If deadline passes without completion, background cron (
/api/cron/sweep-deadlines) marks taskmissedand activates the consequence payload.
sequenceDiagram
participant User
participant NextJS as Next.js Server Actions
participant DB as Supabase PostgreSQL
participant Cron as Sweeper Cron
User->>NextJS: Seal Commitment (Title + Deadline)
NextJS->>DB: INSERT into tasks & commitments
alt Task Completed on Time
User->>NextJS: Mark Complete / Submit Proof
NextJS->>DB: UPDATE status = 'completed'
else Deadline Expires
Cron->>DB: Scan expired deadlines (deadline_at < NOW())
Cron->>DB: UPDATE status = 'missed', activate consequence
end
- Features — Comprehensive breakdown of all 14 core OS modules.
- Architecture — Server vs client boundaries and technical design.
- Consequence System — State machine rules and breach handling.
| 🏛️ 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