AGENT SKILL

verify-stella

Prove a change to Stella itself works in the real product before calling it done. Use after changing Stella's desktop app, runtime, mobile app, or backend, or when asked to check, reproduce, or screenshot Stella behavior. Drives an isolated desktop Electron instance or the iOS Simulator app, each signed into a dev test account, and diagnoses cloud turns. Needs a checkout of the Stella repo (1missthesun/stella, local folder stella-v2); iOS needs the Mac. Not for verifying the user's other apps or websites.

License 许可
MIT
所属仓库
1missthesun/stella
最近更新
2026-11-15
Stars
★ 2
Forks
1

01 前言 Front Matter

name
verify-stella
description
Prove a change to Stella itself works in the real product before calling it done. Use after changing Stella's desktop app, runtime, mobile app, or backend, or when asked to check, reproduce, or screenshot Stella behavior. Drives an isolated desktop Electron instance or the iOS Simulator app, each signed into a dev test account, and diagnoses cloud turns. Needs a checkout of the Stella repo (1missthesun/stella, local folder stella-v2); iOS needs the Mac. Not for verifying the user's other apps or websites.

02 资源文件 40

03 SKILL.md 正文

Verify Stella

Run every command from the root of a Stella repo checkout (local folder stella-v2); paths below are relative to it. When this skill was loaded from ~/.stella/skills/verify-stella, that folder links into the checkout it came from: cd "$(dirname "$(realpath ~/.stella/skills/verify-stella/SKILL.md)")/../../..". To verify a draft or worktree instead, run the same paths from that tree.

Establish whether the requested behavior works in the real product. Use your judgment to choose interactions, coverage, and evidence based on the change and what you observe. The feature map is product context and a collection of examples, not a required test suite.

What to prove

Start from the user's claim or the regression being fixed. Choose a realistic situation that would distinguish correct behavior from the suspected failure. The diff, nearby source, and live app can help identify affected states; consult the relevant feature notes when they add useful context. Adapt dated recipes to the current product.

Coverage should follow the mechanism and risk. A search change may need a result-to-destination interaction; a saved preference may need reopening or relaunching; a startup race may need a fresh launch. Exercise additional entry points when they have distinct behavior or could expose the same failure. A small visual edit does not imply a tour of every feature.

Match evidence to the claim. Show the real user action and its result. Read back mutations where persistence or downstream effects matter. Use screenshots for appearance, semantic state for control behavior, and traces or profiles for responsiveness. A still screenshot cannot establish smooth animation. Capture any "before" while you first reproduce the problem, before changing code; never rebuild, stage or check out old code afterwards just to get one, since an "after" alone is usually enough. Store evidence in the run's evidenceDir (session info; ~/.stella/outputs/verify-stella/<runId>/ on Stella machines), never only inside a worktree: removing the worktree deletes it, and the user cannot open it from another device.

Unit tests are not evidence and are banned in this repo: don't write, update or run them, even when a brief asks.

A helper succeeding proves only what it actually observed. A healthy shell is not a working feature; a submitted message is not a completed agent task; a visible provider error demonstrates an error path, not a successful response. Report what passed, what failed, and what remains unverified, with enough evidence to support those distinctions. Missing prerequisites should identify the affected claim and the concrete blocker.

Available capabilities

The desktop CLI owns an isolated Electron instance and exposes inspection, interaction, diagnostics, and optional journey shortcuts:

node .agents/skills/verify-stella/control-stella.mjs help
node .agents/skills/verify-stella/control-stella.mjs capabilities
node .agents/skills/verify-stella/control-stella.mjs session launch --account pro

On Linux every run gets its own hidden X display (Xvfb on :90 and up, unpacked into ~/.cache/stella-verify without root by scripts/fetch-xvfb.sh when the system has none), so nothing opens on the user's screen; --display host uses the real display. macOS opens a real window. The desktop is one conversation with no history or New chat control; launch a fresh run (--replace) when the claim needs an empty conversation. session relaunch restarts Electron, the runtime worker and the test browser, so runtime and engine edits load; it keeps the data, profile and account.

