@testmuai/rook-skill 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testmuai/rook-skill",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Install the Rook agent-testing skill for Claude Code, Codex and Gemini CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/skills/SKILL.md CHANGED
@@ -11,6 +11,19 @@ Use Rook to derive scenarios, invoke the target and grade the evidence. Respect
11
11
  requests to use another tool. For saved-result requests, read the supplied files
12
12
  without starting setup, a new run or paid analysis.
13
13
 
14
+ ## Your role
15
+
16
+ You are the orchestrator: you choose and run Rook commands, and Rook does the
17
+ testing work. Discovery is `rook explore`, test design is `rook generate`, and
18
+ invocation and grading are `rook run` and `rook report`. When the user asks to
19
+ explore, understand, plan tests for or test an agent, run the matching command.
20
+ Do not read the target's code to describe the agent, or write your own test
21
+ plan or verdicts, in its place. Answer from Rook's agents, scenarios and
22
+ verdicts. Read the target's source only for a step Rook needs from you, such as
23
+ a profile's transport and command, or to explain a Rook result. If credits or
24
+ authorization block the next command, name it and what it needs; manual
25
+ analysis is not a substitute.
26
+
14
27
  ## Setup and execution
15
28
 
16
29
  Check `rook --version` and use `rook help <command>` for the installed CLI's
@@ -32,7 +45,7 @@ Use the next command needed by the current state:
32
45
 
33
46
  | Need | Command |
34
47
  | --- | --- |
35
- | Sign in | `rook login`, or `rook login --username <u> --access-key <k>` for CI |
48
+ | Sign in | `rook login`; in CI, export `LT_USERNAME` and `LT_ACCESS_KEY` (no login step) |
36
49
  | Select a project | `rook project use <id>` or `rook project create <name>` |
37
50
  | Discover agents | `rook explore . --json` |
38
51
  | Select an agent | `rook agent use <id>` |
@@ -3,7 +3,9 @@
3
3
  Requires bash, jq, the Rook CLI, a committed `.testmuai/rook/` tree containing
4
4
  `ROOK_AGENT_ID` and a selected, configured profile. Supply the profile's declared
5
5
  environment variables through CI secrets, alongside `LT_USERNAME`, `LT_ACCESS_KEY`
6
- and `ROOK_PROJECT_ID`. Set `GITHUB_RUN_ID` to a job label outside GitHub Actions.
6
+ and `ROOK_PROJECT_ID`. Rook signs in from `LT_USERNAME`/`LT_ACCESS_KEY` directly, ahead
7
+ of any stored sign-in, so the recipe needs no `rook login` step and the key never
8
+ appears on a command line. Set `GITHUB_RUN_ID` to a job label outside GitHub Actions.
7
9
  A person must review the target, its real writes, credit spend and tool grants
8
10
  before enabling this workflow. Install the CLI before this recipe; pin its
9
11
  version in your own CI for reproducibility. Compatibility is checked through required output fields, not
