Persona#
Persona is Computaco's user-simulation, cognitive mindstream, perception, and UX optimization system. Rather than splitting into a separate engine, Persona builds directly on the same Computers + Harnesses + Multi-Agent World substrate: simulated users are simply agents running psychometric and energy-based Harnesses.
What Persona models#
- Cognitive Mindstream & Top-of-Mind Objective: Models the active question in a user's head as they land, scroll, saccade, and click (e.g., "What is this all about?", "Can I trust the proof?", "What's the catch?"), tracking six core expectations (
what_is_this,fit_for_me,proof_trust,cost_catch,time_to_value,agency_safety) and surfacing the single highest-leverage objective to optimize for. - Red Spots & Green Spots Traction Map: Classifies every scroll stop and click beat into conversion-driving Green Spots (
+Δ%), hesitation Amber Spots, or drop-off Red Spots (-Δ%), paired with concrete UI and copy fixes. - Eyeball & Gaze Prediction: Predicts fixation counts, scanpath dispersion, visual clutter, and undersized hit targets (
< 44 px) via SeekUI and pixel salience maps. - Psychometric Cohorts (
P · A · C · S · E): Evaluates every step across five continuous affective dimensions — Pleasure, Arousal, Control, Stress, Effort — modulated by parameterized user profiles (Impatient Buyer,First-Time Novice,Power Operator,Stressed On-Call,Accessibility & Low-Vision). - Speculative Affect Geometry & Differentiable UX Optimization: Pairs empirically validated HCI laws (Fitts's Law, Hick-Hyman) with information-theoretic affect proxies (
Val, Ar, Φ, r_eff, CF, SM, dark-pattern contaminationContam, and Option Space RatioOSR = T/V), enabling gradient-based UI parameter optimization (scripts/persona/differentiable_opt.py). These geometric coordinates are explicitly labeled as speculative proxies to be calibrated alongside empirical telemetry. - Cortical / Brain Activity Prediction (Non-Commercial Only): Projects predicted visual-cortex and prefrontal load onto the
fsaverage5cortical surface using MetaTRIBE v2. Strictly gated under CC BY-NC 4.0 to approved non-commercial research organizations.
Autonomous coding-agent CI gates#
Coding agents and CI pipelines can run Persona headlessly to prevent conversion regressions, unclear first-fold copy, accessibility regressions, or dark patterns.
Practical CI objectives (DEFAULT_PERSONA_GATES)#
| Flag | Default | Protects against |
|---|---|---|
--min-conversion | >= 40% | Cohort conversion dropping below your target floor. |
--max-bounce | <= 35% | Unclear first-fold copy causing visitors to abandon immediately. |
--max-clarity-ms | <= 5000 ms | Failing the "5-second test" ("What is this all about?"). |
--max-red-spots | <= 1 | High-dropoff traps on the critical scroll/click path. |
--max-frustration | <= 0.60 | Sharp mid-journey frustration cliffs (p90). |
--max-contam | <= 0.20 | Anti-dark-pattern gate: blocks gains achieved via hidden pricing, buried cancel links, or manipulative opacity. |
--min-osr | >= 0.45 | User agency floor: preserves transparent, reversible exits. |
--max-unresolved | <= 1 | Leaving critical user questions unanswered at exit. |
--min-cohort-floor | >= 20% | Equity floor: prevents optimizing for power users by breaking novices or low-vision users. |
--max-regression | <= 2.0 pp | Regressing conversion relative to a --baseline journey. |
CLI & SDK usage#
# Inspect mindstream, expectation spectrum, and red/green scroll spots
node scripts/persona/cli.mjs simulate --journey landing-scroll
# Enforce CI gates (exits 0 on PASS, 2 on GATE FAIL)
node scripts/persona/cli.mjs gate --journey landing-scroll \
--min-conversion 50 --max-contam 0.20 --json
# Run closed-loop optimization until every gate passes
node scripts/persona/cli.mjs optimize --journey landing-scroll --min-conversion 50
import { createPersonaClient, journeyFromTrace } from './scripts/persona/sdk.mjs';
const persona = createPersonaClient({ gates: { minConversionPct: 50, maxContam: 0.20 } });
const journey = journeyFromTrace(playwrightEvents);
const { cohort, verdict } = persona.gate(journey);
if (!verdict.pass) {
console.error(cohort.topOfMind.optimizeFor, verdict.failures);
process.exit(verdict.exitCode); // 2 = gate fail
}
Explore interactively in the Persona Console Workspace or read the Persona Product Overview.