@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 +1 -1
- package/SKILL.md +5 -4
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
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
|
|
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 `
|
|
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* —
|
|
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
|
|
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)
|
package/oclif.manifest.json
CHANGED