@testmuai/rook-skill 0.1.14 → 0.1.22

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.14",
3
+ "version": "0.1.22",
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
@@ -78,9 +78,12 @@ commands; do not assume the CLI enforces an aggregate task cap. Check its help
78
78
  for available limits. A null balance means unknown.
79
79
  Rook checks the organisation's Agent Assurance plan before any model call or
80
80
  credit spend, whatever the balance. A `plan_required` or `upgrade_plan` refusal
81
- names the page that lifts it (billing, or onboarding to start a free trial); pass that link to the user instead of
82
- retrying. A plan without Rook cloud runs locally: when sync or cloud status is
83
- refused, use `rook run --test` for a local result. See
81
+ means the plan does not cover that step; nothing ran or was charged. Tell the
82
+ user what their plan does not include and do not retry. Do not pass on the
83
+ billing, upgrade or trial link the refusal names, or start a purchase; for plan
84
+ options, point to [TestMu AI pricing](https://www.testmuai.com/pricing/). A plan
85
+ without Rook cloud runs locally: when sync or cloud status is refused, use
86
+ `rook run --test` for a local result. See
84
87
  [troubleshooting](references/troubleshooting.md).
85
88
  Prefer scoped `--allow` grants; use `--yes` only within the authorized scope.
86
89
  See [headless contracts](references/headless-contract.md) for output, grants and
@@ -69,7 +69,8 @@ result should remain local instead, omit sync and use `rook run --test` with the
69
69
  same flags and result checks. Do not silently switch between these policies.
70
70
  Since 0.1.13, a plan without Rook cloud, such as Starter, refuses `sync` with
71
71
  `upgrade_plan`, so the job fails at that step. Switch to the local policy only
72
- if the user chooses it; otherwise pass on the upgrade link the refusal names.
72
+ if the user chooses it; otherwise report that the plan does not include Rook
73
+ cloud.
73
74
 
74
75
  Cache the project `.testmuai/rook/` for history and comparisons. Never cache or
75
76
  commit `~/.testmuai/rook/`. `--yes` supplies broad command-scoped tool consent;
@@ -42,6 +42,13 @@ reply.
42
42
  `profile fix [id] --what "<what is wrong>"` diagnoses and repairs; without
43
43
  `--what` it runs the profile and finds out.
44
44
 
45
+ A reset between scenarios belongs in the `open` hook. Rook also calls `open`
46
+ before a fresh-session probe, with `ROOK_OPEN_REASON=fresh_session_probe`; the
47
+ reset must skip then, or it erases what the probe looks for. A profile with a
48
+ top-level `reset:` is refused. A profile's `concurrency` applies when the run
49
+ has no `--concurrency` (at most 8); a profile whose `open` resets shared state
50
+ should declare `concurrency: 1`.
51
+
45
52
  ## Secrets
46
53
 
47
54
  ```bash
@@ -3,7 +3,10 @@
3
3
  ## Classes and categories
4
4
 
5
5
  `--class` takes `functional`, `non_functional`, `adversarial` (comma-separated;
6
- `generate` defaults to `functional,adversarial`).
6
+ `generate` defaults to `functional,adversarial`). Since 0.1.22 `non_functional`
7
+ and its categories are coming soon: rook neither writes nor runs them, a run
8
+ lists such scenarios as skipped, and asking for only them exits 0 and does
9
+ nothing.
7
10
 
8
11
  `--category` takes, comma-separated:
9
12
 
@@ -29,7 +32,8 @@ rook generate --category prompt_injection,jailbreak --json
29
32
  rook generate -- focus on the refund limits and the identity check
30
33
  ```
31
34
 
32
- `generate` derives scenarios per feature and pins them; a second `generate`
35
+ `--total N` adds at most N new scenarios; extras the writer returns are named
36
+ and not saved. `generate` derives scenarios per feature and pins them; a second `generate`
33
37
  only refreshes features whose pins are stale. `--force` re-derives everything.
34
38
  It may emit text despite `--json`; check the exit code, then read
35
39
  `rook scenarios list --json`. An unknown `--class` or `--category` makes it exit
@@ -81,6 +85,19 @@ and the skip reason names it: an `open` hook that seeds the fixture in
81
85
  `$ROOK_STATE_DIR/attack-fixture.json`, a `collect` hook that reports the
82
86
  observed control and outcome, or `open` and `close` hooks for a fresh session.
83
87
 
88
+ An adversarial row in `rook scenarios list --json` carries `metadata_version`:
89
+ `2` when rook's attack writer stamped it, `null` otherwise. `null` means the
90
+ attack was written before rook 0.1.11, by hand, or with metadata the writer
91
+ rejected. A generated attack with `null` that still runs is graded with no
92
+ control-reach check: a Pass shows the agent held, not that the attack reached
93
+ the control it was aimed at. When any is in scope, `rook run` names each one
94
+ with its file before it spends (on stderr under `--json`). If rook wrote them,
95
+ the notice says to remove those files and run the `rook generate --force`
96
+ command it prints; against a profile that does not thread turns it holds that
97
+ back. With a profile selected, `scenarios list` returns the same lines under
98
+ `notice`. Relay the notice to the user. Removing a file loses that scenario and
99
+ the regenerate spends credits, so do neither unless the user asks.
100
+
84
101
  ## Scoping a run
85
102
 
86
103
  ```bash
@@ -38,8 +38,8 @@ from `ok: true` or from an old report on disk.
38
38
  | `remedy: explore_agents` | no agents registered — `rook explore` |
39
39
  | `remedy: pick_agent` | no agent selected — `rook agent use <id>` |
40
40
  | `remedy: topup` | you are out of credits — check `rook plan` and add credits |
41
- | `remedy: plan_required` | the org has no active Agent Assurance plan (none, an ended free trial or an expired subscription), whatever its credit balance — nothing ran or was charged; give the user the link the refusal names: since 0.1.14, the onboarding page to start the free trial when the org never had a plan, otherwise billing |
42
- | `remedy: upgrade_plan` | the plan has no Rook cloud (such as Starter) — sync, cloud project status and recording runs on Rook cloud are refused; keep work local with `rook run --test`, or give the user the upgrade link the refusal names |
41
+ | `remedy: plan_required` | the org has no active Agent Assurance plan (none, an ended free trial or an expired subscription), whatever its credit balance — nothing ran or was charged; tell the user the plan does not include Rook, and for plan options point to [TestMu AI pricing](https://www.testmuai.com/pricing/), not to the trial or billing link the refusal names |
42
+ | `remedy: upgrade_plan` | the plan has no Rook cloud (such as Starter) — sync, cloud project status and recording runs on Rook cloud are refused; keep work local with `rook run --test`, or tell the user the plan does not include Rook cloud |
43
43
  | `remedy: reconcile` | this agent has diverged from upstream — `rook sync` |
44
44
  | `remedy: update` | this version is too old to be served — announce that `rook update` may install a newer version, then recheck skill compatibility |
45
45
  | `remedy: report` | a client bug — file an issue with `rook export logs` attached |
@@ -47,9 +47,10 @@ from `ok: true` or from an old report on disk.
47
47
  | no project selected | `rook project use <id>` or `rook project create <name>` |
48
48
  | could not reach the service | check the network; `doctor` shows both endpoints |
49
49
 
50
- A plan refusal shows the billing page that lifts it as the next step; Rook uses
51
- only https links on LambdaTest or TestMu AI hosts. Do not retry the refused
52
- command until the plan changes.
50
+ A plan refusal names a billing, upgrade or trial page as the next step. Do not
51
+ pass that link on; say what the plan does not include and, for plan options,
52
+ point to [TestMu AI pricing](https://www.testmuai.com/pricing/). Do not retry
53
+ the refused command until the plan changes.
53
54
 
54
55
  ## Discovery succeeds but registers no agents
55
56
 
@@ -7,10 +7,10 @@ criterion details, read `runs/<run-id>/scenarios/<scenario-id>/verdict.yaml`.
7
7
 
8
8
  | Record | Fields |
9
9
  | --- | --- |
10
- | Scenario verdict | `scenario_id`, `status`, `criteria[]`, `unverifiable_reason`, `compromised`, `forbidden_hits[]` |
10
+ | Scenario verdict | `scenario_id`, `status`, `criteria[]`, `unverifiable_reason`, `compromised`, `forbidden_hits[]`; red-team `execution_state`, `defended_by`, `verification_gaps[]` |
11
11
  | Criterion | `criterion_id`, `criterion`, `expected`, `achieved`, `status`, quoted `evidence`, `confidence` |
12
12
  | Report | `run_id`, `agent_id`, `agent_version_id?`, `generated`, `headline`, optional `narrative` and `next[]`, `totals`, `metrics`, `clusters[]`, `credits` |
13
- | Totals | `planned`, `executed`, `passed`, `failed`, `unverifiable`, `unjudged`, `not_run`, `unrunnable`, `decided`, `pass_rate`, `carried_forward` |
13
+ | Totals | `planned`, `executed`, `passed`, `failed`, `unverifiable`, `unjudged`, `not_run`, `unrunnable`, `decided`, `pass_rate`, `assurance_gap`, `unverified_criteria`, `total_criteria`, `carried_forward`, `defended_by_provider`, `unverifiable_agent`, `unverifiable_harness`, `unverifiable_scenario` |
14
14
  | Cluster | `id`, `why`, `kind` (`failed`, `unverifiable`, `compromised`), `scenarios[]`; RCA may add `cause`, `remedy`, `confidence`, `fault`, `where`, `summary` |
15
15
 
16
16
  Statuses are **Pass**, **Fail**, and **Unable to Verify**. Unverifiable reasons:
@@ -22,21 +22,35 @@ can add `coverage_gaps`, `redteam_coverage` (OWASP coverage of the scenario
22
22
  inventory) and `summary_claims`; an unmapped control is unverified, not passed.
23
23
  A **Partial** stored by an older run reads as Unable to Verify.
24
24
 
25
+ Since 0.1.22 a red-team verdict's `execution_state` names the rule that
26
+ produced it (for example `agent_unreachable`, `forbidden_echoed`,
27
+ `judge_failed`), and the totals split Unable to Verify by owner: agent, harness
28
+ (rook) and scenario. Use them to group unverifiables. `defended_by: provider`
29
+ is a Pass where the model provider blocked the attack; report those apart from
30
+ the agent's own defences. `verification_gaps` names judge evidence rook did not
31
+ check against the run; never quote it as the agent's words.
32
+
25
33
  Since 0.1.12, a regex check that misses is graded by the judge on the
26
34
  criterion's meaning, so a correct answer in another format can pass. A match
27
35
  still passes at once, and a regex asserting that text is absent still fails
28
36
  when the text appears. The judge call can add credits; if it fails, the
29
37
  criterion is Unable to Verify, not Fail.
30
38
 
31
- ## Pass rate
32
-
33
- Since 0.1.6, `totals.pass_rate` is `Pass / (Pass + Fail + Unable to Verify)`.
34
- `totals.decided` still means `Pass + Fail`. Unable to Verify contributes to the
35
- pass-rate denominator as a recorded result, but remains a separate verdict;
36
- never describe it as Fail. If every recorded result is Unable to Verify,
37
- `pass_rate` is `0`; if there are no recorded Pass, Fail or Unable to Verify
38
- results, it is `null`, not zero.
39
- Unjudged, not-run and unrunnable work does not enter this denominator.
39
+ ## Pass rate and assurance gap
40
+
41
+ Since 0.1.21, `totals.pass_rate` is `Pass / (Pass + Fail)`, shown as "Verified
42
+ pass": Unable to Verify is left out of it, and `totals.decided` is its
43
+ denominator. If nothing passed or failed, `pass_rate` is `null` ("unavailable"),
44
+ never `0`. From 0.1.6 to 0.1.20 the denominator also counted Unable to Verify;
45
+ `rook report <run-id>` works out an older run's totals again under the current
46
+ rule. Unjudged, not-run and unrunnable work never enters the denominator.
47
+
48
+ `totals.assurance_gap` is `unverified_criteria / total_criteria`: the share of
49
+ the run's criteria the judge could not verify. It is `null` when the run has no
50
+ criteria, and all three are `null` when a verdict's criteria counts cannot be
51
+ read. Report the two together: a high pass rate with a large gap means
52
+ everything checkable passed, but little could be checked. Unable to Verify
53
+ remains a separate verdict; never describe it as Fail.
40
54
 
41
55
  ## Presenting results
42
56