Documentation

Product Specification

The complete specification for Integral Priority — the leverage method, features, security model and business rules.

Download Master Copy
integral-priority-spec.md
# Integral Priority — Product Specification

**Developer:** Integral Digital  
**Product:** Standalone, AI-powered, multi-user prioritization SaaS  
**Platform:** Lovable Cloud  
**Document version:** 1.2 — conversational prioritization release  
**Updated:** October 25, 2026

## 1. Purpose and boundaries

Integral Priority helps founders, executives and business leaders compare projects, initiatives and opportunities against a defined objective. Users assign Impact, Effort and Expense scores, study a visual matrix and deterministic ranking, select their own commitments, and follow through using a Priority Plan.

The product remains useful without AI or video. The matrix contains strategic initiatives, not individual tasks. Tasks belong in weekly execution planning. Examples are generic and fictional, never confidential client records.

This specification describes this standalone app, not a replacement specification for another client OS. Existing client systems may use it as a reference while retaining their own approved rules, architecture and design.

## 2. Non-negotiable product rules

- **Unlimited matrices:** there is no implemented commercial matrix quota.
- **Unlimited approved priorities:** do not introduce a maximum for annual, quarterly, monthly or other planning contexts. Many clients plan 15–20 initiatives per year; that is context, not a minimum or maximum.
- **Top-three suggestions are guidance only:** users can select any number of priorities. A shortlist is not a gate.
- **Open weekly actions (v1.2):** unlimited. Users may add any number of weekly actions per priority and per plan; no database, server, AI or UI cap exists. The mathematical top three is guidance only.
- **Scores:** integers 1–10 for Impact, Effort and Expense.
- **Dependencies:** no self-links or cycles; references must belong to the authorized matrix.
- **AI:** suggestions never alter initiative scores, flags, priorities, weekly actions or reviews without explicit user acceptance. Drafts are never saved until approved.
- **Manual first:** every feature works without Magnus, a microphone or video.
- **Out of scope for v1.2:** SMS / Signal House, outbound calls, payments, team workspaces, calendar integrations.
- **Privacy:** ownership is enforced in the database, including nested records. UI filtering alone is insufficient.

## 3. Leverage method

### 3.1 Formula

```text
Leverage = (Impact × 2) ÷ (Effort + Expense)
```

Impact represents contribution to the matrix objective. Effort includes time, complexity, staff capacity and leadership attention. Expense represents incremental cash cost relative to the other options.

Example: Impact 9, Effort 3 and Expense 3 produce leverage 3.00. With Effort 6 and the other scores unchanged, leverage is 2.00. Scores are relative comparisons within a decision context, not forecasts of financial ROI. Scores display to two decimal places; the engine ranks using underlying numerical values.

All deterministic scoring, quadrant classification, tie-breaking and top-three sequencing live in `src/lib/scoring.ts`. UI and AI use this shared engine; neither supplies an alternative formula.

### 3.2 Matrix geometry

- Interactive 10×10 chart.
- **Impact:** horizontal; increases left → right, 1–10.
- **Effort:** vertical; increases bottom → top, 1–10.
- **Expense:** changes marker size only, never position.
- Lower scores are 1–5; higher scores are 6–10.
- Coincident markers receive display offsets without changing stored scores.
- Dragging changes Impact and Effort; keyboard controls support score adjustment. Expense is edited separately.

| Position | Quadrant | Definition | Guidance |
|---|---|---|---|
| Top left | Delay | Lower Impact, higher Effort | Park unless circumstances change |
| Top right | Selectively Invest | Higher Impact, higher Effort | Choose carefully and protect resources; may span quarters |
| Bottom left | Work In | Lower Impact, lower Effort | Fit in without crowding out higher-value work |
| Bottom right | Do First / Highest Leverage | Higher Impact, lower Effort | Strong candidates for near-term outcomes |

Quadrants are teaching aids, not approval rules. An obligation or enabling project can deserve priority in any quadrant.

### 3.3 Ranking and recommendation

Active, non-deprioritized initiatives are ordered by:
1. Leverage descending.
2. Impact descending.
3. Effort + Expense ascending.
4. Creation timestamp ascending.
5. ID ascending.

Deprioritized initiatives follow without a rank. Archived initiatives are excluded. Recommendation candidates also exclude completed initiatives.

The suggested shortlist shows the mathematical top three alongside a reasoned sequence. The deterministic sequence pulls user-flagged critical-path initiatives forward, then considers unfinished prerequisites and ranked candidates. This is a three-item decision aid, not a complete project scheduling engine or an approval limit. It does not promise optimal resource allocation or an exhaustive transitive project schedule.

