Components

Agents and personas

This page lists every agent the Ark kernel and its sweep automations run, and every persona that changes how an agent works: when each is invoked, which model it uses, where its prompt lives and when it needs updating. It is the one list. A change to a persona in the kernel changes this page in the same session.

Three kinds. Task personas are specialists a task pulls in on top of its kind; they change both the Builder's working method and what the Reviewer accepts. Agent roles are the fixed cast the kernel runs at each stage. UAT personas are the users an intent declares for its acceptance journeys; they are data, not code. The Agent Operators, Verifiers and Pod Leads who run and sign off the work are people, on People and roles. No agent on this page holds a seat or signs anything off.

Task personas

A persona is a task attribute, persona: in the task graph, so it works in any lane. The kernel accepts the values in TASK_PERSONAS and labels the ones in EXPERIMENTAL_PERSONAS as experimental on plans and dispatch logs. There are two.

Persona Status Invoked when Set by
ux Standing A task builds or changes a surface people look at: a page, a component, a document template or an email template. Never on API, data, config or test tasks. The Lead sets persona: ux when it decomposes, including any task that changes a Lightning component. os plan flags UI-looking tasks that carry no persona, so a person can add it to a task the Lead missed or one written by hand.
qc Experimental Every regression task: the regression_tests stage at the end of each code-rigor track's graph template (patch, tech_health, golive_gap, product_pitch, funded_pitch, support_push and business_tools). The kernel, on every regression task the Lead plans, and it pins those tasks to the local runtime. A regression task written by hand needs persona: qc and runtime: local in the task graph.
persona: ux UX persona Standing

Added at the Ark Operator Workshop on 14 Sep 2026; the standing harness for UI work since 16 Sep.

The Builder must

  • Write a design brief before any code: who uses the surface, the one primary action, the loading, empty and error states, the existing surface it should feel identical to, and the numbered UI acceptance criteria the task touches.
  • Style from the customer's brand tokens and the Kaptio Flux design system, reusing existing components, with no second styling system or icon set. A Salesforce Lightning component matches the Lightning UI around it (base components, SLDS classes and styling hooks), uses Flux only through the shared lwcFluxStyles module, and keeps its text in Custom Labels.
  • Check its own diff for raw hex and rgb colours, framework-default palette classes and Tailwind arbitrary values, and replace every leak with a token.
  • Render where people use the surface, with data shaped like the customer's, at the viewport its users work at (375px only for phone surfaces). A Salesforce component is rendered on the acceptance org after the separately approved deployment step; the Builder does not deploy. Check the design and each criterion one by one, measure every clickable control, fix and re-render: at least one iteration and at most three.
  • Say in its summary which brief it wrote, which tokens and components it reused, what the token check found, where and at which viewport it rendered, how many render iterations it ran, each criterion with pass or fail, and what changed after looking.

The Reviewer requests changes when

  • Hardcoded colours, fonts or framework-default palette classes that bypass tokens, or Tailwind arbitrary values.
  • A second styling system or icon set.
  • Placeholder copy, lorem ipsum, or emoji used as icons.
  • Empty, loading or error states missing from a surface that needs them.
  • External CSS or web fonts loaded into a Salesforce component, or user-visible text hardcoded instead of a Custom Label.
  • No render evidence in the summary or the diff, evidence that is not from the surface people use (a Lightning component rendered only in Jest), or no criterion-by-criterion check.
Model
OS_MODEL_UX, or roles.ux.model on the intent. Without either, the builder model.
Owner
Harness: Alex. Content: proposed for Örvar (Product Designer) with each pod's Product Direction, which keeps UX consistent from 2 Nov.
Prompt lives in
src/orchestrator/builder.ts (buildPersonaInstructions)
src/orchestrator/reviewer.ts (UX acceptance criteria)
src/orchestrator/lead.ts (when the Lead sets it)
src/orchestrator/plan-gate.ts (UI tasks with no persona)
Tests
tests/operator-workshop-2026-09-14.test.ts
Mirror
.cursor/skills/ux-design/SKILL.md: the same four stages for native Cursor sessions. Change both together.

