saktum 0.5.1 → 0.7.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.
Files changed (3) hide show
  1. package/README.md +47 -1
  2. package/package.json +1 -1
  3. package/saktum.mjs +2035 -182
package/README.md CHANGED
@@ -11,6 +11,30 @@ npx saktum check https://your-server.example/mcp # a remote server (sign-in
11
11
 
12
12
  Runs on your machine. Nothing is uploaded. Your own environment variables are never passed to the server.
13
13
 
14
+ ## Agents that follow instructions (v0.7)
15
+
16
+ Mandates now carry **intent**: purpose, autonomy per action, rules, ranked preferences, substitution and upsell
17
+ policies, approval triggers, allowed counterparties and data sharing, written in domain terms (commerce, travel) and
18
+ enforced on any server through **semantic bindings**. Every receipt explains the decision: the rules checked, the
19
+ preferences matched or missed, and flags such as a sponsored option. Personal data goes only where the mandate allows;
20
+ confidential data only to the recipients named for its class; high-risk actions wait for the owner's signed approval
21
+ of exactly that action (`saktum agent approve`); the operator countersigns; `saktum agent revoke` stops an agent at
22
+ once; and every passport carries a track record.
23
+ Even if an agent is tricked by a hidden instruction, the mandate holds. Guide: [docs/MANDATES.md](docs/MANDATES.md).
24
+
25
+ ## See it in 60 seconds
26
+
27
+ ```
28
+ npx saktum demo
29
+ ```
30
+
31
+ A grocery agent and a travel agent follow their owners' instructions: the usual brand matched; at most 2 of each item;
32
+ a substitute within 10% allowed but never for baby food; upgrades and fees ask first; a sponsored option flagged; a
33
+ two-stop or non-refundable fare blocked; a hidden instruction to buy gift cards and pay a stranger stopped; a passport
34
+ kept from a hotel partner; a confidential forecast kept from a partner agency; a $12,000 invoice paid only after your
35
+ signed approval of exactly that payment; and the stop button honoured. Every decision has a signed receipt with its reason, and each agent gets a
36
+ passport with its instructions in plain words. Also: `npx saktum demo --story autonomy` (notify, propose, act).
37
+
14
38
  ## Start here
15
39
 
16
40
  | I want to… | Run |
@@ -64,6 +88,19 @@ grade. Every report ends with **OWASP MCP Top 10 coverage**: which categories th
64
88
  `npx saktum checks` lists every check with the standard behind it ([docs/CHECKS.md](docs/CHECKS.md)).
65
89
  - **Control:** `--ignore check.id="reason"` (shown in the report, not scored) and `--badge badge.svg` for your README.
66
90
 
91
+ ## Permissions and risk (v0.6.1)
92
+
93
+ Grades say how well a server is built; the **risk tier** says how much care it needs: **R0** reads public information,
94
+ **R1** reads private data, **R2** changes data, **R3** irreversible actions or external messages, **R4** moves money or
95
+ runs code. Every report and passport shows both ("Trust A · Risk R4"), and policies can require evidence proportionate
96
+ to the tier (`maxRiskTier`).
97
+
98
+ Mandates carry real permissions, enforced by the proxy before each call: `--autonomy notify|propose|act`,
99
+ `--max checkout.amount=50`, `--allow-value checkout.currency=CAD`, `--approve-above amount=25`, `--daily-calls 20`,
100
+ `--daily-total amount=200`, disclosures (`--operator`, `--incentives`, `--data-use`), and no sub-delegation unless
101
+ `--allow-delegation`. Tools that move money are denied unless explicitly granted. Every receipt carries a reason code
102
+ (`ok-action`, `notify-only`, `approval-needed`, `over-cap`, `value-not-allowed`, `daily-limit`, `money-not-granted`).
103
+
67
104
  ## Govern what agents do: identity, mandates, signed receipts (preview)
68
105
 
69
106
  Testing servers is half the story; the other half is **what agents actually do with them**. Give an agent its own
@@ -82,6 +119,15 @@ with an honest error to the agent. Receipts follow Saktum's receipt contract and
82
119
  Preview limits: local (stdio) servers; receipts are signed by the agent side (bilateral receipts, co-signed by the
83
120
  server side, come with the Saktum gateway).
84
121
 
122
+ ## Plugs into what you run, and pays for itself (v0.6)
123
+
124
+ | Command | What it does |
125
+ | --- | --- |
126
+ | `saktum watch saktum-allowlist.json` | Continuous monitoring: re-checks approved servers and alerts on changed tools, grade drops or unreachable servers (daily GitHub workflow: `examples/saktum-watch.yml`) |
127
+ | `saktum receipts export --otel receipts.otlp.json [--endpoint http://collector:4318]` | Agent receipts as OpenTelemetry traces, into your observability and security tools |
128
+ | `saktum attest saktum-report.json --vc` · `saktum vc verify file.vc.jwt` | Attestations as W3C Verifiable Credentials, issued by your did:key |
129
+ | `saktum roi --tokens-per-turn 32833 --agents 10` | What tool definitions cost a year and what fixes and passports save (assumptions shown); `assess` includes the business case |
130
+
85
131
  ## Passports: trust you can see
86
132
 
87
133
  ```
@@ -155,7 +201,7 @@ servers not on your allowlist, and the weakest grades. Configured secrets are ne
155
201
 
156
202
  ```yaml
157
203
  - uses: actions/checkout@v4
158
- - uses: soodhere/saktum-check@v0.5.1
204
+ - uses: soodhere/saktum-check@v0.7.0
159
205
  with:
160
206
  target: "-- node build/index.js" # or an https URL
161
207
  args: "--active --tests saktum.tests.yaml" # optional; --active only for your own server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saktum",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "description": "Test MCP servers in one command: conformance, sign-in, security (OWASP MCP Top 10), agent experience, context cost and performance.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",