create-metamynd-agent 0.7.3 → 0.7.4

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 (3) hide show
  1. package/README.md +5 -7
  2. package/index.mjs +7 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -175,13 +175,11 @@ Named precisely, not left implicit:
175
175
  already checked it against the mandate's TOTAL budget when minted, not just this one request's
176
176
  amount — so many small legal-looking calls can't add up past the cap this way.
177
177
 
178
- **One narrower gap, found while building this and disclosed rather than left implicit:** the claim
179
- above verifies the claimed authorization's own `agentDid`/`amount`/`currency` match the request —
180
- not `merchant`, because the backend's hold record doesn't currently store it. A same-amount,
181
- same-currency authorization legitimately obtained for one merchant could in principle unlock a
182
- booking with a different merchant. Closing this needs a small backend change (storing `merchant`
183
- on the hold); it isn't done here. `gateway/README.md`'s own "What this closes, precisely" section
184
- has the same disclosure.
178
+ The claim above also checks `agentDid`/`amount`/`currency`/`merchant` together against the
179
+ request being executed (`@metamynd/agentsafe-mcp-guard` 0.2.1) a same-amount, same-currency
180
+ authorization legitimately obtained for one merchant cannot unlock a booking with a different
181
+ one. That gap was found while building this and closed, not left open; `gateway/README.md`'s own
182
+ "What this closes, precisely" section names it the same way.
185
183
 
186
184
  Pass `--no-gateway` to opt out and get the old single-process scaffold instead — e.g. if you're
187
185
  already running your own separate gateway and don't need this one. **You are back to being
package/index.mjs CHANGED
@@ -919,17 +919,13 @@ own code, or a network attacker) might attempt:
919
919
  request's amount. Many small legal-looking calls can't add up past the mandate cap this way,
920
920
  because each needed its own real authorization first.
921
921
 
922
- **One narrower gap, found while building this and disclosed rather than left implicit:** the
923
- claim above verifies the claimed authorization's own \`agentDid\`/\`amount\`/\`currency\` match the
924
- request being executed but not \`merchant\`, because the backend's hold record doesn't currently
925
- store it. A same-amount, same-currency authorization legitimately obtained for one merchant could
926
- in principle be presented to unlock a booking with a different merchant. Closing this needs a
927
- small backend change (storing \`merchant\` on the hold so it can be compared too); it isn't done
928
- here. See \`@metamynd/agentsafe-mcp-guard\`'s own README (\`requireAuthorization\`) for the full
929
- mechanism, and \`demo/duffel-mcp-gateway\` in the AgentSafe repo for the fuller pattern this is a
930
- slice of (mutual DID handshake, x402 payment binding, commitment-bound capability tokens — which
931
- WOULD close the merchant gap too, by binding the whole transaction to a cryptographic commitment
932
- rather than comparing individual stored fields).
922
+ The claim above also checks the claimed authorization's own \`agentDid\`/\`amount\`/\`currency\`/
923
+ \`merchant\` against the request actually being executed (\`@metamynd/agentsafe-mcp-guard\` 0.2.1)
924
+ a same-amount, same-currency authorization legitimately obtained for one merchant cannot unlock
925
+ a booking with a different one; that gap was found while building this and closed, not left open.
926
+ See \`@metamynd/agentsafe-mcp-guard\`'s own README (\`requireAuthorization\`) for the full mechanism,
927
+ and \`demo/duffel-mcp-gateway\` in the AgentSafe repo for the fuller pattern this is a slice of
928
+ (mutual DID handshake, x402 payment binding, commitment-bound capability tokens).
933
929
  `;
934
930
  }
935
931
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-metamynd-agent",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Scaffold a MetaMynd/AgentSafe-governed AI agent in one command — logs in, provisions the agent (identity + mandate + SOP + Standards) in a single call, writes agent.metamynd.json plus a runnable agent + separate tool-gateway process that closes direct-call, confused-deputy, replay, and cumulative-spend bypasses. --harness scaffolds a free, local, zero-network governance harness instead.",
5
5
  "type": "module",
6
6
  "bin": {