ai2rules-harness 0.8.1 → 0.9.0
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 +7 -5
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ tool call Claude Code proposes, before it runs. No model takes part in the decis
|
|
|
7
7
|
npm install -g ai2rules-harness
|
|
8
8
|
cd your-project
|
|
9
9
|
harness init # govern this project
|
|
10
|
-
harness demo # watch the kernel decide:
|
|
10
|
+
harness demo # watch the kernel decide: 6 cases, nothing executed
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
> **The package is `ai2rules-harness`; the command it installs is `harness`.**
|
|
@@ -58,10 +58,12 @@ have edited. Add `--dry-run` to see the plan without writing anything.
|
|
|
58
58
|
harness demo
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
Six cases through the real kernel and your project's policy: an in-project write
|
|
62
62
|
is allowed, an out-of-project write in the background is denied, tainted input
|
|
63
|
-
(text that came from outside, such as a web page) cannot reach the network,
|
|
64
|
-
destructive command needs your approval
|
|
63
|
+
(text that came from outside, such as a web page) cannot reach the network, a
|
|
64
|
+
destructive command needs your approval, and a key the session read from `.env`
|
|
65
|
+
cannot leave in a web request even in a clean session. (A policy written by an
|
|
66
|
+
older `harness init` has no rule for the last one and shows five.) Every verdict is written to a log and
|
|
65
67
|
replayed to show the decisions are reproducible. Nothing is executed and no
|
|
66
68
|
credentials are needed.
|
|
67
69
|
|
|
@@ -115,7 +117,7 @@ when the hook runs with `--enforce-absent`; the page warns when it does not.
|
|
|
115
117
|
| `harness init` | Govern the project in this folder. `--dry-run` shows the plan; `--grant` makes the policy the allowlist (see Modes) |
|
|
116
118
|
| `harness init --user` | Govern every Claude Code session your account opens, in any folder. `--remove` undoes it |
|
|
117
119
|
| `harness init --managed` | Govern every session on the machine, for every account, through Claude Code's managed settings. Needs an admin shell |
|
|
118
|
-
| `harness demo` | The first proof:
|
|
120
|
+
| `harness demo` | The first proof: 6 decisions over this project's policy, replayed |
|
|
119
121
|
| `harness demo --story law-firm` | A story for a non-technical audience, with its own policy; `--html <file>` for a browser page |
|
|
120
122
|
| `harness doctor` | Check the installation and coverage in this project; `--json` for a machine-readable report |
|
|
121
123
|
| `harness replay-transcripts` | Replay past Claude Code sessions through the kernel and report what it would have decided |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai2rules-harness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Deterministic governance for local CLI coding agents. Install globally, then `harness init` governs a project in one command.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"directory": "npm"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://ai2rules.dev",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ai2rules/kernel-concepts/issues"
|
|
14
|
+
},
|
|
12
15
|
"keywords": [
|
|
13
16
|
"ai",
|
|
14
17
|
"agent",
|
|
@@ -31,9 +34,9 @@
|
|
|
31
34
|
"node": ">=18"
|
|
32
35
|
},
|
|
33
36
|
"optionalDependencies": {
|
|
34
|
-
"ai2rules-harness-darwin-arm64": "0.
|
|
35
|
-
"ai2rules-harness-darwin-x64": "0.
|
|
36
|
-
"ai2rules-harness-linux-x64": "0.
|
|
37
|
-
"ai2rules-harness-windows-x64": "0.
|
|
37
|
+
"ai2rules-harness-darwin-arm64": "0.9.0",
|
|
38
|
+
"ai2rules-harness-darwin-x64": "0.9.0",
|
|
39
|
+
"ai2rules-harness-linux-x64": "0.9.0",
|
|
40
|
+
"ai2rules-harness-windows-x64": "0.9.0"
|
|
38
41
|
}
|
|
39
42
|
}
|