@iamu-dev/iamu 0.2.0-beta.9 → 0.3.0-beta.0
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/dist/adapters/claude-plugin.d.ts +13 -0
- package/dist/adapters/registry.d.ts +6 -0
- package/dist/adapters/types.d.ts +19 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +5372 -1594
- package/dist/build-info.d.ts +53 -0
- package/dist/cloud-url.d.ts +19 -0
- package/dist/commands/auth-http.d.ts +37 -0
- package/dist/commands/auth-project-choice.d.ts +74 -0
- package/dist/commands/auth-token-input.d.ts +21 -0
- package/dist/commands/auth.d.ts +84 -0
- package/dist/commands/browse-actions.d.ts +61 -0
- package/dist/commands/browse-driver.d.ts +121 -0
- package/dist/commands/browse.d.ts +195 -0
- package/dist/commands/cloud-push.d.ts +27 -0
- package/dist/commands/complete.d.ts +132 -0
- package/dist/commands/completion.d.ts +2 -0
- package/dist/commands/context.d.ts +81 -0
- package/dist/commands/credentials.d.ts +144 -0
- package/dist/commands/diff-filter.d.ts +11 -0
- package/dist/commands/doctor.d.ts +33 -0
- package/dist/commands/edit-entity.d.ts +8 -0
- package/dist/commands/evaluate.d.ts +34 -0
- package/dist/commands/explore-crawl.d.ts +67 -0
- package/dist/commands/explore.d.ts +53 -0
- package/dist/commands/findings.d.ts +7 -0
- package/dist/commands/init.d.ts +27 -0
- package/dist/commands/instructions-walk.d.ts +69 -0
- package/dist/commands/instructions.d.ts +30 -0
- package/dist/commands/list.d.ts +5 -0
- package/dist/commands/live-run-client.d.ts +127 -0
- package/dist/commands/match.d.ts +15 -0
- package/dist/commands/mcp-config.d.ts +10 -0
- package/dist/commands/new-entity.d.ts +34 -0
- package/dist/commands/new-finding.d.ts +25 -0
- package/dist/commands/open.d.ts +8 -0
- package/dist/commands/port.d.ts +17 -0
- package/dist/commands/preflight.d.ts +26 -0
- package/dist/commands/prune.d.ts +11 -0
- package/dist/commands/pull.d.ts +5 -0
- package/dist/commands/register-cloud.d.ts +5 -0
- package/dist/commands/register-findings.d.ts +5 -0
- package/dist/commands/register-project.d.ts +5 -0
- package/dist/commands/register-walkthrough.d.ts +5 -0
- package/dist/commands/register.d.ts +10 -0
- package/dist/commands/report.d.ts +3 -0
- package/dist/commands/serve.d.ts +11 -0
- package/dist/commands/set-entity.d.ts +46 -0
- package/dist/commands/skills.d.ts +34 -0
- package/dist/commands/start-run.d.ts +56 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/step-numbering.d.ts +87 -0
- package/dist/commands/step.d.ts +96 -0
- package/dist/commands/summary.d.ts +20 -0
- package/dist/commands/sync.d.ts +6 -0
- package/dist/commands/triage.d.ts +21 -0
- package/dist/commands/update.d.ts +4 -0
- package/dist/commands/validate.d.ts +11 -0
- package/dist/commands/view-results.d.ts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +5369 -1637
- package/dist/sync-mcp/fatal.d.ts +42 -0
- package/dist/sync-mcp/server.d.ts +1 -0
- package/dist/sync-mcp/tools.d.ts +12 -0
- package/dist/templates/prompts/walk.md +62 -37
- package/dist/templates/skills/iamu-findings.md +118 -42
- package/dist/templates/skills/iamu-new.md +106 -60
- package/dist/templates/skills/iamu-propose.md +36 -25
- package/dist/templates/skills/iamu-run.md +273 -114
- package/dist/templates/skills/iamu-setup.md +252 -176
- package/dist/templates/skills/iamu-stage.md +164 -0
- package/dist/templates/skills/iamu-status.md +16 -11
- package/dist/templates.d.ts +10 -0
- package/dist/ui/journey-diff.d.ts +3 -0
- package/dist/ui/json.d.ts +6 -0
- package/dist/ui/logger.d.ts +5 -0
- package/dist/ui/panic.d.ts +11 -0
- package/dist/ui/symbols.d.ts +11 -0
- package/dist/ui/table.d.ts +20 -0
- package/dist/ui/update-check.d.ts +6 -0
- package/dist/worktree-state.d.ts +49 -0
- package/package.json +8 -8
- package/dist/eval/gemini-eval-cli.js +0 -976
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: iamu-setup
|
|
3
|
-
description:
|
|
3
|
+
description: Use when initializing or onboarding a project to Iamu, scaffolding the iamu/ directory, configuring testability boundaries, or seeding initial personas and inaugural scenarios.
|
|
4
4
|
generatedBy: __IAMU_VERSION__
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Set up a project for scenario-driven walkthroughs — all local, no cloud required. Scaffolds an `iamu/` tree under your project root, analyzes the repo to compose a project-context summary, persists
|
|
7
|
+
Set up a project for scenario-driven walkthroughs — all local, no cloud required. Scaffolds an `iamu/` tree under your project root, analyzes the repo to compose a project-context summary, persists context to `iamu/context.yml`, seeds 1 primary persona into `iamu/personas/`, and drafts 1 inaugural scenario into `iamu/scenarios/`. Ready to run immediately with `iamu-run`.
|
|
8
8
|
|
|
9
9
|
Model reminder (internal — users never type these): `capability → scenario → run → finding`. A scenario is the runnable thing — a situation narrative bound to a persona. Capabilities are optional labels that group scenarios. `iamu-new` creates scenarios; `iamu-run` executes them; `iamu-findings` reviews results.
|
|
10
10
|
|
|
11
11
|
What this skill does, end to end:
|
|
12
12
|
|
|
13
13
|
- **Scaffold** — `iamu/` tree on disk via `iamu init`. No login, no cloud.
|
|
14
|
-
- **Understand** — read the repo to
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
- **Understand** — read the repo automatically to detect dev server, mock fixtures, external boundaries, domain stakes, and user roles.
|
|
15
|
+
- **Step 1: Safety & Testability Fence** — agree on the sandbox boundaries (`iamu/testability.md`) so the autonomous browser agent never leaks data or hits real external services.
|
|
16
|
+
- **Step 2: Project Domain & Description** — verify domain context and project description (`iamu/context.yml`) to ground UX evaluations.
|
|
17
|
+
- **Step 3: Co-Design First Journey** — co-create a high-friction scenario, verify auth preconditions (`personas/`, `outlines/`, `scenarios/`), and validate.
|
|
18
|
+
- **Next Action** — copy-pasteable command to launch your first walkthrough.
|
|
19
|
+
- **Cloud (optional)** — link to Iamu Cloud if you want to share findings with your team.
|
|
19
20
|
|
|
20
21
|
$ARGUMENTS
|
|
21
22
|
|
|
@@ -25,230 +26,305 @@ $ARGUMENTS
|
|
|
25
26
|
|
|
26
27
|
Check whether `iamu/config.json` already exists:
|
|
27
28
|
|
|
28
|
-
- **If already scaffolded (`iamu/config.json` exists):** Do not re-run `iamu init`. Introduce the
|
|
29
|
-
>
|
|
29
|
+
- **If already scaffolded (`iamu/config.json` exists):** Do not re-run `iamu init`. Introduce the workflow roadmap concisely and proceed directly to Step 2:
|
|
30
|
+
> **Setting up Iamu.** We'll build your testing foundation together in three clear steps:
|
|
31
|
+
> 1. **Safety Boundary (`testability.md`)**: Ensure the autonomous browser agent is fenced to local dev and cannot trigger real-world external side effects.
|
|
32
|
+
> 2. **Domain Grounding (`context.yml`)**: Teach Iamu what the application does, its primary workflows, and real-world stakes.
|
|
33
|
+
> 3. **First Journey (`personas/` + `scenarios/`)**: Design a realistic human friction test and verify how your persona logs in.
|
|
30
34
|
- **If not yet scaffolded:** Run `iamu init [project-name]` in the terminal (pass a project name if the user named one explicitly; otherwise omit). The command scaffolds `iamu/config.json`, entity subdirs, `.runs/`, `.cache/`, `.gitignore`.
|
|
31
|
-
Introduce
|
|
32
|
-
> **iamu** tests your product as realistic personas and reports what works, what doesn't, and how to fix it.
|
|
35
|
+
Introduce the workflow roadmap:
|
|
36
|
+
> **iamu** tests your product as realistic personas and reports what works, what doesn't, and how to fix it. We'll build your testing foundation together in three collaborative steps:
|
|
37
|
+
> 1. **Safety Boundary (`testability.md`)**: Define where the browser agent is allowed to go, and what external services must never be touched.
|
|
38
|
+
> 2. **Domain Grounding (`context.yml`)**: Ground Iamu in what your product actually is, its primary workflows, and key constraints.
|
|
39
|
+
> 3. **First Journey (`personas/` + `scenarios/`)**: Design a realistic human friction test and verify how your persona logs in.
|
|
33
40
|
- **Error containing "legacy `.iamu/` layout"** → tell the user to remove the legacy directory, then re-run.
|
|
34
41
|
|
|
35
42
|
### 2. Understand the project
|
|
36
43
|
|
|
37
|
-
Explore the codebase automatically — do NOT ask the user what files to read.
|
|
44
|
+
Explore the codebase automatically — do NOT ask the user what files to read. Extract domain and environment facts strictly from code:
|
|
45
|
+
|
|
46
|
+
1. **Framework & Dev Server Port Detection:**
|
|
47
|
+
- Inspect package manifests: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`.
|
|
48
|
+
- Read framework configs to reliably extract default dev ports:
|
|
49
|
+
- `vite.config.*` / `svelte.config.*` → default port 5173
|
|
50
|
+
- `astro.config.*` → default port 4321
|
|
51
|
+
- `next.config.*` / Rails / Remix → default port 3000
|
|
52
|
+
- `wrangler.toml` / `wrangler.json` (Cloudflare Workers/Pages)
|
|
53
|
+
- `docker-compose.yml`
|
|
54
|
+
- Read `.env`, `.env.development`, `.env.local` for `PORT`, `VITE_PORT`, `NEXT_PUBLIC_APP_URL`.
|
|
55
|
+
- If unsure, check port reachability on common ports (3000, 5173, 8080, 4321).
|
|
56
|
+
2. **Reachable Entry Route:**
|
|
57
|
+
- Scan page directories: `app/**/page.tsx`, `pages/**/*.tsx`, `src/routes/**/*.svelte`, React Router `routes.ts`/`App.tsx`.
|
|
58
|
+
- Pick a concrete static route (e.g. `/incidents/new`, `/cart`, `/checkout`), NOT an unresolved parameterized path (`/projects/:id`) unless seed fixture IDs are known.
|
|
59
|
+
3. **Auth & Persona Access:**
|
|
60
|
+
- Inspect auth route guards (`middleware.ts`, ProtectedRoute, session hooks).
|
|
61
|
+
- Identify dev bypass (`MOCK_AUTH`), test accounts/fixtures, persona switcher, or public access.
|
|
62
|
+
4. **Project Description & Domain:**
|
|
63
|
+
- Read `README.md`, `CLAUDE.md`, docs, OpenAPI / JSON schemas, route structures.
|
|
64
|
+
- Formulate a clear, concise description of what the software does, its primary workflows, and who uses it.
|
|
65
|
+
- **STRICT REGULATION RULE:** Never infer regulations from industry keywords. Only include `governed_by` if the codebase explicitly references specific legislation or statutory standards. Non-regulated software is the default — omit `governed_by` entirely if absent.
|
|
66
|
+
5. **Safety & Untestable Boundaries:**
|
|
67
|
+
- Scan for external API calls, third-party integrations (Stripe, Twilio, external government submission portals, live OAuth/Keycloak SSO).
|
|
68
|
+
- Identify local mock fixtures (`msw`, seed SQL scripts, mock services).
|
|
38
69
|
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
70
|
+
**If there is no code (greenfield, design phase, or test sandbox):** do NOT interrogate the user with a multi-part survey or ask for dev auth plumbing. Ask for a single entry point:
|
|
71
|
+
No local codebase detected. To seed context, provide one of:
|
|
72
|
+
• A target URL (staging, production, or docs — e.g., `https://app.example.com`)
|
|
73
|
+
• A one-sentence description of what this product does
|
|
74
|
+
• Or type `"sandbox"` to seed a pre-configured B2B SaaS demo
|
|
44
75
|
|
|
45
|
-
|
|
46
|
-
Write as an objective domain expert describing the business and its users, NOT marketing jargon, cookie notices, or tech stack. Do NOT hedge with "appears to be" or "seems to".
|
|
76
|
+
---
|
|
47
77
|
|
|
48
|
-
|
|
49
|
-
1. **What the product fundamentally IS** — core workflow, product type, and problem space.
|
|
50
|
-
2. **Who actually uses it and what they come here to do** — enumerate the real user journeys (e.g. reporting incidents, triaging risks, delegating actions, auditing).
|
|
51
|
-
3. **What makes THIS product specific** — geography, jurisdiction, regulatory mandates, or business model.
|
|
52
|
-
4. **Operational characteristics** — how users physically and organizationally encounter the software (e.g. deskless frontline mobile workers in high-hazard environments, strict statutory completion deadlines, immutable audit trails).
|
|
78
|
+
### 3. Step 1/3: Establish the Safety Fence (`iamu/testability.md`)
|
|
53
79
|
|
|
54
|
-
*
|
|
55
|
-
> "IA-systemet is Sweden's national work environment and safety incident management platform, utilized by thousands of Swedish enterprises to comply with statutory systematic work environment requirements (AML / AFS). It enables frontline employees to quickly log near-misses (tillbud), workplace accidents (olycksfall), and risk observations from desktop or mobile devices in the field. Core user journeys include real-time hazard reporting, line manager root-cause investigations, safety committee review, and action plan delegation with statutory compliance tracking."
|
|
80
|
+
Present the detected environment and safety fence. Explain clearly *why* this boundary is required before any autonomous agent runs. Do NOT wrap in markdown code fences (` ``` `) when presenting to the user:
|
|
56
81
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- Market, geography, and specific compliance frameworks (only if evident).
|
|
82
|
+
```text
|
|
83
|
+
Step 1/3: Safety Fence & Environment Boundary
|
|
84
|
+
Why this matters: Iamu drives a real headless browser with full agency. This boundary guarantees the agent stays confined to your local environment and never touches external services or triggers real-world side effects.
|
|
61
85
|
|
|
62
|
-
|
|
63
|
-
|
|
86
|
+
Detected Environment:
|
|
87
|
+
Target URL: <target_url, e.g. http://localhost:5173>
|
|
88
|
+
Dev Command: <dev_command, e.g. ./dev or pnpm dev>
|
|
89
|
+
Safe Fixtures: <detected seed scripts or mock handlers, e.g. organization_realistic_seed.sql, MSW>
|
|
90
|
+
DO NOT WALK: <detected external services, e.g. Arbetsmiljöverket external submission portal (anmalarbetsskada.se), Real SMS/Email gateways, Real OIDC Keycloak>
|
|
91
|
+
```
|
|
64
92
|
|
|
65
|
-
**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
93
|
+
**Interactive Decision Gate:**
|
|
94
|
+
Prompt the user to verify the safety boundary:
|
|
95
|
+
- If interactive user-prompt tools exist (`ask_question`, `ask_followup_question`), invoke it:
|
|
96
|
+
- Question: "Confirm safety fence and dev environment?"
|
|
97
|
+
- Options:
|
|
98
|
+
1. "[Recommended] Safety boundaries look safe — save fence and proceed"
|
|
99
|
+
2. "Adjust boundaries (add forbidden external URLs, change dev command or port)"
|
|
100
|
+
3. "Skip safety fence for now"
|
|
101
|
+
- Otherwise (text-only/CLI):
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
Confirm safety fence and dev environment?
|
|
105
|
+
1. [Recommended] Safety boundaries look safe — save fence and proceed
|
|
106
|
+
2. Adjust boundaries (add forbidden external URLs, change dev command or port)
|
|
107
|
+
3. Skip safety fence for now
|
|
108
|
+
|
|
109
|
+
Reply '1' to accept [default], select 2-3, or tell me what to adjust:
|
|
110
|
+
```
|
|
70
111
|
|
|
71
|
-
**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
112
|
+
**Action on confirmation (Option 1):**
|
|
113
|
+
Write `iamu/testability.md`:
|
|
114
|
+
```markdown
|
|
115
|
+
---
|
|
116
|
+
target_url: <target_url>
|
|
117
|
+
dev_command: <dev_command>
|
|
118
|
+
auth_strategy: <dev_switcher | interactive | test_accounts | public>
|
|
119
|
+
access: <How a walker becomes a given user: the switching mechanism, e.g. 'In the page, run localStorage.setItem("dev_persona", "<persona access>") and reload.' Omit when unknown. Never passwords or tokens.>
|
|
120
|
+
harnesses:
|
|
121
|
+
- <detected harnesses>
|
|
122
|
+
---
|
|
75
123
|
|
|
76
|
-
|
|
124
|
+
# Project Testability & Environment
|
|
77
125
|
|
|
78
|
-
|
|
79
|
-
|
|
126
|
+
## Target & Run Instructions
|
|
127
|
+
- Command: <dev command>
|
|
128
|
+
- Base URL: <target_url>
|
|
80
129
|
|
|
81
|
-
|
|
130
|
+
## Auth & Access Boundary
|
|
131
|
+
- <How a walker becomes this persona in dev or test mode>
|
|
82
132
|
|
|
83
|
-
|
|
133
|
+
## Reachable Surfaces
|
|
134
|
+
- <List discovered routes/entry points>
|
|
84
135
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
```
|
|
136
|
+
## Mocks & Data Fixtures
|
|
137
|
+
- <List existing MSW mock files, DB seed scripts, or fixture directories>
|
|
88
138
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
#### Phase A: Persist Context
|
|
94
|
-
Once the user confirms the narrative description:
|
|
95
|
-
1. Derive the structured frontmatter fields (`domain`, `actors`, `jurisdiction`, `governed_by`) from the confirmed text, and write `iamu/context.yml` with your file-editing tool. Put structured fields in frontmatter and the substantive narrative in the markdown body below the `---`:
|
|
96
|
-
|
|
97
|
-
```yaml
|
|
98
|
-
---
|
|
99
|
-
schema_version: 1
|
|
100
|
-
domain: workplace safety management
|
|
101
|
-
# jurisdiction: Sweden / EU # optional
|
|
102
|
-
# governed_by: # strictly optional - omit if not regulated
|
|
103
|
-
# - name: AFS 2023:2
|
|
104
|
-
# authority_level: regulation
|
|
105
|
-
actors:
|
|
106
|
-
- name: Store Admin
|
|
107
|
-
role: Manages catalog, inventory, and order fulfillment
|
|
108
|
-
- name: First-Time Buyer
|
|
109
|
-
role: Explores products, adds to cart, and checks out
|
|
110
|
-
access: >-
|
|
111
|
-
No login in dev. In the page, set localStorage "dev_persona" to the
|
|
112
|
-
persona's access value and reload.
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
<The substantive 1–2 paragraph project description and core user journeys>
|
|
116
|
-
```
|
|
139
|
+
## Untestable Boundaries (Do Not Walk)
|
|
140
|
+
- <List un-mocked external dependencies and external submission portals>
|
|
141
|
+
```
|
|
117
142
|
|
|
118
|
-
|
|
119
|
-
- `domain` — one line. Mandatory.
|
|
120
|
-
- Body markdown (below `---`) — substantive description and user journeys. Downstream skills read this as extended grounding.
|
|
121
|
-
- `jurisdiction` — optional. Only if evident or relevant.
|
|
122
|
-
- `governed_by[]` — strictly optional. Order by authority. Omit entirely if no regulations apply.
|
|
123
|
-
- `actors[]` — all identified roles and their responsibilities.
|
|
124
|
-
- `access` — optional. Only what the docs actually say; leave it out rather than guess.
|
|
125
|
-
- Do NOT add `industry` or `architecture` — these don't affect walkthroughs.
|
|
143
|
+
---
|
|
126
144
|
|
|
127
|
-
|
|
128
|
-
Scaffold the target environment, auth mechanisms, discovered surfaces, mock harnesses, and untestable boundaries discovered from the code:
|
|
145
|
+
### 4. Step 2/3: Ground Domain Context & Project Description (`iamu/context.yml`)
|
|
129
146
|
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
target_url: http://localhost:3000
|
|
133
|
-
dev_command: <detected dev script, e.g. pnpm dev or pnpm dev:mock>
|
|
134
|
-
auth_strategy: <dev_switcher | interactive | test_accounts | public>
|
|
135
|
-
harnesses:
|
|
136
|
-
- <detected harnesses, e.g. msw, seed>
|
|
137
|
-
---
|
|
147
|
+
Explain the purpose of project context: traditional tests only assert button clicks; Iamu evaluates user confusion, workflow friction, and whether a real person can succeed under real-world constraints.
|
|
138
148
|
|
|
139
|
-
|
|
149
|
+
Present the discovered domain and project description. Do NOT introduce or ask the user to approve personas or roles at this stage — personas are cast later when designing specific test journeys. Do NOT wrap in markdown code fences (` ``` `) when presenting to the user:
|
|
140
150
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
151
|
+
```text
|
|
152
|
+
Step 2/3: Project Domain & Description
|
|
153
|
+
Why this matters: Grounds the AI evaluator in your domain's real stakes and vocabulary so it can spot human confusion rather than just syntax errors.
|
|
144
154
|
|
|
145
|
-
|
|
146
|
-
|
|
155
|
+
Discovered Domain:
|
|
156
|
+
Domain: <domain name, e.g. Workplace safety management (EHS)>
|
|
157
|
+
Industry: <industry, e.g. Manufacturing / Industrial>
|
|
158
|
+
Jurisdiction: <jurisdiction or omit if standard web app>
|
|
159
|
+
Governed By: <statutory regulations or standards, or omit if unregulated>
|
|
147
160
|
|
|
148
|
-
|
|
149
|
-
|
|
161
|
+
Project Description:
|
|
162
|
+
<1 cohesive paragraph: what the software fundamentally does, its primary user workflows, and the real-world conditions under which it is used. No marketing buzzwords, no hedging, and no tech stack trivia.>
|
|
163
|
+
```
|
|
150
164
|
|
|
151
|
-
|
|
152
|
-
|
|
165
|
+
**Interactive Decision Gate:**
|
|
166
|
+
Prompt the user to verify the project description:
|
|
167
|
+
- If interactive user-prompt tools exist (`ask_question`, `ask_followup_question`), invoke it:
|
|
168
|
+
- Question: "Confirm project domain & description?"
|
|
169
|
+
- Options:
|
|
170
|
+
1. "[Recommended] Project description is accurate — proceed to design first test"
|
|
171
|
+
2. "Save project description only (skip scenario creation for now)"
|
|
172
|
+
3. "Adjust domain or description"
|
|
173
|
+
- Otherwise (text-only/CLI):
|
|
174
|
+
|
|
175
|
+
```text
|
|
176
|
+
Confirm project domain & description?
|
|
177
|
+
1. [Recommended] Project description is accurate — proceed to design first test
|
|
178
|
+
2. Save project description only (skip scenario creation for now)
|
|
179
|
+
3. Adjust domain or description
|
|
180
|
+
|
|
181
|
+
Reply '1' to accept [default], select 2-3, or tell me what to adjust:
|
|
182
|
+
```
|
|
153
183
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
184
|
+
**Action on confirmation (Option 1):**
|
|
185
|
+
Write `iamu/context.yml`. Put structured fields in frontmatter and the project description in the markdown body below the `---`:
|
|
186
|
+
```yaml
|
|
187
|
+
---
|
|
188
|
+
schema_version: 1
|
|
189
|
+
domain: <domain>
|
|
190
|
+
# industry: <industry> # optional
|
|
191
|
+
# jurisdiction: <jurisdiction> # strictly optional - omit if standard web app
|
|
192
|
+
# governed_by: # strictly optional - omit if not regulated
|
|
193
|
+
# - name: <statutory regulation>
|
|
194
|
+
# authority_level: regulation
|
|
195
|
+
---
|
|
157
196
|
|
|
158
|
-
|
|
197
|
+
<The substantive 1–2 paragraph project description and core user workflows>
|
|
198
|
+
```
|
|
159
199
|
|
|
160
|
-
|
|
161
|
-
|
|
200
|
+
*If user chooses Option 2 (Save context only):* write `context.yml` and exit cleanly:
|
|
201
|
+
"✓ Project context initialized. When you're ready to create your first test journey, run `/iamu:new`."
|
|
162
202
|
|
|
163
|
-
|
|
164
|
-
>
|
|
165
|
-
> Would you like to seed 1–2 baseline personas to your casting panel now?
|
|
166
|
-
> Reply **"yes"** to propose personas, or **"skip"** to create scenarios directly via `iamu-new`.
|
|
203
|
+
---
|
|
167
204
|
|
|
168
|
-
|
|
169
|
-
Propose 1–2 primary personas grounded in the confirmed actors and operational characteristics:
|
|
205
|
+
### 5. Step 3/3: Co-Design Your First Test Journey (`personas/`, `outlines/`, `scenarios/`)
|
|
170
206
|
|
|
171
|
-
|
|
172
|
-
### 🎭 Proposed Primary Personas
|
|
207
|
+
Explain the journey model: an Iamu test binds a **Persona** (with habits, pressures, and impatience) to a **Situation** (a realistic high-stakes problem) with an **Evaluation Checkpoint** (a concrete binary question for the AI judge).
|
|
173
208
|
|
|
174
|
-
|
|
175
|
-
- **Context & Usage:** <Where and how they use the app (e.g. mobile on the floor vs. desktop in office)>
|
|
176
|
-
- **Disposition:** <Patience level, technical confidence, key motivations>
|
|
177
|
-
- **Friction Triggers:** <Specific interactions that cause friction, drop-off, or failure>
|
|
209
|
+
Present the proposed test journey, including explicit **Auth Precondition Verification**. Do NOT wrap in markdown code fences (` ``` `) when presenting to the user:
|
|
178
210
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
- **Friction Triggers:** <Specific interactions that cause friction, drop-off, or failure>
|
|
211
|
+
```text
|
|
212
|
+
Step 3/3: Co-Design Your First Test Journey
|
|
213
|
+
Why this matters: Validates whether a real human with specific operational pressures can complete a critical task without getting blocked or frustrated.
|
|
183
214
|
|
|
184
|
-
|
|
215
|
+
Baseline Test Proposal (WYSIWGW Spec-Sheet):
|
|
216
|
+
Persona: <Name> (<Role / Title>)
|
|
217
|
+
• Reality: <Working context, physical habits, tenure, pressures>
|
|
218
|
+
• Friction: <Diagnostic friction, skepticism, bounce trigger>
|
|
219
|
+
Situation: <Outline Title>
|
|
220
|
+
• Tension: <Core problem-space tension in X vs Y format — no UI button names>
|
|
221
|
+
• Evaluation: <Concrete binary yes/partial/no question for evaluator>
|
|
222
|
+
Walk Surface: Entry: `<entry_path>` | Target: `<target_url>`
|
|
223
|
+
Auth Precondition: <Detected auth mechanism, e.g. "Dev persona switcher (localStorage.sf_dev_persona = 'anna')" or "Public">
|
|
224
|
+
Walker Brief: "<2–3 sentence first-person test brief that will be written verbatim to disk. States immediate intent and constraints before opening tool. Zero UI terminology.>"
|
|
225
|
+
```
|
|
185
226
|
|
|
186
|
-
**
|
|
187
|
-
|
|
227
|
+
**Interactive Decision Gate:**
|
|
228
|
+
Prompt the user to verify the scenario and its auth precondition:
|
|
229
|
+
- If interactive user-prompt tools exist (`ask_question`, `ask_followup_question`), invoke it:
|
|
230
|
+
- Question: "Scaffold this baseline journey?"
|
|
231
|
+
- Options:
|
|
232
|
+
1. "[Recommended] Scaffold journey with <detected auth mechanism>"
|
|
233
|
+
2. "Use interactive human login handshake (pause browser for live login)"
|
|
234
|
+
3. "Switch role / design a different scenario (write-in)"
|
|
235
|
+
4. "Skip scenario for now"
|
|
236
|
+
- Otherwise (text-only/CLI):
|
|
237
|
+
|
|
238
|
+
```text
|
|
239
|
+
Scaffold this baseline journey?
|
|
240
|
+
1. [Recommended] Scaffold journey with <detected auth mechanism>
|
|
241
|
+
2. Use interactive human login handshake (pause browser for live login)
|
|
242
|
+
3. Switch role / design a different scenario
|
|
243
|
+
4. Skip scenario for now
|
|
244
|
+
|
|
245
|
+
Reply '1' to accept [default], select 2-4, or tell me what to adjust:
|
|
188
246
|
```
|
|
189
247
|
|
|
190
|
-
|
|
191
|
-
1. Scaffold
|
|
248
|
+
**Action on confirmation (Option 1 or Option 2):**
|
|
249
|
+
1. **Scaffold Persona**:
|
|
192
250
|
```bash
|
|
193
251
|
iamu new persona --name "<Name>" --role "<Role>" --disposition "<Disposition>" --body "<2-4 sentence narrative detailing technical habits, patience level, and specific friction triggers>" [--access "<account-or-role>"] --json
|
|
194
252
|
```
|
|
195
|
-
2.
|
|
253
|
+
2. **Scaffold Situation Outline**:
|
|
254
|
+
```bash
|
|
255
|
+
iamu new outline --name "<Outline Title>" --tension "<Core Tension>" --human-test "<Concrete yes/partial/no evaluation question>" --narrative "<2-3 sentence problem-space narrative without UI terms>" --json
|
|
256
|
+
```
|
|
257
|
+
3. **Scaffold Bound Scenario**:
|
|
258
|
+
```bash
|
|
259
|
+
iamu new scenario --name "<persona-slug>--<outline-slug>" --outline "<outline-slug>" --persona "<persona-slug>" --entry "<entry_path>" --body "<Persona's first-person test brief describing what they intend to achieve>" --json
|
|
260
|
+
```
|
|
261
|
+
4. **Validate all entities**:
|
|
196
262
|
```bash
|
|
197
263
|
iamu validate --all
|
|
198
264
|
```
|
|
199
|
-
3. Confirm: "Context saved and personas seeded in iamu/personas/. Run `iamu-new` to draft your first scenario."
|
|
200
|
-
|
|
201
|
-
**If the user chooses "skip":**
|
|
202
|
-
Confirm: "Context saved. Run `iamu-new` to draft your first scenario."
|
|
203
|
-
|
|
204
|
-
### 4. Offer cloud link (optional)
|
|
205
265
|
|
|
206
|
-
|
|
266
|
+
---
|
|
207
267
|
|
|
208
|
-
|
|
209
|
-
|
|
268
|
+
### 6. Completion & First Walkthrough Handoff
|
|
269
|
+
|
|
270
|
+
Present the completion handoff cleanly.
|
|
271
|
+
|
|
272
|
+
**Formatting & Output Rules:**
|
|
273
|
+
- Do NOT output markdown header hashes (`#`, `##`, `###`) in the terminal handoff. Use bold (`**Next Step:**`) or plain text.
|
|
274
|
+
- Do NOT output a redundant bullet list of "Generated entities:" after the file tree. The visual tree already displays the files.
|
|
275
|
+
- Check `iamu/config.json`:
|
|
276
|
+
- **If `cloud_linked: true`:** Output `• iamu sync Sync completed runs and findings to Iamu Cloud`. Do NOT recommend `iamu auth login`.
|
|
277
|
+
- **If `cloud_linked: false`:** Output `• iamu auth login Connect to Iamu Cloud to share run reports with your team (optional)`.
|
|
278
|
+
|
|
279
|
+
Render the output:
|
|
280
|
+
|
|
281
|
+
```text
|
|
282
|
+
✓ Scaffolding complete:
|
|
283
|
+
|
|
284
|
+
iamu/
|
|
285
|
+
├── testability.md [safety fence active: <target_url>]
|
|
286
|
+
├── context.yml [domain: <domain>]
|
|
287
|
+
├── personas/
|
|
288
|
+
│ └── <persona-slug>.md
|
|
289
|
+
├── outlines/
|
|
290
|
+
│ └── <outline-slug>.md
|
|
291
|
+
└── scenarios/
|
|
292
|
+
└── <persona-slug>--<outline-slug>.md
|
|
293
|
+
|
|
294
|
+
Next step:
|
|
295
|
+
Ensure your dev server is running on <target_url>, then trigger the walkthrough in your agent:
|
|
296
|
+
|
|
297
|
+
iamu-run <persona-slug>--<outline-slug>
|
|
298
|
+
|
|
299
|
+
Other commands when you're ready:
|
|
300
|
+
• iamu-new Draft a scenario for a different product flow
|
|
301
|
+
• iamu-propose Brainstorm high-risk workflows and blind spots
|
|
302
|
+
• iamu doctor Diagnose test environment and target health
|
|
303
|
+
<If cloud_linked: true>
|
|
304
|
+
• iamu sync Sync completed runs and findings to Iamu Cloud
|
|
305
|
+
<If cloud_linked: false>
|
|
306
|
+
• iamu auth login Connect to Iamu Cloud to share run reports with your team (optional)
|
|
210
307
|
```
|
|
211
308
|
|
|
212
|
-
|
|
213
|
-
- **`cloud_linked: true`, `authenticated: false`** → the project is linked but this machine has no credentials, so nothing will push. Offer `iamu auth login`; it restores credentials for the same project without asking which one.
|
|
214
|
-
- **`cloud_linked: false`** → ask once:
|
|
215
|
-
|
|
216
|
-
> Want to link this project to Iamu Cloud? Every walkthrough then gets a shareable report link (screenshots and step replay), your team can triage findings together, and teammates can queue requests for you. Everything keeps working locally; `iamu auth disconnect` unlinks.
|
|
217
|
-
|
|
218
|
-
Three outcomes:
|
|
309
|
+
### 7. Cloud link (optional)
|
|
219
310
|
|
|
220
|
-
-
|
|
221
|
-
- **Skip** → local-only project stays local-only. User can connect later by re-running `iamu-setup` or running `iamu auth login` directly.
|
|
222
|
-
- **Later** → same as skip. No state change.
|
|
223
|
-
|
|
224
|
-
**Linking:**
|
|
311
|
+
Cloud linking is optional and non-blocking. It is recommended after executing your first walkthrough so you have run reports and findings to share.
|
|
225
312
|
|
|
313
|
+
If the project is not yet linked and the user explicitly asks to link during setup:
|
|
226
314
|
1. Tell the user: "Opening browser for Iamu Cloud login..." then run `iamu auth login`. Allow the command at least 150 seconds for the user to complete sign-in in their browser. If your shell cannot wait that long, or runs where no browser can open (remote or container session), ask the user to run `iamu auth login` in their own terminal and tell you when it is done.
|
|
227
|
-
2.
|
|
228
|
-
3. On success the output ends with `Dashboard: <url>` and
|
|
229
|
-
|
|
230
|
-
If login times out or fails (cloud unreachable, sign-in timed out, or network error):
|
|
231
|
-
- Explain clearly what happened: "Cloud linking could not be completed (<echo specific reason from command output>)."
|
|
232
|
-
- Reassure the user: "Your local project setup is 100% complete and fully functional. Personas, scenarios, outlines, and walkthroughs run locally without cloud."
|
|
233
|
-
- Provide the next step for linking: "You can link to Iamu Cloud anytime later by running `iamu auth login` in your terminal."
|
|
234
|
-
- Point to the next creative action: "Next: run `iamu-new` to draft your first scenario."
|
|
315
|
+
2. In a non-interactive shell with existing cloud projects, login stops after sign-in and lists them as `iamu auth login --project <id>` lines plus `--project new`. Show that list, ask which project this repository belongs to, then re-run with their choice.
|
|
316
|
+
3. On success the output ends with `Dashboard: <url>` and registered MCP server.
|
|
235
317
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
Close with one line pointing at the next step:
|
|
241
|
-
|
|
242
|
-
```
|
|
243
|
-
Setup complete. Next: run iamu-new to draft your first scenario.
|
|
244
|
-
```
|
|
318
|
+
If login times out or fails:
|
|
319
|
+
- "Your local project setup is 100% complete and fully functional. Personas, scenarios, outlines, and walkthroughs run locally without cloud."
|
|
320
|
+
- Point to: `iamu-run <persona-slug>--<outline-slug>`.
|
|
245
321
|
|
|
246
322
|
## Guidelines
|
|
247
323
|
|
|
248
|
-
- **
|
|
324
|
+
- **Baseline is runnable immediately.** Setup scaffolds configuration, 1 primary persona, 1 outline, and 1 bound scenario. The project graduates from setup in a 100% runnable state.
|
|
325
|
+
- **Clean terminal formatting.** Do not wrap agent briefings in markdown code fences (` ``` `). Use fixed column alignment for attributes and clean tree diagrams for generated files.
|
|
249
326
|
- **Non-regulated software is the default.** Do not invent or force regulations (`governed_by`) on apps, developer tools, or consumer software. If the codebase has no compliance documentation, omit `governed_by` entirely.
|
|
250
327
|
- **Explore automatically.** Read the codebase before asking the user anything. The user should only need to confirm or correct, not describe their own project from scratch.
|
|
251
|
-
- **Context on disk is load-bearing.** Once step
|
|
252
|
-
- **Handle re-runs gracefully.** An already-scaffolded project is a no-op on scaffold, a refresh on context/personas (if the user opts in), and a re-prompt on cloud link.
|
|
253
|
-
- **
|
|
254
|
-
- **Handle errors gracefully.** Unreachable file → note it, move on. Unreachable cloud (step 4) → report and let the user retry or defer.
|
|
328
|
+
- **Context on disk is load-bearing.** Once step 4 writes `iamu/context.yml`, every downstream skill (`iamu-new`, `iamu-run`) auto-loads it.
|
|
329
|
+
- **Handle re-runs gracefully.** An already-scaffolded project is a no-op on scaffold, a refresh on context/personas/scenarios (if the user opts in), and a re-prompt on cloud link.
|
|
330
|
+
- **Handle errors gracefully.** Unreachable file → note it, move on. Unreachable cloud → report and let the user retry or defer.
|