@alan-ai-hq/agent-manager-linux-x64 0.1.199 → 0.1.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alan-agent.cjs +8928 -5241
- package/alan-holder.cjs +5364 -3401
- package/alan-lease.cjs +808 -200
- package/builtin-skills/agent-desktop/SKILL.md +94 -0
- package/builtin-skills/alan-artifact/SKILL.md +128 -0
- package/builtin-skills/alan-artifact/examples/interactive-diagram.md +50 -0
- package/builtin-skills/alan-artifact/examples/prototype.md +53 -0
- package/builtin-skills/alan-artifact/examples/test-report.md +55 -0
- package/builtin-skills/alan-artifact/references/design.md +39 -0
- package/builtin-skills/alan-artifact/references/diagrams.md +20 -0
- package/builtin-skills/alan-deck/SKILL.md +189 -0
- package/builtin-skills/alan-diagrams/SKILL.md +105 -0
- package/builtin-skills/alan-diagrams/references/diagram-catalogue.md +847 -0
- package/builtin-skills/alan-docs/SKILL.md +143 -0
- package/builtin-skills/alan-docs/references/administration/members-and-teams.md +48 -0
- package/builtin-skills/alan-docs/references/administration/org-dashboard.md +19 -0
- package/builtin-skills/alan-docs/references/administration/organisation-settings.md +41 -0
- package/builtin-skills/alan-docs/references/agents-and-sessions/code-context.md +60 -0
- package/builtin-skills/alan-docs/references/agents-and-sessions/coding-agents-and-models.md +78 -0
- package/builtin-skills/alan-docs/references/agents-and-sessions/session-lifecycle.md +62 -0
- package/builtin-skills/alan-docs/references/agents-and-sessions/start-a-session.md +110 -0
- package/builtin-skills/alan-docs/references/automations/automation-runs.md +69 -0
- package/builtin-skills/alan-docs/references/automations/create-an-automation.md +143 -0
- package/builtin-skills/alan-docs/references/automations/overview.md +77 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/cloud-images.md +64 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/cloud-sessions-and-execution.md +89 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/cloud-setup.md +128 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/codex-cli-connector.md +92 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/local-execution.md +213 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/runtime-recovery.md +60 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/sandboxes.md +74 -0
- package/builtin-skills/alan-docs/references/cloud-and-local/troubleshooting-and-faq.md +102 -0
- package/builtin-skills/alan-docs/references/get-started/connect-azure-devops.md +89 -0
- package/builtin-skills/alan-docs/references/get-started/connect-bitbucket.md +86 -0
- package/builtin-skills/alan-docs/references/get-started/connect-github.md +114 -0
- package/builtin-skills/alan-docs/references/get-started/join-a-team.md +114 -0
- package/builtin-skills/alan-docs/references/get-started/product-map.md +96 -0
- package/builtin-skills/alan-docs/references/get-started/quickstart.md +158 -0
- package/builtin-skills/alan-docs/references/get-started/set-up-your-team.md +200 -0
- package/builtin-skills/alan-docs/references/get-started/sign-in.md +104 -0
- package/builtin-skills/alan-docs/references/get-started/welcome.md +39 -0
- package/builtin-skills/alan-docs/references/integrations/connect-microsoft-teams.md +116 -0
- package/builtin-skills/alan-docs/references/integrations/connect-slack.md +164 -0
- package/builtin-skills/alan-docs/references/integrations/import-from-linear.md +172 -0
- package/builtin-skills/alan-docs/references/plans-and-billing/plans-and-limits.md +115 -0
- package/builtin-skills/alan-docs/references/plans-and-billing/usage-and-credits.md +47 -0
- package/builtin-skills/alan-docs/references/reference/documents-and-artifacts.md +52 -0
- package/builtin-skills/alan-docs/references/reference/faq.md +89 -0
- package/builtin-skills/alan-docs/references/reference/feature-catalog.md +89 -0
- package/builtin-skills/alan-docs/references/reference/glossary.md +96 -0
- package/builtin-skills/alan-docs/references/reference/links-and-ids.md +80 -0
- package/builtin-skills/alan-docs/references/reference/roles-and-permissions.md +64 -0
- package/builtin-skills/alan-docs/references/reference/statuses.md +86 -0
- package/builtin-skills/alan-docs/references/reviews-testing-deploys/deployments.md +28 -0
- package/builtin-skills/alan-docs/references/reviews-testing-deploys/pull-requests.md +85 -0
- package/builtin-skills/alan-docs/references/reviews-testing-deploys/review-work.md +55 -0
- package/builtin-skills/alan-docs/references/reviews-testing-deploys/testing-evidence.md +52 -0
- package/builtin-skills/alan-docs/references/skills/plugins-and-mcp.md +24 -0
- package/builtin-skills/alan-docs/references/skills/skills.md +103 -0
- package/builtin-skills/alan-docs/references/tasks/complete-a-task.md +79 -0
- package/builtin-skills/alan-docs/references/tasks/create-a-task.md +67 -0
- package/builtin-skills/alan-docs/references/tasks/subtasks-and-status.md +55 -0
- package/builtin-skills/alan-docs/references/tasks/task-artifacts.md +56 -0
- package/builtin-skills/alan-docs/references/tasks/task-detail.md +65 -0
- package/builtin-skills/alan-docs/references/teams-and-planning/cycles.md +93 -0
- package/builtin-skills/alan-docs/references/teams-and-planning/documents.md +66 -0
- package/builtin-skills/alan-docs/references/teams-and-planning/epics.md +95 -0
- package/builtin-skills/alan-docs/references/teams-and-planning/whiteboard.md +52 -0
- package/builtin-skills/alan-docs/references/troubleshooting/agent-blocked.md +38 -0
- package/builtin-skills/alan-docs/references/troubleshooting/common-problems.md +118 -0
- package/builtin-skills/alan-docs/references/troubleshooting/github-access.md +41 -0
- package/builtin-skills/alan-docs/references/troubleshooting/missing-artifact.md +47 -0
- package/builtin-skills/alan-docs/references/troubleshooting/report-an-issue.md +74 -0
- package/builtin-skills/alan-docs/references/troubleshooting/runtime-unavailable.md +49 -0
- package/builtin-skills/alan-docs/scripts/generate-references.mjs +363 -0
- package/builtin-skills/alan-environment-setup/SKILL.md +368 -0
- package/builtin-skills/alan-environment-setup/references/android.md +118 -0
- package/builtin-skills/alan-environment-setup/references/troubleshooting.md +38 -0
- package/builtin-skills/alan-skill-authoring/SKILL.md +83 -0
- package/builtin-skills/alan-tasks/SKILL.md +195 -0
- package/builtin-skills/alan-test-android/SKILL.md +224 -0
- package/builtin-skills/alan-test-android/scripts/android-up.sh +227 -0
- package/builtin-skills/alan-test-android/scripts/install-launch.sh +38 -0
- package/builtin-skills/alan-test-android/scripts/record.sh +64 -0
- package/builtin-skills/alan-test-android/scripts/ui.py +367 -0
- package/builtin-skills/alan-test-desktop/SKILL.md +107 -0
- package/builtin-skills/alan-test-desktop/references/linux-recording.md +31 -0
- package/builtin-skills/alan-test-feature/SKILL.md +243 -0
- package/builtin-skills/alan-test-mobile/SKILL.md +65 -0
- package/builtin-skills/alan-test-web/SKILL.md +113 -0
- package/builtin-skills/alan-walkthrough/SKILL.md +152 -0
- package/builtin-skills/alan-walkthrough/scripts/mark-changes.js +419 -0
- package/builtin-skills/alan-walkthrough/scripts/publish-capture.mjs +288 -0
- package/builtin-skills/alan-workflows/SKILL.md +235 -0
- package/builtin-skills/manifest.json +19 -0
- package/package.json +3 -2
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: alan-test-feature
|
|
3
|
+
version: 3.3.0
|
|
4
|
+
description: "This skill should be used when the user asks to \"test this change\", \"test this PR\", \"QA this feature\", \"verify this works in the browser\", or \"test this desktop app\" on any repository in an Alan cloud sandbox. It works out the surfaces from the diff, writes exploratory charters, runs them through the web, desktop, or mobile driver with sub-agents when available, judges the result, and always creates a free-flow test report with published evidence inline. Do not use for authoring Playwright specs or for pure unit-test work."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Test a change the way a first-day QA engineer would
|
|
8
|
+
|
|
9
|
+
Run this workflow only in an Alan cloud sandbox. If the cloud session or a
|
|
10
|
+
required capability is unavailable, report the blocker; do not switch to a
|
|
11
|
+
developer machine, local container, or CI runner.
|
|
12
|
+
|
|
13
|
+
Read the change, work out which surfaces it touches and how a person reaches
|
|
14
|
+
them, explore those surfaces with evidence, and write the report the way you
|
|
15
|
+
would explain the run to a teammate.
|
|
16
|
+
|
|
17
|
+
This skill is the orchestrator. It decides; other skills operate:
|
|
18
|
+
|
|
19
|
+
| Job | Owner |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| Recon, risk ranking, charters, routing, final status, the report | this skill |
|
|
22
|
+
| Browser pages, responsive layouts, PWAs | `/alan-test-web` |
|
|
23
|
+
| Desktop apps, including native ones with no CDP endpoint | `/alan-test-desktop` |
|
|
24
|
+
| Phone and tablet targets, including native-app gaps | `/alan-test-mobile` |
|
|
25
|
+
| Choosing, captioning, and publishing evidence | `/alan-walkthrough` |
|
|
26
|
+
| Persisting the report | `create_test_report` |
|
|
27
|
+
|
|
28
|
+
Drivers return notes and sandbox capture paths; they never publish evidence or
|
|
29
|
+
create reports. Only this skill assigns the overall status and calls
|
|
30
|
+
`create_test_report`.
|
|
31
|
+
|
|
32
|
+
Optional integrations: when the repository documents how to test it, in a
|
|
33
|
+
testing skill or in agent instructions such as `AGENTS.md` and the nearest
|
|
34
|
+
component `AGENTS.md`, read it and apply its URLs, auth, and setup rules;
|
|
35
|
+
without one, work from the recon. Durable
|
|
36
|
+
Playwright coverage is follow-up work, never part of this run.
|
|
37
|
+
|
|
38
|
+
Leading words: **recon** (compress the change into a test brief), **charter**
|
|
39
|
+
(one bounded exploratory mission), **evidence** (a capture that proves a
|
|
40
|
+
claim), **compaction** (a sub-agent returns a short note, not its transcript).
|
|
41
|
+
|
|
42
|
+
## Gates
|
|
43
|
+
|
|
44
|
+
Check these before expensive work. Each failure names its fix; stop only when
|
|
45
|
+
the fix is impossible here.
|
|
46
|
+
|
|
47
|
+
- Captures go under `/tmp/alan-captures/` only, never inside the repository
|
|
48
|
+
or `.claude/`. Create the directory now.
|
|
49
|
+
- Report context comes from the calling Alan session: `create_test_report`
|
|
50
|
+
and `publish_capture` resolve the task, workflow, or conversation
|
|
51
|
+
server-side. `create_test_report` needs only the `teamId` your Alan context
|
|
52
|
+
provides. Do not pass IDs you had to guess, and never pass `ALAN_TASK_ID` as
|
|
53
|
+
a task in a workflow session (it is a machine id there).
|
|
54
|
+
- Coverage: read the prompt once for a level or named flows. "quick" or
|
|
55
|
+
"smoke" means one charter on the riskiest path; "comprehensive" means every
|
|
56
|
+
surface the recon names; otherwise standard, which is the riskiest path plus
|
|
57
|
+
its most likely failure modes. Decide and move on; do not ask.
|
|
58
|
+
|
|
59
|
+
## Step 1 · Recon: compress the change into a test brief
|
|
60
|
+
|
|
61
|
+
Use a fresh-context recon sub-agent when available; otherwise do the recon
|
|
62
|
+
yourself. Use the supplied change scope or PR base, and make any inferred
|
|
63
|
+
comparison boundary explicit. Completion criterion:
|
|
64
|
+
|
|
65
|
+
> Every changed file is either mapped to a surface a person can reach, or
|
|
66
|
+
> named as out of scope with a reason. Nothing is left unassigned.
|
|
67
|
+
|
|
68
|
+
The brief answers, in prose:
|
|
69
|
+
|
|
70
|
+
1. **What changed and why.** Commit messages, PR description, and diff read together: what the author claims, and what the diff actually does.
|
|
71
|
+
2. **Surfaces.** For each surface: its kind (web page or route, mobile-width web, PWA, desktop window, native mobile app, HTTP API, CLI, background job), the concrete entry point, and which changed files feed it.
|
|
72
|
+
3. **How to run it.** Read the environment, do not guess: package scripts, `process-compose.yaml`, `Procfile`, `Makefile`, `docker-compose`, framework configs, README, and any repository testing overlay. The exact command or the fact that something is already running, the port, and how auth works.
|
|
73
|
+
4. **State and data.** What must exist first (an account, a record, a feature flag) and where it comes from.
|
|
74
|
+
5. **Where to start.** The entry point for the riskiest part of the change and why: user-facing writes, auth, money, deletion, migrations, and cross-service seams rank above copy and styling.
|
|
75
|
+
6. **Trip hazards.** Interactive login, single-instance desktop apps, long builds, rate limits.
|
|
76
|
+
|
|
77
|
+
## Step 2 · Route surfaces
|
|
78
|
+
|
|
79
|
+
Read the host once: `uname -s`, whether `DISPLAY`, `AGENT_BROWSER_HEADED`, and
|
|
80
|
+
`AGENT_BROWSER_EXECUTABLE_PATH` are set, and whether `xvfb-run` and `ffmpeg`
|
|
81
|
+
exist. An Alan cloud sandbox is Linux with a streamed desktop on `DISPLAY=:0`,
|
|
82
|
+
agent-browser and agent-desktop pre-installed, and no Xcode. Android needs an
|
|
83
|
+
image with the Android toolchain and KVM; `/alan-test-android` checks and
|
|
84
|
+
reports the gap.
|
|
85
|
+
|
|
86
|
+
Then route each surface:
|
|
87
|
+
|
|
88
|
+
- Web page or route → `/alan-test-web`.
|
|
89
|
+
- Responsive layout, PWA, or native mobile app → `/alan-test-mobile`, which
|
|
90
|
+
routes mobile web to the browser driver, native Android to the Android
|
|
91
|
+
driver, and reports native iOS as unverified.
|
|
92
|
+
- Desktop app → `/alan-test-desktop`, which attaches over CDP when the app
|
|
93
|
+
exposes a port and falls back to the `agent-desktop` accessibility tree when
|
|
94
|
+
it does not.
|
|
95
|
+
- HTTP API with no UI consumer in this change → drive it yourself with
|
|
96
|
+
`curl` or the repository's client, asserting on responses and persisted
|
|
97
|
+
state. When a UI consumes it, test through the UI and check the API
|
|
98
|
+
underneath.
|
|
99
|
+
- CLI or job → run it in the shell; stdout and exit codes are evidence.
|
|
100
|
+
|
|
101
|
+
Write the host and the driver per surface into the brief. A surface the host
|
|
102
|
+
cannot drive is a stated gap in the report, never a silent skip.
|
|
103
|
+
|
|
104
|
+
Start the target only if the brief says nothing is running; wait for it to
|
|
105
|
+
answer and record the exact URL. If sign-in needs a human, do it once in the
|
|
106
|
+
parent session through the web driver and save state for the charters.
|
|
107
|
+
|
|
108
|
+
## Step 3 · Write charters, not checklists
|
|
109
|
+
|
|
110
|
+
A charter is one mission with a time box ("Explore *X* with *Y* to discover
|
|
111
|
+
*Z*") plus the relevant risks with a one-line oracle each. Choose enough charters
|
|
112
|
+
to meet the requested coverage, ordered by risk; a smoke run may need only one.
|
|
113
|
+
Keep each mission bounded. The agent running it may follow whatever looks
|
|
114
|
+
wrong, and should.
|
|
115
|
+
|
|
116
|
+
Draw risks from the change before generic ones. Then add the failure modes
|
|
117
|
+
that apply: required-field and boundary input, the empty state, duplicate or
|
|
118
|
+
conflicting data, unauthorized access, a double submit, refresh or back
|
|
119
|
+
mid-flow, a failed request, and the loading state. Skip what the change cannot
|
|
120
|
+
exercise.
|
|
121
|
+
|
|
122
|
+
When the change alters what a screen looks like, the charter is a UI-change
|
|
123
|
+
charter: it also asks the driver for a numbered BEFORE and AFTER capture of
|
|
124
|
+
each changed screen, one number per distinct change (the base state through the
|
|
125
|
+
base ref run in a second checkout in the sandbox, or the deployed build).
|
|
126
|
+
|
|
127
|
+
Each charter carries: mission, entry point, risks with oracles, auth context,
|
|
128
|
+
its evidence directory `/tmp/alan-captures/<charter-slug>/`, and its driver
|
|
129
|
+
(with `mode: mobile` and a device for mobile web).
|
|
130
|
+
|
|
131
|
+
Persist the brief and charters to `/tmp/alan-captures/plan.md` and tell the
|
|
132
|
+
user the charter list in a few lines before running anything. That file is
|
|
133
|
+
the run's working memory.
|
|
134
|
+
|
|
135
|
+
## Step 4 · Run charters in parallel sub-agents
|
|
136
|
+
|
|
137
|
+
When delegation is available, each charter gets a fresh-context sub-agent.
|
|
138
|
+
Otherwise run the charters yourself, preserving separate results. Each runner
|
|
139
|
+
reads its driver and uses its own named browser session. Launch
|
|
140
|
+
independent charters together; serialize only when the driver forces it (one
|
|
141
|
+
desktop app, a login that cannot be shared, charters that mutate the same
|
|
142
|
+
record).
|
|
143
|
+
|
|
144
|
+
Each sub-agent returns the driver's short note and nothing else: outcome,
|
|
145
|
+
replayable observations, findings with evidence paths, unverified items,
|
|
146
|
+
capture paths, and confirmation that it closed only its own session. A
|
|
147
|
+
sub-agent that runs out of context gets its charter split in two and re-run,
|
|
148
|
+
not skipped.
|
|
149
|
+
|
|
150
|
+
## Step 5 · Judge
|
|
151
|
+
|
|
152
|
+
Merge the notes into `plan.md`: one paragraph per charter, findings
|
|
153
|
+
deduplicated across charters, and everything nobody reached. When charters or
|
|
154
|
+
runs disagree, repeat the smallest reproducer; the stronger evidence wins and
|
|
155
|
+
the report says the other run disagreed.
|
|
156
|
+
|
|
157
|
+
Decide the status: `pass` when every charter completed with no findings above
|
|
158
|
+
minor, `fail` when the riskiest path is broken or the target could not be
|
|
159
|
+
reached, `mixed` otherwise. Blocked native or unsupported surfaces are gaps,
|
|
160
|
+
not passes.
|
|
161
|
+
|
|
162
|
+
A native Android charter blocked on missing prerequisites is fixable, so the
|
|
163
|
+
gap says how. Persist its toolchain items through `/alan-environment-setup`
|
|
164
|
+
maintenance in this turn, and state in the report what was added and that the
|
|
165
|
+
next session on the rebuilt image can run the charter. Name each environment
|
|
166
|
+
item as the setting the user changes: a Freestyle environment for a missing
|
|
167
|
+
`/dev/kvm`, or Extra large in the environment's machine picker for memory.
|
|
168
|
+
|
|
169
|
+
## Step 6 · Evidence
|
|
170
|
+
|
|
171
|
+
Invoke `/alan-walkthrough` with the findings and verified behaviors and their
|
|
172
|
+
capture paths, and the before/after pairs with their numbered changes. It rejects bad captures, selects the minimum proof, publishes,
|
|
173
|
+
and returns `markdown` lines (``) per claim plus any
|
|
174
|
+
claim left without evidence. Ask it to show the single strongest capture in
|
|
175
|
+
the active chat as well, unless already attached or the user asked not to
|
|
176
|
+
share media. Leave the other captures in the report.
|
|
177
|
+
|
|
178
|
+
## Step 7 · Report
|
|
179
|
+
|
|
180
|
+
Call `create_test_report` with `teamId`, `title`, a one- or two-sentence
|
|
181
|
+
`summary`, `status`, `branch`, `baseBranch`, `appUrl`, `commits`,
|
|
182
|
+
`changedFiles` when known, and the report in `content`. The owning task,
|
|
183
|
+
workflow, and conversation come from the session.
|
|
184
|
+
|
|
185
|
+
The body is free-flow Markdown for the person who decides what happens next,
|
|
186
|
+
in whatever shape tells the story best. Place each evidence line where it
|
|
187
|
+
proves a point, the recording first. There are no steps or issues fields; do
|
|
188
|
+
not turn the narrative into a table of steps. Visual composition is optional:
|
|
189
|
+
add a diagram or a small `html` view only when it materially helps a reader.
|
|
190
|
+
|
|
191
|
+
Default order, reordered only when the story needs it: verdict and a one-line
|
|
192
|
+
summary; an environment table (URL, commit against base, browser and viewport
|
|
193
|
+
or runtime, account, flags, seed data); what changed (area, change, files);
|
|
194
|
+
before/after evidence; a checks table (check, observable rule, result,
|
|
195
|
+
capture); console and network errors; issues, risks, and what was not
|
|
196
|
+
verified. Before/after evidence is the walkthrough's rows: a Before / After
|
|
197
|
+
table with the same number on both images and a legend line per number for UI
|
|
198
|
+
changes, a request and response diff for API changes, a metrics table (median
|
|
199
|
+
of n runs, spread) for performance. Backend-only runs still capture what shows
|
|
200
|
+
the behavior: a terminal or HTTP client, a log or trace view, or the UI that
|
|
201
|
+
consumes the endpoint, before and after.
|
|
202
|
+
|
|
203
|
+
What the report must let its reader do (the bar, not a template):
|
|
204
|
+
|
|
205
|
+
- Picture what actually ran: inputs, accounts, surfaces, viewport, and
|
|
206
|
+
whether mobile coverage was emulated. "Tested the upload" fails; "uploaded a
|
|
207
|
+
0-byte file, a 12 MB PNG, and a name with emoji as the viewer role" passes.
|
|
208
|
+
- Read each finding's surface, symptom, and condition from its first line,
|
|
209
|
+
then the minimal reproduction, expected against actual, times reproduced
|
|
210
|
+
out of attempts, and the evidence. A suspected cause is a labelled guess.
|
|
211
|
+
- Match evidence to the finding: a screenshot for a stable state, the
|
|
212
|
+
recording for order or timing (point at the moment), a console or network
|
|
213
|
+
excerpt for "the button did nothing". Where evidence is missing, say so
|
|
214
|
+
where it would have been.
|
|
215
|
+
- See confidence per finding and why.
|
|
216
|
+
- See what nobody reached and why, concretely enough to become the next
|
|
217
|
+
charter.
|
|
218
|
+
- Notice the questions the run raised: possibly intended behavior, spec gaps,
|
|
219
|
+
risks nobody could exercise.
|
|
220
|
+
|
|
221
|
+
This step is mandatory. Do not summarize in chat instead, and do not skip it
|
|
222
|
+
because a charter failed, a publish failed, or time ran out; a partial report
|
|
223
|
+
with honest gaps beats no report. If you are unsure whether a report was
|
|
224
|
+
already created, `list_artifacts` for this session first instead of creating
|
|
225
|
+
a duplicate.
|
|
226
|
+
|
|
227
|
+
Then tell the user the report title, its link, the status, and the findings
|
|
228
|
+
in a few lines. Say what the inline capture proves, or why it couldn't be
|
|
229
|
+
shown. Do not lead with a UUID or paste the report body into chat.
|
|
230
|
+
|
|
231
|
+
## Failure handling
|
|
232
|
+
|
|
233
|
+
- **Target unreachable**: the report is `fail`, with the exact command, port, and error as the finding.
|
|
234
|
+
- **Login fails**: report the URL and state; never bypass auth.
|
|
235
|
+
- **Driver unavailable**: mark that surface unverified and continue with the others.
|
|
236
|
+
- **Evidence failed to publish**: keep the textual finding and name the missing evidence.
|
|
237
|
+
|
|
238
|
+
## Self-improvement
|
|
239
|
+
|
|
240
|
+
Promote a lesson only when it changes a reusable decision or acceptance bar.
|
|
241
|
+
Fix routing or report policy here, surface guidance in its driver, and CLI
|
|
242
|
+
mechanics in the CLI or a helper. Keep incident history and version-specific
|
|
243
|
+
workarounds in notes; load host-specific recipes only when needed.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: alan-test-mobile
|
|
3
|
+
version: 1.3.0
|
|
4
|
+
description: "This skill should be used when an Alan cloud sandbox test charter targets a phone or tablet: a responsive site, a PWA, or a native Android or iOS app. It routes mobile web to the browser driver in mobile mode, native Android to the Android driver, and reports native iOS targets as unverified. Do not use it for desktop web, desktop apps, publishing evidence, or writing the test report."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Route a mobile charter
|
|
8
|
+
|
|
9
|
+
Run this workflow only in an Alan cloud sandbox. If the cloud session or a
|
|
10
|
+
required capability is unavailable, report the blocker; do not switch to a
|
|
11
|
+
developer machine, local container, or CI runner.
|
|
12
|
+
|
|
13
|
+
Mobile covers different things that need different drivers. This skill
|
|
14
|
+
decides which one applies and keeps the label honest. It never calls
|
|
15
|
+
`create_test_report` and never decides the overall run status.
|
|
16
|
+
|
|
17
|
+
## Routing
|
|
18
|
+
|
|
19
|
+
| Target | Route | Label in findings |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| Responsive website or mobile-width layout | `/alan-test-web` in mobile mode | "emulated mobile web (<device>)" |
|
|
22
|
+
| Progressive Web App in the browser | `/alan-test-web` in mobile mode | "emulated mobile web (<device>)" |
|
|
23
|
+
| Native Android app (APK, Gradle, React Native, Expo, Flutter) | `/alan-test-android` | "Android emulator (API <n>)" |
|
|
24
|
+
| Native iOS app (IPA, TestFlight build) | not supported yet | unverified |
|
|
25
|
+
|
|
26
|
+
Decide the target from the caller's recon: which app the changed code ships
|
|
27
|
+
in, not what the user called it. A React Native or Flutter change is native
|
|
28
|
+
even if a web build exists; a PWA is web even when installed to a home
|
|
29
|
+
screen.
|
|
30
|
+
|
|
31
|
+
## Mobile web
|
|
32
|
+
|
|
33
|
+
Hand the charter to `/alan-test-web` with `mode: mobile` and the device to
|
|
34
|
+
emulate. Pick the device from the change: a small phone (for example iPhone SE)
|
|
35
|
+
when the risk is overflow or wrapping, a large phone when it is layout
|
|
36
|
+
density, a tablet only when the change targets tablet breakpoints. Pass its
|
|
37
|
+
result straight back.
|
|
38
|
+
|
|
39
|
+
A UI-change charter on mobile web follows the browser driver's before/after
|
|
40
|
+
rule at the emulated viewport. Native targets cannot take the page overlay:
|
|
41
|
+
return the unmarked pair with numbered regions and name the gap.
|
|
42
|
+
|
|
43
|
+
## Native Android
|
|
44
|
+
|
|
45
|
+
Hand the charter to `/alan-test-android` with the app's repository path or
|
|
46
|
+
APK, the backend it calls, and the evidence directory. Pass its result
|
|
47
|
+
straight back. When it returns `blocked` because the sandbox lacks Android
|
|
48
|
+
prerequisites, keep that charter blocked, list the native surfaces as
|
|
49
|
+
unverified as below, and pass its toolchain and environment lists back
|
|
50
|
+
unchanged so the caller can persist or report them.
|
|
51
|
+
|
|
52
|
+
## Native iOS
|
|
53
|
+
|
|
54
|
+
Alan does not yet provide iOS simulators or device builds to test runs. For
|
|
55
|
+
an iOS target:
|
|
56
|
+
|
|
57
|
+
- return `blocked` for that charter, with the reason "native iOS testing is
|
|
58
|
+
not supported in this environment";
|
|
59
|
+
- list the native surfaces the change touches as unverified, concretely
|
|
60
|
+
enough to become a future charter;
|
|
61
|
+
- test what can be tested honestly instead: the API the app calls, and any web
|
|
62
|
+
surface that shares the change.
|
|
63
|
+
|
|
64
|
+
Never present a phone-sized browser viewport as native-device validation, and
|
|
65
|
+
never relabel emulation as native testing.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: alan-test-web
|
|
3
|
+
version: 1.4.0
|
|
4
|
+
description: "This skill should be used when a test charter must be run in a real browser: a web page or route, a responsive or mobile-width layout, or a PWA. It drives agent-browser on the streamed Alan cloud desktop, returns observations, findings, gaps, and sandbox capture paths. Do not use it to choose coverage, publish evidence, or write the test report; alan-test-feature does that."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Run a charter in a browser
|
|
8
|
+
|
|
9
|
+
Run this workflow only in an Alan cloud sandbox. If the cloud session or a
|
|
10
|
+
required capability is unavailable, report the blocker; do not switch to a
|
|
11
|
+
developer machine, local container, or CI runner.
|
|
12
|
+
|
|
13
|
+
This is a surface driver. It receives one charter and a reachable URL, runs
|
|
14
|
+
it, and returns a short result. It never calls `create_test_report`, never
|
|
15
|
+
publishes captures, and never decides the overall run status.
|
|
16
|
+
|
|
17
|
+
`agent-browser` changes with its CLI version, so read its own guidance before
|
|
18
|
+
the first command instead of working from memory:
|
|
19
|
+
|
|
20
|
+
- `agent-browser skills get core`: the snapshot-and-ref loop, waits, forms,
|
|
21
|
+
sessions, recording.
|
|
22
|
+
- `agent-browser skills get dogfood`: exploration and repro-first discipline.
|
|
23
|
+
|
|
24
|
+
## Input
|
|
25
|
+
|
|
26
|
+
The caller hands over a charter:
|
|
27
|
+
|
|
28
|
+
- **mission** and **entry point** (URL);
|
|
29
|
+
- **risks**, each with a one-line oracle;
|
|
30
|
+
- **authentication**: saved state to load, or how to sign in;
|
|
31
|
+
- **evidence directory**, such as `/tmp/alan-captures/<charter-slug>/`;
|
|
32
|
+
- **mode**: `desktop` (default) or `mobile`.
|
|
33
|
+
|
|
34
|
+
## Readiness
|
|
35
|
+
|
|
36
|
+
- `command -v agent-browser`. The sandbox image provides it and its browser
|
|
37
|
+
(`AGENT_BROWSER_EXECUTABLE_PATH` points at the system Chrome); this skill
|
|
38
|
+
never installs either. If it is missing or cannot launch, return `blocked`
|
|
39
|
+
with the command and error so the image can be fixed.
|
|
40
|
+
- Open the entry point and confirm the intended app is rendered and
|
|
41
|
+
interactable. An HTTP response alone is insufficient. An unreachable target
|
|
42
|
+
is `blocked`, with the command, URL, and error.
|
|
43
|
+
- Use your own named session for everything: `--session <charter-slug>`.
|
|
44
|
+
|
|
45
|
+
## Cloud desktop
|
|
46
|
+
|
|
47
|
+
Use a headed browser on the sandbox's streamed display so the user can watch.
|
|
48
|
+
Keep the visible window within the desktop work area; measure and adjust it
|
|
49
|
+
rather than assuming a fixed size. If the display is unavailable, report the
|
|
50
|
+
cloud desktop capability gap instead of using a headless or local fallback.
|
|
51
|
+
|
|
52
|
+
Load the caller's authorized saved state or use the repository's documented
|
|
53
|
+
login procedure. Verify access to the intended protected route; setting a state
|
|
54
|
+
path or leaving a login host is insufficient. Preserve known-good saved state.
|
|
55
|
+
If authentication requires a human and no authorized test setup is available,
|
|
56
|
+
return the specific blocker. Never invent credentials or bypass authorization.
|
|
57
|
+
|
|
58
|
+
## Mobile mode
|
|
59
|
+
|
|
60
|
+
Use `agent-browser device "<name>"` (or `set viewport 390 844`) for a phone
|
|
61
|
+
viewport, user agent, and touch. This is **emulated** mobile web: say so in
|
|
62
|
+
every observation. It is not native-device validation.
|
|
63
|
+
|
|
64
|
+
## Running the charter
|
|
65
|
+
|
|
66
|
+
- Set and verify the viewport before recording; keep it stable for the flow.
|
|
67
|
+
- Save driver captures with `.local-only` before the extension. Alan skips
|
|
68
|
+
automatic chat attachment for those files; the caller selects what to publish.
|
|
69
|
+
- Start `record start <evidence-dir>/<charter-slug>.local-only.webm` before the first
|
|
70
|
+
action and stop it at the end, including on failure. Keep one recording under
|
|
71
|
+
two minutes; split long charters.
|
|
72
|
+
- Re-observe with `snapshot --delta`: the first observation returns the full
|
|
73
|
+
tree and later ones return only what changed. Use `--full` to reset the
|
|
74
|
+
baseline after a navigation, a viewport change, or a ref you no longer trust.
|
|
75
|
+
- Screenshot when the state matters: after a submit, on an error, the end
|
|
76
|
+
state, anything that looks wrong. Name the file for what it shows. On a long
|
|
77
|
+
flow add `--if-changed` so an unchanged frame is skipped instead of uploaded
|
|
78
|
+
again. Use filenames such as `confirmation.local-only.png`.
|
|
79
|
+
- UI-change charter (the caller says so): capture the same screen twice, the
|
|
80
|
+
base state and the changed state, at the same viewport. Inject
|
|
81
|
+
`/alan-walkthrough` `scripts/mark-changes.js` with `agent-browser eval`,
|
|
82
|
+
call `alanMarks.mark([...])` with one numbered mark per distinct change (same
|
|
83
|
+
numbers on both captures, labels describing the old state before and the new
|
|
84
|
+
state after), screenshot with the marks visible, then `alanMarks.clear()`.
|
|
85
|
+
Name them `<surface>.before.local-only.png` and `<surface>.after.local-only.png`. Report any
|
|
86
|
+
`overlaps` the call returns.
|
|
87
|
+
- Check `agent-browser errors` and `console` on each page. A console error on
|
|
88
|
+
a user action is a finding.
|
|
89
|
+
- Verify the backend when it is cheap: an API read after a write, a network
|
|
90
|
+
entry. "It rendered" is not "it saved".
|
|
91
|
+
- Follow anything unusual, then return to the charter.
|
|
92
|
+
- Re-run a finding once before reporting it; the second run decides.
|
|
93
|
+
- If recording fails, clean up only your recorder/session and make one bounded
|
|
94
|
+
recovery attempt. Replay the affected flow with recording already running;
|
|
95
|
+
if it still fails, return an evidence gap.
|
|
96
|
+
|
|
97
|
+
## Output
|
|
98
|
+
|
|
99
|
+
Return only this, as a short note:
|
|
100
|
+
|
|
101
|
+
- **outcome**: `completed`, `partial`, or `blocked`;
|
|
102
|
+
- **observations**: what you did, in a few replayable sentences, including
|
|
103
|
+
inputs, account or role, viewport, and mode;
|
|
104
|
+
- **findings**: each with severity in words, surface, observed vs expected,
|
|
105
|
+
exact reproduction from a known state, times reproduced out of attempts,
|
|
106
|
+
confidence, and the sandbox capture paths that support it;
|
|
107
|
+
- **unverified**: what you could not reach and why;
|
|
108
|
+
- **capture paths**: the recording and screenshots you took, with before/after pairs and their numbered change list.
|
|
109
|
+
|
|
110
|
+
## Cleanup
|
|
111
|
+
|
|
112
|
+
Close only your session: `agent-browser --session <charter-slug> close`. Never
|
|
113
|
+
`close --all`; it kills other charters' sessions and recordings.
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: alan-walkthrough
|
|
3
|
+
version: 1.3.0
|
|
4
|
+
description: "This skill should be used when test findings and screenshots or recordings from an Alan cloud sandbox need to become published evidence, or when the user asks to \"show that this works\", \"record a walkthrough\", \"prove this bugfix\", or \"attach screenshots of the change\". It selects the minimum captures that prove each claim, captions them, publishes them, and returns capture refs. Do not use it to choose test coverage, judge a run's status, or write the test report."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Turn captures into evidence
|
|
8
|
+
|
|
9
|
+
Run this workflow only in an Alan cloud sandbox. If the cloud session or a
|
|
10
|
+
required capability is unavailable, report the blocker; do not switch to a
|
|
11
|
+
developer machine, local container, or CI runner.
|
|
12
|
+
|
|
13
|
+
A capture is only evidence when it proves a specific claim. This skill takes
|
|
14
|
+
claims (findings or "this works" statements) plus candidate sandbox captures,
|
|
15
|
+
keeps the fewest that prove each claim, publishes them, and hands back refs.
|
|
16
|
+
|
|
17
|
+
It does not decide what to test, assign severity, set the run status, or write
|
|
18
|
+
the report. The caller owns all of that.
|
|
19
|
+
|
|
20
|
+
## Input
|
|
21
|
+
|
|
22
|
+
- **Claims**: each finding or verified behavior, with the sandbox capture paths
|
|
23
|
+
the caller believes support it.
|
|
24
|
+
- **Candidate captures**: screenshots and recordings on the sandbox filesystem (for
|
|
25
|
+
test runs, under `/tmp/alan-captures/`).
|
|
26
|
+
|
|
27
|
+
## Step 1 · Reject what proves nothing
|
|
28
|
+
|
|
29
|
+
Open every candidate screenshot before selecting it; never select from the
|
|
30
|
+
filename. Reject a capture when it is:
|
|
31
|
+
|
|
32
|
+
- blank, black, all-white, or a loading spinner where content should be;
|
|
33
|
+
- the wrong route, a login page, an error page unrelated to the claim, or a
|
|
34
|
+
browser chrome error;
|
|
35
|
+
- setup noise (installing, seeding, signing in) rather than the behavior;
|
|
36
|
+
- redundant with a clearer capture of the same state.
|
|
37
|
+
|
|
38
|
+
Inspect representative recording frames and the moments cited by the claim.
|
|
39
|
+
Reject empty, frozen, wrong-app, or missing-transition video. If rejecting
|
|
40
|
+
leaves a claim with no evidence, say so to the caller: the claim stands on
|
|
41
|
+
its text and the gap is named. Never fabricate, reuse an unrelated capture, or
|
|
42
|
+
describe a screen nobody saw.
|
|
43
|
+
|
|
44
|
+
## Step 2 · Select the minimum proof
|
|
45
|
+
|
|
46
|
+
- One recording per charter or flow when order, timing, or navigation matters.
|
|
47
|
+
- A screenshot for each stable state that proves a claim: the end state, the
|
|
48
|
+
error message, the wrong value.
|
|
49
|
+
- Usually one to three captures per claim. More is noise.
|
|
50
|
+
|
|
51
|
+
Caption each selected capture with what it proves, not what it shows:
|
|
52
|
+
"Total stays at $42.00 after returning from the cancelled payment", not
|
|
53
|
+
"checkout page". For a recording, name the moment that matters ("at 0:41 the
|
|
54
|
+
second click is ignored").
|
|
55
|
+
|
|
56
|
+
## Step 3 · Publish
|
|
57
|
+
|
|
58
|
+
Run the bundled helper from this skill's directory (the directory containing
|
|
59
|
+
this `SKILL.md`) once per selected capture:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
node <this-skill-dir>/scripts/publish-capture.mjs <file> --caption "<what it proves>"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The helper handles validation, upload, bounded retries, and stored-file
|
|
66
|
+
verification. Use its returned `ref` and `markdown`; treat the ref as opaque.
|
|
67
|
+
The runtime supplies session-bound access. Never read or expose credentials,
|
|
68
|
+
pass guessed ownership IDs, or put a local path or upload URL in the report.
|
|
69
|
+
|
|
70
|
+
If the helper is unavailable, use the exposed `publish_capture` MCP tool
|
|
71
|
+
according to its current schema. If neither route is available, return the
|
|
72
|
+
publishing gap. Correct an invalid capture by retaking, trimming, or converting
|
|
73
|
+
it; do not repeatedly retry invalid input. After bounded transient recovery
|
|
74
|
+
fails, preserve the textual claim and name the missing evidence.
|
|
75
|
+
|
|
76
|
+
### Show evidence in chat
|
|
77
|
+
|
|
78
|
+
Select one capture from the verified final build for the current Alan
|
|
79
|
+
conversation: a screenshot that shows the changed state, or a short recording
|
|
80
|
+
that shows the key actions and outcome of a flow. Do not use a pre-fix capture
|
|
81
|
+
or a set of stills to prove a transition. Use the same helper with `--chat`.
|
|
82
|
+
Skip this if the capture already appeared automatically or the user asked not
|
|
83
|
+
to share media. Report and diagnostic captures with names like
|
|
84
|
+
`state.local-only.png` skip automatic chat attachment; they can still be
|
|
85
|
+
published explicitly.
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
node <this-skill-dir>/scripts/publish-capture.mjs <file> --chat
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Use this only when `attachment` is available and authorized. If the helper
|
|
92
|
+
cannot run, use `attachment` to reserve the upload, PUT the exact bytes,
|
|
93
|
+
then complete it. Wait for `ready`; the chat shows the media automatically.
|
|
94
|
+
Do not paste the receipt into the reply. Keep `--caption` for captures that
|
|
95
|
+
belong inside a report.
|
|
96
|
+
|
|
97
|
+
## Before / after pairs (UI changes)
|
|
98
|
+
|
|
99
|
+
When the claim is a UI change, one capture is not proof: the evidence is a
|
|
100
|
+
BEFORE and an AFTER of the same screen, in the same viewport and state, with
|
|
101
|
+
every change numbered. The driver captures both while the live page carries
|
|
102
|
+
the marks; this skill checks, publishes, and arranges them.
|
|
103
|
+
|
|
104
|
+
- BEFORE is the base state (the base ref run in a second checkout in the
|
|
105
|
+
sandbox, or the deployed build); AFTER is the change. If BEFORE cannot be
|
|
106
|
+
produced, say so and describe the old state in the legend. Never reuse an
|
|
107
|
+
unrelated capture.
|
|
108
|
+
- Every distinct change gets its own number, never grouped under one box. The
|
|
109
|
+
same number marks the same change on both images: on BEFORE the old state
|
|
110
|
+
(dashed box where something was removed), on AFTER the new state (dotted box
|
|
111
|
+
where something was added). Labels describe the old state on BEFORE and the
|
|
112
|
+
new state on AFTER.
|
|
113
|
+
- Marks are drawn on the live page, never on an exported PNG:
|
|
114
|
+
|
|
115
|
+
```sh
|
|
116
|
+
# Playwright: await page.addScriptTag({ path: "<this-skill-dir>/scripts/mark-changes.js" })
|
|
117
|
+
agent-browser eval "$(cat <this-skill-dir>/scripts/mark-changes.js)"
|
|
118
|
+
agent-browser eval 'alanMarks.mark([{"n":1,"selector":"#save","label":"Save in footer"}])'
|
|
119
|
+
# take the screenshot, then:
|
|
120
|
+
agent-browser eval 'alanMarks.clear()'
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
A mark is `{ n, selector | rect, label?, kind? }` (`kind`: `changed`,
|
|
124
|
+
`removed`, `added`). Prefer selectors. `mark()` returns `overlaps`; retake
|
|
125
|
+
with fewer or shorter labels if it is not empty. Open each marked capture
|
|
126
|
+
before selecting it, and reject one where a mark hides what it points at.
|
|
127
|
+
- Publish both images (Step 3) and return, per surface, the table row
|
|
128
|
+
`| Surface |  |  |` plus one legend
|
|
129
|
+
line per number, `N. Before: ... -> After: ...`, and the two local image
|
|
130
|
+
paths. The `capture:` row goes in the test report and the artifact. GitHub
|
|
131
|
+
cannot resolve `capture:` refs, so the PR body uses the same row with the
|
|
132
|
+
local paths, uploaded by `gh pr create|edit --body-file BODY --attach PATH`
|
|
133
|
+
(GitHub rewrites each local ref to its hosted URL).
|
|
134
|
+
- Videos for motion or timing: one per row, named by the second that matters.
|
|
135
|
+
- API and performance changes use the caller's Behavior/API and Metrics
|
|
136
|
+
tables; capture a terminal, log or trace view of before and after where it
|
|
137
|
+
helps.
|
|
138
|
+
|
|
139
|
+
## Output
|
|
140
|
+
|
|
141
|
+
Return to the caller, per claim: the published `markdown` lines (and the
|
|
142
|
+
Before / After rows with their legends) in the order they should appear, and any claim whose evidence was rejected or failed to
|
|
143
|
+
publish, with the reason. Nothing else; the caller writes the report.
|
|
144
|
+
|
|
145
|
+
## Standalone use
|
|
146
|
+
|
|
147
|
+
When the user only wants proof that something works ("show that this bugfix
|
|
148
|
+
works"), capture the before/after or the flow yourself with the available
|
|
149
|
+
driver, then run Steps 1 to 3. Test reports are the surface that renders
|
|
150
|
+
`capture:` refs, so persist the evidence with `create_test_report`: a short
|
|
151
|
+
title, what was shown, and the embedded `markdown` lines. Then tell the user
|
|
152
|
+
what each capture proves and link the report.
|