@t2000/engine 1.11.2 → 1.11.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.
package/dist/index.js CHANGED
@@ -6435,7 +6435,18 @@ var PERMISSION_PRESETS = {
6435
6435
  rules: [
6436
6436
  { operation: "save", autoBelow: 100, confirmBetween: 2e3 },
6437
6437
  { operation: "send", autoBelow: 25, confirmBetween: 500 },
6438
- { operation: "borrow", autoBelow: 10, confirmBetween: 1e3 },
6438
+ // [F14 / 2026-05-03] Was `autoBelow: 10` violated the absolute
6439
+ // invariant in `.cursor/rules/safeguards-defense-in-depth.mdc`:
6440
+ // "borrow always confirms (autoBelow: 0 across every preset) —
6441
+ // debt is too consequential to silently take on." A user on the
6442
+ // aggressive preset had a 6-op bundle (repay/swap/swap/save/borrow/send)
6443
+ // silently auto-execute because step[0]=`repay $2` resolved to
6444
+ // `auto` and the host gate only inspected step[0] (Bug A, fixed
6445
+ // separately on the audric host). Holding the engine constant to
6446
+ // the documented contract here is the second half of defense in
6447
+ // depth — locks every preset to `borrow.autoBelow: 0` regardless
6448
+ // of host-side bundle iteration.
6449
+ { operation: "borrow", autoBelow: 0, confirmBetween: 1e3 },
6439
6450
  { operation: "withdraw", autoBelow: 50, confirmBetween: 1e3 },
6440
6451
  { operation: "swap", autoBelow: 50, confirmBetween: 500 },
6441
6452
  { operation: "pay", autoBelow: 5, confirmBetween: 100 },