Users may approve any number of initiatives. When the selection differs from the mathematical shortlist, the approval workflow requests a reason so that judgment is recorded rather than hidden.

## 4. Pages and navigation

| Page | URL | Purpose |
|---|---|---|
| Homepage | `/` | Public product explanation, sample matrix, FAQ and account entry |
| Account access | `/auth` | Sign in, create account, or request password reset |
| New password | `/reset-password` | Set a replacement password after recovery |
| Instructions | `/learn` | Written leverage guide, quadrant explanation and worked example |
| Product specification | `/spec` | Read this specification and download Markdown (dev-stage public link in footer) |
| Master copy | `/copy` | Every fixed word on every page; download Markdown (dev-stage public link in footer) |
| Matrix gallery | `/app` | Manage matrices; **Create with Magnus** (primary) or **Create manually** |
| Create with Magnus | `/app/magnus/new` | Conversation + live draft matrix; approve to save |
| Matrix workspace | `/app/matrices/:id` | Score, compare, rank, edit and approve initiatives |
| Priority Plan | `/app/matrices/:id/plan` | Commitments, priority fields and weekly actions |
| Reviews | `/app/matrices/:id/reviews` | Reflections, decisions and score history |
| Account settings | `/settings` | Profile, password, private data export and account deletion |

The matrix workspace shares contextual navigation and controls across its Matrix, Priority Plan and Reviews views. Unauthorized access must not reveal another user's records. Public page content and sample data do not require access to private matrices.

## 5. Accounts and matrix management

### 5.1 Account flows

Implemented account screens support email/password registration and sign-in, email confirmation messaging, forgotten-password requests, password replacement, Google sign-in, profile-name updates, sign-out and account deletion. Minimum password validation is eight characters.

Hosted provider configuration and email delivery have not been freshly verified for this documentation update. Source implementation is not evidence that delivery or external OAuth configuration currently works.

### 5.2 Matrix creation and lifecycle

Users can create, rename, duplicate, archive, restore and delete matrices. Creation establishes a name and decision context through five setup questions:

1. What are we deciding?
2. Why does it matter?
3. What outcome matters most?
4. Planning horizon.
5. What constraints matter?

Planning horizons include This month, This quarter, Next 6 months and This year. Context is stored per matrix rather than assumed across the entire account.

**Two creation paths.** *Create manually* opens the five-question dialog with templates. *Create with Magnus* gathers the same five fields conversationally (see §8.1); nothing is stored until **Approve and save matrix**.

Starter templates: Blank, Company Priorities, Customer Acquisition, AI Investments, Product Roadmap, Operations Improvement and Marketing Experiments. Nonblank templates optionally add five editable illustrative initiatives. Template examples must remain clearly distinguishable from the user's real work.

## 6. Initiative workspace

### 6.1 Initiative information

Initiative records include title, intended outcome, category, Impact, Effort, Expense, scoring rationale, confidence, status, planning window, critical-path flag and reason, deprioritization and archive state. Ownership, matrix association, timestamps and IDs support persistence and isolation.

Users add, edit and manage initiatives, link prerequisites, flag critical-path work, deprioritize candidates and archive records. The chart, ranking table, recommendation and editor must reflect the same query-cache data.

### 6.2 Saving and history

Initiative edits use optimistic cache updates and debounced persistence with retry and save/error status. The current debounce is approximately 700ms. Score changes automatically create append-only history entries through a database trigger; clients cannot bypass history simply by using another write path.

Validation exists in both the UI and database. Network or save failure must not be represented as a successful durable save.

## 7. Priority Plan and reviews

### 7.1 Approval and commitments

The approval flow records a monthly or quarterly commitment, period dates, objective and override reason where required. There is no priority-count cap. Users can close plans and review earlier plans.

Each approved priority supports:
- Intended result.
- Owner label.
- Target date.
- Next milestone.
- Evidence / success metric.
- Active, Done or Dropped status.

The owner label is a planning field, not a team membership or permission assignment. This app's private accounts do not provide a shared executive-team workspace.

### 7.2 Weekly execution

Weekly actions are **unlimited** per priority and per plan. They reference an approved priority and carry an action title, due date, completion state and progress note. Users add actions, mark them complete, update progress notes and delete actions. Actions never become matrix markers.

