@testmuai/rook-skill 0.1.0 → 0.1.6

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/README.md CHANGED
@@ -4,7 +4,6 @@ Install the Rook skill for Claude Code, Codex and Gemini CLI. Requires Node.js
4
4
  22+ and npm. Install the [Rook CLI](https://github.com/LambdaTest/rook#install)
5
5
  separately. The skill supports compatible CLI releases and has its own package
6
6
  version; a CLI version bump alone does not require a skill-package release.
7
- The npm commands below work after maintainers publish the first package.
8
7
 
9
8
  ```bash
10
9
  npx @testmuai/rook-skill
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testmuai/rook-skill",
3
- "version": "0.1.0",
3
+ "version": "0.1.6",
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
@@ -44,7 +44,9 @@ Use the next command needed by the current state:
44
44
  Choose the profile's transport and command from the target's source or the
45
45
  user's invocation details; ask when unknown. See [profiles](references/profiles.md).
46
46
  Use `rook help <command>` for flags and [scenarios](references/scenarios.md) to
47
- scope a run with `--only`, classes, categories or tags.
47
+ scope a run with `--only`, classes, categories or tags. When an agent has more
48
+ than one profile, check the active profile with `rook profile` or pass
49
+ `rook run --profile <id>` to select the intended target.
48
50
 
49
51
  ## Authorization and credits
50
52
 
@@ -57,7 +59,7 @@ concluding that an effect is unverifiable. Keep secrets as `${VAR}` references t
57
59
  `rook env set`, outside profiles and transcripts.
58
60
 
59
61
  Announce spending before `explore`, `generate`, `run`, `profile add|fix`, `ask`
60
- and `report --rca`. `profile test` invokes the target without Rook model credits.
62
+ and `run|report --rca`. `profile test` invokes the target without Rook model credits.
61
63
  Use paid RCA only with user authorization. Track the user's budget across
62
64
  commands; do not assume the CLI enforces an aggregate task cap. Check its help
63
65
  for available limits. A null balance means unknown.
@@ -65,13 +65,22 @@ still use the network, change state or invoke the target.
65
65
 
66
66
  ## On disk
67
67
 
68
- `.testmuai/rook/settings.json` selects the project. Under
69
- `.testmuai/rook/projects/<project-id>/agents/<agent-id>/`:
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
70
+ uses the new environment's selection, which may be empty even when another
71
+ environment has one. Run `rook doctor` to see the active environment and
72
+ `rook status --json` to read its `project_id`; if it is missing or wrong, run
73
+ `rook project use <id>`.
74
+
75
+ New project directories usually use
76
+ `.testmuai/rook/projects/<project-slug>--<project-id>/`; existing `<project-id>`
77
+ directories are reused. Find the directory by its project ID rather than
78
+ assuming either form. Under its `agents/<agent-id>/` directory:
70
79
 
71
80
  | Path | Contents |
72
81
  | --- | --- |
73
82
  | `agent.yaml`, `features/`, `findings.yaml` | Agent specification, capabilities and findings |
74
- | `profiles/`, `scenarios/` | Invocation profiles and current scenarios |
83
+ | `profiles/`, `scenarios/` | Invocation profiles, generated profile READMEs and current scenarios |
75
84
  | `runs/<run-id>/run.yaml` | Run manifest and pinned profile revision |
76
85
  | `runs/<run-id>/` | Snapshots: `agent.yaml`, `features.yaml`, `profile.yaml` |
77
86
  | `runs/<run-id>/report.yaml` | Report returned by `report --json` |
@@ -24,11 +24,14 @@ rook profile use <id>
24
24
  rook profile show <id>
25
25
  ```
26
26
 
27
- `profile add` writes the script, runs it once against the agent (the goal is
28
- "Say hello and nothing else."), and corrects it. It is costed,
29
- may emit text despite `--json`, and uses `--yes` (or `--allow` rules) to
30
- run its own test call without a prompt. With neither `--from` nor
31
- `--command`, it reads the material from stdin.
27
+ `profile add` writes the script, runs it against the agent to verify it, and
28
+ corrects it. It may make several real target calls and costs Rook credits. It
29
+ may emit text despite `--json`; `--yes` (or `--allow` rules) permits its test
30
+ calls without a prompt. With neither `--from` nor `--command`, it reads the
31
+ material from stdin. If authoring stops after saving a profile but before
32
+ verification, the CLI keeps it as **unverified**. Inspect the saved script and
33
+ generated profile README, then use `rook profile test <id>` or
34
+ `rook profile fix <id>` as appropriate; do not treat the draft as ready to run.
32
35
 
33
36
  `profile test` calls the agent once with `--goal` and says what came back.
34
37
  Run it before the first `rook run` and after any change to the agent's URL,
@@ -49,4 +52,7 @@ rook env rm API_KEY
49
52
  ```
50
53
 
51
54
  Never paste a value into a profile, a scenario, a transcript, or a commit.
52
- Reference it as `${API_KEY}` and set it with `rook env set`.
55
+ Reference it as `${API_KEY}`. A verified `profile add` can store values it
56
+ actually used during verification; check `rook env list` and set any remaining
57
+ variables with `rook env set`. The shell's value takes precedence over a stored
58
+ value. `rook env show` prints the full secret, so avoid it in logs.
@@ -13,8 +13,6 @@
13
13
  | non_functional | `performance`, `token_economy`, `reliability`, `quality` |
14
14
  | adversarial | `prompt_injection`, `jailbreak`, `data_exfiltration`, `pii_leakage`, `harmful_content`, `hallucination`, `hijacking`, `policy_violation` |
15
15
 
16
- `technical_injection` is a valid `--category` value.
17
-
18
16
  Every scenario also carries free-form tags; `run --tag <names>` selects on them.
19
17
 
20
18
  ## Generating
@@ -44,10 +42,11 @@ IDs are separate arguments here, unlike `run --only SC-004,SC-009`. A
44
42
  comma-joined string is one unknown ID: nothing changes, and the document still
45
43
  says `ok: true` with the string under `unknown`. Check `changed` in the reply.
46
44
 
47
- `list` recomputes `unrunnable` against the profile as it is now: a scenario
48
- that needs a capability the profile lacks (a file, an image, an MCP server)
49
- says so and is skipped by `run`, and counts toward the assurance gap, not
50
- toward Fail.
45
+ `list` recomputes `unrunnable` against the current profile. A scenario needing
46
+ multiple turns without an observed conversation handle, or token-economy
47
+ grading without reported usage, is skipped by `run` and counts toward the
48
+ assurance gap, not toward Fail. File and image requirements are not rejected
49
+ solely by their input kind: inspect what the profile script can actually send.
51
50
 
52
51
  ## Scoping a run
53
52
 
@@ -10,8 +10,8 @@ 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`),
14
- tty, and state.
13
+ reachability, identity, auth state, project, mode (`headless` or `tui`)
14
+ and tty.
15
15
 
