Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"Bash(git status:*)",
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__new_page",
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__performance_stop_trace",
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__evaluate_script"
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__evaluate_script",
]
},
"enabledPlugins": {
"chrome-devtools@claude-plugins-official": true,
"superpowers@claude-plugins-official": true
}
}
5 changes: 3 additions & 2 deletions SEQUENCE.md → ...ers/archive/2026-03-19-sequence-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ sequenceDiagram
TS->>TS: ✅ Reconstruct full URL<br/>✅ Validate tstoken (enc+SHA256)
TS->>CS: GET original_url
CS-->>TS: 200 (image/HTML)

opt 📄 HTML Response
TS->>TS: 🔏 Generate signed target URLs<br/>🔄 Rewrite resource URLs
TS-->>U: 200 text/html (secured)
end

opt 🖼️ Image Response
TS->>TS: ✅ Verify content-type<br/>📊 Log pixel tracking
TS-->>U: 200 image/* (proxied)
Expand All @@ -128,6 +128,7 @@ sequenceDiagram
```

## Notes

- TSJS
- Served first-party at `/static/tsjs=tsjs-unified.min.js?v=<hash>`. The server dynamically concatenates core + enabled integration modules based on config.
- Discovers ad units and renders placeholders; either uses slot-level HTML (`/first-party/ad`) or JSON auction (`/auction`).
Expand Down
144 changes: 75 additions & 69 deletions OPTIMIZATION.md → ...archive/2026-03-24-optimization-design.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ This document lists all publisher-specific IDs and configurations found in the c
### trusted-server.toml

**GAM Configuration:**

- `publisher_id = "3790"` (line 14)
- `server_url = "https://securepubads.g.doubleclick.net/gampad/ads"` (line 15)

**Equativ Configuration:**

- `sync_url = "https://adapi-srv-eu.smartadserver.com/ac?pgid=2040327&fmtid=137675&synthetic_id={{synthetic_id}}"` (line 8)
- Page ID: `2040327`
- Format ID: `137675`

**Test Publisher Domain:**

- `domain = "test-publisher.com"` (line 2)
- `cookie_domain = ".test-publisher.com"` (line 3)
- `origin_url = "https://origin.test-publisher.com"` (line 4)

**KV Store Names (user-specific):**

- `counter_store = "jevans_synth_id_counter"` (line 24)
- `opid_store = "jevans_synth_id_opid"` (line 25)

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

**Permutive Segment Data (lines 295 and 486):**

```rust
.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())
```
Expand All @@ -38,27 +43,32 @@ This large string contains Permutive segment IDs that appear to be captured from
### /Users/jevans/trusted-server/crates/trusted-server-core/src/prebid.rs

**Equativ Integration:**

- `"pageId": 2040327` (matches config)
- `"formatId": 137675` (matches config)

### Test Files

**Test Support Files:**

- GAM publisher ID `"3790"` in test configurations
- `"test-publisher.com"` and related test domains in multiple test files

## Impact Assessment

### High Priority (Publisher-Specific)

1. **GAM Publisher ID (3790)** - Core identifier for ad serving
2. **Permutive Segments** - Large hardcoded segment string from test traffic
3. **Equativ Page/Format IDs (2040327, 137675)** - Ad network integration

### Medium Priority (Environment-Specific)

1. **Test Publisher Domains** - Should be configurable per deployment
2. **KV Store Names** - Currently user-specific (jevans_*)
2. **KV Store Names** - Currently user-specific (jevans\_\*)

### Low Priority (Infrastructure)

1. **Server URLs** - Generally standard but should be configurable

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