Update it when

  • Kaptio Flux tokens or components change.
  • A new kind of surface needs its own checks, as Lightning components did (documents next).
  • Reviewers or QA keep flagging the same UI defect.
  • The render tooling changes.
persona: qc QC persona (quality control) Experimental

Added on 13 Oct 2026 (INT-0372). It stays experimental until QA has used it on real test packs.

The Builder must

  • Start from what the test proves, the acceptance criterion or Jira requirement and the data it needs, and name both in the bundle.
  • Reuse the shared framework and existing tests before writing new ones, one scenario per test.
  • Assert what the user sees and what Salesforce saved, check browser console errors, wait on observable state rather than fixed sleeps, and create and clean up its own data.
  • Prove each test with two clean local runs, and with a failing run when the behaviour breaks where it can show one.
  • Publish only through the kernel, as bundles. Never delete or loosen an admitted test without QA.

The Reviewer requests changes when

  • A summary that names no bundle, or a bundle with no proves.
  • A test that can only pass: a screenshot alone, a SOQL count of at least zero, an assertion on a value the test just set.
  • No two local passing runs for each test.
  • A test that reads an instance URL, a record id or an sf org alias instead of the org the Kaptio DX run supplies.
  • Apex test class source in a bundle, or a library Apex test typed apex instead of script.
Model
The builder model.
After the run
The kernel publishes each bundle to Kaptio DX as a proposed test, proves it with two consecutive passing runs on the acceptance org, and a QA admits it. Publishing is a dry run unless ARK_REGRESSION_PUBLISH=live.
Owner
QA owns the checklist and Magda reviews any change to it (recorded in the kernel). Harness: Alex.
Prompt lives in
src/orchestrator/builder.ts (buildQcPersonaInstructions)
src/orchestrator/reviewer.ts (QC acceptance criteria)
src/orchestrator/regression-tests.ts (publish and prove)
src/orchestrator/taskgraph.ts (EXPERIMENTAL_PERSONAS)
Tests
tests/regression-tests.test.ts

Update it when

  • The Kaptio DX runner or its publish contract changes.
  • QA finds admitted tests flaky or unable to fail.
  • The shared test library changes its conventions.
  • QA has used it on real packs and decides whether it graduates from experimental.

Agent roles

Every role runs as an agent through the engine (Cursor by default), except the verifier stages, which run commands, and the scheduled sweep launchers, which call cursor-agent directly. Inside os run and the daemon, an intent's roles.<role>.model (lead, builder, reviewer, verifier, probe, uat or ux) wins over the defaults below for that run. os sweep reads only roles.builder.model, and the Kai Actions dispatcher has its own order. Standalone os uat, os render and os pack, the heal planner and the pulse writer use the defaults. The SF Devs service sets the same defaults through Terraform, except the builder fallback. Read-only roles run in plan or ask mode and cannot edit files.

