Repository navigation
Commit 107c2d1
v0.12.278 — remove TWZRD AutoGate and its optional dependency
The pre-sign path carries no third-party vendor. `clawrouter policy`
(SpendControl) is the pre-spend control ClawRouter ships.
Deletes `src/twzrd-autogate.ts` and its tests, the `twzrd-x402-gate`
optionalDependency and its lockfile entry, the tsup `external` carve-out,
the proxy hook composition, and the TWZRD_* flags and docs in README,
docs/configuration.md and `clawrouter --help`.
The vendor's own follow-up (#360, closed) verified `0.9.4` against the
installed package and showed four things we cannot carry inside
`onBeforePaymentCreation`:
- The engine changed under a patch bump. `0.9.3` ran the full
`/v1/intel/preflight`; the same `createTwzrdBeforePaymentHook` call in
`0.9.4` became a wash-only `GET merchant_card/{payTo}` against a
different endpoint with a different refusal set, no code change here.
- The package ignores the `failOpen` we pass and converts a fast 503 /
404 / `fetch failed` / non-JSON into allow internally, so
`TWZRD_FAIL_OPEN=false` never meant refuse-on-outage as documented.
- `wash_flagged: false` with missing, partial or stale coverage aborts —
an unscored recipient stops a payment.
- Every lookup stamped `X-Twzrd-Caller` / `X-TWZRD-Integration` /
`X-TWZRD-Client` attribution from the code path that signs with the
user's wallet.
The surface was opt-in and default-off, so nothing that worked before
stops working; `TWZRD_AUTO_GATE=1` installs now fall back to
SpendControl, which was always the guarantee.
npm test 1088 passed / 1 skipped · typecheck · lint · prettier · build
+ dist smoke · sync-brand-numbers --check — all green.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CMn84JAawTdBgpQCkU7aYn1 parent 2bff0e5 commit 107c2d1
15 files changed
Lines changed: 54 additions & 1073 deletions
File tree
- apps/desktop/electron/core
- dist
- docs
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
7 | 50 | | |
8 | 51 | | |
9 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | 770 | | |
772 | 771 | | |
773 | 772 | | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | 773 | | |
789 | 774 | | |
790 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60460 | 60460 | | |
60461 | 60461 | | |
60462 | 60462 | | |
60463 | | - | |
60464 | | - | |
60465 | | - | |
60466 | | - | |
60467 | | - | |
60468 | | - | |
60469 | | - | |
60470 | | - | |
60471 | | - | |
60472 | | - | |
60473 | | - | |
60474 | | - | |
60475 | | - | |
60476 | | - | |
60477 | | - | |
60478 | | - | |
60479 | | - | |
60480 | | - | |
60481 | | - | |
60482 | | - | |
60483 | | - | |
60484 | | - | |
60485 | | - | |
60486 | | - | |
60487 | | - | |
60488 | | - | |
60489 | | - | |
60490 | | - | |
60491 | | - | |
60492 | | - | |
60493 | | - | |
60494 | | - | |
60495 | | - | |
60496 | | - | |
60497 | | - | |
60498 | | - | |
60499 | | - | |
60500 | | - | |
60501 | | - | |
60502 | | - | |
60503 | | - | |
60504 | | - | |
60505 | | - | |
60506 | | - | |
60507 | | - | |
60508 | | - | |
60509 | | - | |
60510 | | - | |
60511 | | - | |
60512 | | - | |
60513 | | - | |
60514 | | - | |
60515 | | - | |
60516 | | - | |
60517 | | - | |
60518 | | - | |
60519 | | - | |
60520 | | - | |
60521 | | - | |
60522 | | - | |
60523 | | - | |
60524 | | - | |
60525 | | - | |
60526 | | - | |
60527 | | - | |
60528 | | - | |
60529 | | - | |
60530 | | - | |
60531 | | - | |
60532 | | - | |
60533 | | - | |
60534 | | - | |
60535 | | - | |
60536 | | - | |
60537 | | - | |
60538 | | - | |
60539 | | - | |
60540 | | - | |
60541 | | - | |
60542 | | - | |
60543 | | - | |
60544 | | - | |
60545 | | - | |
60546 | | - | |
60547 | | - | |
60548 | | - | |
60549 | | - | |
60550 | | - | |
60551 | | - | |
60552 | | - | |
60553 | | - | |
60554 | | - | |
60555 | | - | |
60556 | | - | |
60557 | | - | |
60558 | | - | |
60559 | | - | |
60560 | | - | |
60561 | | - | |
60562 | | - | |
60563 | | - | |
60564 | | - | |
60565 | | - | |
60566 | | - | |
60567 | | - | |
60568 | | - | |
60569 | | - | |
60570 | | - | |
60571 | | - | |
60572 | | - | |
60573 | | - | |
60574 | | - | |
60575 | | - | |
60576 | | - | |
60577 | | - | |
60578 | | - | |
60579 | | - | |
60580 | | - | |
60581 | | - | |
60582 | | - | |
60583 | | - | |
60584 | | - | |
60585 | | - | |
60586 | | - | |
60587 | | - | |
60588 | | - | |
60589 | | - | |
60590 | | - | |
60591 | | - | |
60592 | | - | |
60593 | | - | |
60594 | | - | |
60595 | | - | |
60596 | | - | |
60597 | | - | |
60598 | | - | |
60599 | | - | |
60600 | | - | |
60601 | | - | |
60602 | | - | |
60603 | | - | |
60604 | | - | |
60605 | | - | |
60606 | 60463 | | |
60607 | 60464 | | |
60608 | 60465 | | |
| |||
92187 | 92044 | | |
92188 | 92045 | | |
92189 | 92046 | | |
92190 | | - | |
92191 | 92047 | | |
92192 | 92048 | | |
92193 | 92049 | | |
| |||
95773 | 95629 | | |
95774 | 95630 | | |
95775 | 95631 | | |
95776 | | - | |
95777 | 95632 | | |
95778 | 95633 | | |
95779 | 95634 | | |
| |||
228831 | 228686 | | |
228832 | 228687 | | |
228833 | 228688 | | |
228834 | | - | |
| 228689 | + | |
228835 | 228690 | | |
228836 | 228691 | | |
228837 | 228692 | | |
| |||
228846 | 228701 | | |
228847 | 228702 | | |
228848 | 228703 | | |
228849 | | - | |
| 228704 | + | |
228850 | 228705 | | |
228851 | 228706 | | |
228852 | 228707 | | |
| |||
231337 | 231192 | | |
231338 | 231193 | | |
231339 | 231194 | | |
231340 | | - | |
231341 | 231195 | | |
231342 | 231196 | | |
231343 | 231197 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments