@agledger/cli 0.8.4 → 0.8.5

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 CHANGED
@@ -118,7 +118,7 @@ Agent keys (`agl_agt_*`) and admin keys (`agl_adm_*`) are both accepted — the
118
118
 
119
119
  ## Requirements
120
120
 
121
- - Node.js >= 22.0.0
121
+ - Node.js >= 24.0.0
122
122
  - A running [AGLedger API](https://www.agledger.ai) instance
123
123
 
124
124
  ## License
package/SKILL.md CHANGED
@@ -32,17 +32,18 @@ agledger api <METHOD> <PATH> [--data JSON | --input FILE | -F key=value ...]
32
32
  - `agledger api GET /openapi.json` — full API route catalog
33
33
 
34
34
  ## Offline audit verification
35
- - `agledger verify <audit-export.json>` — verify a record audit export offline (RFC 8785 hash chain + Ed25519). No network, no API key. Exit 0 if valid, 1 if broken; `--json` for structured output; `--keys <file>` overrides embedded keys; `--require-key-id <id>` for high-assurance flows.
35
+ - `agledger verify <audit-export.json>` — verify a record audit export offline (COSE_Sign1 envelopes per RFC 9052, hash chain + Ed25519 signatures). No network, no API key. Exit 0 if valid, 1 if broken; `--json` for structured output; `--keys <file>` supplies keys out of band (merged over any embedded in the export); `--require-key-id <id>` rejects exports signed by an unexpected key; `--require-out-of-band-keys` refuses the export's own embedded keys for an independent audit.
36
36
 
37
37
  **What verification proves:**
38
38
  - Every entry was signed by a key listed in the export (or supplied via `--keys`) at the moment the vault wrote it.
39
- - Payloads have not been altered since signing (SHA-256 recomputation matches stored `payloadHash`).
39
+ - Payloads have not been altered since signing (SHA-256 recomputation matches the stored `payload_hash` over the signed COSE_Sign1 bytes).
40
40
  - The hash chain is contiguous — no entries were inserted, removed, or reordered between positions.
41
+ - On failure, `brokenAt.code` is a canonical SCREAMING_SNAKE failure code (e.g. `CHAIN_HASH_MISMATCH`, `CHAIN_SIGNATURE_INVALID`).
41
42
 
42
43
  **What verification does NOT prove:**
43
- - That the signing key is *legitimate* — verify the key against `/.well-known/agledger-vault-keys.json` on the issuing instance (or the `/v1/verification-keys` API) out-of-band.
44
+ - That the signing key is *legitimate* — obtain the key out of band from `/.well-known/scitt-keys` on the issuing instance (or the `/v1/verification-keys` API) and pass it via `--keys --require-out-of-band-keys`.
44
45
  - That the export is *complete* — a vault operator can still truncate the export at either end.
45
- - That the *content* the payload describes actually happened. Payloads record what the agent reported (declared intent); the verifier does not cross-check against external systems.
46
+ - That the *content* the payload describes actually happened. Payloads record what the agent notarized (declared intent and reported result); the verifier checks tamper-evidence, not whether the work occurred.
46
47
 
47
48
  ## Agent-native patterns
48
49
  - `--json` on every command (auto when piped)
@@ -593,5 +593,5 @@
593
593
  ]
594
594
  }
595
595
  },
596
- "version": "0.8.4"
596
+ "version": "0.8.5"
597
597
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agledger/cli",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "AGLedger CLI — Developer and agent interface for AGLedger",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",