Role Runs when Access Default model
Lead os run, or the daemon, meets an aligned intent with no task graph. os plan shows and approves the result; it does not plan again. Read-only claude-opus-5-5-high
Builder Dispatch starts one Builder per task once its dependencies are done. When the Reviewer requests changes, the Builder gets the notes for one fix pass; if they survive it, Ark writes a review handover for a person. Writes code composer-2.5
Reviewer After every Builder task. For a local Builder on a code-rigor track, the first pass has two reviewers, one with the task context and one that sees only the diff, and the kernel reconciles their verdicts; a re-review after a fix runs both on any track. OS_DUAL_REVIEWER_ENABLED forces either choice. A cloud Builder gets one reviewer, on the MR the agent opened. Read-only composer-2.5 (follows the builder model)
Probe Probe tasks. The tracks that require probe evidence run them before decomposition: tech_health, golive_gap, migration, product_pitch and funded_pitch. Read-only composer-2.5 (follows the builder model)
Verifier stages After integration, before UAT and the MR, before release, after merge, and after release. Read-only none (no agent runs)
UAT agent os uat, and the UAT cycle after SIT when the intent declares verification.uat. os uat refuses until the org readiness checks pass; the cycle inside os run does not check them. Writes journey specs composer-2.5 (follows the builder model)
Judge After a UAT or render-regression fix loop. Read-only the reviewer model
Skeptic After the Judge, in the UAT and render-regression evidence loops. Read-only the reviewer model
Defect-visible check Render regression, before any composite claims a fix. Read-only the reviewer model
Visual-evidence capture Tracks whose policy turns on visual evidence, when a task touches UI paths. Runs the app the builder model
Render capture Intents that declare a render-regression configuration for document templates. Runs the app the builder model
Final-post skeptic os pack <id> --send, the only way a pack reaches a customer. Read-only the reviewer model
Sweep agent Scheduled launchd jobs. A programme's launcher starts a local cursor-agent session; DuVine's daily tick is a plan-first cycle through the Kai Actions dispatcher. os sweep <id> runs one cycle on a cloud agent and ledgers it to the intent. Writes the intent; posts to Slack the cursor-agent default (launchers); the builder model (os sweep)
Kai Actions dispatcher A Kai handoff from Slack (a mention, or any question in an Ark-routed channel), or a scheduled plan-first tick. Plans read-only, then executes kimi-k3-high for execute cycles, unless the intent pins roles.builder.model
Heal planner A heal check raises a finding that has no deterministic plan. Read-only the check's own model, else the Lead model
Board pulse writer The board shows the Pulse feed. Read-only the builder model

Lead

Turns an aligned intent into a task graph: tasks, briefs, repos, allowed paths, quality gates and dependencies. Several reasoners plan in parallel and the kernel keeps one graph, checked against the track's graph template. It reads the front matter and the intent body through the run-log window, never the whole run log.

Model setting
OS_MODEL_LEAD OS_DECOMPOSE_REASONERS sets how many reasoners plan in parallel (default and minimum 2).
Lives in
src/orchestrator/lead.ts
Update when
Briefs keep missing what builders need, or a track template, task kind or persona changes. The Lead decides when to set a persona.

Builder

Carries out one task: edits files in an isolated git worktree on the machine running Ark, or on a Cursor cloud VM that pushes its own task branch, and runs the task's quality gate. Never deploys or merges. Its prompt carries the brief, the task kind, any persona, the lane's safety rules, the file scope and the intent constraints, but not the intent body. On Apex tasks it also carries the Apex code quality rule (see Gates and rules). On a retest task it runs the ticket path on a named org, saves proof and changes no product code.

Model setting
OS_MODEL_BUILDER A stalled or empty run retries once on OS_MODEL_BUILDER_FALLBACK (code default gpt-5.3-codex-fast; the SF Devs service uses gpt-5.3-codex-high-fast). UX tasks use OS_MODEL_UX or roles.ux.model when set.
Lives in
src/orchestrator/builder.ts
src/orchestrator/dispatch.ts
Update when
Reviews keep sending work back for the same missing discipline, or a lane safety rule (patch safety, metadata footprint) changes.

Reviewer

Reviews each task in a fresh session against its brief, design source of truth, persona acceptance criteria and the lane's metadata and patch rules. On local runs it also reads the Builder's closing summary. Approves or requests changes, with a severity.

Model setting
OS_MODEL_REVIEWER
Lives in
src/orchestrator/reviewer.ts
Update when
Approved work keeps failing QA for one reason, or a persona's acceptance bar changes.

Probe

Read-only investigation that grounds a brief in evidence and returns a structured verdict. A run that returns only prose does not count as a probe.

Model setting
OS_MODEL_PROBE
Lives in
src/orchestrator/probe.ts
Update when
Probe verdicts stop matching what a track needs before it can plan.

Verifier stages

Not one agent but the kernel's verification stages: SIT quality gates after integration, org readiness checks on the acceptance org, pre-release checks, post-merge checks, and outcome measurement with os verify (scripts, SOQL, BigQuery and Loki against success_metrics). Deterministic commands with no agent of their own; fix tasks from a failed SIT audit go to Builders.