Choose the account and initial state needed for the claim. Launch signs in a fresh dev test account by default; --account pro, other plans and --account signed-out (no account) are documented in the desktop reference. Launch seeds onboarding complete unless you pass --first-run, which a first-run onboarding claim needs.

inspect observe --path <directory> captures semantic state, controls, Chromium accessibility, and a screenshot together; --since <observation.json> reports changes from a capture in the same run. Capture is sequential, not atomic. inspect state, inspect components, inspect aria, and inspect screenshot also expose individual views. drive provides clicks, fills, keys, scrolling, and waits. chat, nav, settings, and apps offer convenience macros. Choose whichever gives an understandable interaction with the current UI; there is no requirement to use a named journey first. If a macro's assumptions no longer fit, inspect the app and use the underlying controls. <group> <command> --help (or capabilities) lists a command's options and ranges; unknown options are rejected. Every command prints one JSON envelope (ok, command, data or error, meta); ok means the command ran, not that the product passed. settings macros report shell state, not dialog contents.

For how long Update takes (a draft applied until Stella is back and usable), scripts/update-bench.mjs runs a sandbox clone through this harness and times each kind of change (renderer, main, runtime, dependencies, a stale draft, undo) with a per-step breakdown; its header lists the commands. Compare a change against its base with sync --ref, the same --label per side, and several iterations; the machine's noise is a few hundred milliseconds.

session doctor distinguishes shell, device identity, and runtime readiness. diagnostics and performance help explain failures and timing. DOM quietness from drive settle does not establish completion of network or agent work; it ignores animated decorative SVGs such as the top-bar mark, and --ignore <CSS> skips other known-decorative regions. apps state returns surface text without a readiness verdict. chat send distinguishes a new visible user message, a new notice, and a timeout; none establishes completion of an assistant response. Ambiguous click/fill targets return candidates; narrow them with --within <CSS scope> or a specific selector.

The owner's standing rule for the iOS simulator: do not drive it yourself. Delegate each simulator run to a capture-only subagent on the Mac whose only job is running the app and bringing back screenshots or recordings — it captures and reports, it never edits code. Ask for codex/gpt-6.1-sol when that Mac is signed in to ChatGPT; agents on a computer that runs only Claude Code refuse that model, so spawn it with the default model instead of failing. The agent that owns the code keeps the code, gives that subagent the states to capture and how to reach them, and fixes anything it reports. The one exception is a native build already in flight: let it finish rather than discarding the time, and apply this from the next run onward.

For iOS, read the infrastructure reference. iOS work happens on the Mac: an agent elsewhere moves itself there. scripts/control-stella-ios.sh stages disposable source, boots a simulator, builds the dev app against the dev backend (build), and signs it into a dev test account (sign-in --plan pro), then captures framebuffer proof. Semantic input comes from XcodeBuildMCP, either as project-scoped MCP tools or through its CLI when your harness has no such tools. A reused simulator keeps the previous run's installed app, data, and session, so a cold build is not a clean baseline, and the reference's cleanup list covers the installed app, Xcode DerivedData, the MCP daemon, and the minted test account. Mobile feature notes describe product-specific context.

For cloud-side behavior, cloud verification describes cloud-turn.mjs and executor diagnostics. Headless execution can prove a cloud claim; it cannot establish the desktop dispatch or browser handoff that it bypasses.

Shared resources