16
16
  ## Failure documents
17
17
 
@@ -59,14 +59,18 @@ are about something rook cannot see (a tool call the agent made off-record,
59
59
  an image); that is a gap to report, not a failure to fix.
60
60
 
61
61
  Inspect the saved raw response and hook records before concluding that the
62
- target omitted evidence. Two limitations observed in 0.1.1 can hide evidence already saved:
63
- an explicitly empty execute `calls` array is omitted from the hook record, and
64
- `json_path` checks do not decode a JSON string in `raw_response` before traversing
65
- it. A recorded `calls: []` or a field visible inside that string therefore does
66
- not guarantee a conclusive check. Report the limitation and retain the verdict;
67
- do not invent calls or change scenario criteria just to obtain a pass. On another
68
- release, verify whether the limitation still applies before attributing the gap
69
- to it.
62
+ target omitted evidence. In 0.1.1, an explicitly empty execute `calls` array
63
+ could be omitted from the hook record. It is not established whether later
64
+ releases still do this. If the saved raw response contains `calls: []` but the
65
+ hook record has no `calls`, report that gap and retain the recorded verdict;
66
+ do not invent calls or change scenario criteria just to obtain a pass.
67
+
68
+ The JSON-string decoding limitation observed in 0.1.1 is fixed in 0.1.6:
69
+ deterministic `json_path` checks can traverse valid JSON saved as a string in
70
+ `raw_response`. Invalid JSON, a raw string over the 8 MiB decode limit, or a
71
+ path that does not resolve yields Unable to Verify; the criterion's `achieved`
72
+ field explains why. Report that explanation and retain the recorded verdict;
73
+ do not invent evidence to fill the path.
70
74
 
71
75
  ## A verdict you disagree with
72
76
 
@@ -17,6 +17,16 @@ Statuses are **Pass**, **Fail**, and **Unable to Verify**. Unverifiable reasons:
17
17
  `agent_never_ran`, `not_observable`, or `undecidable`. A scenario that never ran
18
18
  has no verdict; do not turn its absence into a failure.
19
19
 
20
+ ## Pass rate
21
+
22
+ In 0.1.6, `totals.pass_rate` is `Pass / (Pass + Fail + Unable to Verify)`.
23
+ `totals.decided` still means `Pass + Fail`. Unable to Verify contributes to the
24
+ pass-rate denominator as a recorded result, but remains a separate verdict;
25
+ never describe it as Fail. If every recorded result is Unable to Verify,
26
+ `pass_rate` is `0`; if there are no recorded Pass, Fail or Unable to Verify
27
+ results, it is `null`, not zero.
28
+ Unjudged, not-run and unrunnable work does not enter this denominator.
29
+
20
30
  ## Presenting results
21
31
 
22
32
  Use a table like this, populated from the records: