@testmuai/rook-skill 0.1.7 → 0.1.11

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.7",
3
+ "version": "0.1.11",
4
4
  "description": "Install the Rook agent-testing skill for Claude Code, Codex and Gemini CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -48,6 +48,9 @@ Use `error`, or `reason` when present. Translate remedy tokens with
48
48
  - `halted: true` can retain a report and exit 0. Present it as incomplete.
49
49
  - Gate refusals on `report`, `status` and `ask`, and parser errors, may leave
50
50
  stdout empty. Use the stderr diagnostic rather than inventing an error object.
51
+ - A command that calls the model controller or opens an upstream job refuses
52
+ before anything runs or is charged when its session could not be registered.
53
+ Report it as no run and no spend, using the diagnostic it returns.
51
54
 
52
55
  ## Grants and accounting
53
56
 
@@ -65,7 +68,7 @@ still use the network, change state or invoke the target.
65
68
 
66
69
  ## On disk
67
70
 
68
- In 0.1.6, `.testmuai/rook/settings.json` keeps a project selection per
71
+ Since 0.1.6, `.testmuai/rook/settings.json` keeps a project selection per
69
72
  environment in `selections[environment]`. After a switch, rook
70
73
  uses the new environment's selection, which may be empty even when another
71
74
  environment has one. Run `rook doctor` to see the active environment and
@@ -87,4 +90,6 @@ assuming either form. Under its `agents/<agent-id>/` directory:
87
90
  | `runs/<run-id>/scenarios/<scenario-id>/` | `snapshot.yaml`, `request.json`, `response.json`, artifacts and `verdict.yaml` |
88
91
 
89
92
  Home state at `~/.testmuai/rook/` includes credentials, grants and session
90
- transcripts. Keep it outside commits and shared evidence.
93
+ transcripts. Each session's `transcript.jsonl` records the raw input and output
94
+ of every role call, including refused, failed and interrupted calls. Keep it
95
+ outside commits and shared evidence.
@@ -17,6 +17,8 @@
17
17
  them, though existing scenario files that use them still load and run.
18
18
 
19
19
  Every scenario also carries free-form tags; `run --tag <names>` selects on them.
20
+ Red-team scenarios also carry OWASP LLM, OWASP Agentic (ASI) and MITRE ATLAS
21
+ references.
20
22
 
21
23
  ## Generating
22
24
 
@@ -38,6 +40,11 @@ different feature, `generate` warns and saves that scenario excluded; review it
38
40
  in `rook scenarios list --json` and bring it back with
39
41
  `rook scenarios include <id>` if it belongs in runs.
40
42
 
43
+ `rook sync` stops before uploading anything when a scenario names a feature its
44
+ agent does not carry, and lists each one with its agent, the missing feature and
45
+ a fix. Apply the listed fix and sync again; do not run against upstream until
46
+ sync succeeds.
47
+
41
48
  ## Listing and curating
42
49
 
43
50
  ```bash
@@ -56,6 +63,16 @@ multiple turns without an observed conversation handle, or token-economy
56
63
  grading without reported usage, is skipped by `run` and counts toward the
57
64
  assurance gap, not toward Fail. File and image requirements are not rejected
58
65
  solely by their input kind: inspect what the profile script can actually send.
66
+ `generate` keeps a scenario it cannot make runnable instead of dropping it:
67
+ `executable: false` with a `skip_reason` starting `coverage gap:`,
68
+ `invalid scenario:` or `invalid red-team scenario:`. Attack patterns with no
69
+ scenario for a feature are listed in the agent's `coverage-gaps.yaml`. Report
70
+ both as gaps, not as failures.
71
+
72
+ Some attack patterns are skipped until the profile has the hook they need,
73
+ and the skip reason names it: an `open` hook that seeds the fixture in
74
+ `$ROOK_STATE_DIR/attack-fixture.json`, a `collect` hook that reports the
75
+ observed control and outcome, or `open` and `close` hooks for a fresh session.
59
76
 
60
77
  ## Scoping a run
61
78
 
@@ -70,6 +87,10 @@ rook run --run <id> --phases collect,judge --json # collect evidence that la
70
87
  rook run --resume <id> --json # carry finished work into a new run
71
88
  ```
72
89
 
90
+ Without `--only`, a run selects at most two scenarios per attack pattern; the
91
+ rest are skipped as `pattern <id> already has 2 candidates in this run`. Name
92
+ them with `--only` to run more.
93
+
73
94
  `--only` takes one comma-separated argument; repeating the flag keeps only
74
95
  the last occurrence, and a space-separated second id is read as instruction
75
96
  text. Each scenario runs once; there is no repeat count.
@@ -15,11 +15,16 @@ criterion details, read `runs/<run-id>/scenarios/<scenario-id>/verdict.yaml`.
15
15
 
16
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
- has no verdict; do not turn its absence into a failure.
18
+ has no verdict; do not turn its absence into a failure. A grounded partial
19
+ compromise counts as Fail. Reports keep refusals, interrupted runs and coverage
20
+ gaps; carry them into the summary rather than dropping them. `report --json`
21
+ can add `coverage_gaps`, `redteam_coverage` (OWASP coverage of the scenario
22
+ inventory) and `summary_claims`; an unmapped control is unverified, not passed.
23
+ A **Partial** stored by an older run reads as Unable to Verify.
19
24
 
20
25
  ## Pass rate
21
26
 
22
- In 0.1.6, `totals.pass_rate` is `Pass / (Pass + Fail + Unable to Verify)`.
27
+ Since 0.1.6, `totals.pass_rate` is `Pass / (Pass + Fail + Unable to Verify)`.
23
28
  `totals.decided` still means `Pass + Fail`. Unable to Verify contributes to the
24
29
  pass-rate denominator as a recorded result, but remains a separate verdict;
25
30
  never describe it as Fail. If every recorded result is Unable to Verify,