Other agents and the user use the same machines. Each of these has bitten agents; take the isolated path by default.

  • Your run. One run per checkout. ALREADY_RUNNING usually means another agent's run: leave it, and set STELLA_VERIFY_RUN=<name> on every command to keep your own.
  • The browser extension. The user's Chrome extension pairs with exactly one Stella (fixed port 39040, one native-messaging host per user). For a claim that needs the extension, session launch --browser-extension starts a private Chromium with its own copy of the extension paired to your run's bridge. It needs Chromium (/usr/bin/chromium, Playwright's, or STELLA_VERIFY_CHROMIUM); Google Chrome refuses unpacked extensions. --browser-bridge shared takes the real extension away from the user's Stella and every other run until the user relaunches: only for a claim about the user's own Chrome, and only after asking.
  • The backend. Backend changes go to your own Preview, not dev. From workers/cloud-builder, env -u CLOUDFLARE_API_TOKEN bun run preview -- up --name <name> deploys your tree as an isolated backend (own Durable Objects and D1) and prints the URL to export as STELLA_BACKEND_URL for cloud-turn.mjs, session launch --account pro, backend-call.mjs or curl; preview -- down --name <name> when finished. The desktop takes its prompts from the backend, so prompt changes need a Preview too. A Preview cannot start agent containers (background agents, cloud shell, app builds, cloud Claude Code); desktop and cloud turns on Stella models work there. Claims that need containers go to dev: deploy it without asking, from a tree that contains origin/master (deploy:dev refuses anything else), and say so in your report. See DEPLOY.md, "Previews".
  • Claude Code. Runs start signed out. --claude-login host copies this computer's Claude access token into the run's own config, never the refresh token, so the user's login cannot be rotated or signed out; it lasts until the token expires (hours) and cleanup deletes it. It spends the user's Claude quota, so use it only when the claim needs a real Claude Code turn. Such a run starts on the Claude Code engine with Haiku already selected; keep it there unless the claim is about a specific model. --claude-login token uses a dedicated STELLA_VERIFY_CLAUDE_OAUTH_TOKEN (from claude setup-token) once the user has made one. Never copy credential files by hand. Cloud Claude Code needs no sign-in on dev: every test account's cloud runs it on a shared test login (claude@test.stella.local); cloud verification has the path.
  • The iOS simulator. One Mac, one simulator at a time; see iOS.

Isolation and evidence boundaries

Drive only the helper-owned Electron run recorded in .run/current.json (.run/current-<name>.json with STELLA_VERIFY_RUN), with its own home folder (~/.stella there is the run's data; on Linux the real ~/.stella path is mounted over by it too), data and Chromium profiles. Never point a test app or its agents at a real-home absolute path such as /home/<user>/.stella: what lands there is the user's real Stella data and syncs to their real account. The run also isolates protected storage and the Claude Code and Codex CLI configs, but shares the OS user, the CLIs on PATH, the display, and the network; the desktop reference lists exactly what is shared. The developer's window, the real ~/.stella, and the Mac checkout are not verification fixtures. Keep cleanup limited to recorded owned resources; cleanup plan and cleanup apply --dry-run expose the targets. Preserve evidence and durable run data. Stop your run with session stop before you finish, and before deleting the checkout (in a script, from a trap … EXIT or finally). The run records Electron's whole process tree, including helpers that detach (crash reporter, zygotes), and stops them before deleting its temp folder; a run whose checkout was deleted or that was never stopped is reaped by the next session launch or session stop from any checkout. Likewise stop any mock server, browser, recorder or Xvfb you start yourself outside the harness, with a trap or finally, so none outlives your test.

Use observed controls and current geometry for input. Read-only eval can fill an observability gap, but internal setters or direct database mutations cannot substitute for the user path being tested. Fixture setup should be distinguishable from the action under verification. Do not expose credentials in diagnostics or shared artifacts.

Maintaining this skill

Keep feature notes focused on product behavior, entry points, non-obvious dependencies, and useful source pointers. Examples can illustrate a tricky interaction without prescribing a complete run. Use whatever document structure communicates that information clearly.

Improve the harness when a recurring mechanical problem needs deterministic handling. Prefer richer observations and general interaction capabilities; add a journey macro when it saves repetitive navigation without hiding evidence needed to judge the result.

node .agents/skills/verify-stella/scripts/check-feature-map.mjs checks feature links and registered command references. It does not judge verification coverage or enforce a prose template.

This folder is the only copy. Stella agents see it through ~/.stella/skills/verify-stella, a real folder whose entries are symlinks into the checkout (Stella's skill catalog skips a symlinked skill folder, and a real folder keeps .run/ and artifacts/ out of ~/.stella). After adding a top-level file or folder here, rerun .agents/skills/verify-stella/scripts/install-stella-skill.sh on each machine.

04 同仓库更多 Skills