Skip to content

Commit 19f6a7a

Browse files
authored
Merge branch 'main' into validate-synthetic-id-format
2 parents 92f23ef + 6bf3027 commit 19f6a7a

9 files changed

+734
-90
lines changed

.claude/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"Bash(git status:*)",
2626
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__new_page",
2727
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__performance_stop_trace",
28-
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__evaluate_script"
28+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__evaluate_script",
2929
]
30+
},
31+
"enabledPlugins": {
32+
"chrome-devtools@claude-plugins-official": true,
33+
"superpowers@claude-plugins-official": true
3034
}
3135
}

SEQUENCE.md renamed to docs/superpowers/archive/2026-03-19-sequence-design.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ sequenceDiagram
106106
TS->>TS: ✅ Reconstruct full URL<br/>✅ Validate tstoken (enc+SHA256)
107107
TS->>CS: GET original_url
108108
CS-->>TS: 200 (image/HTML)
109-
109+
110110
opt 📄 HTML Response
111111
TS->>TS: 🔏 Generate signed target URLs<br/>🔄 Rewrite resource URLs
112112
TS-->>U: 200 text/html (secured)
113113
end
114-
114+
115115
opt 🖼️ Image Response
116116
TS->>TS: ✅ Verify content-type<br/>📊 Log pixel tracking
117117
TS-->>U: 200 image/* (proxied)
@@ -128,6 +128,7 @@ sequenceDiagram
128128
```
129129

130130
## Notes
131+
131132
- TSJS
132133
- Served first-party at `/static/tsjs=tsjs-unified.min.js?v=<hash>`. The server dynamically concatenates core + enabled integration modules based on config.
133134
- Discovers ad units and renders placeholders; either uses slot-level HTML (`/first-party/ad`) or JSON auction (`/auction`).

OPTIMIZATION.md renamed to docs/superpowers/archive/2026-03-24-optimization-design.md

Lines changed: 75 additions & 69 deletions
Large diffs are not rendered by default.

PUBLISHER_IDS_AUDIT.md renamed to docs/superpowers/archive/2026-03-24-publisher-ids-audit-design.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ This document lists all publisher-specific IDs and configurations found in the c
77
### trusted-server.toml
88

99
**GAM Configuration:**
10+
1011
- `publisher_id = "3790"` (line 14)
1112
- `server_url = "https://securepubads.g.doubleclick.net/gampad/ads"` (line 15)
1213

1314
**Equativ Configuration:**
15+
1416
- `sync_url = "https://adapi-srv-eu.smartadserver.com/ac?pgid=2040327&fmtid=137675&synthetic_id={{synthetic_id}}"` (line 8)
1517
- Page ID: `2040327`
1618
- Format ID: `137675`
1719

1820
**Test Publisher Domain:**
21+
1922
- `domain = "test-publisher.com"` (line 2)
2023
- `cookie_domain = ".test-publisher.com"` (line 3)
2124
- `origin_url = "https://origin.test-publisher.com"` (line 4)
2225

2326
**KV Store Names (user-specific):**
27+
2428
- `counter_store = "jevans_synth_id_counter"` (line 24)
2529
- `opid_store = "jevans_synth_id_opid"` (line 25)
2630

@@ -29,6 +33,7 @@ This document lists all publisher-specific IDs and configurations found in the c
2933
### /Users/jevans/trusted-server/crates/trusted-server-core/src/gam.rs
3034

3135
**Permutive Segment Data (lines 295 and 486):**
36+
3237
```rust
3338
.with_prmtvctx("129627,137412,138272,139095,139096,139218,141364,143196,143210,143211,143214,143217,144331,144409,144438,144444,144488,144543,144663,144679,144731,144824,144916,145933,146347,146348,146349,146350,146351,146370,146383,146391,146392,146393,146424,146995,147077,147740,148616,148627,148628,149007,150420,150663,150689,150690,150692,150752,150753,150755,150756,150757,150764,150770,150781,150862,154609,155106,155109,156204,164183,164573,165512,166017,166019,166484,166486,166487,166488,166492,166494,166495,166497,166511,167639,172203,172544,173548,176066,178053,178118,178120,178121,178133,180321,186069,199642,199691,202074,202075,202081,233782,238158,adv,bhgp,bhlp,bhgw,bhlq,bhlt,bhgx,bhgv,bhgu,bhhb,rts".to_string())
3439
```
@@ -38,27 +43,32 @@ This large string contains Permutive segment IDs that appear to be captured from
3843
### /Users/jevans/trusted-server/crates/trusted-server-core/src/prebid.rs
3944

4045
**Equativ Integration:**
46+
4147
- `"pageId": 2040327` (matches config)
4248
- `"formatId": 137675` (matches config)
4349

4450
### Test Files
4551

4652
**Test Support Files:**
53+
4754
- GAM publisher ID `"3790"` in test configurations
4855
- `"test-publisher.com"` and related test domains in multiple test files
4956

5057
## Impact Assessment
5158

5259
### High Priority (Publisher-Specific)
60+
5361
1. **GAM Publisher ID (3790)** - Core identifier for ad serving
5462
2. **Permutive Segments** - Large hardcoded segment string from test traffic
5563
3. **Equativ Page/Format IDs (2040327, 137675)** - Ad network integration
5664

5765
### Medium Priority (Environment-Specific)
66+
5867
1. **Test Publisher Domains** - Should be configurable per deployment
59-
2. **KV Store Names** - Currently user-specific (jevans_*)
68+
2. **KV Store Names** - Currently user-specific (jevans\_\*)
6069

6170
### Low Priority (Infrastructure)
71+
6272
1. **Server URLs** - Generally standard but should be configurable
6373

6474
## Recommendations
@@ -74,4 +84,4 @@ This large string contains Permutive segment IDs that appear to be captured from
7484
- `trusted-server.toml` - Add permutive segments configuration
7585
- `crates/trusted-server-core/src/gam.rs` - Remove hardcoded segments (lines 295, 486)
7686
- `crates/trusted-server-core/src/prebid.rs` - Use configuration for Equativ IDs
77-
- Test files - Use environment-agnostic test data
87+
- Test files - Use environment-agnostic test data

0 commit comments

Comments
 (0)