Model setting
OS_MODEL_VERIFIER (default composer-2.5) only labels the SIT audit and assembly-check run-log entries; no verifier stage calls a model.
Lives in
src/orchestrator/verifier.ts
src/orchestrator/org-readiness.ts
src/orchestrator/verify-pre-release.ts
src/orchestrator/post-merge-verify.ts
Update when
A lane adds an evidence requirement, or a check keeps passing work that QA then rejects.

UAT agent

Writes or updates journey specs in the target repo, boots the app, walks each journey as its declared persona, screenshots every step that matters, and returns findings that say why each one hurts that persona. Triage turns the findings into fix tasks.

Model setting
OS_MODEL_UAT
Lives in
src/orchestrator/uat.ts
src/orchestrator/uat-triage.ts
src/orchestrator/uat-cycle.ts
Update when
The app boot or journey tooling changes, or findings stop being specific to the persona.

Judge

Sees only a before/after composite and the finding, with no context from the Builder, and says whether the finding is fixed.

Model setting
OS_MODEL_REVIEWER
Lives in
src/orchestrator/compose.ts
Update when
Composites change shape, or the Judge passes fixes a person can see are not there.

Skeptic

Tries to falsify a fix claim: wrong fixture, wrong field, an unexercised scenario, a regression next door. Output it cannot parse counts as inconclusive, which caps confidence at medium.

Model setting
OS_MODEL_REVIEWER
Lives in
src/orchestrator/skeptic.ts
Update when
It upholds claims a person later disproves.

Defect-visible check

Stage-0 repro: confirms that the pre-fix capture shows the claimed defect. Only that, together with a measured difference between before and after, lets a pack claim a before/after.

Model setting
OS_MODEL_REVIEWER
Lives in
src/orchestrator/repro-gate.ts
Update when
Repro verdicts and the pixels disagree.

Visual-evidence capture

Captures a before/after screenshot pair against the intent's bootable app and records it. A failed capture records a gap and never fails the run.

Model setting
OS_MODEL_BUILDER
Lives in
src/orchestrator/visual-evidence.ts
Update when
The app boot recipe or a track's visual policy changes.

Render capture

Captures document renders before and after a fix, for render regression.

Model setting
OS_MODEL_BUILDER
Lives in
src/orchestrator/render-regression.ts
Update when
The preview URL pattern or the document actions change.

Final-post skeptic

The binding last check of the publish gate: reads the final assembled post and blocks it when a caption does not describe what its image shows, or when a non-engineer could not do the retest from the message (checks G10 and G11).

Model setting
OS_MODEL_REVIEWER
Lives in
src/orchestrator/publish-gate.ts
Update when
A pack claim gets past it that a person then has to correct.

Sweep agent

Runs one sweep cycle by following the programme's prompt file: reads the channels, answers or fixes, and records what moved in the run log. Most programme prompts write nothing on a quiet tick.

