human(ish)

Study file reference

Every field a humanish.study.v3 file can set, with its type, default and meaning, plus persona files and scripted scenarios.

A study file is YAML with schema: humanish.study.v3. This page lists every field the parser accepts. How a study works explains the terms on one annotated file, and the own-app guide builds a complete study for your app.

Keep study files in one of three folders

humanish/studies/*.yaml          committed studies anyone who clones the project can run
.humanish/studies/*.yaml         ignored local studies
.humanish/local/studies/*.yaml   ignored private or machine-specific studies

humanish run <id> finds a study by its id in these folders. Private repository targets, preview URLs and local variants belong in the ignored folders, and you can run any study file by path:

npx humanish watch .humanish/studies/local-dogfood.yaml --dotenv .humanish/local/provider.env
npx humanish run .humanish/studies/local-dogfood.yaml --json --no-open

--dotenv loads values into the humanish process, and the names a study lists in subject.env are then passed to its sandbox. The run records those names and never their values. Persisted text is scrubbed for known values and secret patterns, with the coverage limits described under verify before sharing.

Check a study before you run it

npx humanish study list --json
npx humanish study show first-run --json
npx humanish study check first-run --json

None of the three creates a desktop or calls a model. study show prints the resolved study, including the persona text each participant receives. study check parses the file and reports problems with code HUMANISH_STUDY_INVALID:

  • A field the parser does not know fails, and the message lists the known fields at that level and suggests the closest one. A misspelled runtme in a participant entry fails with that entry's index.
  • A field the study's route does not read fails, and the message names the route, such as "route: preview reads no caps; remove the block."
  • The route must match the subject, execution.target and the actor. When they disagree, the message names the route they take.

study check and run also report two advisory warnings for computer-use and shared-world participants. Neither warning prevents execution, and runs record them as study.warning events in the bundle:

  • Scripted mission: actor.mission, participant instruction, or tasks[].goal contains a numbered or bulleted step list, chained UI actions, quoted control labels, CSS selectors, or a URL other than the subject's entry point. The warning quotes at most three matching lines per field and gives a situation-style example. Describe the participant's situation and desired outcome so the study can show where they would get lost. Scripted-browser and terminal studies and researcher criteria in tasks[].success are excluded.
  • Missing persona background: a participant has no assigned persona, or its file has no background. Add a short, fictional account of their relevant experience and situation. Run humanish study show <study> --json to see what the participant receives, including inherited persona context.

A persona the study names that has no readable file is not a warning: study check fails, as in Describe a participant in a persona file.

The tables below give each field's type and its default when you leave it out. "required" means the study fails without it.

Look up a top-level field

FieldTypeDefaultMeaning
schemastringrequiredhumanish.study.v3. humanish refuses a humanish.lab.v2 file, and humanish migrate converts it.
idstringrequiredThe study's name on the command line. It starts with a letter or digit, followed by letters, digits, _, . or -.
titlestringnoneOne line that study list, study show and the TUI print. The run review, run.json and the Observer show it with any secret in it redacted.
descriptionstringnoneLonger text that study show and the TUI print.
routepreview, computer-use, shared-world, scripted or terminalrequiredHow the study runs. How a study works describes each one.
modedry-run or livedry-runlive runs participants. A dry run writes a synthetic run with no browser, model, key or spend. --dry-run on the command line forces a dry run.
subjectmappingrequiredThe product under study. Subject fields.
actormappingrequiredWhat drives every participant, and the task. Actor fields.
participantsnumber, mapping or list4 on preview, 1 on computer-use; required on shared-worldWho takes part. Participant fields.
surfaces[desktop] or [desktop, mobile][desktop]scripted only: the viewports the scenario replays on.
capsmappingnoneSpend and time limits. Each route reads its own keys. Caps.
executionmappingnoneWhere participants run and for how long. Execution fields.
scenariostringrequired on scriptedscripted only: a scenario id from humanish/scenarios/, or a path to a scenario file. Scripted scenarios.
policiesmappingevery policy falsePermissions the study grants. Policies.
reviewmappinganalysis onWhat runs after the participants finish. Review fields.
defaultsmappingnonedefaults.open (boolean): whether run and watch open the Observer when the run finishes. --open and --no-open override it. Without it, only watch in a terminal opens.
commsmappingnoneAn inbox each participant can read, for email-gated flows. Comms fields.

Declare the product in subject

subject.source says what kind of product the study runs on, and each source takes its own fields. A field set on a source that cannot use it fails at parse.

subject.sourceThe productRoutes
app-urlAn app that is already running at subject.appUrl.computer-use, shared-world, scripted
cloneRepositories humanish clones, builds and serves inside each hosted desktop.computer-use, shared-world, scripted
local-treeYour working tree, packed and served inside each hosted desktop. Gitignored files, .env* files and other secret-shaped files are left out.computer-use, shared-world
desktop-cliA CLI the participant uses in a terminal window on a hosted desktop.computer-use
terminal-productA CLI an agent studies in a terminal sandbox, starting from its public pages.terminal
local-appA dev server on your machine that your own code drives through the library. The CLI refuses it.computer-use
this-repoNothing runs: the preview writes a sample run.preview
FieldTypeDefaultMeaning
subject.sourceone of the seven aboverequiredWhat kind of product this is.
subject.appUrlhttp(s) URLrequired on app-url and local-appThe address participants open. A URL other than 127.0.0.1 or localhost needs policies.allowPublicTargets: true. On local-app it must be loopback. A user name, a password or a credential parameter such as token= in it is refused.
subject.reposlist of owner/reporequired on cloneThe repositories to clone.
subject.clonemappingnoneclone only. subject.clone.depth: git clone depth, default 1. subject.clone.keep: keep a failed participant's sandbox for debugging, default false. subject.clone.fanout is read by no route and refused.
subject.localTreemappingnonelocal-tree only. exclude: extra paths or file names to leave out of the archive. keep: keep a failed participant's sandbox, default false. maxArchiveBytes: the upload limit, default 256 MiB.
subject.servemappingrequired on clone and local-treeHow to start the app inside the sandbox (below).
subject.envlist of variable namesnoneclone and local-tree: names whose values humanish reads from your environment or --dotenv and passes to the app. The run records the names only.
subject.envValuesmapping of name to stringnoneclone and local-tree: non-secret values committed with the study, such as a public base URL or a feature flag. They are recorded in the run, so a value that looks like a secret or a local path fails at parse.
subject.statemappingnoneclone and local-tree: seed steps, external state and shared-world checkpoints (below).
subject.productmappingrequired on terminal-product and desktop-cliThe CLI under study (below).
subject.publicTarget{ owner, authorized: true }noneapp-url on shared-world only, and required there: your statement that you own or operate the public deployment. owner is a public-safe label such as owner/repo, and it is recorded in the run.
subject.exposuresyntheticnoneYour statement that the app, served at a public sandbox URL during the run, holds only synthetic data. Required on shared-world with clone or local-tree, and on scripted with clone.

Start a cloned app with subject.serve

FieldTypeDefaultMeaning
subject.serve.installshell commandnoneRuns once before the build, such as npm ci.
subject.serve.installTimeoutMsmilliseconds600000The install step's time limit. Monorepos can need more.
subject.serve.buildshell commandnoneRuns once before the app starts.
subject.serve.buildTimeoutMsmilliseconds600000The build step's time limit.
subject.serve.startshell commandrequiredThe long-running command that serves the app. A shared-world study's command must bind 0.0.0.0.
subject.serve.urlloopback URLrequiredThe address humanish waits on and the participant opens, such as http://127.0.0.1:3000/.
subject.serve.readyTimeoutMsmilliseconds180000How long the app has to answer at url after it starts.

The commands run inside the sandbox with the same trust as your own scripts. The run records a digest of each one. Each command runs as its own bash script, so a heredoc may close on the command's last line. When bash cannot parse install or build, the step fails at once with bash's message.

Seed the app's state with subject.state

FieldTypeDefaultMeaning
subject.state.seedlist of stepsnoneCommands that prepare data, in order. Each step has name (lowercase letters, digits and -, at most 40 characters), command, when (before-build, before-start or after-ready; default before-start) and timeoutMs (default 300000).
subject.state.externallist of variable namesnoneVariables in subject.env that point at state the study does not control, such as a shared database. The run records its state as unpinned.
subject.state.checkpointlist of { name, command, redact }noneshared-world only, and required on a clone or local-tree plane: read-only commands run before and after each participant's turn. Only a digest of their output is kept; redact lists extra values to remove first.

Describe a CLI with subject.product

FieldTypeDefaultMeaning
subject.product.namestringrequiredThe product's public-safe name, recorded in the run.
subject.product.publicSurfaceslist of http(s) URLsrequiredThe pages the participant starts from, such as docs or an llms.txt.
subject.product.installshell commandnoneInstalls the product before the participant starts. Without it, installing is part of the participant's task.
subject.product.workdirpaththe home directorydesktop-cli only: the directory the participant's terminal opens in.
subject.product.uploadproject-relative pathnoneterminal-product only: a local file, such as an unpublished build, copied into the sandbox before install and exposed as $HUMANISH_PRODUCT_UPLOAD.

Choose the actor and its task in actor

A study has one actor. It drives every participant, and each participant entry can override some of its fields.

FieldTypeDefaultMeaning
actor.typecomputer-use, openai-computer-use, local-agent, scripted-browser, codex-exec, or a label on previewrequiredWhat drives each participant. computer-use is a model you pay for with an API key, on the vendor actor.model names; openai-computer-use is the same with the vendor fixed to OpenAI. The actor table says what each needs.
actor.missionstringnoneThe brief every participant receives, written the way you would brief a person. Read on computer-use, shared-world and terminal.
actor.personapersona idnoneThe persona file for every participant without its own. A named persona with no file stops the study. With none, a computer-use participant gets the id cua-operator and no persona text. The run records the id, so one that looks like a secret or a local path fails at parse.
actor.taskslist of { id, goal, success }nonecomputer-use only: discrete tasks added to the mission. The participant sees each goal. success is a stop rule, in the stopWhen shape, that marks the task done; the participant never sees it.
actor.typingfalse, or text of at most 4,000 charactersthe built-in paragraph; none on a desktop-cli subjectcomputer-use and shared-world: the paragraph on typing each participant reads after the mission and before the tasks. false leaves it out, and text replaces it (below). Other routes refuse it.
actor.modelstringgpt-6.1-sol; actor.provider's default model when it is set; gpt-5.6-sol on the terminal route; gpt-6-astra in a local browser; the agent's own on a hosted local-agentThe model name sent to the provider. For computer-use, humanish picks the vendor from its participant models: claude-haiku-5-5 runs on Anthropic, the gpt-* models on OpenAI. A model it does not list is refused unless actor.provider names its vendor. openai-computer-use sends any name to OpenAI and refuses one listed for another vendor. A cap on a model humanish has no price for is refused before the run.
actor.provideropenai or anthropicnone: the vendor of actor.modelcomputer-use only: the vendor of a model humanish does not list yet. That model runs unpriced, so a cap is refused, and its effort is checked against the levels the vendor documents. A provider that disagrees with a listed model is refused.
actor.maxOutputTokenspositive integernonecomputer-use and openai-computer-use: the most output tokens, reasoning included, in each model reply. On OpenAI the first request uses at most 1024 and a closing request at most 3072; on Anthropic the default is 32000, which also bounds the notes a long session is compacted into, and a closing request uses at most 4096. A capped study without it stops on a stalled request.
actor.maxWaitMsmilliseconds, 1000 to 3600000120000 for one wait, 30000 on a desktop with speech; 600000 in a turn that only waitscomputer-use and shared-world: the longest one wait action lasts. In a turn with another action, a longer wait is shortened to it, the trace records a wait shortened notice, and the participant is told on its next turn; humanish sends such a wait to the desktop in steps of at most 30 seconds. A turn that only waits is watched: its named waits together last up to this, and its watch grows to this.
actor.idleWaitMsmilliseconds, 1000 to 600000, at most actor.maxWaitMs5000computer-use and shared-world: how long a wait that names no duration lasts when the participant's turn only waits or takes screenshots, and how often humanish looks at the screen while such a turn waits, at most every 30 seconds on a desktop with speech. An OpenAI participant names a duration only with its wait_minutes tool; its computer tool's wait names none. After an action in the same turn, such a wait lasts 500 ms so the screen can settle. The trace records the lengths a participant used as waitSettings.
actor.clock{ timeZone }, a tz database time zone name such as Europe/Londonnonecomputer-use and shared-world: each turn tells the participant the local time in this zone, a scheduled end or session cap is given in it, and a hosted browser runs in it. See give each participant a time zone.
actor.localAgentcodex or claudecodexlocal-agent only: which signed-in coding agent drives the participant.
actor.reasoningEffortnone, minimal, low, medium, high, xhigh or maxthe provider's default; low in a local browserHow hard the model is asked to think each turn. A level a listed participant model does not accept is refused at parse, for the actor and for each participant that sets its own; claude-haiku-5-5 takes low to max. For another model, a level its vendor does not accept fails on the first turn. The run records the level it sent.
actor.serviceTierfastnone: the standard tierfast sends every participant request in OpenAI Fast mode, which bills at its own rate. OpenAI models only, on a model humanish has a Fast mode rate for. The trace records the tier that served each request.
actor.stopWhen{ any: [rules] }noneEnds a computer-use participant as soon as any rule matches what it sees (below).
actor.dwellmappingnoneA window in which humanish only watches: it takes no action and requests no model turn (below).

A stopWhen rule sets at least one of urlIncludes (text in the URL), urlPathEquals (an exact path starting with /), textIncludes (text on the page) and appStatePathEquals ({ path, equals }, a value in the app state a custom executor reports). An optional id names the rule in the run.

A dwell window has ms, its length from 1000 to 3600000 milliseconds, and is required. everyMs is how often a frame is captured, default 10000. then is continue, the default, or stop to end the session after the window. when is a stopWhen-shaped condition that opens the window; without it, the window opens after the first observation.

Change how participants type

Every computer-use and shared-world participant reads this paragraph after its mission, unless the study sets actor.typing. A participant at a desktop-cli subject's terminal types commands, so it reads no paragraph unless actor.typing is text:

When you type into a chat or a search box in the app, type as this person would at their own keyboard when nobody is grading them. People type little there: a few plain words, often without a greeting or a thank-you, one thing at a time, and only as much of a search as it takes for the result to show up. Anything else you write in the app (a task, a note, a post, an answer on a form) is as long as this person would really make it.

Without it, a participant writes into a chat box or a search field the way an assistant writes: full sentences, a greeting and a thank-you, and the whole request in its first message. Research on simulated users reports the same gap against real users: simulated users are more polite, write longer turns and give their information up front (Mind the Sim2Real Gap, arXiv 2603.11245). In support chat tasks with the paragraph, participants wrote more short turns, shorter opening messages and fewer details per turn, close to what people wrote, and slightly fewer polite turns than people. Their search queries stayed longer than people's. How they moved through the rest of the app, how fast, and when they asked for help or retried did not change. How often they finished the task behind the chat did not clearly change. A first wording covered any message, a search or a form answer; participants then also wrote shorter task names and shorter closing reports, and on the Taskly benchmark stopped reaching a defect that needs a long entry. The paragraph now names only a chat and a search box (benchmark page).

Replace the paragraph when it does not fit the people you are studying, such as a persona who writes formally in chat: a paralegal asking about a filing, or a clinician messaging about a referral.

actor:
  type: computer-use
  typing: "Write the way you would in a letter to a client: complete sentences, a greeting and a sign-off."

Set actor.typing: false to send no paragraph, for example to compare against a run that sends it. The run records what each participant read in streams[].assignment.typing: the text, or false when none was sent. humanish study show --json prints the study as declared, so it shows actor.typing when the study sets it and nothing when it does not.

Let a participant wait for the screen to change

A computer-use or shared-world turn whose actions are only waits and screenshots, and that asks for some wait time, sends no wait to the desktop. humanish looks at the screen every idleWaitMs, at most every 30 seconds on a desktop with speech, and asks the model for the next turn when one of these happens:

  • A change on the screen holds still. A 16-pixel tile has changed when at least 3 of its pixels differ by more than 24 in a channel. A change over more than 24 tiles, such as a new row or a page load, counts at a second look half a second after it is first seen. A smaller one, such as a badge or a short label, counts once it has held still for more than 65 seconds, unless a tile within 4 tiles of it ticked or moved with a moving region of more than 24 tiles in those 65 seconds (below).
  • The participant hears speech.
  • A stopWhen rule, a dwell.when condition or a task's success rule matches what humanish sees.
  • The participant's wind-down or end arrives.
  • The wait's time passes.

The first such turn is planned to last as long as its waits: idleWaitMs for each wait that names no duration, and the named lengths, together up to actor.maxWaitMs, or 10 minutes when the study does not set it, and at least idleWaitMs. Each further such turn in a row whose time passed with no change holding still, or that a change of 24 tiles or fewer ended, lasts twice as long as the one before, and never less than its own waits, up to the same cap. Any other ending, or a turn with another action, starts again from the first length. A participant that sends one wait per turn at the default idleWaitMs, on a screen that never changes, waits 5, 10, 20, 40, 80, 160 and 320 seconds and then 10 minutes at a time: 12 model requests in its first hour and 6 an hour after that, leaving out the model's own time. A fake loop showing a hosted desktop's panel clock at its digit positions gave the same 12 and 6 at each of 8 clock phases. A participant that asks for 1 minute on each turn waits 60, 120, 240 and 480 seconds and then 10 minutes at a time.

On a hosted desktop, in a live hour on a support queue page that gained a row every 10 minutes, an OpenAI participant at the default idleWaitMs made 48 and 50 requests in two runs, and each row reached it a median of 7 seconds after it appeared. No wait ended on the panel clock, a spinner or an "Opened N minutes ago" label. OpenAI participants already sent many waits in one turn before this watch, so on that page the watch does not lower the request count; it shortens the time a participant takes to see a change. Codex and Claude Code participants that ask for a 10-minute wait are watched for 10 minutes. An OpenAI participant names a wait in minutes with a wait_minutes tool, which it has on every request; a call whose minutes are not a finite number above zero is a wait with no duration, and so is a call to a function it does not have, which is answered that there is no such tool. Each wait's ui_action in the trace carries namedMs when the wait named its length: the length as named, before any cap.

  • A blinking caret, a spinner, a rotating banner, a chart or a video keeps moving, so it does not end a wait, and the next wait grows as it would on a still screen. A large change that stops changing always ends one. Looks are seconds apart, so a blink seen in the same phase at every look can read as still.
  • A tile ticks when it changes for the first time, or 30 seconds or more after its previous change. A clock's minutes digit ticks, and so does the number in a "2 minutes ago" label. A small change within 4 tiles of a ticking tile, or of a moving region of more than 24 tiles, does not end a wait: a hosted desktop's panel clock, whose tens-of-minutes digit sits beside its minutes digit, ends none, and neither does the end of a relative timestamp that grows from "1 minute" to "2 minutes". Such a change shows in the screenshot at the end of the wait, up to 10 minutes later by default. Once it has held still for more than 65 seconds, the note names its place, unless more than 24 tiles moved at that last look, when the note says a large part of the screen was changing. A spinner changes at nearly every look, so it does not tick, and a label that appears beside it ends a wait once it has held still for more than 65 seconds.
  • humanish does not reload, scroll or move the pointer while it looks. On an app that shows new data only after a reload, the participant reloads as an action and waits in its next turn.
  • The next turn's note tells the participant how long it waited and why the wait ended: that the screen changed, that a small part of it changed at a named place, that a large part was still changing at the last look, or that a small change was held back. When the participant's wind-down or end ended the wait, the note gives its length and the clock text that follows says why. It does not say how long the next wait can last, since a participant told that names that length and keeps waiting. The trace records each watch as watch on the wait's ui_action: how long it could last, how long the turn's waits asked for, why it ended, how many looks it took, and the area of the change that ended it.
  • A wait in a turn with another action is sent to the desktop for its length.
  • Setting actor.maxWaitMs to the same value as actor.idleWaitMs stops the growth: on a screen that does not change, each turn that only waits keeps its first length.

List the participants in participants

participants takes the forms its route accepts:

RouteFormsDefault
previewa count4
computer-usea count, { count, instruction } for identical participants, or a list of entries1
shared-worlda list of at least two entriesrequired
scriptedrefused; set surfaces instead
terminalrefused; one agent runs

A study has at most 100 participants, each on its own desktop. How many run at once depends on execution.concurrency and on how many sandboxes your E2B plan runs at once. Automatic analysis of more than 16 participants runs in cohorts of at most 16, one request each, and one more request merges them into one report; study check gives the expected cost of all of them. A local-app subject takes no list. --count on the command line overrides a count. Each list entry accepts these fields, and an unknown one fails with the entry's index:

FieldTypeDefaultMeaning
participants[].idstring, at most 40 characterslane-01, lane-02, …; role-01, … on shared-worldNames the participant and its evidence folders. Ids are unique.
participants[].countpositive integernoneMakes the entry a group of that many participants, <id>-01 to <id>-NN, which share its other fields. A group needs an id of at most 37 characters.
participants[].personapersona idactor.personaThis participant's persona file, which must exist. An id that looks like a secret or a local path fails at parse.
participants[].instructionstringnoneText added to the mission for this participant. In the { count, instruction } form, participants.instruction goes to every participant.
participants[].devicescreen presetexecution.desktop.deviceThis participant's screen preset. It cannot be combined with execution.desktop.resolution.
participants[].reasoningEfforteffort levelactor.reasoningEffortThis participant's reasoning effort.
participants[].stopWhen{ any: [rules] }actor.stopWhenThis participant's stop rules.
participants[].dwellmappingactor.dwellThis participant's observation window.
participants[].targetabsolute http(s) URLsubject.appUrlcomputer-use with app-url only: the URL this participant opens. A non-loopback one needs policies.allowPublicTargets: true.
participants[].fileslist of { from, as }, 1 to 20noneHosted computer-use only: files copied onto this participant's desktop before it starts. See give a participant files to upload.
participants[].entrypathsubject.serve.urlshared-world only: a path on the served app where this participant starts.
participants[].hostbooleanfalseshared-world with app-url only: marks the one participant who creates the shared session, such as a game lobby, that the others join.
participants[].actorTypelabelnoneA free-form label recorded in the run for grouping participants, such as viewer. It does not choose the actor.
participants[].surfacelabelnoneA free-form label for the product area a participant starts from.
participants[].caseGrouplabelnoneA free-form label that ties participants to one shared case, account or work item.
participants[].startAfterMswhole milliseconds, 0 to 86400000with the runcomputer-use and shared-world: when this participant starts, after the run starts its participants. See start participants over time.
participants[].startEveryMswhole milliseconds, 1 or morenoneOn a group with count: each member starts this long after the one before it, from the entry's startAfterMs.
participants[].endAfterMswhole milliseconds, after startAfterMs, up to 86400000execution.timeoutMs after its startcomputer-use only: when this participant's session ends, on the same clock as startAfterMs. See end a participant at a set time.
participants[].maxSessionMswhole milliseconds, 1 to 86400000execution.timeoutMscomputer-use only: the longest this participant's session lasts; it may end sooner. See let a participant leave before a cap.
participants[].windDownMswhole milliseconds, 0 to 86400000a quarter of the window, at most 600000With endAfterMs or maxSessionMs: how long before the end each turn tells the participant the end time and the minutes left.
participants[].idleWaitMsmilliseconds, 1000 to 600000, at most actor.maxWaitMsactor.idleWaitMscomputer-use and shared-world: this participant's idle wait: how long a wait that names no duration lasts when its turn only waits or takes screenshots, and how often humanish looks at its screen while it waits.
participants[].clock{ timeZone }, a tz database time zone nameactor.clockHosted computer-use and shared-world: this participant's time zone. See give each participant a time zone.

On computer-use, a participant whose desktop fails to start is recorded as failed and the others run. So is a participant whose session ends in a harness error, such as a desktop that stops answering: the run records its reason, and every participant after it starts at its time. A clone, local-tree or desktop-cli subject is set up the same way in every participant's sandbox, so the first participant starts alone and the others start when its session begins. If its desktop comes up and it then fails before its session, as when the subject does not build, the others are recorded blocked and no other sandbox is created. If its sandbox is never created, the next participant starts alone in its place.

Give a participant files to upload

A participant on a hosted desktop starts with an empty home folder, so a flow that asks for a profile photo or a signed form needs the file put there first. participants[].files copies each file onto that participant's desktop before its session starts, and the browser's file chooser finds it:

participants:
  - id: applicant
    files:
      - from: fixtures/photo.png # next to the study file
        as: Downloads/photo.png # in the desktop user's home folder
  • from is relative to the folder that holds the study file; for a committed study that is humanish/studies/. A library runStudy call has no study file, so its from is relative to cwd.
  • as is relative to the desktop user's home folder. Missing folders are created.
  • humanish reads every file before any sandbox exists, on a dry run too, and refuses the study when a file is missing, is a folder, a symbolic link or a hard link, or leaves the study's folder. It also refuses a .env file, a key or credential file, and anything under .git, node_modules or .humanish, in any letter case: the files the local-tree archive leaves out.
  • Each file is at most 10 MiB, one participant's files total at most 25 MiB, and the distinct files a study names total at most 100 MiB.
  • An as that is absolute, has a .. or . part, starts with ~, names a path twice or is the folder of another as is refused at parse. So is one in subject/, where humanish puts a cloned or unpacked app, or on a name starting with .humanish, and one that looks like a secret, a local path or encoded text, since the run records it.
  • After each copy humanish checks the file's size on the desktop; a file that did not land whole fails that participant before its first turn.
  • The participant's stream records desktopFiles, each file's as, size and sha256. The contents and the from path are not recorded.
  • Use synthetic files. A file you copy is on a desktop a model drives, and the participant can upload it to the site under study.
  • A local browser, local VM or shared-world study refuses files at parse.

Start participants over time

A participant starts with the run unless its entry sets startAfterMs. A group spreads its members with startEveryMs: member k starts at startAfterMs + (k - 1) × startEveryMs. In this study two support agents work from the start, and six customers arrive five minutes apart from the second minute:

participants:
  - id: support-agent
    count: 2
  - id: customer
    count: 6
    startAfterMs: 120000 # customer-01 at 2 minutes
    startEveryMs: 300000 # then one every 5 minutes, customer-06 at 27 minutes
  • The latest start is 24 hours. A study of one participant takes no startAfterMs, and on shared-world with app-url the host starts with the run.
  • study check and the run's plan print the first and last start and the most participants at once when every session uses its whole execution.timeoutMs. A participant whose start comes while every slot that execution.concurrency or your E2B plan's limit allows is taken waits for the next free one, and the plan says how many wait.
  • Each participant's desktop is created when it starts, so a computer-use participant due at 3 hours holds no sandbox until then. A shared-world study with a clone or local-tree subject keeps its app's sandbox until the last participant ends, so that sandbox's deadline counts the last start, and a study whose deadline passes the sandbox ceiling is refused before anything is created.
  • run.json records each participant's arrival: its startAfterMs, and on a live run scheduledAt and startedAt.
  • --rerun-failed-from starts the participants it reruns together.

End a participant at a set time

A computer-use participant whose entry sets endAfterMs works until that time, on the same clock as startAfterMs, and does not run out at execution.timeoutMs. In this study a support agent stays on for 4 hours while customers arrive:

actor:
  clock:
    timeZone: Europe/London # optional: each turn says the local time
participants:
  - id: support-agent
    endAfterMs: 14400000 # the session ends at 4 hours
    windDownMs: 900000 # told the time left from 3 hours 45 minutes
  - id: customer
    count: 12
    startAfterMs: 600000
    startEveryMs: 1200000
  • From endAfterMs - windDownMs, each turn tells the participant when its session ends and how many minutes are left. The hosted desktop's panel clock shows the time but not the end, so this is how it knows. Without windDownMs the wind-down is a quarter of the window from startAfterMs to endAfterMs, at most 10 minutes: 2 minutes for an 8-minute window, and 10 minutes for any window of 40 minutes or more.
  • Waiting is part of the job: before endAfterMs, a turn that only waits or takes screenshots counts toward neither the idle nor the no-progress backstop. While the support agent only waits, humanish looks at its screen every 5 seconds and asks the model again within about 6 seconds of a new customer appearing, or when its wait passes with no change holding still. On a quiet queue its waits grow to 10 minutes. A turn of only screenshots or 0 ms waits after another turn of only waits or screenshots is watched as a wait with no length. The first such turn, at the start or after an action, is sent at once. See let a participant wait for the screen to change.
  • Reloading a page that changes only on reload is waiting too. 20 turns in a row that repeat a recent action on an unchanged screen end a participant without endAfterMs as gave_up, and do not end this one, unless none of the 20 reached the desktop, as when each reload's desktop command fails. From the 20th such turn, humanish watches the screen after each further repeat before it asks the model again, as after a wait with no length. After that streak, a repeat is watched whenever the turn before it also repeated an action on an unchanged screen, so a new item that a reload shows, or one the participant opens, costs one request with no watch. In a fake loop with a 9-second model reply, a participant that reloads every turn for an hour made 38 requests on a page that never changed and 82 on one that gained an item every 8 minutes, and one that waits every turn on a page that shows each item at once made 55. The trace records the streak as a repeated an action on an unchanged screen notice with its turn count and time span, and the review lists it in its gaps.
  • The participant does not end its own session before endAfterMs. When it tries, the trace records a notice, and its next turn tells it the session is not over and how many minutes are left. A participant that keeps trying, taking no action, is ended by the idle backstop as gave_up.
  • At endAfterMs the participant is asked for its closing report, and the session ends as passed, with stopCause: scheduled_end in its trace. The report's summary is the participant's reason, as the last message is for a participant that ends its own session. The outcome the report declares is the trace's declaredOutcome: its outcome field, reached, not_reached or blocked, which OpenAI and Codex participants fill, or else the first line of its summary that is not a > blockquote, REACHED THE GOAL., DID NOT REACH THE GOAL. or BLOCKED.. A declared reached keeps the pass and counts the participant as reaching the goal, and blocked counts it blocked. A report that declares not_reached or nothing counts the participant blocked when its summary describes a blocker. Otherwise it keeps the pass, and the review counts it in participants.ranUntilEnd and says it ran until its scheduled end.
  • Claude as a local-agent participant model cannot be asked for a closing report: its participants end with the scheduled end as their reason and no closing account, and study check and run warn about it. Codex as a local agent writes one.
  • The participant's session lasts its window plus 5 minutes for the closing report, in place of execution.timeoutMs, and its sandbox lives that long plus the setup and teardown time. A window whose sandbox would outlive the sandbox ceiling is refused before anything is created.
  • A participant that waits for a free slot until its endAfterMs has passed is skipped: no desktop is created, and its record is blocked with the reason. The plan predicts who would be skipped, gives them no slot, and warns, naming them. Its prediction assumes each session holds its slot for its whole session budget. It leaves out the time a desktop takes to set up. Setting up a clone or local-tree subject can take up to 30 minutes, so a run can skip a participant the plan did not name. A run whose sessions end before their budget may skip fewer participants than the plan named, or none.
  • The plan refuses an endAfterMs at or before the participant's start, a windDownMs without endAfterMs, and endAfterMs on shared-world.
  • study check prints each participant's window, and the run's plan line shows end=+<time>.
  • A long window grows the run bundle. The plan estimates it from each participant's window, a model turn every 10 seconds and any dwell window's frames, and study check prints the estimate as bundle size. A participant without endAfterMs is counted for 3 minutes, or its execution.timeoutMs when shorter. When a live study's estimated run.json passes the 16 MiB analysis reads of it, one participant's trace passes the 32 MiB humanish reads of each trace, its Observer page observer/index.html passes the 32 MiB verify reads, or its files pass the 10,000 plus 5,000 for each participant that the public-safety scan reads, study check, humanish run and doctor --study print a warning before anything is created, and the run goes ahead. run.json grows by about 16.5 KB a participant, since each model turn's usage rows are only in the participant's trace. It also holds actor.mission, actor.typing, the actor.tasks[].goal texts and each participant's instruction in that participant's stream, and once more for each participant that reports friction or stops. It holds the first participant's mission, instruction and task goals once more for the run. The estimate counts the copy for friction or a stop for every participant, so it warns at 100 participants with about 75 KB of these texts each, and its advice names the field with the most bytes. A turn adds from about 0.8 KB to 3.3 KB to its participant's trace on the live runs measured, more for a participant that takes many actions a turn, and the estimate counts 3.5 KB. The Observer page carries every participant's trace items gzipped, so busy participants grow it faster than run.json. 19 participants working 8 hours fit, with the page at about 31 MiB and run.json at about 0.3 MiB. At 20 the page passes the verify limit, and verify then cannot scan it, so the run grades local_only: humanish export refuses it without --local-only, and humanish export --format bundle fails. The page carries each participant's items compressed on their own, so it builds when the traces together pass 512 MiB, the longest string Node holds: humanish observe wrote it for 25 participants with 30 MiB traces. Larger runs have not been measured, and memory may run out first. Served, that run's page shows its participants but cannot update, since each poll of it takes longer than the 15 seconds the page waits. A participant as busy as the busiest one measured would pass the trace limit in a window of about 27 hours, longer than a window may last, and one at the average rate in about 64.
  • actor.clock.timeZone or participants[].clock.timeZone, a tz database name, adds the local time to every turn and gives the end time in that zone; without it the end time is in UTC. See give each participant a time zone.

Let a participant leave before a cap

A computer-use participant whose entry sets maxSessionMs may end its session whenever it is done, and works no longer than that cap. The cap counts from the start of its own session, after its desktop is set up. In this study visitors arrive every ten minutes, and each stays until it has seen what it came for, for 15 minutes at most:

participants:
  - id: visitor
    count: 6
    startEveryMs: 600000 # one every 10 minutes
    maxSessionMs: 900000 # each stays 15 minutes at most
    windDownMs: 120000 # told the time left from 13 minutes in
  • A participant that ends its own session before its cap counts as it would without one: as passed when it says it reached its goal.
  • From maxSessionMs - windDownMs, each turn tells the participant when its session ends at the latest and that it may end it sooner. Without windDownMs the wind-down is a quarter of the cap, at most 10 minutes: a 10-minute cap is told the time left from 7 minutes 30 seconds in.
  • A participant still working at its cap is asked for its closing report, and the session ends as passed, with stopCause: session_cap in its trace. The report's summary is the participant's reason, and the outcome it declares counts as at a scheduled end: blocked counts the participant blocked, and a report that declares not_reached or nothing counts it blocked when its summary describes a blocker, and otherwise as running until its session cap.
  • Waiting is not the task here: a participant with a cap that only waits or takes screenshots is ended by the idle and no-progress backstops, as one without a cap is.
  • The participant's session lasts its cap plus 5 minutes for the closing report, in place of execution.timeoutMs, and its sandbox lives that long plus the setup and teardown time. A cap whose sandbox would outlive the sandbox ceiling is refused before anything is created.
  • Each member of a group gets the whole cap from its own start, and a participant that waits for a free slot still gets its whole cap. Its slot is held for the cap plus 5 minutes when the plan works out the schedule.
  • The plan refuses maxSessionMs beside endAfterMs on one participant, since endAfterMs holds a participant until a set time and maxSessionMs lets it leave sooner, and refuses maxSessionMs on shared-world.
  • Claude as a local-agent participant model cannot be asked for a closing report: a participant that reaches its cap ends with the cap as its reason and no closing account, and study check and run warn about it.
  • study check prints each participant's window, and the run's plan line shows cap=<time>. The bundle estimate counts a capped participant as one that ends itself: 3 minutes, or its cap when shorter.

Give each participant a time zone

A hosted desktop's browser runs in UTC, so a participant in London told "the call starts at 10:30" would see times in UTC on every page. actor.clock gives every participant a time zone, and participants[].clock gives one participant its own:

actor:
  clock:
    timeZone: Europe/London # the office
participants:
  - id: agent # Europe/London, from actor.clock
  - id: traveller
    clock:
      timeZone: Asia/Tokyo
  • Each turn tells the participant the local time in its zone, and a scheduled end (endAfterMs) or session cap (maxSessionMs) is given in that zone.
  • On a hosted desktop, humanish launches the participant's browser with TZ set to its zone, so every tab and window it opens runs in that zone from the first page load: JavaScript's Date and Intl.DateTimeFormat().resolvedOptions().timeZone report it.
  • On a desktop-cli subject, humanish opens the participant's terminal with TZ set to its zone, so its shells, date, the product under test and a browser started from the terminal run in that zone.
  • A browser or terminal the participant opens from the desktop's dock starts without TZ and runs in UTC.
  • The clock in the hosted desktop's panel, at the top right of every screenshot, shows the same zone. When humanish cannot set it, the run warns and the clock shows UTC.
  • The zone is a tz database name such as Europe/London, written with its capitals: europe/london and europe/belfast are refused, since the browser does not find a name in the wrong case and runs in UTC. A UTC offset such as +05:00 is refused, since a browser's time zone cannot be set to one.
  • The local browser runtime (execution.target: local) and RunStudyOptions.inProcess do not set the browser's zone, so a study that gives a participant a time zone there is refused before anything starts.
  • study check prints each participant's zone in a time zones row, study show prints a time zones: line, and run.json records each participant's timeZone on its stream.
  • A participant without a zone runs in UTC, its desktop's panel clock shows UTC, and its turns carry no local time.

Limit spend and time with caps

Every route reads the same top-level caps block, and each route refuses the keys it does not read. The caps act on humanish's estimates. They are not provider billing limits, and what a study costs explains what they leave out.

FieldTypeDefaultMeaning
caps.maxUsdnumber, 0 or morenonecomputer-use and shared-world: stop a participant once its estimated model spend passes this. terminal: required for a live run, and it must be 0 (below).
caps.maxTotalUsdnumber, 0 or morenonecomputer-use and shared-world: stop every participant once the study's estimated model spend passes this, and skip, before its desktop is created, a participant whose start comes after that.
caps.maxJobsnumber, 0 or morenoneterminal: the billable product jobs the agent may trigger, checked after the session against measured job counts.
caps.maxMinutesnumber above 0required for a live terminal runterminal: the agent command's time limit. At the default 60-minute sandbox ceiling, a live run refuses more than 49, or 44 with subject.product.install.

preview and scripted take no caps.

Cap a terminal study

humanish has no cost source for a terminal study: Codex reports no provider cost, and humanish measures no product, media or payment spend. A positive caps.maxUsd could never trip, so a live terminal run refuses it with HUMANISH_TERMINAL_UNPRICED_CAP. Set caps.maxUsd: 0 and bound the run with caps.maxMinutes. caps.maxJobs has no measured job count to check for the same reason. Adopter-supplied cost sources are planned in issue 347.

Say where participants run in execution

FieldTypeDefaultMeaning
execution.targete2b-desktop, modal-desktop, local, e2b-terminal or modal-terminale2b-desktop on desktop-cli, e2b-terminal on terminal-product, local on a scripted app-urlWhere participants run. e2b-desktop is a hosted E2B desktop. modal-desktop runs a computer-use app-url study's desktops on Modal, in Chromium, with no E2B template or camera and speech media. modal-terminal runs a terminal study's shell on Modal instead of E2B; it needs execution.runtimeAuth: openai-env and the Modal token pair from modal token new. local is a disposable VM on your machine for a computer-use app-url study, or this machine's browser for a scripted one. clone and local-tree need e2b-desktop, and a computer-use app-url study must set local or e2b-desktop.
execution.remotetrue or falseremote when the study canWhere the study's own process runs. Unset, a computer-use study on e2b-desktop or modal-desktop with a model API key and a public app-url subject, or a live terminal study, runs in a runner sandbox on that provider, so it keeps going when this machine sleeps; any other study runs here. false keeps it on this machine; true requires a remote run and is refused, with the reason, for a study that cannot have one. --local and --remote override it for one run. See keep a long study going.
execution.timeoutMsmillisecondssee belowEach participant's session limit, on computer-use, shared-world and scripted. terminal refuses it: caps.maxMinutes is its limit.
execution.concurrencypositive integerevery participant at oncecomputer-use and shared-world: how many participants run at the same time. shared-world needs at least 2. On hosted desktops the default is held to HUMANISH_E2B_MAX_CONCURRENT_SANDBOXES (20 when unset), and a value above it is refused.
execution.desktopmappingnoneThe desktop's screen, browser, image, media and recording (below).
execution.networktrue or { origins }offcomputer-use in hosted Chrome or Chromium: each participant's requests, with their turns, in network/<participant id>.ndjson (details). origins adds up to 16 exact http(s) origins. Other routes, desktop-cli, local and Firefox refuse it.
execution.pointerglide or jumpglide, or jump for a participant on a phone presetcomputer-use and shared-world on E2B and Modal desktops: glide moves each participant's pointer along a curve to its next target, timed by Fitts's law (120-380 ms a move), so hovers along the way happen and the desktop video shows the motion; jump moves it in one step, as a finger lands on each target. The trace records each path as pointerApproach. The local VM moves in one step either way.
execution.egressAllowlist of host namesunrestrictedterminal: the only hosts the sandbox may reach. *.example.com matches subdomains at any depth, so list the apex domain separately. An empty list fails at parse. Any other route ignores the field with a warning, since its browser desktops can reach any site, and the first minor release on or after 2026-11-04 refuses it there.
execution.runtimeAuthopenai-env or openai-egressopenai-egressterminal: how the agent gets its OpenAI key. openai-egress keeps it in an E2B proxy rule, and sandbox processes can still spend through that proxy. openai-env passes the key to the agent command, where the agent and its child processes can read it.
execution.runtime{ version }the latest releaseterminal: an exact Codex version to install, such as 0.153.3. Without it, humanish resolves the latest release once and records it.
execution.terminalmapping{ transport: exec-stream, stdin: disabled }terminal: transport takes only exec-stream, and stdin takes disabled or planned. stdin: sent fails at parse.
execution.terminal.doNotTrackbooleantrueterminal: sends DO_NOT_TRACK=1 to participant and product setup commands. Set false to leave it unset when studying telemetry behavior. Dry and live bundles record the resolved setting.
execution.completionTimeoutMsmillisecondsnoneNo route reads it, so a study that sets it fails at parse.

Without execution.timeoutMs, a session gets 30 minutes on an app-url subject. On clone and local-tree it gets what the sandbox ceiling leaves after the clone, build and seed steps, up to 30 minutes and never less than 5: 20 minutes for a clone with no seed steps at the default 60-minute ceiling. A local browser session defaults to 20 minutes, which is also its maximum, and a scripted session to 5 minutes.

Set up the desktop with execution.desktop

FieldTypeDefaultMeaning
execution.desktop.devicescreen presetdesktopComputer-use participants: mobile (414×896), small-mobile (360×740), narrow-mobile (320×700), tablet (820×1180), desktop (1440×950) or wide (1920×1080).
execution.desktop.resolution[width, height]none; 960×720 in a local browserA raw screen size that overrides device.
execution.desktop.browserdefault, chrome, chromium or firefoxdefaultThe browser on a hosted computer-use desktop. A named browser that fails to launch fails the participant.
execution.desktop.templatestringE2B's stock desktop imageA custom E2B template name or id, for an app that needs runtimes the stock image lacks. The run records it, so a value that looks like a secret or a local path fails at parse.
execution.desktop.sandboxTimeoutMsmillisecondsderived from the sessioncomputer-use: the hosted sandbox's own lifetime, at most the sandbox ceiling: 60 minutes unless HUMANISH_E2B_MAX_SANDBOX_MINUTES raises it.
execution.desktop.fidelitymappingnoneMobile emulation for hosted or local Chromium on a mobile preset: mobileEmulation (required), deviceScaleFactor (the preset's), touch (true) and userAgent (an iPhone Safari string).
execution.desktop.mediamappingnonecamera.source (synthetic, or a .y4m file) and microphone.source (speech, with a Codex local-agent only). Participant media has the limits.
execution.desktop.recording{ audio }noneKeep a screen video of each computer-use participant on its own desktop; audio: true adds sound. Desktop recording.
execution.desktop.codexAppServerbooleannoneNo route reads it, so a study that sets it fails at parse.

Grant permissions in policies

Each policy is false until the study sets it to an unquoted true.

FieldDefaultMeaning
policies.allowPublicTargetsfalseLets subject.appUrl or a participant's target be a non-loopback URL you own, such as a preview deployment. With more than one participant it is refused unless each participant has its own target; route: shared-world puts several on one public app.
policies.redactScreenshotsfalseBlurs and downscales screenshots when they are saved. The model still sees full frames.
policies.redactReposfalse; true when the clone authenticates with GITHUB_TOKENReplaces repository names in saved evidence.
policies.mediaPermissionpromptHow the browser's camera and microphone prompt is answered. prompt leaves the real dialog to the participant, and granted accepts it in advance.
policies.allowPrivateRepoAccess, policies.allowProviderCredentials, policies.allowPaymentCredentials, policies.allowGitHubMutationfalseterminal: recorded in the run as declared intent. No route passes these credentials to the agent.

Configure analysis in review

FieldTypeDefaultMeaning
review.analysisfalse or mappingon: the Codex account for a Codex local-agent participant, otherwise OpenAI's gpt-6.1-sol with a $10 limitThe separate model reading of a finished live run. false turns it off. A default OpenAI analysis is skipped without OPENAI_API_KEY or when its expected cost is over the limit, and the run names the command that runs it. One the study declares fails when its expected cost is over its limit.
review.scorer{ ref }noneA project-relative path to a scorer module (.mjs) that exports score, deriveFeedback or deriveArtifacts. It runs as code, so review it as code. scripted refuses it.
review.scoring, review.milestones, review.vocabularystringnoneNo route reads them, so a study that sets one fails at parse.

review.analysis as a mapping takes these keys:

KeyDefaultMeaning
provideropenai; codex for a Codex local-agent participantopenai uses OPENAI_API_KEY. gemini uses GEMINI_API_KEY (or GOOGLE_API_KEY) and sends the evidence to Google. codex uses your signed-in Codex account and takes no dollar or token limit.
maxCostUsd10 when review.analysis is not declared; required in a declared openai or gemini mappingopenai and gemini: the analysis is refused before it starts when both its worst case and its expected cost plus a 10% margin are over this. It is not a billing limit.
modelgpt-6.1-sol; gemini-3.8-flash for gemini; gpt-6-astra for codexThe analysis model. openai takes gpt-6-astra, gpt-6.1-sol, gpt-6-luna, gpt-5.5 or a gpt-5.6 model; gemini takes gemini-3.8-flash; codex takes only gpt-6-astra.
questionnoneA question for the analysis to answer, up to 4000 characters.
timeoutMs600000The analysis time limit, at most 600000.
maxOutputTokens16384openai and gemini: the reply's token limit, at most 32768.
reasoningEffortmedium for the default gpt-6.1-sol; high otherwiseopenai and gemini: OpenAI's reasoning.effort or Gemini's thinking level, from none to max. Each model takes only the levels its provider documents. A study that names a model but no effort runs it at high. codex takes none.

Read results shows the findings, and humanish analyze runs an analysis on demand.

Give participants an inbox in comms

comms.email gives each participant an inbox for email-gated flows such as a signup link. By default humanish captures the mail your app sends inside the sandbox, which needs a clone or local-tree subject. Email capture and real email receiving have complete examples.

FieldTypeDefaultMeaning
comms.emailmappingnoneThe inbox settings below.
comms.email.kindfakefakeA captured inbox. A real inbox sets connection and leaves kind out.
comms.email.injectEnvvariable namerequired unless smtp or external is setThe variable humanish sets to its catch's URL. Your app reads it as its email API's base URL.
comms.email.portport number8025The catch's port inside the sandbox.
comms.email.smtpmappingnoneSMTP capture: hostEnv and portEnv (required, the variables your app reads), port (default 2525), and userEnv, user, passwordEnv and password for apps that require credentials.
comms.email.linkOriginhttp(s) originnoneThe origin your app writes into email links, when it differs from the served URL.
comms.email.recipientslist of { lane, address }<participant id>@example.test for each oneEach participant's address. lane holds the participant id. With external, the default is <participant id>-<tag>@example.test, a new tag from each run id.
comms.email.externalmappingnoneA catch you run yourself with humanish comms catch, for app-url subjects: catchBaseUrl (required), inboxBaseUrl (defaults to catchBaseUrl) and authTokenEnv.
comms.email.connectionconnection namenoneA saved real-inbox connection from the TUI's Connections screen. It cannot be combined with the capture fields above.
comms.email.allowedOriginslist of http(s) originsnoneWith connection: up to 16 more exact origins that a real inbox's links may open.

Describe a participant in a persona file

A persona file says who a participant is. humanish looks for <id>.yaml or <id>.yml in humanish/personas/, then in the ignored .humanish/local/personas/, and a committed file wins. A persona id uses letters, digits, _ and -.

On the computer-use, shared-world and terminal routes, every persona that reaches a participant, from actor.persona or participants[].persona, needs its file. An actor.persona that every participant overrides reaches no one and needs none. When none of the four paths holds the file, or the file is empty, not valid YAML or not a YAML mapping, study check, run, watch and doctor --study stop with HUMANISH_STUDY_INVALID before any sandbox or model call, a dry run included, and the message lists the paths it tried. A persona id is text: persona: 2024 reads as a number and fails at parse, so quote it, as persona: "2024". The file name must be the id plus .yaml. Add the file or remove the persona line. The smallest file is three lines, schema: humanish.persona.v1, id: and name:; with no background, the participant gets its name and the medium patience and technical confidence sentences below. A study that names no persona needs no file: its participants get cua-operator, or autonomous-terminal-agent on the terminal route. A scripted study records its persona id and reads no file.

humanish init writes two examples:

humanish/personas/skeptical-power-user.yaml
schema: humanish.persona.v1
id: skeptical-power-user
name: Skeptical Power User
summary: A privacy-safe experienced user looking for speed, reversibility, and clear proof.
background: >-
  Robin manages several volunteer projects with spreadsheets and keyboard shortcuts and is at ease
  with advanced options. They want faster tools but have lost work before and care about undoing
  mistakes. They have little patience for repeated friction and stop when a tool keeps getting in
  the way.
traits:
  accessibility_needs: keyboard_first
constraints:
  - Do not use real personal data.
  - Prefer synthetic fixture inputs.
  - Flag unclear recovery paths.
FieldTypeDefaultMeaning
schemastringnonehumanish.persona.v1.
idstringthe id the study namesThe persona's id, at most 120 characters.
namestringthe id in title caseWhat the participant is called, at most 120 characters.
summarystringnoneOne line about the person. Text past 280 characters is cut with a warning.
backgroundstringnoneWho the person is, in as many paragraphs as you need, up to 32 KiB of UTF-8. A larger or empty background stops the run before it starts.
traitsmappingsee belowBehavior directives, below.
traits.patiencelow, medium or highmedium without a backgroundHow much friction the participant works through before stopping.
traits.technical_confidencelow, medium or highmedium without a backgroundWhether the participant sticks to visible controls or uses shortcuts and advanced options.
traits.accessibility_needstext, at most 80 charactersnoneA need the participant works within. none, none declared and not applicable mean none.
constraintslist of stringsnoneRules the participant is told to honor. The first 8 are used, each up to 160 characters.
writing_sampleslist of stringsnoneMessages the person typed before, to show how they write. The first 8 are used, each up to 280 characters.

With a background, a trait you leave out sends no directive, and a file that sets both a background and patience or technical_confidence gets a warning to check them for conflicts. Any other field or trait warns and is not sent. An invalid level warns and falls back to medium, or to no directive when there is a background.

Each trait becomes one sentence of the participant's instructions:

TraitValueSentence the participant receives
patiencelowYou are impatient: if you hit repeated friction or stop making progress toward your goal, you are likely to stop. Describe what you actually encountered.
patiencemediumYou have moderate patience: you will work through some friction, but may stop if further effort no longer seems worthwhile.
patiencehighYou are determined: you are willing to spend effort on recovery when the goal matters to you, but may stop at an unrecoverable dead-end.
technical_confidencelowYou are not technically confident and generally rely on familiar, visible controls. Describe confusion only when you actually encounter it.
technical_confidencemediumYou have moderate technical confidence and generally use straightforward paths through the product.
technical_confidencehighYou are technically confident and comfortable with keyboard shortcuts and advanced options on the surfaces this product gives you.
accessibility_needscontains keyboard_firstYou prefer keyboard navigation, but can use a pointer when needed. Describe any difficulty you encounter switching between them.
accessibility_needscontains keyboard_onlyYou can only use the keyboard. If an essential control has no discoverable keyboard path, describe where you could not proceed.
accessibility_needsmentions terminal or outputYou rely on clear terminal output. Describe any difficulty understanding the output you actually encounter.
accessibility_needsanything elseYour accessibility requirement is: (your text). Use the available interface within this requirement and describe any difficulty you encounter.

Show how the person writes

writing_samples holds a few short messages the person typed earlier, about something else. The participant reads them after the background, introduced with this sentence, which says "this person" because a persona's name is often a role label:

These are messages this person typed earlier, about other things; the details in them do not apply now. They show how this person writes: (1) "is the shed paint dry yet" (2) "ok" (3) "which seeds go in first"
.humanish/local/personas/weekend-gardener.yaml
schema: humanish.persona.v1
id: weekend-gardener
name: Sam
background: Sam keeps a small allotment and plans the beds on weekends.
writing_samples:
  - "is the shed paint dry yet"
  - "ok"
  - "which seeds go in first"

Samples do not stand in for a background. A persona with samples and no background gets the medium patience and technical confidence sentences, and study check warns that its participants have no background.

Each sample is written as a JSON string, so a double quote inside one reaches the participant as \". Samples copied from real users belong in the ignored .humanish/local/personas/, with names, addresses, order numbers and other identifiers removed first. study check warns when a sample looks like it holds an email address; a long number, such as a phone, order or card number; or a key, a token or a local path. A long number is seven or more digits with at most one space, dot, dash or slash between each, so a date with a four-digit year, such as 12.11.2026, warns too, and a price, a time or a date without its year does not. The participant still reads a sample as written, and only keys, tokens and paths are redacted from the run's evidence. It does not detect names; remove those yourself.

These sentences are instructions. humanish does not stop a keyboard_only participant from using the mouse, and a persona certifies nothing about accessibility. npx humanish study show <study> --json prints the persona text each participant receives, and the run records it.

humanish personas build writes persona files from an export of your real sessions, and a humanish.habits.v1 file phrases their habits in your words. Make participants behave like your users shows both.

Replay scripted browser steps

A scripted study replays committed browser steps against an app you run on a loopback URL. The steps come from the scenario named by scenario and make no model requests. Browser steps are public-safe source, so use synthetic fixture values and committed relative app paths only.

humanish/scenarios/todo-onboarding.yaml
schema: humanish.scenario.v1
id: todo-onboarding
title: Todo onboarding
persona: synthetic-new-user
goal: Create the first synthetic todo and verify the list updates.
mode: browser
browser:
  startPath: /
  steps:
    - id: open-home
      label: Open the todo app
      action: goto
      path: /
      expect:
        text: Add todo
    - id: enter-todo
      label: Enter synthetic todo text
      action: fill
      selector: input[name="todo"]
      value: Synthetic onboarding task
    - id: create-todo
      label: Create the todo
      action: click
      selector: button[type="submit"]
      expect:
        text: Synthetic onboarding task
        stateChanged: true

Supported actions are goto, fill, click, press, assertText, waitForText, and waitForSelector. A press step needs key, in Playwright's key syntax (Enter, Tab, Control+A). With a selector it focuses that element and presses the key; without one it presses the key on the focused element. Supported expectations are text, selectorVisible, urlIncludes, and stateChanged.

Save the scenario as humanish/scenarios/todo-onboarding.yaml and point a study at it. humanish/studies/scripted-demo.yaml is a complete example.

humanish/studies/todo-onboarding.yaml
schema: humanish.study.v3
id: todo-onboarding
route: scripted
mode: live
subject:
  source: app-url
  appUrl: http://127.0.0.1:3000
actor:
  type: scripted-browser
surfaces: [desktop, mobile]
scenario: todo-onboarding
review:
  analysis: false

surfaces: [desktop, mobile] adds a mobile surface to the desktop one. Without mode: live the study is a dry run: it validates the steps and writes a contract bundle without opening a browser. Post-run analysis is separate from the steps: when OPENAI_API_KEY is set it runs by default, and it is refused when its estimate exceeds $10. analysis: false turns it off, so the study makes no model requests.

A live run drives a local Chrome or Chromium against your app, so start the app on http://127.0.0.1:3000 first. If humanish finds no browser, the run stops with HUMANISH_SCRIPTED_BROWSER_MISSING; set HUMANISH_BROWSER_COMMAND to the browser binary. Chrome keeps a Unix socket under TMPDIR, and a socket path holds at most 107 bytes, so when TMPDIR is longer than about 60 bytes humanish launches the browser with TMPDIR=/tmp. --dry-run checks the steps without either:

npx humanish run todo-onboarding --dry-run --json --no-open
npx humanish run todo-onboarding --json --no-open
npx humanish verify --run latest --json

Traces are stored as JSON under .humanish/runs/<run>/traces/ and summarized in the Observer.

Move files from 0.107

Before 0.108.0 a study was a humanish.lab.v2 file under a labs/ folder. humanish no longer runs those files or reads the labs/ folders. Running one by name fails with the command that fixes it:

humanish run failed: humanish/labs/old-study.yaml is a humanish.lab.v2 file in humanish/labs/, which humanish no longer reads. Run humanish migrate humanish/labs/old-study.yaml to convert it and move it to humanish/studies/.
code: HUMANISH_STUDY_V2_UNSUPPORTED

A v3 file left in a labs/ folder fails with HUMANISH_STUDY_RETIRED_DIRECTORY, and its message names the matching studies/ folder to move it to; migrate skips v3 files. humanish study list --json lists each refused file in retired, with its code and message. Convert every v2 file at once:

npx humanish migrate --dry-run
npx humanish migrate

--dry-run lists each file's destination and every key it moves or drops, with the dropped values, and writes nothing. migrate then rewrites each v2 file as v3 and moves it from labs/ to the matching studies/ folder; a v2 file outside labs/ is rewritten in place. Comments move with their keys. A key the v2 file declared but its route never read is dropped and reported, and a file that uses YAML anchors is refused with the line number. A v2 file could name a persona as a label with no file; for each persona the converted study names with no readable file, migrate says that study check will fail and lists the paths to add it at.

Edit this page on GitHub