The former three-open-action rule was removed from the database trigger, the Priority Plan screen and all copy in v1.2; no replacement cap exists. Screen copy: “Add the weekly actions needed to advance this priority. Magnus can help you focus on the most important next steps.”

### 7.3 Reviews and audit trail

Review types: weekly, monthly and quarterly. Fields: review date, what advanced, blockers, result evidence, changed assumptions and next move. The form requires at least outcomes or a next step.

The Reviews page also shows decision records and score history, including previous/new scores, leverage values, planning-window changes and timestamps. Review weekly and re-score monthly, quarterly or whenever conditions and assumptions change; review cadence is guidance, not a rigid scheduling restriction.

## 8. Magnus AI and instruction media

Magnus is an optional strategic adviser for the current authorized matrix. A server orchestrator coordinates deterministic specialists for objective/context understanding, scoring challenges, dependencies/sequence and planning. Structured proposals pass through an evaluator before they are presented.

Supported proposal types: rescore, new initiative, critical-path flag, deprioritize, **add weekly action** (must attach to an approved priority in the active plan; any number) and **save review** (draft review fields). Rescore and new-initiative proposals can be previewed as a ghost marker with a movement arrow and a saved-vs-proposed line (**Preview on matrix / Discard preview**). Acceptance is idempotent per suggestion, and a rescore is refused as *Out of date* if the saved scores changed after Magnus proposed it. The user explicitly accepts or rejects suggestions. Acceptance applies the proposed change through the authorized app workflow and records a decision; rejection does not apply the proposed initiative mutation. Conversation records and proposal decisions may still be saved as history.

The model does not have independent permission to mutate matrices or approve plans. Server authorization scopes context to the requesting user's matrix. Failures should explain that the matrix is unaffected and allow retry; normal scoring and planning continue without AI.

### 8.1 Create with Magnus (draft matrix)

Welcome: “Tell me what you are trying to accomplish and which projects or opportunities are competing for your resources. We'll build a draft matrix together. I'll explain my scoring suggestions, and nothing is saved until you approve it.” Options: Type, Speak, See a sample.

- Editable **Matrix context** card: title, decision question, why it matters, outcome that matters most, horizon, constraints. Magnus fills only what the user said.
- Magnus extracts multiple initiatives per message, merges duplicates, keeps tasks out, proposes Impact/Effort/Expense with rationale and confidence; low confidence or unscored items show **Provisional** (unscored defaults 5/5/5).
- **Draft matrix:** same chart geometry with dashed markers and a “Draft — not saved” badge; ranking/leverage from the shared scoring engine. Drag markers or edit numbers; manual edits are sent to Magnus on the next turn.
- Software challenge: when 3+ drafts are all Impact 9–10, Magnus is told to ask which one most directly advances the outcome.
- **Review draft** dialog shows context, every initiative, scores, rationale and computed rank/leverage. **Approve and save matrix** inserts the matrix (client-generated id → duplicate clicks cannot create two) and its initiatives; if initiatives fail, the matrix is removed and nothing is reported as saved. Score history is written by the database trigger. The new matrix opens with a “Your matrix is saved. Next:” banner.
- Desktop: conversation left, draft right. Mobile: Conversation / Draft tabs.

### 8.2 Five coaching stages

Panel buttons: Clarify my objective (Frame), Review my scoring (Evaluate), Help me choose my priorities (Prioritize — any number), Plan next steps (Execute — any number of weekly actions), Review progress (Review — draft review saved only on Accept). One Magnus identity; same orchestrator and evaluator.

### 8.3 Voice conversation

Turn-by-turn (push-to-talk), not hands-free streaming. Controls: **Start conversation → Talk → Stop listening**, **Stop Magnus**, **End**. States: Listening, Transcribing, Thinking, Speaking. Speech → ElevenLabs speech-to-text → the same Magnus draft pathway → reply shown as text and spoken with the owner's ElevenLabs Magnus voice (“Magnus Recreated Dec 2025”). Talking again interrupts playback; only one reply plays at a time. Audio is not stored. API key stays server-side. Denied microphone shows a message and typing continues.

### 8.4 Video status

The Magnus introduction is produced separately in HeyGen using the approved ElevenLabs Magnus voice. The configured video URL, poster and captions are currently absent, so the app displays a labeled placeholder and complete written instructions. Do not invent an embed URL or generate a replacement voice. The video is separate from voice conversation (§8.3).

## 9. Exports

