Skip to content

Commit 11e39dd

Browse files
Rename Synthetic ID to Edge Cookie (EC) and simplify generation
- Rename all external identifiers: x-synthetic-id → x-ts-ec, synthetic_id cookie → ts-ec, synthetic_fresh → ec_fresh - Simplify hash generation to use only client IP with HMAC-SHA256, removing User-Agent, Accept-Language, Accept-Encoding, and template rendering - Rename config section [synthetic] → [ec] with backward-compat alias - Rename ec.rs to edge_cookie.rs for clarity - Remove handlebars dependency (and transitive deps) - Add x-ts-ec-fresh to internal headers blocklist - Update all docs with new Edge Cookie (EC) terminology - Fix review findings: remove redundant serde rename, stale optimization entry, leftover 'synthetic' references in agent configs and docs Closes #462
1 parent 1281469 commit 11e39dd

65 files changed

Lines changed: 1188 additions & 1270 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/agents/issue-creator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Output the issue URL and type.
7979
- Use issue **types**, not labels, for categorization.
8080
- Every issue should have clear done-when / acceptance criteria.
8181
- Use the affected area dropdown values from the templates:
82-
- Core (synthetic IDs, cookies, GDPR)
82+
- Core (Edge Cookies, GDPR)
8383
- Integrations (prebid, lockr, permutive, etc.)
8484
- HTML processing / JS injection
8585
- Ad serving (Equativ)

.claude/agents/repo-explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ implementation details.
1111

1212
This is a Rust workspace with three crates:
1313

14-
- `crates/common/` — core library (integrations, HTML processing, synthetic IDs, GDPR)
14+
- `crates/common/` — core library (integrations, HTML processing, Edge Cookies, GDPR)
1515
- `crates/fastly/` — Fastly Compute entry point
1616
- `crates/js/` — TypeScript/JS build pipeline (per-integration IIFE bundles)
1717

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Project Overview
77

88
Rust-based edge computing application targeting **Fastly Compute**. Handles
9-
privacy-preserving synthetic ID generation, ad serving with GDPR compliance,
9+
privacy-preserving Edge Cookie (EC) ID generation, ad serving with GDPR compliance,
1010
real-time bidding integration, and publisher-side JavaScript injection.
1111

1212
## Workspace Layout
@@ -366,7 +366,7 @@ both runtime behavior and build/tooling changes.
366366
| `crates/common/src/tsjs.rs` | Script tag generation with module IDs |
367367
| `crates/common/src/html_processor.rs` | Injects `<script>` at `<head>` start |
368368
| `crates/common/src/publisher.rs` | `/static/tsjs=` handler, concatenates modules |
369-
| `crates/common/src/synthetic.rs` | Synthetic ID generation |
369+
| `crates/common/src/edge_cookie.rs` | Edge Cookie (EC) ID generation |
370370
| `crates/common/src/cookies.rs` | Cookie handling |
371371
| `crates/common/src/gdpr.rs` | GDPR consent management |
372372
| `crates/common/src/http_wrapper.rs` | HTTP abstractions |

0 commit comments

Comments
 (0)