@agent-custody/receipts 0.16.5 → 0.16.6
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 -4
- package/dist/cli.js +50 -7
- package/dist/console-page.js +144 -50
- package/dist/deny-report.d.ts +7 -0
- package/dist/deny-report.js +8 -3
- package/dist/design.d.ts +11 -0
- package/dist/design.js +91 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/log-admin.js +100 -59
- package/dist/log-store.d.ts +8 -2
- package/dist/log-store.js +22 -12
- package/dist/perathos.d.ts +50 -0
- package/dist/perathos.js +187 -0
- package/dist/portal.d.ts +66 -5
- package/dist/portal.js +895 -242
- package/dist/session-audit.d.ts +46 -0
- package/dist/session-audit.js +150 -0
- package/dist/site-links.d.ts +23 -0
- package/dist/site-links.js +29 -0
- package/docs/acs.md +2 -0
- package/docs/approvals.md +1 -1
- package/docs/completeness.md +1 -1
- package/docs/configuration.md +2 -0
- package/docs/console.md +11 -2
- package/docs/door-signals.md +1 -1
- package/docs/door.md +4 -16
- package/docs/egress.md +3 -1
- package/docs/github-action.md +2 -2
- package/docs/mandates.md +1 -1
- package/docs/perathos.md +97 -0
- package/docs/sdk.md +32 -1
- package/docs/threat-model.md +2 -1
- package/docs/tutorials.md +2 -0
- package/docs/usage.md +3 -1
- package/docs/verification.md +1 -1
- package/package.json +1 -1
- package/vectors/interop/perathos/LICENSE +21 -0
- package/vectors/interop/perathos/README.md +17 -0
- package/vectors/interop/perathos/pocketos-replay/session.head.json +11 -0
- package/vectors/interop/perathos/pocketos-replay/session.jsonl +8 -0
- package/vectors/interop/perathos/pocketos-replay/verification.json +65 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tamuka Chagonda
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Perathos interop vector
|
|
2
|
+
|
|
3
|
+
Records written by another project's own writer, so that `verify-perathos` is tested against them and not only against our reading of the spec.
|
|
4
|
+
|
|
5
|
+
`pocketos-replay/` holds three files from the sample evidence pack in [perathos-protocol/perathos](https://github.com/perathos-protocol/perathos), `examples/pocketos_replay/sample-evidence-pack.zip`, at commit `9ec0c3b36d39558fff7aae8652f6c44e7d5396d9` (the zip's SHA-256 is `1815c2f2d4302c44a6e5a1eefd7621579277725f2a1f42ade60e8433c8cd5d56`):
|
|
6
|
+
|
|
7
|
+
| file | what it is |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `session.jsonl` | the session log, `perathos.receipt/v1`: 8 receipts, 2 signed checkpoints |
|
|
10
|
+
| `session.head.json` | the head witness: the last checkpoint's `seq` and `receipt_hash` (it also carries a signature, which the spec does not define and the reader does not check) |
|
|
11
|
+
| `verification.json` | the report of Perathos's own verifier on the same log, which `test/perathos.test.ts` compares with ours |
|
|
12
|
+
|
|
13
|
+
The recorder's key is `d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707`, as `verification.json` names it. The pack's anchors, precondition, manifest, and reports are not copied, because the reader does not read them yet.
|
|
14
|
+
|
|
15
|
+
Do not edit or regenerate these files. They are copied byte for byte.
|
|
16
|
+
|
|
17
|
+
The files are Copyright (c) 2026 Tamuka Chagonda and used under the MIT License, whose text is in `LICENSE` beside this file, copied from the same repository.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"receipt_hash": "f53bd64de64d8b29fc025c7d07f3570d6a1a41c1fe036fb4727cb30c4c1b19b1",
|
|
3
|
+
"seq": 8,
|
|
4
|
+
"session_id": "pocketos-replay",
|
|
5
|
+
"signature": {
|
|
6
|
+
"algorithm": "ed25519",
|
|
7
|
+
"signature": "c739672a1fec289190524fe8aff579f53428f96922b701d4db20afb7dcec6d390583fba7544ceb20b60cb9e61bf5315f2684194df499c7aeece4373d15ebd103",
|
|
8
|
+
"verify_key": "d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707"
|
|
9
|
+
},
|
|
10
|
+
"ts": "2026-11-04T08:19:08.217162Z"
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{"agent":"claude-code","args_hash":"b68b4f27ab26c316258def49fe5de03704efcc558cf144538508f61b29b1138e","kind":"pre","prev_hash":"0000000000000000000000000000000000000000000000000000000000000000","receipt_hash":"4efbb8754f2c9a9bc145491947b9d082c3215c0df788b6b0578e3dd0a3ce37ce","seq":1,"session_id":"pocketos-replay","tool":"Bash","tool_use_id":"toolu_01","ts":"2026-11-04T08:19:04.700884Z","v":"perathos.receipt/v1"}
|
|
2
|
+
{"agent":"claude-code","args_hash":"b68b4f27ab26c316258def49fe5de03704efcc558cf144538508f61b29b1138e","kind":"post","prev_hash":"4efbb8754f2c9a9bc145491947b9d082c3215c0df788b6b0578e3dd0a3ce37ce","receipt_hash":"db16746b00e348af3450f7e37ba0dfb3c3ab8a32de00bc91a8bf932cd5fe3618","result_hash":"af5b7295ff3b7c583fbdf477253ff8105d68f5ed1e03118396c4b2fcd9869488","seq":2,"session_id":"pocketos-replay","status":"ok","tool":"Bash","tool_use_id":"toolu_01","ts":"2026-11-04T08:19:04.945954Z","v":"perathos.receipt/v1"}
|
|
3
|
+
{"agent":"claude-code","args_hash":"20bf9eb9a74aa6a900c628109717b888b13bcff270e7d3174ac9e7b824a38e2e","guard":{"decision":"deny","precondition":null,"rule":"paas.railway"},"kind":"pre","prev_hash":"db16746b00e348af3450f7e37ba0dfb3c3ab8a32de00bc91a8bf932cd5fe3618","receipt_hash":"a9dd6da880670e197843a3dbb5ae015500c629edd32ba71d1713c108f37b5973","seq":3,"session_id":"pocketos-replay","tool":"Bash","tool_use_id":"toolu_02","ts":"2026-11-04T08:19:05.192047Z","v":"perathos.receipt/v1"}
|
|
4
|
+
{"agent":"claude-code","args_hash":"f1fde088301840df5209c7c8a20368910d22f1c22faf82355b4f6b4b0b5fe0d4","guard":{"decision":"deny","precondition":null,"rule":"guard.self-authorize"},"kind":"pre","prev_hash":"a9dd6da880670e197843a3dbb5ae015500c629edd32ba71d1713c108f37b5973","receipt_hash":"13cf1dd83e754db45b0287a9342a41880bc03e5c997ae0c5f63132bc51a94cf2","seq":4,"session_id":"pocketos-replay","tool":"Bash","tool_use_id":"toolu_03","ts":"2026-11-04T08:19:05.431384Z","v":"perathos.receipt/v1"}
|
|
5
|
+
{"agent":"claude-code","event":"Stop","kind":"checkpoint","model":null,"prev_hash":"13cf1dd83e754db45b0287a9342a41880bc03e5c997ae0c5f63132bc51a94cf2","receipt_hash":"da5428a50b4c919b362208d8b0af5d6176faea8586b2481358cd1690fceeec36","seq":5,"session_id":"pocketos-replay","signature":{"algorithm":"ed25519","signature":"e8a97ad2bd619d469d580d73ca2bf20512cbea1fd622b470012b49343e29093f216c330844fc89f0d2dbd06a2e50e02a3db438d08cc0c0f52fb9ae11ec8f5504","verify_key":"d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707"},"signer":"d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707","ts":"2026-11-04T08:19:05.695124Z","v":"perathos.receipt/v1"}
|
|
6
|
+
{"agent":"claude-code","args_hash":"20bf9eb9a74aa6a900c628109717b888b13bcff270e7d3174ac9e7b824a38e2e","guard":{"decision":"allow","precondition":"2f33e233db8e7a1468e2f0885c51eeabb03960c8b4978c013dc1c6528ac8ebb9","rule":"paas.railway"},"kind":"pre","prev_hash":"da5428a50b4c919b362208d8b0af5d6176faea8586b2481358cd1690fceeec36","receipt_hash":"728b7471075e5ab1626511838d8befd27fa6e2803f82200c81f6ac805300cc84","seq":6,"session_id":"pocketos-replay","tool":"Bash","tool_use_id":"toolu_04","ts":"2026-11-04T08:19:07.697718Z","v":"perathos.receipt/v1"}
|
|
7
|
+
{"agent":"claude-code","args_hash":"20bf9eb9a74aa6a900c628109717b888b13bcff270e7d3174ac9e7b824a38e2e","kind":"post","prev_hash":"728b7471075e5ab1626511838d8befd27fa6e2803f82200c81f6ac805300cc84","receipt_hash":"eac94c1e2a98757c7834fe3a51d6a8f48e225c8d324a1c9cd4c314683dd3049e","result_hash":"d94dd1a471d6ca93e2ca75f12b7d0d53b895c8b4e38403a61b6de4c8e1a45a1b","seq":7,"session_id":"pocketos-replay","status":"ok","tool":"Bash","tool_use_id":"toolu_04","ts":"2026-11-04T08:19:07.931239Z","v":"perathos.receipt/v1"}
|
|
8
|
+
{"agent":"claude-code","event":"Stop","kind":"checkpoint","model":null,"prev_hash":"eac94c1e2a98757c7834fe3a51d6a8f48e225c8d324a1c9cd4c314683dd3049e","receipt_hash":"f53bd64de64d8b29fc025c7d07f3570d6a1a41c1fe036fb4727cb30c4c1b19b1","seq":8,"session_id":"pocketos-replay","signature":{"algorithm":"ed25519","signature":"c739672a1fec289190524fe8aff579f53428f96922b701d4db20afb7dcec6d390583fba7544ceb20b60cb9e61bf5315f2684194df499c7aeece4373d15ebd103","verify_key":"d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707"},"signer":"d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707","ts":"2026-11-04T08:19:08.217162Z","v":"perathos.receipt/v1"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"path": "session.jsonl",
|
|
3
|
+
"valid": true,
|
|
4
|
+
"errors": [],
|
|
5
|
+
"warnings": [],
|
|
6
|
+
"session_id": "pocketos-replay",
|
|
7
|
+
"receipts": 8,
|
|
8
|
+
"tool_calls": 4,
|
|
9
|
+
"checkpoints": 2,
|
|
10
|
+
"signed_checkpoints": 2,
|
|
11
|
+
"sealed_through": 8,
|
|
12
|
+
"unsealed_tail": 0,
|
|
13
|
+
"signers": [
|
|
14
|
+
"d53f11ff38959d472a2e619b346340b44a79866fb8650d96f22ada467f524707"
|
|
15
|
+
],
|
|
16
|
+
"models": [],
|
|
17
|
+
"tools": {
|
|
18
|
+
"Bash": 4
|
|
19
|
+
},
|
|
20
|
+
"first_ts": "2026-11-04T08:19:04.700884Z",
|
|
21
|
+
"last_ts": "2026-11-04T08:19:08.217162Z",
|
|
22
|
+
"blocked": 2,
|
|
23
|
+
"anchors": 2,
|
|
24
|
+
"anchored_through": 8,
|
|
25
|
+
"anchored_time": "2026-11-04T08:19:09Z",
|
|
26
|
+
"blocked_calls": [
|
|
27
|
+
{
|
|
28
|
+
"seq": 3,
|
|
29
|
+
"ts": "2026-11-04T08:19:05.192047Z",
|
|
30
|
+
"tool": "Bash",
|
|
31
|
+
"rule": "paas.railway"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"seq": 4,
|
|
35
|
+
"ts": "2026-11-04T08:19:05.431384Z",
|
|
36
|
+
"tool": "Bash",
|
|
37
|
+
"rule": "guard.self-authorize"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"allowed_under_precondition": [
|
|
41
|
+
{
|
|
42
|
+
"seq": 6,
|
|
43
|
+
"ts": "2026-11-04T08:19:07.697718Z",
|
|
44
|
+
"tool": "Bash",
|
|
45
|
+
"rule": "paas.railway",
|
|
46
|
+
"precondition": {
|
|
47
|
+
"id": "d5852e52-6d9f-4642-954f-876039684c10",
|
|
48
|
+
"scope": "pg-data",
|
|
49
|
+
"check": "python check_backup.py offsite/prod-backup.db",
|
|
50
|
+
"manual_reason": null,
|
|
51
|
+
"created": "2026-11-04T08:19:07Z",
|
|
52
|
+
"expires": "2026-11-04T08:49:07Z"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"preconditions_missing_from_pack": [],
|
|
57
|
+
"limits": [
|
|
58
|
+
"Shows which key sealed the record, not which model ran (the model name is self-reported).",
|
|
59
|
+
"Event times come from the local clock; only anchored checkpoints have an independent time.",
|
|
60
|
+
"Tool arguments and outputs are not included, only their SHA-256 hashes.",
|
|
61
|
+
"A gap in recording (hooks switched off) is not visible in the log.",
|
|
62
|
+
"The guard matches command patterns; it is a safeguard against accidents, not a sandbox."
|
|
63
|
+
],
|
|
64
|
+
"exported_at": "2026-11-04T08:19:10Z"
|
|
65
|
+
}
|