@fidacy/openclaw-plugin 0.5.9 → 0.6.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/CHANGELOG.md +32 -0
- package/README.md +47 -28
- package/dist/index.js +872 -798
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- The firewall stops governing only the verb and starts governing the destination, which is the axis an agent cannot rename.
|
|
8
|
+
|
|
9
|
+
**Why this exists.** Verified against the published binary: with all eight action classes blocked, `mcp__pipedrive__deals_export`, `mcp__pipedrive__update_person`, `curl api.pipedrive.com` and a WebFetch to the same host all went through. A verb list is infinite and always behind; an agent that wants to export your CRM only has to call the tool something else. But no action can avoid having a destination: every access has a host, an MCP server or a path. The destination is a short list you write once, and a destination you never declared no longer passes in silence. Same polarity the payment firewall always had: never "block the bad payees", always "only these".
|
|
10
|
+
|
|
11
|
+
**What you can now say.** "My agent reads Pipedrive, but never exports or modifies anything, and never touches a system I did not declare." Three lines of config, enforced offline, and both the allow and the refusal are signed.
|
|
12
|
+
|
|
13
|
+
**`ask`, the mode that keeps the firewall from being bureaucracy.** Without it there are only two extremes, and a tool that only blocks gets switched off so the agent can work. An unusual action now neither passes nor stalls the agent: it is refused immediately with a message that says it is a pending question, not a verdict, and approving it lets the retry through.
|
|
14
|
+
|
|
15
|
+
**Three bugs found and fixed while building this**, each caught by a test before it reached anyone:
|
|
16
|
+
|
|
17
|
+
- The normalisation written to prevent evasion was creating it: collapsing separators everywhere turned `rm -rf` into `rm .rf` and destroyed the flag.
|
|
18
|
+
- `classifyAction` only lowercased, so `mcp__gmail__email_send` never matched the `email.send` pattern because of one separator, and `verb_with_underscore` is how every MCP server names a tool. A class in `ask` was letting through the exact action it governs.
|
|
19
|
+
- Normalising the patterns trimmed `'rm '` into `'rm'`, which then matched `crm`, `form` and `confirm`. `hubspot.crm.export` was being classified as deleting files, and a false positive that blocks innocent work is the fastest route to being uninstalled.
|
|
20
|
+
|
|
21
|
+
**The first-run config now writes itself out in full.** It only ever contained the `mandate` block, so nobody discovered that `systems` and `actionClasses` exist: the whole destination axis was built and invisible. `systems` starts empty and `actionClasses` start in `log`, so nothing changes for an existing agent until you tighten it.
|
|
22
|
+
|
|
23
|
+
## 0.5.10
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 1d9d11d: Corrects a false privacy claim that 0.5.9 introduced, and closes the endpoint list properly.
|
|
28
|
+
|
|
29
|
+
0.5.9 stated that this plugin never writes the session log to disk. That is wrong. At the end of every session it writes `~/.fidacy/sessions/<session-id>.json` (file 0600, directory 0700) holding the full action record: the command, file path and arguments of every tool call it observed, plus the hash chain over them. The path is even printed on the `[fidacy] log` line in your terminal. The claim came from reading the plugin's own source imports, which do not reference the writer, instead of the shipped bundle, where the observer that calls it is inlined. On a plugin that watches everything an agent does, that is the single most important fact to state correctly, so it is now the first thing in the disclosure and the first item in the file list.
|
|
30
|
+
|
|
31
|
+
Also corrected: the network list was described as complete while covering only the default local mode. Setting `FIDACY_MODE=http` moves the decision itself to a hosted core and adds `/v1/decide`, `/v1/mandate/get`, `/v1/audit/proof` and `/v1/audit/list`, which carry the payment request. That path is now disclosed and marked as the one thing that is genuinely on the decision path.
|
|
32
|
+
|
|
33
|
+
Documentation only, no behaviour change. Every claim in this version was verified against `dist/index.js`, the artifact that actually ships, rather than against the source tree or the previous README.
|
|
34
|
+
|
|
3
35
|
## 0.5.9
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -12,29 +12,37 @@ Read this before installing. Since 0.5.0 the plugin is not payment-only: it
|
|
|
12
12
|
hooks every agent tool call to build a session report, and each session ends in
|
|
13
13
|
a hash digest anyone can recompute.
|
|
14
14
|
|
|
15
|
-
**The session log
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
**The session log IS written to disk, and it holds the detail.** At the end of
|
|
16
|
+
each session the plugin writes `~/.fidacy/sessions/<session-id>.json` (file mode
|
|
17
|
+
0600, directory 0700) containing the full action record: the command, file path
|
|
18
|
+
and arguments of every tool call it observed, plus the hash chain over them. The
|
|
19
|
+
path is printed in your terminal at session end, on the `[fidacy] log` line, so
|
|
20
|
+
you can open it and read exactly what was kept. It stays on your machine and it
|
|
21
|
+
is yours to delete. Read this paragraph as the important one: this plugin
|
|
22
|
+
observes everything the agent does, and that observation lands on your disk.
|
|
23
|
+
|
|
24
|
+
What leaves is only the hash digest of that record plus per-category counts (for
|
|
25
|
+
example `shell: 9, file: 4`). The commands, paths and arguments themselves are
|
|
26
|
+
never transmitted.
|
|
23
27
|
|
|
24
28
|
Written to disk, and this is the complete list:
|
|
25
29
|
|
|
26
|
-
- `~/.fidacy/
|
|
30
|
+
- `~/.fidacy/sessions/<session-id>.json` (0600, directory 0700): the full action
|
|
31
|
+
record described above
|
|
32
|
+
- `~/.fidacy/config.json` (0600): the anonymous install id, tier, and your
|
|
27
33
|
mandate rules
|
|
28
34
|
- `~/.fidacy/audit/audit.log`: the hash-chained decision log
|
|
29
|
-
- `~/.fidacy/pending-anchors.jsonl
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
- `~/.fidacy/pending-anchors.jsonl`: one line per finished session holding its
|
|
36
|
+
digest, id, timestamp and per-category counts, with no command, path or
|
|
37
|
+
argument. Lines are removed once anchored.
|
|
32
38
|
- `~/.fidacy/pending-anchors.taking`: a lock file, present only while that queue
|
|
33
39
|
is being drained
|
|
34
40
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
`rm -rf ~/.fidacy` clears all five.
|
|
42
|
+
|
|
43
|
+
Leaves your machine. Every one goes to your configured engine
|
|
44
|
+
(`https://api.fidacy.com` by default) and nowhere else. In the default local mode
|
|
45
|
+
these five are the complete list:
|
|
38
46
|
|
|
39
47
|
- `/v1/telemetry`: anonymous usage events (install, session, decision counts; a
|
|
40
48
|
random UUID, never a name or hostname). Off with `FIDACY_DISABLE_TELEMETRY=1`.
|
|
@@ -52,9 +60,15 @@ else:
|
|
|
52
60
|
- `/v1/register`: only if you set `operatorEmail`, which is opt-in and removable.
|
|
53
61
|
Sends that email and nothing else.
|
|
54
62
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
There is a sixth path, and it is opt-in: setting `FIDACY_MODE=http` moves the
|
|
64
|
+
decision itself to a hosted core, which adds `/v1/decide`, `/v1/mandate/get`,
|
|
65
|
+
`/v1/audit/proof` and `/v1/audit/list`. Those carry the payment request, so leave
|
|
66
|
+
`FIDACY_MODE` unset if you want decisions to stay on your machine. The default is
|
|
67
|
+
local.
|
|
68
|
+
|
|
69
|
+
With `FIDACY_DISABLE_TELEMETRY=1`, `FIDACY_DISABLE_PROVISION=1`, no engine key,
|
|
70
|
+
no `operatorEmail` and `FIDACY_MODE` unset, the plugin makes no network calls at
|
|
71
|
+
all and gates payments entirely offline.
|
|
58
72
|
|
|
59
73
|
## The tools
|
|
60
74
|
|
|
@@ -133,16 +147,21 @@ Verify any verdict yourself: https://api.fidacy.com/.well-known/jwks.json
|
|
|
133
147
|
|
|
134
148
|
This is a payment-control plugin, so audit it like one. What it actually does:
|
|
135
149
|
|
|
136
|
-
- **Network calls it makes:** the five endpoints listed under "what
|
|
137
|
-
machine" above,
|
|
138
|
-
stated once, at the top, on purpose: this
|
|
139
|
-
shorter copy naming only two of them, and a
|
|
140
|
-
contradicts itself is worse than a long one. None of
|
|
141
|
-
decision path
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
of it
|
|
150
|
+
- **Network calls it makes:** the five default endpoints listed under "what
|
|
151
|
+
leaves your machine" above, plus the four that only exist if you opt into
|
|
152
|
+
`FIDACY_MODE=http`. The list is stated once, at the top, on purpose: this
|
|
153
|
+
section used to carry a second, shorter copy naming only two of them, and a
|
|
154
|
+
privacy disclosure that contradicts itself is worse than a long one. None of
|
|
155
|
+
the default five is on the decision path, so payment gating works fully
|
|
156
|
+
offline. The `FIDACY_MODE=http` four ARE the decision path, which is the whole
|
|
157
|
+
reason that switch is opt-in and called out separately.
|
|
158
|
+
- **Local state:** the five files listed above, and nothing else. Earlier
|
|
159
|
+
versions of this bullet were wrong twice over: it named two files and ended
|
|
160
|
+
with "Nothing else" while `pending-anchors.jsonl` went undisclosed, and a
|
|
161
|
+
later attempt to fix that claimed the session log was never written to disk at
|
|
162
|
+
all. It is written, it holds the command, path and arguments of every observed
|
|
163
|
+
tool call, and it is the first item on the list above. `rm -rf ~/.fidacy`
|
|
164
|
+
clears everything.
|
|
146
165
|
- **`FIDACY_SIGNING_KEY_B64`:** an OPTIONAL env var the operator sets to pin a
|
|
147
166
|
stable local Ed25519 signing key for grants. If unset, a per-session key is
|
|
148
167
|
generated. The plugin reads it; it never writes or transmits it.
|