@@ -12,7 +14,6 @@ an exact version string. Recheck changed commands with `rook help <command>`.
12
14
  ```bash
13
15
  set -euo pipefail
14
16
  printf 'Rook CLI: %s\n' "$(rook --version)" >&2
15
- rook login --username "$LT_USERNAME" --access-key "$LT_ACCESS_KEY"
16
17
  rook project use "$ROOK_PROJECT_ID"
17
18
  rook agent use "$ROOK_AGENT_ID"
18
19
  rook explore . --yes
@@ -69,5 +70,6 @@ same flags and result checks. Do not silently switch between these policies.
69
70
 
70
71
  Cache the project `.testmuai/rook/` for history and comparisons. Never cache or
71
72
  commit `~/.testmuai/rook/`. `--yes` supplies broad command-scoped tool consent;
72
- existing deny policy still applies. Rook uses headless mode when stdin is not a
73
- TTY or a supported CI environment variable is set.
73
+ existing deny policy still applies. Rook uses headless mode when `--yes` is passed,
74
+ stdin is not a TTY, or any of `CI`, `GITHUB_ACTIONS`, `GITLAB_CI`, `BUILDKITE` or
75
+ `JENKINS_URL` is set (to any value, including `false`).
@@ -20,7 +20,7 @@ Commands that emit JSON write one document to stdout and prose to stderr.
20
20
  | `plan` | `{ username, user_id, org_name, org_id, subscription, credits }`; null credits means the balance could not be read |
21
21
  | `run` | `{ ok, error?, run_id?, halted, reason?, discarded?, unrunnable?, flag_problems?, credits, report? }` |
22
22
  | `report` | `{ run_id, name?, dir, report }`; `dir` is the evidence folder |
23
- | `scenarios list` | `{ agent_id, profile_id, total, runnable, scenarios: [{ scenario_id, title, feature_id, class, category?, state, excluded, unrunnable, multi_turn, repeat, criteria }] }` |
23
+ | `scenarios list` | `{ agent_id, profile_id, total, runnable, scenarios: [{ scenario_id, title, feature_id, class, category?, state, excluded, unrunnable, multi_turn, criteria }] }` |
24
24
  | `scenarios exclude/include/delete` | `{ ok: true, verb, ... }` |
25
25
  | `status` | `{ project_id, offline, agents: [{ local_id, name, tree, offline, features, scenarios, profiles, unfinished_runs, owed_runs }], runs? }` |
26
26
  | `mcp list` | `{ errors, servers: [{ name, origin, transport, state, source, changed_since_approval, shadowed_by }] }` |
@@ -65,8 +65,8 @@ still use the network, change state or invoke the target.
65
65
 
66
66
  ## On disk
67
67
 
68
- In 0.1.6, `.testmuai/rook/settings.json` keeps project selections separately for
69
- `local`, `stage` and `prod` in `selections[environment]`. After a switch, rook
68
+ In 0.1.6, `.testmuai/rook/settings.json` keeps a project selection per
69
+ environment in `selections[environment]`. After a switch, rook
70
70
  uses the new environment's selection, which may be empty even when another
71
71
  environment has one. Run `rook doctor` to see the active environment and
72
72
  `rook status --json` to read its `project_id`; if it is missing or wrong, run
@@ -7,11 +7,14 @@
7
7
 
8
8
  `--category` takes, comma-separated:
9
9
 
10
- | Class | Categories |
11
- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
12
- | functional | `happy_path`, `negative`, `boundary`, `integration`, `state_context` |
13
- | non_functional | `performance`, `token_economy`, `reliability`, `quality` |
14
- | adversarial | `prompt_injection`, `jailbreak`, `data_exfiltration`, `pii_leakage`, `harmful_content`, `hallucination`, `hijacking`, `policy_violation` |
10
+ | Class | Categories |
11
+ | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
12
+ | functional | `happy_path`, `negative`, `boundary`, `integration`, `state_context` |
13
+ | non_functional | `token_economy`, `quality` |
14
+ | adversarial | `prompt_injection`, `jailbreak`, `data_exfiltration`, `pii_leakage`, `harmful_content`, `hallucination`, `hijacking`, `policy_violation`, `technical_injection` |
15
+
16
+ `performance` and `reliability` are no longer categories: `generate` refuses
17
+ them, though existing scenario files that use them still load and run.
15
18
 
16
19
  Every scenario also carries free-form tags; `run --tag <names>` selects on them.
17
20
 
@@ -27,7 +30,13 @@ rook generate -- focus on the refund limits and the identity check
27
30
  `generate` derives scenarios per feature and pins them; a second `generate`
28
31
  only refreshes features whose pins are stale. `--force` re-derives everything.
29
32
  It may emit text despite `--json`; check the exit code, then read
30
- `rook scenarios list --json`.
33
+ `rook scenarios list --json`. An unknown `--class` or `--category` makes it exit
34
+ 1 before analysing anything, listing every valid value.
35
+
36
+ Each scenario's feature is the one it was assigned. If the model named a
37
+ different feature, `generate` warns and saves that scenario excluded; review it
38
+ in `rook scenarios list --json` and bring it back with
39
+ `rook scenarios include <id>` if it belongs in runs.
31
40
 
32
41
  ## Listing and curating
33
42
 
@@ -63,4 +72,4 @@ rook run --resume <id> --json # carry finished work into
63
72
 
64
73
  `--only` takes one comma-separated argument; repeating the flag keeps only
65
74
  the last occurrence, and a space-separated second id is read as instruction
66
- text.
75
+ text. Each scenario runs once; there is no repeat count.
@@ -10,7 +10,7 @@ rook status --json
10
10
  ```
11
11
 
12
12
  `doctor` prints version, node, workspace, environment, controller and api
13
- reachability, identity, auth state, project, mode (`headless` or `tui`)
13
+ reachability, identity, auth state, project, mode (`cli`, `tui` or `headless`)
14
14
  and tty.
15
15
 
16
16
  ## Failure documents
@@ -21,23 +21,27 @@ Gate refusals on `report`, `status` and `ask`, and parser errors, may have no
21
21
  JSON document; use the stderr diagnostic. Do not infer successful execution
22
22
  from `ok: true` or from an old report on disk.
23
23
 
24
- | `error` says | Do |
25
- | ------------------------ | ----------------------------------------------------------------------------------------------- |
26
- | `remedy: login` | you are not signed in — `rook login`; in CI, `rook login --username <u> --access-key <k>` |
27
- | `remedy: new_session` | that session has been used up — run the command again |
28
- | `remedy: retry` | could not reach rook-api — it may be down, or the network; wait and try again, or `rook doctor` |
29
- | `remedy: request_access` | you do not have access to this project — ask the org admin for access |
30
- | `remedy: create_project` | this org has no projects yet — `rook project create <name>` |
31
- | `remedy: pick_project` | no project selected — `rook project use <id>` |
32
- | `remedy: agent_missing` | the active agent is gone — `rook agent use <id>` |
33
- | `remedy: explore_agents` | no agents registered — `rook explore` |
34
- | `remedy: pick_agent` | no agent selected — `rook agent use <id>` |
35
- | `remedy: topup` | you are out of credits — check `rook plan` and add credits |
36
- | `remedy: reconcile` | this agent has diverged from upstream — `rook sync` |
37
- | `remedy: update` | this version is too old to be served — announce that `rook update` may install a newer version, then recheck skill compatibility |
38
- | no active agent | `rook agent use <id>` after `rook explore` |
39
- | no project selected | `rook project use <id>` or `rook project create <name>` |
40
- | could not reach rook-api | check the network; `doctor` shows both endpoints |
24
+ | `error` says | Do |
25
+ | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
26
+ | `remedy: login` | you are not signed in — `rook login`; in CI, export `LT_USERNAME` and `LT_ACCESS_KEY` |
27
+ | `remedy: repair_auth` | a stored sign-in could not be refreshed or saved — not a sign-out; run `rook login` again and check `~/.testmuai/rook` permissions |
28
+ | `remedy: new_session` | that session has been used up — run the command again |
29
+ | `remedy: retry` | could not reach the service — it may be down, or the network; wait and try again, or `rook doctor` |
30
+ | `remedy: wait` | rate-limited — wait the stated time, then retry |
31
+ | `remedy: server_error` | the service answered with an error — retry later; include the status in a bug report |
32
+ | `remedy: request_access` | you do not have access to this project — ask the org admin for access |
33
+ | `remedy: create_project` | this org has no projects yet — `rook project create <name>` |
34
+ | `remedy: pick_project` | no project selected — `rook project use <id>` |
35
+ | `remedy: agent_missing` | the active agent is gone — `rook agent use <id>` |
36
+ | `remedy: explore_agents` | no agents registered — `rook explore` |
37
+ | `remedy: pick_agent` | no agent selected — `rook agent use <id>` |
38
+ | `remedy: topup` | you are out of credits — check `rook plan` and add credits |
39
+ | `remedy: reconcile` | this agent has diverged from upstream — `rook sync` |
40
+ | `remedy: update` | this version is too old to be served — announce that `rook update` may install a newer version, then recheck skill compatibility |
41
+ | `remedy: report` | a client bug — file an issue with `rook export logs` attached |
42
+ | no active agent | `rook agent use <id>` after `rook explore` |
43
+ | no project selected | `rook project use <id>` or `rook project create <name>` |
44
+ | could not reach the service | check the network; `doctor` shows both endpoints |
41
45
 
42
46
  ## Discovery succeeds but registers no agents
43
47