Dual Tagline: "A System for Keeping Promises to Yourself." / "Turn Intent Into Discipline"
Version: 1.0.0 (Production Certified)
Repository:pact-os
Last Verified: September 2026
PACT is a production-hardened Personal Operating System (OS) engineered to bridge the critical gap between intention and execution. Rather than acting as a passive to-do list, PACT operates as an active governance system for personal productivity, time allocation, deep work, financial discipline, and commitment integrity.
Traditional productivity software suffers from "passive accumulation": tasks, goals, and habits are created with high enthusiasm but abandoned without consequence when friction occurs. PACT solves this by introducing:
- Unbreakable Accountability: Commitments tied to explicit deadlines, verified proofs, and enforceable consequences.
- Temporal Truth: Time-blocked planning with bi-directional calendar synchronization.
- Objective Verification: Automated proof-of-work validation via external developer and learning platforms.
- Holistic Governance: Unified management of tasks, strategic goals, projects, routines, deep work focus, and financial cash flow.
- Discipline Over Fleeting Motivation: Systems and automated boundaries prevent regression.
- Fail-Safe Integrity: Integration downtime or network partitions never compromise user integrity.
- Zero-Trust Data Boundaries: Sensitive commitment consequences and user secrets remain strictly encrypted and confidential.
- Deterministic State Machines: Every entity follows an explicit, auditable lifecycle.
PACT is composed of 14 integrated systems operating under a unified dashboard shell:
| System | Route | Primary Responsibility | Current Status |
|---|---|---|---|
| Command Center | /app |
Global overview, quick capture, metrics & universal search | IMPLEMENTED |
| Planner | /app/planner |
Day/Week/Month time-blocking and scheduling | IMPLEMENTED |
| Goals | /app/goals |
Strategic long-term objectives & milestone tracking | IMPLEMENTED |
| Projects | /app/projects |
Scoped initiatives, deliverables & phase execution | IMPLEMENTED |
| Tasks | /app/tasks |
Task backlog, execution, priority & deadline tracking | IMPLEMENTED |
| Accountability | /app/accountability |
Commitments, confidential consequences & resolution | IMPLEMENTED |
| Finance | /app/finance |
Integer-cents cash flow, recurring expenses & budgets | IMPLEMENTED |
| Focus Timer | /app/focus |
Deep work sessions, Web Audio chimes & focus logs | IMPLEMENTED |
| Habits & Routines | /app/habits |
Recurring habit loops, daily routines & streak engines | IMPLEMENTED |
| Analytics | /app/analytics |
Completion velocity, historical trends & scorecards | IMPLEMENTED |
| Weekly Review | /app/review |
5-step guided Sunday planning ritual & review wizard | IMPLEMENTED |
| Integrations | /app/integrations |
Connectors for Google Calendar, GitHub, LeetCode, Codeforces | IMPLEMENTED |
| Notifications | Global Shell | Multi-channel alerts (In-App, Email, Webhook) | IMPLEMENTED |
| Settings & Export | /app/settings |
Profile, theme tokens, notification channels & data portability | IMPLEMENTED |
+-------------------------------------------------+
| Client Layer |
| Next.js 16 (React 19) + Tailwind CSS v4 + Framer |
+-------------------------------------------------+
|
Server Actions & Route Handlers
|
+-------------------------------------------------+
| Application Core (lib/) |
| - Accountability Engine - Focus Engine |
| - Financial Discipline - Habits & Routines |
| - External Proof Sweeper - Analytics Matrix |
| - Google Calendar Sync - Export Sanitizer |
+-------------------------------------------------+
|
Supabase SSR / Postgres Client
|
+-------------------------------------------------+
| Database Layer (PostgreSQL) |
| - Row Level Security (RLS) on All Tables |
| - pg_cron Deadline Sweeper Engine |
| - Database State Triggers & Audit Records |
+-------------------------------------------------+
- Framework: Next.js 16 (App Router) with React 19.
- Styling: Tailwind CSS v4 with dark glassmorphism, semantic design tokens, and luxury gold accents (
#d4af37). - Motion: Framer Motion for hardware-accelerated transitions and background OS core ambient lighting.
- URL State: Deterministic bidirectional URL query synchronization (
useUrlState) for filters, search terms, and active tabs.
- Database: Supabase PostgreSQL with 20 idempotent schema migrations.
- Mutations: Type-safe Next.js Server Actions with strict Zod validation schemas (
lib/validations/). - Authorization: Row Level Security (RLS) enabled on 100% of tables with zero-trust server-side identity verification via
supabase.auth.getUser().
PACT structures data in a clean, normalized relational model:
erDiagram
PROFILES ||--o{ GOALS : owns
PROFILES ||--o{ PROJECTS : owns
PROFILES ||--o{ TASKS : owns
PROFILES ||--o{ COMMITMENTS : enters
PROFILES ||--o{ FOCUS_SESSIONS : records
PROFILES ||--o{ HABITS : tracks
PROFILES ||--o{ FINANCE_TRANSACTIONS : logs
GOALS ||--o{ PROJECTS : breaks_down_into
PROJECTS ||--o{ TASKS : contains
TASKS ||--o| COMMITMENTS : binds_to
COMMITMENTS ||--o| CONSEQUENCES : triggers_on_breach
COMMITMENTS ||--o{ PROOF_SUBMISSIONS : verifies_with
profiles: User timezone, identity preferences, onboarding status, and metadata.tasks: Work items with status, priority, estimated duration, scheduled times, and deadline.commitments: Formal contracts binding a task to an accountability rule, consequence, or external proof.consequences: Confidential penalty definitions (e.g., social forfeit, financial pledge, accountability partner notification).finance_transactions: Financial ledger entries stored in integer cents (amount_cents) with category and recurrence links.focus_sessions: Deep work time logs with target duration, actual duration, and completion status.habits&habit_logs: Habit definitions, completion frequencies, and daily completion logs.weekly_reviews: Sunday review records containing reflection responses, scorecard metrics, and commitments for the upcoming week.
- Unified Landing Page (
/): In-place single-screen authentication experience supporting both Email/Password and Google OAuth. - Password Recovery: Secure email-based reset flow redirecting to authenticated settings.
- Session Handling: Managed via
@supabase/ssrwith HttpOnly cookies, automatic token refreshing, and server-side middleware protection.
- Every query enforces strict user isolation through Supabase RLS:
auth.uid() = user_id. - Confidential consequence descriptions are masked from client responses until a commitment enters an activated breach state.
[DRAFT] ──> [ACTIVE] ──> [COMPLETED] (Verified / Fulfilled)
│
└──> [BREACHED] ──> [CONSEQUENCE_ACTIVATED] ──> [RESOLVED]
│
└──> [WAIVED] (Controlled exception with audit reason)
- Background cron runner triggered via
/api/cron/sweep-deadlines(authorized with timing-safeCRON_SECRETheaders) and databasepg_cron. - Inspects pending deadlines, evaluates grace periods, transitions expired tasks to
missed, and escalates breached commitments to active consequence status.
To prevent floating-point inaccuracies, all financial data is stored and calculated in integer cents (amount_cents, limit_cents). Helper utilities in lib/money.ts handle formatting, currency symbols, and mathematical operations.
- Transaction Ledger: Track income, fixed expenses, and variable expenses.
- Budget Envelopes: Set category-specific spending limits with automated visual thresholds (Warning at 80%, Breach at 100%).
- Recurring Cash Flow Engine: Predict recurring monthly overhead and net cash balance.
| Connector | Type | Implementation Status | Purpose |
|---|---|---|---|
| Google Calendar | OAuth 2.0 Bi-directional | IMPLEMENTED | Synchronize time-blocks, import external events, and detect schedule conflicts. |
| GitHub | REST API / Webhook | IMPLEMENTED | Verify commit activity, merged pull requests, and contribution counts as objective proof. |
| LeetCode | Public GraphQL API | IMPLEMENTED | Verify daily problem completions and submission counts without storing credentials. |
| Codeforces | Official REST API | IMPLEMENTED | Verify contest participation and problem submissions against public handles. |
| WakaTime | REST API Telemetry | IMPLEMENTED | Verify active IDE coding session durations, project hours, and language distributions. |
If an external API experiences an outage, network timeout, or rate limit, the verification engine enters a RETRY_PENDING state. A user's commitment is never failed due to third-party infrastructure failures.
PACT is built upon a luxury Dark Obsidian & PACT Gold design language engineered for executive focus and disciplined execution:
- Canvas Base: Deepest OLED Obsidian & Canvas Black (
#050505,#070707,#090909). - Surface Cards: Rich solid surfaces (
#0C0C0F,#101012,#121214) with ultra-fine specular hairline borders (rgba(255, 255, 255, 0.06)). - Brand Gold Palette:
#D4AF37(Primary authoritative gold),#E6C34A(Active highlights),#FFF7D6(Specular crescent apex),#AA820A(Deep gold tracks). - Typography Colors:
#F5F5F5(High-contrast headings & numerals),#E8E8E8(Body copy),#8B8B92(Secondary labels),#71717A(Muted timestamps).
The Overview dashboard features a photorealistic 3D celestial planet sphere (src/features/dashboard/components/daily-focus-hero.tsx):
- Volumetric Multi-layer Radial Shading: Transitions smoothly from
#1E1E26to#050507across the sphere's surface, creating realistic 3D depth without artificial flat 2D circular borders. - Rayleigh Atmospheric Back-Scatter: Off-center radial glow creating the optical illusion of sunlight wrapping around a planetary limb.
- Razor-Thin Specular Gold Crescent: Precision path along the upper-right circumference illuminated with a gradient from
#FFF7D6through#D4AF37totransparent. - Orbital Coordinate Grids: Faint concentric orbital ellipses rendered in PACT Gold at 8–12% opacity.
- Primary Metric Cards: 4 identical
#0C0C0Fcards (Pending Commitments, Active Goals, Active Projects, Missed Commitments) with faint 8% gold orbital corner geometry (stroke="#D4AF37" strokeOpacity="0.08"), high-contrast numerals (#F5F5F5), and micro-elevation hover states. - Immediate Focus Card:
#0C0C0Fsurface with upper-right gold spotlight (rgba(212,175,55,0.06)), gold border accents, and high-visibility status pill. - Daily Cadence & Follow-Through Widgets: Dark progress tracks with
#D4AF37fills and 24-hour activity distribution histograms with peak highlights.
- Custom delay-gated tooltips (350ms activation,
z-50,pointer-events-none) placed above trigger controls to ensure zero obstruction of surrounding date navigation or dashboard content. Nativetitleattributes are strictly avoided.
# 1. Install dependencies
npm install
# 2. Configure local environment
cp .env.example .env.local
# 3. Start local development server
npm run devPACT features an automated 44-suite test matrix covering all core domain engines:
# Run comprehensive test suite
node scratch/run-tests.mjs
# Run secret scanner
node scratch/secret-scan.mjs
# Typecheck & Lint
npx tsc --noEmit
npm run lint- Zero Client Trust: All user identity checks are strictly evaluated on the server using verified JWT claims.
- Data Portability (
/api/user/export): Complete RFC 4180 ZIP/JSON export and schema-validated JSON backup restoration with relational graph reconciliation and automated secret stripping. - Cryptographic Partner Verification: Tokenized review links with SHA-256 verification and zero consequence penalty leakage.
- Secret Hygiene: Strict pre-commit verification ensuring zero API keys or credentials exist in git history.
All 14 core product modules, the automated deadline sweeping engine, external proof connectors (GitHub, LeetCode, Codeforces, WakaTime), the cryptographic partner verification portal, full-fidelity data backup restoration, the 44-suite test matrix, and the single-screen landing experience are fully built, tested, and certified.
- PWA & Mobile Native Companion: Installable offline quick-capture and React Native / Expo companion app.
- Biometric Passkey Support: WebAuthn/FIDO2 passwordless biometric authentication.
- Local-First Offline Sync: CRDT-based client synchronization for offline planning.