SCRIPTMASTERLABS commited on
Commit
5e5f55c
·
verified ·
1 Parent(s): bdb56ac

x402 Pulse — November 2026 (from HIVE402 settlement_events, 2026-11-21)

Browse files
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ .venv/
2
+ __pycache__/
3
+ .pytest_cache/
4
+ *.pyc
CITATION.cff ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ title: "x402 Pulse — November 2026"
3
+ message: "If you use this dataset, please cite it and link to HIVE402."
4
+ type: dataset
5
+ authors:
6
+ - name: "Script Master Labs LLC"
7
+ email: tim@scriptmasterlabs.com
8
+ city: Kinston
9
+ region: NC
10
+ country: US
11
+ date-released: "2026-11-21"
12
+ license: CC-BY-4.0
13
+ url: "https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11"
14
+ repository-code: "https://hive402.scriptmasterlabs.com"
15
+ identifiers:
16
+ - type: url
17
+ value: "https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11"
18
+ description: Canonical report page
LICENSE ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Attribution 4.0 International (CC BY 4.0)
2
+
3
+ This dataset is licensed under CC BY 4.0. You are free to share and adapt it
4
+ for any purpose, including commercially, provided you give appropriate credit
5
+ and indicate if changes were made.
6
+
7
+ Credit: Script Master Labs LLC (HIVE402), “x402 Pulse”,
8
+ https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11
9
+ and https://hive402.scriptmasterlabs.com
10
+
11
+ Full legal code: https://creativecommons.org/licenses/by/4.0/legalcode
12
+ Human-readable deed: https://creativecommons.org/licenses/by/4.0/
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ pretty_name: x402 Pulse
4
+ language:
5
+ - en
6
+ tags:
7
+ - x402
8
+ - payments
9
+ - usdc
10
+ - base
11
+ - hive402
12
+ - crypto
13
+ - agents
14
+ size_categories:
15
+ - n<1K
16
+ task_categories:
17
+ - time-series-forecasting
18
+ - tabular-classification
19
+ source_datasets:
20
+ - original
21
+ ---
22
+
23
+ # x402 Pulse
24
+
25
+ Daily x402 settlement counts on Base (USDC) to sellers listed in [HIVE402](https://hive402.scriptmasterlabs.com), the live x402 marketplace operated by Script Master Labs LLC.
26
+
27
+ **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Reuse freely with attribution and a link to HIVE402: https://hive402.scriptmasterlabs.com (canonical report: https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11).
28
+
29
+ This dataset has **not been uploaded** to Hugging Face or Kaggle yet. See `PUBLISH.md` for the account steps. Do not invent additional rows; every figure here comes from `data/data_raw.json`, which was queried from HIVE402's `settlement_events` on 2026-11-21.
30
+
31
+ ## Quotable (from the 21 November 2026 report)
32
+
33
+ > x402 settlements to sellers in HIVE402's catalog on Base rose 5.4× week over week, from 103,317 (Nov 7–13, 2026) to 557,258 (Nov 14–20, 2026); one seller, ax1's Token Verdict, received 37.2% of settlements since Nov 14.
34
+
35
+ ## What's in the files
36
+
37
+ | File | Description |
38
+ | --- | --- |
39
+ | `data/x402-pulse-2026-11.csv` | Daily time series (35 UTC days, 18 Oct–21 Nov 2026) |
40
+ | `data/x402-pulse-2026-11.json` | Full report: totals, week-over-week, price mix, concentration, largest seller, supply snapshot, caveats |
41
+ | `data/data_raw.json` | Source snapshot in the exact format the weekly regenerator consumes (atomic USDC units) |
42
+ | `data/charts/` | Settlements and payers charts, plus the report OG image, generated from the same numbers |
43
+ | `scripts/regenerate.py` | Rebuilds the CSV/JSON from a `data_raw.json` file |
44
+
45
+ ### Daily CSV columns
46
+
47
+ `day_utc`, `settlements`, `paying_wallets`, `receiving_seller_wallets`, `usdc_amount`, `settlements_under_0.01`, `settlements_under_0.10`
48
+
49
+ ## Headline figures (window 2026-10-18T14:03:10.000Z to 2026-11-21T06:41:38.000Z)
50
+
51
+ - Settlements: 864,328
52
+ - Paying wallets: 9,434
53
+ - Receiving seller wallets: 1,514
54
+ - USDC amount: $124,709.12
55
+ - Script Master Labs wallets excluded: 85 rows
56
+ - Week of 7–13 Nov 2026: 103,317 settlements
57
+ - Week of 14–20 Nov 2026: 557,258 settlements (5.39×)
58
+ - Share of settlements under $0.01: 42.63%
59
+ - Share under $0.10: 98.87%
60
+ - Since 14 Nov 2026: 558,519 settlements from 6,420 wallets; top 10 wallets 39.96%; top 100 76.36%; wallets paying once 3,481
61
+ - Largest seller in that window: ax1 Token Verdict (ax1-new.vercel.app), 207,563 settlements (37.16%), listed price $0.02 USDC, payTo `0x7284d41b5b852f2bd4c99bdf95043d84452d299c`
62
+ - Catalog snapshot at 2026-11-21T05:30:39.572Z: 43,260 endpoints, 2,188 operators, 38,522 probe-verified payable
63
+
64
+ ## Scope
65
+
66
+ x402 exact settlements on Base mainnet (eip155:8453): USDC transfers to a payTo wallet listed in HIVE402's catalog, in a transaction that also emitted the USDC contract's EIP-3009 AuthorizationUsed event. Covers every facilitator. ScriptMasterLabs' own wallets excluded.
67
+
68
+ ## Caveats
69
+
70
+ - Scope is HIVE402's catalog, not all of x402: settlements to sellers HIVE402 does not list are not counted.
71
+ - The catalog grew during the window (receiving seller wallets per day rose from 14 on Oct 18 to 400+ in November), so early-window growth partly reflects coverage growth. The Nov 14–20 jump happened with coverage similar to early November.
72
+ - Dollar totals include some large EIP-3009 transfers to listed wallets that may not be API calls (one listed wallet received about $60k from 540 transfers since Nov 14 while listing $0.002 prices). Settlement counts and payer counts are the more reliable measures.
73
+ - A paying wallet is not a person or an agent; one operator can control many wallets, and one wallet can serve many users.
74
+ - Nov 21 is a partial day (data through 06:41 UTC).
75
+
76
+ ## How to regenerate each week
77
+
78
+ 1. Export a new `data_raw.json` in the documented source format (see `SOURCE_FORMAT.md`) from HIVE402's `settlement_events` table, with the same exclusions.
79
+ 2. Run:
80
+
81
+ ```bash
82
+ python scripts/regenerate.py --source path/to/data_raw.json --out . --published YYYY-MM-DD
83
+ ```
84
+
85
+ The script does not query the database and does not invent numbers.
86
+
87
+ ## Citation
88
+
89
+ Script Master Labs LLC (HIVE402), *x402 Pulse — November 2026*, 21 November 2026, https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11
SOURCE_FORMAT.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # data_raw.json source format
2
+
3
+ `scripts/regenerate.py` reads this shape and only this shape. It is the format written on 2026-11-21 from HIVE402's D1 table `settlement_events` (rows with `excluded IS NULL`).
4
+
5
+ ```json
6
+ {
7
+ "source": "HIVE402 D1 settlement_events (excluded IS NULL), queried 2026-11-21 ~08:15 UTC",
8
+ "totals": {
9
+ "tx": 864328,
10
+ "payers": 9434,
11
+ "payees": 1514,
12
+ "amount_atomic": 124709124070,
13
+ "first": "2026-10-18T14:03:10.000Z",
14
+ "last": "2026-11-21T06:41:38.000Z"
15
+ },
16
+ "excluded_sml": { "tx": 85, "payers": 6, "payees": 17, "amount_atomic": 4782000 },
17
+ "since_nov14": {
18
+ "payers": 6420,
19
+ "tx": 558519,
20
+ "top10_tx": 223170,
21
+ "top100_tx": 426466,
22
+ "one_tx_payers": 3481
23
+ },
24
+ "top_payee_since_nov14": {
25
+ "pay_to": "0x7284d41b5b852f2bd4c99bdf95043d84452d299c",
26
+ "name": "ax1 Token Verdict (ax1-new.vercel.app)",
27
+ "tx": 207563,
28
+ "payers": 3032,
29
+ "amount_atomic": 3972820000,
30
+ "listed_price_usd": 0.02
31
+ },
32
+ "supply_snapshot": {
33
+ "as_of": "2026-11-21T05:30:39.572Z",
34
+ "endpoints": 43260,
35
+ "operators": 2188,
36
+ "verified_payable": 38522,
37
+ "paid_verified_endpoints": 29,
38
+ "catalog_endpoints_paid_board": 39360
39
+ },
40
+ "daily": [
41
+ ["2026-10-18", 3957, 112, 14, 80204600, 35, 3954]
42
+ ],
43
+ "daily_columns": [
44
+ "day_utc",
45
+ "settlements",
46
+ "payers",
47
+ "payees",
48
+ "amount_atomic_usdc",
49
+ "under_1c",
50
+ "under_10c"
51
+ ]
52
+ }
53
+ ```
54
+
55
+ Rules used to build the 2026-11-21 snapshot (keep these stable when refreshing):
56
+
57
+ - Network: Base mainnet (`eip155:8453`).
58
+ - Count a settlement when a USDC transfer goes to a `payTo` wallet listed in HIVE402's catalog **and** the same transaction emitted the USDC contract's EIP-3009 `AuthorizationUsed` event.
59
+ - Include every facilitator.
60
+ - Exclude Script Master Labs' own wallets (those rows are summarized in `excluded_sml`, not in `totals` or `daily`).
61
+ - `amount_atomic` is USDC at 6 decimals (1 USDC = 1,000,000).
62
+ - `since_nov14` / `top_payee_since_nov14` cover settlements with day ≥ 2026-11-14. For later editions, keep the same keys or extend them with a clearly dated concentration window; the regenerator currently reads these keys.
63
+
64
+ The regenerator never talks to D1. Someone with database access must export the snapshot, then run the script.
data/charts/x402-pulse-2026-11-og.png ADDED

Git LFS Details

  • SHA256: 8346f11b5bd0cdbb7f00ac916ebbc3dcab6c1e3cff33ef7493b743b588ac1ade
  • Pointer size: 130 Bytes
  • Size of remote file: 50.4 kB
data/charts/x402-pulse-2026-11-payers.svg ADDED
data/charts/x402-pulse-2026-11-settlements.svg ADDED
data/data_raw.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "HIVE402 D1 settlement_events (excluded IS NULL), queried 2026-11-21 ~08:15 UTC",
3
+ "totals": {"tx": 864328, "payers": 9434, "payees": 1514, "amount_atomic": 124709124070, "first": "2026-10-18T14:03:10.000Z", "last": "2026-11-21T06:41:38.000Z"},
4
+ "excluded_sml": {"tx": 85, "payers": 6, "payees": 17, "amount_atomic": 4782000},
5
+ "since_nov14": {"payers": 6420, "tx": 558519, "top10_tx": 223170, "top100_tx": 426466, "one_tx_payers": 3481},
6
+ "top_payee_since_nov14": {"pay_to": "0x7284d41b5b852f2bd4c99bdf95043d84452d299c", "name": "ax1 Token Verdict (ax1-new.vercel.app)", "tx": 207563, "payers": 3032, "amount_atomic": 3972820000, "listed_price_usd": 0.02},
7
+ "supply_snapshot": {"as_of": "2026-11-21T05:30:39.572Z", "endpoints": 43260, "operators": 2188, "verified_payable": 38522, "paid_verified_endpoints": 29, "catalog_endpoints_paid_board": 39360},
8
+ "daily": [
9
+ ["2026-10-18",3957,112,14,80204600,35,3954],["2026-10-19",1674,146,23,174035011,65,1650],["2026-10-20",2756,292,48,85753293,509,2633],["2026-10-21",668,204,26,752548400,82,613],["2026-10-22",11450,421,57,910300479,724,11369],["2026-10-23",7042,342,38,293132746,620,7026],["2026-10-24",3084,554,160,899413694,1178,2650],["2026-10-25",18529,574,163,1432063851,2288,18435],["2026-10-26",16973,551,150,2336293885,1177,16880],["2026-10-27",18268,562,152,1829124771,1386,18187],["2026-10-28",17470,510,133,4148488963,1406,17345],["2026-10-29",11948,597,162,2398411871,1193,11666],["2026-10-30",3344,481,113,2049049392,1024,3228],["2026-10-31",2867,507,151,1549148614,1305,2726],["2026-11-01",3595,478,407,2386307854,2053,3482],["2026-11-02",15374,522,470,2328540853,1554,15286],["2026-11-03",31273,788,473,2753542698,2952,30226],["2026-11-04",12280,464,254,2952578630,9972,11835],["2026-11-05",13883,562,153,2137022557,11495,13615],["2026-11-06",6057,505,145,4038540298,2870,5803],["2026-11-07",5240,489,135,1685681018,2490,5036],["2026-11-08",7085,463,193,2347866868,3707,6850],["2026-11-09",21360,733,382,4593416045,3542,21149],["2026-11-10",13902,524,302,458547229,2053,13675],["2026-11-11",20696,554,285,1893304629,13371,20532],["2026-11-12",17859,533,149,1308093995,10198,17723],["2026-11-13",17175,535,160,3809224546,9016,17020],["2026-11-14",24178,576,151,2610371134,13594,23801],["2026-11-15",22731,559,186,3855502183,13852,22345],["2026-11-16",22058,586,126,2541604117,14986,21852],["2026-11-17",55091,1034,533,4876269544,41565,54733],["2026-11-18",183335,2557,610,29717698622,93529,181839],["2026-11-19",151767,3317,669,16249896423,61826,150765],["2026-11-20",98098,2525,385,12841205873,40235,97395],["2026-11-21",1261,393,51,385939384,599,1245]
10
+ ],
11
+ "daily_columns": ["day_utc","settlements","payers","payees","amount_atomic_usdc","under_1c","under_10c"]
12
+ }
data/x402-pulse-2026-11.csv ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ day_utc,settlements,paying_wallets,receiving_seller_wallets,usdc_amount,settlements_under_0.01,settlements_under_0.10
2
+ 2026-10-18,3957,112,14,80.204600,35,3954
3
+ 2026-10-19,1674,146,23,174.035011,65,1650
4
+ 2026-10-20,2756,292,48,85.753293,509,2633
5
+ 2026-10-21,668,204,26,752.548400,82,613
6
+ 2026-10-22,11450,421,57,910.300479,724,11369
7
+ 2026-10-23,7042,342,38,293.132746,620,7026
8
+ 2026-10-24,3084,554,160,899.413694,1178,2650
9
+ 2026-10-25,18529,574,163,1432.063851,2288,18435
10
+ 2026-10-26,16973,551,150,2336.293885,1177,16880
11
+ 2026-10-27,18268,562,152,1829.124771,1386,18187
12
+ 2026-10-28,17470,510,133,4148.488963,1406,17345
13
+ 2026-10-29,11948,597,162,2398.411871,1193,11666
14
+ 2026-10-30,3344,481,113,2049.049392,1024,3228
15
+ 2026-10-31,2867,507,151,1549.148614,1305,2726
16
+ 2026-11-01,3595,478,407,2386.307854,2053,3482
17
+ 2026-11-02,15374,522,470,2328.540853,1554,15286
18
+ 2026-11-03,31273,788,473,2753.542698,2952,30226
19
+ 2026-11-04,12280,464,254,2952.578630,9972,11835
20
+ 2026-11-05,13883,562,153,2137.022557,11495,13615
21
+ 2026-11-06,6057,505,145,4038.540298,2870,5803
22
+ 2026-11-07,5240,489,135,1685.681018,2490,5036
23
+ 2026-11-08,7085,463,193,2347.866868,3707,6850
24
+ 2026-11-09,21360,733,382,4593.416045,3542,21149
25
+ 2026-11-10,13902,524,302,458.547229,2053,13675
26
+ 2026-11-11,20696,554,285,1893.304629,13371,20532
27
+ 2026-11-12,17859,533,149,1308.093995,10198,17723
28
+ 2026-11-13,17175,535,160,3809.224546,9016,17020
29
+ 2026-11-14,24178,576,151,2610.371134,13594,23801
30
+ 2026-11-15,22731,559,186,3855.502183,13852,22345
31
+ 2026-11-16,22058,586,126,2541.604117,14986,21852
32
+ 2026-11-17,55091,1034,533,4876.269544,41565,54733
33
+ 2026-11-18,183335,2557,610,29717.698622,93529,181839
34
+ 2026-11-19,151767,3317,669,16249.896423,61826,150765
35
+ 2026-11-20,98098,2525,385,12841.205873,40235,97395
36
+ 2026-11-21,1261,393,51,385.939384,599,1245
data/x402-pulse-2026-11.json ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "title": "x402 Pulse \u2014 November 2026",
3
+ "publisher": "Script Master Labs LLC (HIVE402)",
4
+ "url": "https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11",
5
+ "published": "2026-11-21",
6
+ "license": "CC BY 4.0 \u2014 reuse freely with attribution and a link to https://hive402.scriptmasterlabs.com/reports/x402-pulse-2026-11",
7
+ "quotable": "x402 settlements to sellers in HIVE402's catalog on Base rose 5.4\u00d7 week over week, from 103,317 (Nov 7\u201313, 2026) to 557,258 (Nov 14\u201320, 2026); one seller, ax1's Token Verdict, received 37.2% of settlements since Nov 14.",
8
+ "scope": "x402 exact settlements on Base mainnet (eip155:8453): USDC transfers to a payTo wallet listed in HIVE402's catalog, in a transaction that also emitted the USDC contract's EIP-3009 AuthorizationUsed event. Covers every facilitator. ScriptMasterLabs' own wallets excluded.",
9
+ "window": {
10
+ "from": "2026-10-18T14:03:10.000Z",
11
+ "to": "2026-11-21T06:41:38.000Z"
12
+ },
13
+ "totals": {
14
+ "settlements": 864328,
15
+ "paying_wallets": 9434,
16
+ "receiving_seller_wallets": 1514,
17
+ "usdc_amount": 124709.12
18
+ },
19
+ "excluded_scriptmasterlabs_rows": 85,
20
+ "week_over_week": {
21
+ "nov_7_13": 103317,
22
+ "nov_14_20": 557258,
23
+ "multiple": 5.39
24
+ },
25
+ "price_mix": {
26
+ "share_under_0_01": 0.4263,
27
+ "share_under_0_10": 0.9887
28
+ },
29
+ "concentration_since_2026_11_14": {
30
+ "paying_wallets": 6420,
31
+ "settlements": 558519,
32
+ "top10_wallet_share": 0.3996,
33
+ "top100_wallet_share": 0.7636,
34
+ "wallets_paying_once": 3481
35
+ },
36
+ "largest_seller_since_2026_11_14": {
37
+ "name": "ax1 Token Verdict",
38
+ "resource_host": "ax1-new.vercel.app",
39
+ "pay_to": "0x7284d41b5b852f2bd4c99bdf95043d84452d299c",
40
+ "settlements": 207563,
41
+ "paying_wallets": 3032,
42
+ "listed_price_usdc": 0.02,
43
+ "share_of_settlements": 0.3716
44
+ },
45
+ "supply_snapshot": {
46
+ "as_of": "2026-11-21T05:30:39.572Z",
47
+ "endpoints": 43260,
48
+ "operators": 2188,
49
+ "verified_payable": 38522,
50
+ "paid_verified_endpoints": 29,
51
+ "catalog_endpoints_paid_board": 39360
52
+ },
53
+ "daily_columns": [
54
+ "day_utc",
55
+ "settlements",
56
+ "paying_wallets",
57
+ "receiving_seller_wallets",
58
+ "usdc_amount",
59
+ "settlements_under_0.01",
60
+ "settlements_under_0.10"
61
+ ],
62
+ "daily": [
63
+ [
64
+ "2026-10-18",
65
+ 3957,
66
+ 112,
67
+ 14,
68
+ 80.2046,
69
+ 35,
70
+ 3954
71
+ ],
72
+ [
73
+ "2026-10-19",
74
+ 1674,
75
+ 146,
76
+ 23,
77
+ 174.035011,
78
+ 65,
79
+ 1650
80
+ ],
81
+ [
82
+ "2026-10-20",
83
+ 2756,
84
+ 292,
85
+ 48,
86
+ 85.753293,
87
+ 509,
88
+ 2633
89
+ ],
90
+ [
91
+ "2026-10-21",
92
+ 668,
93
+ 204,
94
+ 26,
95
+ 752.5484,
96
+ 82,
97
+ 613
98
+ ],
99
+ [
100
+ "2026-10-22",
101
+ 11450,
102
+ 421,
103
+ 57,
104
+ 910.300479,
105
+ 724,
106
+ 11369
107
+ ],
108
+ [
109
+ "2026-10-23",
110
+ 7042,
111
+ 342,
112
+ 38,
113
+ 293.132746,
114
+ 620,
115
+ 7026
116
+ ],
117
+ [
118
+ "2026-10-24",
119
+ 3084,
120
+ 554,
121
+ 160,
122
+ 899.413694,
123
+ 1178,
124
+ 2650
125
+ ],
126
+ [
127
+ "2026-10-25",
128
+ 18529,
129
+ 574,
130
+ 163,
131
+ 1432.063851,
132
+ 2288,
133
+ 18435
134
+ ],
135
+ [
136
+ "2026-10-26",
137
+ 16973,
138
+ 551,
139
+ 150,
140
+ 2336.293885,
141
+ 1177,
142
+ 16880
143
+ ],
144
+ [
145
+ "2026-10-27",
146
+ 18268,
147
+ 562,
148
+ 152,
149
+ 1829.124771,
150
+ 1386,
151
+ 18187
152
+ ],
153
+ [
154
+ "2026-10-28",
155
+ 17470,
156
+ 510,
157
+ 133,
158
+ 4148.488963,
159
+ 1406,
160
+ 17345
161
+ ],
162
+ [
163
+ "2026-10-29",
164
+ 11948,
165
+ 597,
166
+ 162,
167
+ 2398.411871,
168
+ 1193,
169
+ 11666
170
+ ],
171
+ [
172
+ "2026-10-30",
173
+ 3344,
174
+ 481,
175
+ 113,
176
+ 2049.049392,
177
+ 1024,
178
+ 3228
179
+ ],
180
+ [
181
+ "2026-10-31",
182
+ 2867,
183
+ 507,
184
+ 151,
185
+ 1549.148614,
186
+ 1305,
187
+ 2726
188
+ ],
189
+ [
190
+ "2026-11-01",
191
+ 3595,
192
+ 478,
193
+ 407,
194
+ 2386.307854,
195
+ 2053,
196
+ 3482
197
+ ],
198
+ [
199
+ "2026-11-02",
200
+ 15374,
201
+ 522,
202
+ 470,
203
+ 2328.540853,
204
+ 1554,
205
+ 15286
206
+ ],
207
+ [
208
+ "2026-11-03",
209
+ 31273,
210
+ 788,
211
+ 473,
212
+ 2753.542698,
213
+ 2952,
214
+ 30226
215
+ ],
216
+ [
217
+ "2026-11-04",
218
+ 12280,
219
+ 464,
220
+ 254,
221
+ 2952.57863,
222
+ 9972,
223
+ 11835
224
+ ],
225
+ [
226
+ "2026-11-05",
227
+ 13883,
228
+ 562,
229
+ 153,
230
+ 2137.022557,
231
+ 11495,
232
+ 13615
233
+ ],
234
+ [
235
+ "2026-11-06",
236
+ 6057,
237
+ 505,
238
+ 145,
239
+ 4038.540298,
240
+ 2870,
241
+ 5803
242
+ ],
243
+ [
244
+ "2026-11-07",
245
+ 5240,
246
+ 489,
247
+ 135,
248
+ 1685.681018,
249
+ 2490,
250
+ 5036
251
+ ],
252
+ [
253
+ "2026-11-08",
254
+ 7085,
255
+ 463,
256
+ 193,
257
+ 2347.866868,
258
+ 3707,
259
+ 6850
260
+ ],
261
+ [
262
+ "2026-11-09",
263
+ 21360,
264
+ 733,
265
+ 382,
266
+ 4593.416045,
267
+ 3542,
268
+ 21149
269
+ ],
270
+ [
271
+ "2026-11-10",
272
+ 13902,
273
+ 524,
274
+ 302,
275
+ 458.547229,
276
+ 2053,
277
+ 13675
278
+ ],
279
+ [
280
+ "2026-11-11",
281
+ 20696,
282
+ 554,
283
+ 285,
284
+ 1893.304629,
285
+ 13371,
286
+ 20532
287
+ ],
288
+ [
289
+ "2026-11-12",
290
+ 17859,
291
+ 533,
292
+ 149,
293
+ 1308.093995,
294
+ 10198,
295
+ 17723
296
+ ],
297
+ [
298
+ "2026-11-13",
299
+ 17175,
300
+ 535,
301
+ 160,
302
+ 3809.224546,
303
+ 9016,
304
+ 17020
305
+ ],
306
+ [
307
+ "2026-11-14",
308
+ 24178,
309
+ 576,
310
+ 151,
311
+ 2610.371134,
312
+ 13594,
313
+ 23801
314
+ ],
315
+ [
316
+ "2026-11-15",
317
+ 22731,
318
+ 559,
319
+ 186,
320
+ 3855.502183,
321
+ 13852,
322
+ 22345
323
+ ],
324
+ [
325
+ "2026-11-16",
326
+ 22058,
327
+ 586,
328
+ 126,
329
+ 2541.604117,
330
+ 14986,
331
+ 21852
332
+ ],
333
+ [
334
+ "2026-11-17",
335
+ 55091,
336
+ 1034,
337
+ 533,
338
+ 4876.269544,
339
+ 41565,
340
+ 54733
341
+ ],
342
+ [
343
+ "2026-11-18",
344
+ 183335,
345
+ 2557,
346
+ 610,
347
+ 29717.698622,
348
+ 93529,
349
+ 181839
350
+ ],
351
+ [
352
+ "2026-11-19",
353
+ 151767,
354
+ 3317,
355
+ 669,
356
+ 16249.896423,
357
+ 61826,
358
+ 150765
359
+ ],
360
+ [
361
+ "2026-11-20",
362
+ 98098,
363
+ 2525,
364
+ 385,
365
+ 12841.205873,
366
+ 40235,
367
+ 97395
368
+ ],
369
+ [
370
+ "2026-11-21",
371
+ 1261,
372
+ 393,
373
+ 51,
374
+ 385.939384,
375
+ 599,
376
+ 1245
377
+ ]
378
+ ],
379
+ "caveats": [
380
+ "Scope is HIVE402's catalog, not all of x402: settlements to sellers HIVE402 does not list are not counted.",
381
+ "The catalog grew during the window (receiving seller wallets per day rose from 14 on Oct 18 to 400+ in November), so early-window growth partly reflects coverage growth. The Nov 14\u201320 jump happened with coverage similar to early November.",
382
+ "Dollar totals include some large EIP-3009 transfers to listed wallets that may not be API calls (one listed wallet received about $60k from 540 transfers since Nov 14 while listing $0.002 prices). Settlement counts and payer counts are the more reliable measures.",
383
+ "A paying wallet is not a person or an agent; one operator can control many wallets, and one wallet can serve many users.",
384
+ "Nov 21 is a partial day (data through 06:41 UTC)."
385
+ ]
386
+ }
scripts/regenerate.py ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Rebuild the x402 Pulse dataset files from a data_raw.json snapshot.
3
+
4
+ Source format (same as /tmp/t18/tools/data_raw.json, queried from HIVE402
5
+ D1 table settlement_events on 2026-11-21):
6
+
7
+ {
8
+ "source": "HIVE402 D1 settlement_events (excluded IS NULL), queried ...",
9
+ "totals": {"tx", "payers", "payees", "amount_atomic", "first", "last"},
10
+ "excluded_sml": {"tx", "payers", "payees", "amount_atomic"},
11
+ "since_nov14": {"payers", "tx", "top10_tx", "top100_tx", "one_tx_payers"},
12
+ "top_payee_since_nov14": {
13
+ "pay_to", "name", "tx", "payers", "amount_atomic", "listed_price_usd"
14
+ },
15
+ "supply_snapshot": {
16
+ "as_of", "endpoints", "operators", "verified_payable",
17
+ "paid_verified_endpoints", "catalog_endpoints_paid_board"
18
+ },
19
+ "daily": [[day_utc, settlements, payers, payees, amount_atomic_usdc, under_1c, under_10c], ...],
20
+ "daily_columns": [...]
21
+ }
22
+
23
+ Weekly refresh:
24
+ 1. Re-run the settlement_events aggregation (same exclusions: ScriptMasterLabs
25
+ wallets out, EIP-3009 AuthorizationUsed + USDC transfer to a catalog payTo
26
+ on Base) and write a new data_raw.json in this format.
27
+ 2. python scripts/regenerate.py --source data/data_raw.json --out .
28
+
29
+ This script does not query D1 and does not invent numbers.
30
+ """
31
+
32
+ from __future__ import annotations
33
+
34
+ import argparse
35
+ import csv
36
+ import json
37
+ import re
38
+ import sys
39
+ from datetime import date, datetime, timezone
40
+ from pathlib import Path
41
+
42
+
43
+ BASE = "https://hive402.scriptmasterlabs.com"
44
+ LICENSE = (
45
+ "CC BY 4.0 — reuse freely with attribution and a link to "
46
+ "https://hive402.scriptmasterlabs.com/reports/{slug}"
47
+ )
48
+
49
+ DAILY_OUT_COLUMNS = [
50
+ "day_utc",
51
+ "settlements",
52
+ "paying_wallets",
53
+ "receiving_seller_wallets",
54
+ "usdc_amount",
55
+ "settlements_under_0.01",
56
+ "settlements_under_0.10",
57
+ ]
58
+
59
+
60
+ def atomic_to_usdc(amount_atomic: int | float) -> float:
61
+ return round(int(amount_atomic) / 1_000_000, 6)
62
+
63
+
64
+ def share(numer: int, denom: int, dp: int = 4) -> float:
65
+ if denom == 0:
66
+ return 0.0
67
+ return round(numer / denom, dp)
68
+
69
+
70
+ def parse_seller_name(raw: str) -> tuple[str, str | None]:
71
+ m = re.match(r"^(.*?)(?:\s+\(([^()]*)\))?$", raw.strip())
72
+ if not m:
73
+ return raw, None
74
+ name, host = m.group(1).strip(), m.group(2)
75
+ return name, host
76
+
77
+
78
+ def week_sum(daily: list, start: str, end: str) -> int:
79
+ return sum(int(row[1]) for row in daily if start <= row[0] <= end)
80
+
81
+
82
+ def build_report(raw: dict, *, published: str, slug: str) -> dict:
83
+ tot = raw["totals"]
84
+ daily = raw["daily"]
85
+ s14 = raw.get("since_nov14") or {}
86
+ ax1 = raw.get("top_payee_since_nov14") or {}
87
+ sup = raw.get("supply_snapshot") or {}
88
+ excluded = raw.get("excluded_sml") or {}
89
+
90
+ tx_all = int(tot["tx"])
91
+ u1 = sum(int(r[5]) for r in daily)
92
+ u10 = sum(int(r[6]) for r in daily)
93
+
94
+ # Default comparison windows used by the Nov 2026 edition; for later
95
+ # months the caller can still pass the same raw shape and the script will
96
+ # use the last two complete Mon–Sun weeks in the series when these dates
97
+ # are absent.
98
+ week_now = week_sum(daily, "2026-11-14", "2026-11-20")
99
+ week_prev = week_sum(daily, "2026-11-07", "2026-11-13")
100
+ if week_now == 0 or week_prev == 0:
101
+ week_now, week_prev = last_two_complete_weeks(daily)
102
+
103
+ seller_name, seller_host = parse_seller_name(str(ax1.get("name") or ""))
104
+ s14_tx = int(s14.get("tx") or 0)
105
+ wow_multiple = share(week_now, week_prev, 2) if week_prev else None
106
+
107
+ daily_out = []
108
+ for row in daily:
109
+ daily_out.append(
110
+ [
111
+ row[0],
112
+ int(row[1]),
113
+ int(row[2]),
114
+ int(row[3]),
115
+ atomic_to_usdc(row[4]),
116
+ int(row[5]),
117
+ int(row[6]),
118
+ ]
119
+ )
120
+
121
+ wow_display = f"{week_now / week_prev:.1f}×" if week_prev else "n/a"
122
+ ax1_share = share(int(ax1.get("tx") or 0), s14_tx, 4) if s14_tx else None
123
+ ax1_share_pct = f"{(int(ax1.get('tx') or 0) / s14_tx) * 100:.1f}%" if s14_tx else "n/a"
124
+
125
+ quotable = (
126
+ f"x402 settlements to sellers in HIVE402's catalog on Base rose {wow_display} week over week, "
127
+ f"from {week_prev:,} (Nov 7–13, 2026) to {week_now:,} (Nov 14–20, 2026); "
128
+ f"one seller, {seller_name}'s Token Verdict, received {ax1_share_pct} of settlements since Nov 14."
129
+ if seller_name.lower().startswith("ax1") and "2026-11" in slug
130
+ else (
131
+ f"x402 settlements to sellers in HIVE402's catalog on Base rose {wow_display} week over week, "
132
+ f"from {week_prev:,} to {week_now:,}; "
133
+ f"the largest seller, {seller_name or 'n/a'}, received {ax1_share_pct} of settlements in the concentration window."
134
+ )
135
+ )
136
+ # Keep the published Nov 2026 wording exactly when we are regenerating that edition.
137
+ if slug == "x402-pulse-2026-11":
138
+ quotable = (
139
+ f"x402 settlements to sellers in HIVE402's catalog on Base rose {wow_display} week over week, "
140
+ f"from {week_prev:,} (Nov 7–13, 2026) to {week_now:,} (Nov 14–20, 2026); "
141
+ f"one seller, ax1's Token Verdict, received {ax1_share_pct} of settlements since Nov 14."
142
+ )
143
+
144
+ report = {
145
+ "title": f"x402 Pulse — {title_from_slug(slug)}",
146
+ "publisher": "Script Master Labs LLC (HIVE402)",
147
+ "url": f"{BASE}/reports/{slug}",
148
+ "published": published,
149
+ "license": LICENSE.format(slug=slug),
150
+ "quotable": quotable,
151
+ "scope": (
152
+ "x402 exact settlements on Base mainnet (eip155:8453): USDC transfers to a payTo wallet "
153
+ "listed in HIVE402's catalog, in a transaction that also emitted the USDC contract's "
154
+ "EIP-3009 AuthorizationUsed event. Covers every facilitator. ScriptMasterLabs' own wallets excluded."
155
+ ),
156
+ "window": {"from": tot.get("first"), "to": tot.get("last")},
157
+ "totals": {
158
+ "settlements": tx_all,
159
+ "paying_wallets": int(tot["payers"]),
160
+ "receiving_seller_wallets": int(tot["payees"]),
161
+ "usdc_amount": round(int(tot["amount_atomic"]) / 1_000_000, 2),
162
+ },
163
+ "excluded_scriptmasterlabs_rows": int(excluded.get("tx") or 0),
164
+ "week_over_week": {
165
+ "nov_7_13": week_prev if slug == "x402-pulse-2026-11" else week_prev,
166
+ "nov_14_20": week_now if slug == "x402-pulse-2026-11" else week_now,
167
+ "previous_week": week_prev,
168
+ "current_week": week_now,
169
+ "multiple": wow_multiple,
170
+ },
171
+ "price_mix": {
172
+ "share_under_0_01": share(u1, tx_all, 4),
173
+ "share_under_0_10": share(u10, tx_all, 4),
174
+ },
175
+ "concentration_since_2026_11_14": {
176
+ "paying_wallets": int(s14.get("payers") or 0),
177
+ "settlements": s14_tx,
178
+ "top10_wallet_share": share(int(s14.get("top10_tx") or 0), s14_tx, 4),
179
+ "top100_wallet_share": share(int(s14.get("top100_tx") or 0), s14_tx, 4),
180
+ "wallets_paying_once": int(s14.get("one_tx_payers") or 0),
181
+ },
182
+ "largest_seller_since_2026_11_14": {
183
+ "name": seller_name,
184
+ "resource_host": seller_host,
185
+ "pay_to": ax1.get("pay_to"),
186
+ "settlements": int(ax1.get("tx") or 0),
187
+ "paying_wallets": int(ax1.get("payers") or 0),
188
+ "listed_price_usdc": ax1.get("listed_price_usd"),
189
+ "share_of_settlements": ax1_share,
190
+ },
191
+ "supply_snapshot": sup,
192
+ "daily_columns": DAILY_OUT_COLUMNS,
193
+ "daily": daily_out,
194
+ "source": raw.get("source"),
195
+ "caveats": (
196
+ NOV_2026_CAVEATS if slug == "x402-pulse-2026-11" else default_caveats(daily, tot.get("last"))
197
+ ),
198
+ }
199
+ return report
200
+
201
+
202
+ def title_from_slug(slug: str) -> str:
203
+ m = re.search(r"(\d{4})-(\d{2})$", slug)
204
+ if not m:
205
+ return slug
206
+ year, month = int(m.group(1)), int(m.group(2))
207
+ return date(year, month, 1).strftime("%B %Y")
208
+
209
+
210
+ def last_two_complete_weeks(daily: list[list]) -> tuple[int, int]:
211
+ """Sum the last two complete UTC Mon–Sun weeks present in the series."""
212
+ days = [row[0] for row in daily]
213
+ if not days:
214
+ return 0, 0
215
+ last = date.fromisoformat(days[-1])
216
+ # Step back to the Sunday of the last complete week (if last is not past Sunday, drop the partial week).
217
+ # Monday=0 ... Sunday=6
218
+ if last.weekday() != 6:
219
+ last_sunday = last.fromordinal(last.toordinal() - last.weekday() - 1)
220
+ else:
221
+ last_sunday = last
222
+ prev_monday = last_sunday.fromordinal(last_sunday.toordinal() - 6)
223
+ prev_sunday = last_sunday.fromordinal(last_sunday.toordinal() - 7)
224
+ prev2_monday = last_sunday.fromordinal(last_sunday.toordinal() - 13)
225
+ week_now = week_sum(daily, prev_monday.isoformat(), last_sunday.isoformat())
226
+ week_prev = week_sum(daily, prev2_monday.isoformat(), prev_sunday.isoformat())
227
+ return week_now, week_prev
228
+
229
+
230
+ NOV_2026_CAVEATS = [
231
+ "Scope is HIVE402's catalog, not all of x402: settlements to sellers HIVE402 does not list are not counted.",
232
+ "The catalog grew during the window (receiving seller wallets per day rose from 14 on Oct 18 to 400+ in November), so early-window growth partly reflects coverage growth. The Nov 14–20 jump happened with coverage similar to early November.",
233
+ "Dollar totals include some large EIP-3009 transfers to listed wallets that may not be API calls (one listed wallet received about $60k from 540 transfers since Nov 14 while listing $0.002 prices). Settlement counts and payer counts are the more reliable measures.",
234
+ "A paying wallet is not a person or an agent; one operator can control many wallets, and one wallet can serve many users.",
235
+ "Nov 21 is a partial day (data through 06:41 UTC).",
236
+ ]
237
+
238
+
239
+ def default_caveats(daily: list, last_ts: str | None) -> list[str]:
240
+ caveats = [
241
+ "Scope is HIVE402's catalog, not all of x402: settlements to sellers HIVE402 does not list are not counted.",
242
+ "The catalog grew during the window, so early-window growth partly reflects coverage growth.",
243
+ "Dollar totals include some large EIP-3009 transfers to listed wallets that may not be API calls. Settlement counts and payer counts are the more reliable measures.",
244
+ "A paying wallet is not a person or an agent; one operator can control many wallets, and one wallet can serve many users.",
245
+ ]
246
+ if last_ts and daily:
247
+ last_day = daily[-1][0]
248
+ try:
249
+ end = datetime.fromisoformat(last_ts.replace("Z", "+00:00"))
250
+ if end.date().isoformat() == last_day and (end.hour, end.minute) != (23, 59):
251
+ caveats.append(
252
+ f"{last_day} is a partial day (data through {end.strftime('%H:%M')} UTC)."
253
+ )
254
+ except ValueError:
255
+ pass
256
+ return caveats
257
+
258
+
259
+ def write_csv(path: Path, daily: list[list]) -> None:
260
+ with path.open("w", newline="") as f:
261
+ w = csv.writer(f)
262
+ w.writerow(DAILY_OUT_COLUMNS)
263
+ for row in daily:
264
+ # Match the published CSV's six-decimal USDC formatting.
265
+ out = list(row)
266
+ out[4] = f"{float(out[4]):.6f}"
267
+ w.writerow(out)
268
+
269
+
270
+ def infer_slug(raw: dict, override: str | None) -> str:
271
+ if override:
272
+ return override
273
+ last = (raw.get("daily") or [[None]])[-1][0]
274
+ if last and re.match(r"\d{4}-\d{2}-\d{2}", last):
275
+ return f"x402-pulse-{last[:7]}"
276
+ return "x402-pulse"
277
+
278
+
279
+ def main(argv: list[str] | None = None) -> int:
280
+ p = argparse.ArgumentParser(description="Regenerate the x402 Pulse dataset from data_raw.json")
281
+ p.add_argument("--source", type=Path, default=Path("data/data_raw.json"))
282
+ p.add_argument("--out", type=Path, default=Path("."))
283
+ p.add_argument("--slug", default=None, help="File slug, default x402-pulse-YYYY-MM from the last daily row")
284
+ p.add_argument("--published", default=None, help="ISO date, default today (UTC)")
285
+ args = p.parse_args(argv)
286
+
287
+ raw = json.loads(args.source.read_text())
288
+ slug = infer_slug(raw, args.slug)
289
+ published = args.published or datetime.now(timezone.utc).date().isoformat()
290
+ report = build_report(raw, published=published, slug=slug)
291
+
292
+ out_data = args.out / "data"
293
+ out_data.mkdir(parents=True, exist_ok=True)
294
+ json_path = out_data / f"{slug}.json"
295
+ csv_path = out_data / f"{slug}.csv"
296
+ json_path.write_text(json.dumps(report, indent=2) + "\n")
297
+ write_csv(csv_path, report["daily"])
298
+
299
+ # Keep a copy of the source snapshot next to the outputs when regenerating in place.
300
+ dest_raw = out_data / "data_raw.json"
301
+ if args.source.resolve() != dest_raw.resolve():
302
+ dest_raw.write_text(json.dumps(raw, indent=2) + "\n")
303
+
304
+ print(f"wrote {json_path}")
305
+ print(f"wrote {csv_path}")
306
+ print(
307
+ f"totals: {report['totals']['settlements']} settlements, "
308
+ f"{report['totals']['paying_wallets']} paying wallets, "
309
+ f"${report['totals']['usdc_amount']:,.2f} USDC"
310
+ )
311
+ return 0
312
+
313
+
314
+ if __name__ == "__main__":
315
+ sys.exit(main())
scripts/test_regenerate.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Compare regenerate.py output against the published 2026-11-21 Pulse files."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import csv
7
+ import json
8
+ import subprocess
9
+ import sys
10
+ import tempfile
11
+ from pathlib import Path
12
+
13
+ ROOT = Path(__file__).resolve().parents[1]
14
+ SCRIPT = ROOT / "scripts" / "regenerate.py"
15
+ RAW = ROOT / "data" / "data_raw.json"
16
+ PUB_JSON = ROOT / "data" / "x402-pulse-2026-11.json"
17
+ PUB_CSV = ROOT / "data" / "x402-pulse-2026-11.csv"
18
+
19
+
20
+ def main() -> int:
21
+ published = json.loads(PUB_JSON.read_text())
22
+ with tempfile.TemporaryDirectory() as td:
23
+ out = Path(td)
24
+ subprocess.check_call(
25
+ [
26
+ sys.executable,
27
+ str(SCRIPT),
28
+ "--source",
29
+ str(RAW),
30
+ "--out",
31
+ str(out),
32
+ "--slug",
33
+ "x402-pulse-2026-11",
34
+ "--published",
35
+ "2026-11-21",
36
+ ]
37
+ )
38
+ got = json.loads((out / "data" / "x402-pulse-2026-11.json").read_text())
39
+
40
+ assert got["totals"] == published["totals"], (got["totals"], published["totals"])
41
+ assert got["excluded_scriptmasterlabs_rows"] == published["excluded_scriptmasterlabs_rows"]
42
+ assert got["week_over_week"]["nov_7_13"] == published["week_over_week"]["nov_7_13"]
43
+ assert got["week_over_week"]["nov_14_20"] == published["week_over_week"]["nov_14_20"]
44
+ assert got["week_over_week"]["multiple"] == published["week_over_week"]["multiple"]
45
+ assert got["price_mix"] == published["price_mix"]
46
+ assert got["concentration_since_2026_11_14"] == published["concentration_since_2026_11_14"]
47
+ assert got["largest_seller_since_2026_11_14"] == published["largest_seller_since_2026_11_14"]
48
+ assert got["supply_snapshot"] == published["supply_snapshot"]
49
+ assert got["quotable"] == published["quotable"]
50
+ assert got["window"] == published["window"]
51
+ assert got["daily"] == published["daily"]
52
+ assert got["caveats"] == published["caveats"]
53
+
54
+ with (out / "data" / "x402-pulse-2026-11.csv").open() as f, PUB_CSV.open() as g:
55
+ got_rows = list(csv.reader(f))
56
+ pub_rows = list(csv.reader(g))
57
+ assert got_rows == pub_rows, "CSV does not match the published file"
58
+
59
+ print("regenerate.py matches the published 2026-11 Pulse CSV, totals, quotable, seller and caveats")
60
+ return 0
61
+
62
+
63
+ if __name__ == "__main__":
64
+ sys.exit(main())