@testmuai/rook-skill 0.1.21 → 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
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
package/skills/references/ci.md
CHANGED
|
@@ -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
|
|
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
|
-
`
|
|
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;
|
|
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
|
|
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
|
|
51
|
-
|
|
52
|
-
|
|
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`, `assurance_gap`, `unverified_criteria`, `total_criteria`, `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,6 +22,14 @@ 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
|