Implemented exports include:
- **PNG:** matrix image.
- **PDF:** summary report and fuller matrix/report export, using existing authorized matrix, rankings, dependencies and plan information available to the export component.
- **Account JSON:** private account data export from Settings.
- **Specification Markdown:** this document from `/spec`.

Do not describe spreadsheet, live integration, collaborative sharing, or a standalone weekly-plan Markdown export as implemented. Export content and cross-device file handling require explicit testing; the existence of an export control alone is not sufficient evidence.

## 10. Data model, authorization and architecture

Private domain records include matrices, initiatives, dependencies, priority plans, plan items, weekly actions, reviews, decision events, score events and AI messages. Profile records support account display information.

- Private tables carry an `owner_id`, with row-level security on reads and writes.
- Nested records validate parent ownership through ownership helpers and validation triggers.
- Cross-owner reads, updates, inserts, deletes and spoofed ownership must fail.
- Score bounds, cycle restrictions and weekly-action limits are database-enforced and mirrored in the UI.
- Score-event history is written automatically and is append-only.
- Ordinary browser reads/writes go directly to Lovable Cloud under ownership policies.
- Magnus AI and account deletion use authenticated server functions.
- Account deletion is designed to remove user-owned application data and the account.

Technology: React 19, TanStack Start/Router, TanStack Query, Tailwind CSS v4, shadcn-style controls, Lovable Cloud authentication and Postgres, Lucide icons, `html-to-image` and `jsPDF` exports. Preserve authenticated server boundaries and the shared deterministic scoring engine.

## 11. Public homepage and instructional content

The homepage targets overwhelmed small and mid-sized business founders. It contains, in order: hero and sample screenshot; prioritization problem; "Sound familiar?" founder pain points; before/after; who it's for; product/matrix reveal; four quadrants; outcome-focused benefits; four timed process steps; fictional worked example (mathematical ranking versus recommended sequence); Magnus introduction; execution-plan example; common use cases; privacy explanation; twelve-question FAQ; final CTA; footer. No free-trial, pricing, testimonial or statistic claims.

The hero uses an actual screenshot of the fictional sample matrix. A larger interactive demonstration below it allows experimentation without persisting user data. Signed-in account-entry CTAs change to Open Dashboard. Public navigation includes How It Works, Instructions, Spec and account access.

The Instructions page covers leadership choices, scarce resources, the formula, axes/quadrants, defensible scoring, Expense, prerequisites, critical path, unlimited approval, review and a worked interactive example. The complete text remains available without video.

## 12. Aesthetics — Integral Corporate Style Guide v4.2

- Inter for body/UI, Poppins for display headings and branding; JetBrains Mono for numerical/code presentation.
- White/light-gray foundations, near-black text and restrained contrast; semantic color tokens support the theme.
- Approved accents: Hero Blue **#387CFF**, yellow **#FFD329**, pink **#FF5CB8**, mint **#7CEDC0**, cyan **#5CE4FF**.
- Hero Blue is the primary accent. Muted red is reserved for destructive actions and form errors; never a normal quadrant or marketing accent.
- Quadrant tints: Do First blue; Selectively Invest yellow; Work In mint; Delay neutral gray.
- Public sections alternate white and light gray with generous spacing; strong CTA areas use black/charcoal.
- Matrix-specific geometry remains unique to this product while shared typography and colors match the Integral family.
- Visual iteration: show the actual product rather than abstract artwork; the homepage screenshot uses fictional sample positions chosen to avoid overlapping labels, with a visible sample-data label.
- Learned heuristic: distinguish a static screenshot from an interactive example; never present fictional examples as client results or imply unapproved pricing, integrations, testimonials or certifications.
- Known historical mismatch: earlier roadmap styling notes described red quadrant emphasis and Inter Tight; these are obsolete, not current design guidance.

## 13. Verification and release status

**v1.2 verification (October 2026):** PASS — 30+ open actions across 5 priorities saved/reloaded, completed, deleted; Create with Magnus end-to-end (sample → 4 drafts → “Move the referral program to Impact 8 and Effort 3” moved the marker, leverage 2.00 → approve, double-click created one matrix, 4 initiatives, 4 score-history rows); voice turn tested with a recorded Magnus clip as the microphone (transcribed, draft updated, voice playback started). Built but not end-to-end tested: ghost preview/stale refusal, Magnus weekly-action and review accepts, all-high-Impact challenge, denied-mic message. Not run: real human microphone, mobile, fresh two-account isolation, full regression.

Earlier project work reported automated scoring tests and browser checks covering matrix creation, score persistence, priority approval, a weekly action, exports, Magnus interaction and two-account isolation. Those historical reports should not be substituted for a fresh full acceptance run after subsequent changes.

Still requiring explicit current verification: confirmation/reset email delivery, hosted OAuth settings, physical phone/tablet and second-device testing, matrix lifecycle flows, complete review submission, full export content, and exhaustive acceptance/security regression. The original 18-test checklist is not newly certified by this document.

Release recommendation: continue controlled beta evaluation; do not claim public-launch readiness solely from this specification. Complete the remaining verification before a broad launch. The footer Spec/Copy links are a dev-stage convenience to remove before public launch.

## 14. Owner-supplied items and excluded claims

Pending approved Magnus media/artwork and final Privacy Policy / Terms text. No fabricated asset URLs or legal/certification claims. Public Privacy/Terms links are not supplied until approved text exists.

This app does not currently claim enterprise team permissions, shared client-company tenancy, independent executive scoring/consensus, integrations, subscription pricing or automatic resource scheduling. Those are potential separate product decisions, not requirements to silently add.

## 15. Companion master copy

The companion **Integral Priority — Master Copy** document inventories the current fixed wording on all pages, shared navigation, dialogs, controls, sample templates, accessible labels and authored state/error messages. Dynamic private data, arbitrary AI replies and external service error wording are not fixed copy and are represented as variable content rather than exported.


## 16. Payments — Lifetime Access

- **Price:** $97 one-time, USD, lifetime access. No subscription, no free tier.
- **Pay first:** after sign-up every app page redirects to `/checkout` until paid; Settings stays reachable. Magnus and voice server functions also refuse unpaid accounts.
- **Checkout:** our own page (not Stripe's hosted checkout): name, email, US address, and an embedded Stripe card field. Card data goes directly to Stripe.
- **Confirmation:** after the card is charged, the server re-reads the payment from Stripe and checks owner, status and amount before granting access. Users cannot grant themselves access (database rejects client writes).
- **Existing accounts** created before payments launched were granted access automatically.
- Stripe receipt emails go to the checkout email.

## 17. Connect to Claude and ChatGPT (MCP)

- Address: `https://integralpriority.com/mcp`. Every paid user connects their own account; the assistant acts only as that user (database privacy rules apply). Unpaid accounts are told lifetime access is required.
- Sign-in uses OAuth: the assistant opens **Connect <assistant> to Integral Priority** (`/.lovable/oauth/consent`). Signed-out visitors go to sign-in or sign-up and return to the same screen. Buttons: **Approve**, **Cancel connection**. No tokens or passwords are copied.
- Read tools: list matrices; show a matrix (context + leverage ranking + quadrants, from the shared scoring engine); show the active Priority Plan with weekly actions; show recent reviews.
- Change tools (assistant confirms with the user first; no delete): add initiative with scores; update Impact/Effort/Expense (score history recorded); add weekly action (unlimited); mark a weekly action done.
- Settings → **Connect to Claude or ChatGPT** shows the address with Copy and setup steps.
- In-app Magnus still requires Accept before any write; assistant changes are the user's own direct actions.

## Appendix — v1.2 change summary

- **Create with Magnus** (`/app/magnus/new`): primary option on My Matrices next to **Create manually**. Magnus asks for the five context fields (decision question, why it matters, outcome that matters most, horizon, constraints), extracts initiatives from ordinary language, proposes Impact/Effort/Expense with a rationale and confidence, and marks uncertain scores **Provisional**. A draft matrix (dashed markers, “Draft — not saved”) updates with every turn; ranking uses the shared scoring engine. Users can drag draft markers or edit numbers. **Review draft → Approve and save matrix** is the only write; a double click cannot create a duplicate.
- **Five coaching stages** in the Magnus panel: Clarify my objective, Review my scoring, Help me choose my priorities, Plan next steps, Review progress. New suggestion types: add weekly action (attached to an approved priority, any number) and save review (draft review). All require Accept. Score suggestions can be shown as a ghost marker with an arrow (**Preview on matrix / Discard preview**). Accepting a rescore whose saved values changed in the meantime is refused (“Out of date — nothing overwritten”).
- **Voice (turn-by-turn, push-to-talk):** Start conversation → Talk → Stop listening → Magnus replies in text and in the Magnus ElevenLabs voice. Controls: Talk, Stop listening, Stop Magnus, End. Not hands-free or real-time streaming. Audio is not stored. Typing works without a microphone.
- **Weekly actions:** unlimited.