@metamynd/agentsafe-signer 0.20.1 → 0.20.3

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.
Files changed (2) hide show
  1. package/daemon.mjs +5 -6
  2. package/package.json +1 -1
package/daemon.mjs CHANGED
@@ -84,10 +84,10 @@ export function buildServiceCallMessage({ action, authorizationId, fields, nonce
84
84
  export const DEFAULT_CHECKPOINT_INTERVAL_MS = 15 * 60 * 1000;
85
85
 
86
86
  // Matches agentsafe-guard.mjs's own REPORTABLE_LOCAL_DECISIONS exactly (LOCAL_DECISIONS the
87
- // backend's /policy/decisions/local actually accepts) — this daemon must never sign a
88
- // 'quarantine'/'suspend' or other value here just because a caller asked; only a genuine
89
- // local-first verdict shape is a valid thing to have signed under this op.
90
- const REPORTABLE_LOCAL_DECISIONS = new Set(['allow', 'observe', 'block', 'escalate']);
87
+ // backend's /policy/decisions/local accepts) — this daemon never signs another value here just because a caller asked;
88
+ // only a genuine local-first verdict shape, or (since 0.20.3, N-4) a containment refusal the guard gave from the
89
+ // server's own `contained` flag, is a valid thing to have signed under this op. Never 'decommission'.
90
+ const REPORTABLE_LOCAL_DECISIONS = new Set(['allow', 'observe', 'block', 'escalate', 'suspend', 'quarantine']);
91
91
 
92
92
  const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
93
93
  const HEX_RE = /^[0-9a-f]+$/i;
@@ -390,8 +390,7 @@ export class SignerDaemon {
390
390
 
391
391
  /**
392
392
  * An agent settling its OWN hold that nobody has claimed (MAGP §8.7.4): capture it, or void it. The issuer accepts an
393
- * unclaimed settlement only from that hold's agent, a counterparty the owner registered, or — for an open testnet owner —
394
- * anyone. Built from validated fields under the fixed MAGP-SETTLE-v1 prefix, which no other message this daemon signs
393
+ * unclaimed settlement only from that hold's agent or a counterparty the owner registered, on every owner. Built from validated fields under the fixed MAGP-SETTLE-v1 prefix, which no other message this daemon signs
395
394
  * starts with; it names the agent, so it is never a counterparty's signature (sign-service-call, MAGP-SERVICE-v1), and an
396
395
  * agent cannot use it to claim. Agent-role only.
397
396
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamynd/agentsafe-signer",
3
- "version": "0.20.1",
3
+ "version": "0.20.3",
4
4
  "description": "Local signer daemon for AgentSafe agent/service keys \u2014 the key never enters the calling guard's own process. See docs/design/agent-key-custody-local-signer-daemon-plan.md.",
5
5
  "type": "module",
6
6
  "main": "./daemon.mjs",