saktum 0.6.0 → 0.8.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 +46 -1
- package/package.json +1 -1
- package/saktum.mjs +2396 -234
package/README.md
CHANGED
|
@@ -11,6 +11,38 @@ 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
|
+
## From trust to a marketplace (v0.8)
|
|
15
|
+
|
|
16
|
+
Every agent traceable to a person and an organisation (**identity chains**, with orphan detection); publishers sign
|
|
17
|
+
**manifests** and agents find tools **by intent** in a catalogue; providers and invokers sign **agreements** from a
|
|
18
|
+
default template plus specific terms; every call is **metered in prepaid tokens** (double-entry, no money handled), and
|
|
19
|
+
calls stop when credit runs out; **usage statements** and **KPIs** come from the signed receipts. Guide:
|
|
20
|
+
[docs/MARKETPLACE.md](docs/MARKETPLACE.md). Try: `npx saktum demo --story marketplace`.
|
|
21
|
+
|
|
22
|
+
## Agents that follow instructions (v0.7)
|
|
23
|
+
|
|
24
|
+
Mandates now carry **intent**: purpose, autonomy per action, rules, ranked preferences, substitution and upsell
|
|
25
|
+
policies, approval triggers, allowed counterparties and data sharing, written in domain terms (commerce, travel) and
|
|
26
|
+
enforced on any server through **semantic bindings**. Every receipt explains the decision: the rules checked, the
|
|
27
|
+
preferences matched or missed, and flags such as a sponsored option. Personal data goes only where the mandate allows;
|
|
28
|
+
confidential data only to the recipients named for its class; high-risk actions wait for the owner's signed approval
|
|
29
|
+
of exactly that action (`saktum agent approve`); the operator countersigns; `saktum agent revoke` stops an agent at
|
|
30
|
+
once; and every passport carries a track record.
|
|
31
|
+
Even if an agent is tricked by a hidden instruction, the mandate holds. Guide: [docs/MANDATES.md](docs/MANDATES.md).
|
|
32
|
+
|
|
33
|
+
## See it in 60 seconds
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
npx saktum demo
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
A grocery agent and a travel agent follow their owners' instructions: the usual brand matched; at most 2 of each item;
|
|
40
|
+
a substitute within 10% allowed but never for baby food; upgrades and fees ask first; a sponsored option flagged; a
|
|
41
|
+
two-stop or non-refundable fare blocked; a hidden instruction to buy gift cards and pay a stranger stopped; a passport
|
|
42
|
+
kept from a hotel partner; a confidential forecast kept from a partner agency; a $12,000 invoice paid only after your
|
|
43
|
+
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
|
|
44
|
+
passport with its instructions in plain words. Also: `npx saktum demo --story autonomy` (notify, propose, act).
|
|
45
|
+
|
|
14
46
|
## Start here
|
|
15
47
|
|
|
16
48
|
| I want to… | Run |
|
|
@@ -64,6 +96,19 @@ grade. Every report ends with **OWASP MCP Top 10 coverage**: which categories th
|
|
|
64
96
|
`npx saktum checks` lists every check with the standard behind it ([docs/CHECKS.md](docs/CHECKS.md)).
|
|
65
97
|
- **Control:** `--ignore check.id="reason"` (shown in the report, not scored) and `--badge badge.svg` for your README.
|
|
66
98
|
|
|
99
|
+
## Permissions and risk (v0.6.1)
|
|
100
|
+
|
|
101
|
+
Grades say how well a server is built; the **risk tier** says how much care it needs: **R0** reads public information,
|
|
102
|
+
**R1** reads private data, **R2** changes data, **R3** irreversible actions or external messages, **R4** moves money or
|
|
103
|
+
runs code. Every report and passport shows both ("Trust A · Risk R4"), and policies can require evidence proportionate
|
|
104
|
+
to the tier (`maxRiskTier`).
|
|
105
|
+
|
|
106
|
+
Mandates carry real permissions, enforced by the proxy before each call: `--autonomy notify|propose|act`,
|
|
107
|
+
`--max checkout.amount=50`, `--allow-value checkout.currency=CAD`, `--approve-above amount=25`, `--daily-calls 20`,
|
|
108
|
+
`--daily-total amount=200`, disclosures (`--operator`, `--incentives`, `--data-use`), and no sub-delegation unless
|
|
109
|
+
`--allow-delegation`. Tools that move money are denied unless explicitly granted. Every receipt carries a reason code
|
|
110
|
+
(`ok-action`, `notify-only`, `approval-needed`, `over-cap`, `value-not-allowed`, `daily-limit`, `money-not-granted`).
|
|
111
|
+
|
|
67
112
|
## Govern what agents do: identity, mandates, signed receipts (preview)
|
|
68
113
|
|
|
69
114
|
Testing servers is half the story; the other half is **what agents actually do with them**. Give an agent its own
|
|
@@ -164,7 +209,7 @@ servers not on your allowlist, and the weakest grades. Configured secrets are ne
|
|
|
164
209
|
|
|
165
210
|
```yaml
|
|
166
211
|
- uses: actions/checkout@v4
|
|
167
|
-
- uses: soodhere/saktum-check@v0.
|
|
212
|
+
- uses: soodhere/saktum-check@v0.8.0
|
|
168
213
|
with:
|
|
169
214
|
target: "-- node build/index.js" # or an https URL
|
|
170
215
|
args: "--active --tests saktum.tests.yaml" # optional; --active only for your own server
|
package/package.json
CHANGED