Model setting
roles.builder.model is read by os sweep, after --model and before OS_MODEL_BUILDER. The launchers pass no model.
Lives in
automations/*-sweep-launch.sh
src/orchestrator/sweep-cycle.ts
automations/*-sweep-prompt.md
Update when
A programme's channels, rules or quiet-tick behaviour change.

Kai Actions dispatcher

Runs Slack-triggered sweeps and scheduled plan-first ticks. Triage sends a read-only ask to one cycle with no plan. A literal, bounded ask runs direct once its plan attests as_asked; from outside the roster, only a Config-lane ask from Kaptio staff or a partner qualifies. Everything else posts a plan and runs after approval: from the operator who asked, from a programme approver when the requester is outside the Agents & Tooling roster, or from any team member on a scheduled tick. The precedent gate can auto-approve a plan whose every item has settled precedent; in the default shadow mode it only records its decisions.

Model setting
SWEEP_DEFAULT_MODEL sets that default. SWEEP_EXECUTE_MODEL wins over the intent pin, and a failed execute retries once on SWEEP_RETRY_MODEL. Plan cycles use the intent's roles.lead.model, else SWEEP_PLAN_MODEL, else auto. Lane triage and verdict reads use SWEEP_VERDICT_MODEL and the read-only lane uses SWEEP_READONLY_MODEL; these and the retry default to claude-sonnet-5-thinking-high.
Lives in
automations/sweep-dispatcher.ts
automations/sweep-requester-policy.ts
automations/sweep-plan-wrapper.md
automations/sweep-execute-wrapper.md
Update when
The approval protocol or the routing registry changes.

Heal planner

For a tier-2 heal check, drafts a JSON repair plan from the finding, the allowed operations and earlier successful heals. The kernel validates the plan against static policy and live guards before anything runs.

Model setting
OS_MODEL_HEAL
Lives in
src/heal/planner.ts
automations/heal-registry.yaml
Update when
A heal check or the allowed operations change.

Board pulse writer

Turns raw feed items, such as commit subjects and run events, into one business sentence for the board's Pulse feed. Each item is translated once and cached.

Model setting
OS_MODEL_PULSE
Lives in
src/board/pulse-plain.ts
Update when
Pulse sentences drift from what the intents actually did.

UAT personas

An intent that promises evidence a person can see declares its users in verification.uat.personas: a name, an optional profile, and an optional viewport (a Playwright device such as iphone-14, or a label such as desktop-1920). Each journey in verification.uat.journeys names a persona, a label and a brief.

The UAT agent walks every journey as its persona, and each finding says why it hurts that persona. Triage turns findings into fix tasks, and the Judge and the Skeptic decide from before/after composites whether each fix holds. os uat refuses until the org readiness checks pass, and a not_met verdict blocks os mr until a person records the gap with os uat <id> --accept-gap.

Update an intent's UAT personas when the customer's users change: a new role, a new device, a new market. Nothing in the kernel changes for that.

When to introduce a new persona

A new task persona earns its place when all of these hold:

  • A class of task recurs across lanes and needs its own working method, more than one brief can carry.
  • It has evidence the Reviewer can check from the summary or the diff, the way UX has render screenshots and QC has bundles and proving runs.
  • Reviews or QA keep sending that class of work back for the same missing discipline.

It is something else when:

The need Where it belongs
Instructions for one intent or one taskThe task brief
A repository's conventionsThat repository's AGENTS.md
Which task kinds a lane runs, in what orderThe track's graph template, templates/graphs/
Evidence and sharing rules for a laneLane policy, src/intent/lane-policy.ts
A person's decision or sign-offA seat and a gate: People and roles, Gates and rules

Adding or changing a persona

  1. Add the key to TaskPersona and TASK_PERSONAS in src/orchestrator/taskgraph.ts, and to EXPERIMENTAL_PERSONAS until it has run on real work.
  2. Write its checklist in buildPersonaInstructions (src/orchestrator/builder.ts) and its acceptance criteria in src/orchestrator/reviewer.ts.
  3. Tell the Lead when to set it in src/orchestrator/lead.ts, or have the kernel set it for a task kind, as it does for QC.
  4. If it needs its own model, add an OS_MODEL_* variable and a roles.<persona>.model key (src/config.ts, src/orchestrator/role-models.ts), and route the persona's tasks to that model in configForTask (src/orchestrator/dispatch.ts).
  5. Test the prompt text and the review criteria.
  6. Name the person who reviews changes to its checklist, add it to this page, and add a changelog entry.
  7. If people use the same method in native Cursor sessions, ship a matching skill and change the two together.

Keeping this page true

A change to any of these files in kaptio-ark updates this page in the same session, under the kernel docs-sync rule:

src/orchestrator/taskgraph.ts
src/orchestrator/builder.ts
src/orchestrator/reviewer.ts
src/orchestrator/lead.ts
src/config.ts
src/orchestrator/role-models.ts
src/orchestrator/uat.ts
src/orchestrator/compose.ts
src/orchestrator/skeptic.ts
src/orchestrator/repro-gate.ts
src/orchestrator/publish-gate.ts
src/orchestrator/visual-evidence.ts
src/orchestrator/render-regression.ts
src/orchestrator/sweep-cycle.ts
automations/sweep-dispatcher.ts
src/heal/planner.ts
src/board/pulse-plain.ts
.cursor/skills/ux-design/SKILL.md

Checked against kaptio-ark main at c38d74336 on 2 Nov 2026.